hash-threshold 8
statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
INSERT INTO tab0 VALUES(89,91,82)
statement ok
INSERT INTO tab0 VALUES(35,97,1)
statement ok
INSERT INTO tab0 VALUES(24,86,33)
statement ok
INSERT INTO tab1 VALUES(64,10,57)
statement ok
INSERT INTO tab1 VALUES(3,26,54)
statement ok
INSERT INTO tab1 VALUES(80,13,96)
statement ok
INSERT INTO tab2 VALUES(7,31,27)
statement ok
INSERT INTO tab2 VALUES(79,17,38)
statement ok
INSERT INTO tab2 VALUES(78,59,26)
query I rowsort
SELECT - col0 * + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-1
SELECT - col1 DIV - col0 AS col2 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-1
SELECT - col1 / - col0 AS col2 FROM tab0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 * + tab2.col0 col1 FROM tab2
----
-1323
-158184
-237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-3
SELECT ALL - col0 DIV + col1 + col1 AS col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3
SELECT ALL - col0 / + col1 + col1 AS col1 FROM tab0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4
SELECT ALL + + col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4
SELECT ALL + + col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 47 * cor0.col0 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to dae9cbf013c3ba38993d39e6103456e0
query I rowsort
SELECT - col0 * 4 AS col0 FROM tab0
----
-140
-356
-96
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + col2 AS REAL ) * tab0.col0 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT + 66 * col2 + col0 AS col2 FROM tab2 AS cor0
----
1789
1794
2587
query I rowsort
SELECT - 95 + + col1 FROM tab2
----
-36
-64
-78
query I rowsort
SELECT DISTINCT - col0 * + 4 FROM tab0
----
-140
-356
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-11
SELECT + cor0.col2 DIV + 85 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
skipif mysql # not compatible
query I rowsort label-11
SELECT + cor0.col2 / + 85 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
onlyif mysql # use DIV operator for integer division
query I rowsort label-12
SELECT ALL 26 DIV + col0 AS col1 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-12
SELECT ALL 26 / + col0 AS col1 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT DISTINCT + col0 * - col2 AS col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT + 93 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
onlyif mysql # use DIV operator for integer division
query I rowsort label-15
SELECT 52 DIV col0 FROM tab2
----
0
0
7
skipif mysql # not compatible
query I rowsort label-15
SELECT 52 / col0 FROM tab2
----
0
0
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-16
SELECT + col2 * col1 + - CAST( - col0 * cor0.col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
132
14760
3630
skipif mysql # not compatible
query I rowsort label-16
SELECT + col2 * col1 + - CAST ( - col0 * cor0.col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
132
14760
3630
onlyif mysql # use DIV operator for integer division
query I rowsort label-17
SELECT - 53 DIV col2 FROM tab0 cor0
----
-1
-53
0
skipif mysql # not compatible
query I rowsort label-17
SELECT - 53 / col2 FROM tab0 cor0
----
-1
-53
0
query I rowsort
SELECT - ( + cor0.col0 ) * + col2 + cor0.col1 + cor0.col0 FROM tab2 AS cor0
----
-151
-1891
-2906
query I rowsort
SELECT DISTINCT - - 36 AS col0 FROM tab1 AS cor0
----
36
query I rowsort
SELECT + col2 + col0 * + ( cor0.col2 ) FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT + + col1 * col0 AS col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL + cor0.col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - col0 - - col2 * ( - ( + col1 ) + + col1 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-24
SELECT ALL 37 DIV - col2 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-24
SELECT ALL 37 / - col2 col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 * + tab2.col0 * - col0 col1 FROM tab2
----
4116
511056
524244
query I rowsort
SELECT ALL col2 * + tab1.col0 * + 8 FROM tab1
----
1296
29184
61440
query I rowsort
SELECT 67 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) col1 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL 93 AS col1 FROM tab2
----
93
93
93
query I rowsort
SELECT + col0 * - col0 + - col0 + + col0 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-31
SELECT + cor0.col1 * + CAST( NULL AS DECIMAL ) + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-31
SELECT + cor0.col1 * + CAST ( NULL AS REAL ) + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + ( col0 ) FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-33
SELECT + col0 + col0 DIV + col2 - col0 AS col2 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-33
SELECT + col0 + col0 / + col2 - col0 AS col2 FROM tab1 cor0
----
0
0
1
query I rowsort
SELECT ALL - col0 + cor0.col0 * + col0 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT + + col0 - - col2 AS col0 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-36
SELECT ALL 32 DIV col0 + col0 * + 15 FROM tab1
----
1200
55
960
skipif mysql # not compatible
query I rowsort label-36
SELECT ALL 32 / col0 + col0 * + 15 FROM tab1
----
1200
55
960
query I rowsort
SELECT - col1 * col0 * - col1 - col0 AS col1 FROM tab1 AS cor0
----
13440
2025
6336
query I rowsort
SELECT DISTINCT ( tab0.col1 ) * + 37 + + col2 FROM tab0
----
3215
3449
3590
onlyif mysql # use DIV operator for integer division
query I rowsort label-39
SELECT col0 DIV - cor0.col0 - + 83 AS col2 FROM tab2 AS cor0
----
-84
-84
-84
skipif mysql # not compatible
query I rowsort label-39
SELECT col0 / - cor0.col0 - + 83 AS col2 FROM tab2 AS cor0
----
-84
-84
-84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-40
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-40
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + col1 * - 50 FROM tab0 AS cor0
----
-4300
-4550
-4850
onlyif mysql # use DIV operator for integer division
query I rowsort label-42
SELECT ALL - - cor0.col1 + col1 DIV col0 AS col0 FROM tab1 AS cor0
----
10
13
34
skipif mysql # not compatible
query I rowsort label-42
SELECT ALL - - cor0.col1 + col1 / col0 AS col0 FROM tab1 AS cor0
----
10
13
34
query I rowsort
SELECT + col2 + 37 AS col0 FROM tab0 AS cor0
----
119
38
70
query I rowsort
SELECT DISTINCT ( + 46 ) * + col1 FROM tab1
----
1196
460
598
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-45
SELECT DISTINCT CAST( + 18 + - col2 AS SIGNED ) AS col0 FROM tab0
----
-15
-64
17
skipif mysql # not compatible
query I rowsort label-45
SELECT DISTINCT CAST ( + 18 + - col2 AS INTEGER ) AS col0 FROM tab0
----
-15
-64
17
query I rowsort
SELECT + + col1 + ( - col1 ) FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-47
SELECT + + CAST( + col1 AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-47
SELECT + + CAST ( + col1 AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + 49 AS col2 FROM tab2
----
49
49
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT ALL col1 + col1 * - col0 + - col2 AS col2 FROM tab1
----
-106
-1123
-687
query I rowsort
SELECT DISTINCT col2 * col1 + - col0 AS col0 FROM tab1
----
1168
1401
506
query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab0 cor0 WHERE ( NULL ) <= ( NULL )
----
query I rowsort
SELECT DISTINCT + tab2.col1 AS col0 FROM tab2, tab1, tab1 AS cor0 WHERE ( cor0.col2 ) < NULL
----
query I rowsort
SELECT + col2 * - col2 + col2 * col1 AS col0 FROM tab0
----
1749
738
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * col2 col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL col2 + + col0 + + col1 FROM tab2
----
134
163
65
query I rowsort
SELECT + col2 * + col0 + col0 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT ALL col2 * col1 * + col2 AS col1 FROM tab2 AS cor0
----
22599
24548
39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-59
SELECT ALL col0 * col2 DIV col1 AS col0 FROM tab0
----
0
80
9
skipif mysql # not compatible
query I rowsort label-59
SELECT ALL col0 * col2 / col1 AS col0 FROM tab0
----
0
80
9
query I rowsort
SELECT ALL - col0 + - col0 AS col0 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT ALL + - col1 * - col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - cor0.col2 * col0 * col0 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT DISTINCT - tab0.col0 * + col1 + - col2 FROM tab0
----
-2097
-3396
-8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-64
SELECT DISTINCT + col0 + col0 DIV - col2 AS col0 FROM tab0 AS cor0
----
0
24
88
skipif mysql # not compatible
query I rowsort label-64
SELECT DISTINCT + col0 + col0 / - col2 AS col0 FROM tab0 AS cor0
----
0
24
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 * + col2 col1 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT ALL - - col2 * cor0.col2 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
1406
650
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-67
SELECT ALL col2 DIV + col0 + col1 AS col2 FROM tab0 AS cor0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-67
SELECT ALL col2 / + col0 + col1 AS col2 FROM tab0 AS cor0
----
87
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-68
SELECT - cor0.col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-68
SELECT - cor0.col1 / - col1 AS col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - + col0 * + col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col2 * + col1 AS col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - col1 * col1 - col1 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT col0 * + col0 + - col1 * - col1 FROM tab2 AS cor0
----
1010
6530
9565
query I rowsort
SELECT + 75 * col1 * col1 - col1 FROM tab0 AS cor0
----
554614
620984
705578
query I rowsort
SELECT ALL 97 + + col1 * - col2 * tab2.col0 - col1 * col0 FROM tab2
----
-124157
-52280
-5979
onlyif mysql # use DIV operator for integer division
query I rowsort label-75
SELECT 24 * col1 DIV - col0 FROM tab1 AS cor0
----
-208
-3
-3
skipif mysql # not compatible
query I rowsort label-75
SELECT 24 * col1 / - col0 FROM tab1 AS cor0
----
-208
-3
-3
query I rowsort
SELECT DISTINCT + ( - col0 ) * + col0 * col1 AS col0 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT DISTINCT + 52 * - cor0.col0 + col1 FROM tab1 AS cor0
----
-130
-3318
-4147
query I rowsort
SELECT ALL + cor0.col0 * col2 + col0 FROM tab0 cor0
----
70
7387
816
query I rowsort
SELECT 83 - + col2 FROM tab1 AS cor0
----
-13
26
29
query I rowsort
SELECT ALL - col0 * - col2 + col0 + col1 FROM tab1 AS cor0
----
191
3722
7773
onlyif mysql # use DIV operator for integer division
query I rowsort label-81
SELECT DISTINCT col1 + col0 DIV + col0 FROM tab1 cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-81
SELECT DISTINCT col1 + col0 / + col0 FROM tab1 cor0
----
11
14
27
query I rowsort
SELECT ALL - 93 - - col0 FROM tab2 AS cor0
----
-14
-15
-86
query I rowsort
SELECT + col1 * + tab2.col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT col2 * tab1.col0 + - tab1.col2 * + tab1.col1 + tab1.col1 FROM tab1
----
-1216
3088
6445
query I rowsort
SELECT - col2 * + tab1.col2 + + col0 AS col2 FROM tab1
----
-2913
-3185
-9136
query III rowsort
SELECT * FROM tab2 WHERE NOT col1 = col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT - col2 * + col1 * col2 AS col0 FROM tab1
----
-119808
-32490
-75816
query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * - col2 - + col2 * col0 IN ( col2 + col2 )
----
query I rowsort
SELECT col1 + + col2 + tab2.col1 * - col0 AS col2 FROM tab2
----
-1288
-159
-4517
query I rowsort
SELECT + col0 * + tab0.col0 AS col1 FROM tab0
----
1225
576
7921
query I rowsort
SELECT DISTINCT col0 * col1 + - col2 AS col0 FROM tab0
----
2031
3394
8017
query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NOT NULL > - col1 * col2
----
query I rowsort
SELECT - col2 + col2 - + col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT - col1 + tab0.col2 AS col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT col2 * tab1.col2 + col1 * col2 AS col1 FROM tab1
----
10464
3819
4320
query I rowsort
SELECT DISTINCT - col1 + - col0 + col0 FROM tab2
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-97
SELECT ALL - col1 DIV tab1.col0 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-97
SELECT ALL - col1 / tab1.col0 FROM tab1
----
-8
0
0
query I rowsort
SELECT + col2 + + col1 * - col1 * col1 FROM tab0
----
-636023
-753489
-912672
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 + col0 * col2 + col2 * col2 NOT BETWEEN - col0 AND NULL
----
query I rowsort
SELECT DISTINCT col2 * col2 FROM tab2 WHERE NOT NULL >= ( + col1 * - col1 + + col1 )
----
query I rowsort
SELECT - col0 * - tab1.col0 + - col1 AS col1 FROM tab1
----
-17
4086
6387
onlyif mysql # use DIV operator for integer division
query I rowsort label-102
SELECT DISTINCT - col0 DIV - col1 + + col1 * col1 AS col0 FROM tab2
----
293
3482
961
skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT - col0 / - col1 + + col1 * col1 AS col0 FROM tab2
----
293
3482
961
query I rowsort
SELECT - col1 * - col1 * - col0 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT + tab2.col0 * col1 + col2 AS col1 FROM tab2
----
1381
244
4628
query I rowsort
SELECT DISTINCT col1 * col1 + + col1 FROM tab1
----
110
182
702
query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 + col2 * col0 IN ( - col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab0 WHERE col1 * col1 + - tab0.col0 < ( col1 + - col0 * col2 )
----
query I rowsort
SELECT - col0 - col2 * + col2 AS col2 FROM tab0
----
-1113
-36
-6813
query I rowsort
SELECT ALL col1 * col2 FROM tab0 AS cor0 WHERE NOT cor0.col2 = + col2 * col1 + col0
----
2838
7462
97
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 BETWEEN NULL AND - cor0.col2
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IN ( tab1.col1 + col2 )
----
query I rowsort
SELECT DISTINCT + col1 * + col1 * col0 AS col0 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT tab0.col1 + + col1 * + col1 AS col2 FROM tab0
----
7482
8372
9506
query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 IN ( - col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-115
SELECT + col2 + - col2 DIV col0 AS col2 FROM tab1
----
36
57
95
skipif mysql # not compatible
query I rowsort label-115
SELECT + col2 + - col2 / col0 AS col2 FROM tab1
----
36
57
95
query I rowsort
SELECT DISTINCT cor0.col2 * - col1 - col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT - col1 + - col2 + + col1 * + tab0.col1 AS col2 FROM tab0
----
7277
8108
9311
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN - col2 * col0 * col1 - col1 * + col1 AND - col1 / col2
----
query I rowsort
SELECT DISTINCT col1 * col1 + col1 * - col1 * - tab0.col1 FROM tab0
----
643452
761852
922082
query I rowsort
SELECT col2 * col0 * col2 AS col0 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT ALL - + col1 + + cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT - - ( col2 ) * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + col1 * + 56 AS col0 FROM tab1 cor0
----
1456
560
728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-124
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * ( col1 ) col1 FROM tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-124
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * ( col1 ) col1 FROM tab0 cor0
----
NULL
query I rowsort
SELECT 68 AS col1 FROM tab2 cor0
----
68
68
68
query I rowsort
SELECT - - 64 + col1 FROM tab0 AS cor0
----
150
155
161
query I rowsort
SELECT 79 * 70 FROM tab1 AS cor0
----
5530
5530
5530
query I rowsort
SELECT ALL - tab0.col1 + + col2 + + col0 AS col0 FROM tab0
----
-29
-61
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + ( + 11 ) + cor0.col0 col2 FROM tab1 AS cor0
----
1136
597
691
onlyif mysql # use DIV operator for integer division
query I rowsort label-130
SELECT DISTINCT - col2 * ( col2 ) + + col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
-2917
-3250
-9217
skipif mysql # not compatible
query I rowsort label-130
SELECT DISTINCT - col2 * ( col2 ) + + col0 / - col0 AS col1 FROM tab1 AS cor0
----
-2917
-3250
-9217
query I rowsort
SELECT - - col1 * col2 + col0 * col0 FROM tab0 AS cor0
----
1322
15383
3414
query I rowsort
SELECT + col0 * tab0.col0 + 66 FROM tab0
----
1291
642
7987
query I rowsort
SELECT ALL - 9 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a
query I rowsort
SELECT - col2 * + ( col2 ) AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT col2 * - col1 * col0 + + col2 AS col1 FROM tab1
----
-36423
-4158
-99744
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-136
SELECT col1 * - CAST( + col1 AS SIGNED ) * + col1 + + col1 * col1 AS col1 FROM tab1
----
-16900
-2028
-900
skipif mysql # not compatible
query I rowsort label-136
SELECT col1 * - CAST ( + col1 AS INTEGER ) * + col1 + + col1 * col1 AS col1 FROM tab1
----
-16900
-2028
-900
query I rowsort
SELECT - ( cor0.col0 ) * cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT tab0.col1 * tab0.col2 * tab0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to f44fe7b670a4b476eff934c6b07a13ea
query I rowsort
SELECT + col0 + 38 FROM tab1
----
102
118
41
query I rowsort
SELECT DISTINCT - ( + 19 ) FROM tab1, tab0 AS cor0
----
-19
query I rowsort
SELECT ALL - ( - 46 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col0 col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT DISTINCT - - col0 * - 88 + col0 AS col2 FROM tab2 AS cor0
----
-609
-6786
-6873
query I rowsort
SELECT - - 99 * col2 AS col0 FROM tab1 AS cor0
----
5346
5643
9504
query I rowsort
SELECT ALL - 46 AS col2 FROM tab1 AS cor0
----
-46
-46
-46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-146
SELECT - + CAST( + cor0.col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-146
SELECT - + CAST ( + cor0.col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - ( col0 ) * - col1 - - cor0.col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT - ( + 50 ) * + col0 - + col1 AS col2 FROM tab2 AS cor0
----
-381
-3959
-3967
query I rowsort
SELECT - 53 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d
query I rowsort
SELECT ALL ( - col2 ) * + col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT - 26 * 16 AS col0 FROM tab1 cor0
----
-416
-416
-416
query I rowsort
SELECT DISTINCT 99 FROM tab1, tab2 AS cor0
----
99
query I rowsort
SELECT ALL tab1.col1 * ( col0 ) FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL + ( - col0 * + tab1.col1 ) FROM tab1
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-155
SELECT - CAST( col1 AS SIGNED ) FROM tab1 cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-155
SELECT - CAST ( col1 AS INTEGER ) FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT ( col0 ) * - col1 + col1 * - col1 FROM tab0
----
-12804
-16380
-9460
query I rowsort
SELECT ALL - tab0.col0 * tab0.col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + + cor0.col0 * + col1 + + col1 * + col1 * - col0 FROM tab0 AS cor0
----
-175440
-325920
-728910
query I rowsort
SELECT ALL - 99 * + col2 FROM tab1
----
-5346
-5643
-9504
query I rowsort
SELECT - 82 * tab2.col2 AS col2 FROM tab2
----
-2132
-2214
-3116
onlyif mysql # use DIV operator for integer division
query I rowsort label-161
SELECT col0 + col1 DIV + col0 FROM tab2 AS cor0
----
11
78
79
skipif mysql # not compatible
query I rowsort label-161
SELECT col0 + col1 / + col0 FROM tab2 AS cor0
----
11
78
79
query I rowsort
SELECT - 30 * - col2 FROM tab2
----
1140
780
810
query I rowsort
SELECT - 66 * col2 * col2 AS col1 FROM tab2
----
-44616
-48114
-95304
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + 27 * + col2 col1 FROM tab0 AS cor0
----
2132
26
858
query I rowsort
SELECT + cor0.col1 * - col1 + cor0.col1 * col2 FROM tab2 AS cor0
----
-124
-1947
357
onlyif mysql # use DIV operator for integer division
query I rowsort label-166
SELECT + col0 DIV 89 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-166
SELECT + col0 / 89 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 * + 1 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + tab0.col2 * - tab0.col0 AS col2 FROM tab0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-169
SELECT DISTINCT - col0 + - CAST( col1 AS SIGNED ) * col2 - - col2 * + cor0.col0 FROM tab0 AS cor0
----
-2070
-253
-97
skipif mysql # not compatible
query I rowsort label-169
SELECT DISTINCT - col0 + - CAST ( col1 AS INTEGER ) * col2 - - col2 * + cor0.col0 FROM tab0 AS cor0
----
-2070
-253
-97
query I rowsort
SELECT + - col0 + - col2 - col1 FROM tab2 AS cor0
----
-134
-163
-65
query I rowsort
SELECT ALL - + col0 * + 83 + 88 * - cor0.col1 + 63 AS col2 FROM tab1 AS cor0
----
-2474
-6129
-7721
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 84 - col0 col2 FROM tab0
----
-5
49
60
query I rowsort
SELECT DISTINCT - 40 * - col2 * 32 + - col0 * tab1.col2 - - col0 FROM tab1
----
115280
68961
69376
query I rowsort
SELECT 92 + - col2 * + 62 - + col1 AS col1 FROM tab2
----
-1579
-1613
-2281
query I rowsort
SELECT ALL + col2 + + tab1.col2 - + 25 * - 67 AS col0 FROM tab1
----
1783
1789
1867
query I rowsort
SELECT DISTINCT col2 + + tab2.col1 AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT - col2 * ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + col1 + - 67 + cor0.col2 AS col0 FROM tab1 AS cor0
----
0
13
42
query I rowsort
SELECT DISTINCT - col1 * ( + 56 * - col0 + + col1 * col0 ) AS col2 FROM tab2 AS cor0
----
-13806
52377
5425
query I rowsort
SELECT DISTINCT + col0 * 25 * col2 + - col0 + - col1 AS col0 FROM tab0 AS cor0
----
182270
19690
743
query I rowsort
SELECT - col0 * + cor0.col0 * + col1 + + col1 AS col2 FROM tab2 cor0
----
-106080
-1488
-358897
query I rowsort
SELECT DISTINCT - + col0 * col2 AS col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL col1 + cor0.col0 AS col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT ALL col0 + - col1 * col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-185
SELECT DISTINCT - cor0.col0 * - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT - cor0.col0 * - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + - col2 * 71 AS col1 FROM tab1 AS cor0
----
-3834
-4047
-6816
onlyif mysql # use DIV operator for integer division
query I rowsort label-187
SELECT DISTINCT - - col0 DIV cor0.col0 col1 FROM tab2 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-187
SELECT DISTINCT - - col0 / cor0.col0 col1 FROM tab2 AS cor0
----
1
query I rowsort
SELECT DISTINCT col0 * - tab0.col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT cor0.col0 * cor0.col2 + - col1 * + ( col1 ) FROM tab1 AS cor0
----
-514
3548
7511
query I rowsort
SELECT DISTINCT 34 + col1 AS col0 FROM tab0 AS cor0
----
120
125
131
query I rowsort
SELECT ALL + + 23 FROM tab2 cor0
----
23
23
23
query I rowsort
SELECT + + 76 * + col1 AS col1 FROM tab1 AS cor0
----
1976
760
988
query I rowsort
SELECT + col1 * + cor0.col1 * + col1 - col1 AS col0 FROM tab0 AS cor0
----
635970
753480
912576
query I rowsort
SELECT ALL - col1 * + col1 + - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-3559
-368
-968
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 * cor0.col2 + CAST ( + 39 AS REAL ) + + col0 AS col1 FROM tab1 AS cor0
----
-120
-3545
-7561
query I rowsort
SELECT DISTINCT + 11 * col0 + + col2 * col0 AS col0 FROM tab1 cor0
----
195
4352
8560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + + col1 col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT DISTINCT col0 * + col2 + ( col1 ) * + col1 FROM tab1 AS cor0
----
3748
7849
838
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-199
SELECT ALL + + col2 * - col0 + + CAST( + 75 AS SIGNED ) FROM tab1 cor0
----
-3573
-7605
-87
skipif mysql # not compatible
query I rowsort label-199
SELECT ALL + + col2 * - col0 + + CAST ( + 75 AS INTEGER ) FROM tab1 cor0
----
-3573
-7605
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-200
SELECT col1 DIV + col1 + ( + col2 ) AS col1 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-200
SELECT col1 / + col1 + ( + col2 ) AS col1 FROM tab1
----
55
58
97
query I rowsort
SELECT + + cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT DISTINCT - col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT col1 * - col0 - + col1 * 38 AS col2 FROM tab1 AS cor0
----
-1020
-1066
-1534
query I rowsort
SELECT DISTINCT + col0 + col2 * ( + 4 + col2 ) FROM tab1 AS cor0
----
3135
3541
9680
query I rowsort
SELECT ALL - col1 + col0 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-29
-3
-77
query I rowsort
SELECT - col1 * col1 + 38 * col1 FROM tab1 AS cor0
----
280
312
325
query I rowsort
SELECT DISTINCT col0 * + cor0.col0 + col2 + 29 FROM tab0 AS cor0
----
1255
638
8032
query I rowsort
SELECT ALL - col2 * - cor0.col1 - - cor0.col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL + + col0 + col1 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT 15 * 47 + col1 AS col0 FROM tab0 AS cor0
----
791
796
802
query I rowsort
SELECT DISTINCT + + 75 * - 92 - - col0 * + col0 * col0 FROM tab0 AS cor0
----
35975
6924
698069
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 85 + col1 * - col1 col2 FROM tab2 AS cor0
----
-1046
-3566
-374
query I rowsort
SELECT + + col1 + + 49 AS col0 FROM tab0 AS cor0
----
135
140
146
query I rowsort
SELECT ALL col2 * 85 - + col2 AS col1 FROM tab0 AS cor0
----
2772
6888
84
query I rowsort
SELECT ALL - 44 * - cor0.col1 + col1 * col0 AS col0 FROM tab0 AS cor0
----
12103
5848
7663
query I rowsort
SELECT + 12 + col1 AS col2 FROM tab2 AS cor0
----
29
43
71
query I rowsort
SELECT DISTINCT + + col0 * col0 + + col2 AS col0 FROM tab1 cor0
----
4153
63
6496
query I rowsort
SELECT ALL + col2 * col1 + col1 + - col0 FROM tab1
----
1181
1427
516
query I rowsort
SELECT ALL 46 AS col1 FROM tab2
----
46
46
46
query I rowsort
SELECT ALL + ( + ( + col0 ) ) AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL 44 FROM tab0, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT ALL + + 53 * col0 + cor0.col2 * col2 FROM tab0 AS cor0
----
11441
1856
2361
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + ( col0 ) * col2 * 1 col0 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-225
SELECT ALL - col2 DIV + CAST( 47 AS SIGNED ) col1 FROM tab1 AS cor0
----
-1
-1
-2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-225
SELECT ALL - col2 / + CAST ( 47 AS INTEGER ) col1 FROM tab1 AS cor0
----
-1
-1
-2
query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col1 + + 64 FROM tab0 cor0
----
-2774
-33
-7398
query I rowsort
SELECT DISTINCT cor0.col2 + + 48 * ( col2 ) AS col2 FROM tab2 AS cor0
----
1274
1323
1862
query I rowsort
SELECT - 97 AS col0 FROM tab1, tab1 cor0, tab1 cor1
----
27 values hashing to 12bd12d33f03250bee508c5641e140d5
onlyif mysql # use DIV operator for integer division
query I rowsort label-229
SELECT DISTINCT tab2.col2 DIV col0 FROM tab2
----
0
3
skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT tab2.col2 / col0 FROM tab2
----
0
3
query I rowsort
SELECT ALL 36 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
onlyif mysql # use DIV operator for integer division
query I rowsort label-231
SELECT + ( - 13 ) DIV + col0 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-231
SELECT + ( - 13 ) / + col0 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT ( col1 ) * + col2 AS col1 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-233
SELECT CAST( - 44 AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79
skipif mysql # not compatible
query I rowsort label-233
SELECT CAST ( - 44 AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79
query I rowsort
SELECT DISTINCT - 98 * col2 AS col0 FROM tab1 AS cor0
----
-5292
-5586
-9408
query I rowsort
SELECT ALL - 99 * + col2 AS col1 FROM tab1 cor0
----
-5346
-5643
-9504
query I rowsort
SELECT ALL 68 FROM tab0, tab0 cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT ALL - + cor0.col0 * - col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-238
SELECT DISTINCT cor0.col1 * col0 * col0 + + col1 / - col2 + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT cor0.col1 * col0 * col0 + + col1 / - col2 + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + - ( col2 ) FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT 55 * col2 + + 47 AS col1 FROM tab2 AS cor0
----
1477
1532
2137
query I rowsort
SELECT col0 + - col2 + col2 * col1 AS col0 FROM tab1 AS cor0
----
1232
1353
577
query I rowsort
SELECT - cor0.col0 * - col1 + + 22 + + col2 * + 80 AS col2 FROM tab1 AS cor0
----
4420
5222
8742
query I rowsort
SELECT 62 + col0 AS col0 FROM tab2
----
140
141
69
query I rowsort
SELECT + - cor0.col0 AS col1 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT + 85 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7
query I rowsort
SELECT ALL + col0 * 38 + + 42 FROM tab0
----
1372
3424
954
query I rowsort
SELECT col2 * + 38 + col1 * col0 FROM tab1 AS cor0
----
2130
2806
4688
query I rowsort
SELECT DISTINCT col2 + col2 * 22 AS col2 FROM tab1 AS cor0
----
1242
1311
2208
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 26 col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4e49eac022daeae6f88f610644ba3754
query I rowsort
SELECT col2 * 73 + + col2 AS col1 FROM tab2 cor0
----
1924
1998
2812
query I rowsort
SELECT DISTINCT + 37 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
37
query I rowsort
SELECT DISTINCT 14 * cor0.col2 AS col2 FROM tab2, tab0 AS cor0
----
1148
14
462
query I rowsort
SELECT DISTINCT col2 * + col2 - + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT + + col1 + + col2 * - cor0.col0 * + col0 FROM tab1 AS cor0
----
-233462
-460
-614387
query I rowsort
SELECT ( 36 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT ALL + 12 + 51 - cor0.col1 * - ( - col2 ) FROM tab1 AS cor0
----
-1185
-1341
-507
query I rowsort
SELECT DISTINCT - 83 + col2 * + col1 FROM tab0 AS cor0
----
14
2755
7379
query I rowsort
SELECT + - 82 * - ( col2 ) FROM tab2 AS cor0
----
2132
2214
3116
query I rowsort
SELECT - 5 * cor0.col1 FROM tab2 AS cor0
----
-155
-295
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-260
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-260
SELECT DISTINCT + + CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
query I rowsort
SELECT ALL - + 53 * col2 AS col1 FROM tab1 AS cor0
----
-2862
-3021
-5088
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + - col2 col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - + 37 FROM tab1 AS cor0
----
-37
-37
-37
query I rowsort
SELECT DISTINCT - cor0.col0 + - col0 AS col1 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT DISTINCT - col2 + 42 * + ( + col1 ) * - col2 AS col0 FROM tab1
----
-23997
-52512
-59022
query I rowsort
SELECT - 29 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + cor0.col1 col1 FROM tab0 cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-268
SELECT CAST( - col2 AS SIGNED ) DIV col0 AS col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-268
SELECT CAST ( - col2 AS INTEGER ) / col0 AS col0 FROM tab1
----
-1
-18
0
query I rowsort
SELECT cor0.col0 * col0 + col2 AS col0 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT + ( col1 ) - - cor0.col2 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ( col1 ) * col1 FROM tab0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-272
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0, tab1, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0, tab1, tab2 AS cor0
----
NULL
query I rowsort
SELECT col2 * - col0 - - col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT - cor0.col1 * + col2 + - col0 + - col1 AS col1 FROM tab0 AS cor0
----
-229
-2948
-7642
query I rowsort
SELECT - - col0 * - cor0.col1 - + col1 * - col2 FROM tab1 AS cor0
----
-70
1326
208
query I rowsort
SELECT + - 31 FROM tab1 AS cor0
----
-31
-31
-31
query I rowsort
SELECT DISTINCT + 9 * col1 + col0 FROM tab2 AS cor0
----
232
286
609
query I rowsort
SELECT ( - 60 ) FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 17ea60db8bdc9b534fe91b7fd55df3f9
query I rowsort
SELECT DISTINCT + + 34 + 10 FROM tab1 cor0
----
44
query I rowsort
SELECT ALL + cor0.col0 * - 2 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col2 - col2 AS col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT - col1 + 43 * + col0 AS col2 FROM tab2 AS cor0
----
270
3295
3380
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-283
SELECT - - CAST( 98 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
98
98
98
skipif mysql # not compatible
query I rowsort label-283
SELECT - - CAST ( 98 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
98
98
98
query I rowsort
SELECT DISTINCT - cor1.col1 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - - 81 AS col0 FROM tab1 AS cor0
----
81
query I rowsort
SELECT - + ( - ( - col0 ) ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + 46 FROM tab2, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT ALL + ( col2 ) - col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT - + 42 * - cor0.col1 - col1 * col1 * - col1 FROM tab1 cor0
----
1420
18668
2743
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-290
SELECT ALL ( - col2 ) + - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-21
33
4
skipif mysql # not compatible
query I rowsort label-290
SELECT ALL ( - col2 ) + - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT col1 + col2 * + col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT + - col2 * col1 - col0 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT ALL + 3 AS col0 FROM tab1
----
3
3
3
query I rowsort
SELECT 48 + col1 FROM tab2
----
107
65
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-295
SELECT DISTINCT ( 49 ) + + col2 - - CAST( NULL AS SIGNED ) * + ( col1 ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-295
SELECT DISTINCT ( 49 ) + + col2 - - CAST ( NULL AS INTEGER ) * + ( col1 ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT col1 - 52 AS col2 FROM tab1
----
-26
-39
-42
query I rowsort
SELECT DISTINCT + 95 - + col2 AS col0 FROM tab0
----
13
62
94
query I rowsort
SELECT - col1 + ( + col0 ) * 27 * col1 + + col0 AS col2 FROM tab1
----
17334
2083
28147
query I rowsort
SELECT ALL - cor0.col1 * - col0 * col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT ALL - - col1 + cor0.col0 + + 77 * cor0.col2 FROM tab1 AS cor0
----
4187
4463
7485
query I rowsort
SELECT 13 * tab0.col0 AS col2 FROM tab0
----
1157
312
455
query I rowsort
SELECT ALL - + cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL col2 * 73 FROM tab2 AS cor0
----
1898
1971
2774
query I rowsort
SELECT + col1 * - 13 AS col0 FROM tab2 AS cor0
----
-221
-403
-767
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 + col2 * - 46 col2 FROM tab0
----
-1408
-3592
86
query I rowsort
SELECT ALL 49 * tab1.col1 + 6 AS col0 FROM tab1
----
1280
496
643
query I rowsort
SELECT tab0.col0 * col1 * - tab0.col2 + + col1 * + col1 AS col0 FROM tab0
----
-60716
-655837
6014
query I rowsort
SELECT + col0 + + tab1.col2 * + ( 93 ) * col0 + + ( col2 * col1 + ( col2 ) * col1 ) AS col1 FROM tab1
----
17877
340468
716816
query I rowsort
SELECT DISTINCT + 64 AS col2 FROM tab1, tab2 AS cor0
----
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-310
SELECT col2 * + 32 + 9 DIV + col2 AS col2 FROM tab1
----
1728
1824
3072
skipif mysql # not compatible
query I rowsort label-310
SELECT col2 * + 32 + 9 / + col2 AS col2 FROM tab1
----
1728
1824
3072
query I rowsort
SELECT ALL - 33 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03
query I rowsort
SELECT ALL - cor0.col2 - + col2 * + col2 FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT col0 + - 36 * - col0 FROM tab2 AS cor0
----
259
2886
2923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-314
SELECT ALL col2 * - CAST( + col1 AS SIGNED ) AS col0 FROM tab0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-314
SELECT ALL col2 * - CAST ( + col1 AS INTEGER ) AS col0 FROM tab0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-315
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) * 71 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-315
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) * 71 FROM tab0 cor0
----
NULL
query I rowsort
SELECT ALL - col1 * 83 AS col1 FROM tab0 cor0
----
-7138
-7553
-8051
query I rowsort
SELECT - cor0.col0 + col0 * - col2 AS col2 FROM tab1 cor0
----
-165
-3712
-7760
query I rowsort
SELECT ALL + 24 + - col1 * + col0 FROM tab2 AS cor0
----
-1319
-193
-4578
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 + - 83 col0 FROM tab1 AS cor0
----
-80
-80
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-320
SELECT DISTINCT CAST( col2 AS SIGNED ) * - col2 + 37 * + cor0.col1 - col1 * 72 * + col0 AS col2 FROM tab0 AS cor0
----
-146515
-240852
-586485
skipif mysql # not compatible
query I rowsort label-320
SELECT DISTINCT CAST ( col2 AS INTEGER ) * - col2 + 37 * + cor0.col1 - col1 * 72 * + col0 AS col2 FROM tab0 AS cor0
----
-146515
-240852
-586485
query I rowsort
SELECT DISTINCT col1 * ( col0 ) AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - 25 + - 18 FROM tab2 AS cor0
----
-43
-43
-43
query I rowsort
SELECT ALL col1 * 98 + col2 * 39 + 60 FROM tab1 AS cor0
----
3263
4714
5078
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 77 * + 53 col1 FROM tab2 AS cor0
----
4081
4081
4081
query I rowsort
SELECT DISTINCT col2 * col0 - col1 AS col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL + col1 + 35 FROM tab2 AS cor0
----
52
66
94
query I rowsort
SELECT - - cor0.col2 * + col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - cor0.col2 + + ( col0 * col2 ) FROM tab0 AS cor0
----
34
7216
759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + col2 ) col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + + col0 * col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT ALL + 38 * cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cb940a3e1552a9bda46d0d76a4dc0bc8
query I rowsort
SELECT + + 36 + - col2 FROM tab2 AS cor0
----
-2
10
9
query I rowsort
SELECT DISTINCT - col0 * - col1 * col0 AS col1 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT + col1 + col1 * 10 AS col2 FROM tab0 AS cor0
----
1001
1067
946
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 + + col1 col1 FROM tab2
----
-272
-3422
-930
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-336
SELECT ALL - + col0 * + col1 + - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-336
SELECT ALL - + col0 * + col1 + - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * + col2 + - col1 AS col2 FROM tab2 AS cor0
----
158
1969
2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-338
SELECT DISTINCT 84 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-338
SELECT DISTINCT 84 / - col1 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - col2 + col2 * 2 AS col0 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 25 * - cor0.col2 + col2 col1 FROM tab0 AS cor0
----
-1968
-24
-792
query I rowsort
SELECT ALL + + col1 + col1 AS col0 FROM tab0 cor0
----
172
182
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-342
SELECT ALL + - 76 DIV + col1 col2 FROM tab2 AS cor0
----
-1
-2
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-342
SELECT ALL + - 76 / + col1 col2 FROM tab2 AS cor0
----
-1
-2
-4
query I rowsort
SELECT + col2 * cor0.col0 - 68 FROM tab0 AS cor0
----
-33
7230
724
query I rowsort
SELECT ALL + 42 AS col2 FROM tab0 cor0
----
42
42
42
query I rowsort
SELECT ALL - ( - col0 ) * col2 + + col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT - 11 * col0 + 5 AS col2 FROM tab2 AS cor0
----
-72
-853
-864
query I rowsort
SELECT + + col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-348
SELECT ALL + col0 DIV 14 FROM tab0 AS cor0
----
1
2
6
skipif mysql # not compatible
query I rowsort label-348
SELECT ALL + col0 / 14 FROM tab0 AS cor0
----
1
2
6
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2, tab1 cor2
----
3645 values hashing to 1b06ddc48fd89ff2b1df6d82072316da
query I rowsort
SELECT - cor0.col2 + cor0.col0 * - cor0.col0 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 9ec5f38c7ef48b9779a1a23207e48f59
query I rowsort
SELECT DISTINCT cor0.col2 * + 16 * 55 AS col1 FROM tab2 AS cor0
----
22880
23760
33440
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-352
SELECT col1 * CAST( NULL AS SIGNED ) + col2 / cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-352
SELECT col1 * CAST ( NULL AS INTEGER ) + col2 / cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 24 + col2 * + ( - col0 ) * col1 AS col0 FROM tab2 AS cor0
----
-119628
-51010
-5835
query I rowsort
SELECT - - cor0.col2 + - col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + - col2 + - col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT + ( - cor0.col2 ) FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ( - col2 ) * + col2 * col0 + col2 * - col1 FROM tab1 AS cor0
----
-10152
-208506
-738528
query I rowsort
SELECT ALL - 13 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2
query I rowsort
SELECT - col0 + + col2 AS col0 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT col0 * + col2 + col0 * + col2 FROM tab2 AS cor0
----
378
4056
6004
query I rowsort
SELECT 17 AS col0 FROM tab1 cor0
----
17
17
17
query I rowsort
SELECT - ( tab1.col1 * + col2 ) FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL 20 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4
onlyif mysql # use DIV operator for integer division
query I rowsort label-364
SELECT + - col2 DIV - 24 + - cor0.col2 + col1 FROM tab1 AS cor0
----
-26
-45
-79
skipif mysql # not compatible
query I rowsort label-364
SELECT + - col2 / - 24 + - cor0.col2 + col1 FROM tab1 AS cor0
----
-26
-45
-79
query I rowsort
SELECT DISTINCT - cor0.col1 * - cor1.col2 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
9 values hashing to 1d94ea086ff4b04d01d3c46ff83c5c3d
query I rowsort
SELECT ( - col0 ) * - col1 * - ( + col1 ) AS col2 FROM tab1
----
-13520
-2028
-6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-367
SELECT DISTINCT - tab2.col0 DIV + 28 FROM tab2
----
-2
0
skipif mysql # not compatible
query I rowsort label-367
SELECT DISTINCT - tab2.col0 / + 28 FROM tab2
----
-2
0
query I rowsort
SELECT + tab1.col0 * + 46 * col0 AS col2 FROM tab1
----
188416
294400
414
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 * 5 + + col1 * 22 + 43 * col0 col0 FROM tab2 AS cor0
----
1338
4126
5007
query I rowsort
SELECT + col2 * + col2 + + col0 * 5 FROM tab2 AS cor0
----
1066
1839
764
query I rowsort
SELECT + col2 - + col1 * col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT + 59 FROM tab2, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT - ( 48 ) * cor0.col0 FROM tab0 AS cor0
----
-1152
-1680
-4272
query I rowsort
SELECT - cor0.col2 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT ALL - col1 + cor0.col0 * + ( col2 ) FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT + 90 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 col1 FROM tab2, tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL - + 7 FROM tab1 AS cor0
----
-7
-7
-7
query I rowsort
SELECT ALL 56 * 9 FROM tab1, tab1 AS cor0
----
9 values hashing to 2a3b241c9d2509836ef0873d98e29b7b
query I rowsort
SELECT + 70 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-381
SELECT DISTINCT - cor0.col0 - CAST( col2 * + col1 + ( ( col0 ) ) * + col2 AS SIGNED ) FROM tab2 cor0
----
-1033
-3640
-3727
skipif mysql # not compatible
query I rowsort label-381
SELECT DISTINCT - cor0.col0 - CAST ( col2 * + col1 + ( ( col0 ) ) * + col2 AS INTEGER ) FROM tab2 cor0
----
-1033
-3640
-3727
query I rowsort
SELECT + ( + ( col2 ) ) - - ( + col1 ) AS col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + ( 89 ) + cor0.col1 * + 73 FROM tab0 AS cor0
----
6367
6732
7170
query I rowsort
SELECT col0 + col1 + - col0 * - 43 AS col1 FROM tab0 AS cor0
----
1142
1637
4007
query I rowsort
SELECT ALL + ( - col0 ) * col0 * + ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 + 41 col0 FROM tab2 AS cor0
----
99
99
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-387
SELECT - 95 + 22 * + col2 - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-387
SELECT - 95 + 22 * + col2 - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
onlyif mysql # use DIV operator for integer division
query I rowsort label-389
SELECT - ( - col1 ) DIV col0 + col0 AS col2 FROM tab0 cor0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-389
SELECT - ( - col1 ) / col0 + col0 AS col2 FROM tab0 cor0
----
27
37
90
query I rowsort
SELECT ALL + col0 + 47 * - col0 + - col1 AS col2 FROM tab0 AS cor0
----
-1190
-1707
-4185
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-391
SELECT DISTINCT + CAST( - 22 AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
1958
528
770
skipif mysql # not compatible
query I rowsort label-391
SELECT DISTINCT + CAST ( - 22 AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
1958
528
770
query I rowsort
SELECT ALL - + cor0.col1 AS col0 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT tab2.col0 FROM tab2, tab0, tab0 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - tab0.col2 * tab0.col1 * tab0.col1 AS col1 FROM tab0
----
-244068
-679042
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 20 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-396
SELECT ALL + + col1 * col2 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-396
SELECT ALL + + col1 * col2 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( - col1 ) + + col0 AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT 73 + cor0.col1 AS col2 FROM tab2 AS cor0
----
104
132
90
query I rowsort
SELECT + + 68 * + col0 + 93 AS col2 FROM tab1 AS cor0
----
297
4445
5533
query I rowsort
SELECT DISTINCT - 1 - - col1 * col0 * 63 AS col0 FROM tab2 AS cor0
----
13670
289925
84608
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + col0 * col2 + col0 * + col1 col1 FROM tab1 AS cor0
----
234112
564
615440
query I rowsort
SELECT ALL + - 88 + - col0 * - cor0.col0 * col2 FROM tab2 AS cor0
----
1235
158096
237070
query I rowsort
SELECT - col1 * - cor0.col2 + + cor0.col0 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-404
SELECT - col1 DIV col1 + col0 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-404
SELECT - col1 / col1 + col0 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT ALL + 62 * - col2 + + ( - col2 ) * + cor0.col2 FROM tab2 AS cor0
----
-2288
-2403
-3800
onlyif mysql # use DIV operator for integer division
query I rowsort label-406
SELECT + - col2 DIV col0 AS col2 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-406
SELECT + - col2 / col0 AS col2 FROM tab2 AS cor0
----
-3
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-407
SELECT - col1 * ( - col1 ) DIV col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-407
SELECT - col1 * ( - col1 ) / col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + + col2 + - 23 AS col1 FROM tab2 cor0
----
15
3
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 + col2 col2 FROM tab2 AS cor0
----
-251
-3455
-934
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-410
SELECT ALL - + col0 + + CAST( col2 AS SIGNED ) * + col2 col2 FROM tab2 AS cor0
----
1365
598
722
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-410
SELECT ALL - + col0 + + CAST ( col2 AS INTEGER ) * + col2 col2 FROM tab2 AS cor0
----
1365
598
722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 91 ) * + cor1.col1 col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to b08d35afc80bb9ef4a8fc28ffa0c29fa
query I rowsort
SELECT 61 + col1 AS col1 FROM tab2
----
120
78
92
query I rowsort
SELECT + col0 + - col2 * col2 FROM tab2
----
-1365
-598
-722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 col2 FROM tab1, tab0 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
onlyif mysql # use DIV operator for integer division
query I rowsort label-415
SELECT DISTINCT ( col0 ) DIV - 86 AS col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-415
SELECT DISTINCT ( col0 ) / - 86 AS col2 FROM tab1
----
0
query I rowsort
SELECT - - 0 + 96 * col1 AS col2 FROM tab1 AS cor0
----
1248
2496
960
query I rowsort
SELECT ALL - + ( 99 ) AS col2 FROM tab0 AS cor0
----
-99
-99
-99
query I rowsort
SELECT ALL + 53 + col1 FROM tab1 AS cor0
----
63
66
79
query I rowsort
SELECT DISTINCT - + cor0.col2 * 25 + - col2 FROM tab1 AS cor0
----
-1404
-1482
-2496
query I rowsort
SELECT ALL + col0 + - cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
-17
141
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 * + col1 col2 FROM tab0 AS cor0
----
8514
9009
9603
query I rowsort
SELECT DISTINCT cor0.col1 + - col2 * cor0.col2 + 72 FROM tab1 cor0
----
-2818
-3167
-9131
query I rowsort
SELECT ALL 58 * 11 AS col1 FROM tab1 AS cor0
----
638
638
638
query I rowsort
SELECT - 83 * col0 + col0 FROM tab0 AS cor0
----
-1968
-2870
-7298
query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) * col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT col1 * - 25 + 52 FROM tab1
----
-198
-273
-598
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col2 col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL tab0.col1 * tab0.col0 + - col0 AS col1 FROM tab0
----
2040
3360
8010
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to d10b928ceb6690f7c98bfe77a5adfcac
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 69 * 29 + col0 col2 FROM tab1 AS cor0
----
2004
2065
2081
query I rowsort
SELECT col1 * - col1 + col0 AS col1 FROM tab2 cor0
----
-210
-3403
-954
query I rowsort
SELECT 36 + + col0 AS col1 FROM tab0 cor0
----
125
60
71
query I rowsort
SELECT DISTINCT col1 + - ( + col1 * tab2.col1 + col0 ) FROM tab2
----
-3500
-351
-937
onlyif mysql # use DIV operator for integer division
query I rowsort label-434
SELECT + ( - col0 ) * - 41 + + cor0.col0 DIV col0 AS col2 FROM tab0 cor0
----
1436
3650
985
skipif mysql # not compatible
query I rowsort label-434
SELECT + ( - col0 ) * - 41 + + cor0.col0 / col0 AS col2 FROM tab0 cor0
----
1436
3650
985
query I rowsort
SELECT ALL col2 + 9 FROM tab1
----
105
63
66
query I rowsort
SELECT col2 + 48 AS col1 FROM tab1
----
102
105
144
query I rowsort
SELECT + ( col1 + 6 ) AS col0 FROM tab2
----
23
37
65
query I rowsort
SELECT + + 19 + cor0.col1 FROM tab1 AS cor0
----
29
32
45
query I rowsort
SELECT ALL - 69 * + col1 FROM tab0 cor0
----
-5934
-6279
-6693
query I rowsort
SELECT DISTINCT + 71 * col2 AS col2 FROM tab1 AS cor0
----
3834
4047
6816
query I rowsort
SELECT - col1 * col0 + + 51 AS col1 FROM tab0 AS cor0
----
-2013
-3344
-8048
query I rowsort
SELECT ALL - + col0 + col1 - 76 FROM tab2 AS cor0
----
-138
-52
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-443
SELECT DISTINCT - ( col1 ) DIV ( + col1 ) AS col0 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT - ( col1 ) / ( + col1 ) AS col0 FROM tab0 AS cor0
----
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-444
SELECT ALL - col0 + - col1 * CAST( + col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
-2088
-3430
-8188
skipif mysql # not compatible
query I rowsort label-444
SELECT ALL - col0 + - col1 * CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
-2088
-3430
-8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-445
SELECT + col1 + + col1 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-445
SELECT + col1 + + col1 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 - cor0.col1 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL + col2 * - ( col0 ) AS col0 FROM tab0
----
-35
-7298
-792
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to 1a92b418ae3c05ba566f88a890a407ae
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * ( 5 ) + col0 col2 FROM tab2 AS cor0
----
142
208
269
query I rowsort
SELECT ALL - col0 * + col0 + + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-6887
-7618
-886
query I rowsort
SELECT ALL + col0 * ( ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-452
SELECT DISTINCT + col2 DIV + cor0.col1 + col0 * cor0.col0 FROM tab2 AS cor0
----
49
6084
6243
skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT + col2 / + cor0.col1 + col0 * cor0.col0 FROM tab2 AS cor0
----
49
6084
6243
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-453
SELECT CAST( NULL AS SIGNED ) / - 93 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-453
SELECT CAST ( NULL AS INTEGER ) / - 93 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT 15 + 30 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT DISTINCT cor1.col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
26
27
38
query I rowsort
SELECT ALL col1 + + col0 * + col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ( - 77 ) * + col2 AS col2 FROM tab0 AS cor0
----
-2541
-6314
-77
query I rowsort
SELECT + 56 + 63 * - tab2.col0 FROM tab2
----
-385
-4858
-4921
onlyif mysql # use DIV operator for integer division
query I rowsort label-459
SELECT + + 69 - col1 DIV col1 FROM tab1 AS cor0
----
68
68
68
skipif mysql # not compatible
query I rowsort label-459
SELECT + + 69 - col1 / col1 FROM tab1 AS cor0
----
68
68
68
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab1 cor1, tab0 AS cor2
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f
query I rowsort
SELECT ALL + - cor0.col0 * col2 + + cor0.col0 * col0 FROM tab2 AS cor0
----
-140
3239
4056
query I rowsort
SELECT col2 * - 13 FROM tab0 AS cor0
----
-1066
-13
-429
onlyif mysql # use DIV operator for integer division
query I rowsort label-463
SELECT ALL - + 1 DIV - 65 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-463
SELECT ALL - + 1 / - 65 AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-464
SELECT - col2 DIV col0 col2 FROM tab1 AS cor0
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-464
SELECT - col2 / col0 col2 FROM tab1 AS cor0
----
-1
-18
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-465
SELECT - col2 DIV + col0 - - 12 * + col1 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
-24769
-40740
-97188
skipif mysql # not compatible
query I rowsort label-465
SELECT - col2 / + col0 - - 12 * + col1 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
-24769
-40740
-97188
onlyif mysql # use DIV operator for integer division
query I rowsort label-466
SELECT + col1 + + col2 DIV + col2 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-466
SELECT + col1 + + col2 / + col2 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT 73 * + col1 + - 65 + 37 AS col2 FROM tab2
----
1213
2235
4279
query I rowsort
SELECT - 70 * - tab2.col0 + 16 FROM tab2
----
506
5476
5546
query I rowsort
SELECT - col2 + - 38 AS col0 FROM tab2 AS cor0
----
-64
-65
-76
query I rowsort
SELECT + col2 + - cor0.col1 AS col1 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT + - col0 * 98 + + col1 FROM tab0 AS cor0
----
-2266
-3333
-8631
query I rowsort
SELECT + col2 + 15 * col0 AS col2 FROM tab2 cor0
----
1196
1223
132
query I rowsort
SELECT + col1 * + 83 + - tab2.col1 + - col2 AS col1 FROM tab2
----
1356
2515
4812
query I rowsort
SELECT col2 * + 56 AS col1 FROM tab0
----
1848
4592
56
query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ( 96 ) FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to e03080212e3345d8b37e64e3264019c4
query I rowsort
SELECT - - col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - col1 + + col0 AS col1 FROM tab0
----
-2
-62
query I rowsort
SELECT ALL + + 87 - - col2 AS col1 FROM tab0 AS cor0
----
120
169
88
query I rowsort
SELECT - 76 * col2 FROM tab0 AS cor0
----
-2508
-6232
-76
query I rowsort
SELECT - - col0 + col1 * col1 AS col0 FROM tab1 cor0
----
164
249
679
query I rowsort
SELECT + 84 * col2 AS col0 FROM tab1
----
4536
4788
8064
query I rowsort
SELECT ALL + 4 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-484
SELECT col0 / + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-484
SELECT col0 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * - ( + col0 ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT 49 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
49
query I rowsort
SELECT DISTINCT + col2 - 88 FROM tab1
----
-31
-34
8
query I rowsort
SELECT + col1 + + col2 - + col1 * - col0 FROM tab0
----
2183
3493
8272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT DISTINCT col2 * + col0 - - col0 AS col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT + col2 * 37 * - col0 + - col2 * + col0 - col0 FROM tab1
----
-138688
-291920
-6159
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-492
SELECT col2 - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-492
SELECT col2 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * + 64 AS col1 FROM tab2 AS cor0
----
448
4992
5056
query I rowsort
SELECT ALL 85 + tab2.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to e4c1291c249f1da56499b2fd9f6aa618
query I rowsort
SELECT DISTINCT - 55 * - col1 AS col1 FROM tab1
----
1430
550
715
query I rowsort
SELECT + 70 * - col1 AS col1 FROM tab0 AS cor0
----
-6020
-6370
-6790
query I rowsort
SELECT + ( - col1 ) * col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - 88 AS col0 FROM tab0 cor0
----
-88
-88
-88
query I rowsort
SELECT + + col0 * - col1 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-500
SELECT + col0 DIV + col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-500
SELECT + col0 / + col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + 15 * - cor0.col2 * + ( 67 ) FROM tab2 AS cor0
----
-26130
-27135
-38190
query I rowsort
SELECT DISTINCT 11 * col1 + col0 AS col1 FROM tab1
----
174
223
289
query I rowsort
SELECT - 4 * col1 + - ( - 16 ) AS col2 FROM tab1 AS cor0
----
-24
-36
-88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-504
SELECT ALL - CAST( ( col2 ) * col1 AS SIGNED ) + + col0 + tab2.col0 * 36 * col0 FROM tab2
----
217568
224109
934
skipif mysql # not compatible
query I rowsort label-504
SELECT ALL - CAST ( ( col2 ) * col1 AS INTEGER ) + + col0 + tab2.col0 * 36 * col0 FROM tab2
----
217568
224109
934
onlyif mysql # use DIV operator for integer division
query I rowsort label-505
SELECT + col0 DIV 24 + - col0 * + col0 - cor0.col1 FROM tab1 cor0
----
-35
-4104
-6410
skipif mysql # not compatible
query I rowsort label-505
SELECT + col0 / 24 + - col0 * + col0 - cor0.col1 FROM tab1 cor0
----
-35
-4104
-6410
query I rowsort
SELECT DISTINCT + + cor0.col0 + col1 AS col1 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-507
SELECT DISTINCT col2 DIV + 79 + col0 DIV - col0 AS col1 FROM tab0
----
-1
0
skipif mysql # not compatible
query I rowsort label-507
SELECT DISTINCT col2 / + 79 + col0 / - col0 AS col1 FROM tab0
----
-1
0
query I rowsort
SELECT DISTINCT - cor0.col0 * + col2 + 66 FROM tab0 AS cor0
----
-7232
-726
31
query I rowsort
SELECT ALL cor0.col1 + cor0.col0 + 60 AS col1 FROM tab0 AS cor0
----
170
192
240
query I rowsort
SELECT DISTINCT - col1 * + col1 * cor0.col1 FROM tab1 AS cor0
----
-1000
-17576
-2197
query I rowsort
SELECT + + ( + col2 ) + col2 * - col2 * col2 AS col0 FROM tab1 AS cor0
----
-157410
-185136
-884640
query I rowsort
SELECT ALL - col2 * col0 + 45 AS col0 FROM tab1 AS cor0
----
-117
-3603
-7635
query I rowsort
SELECT - 83 AS col0 FROM tab1 cor0
----
-83
-83
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - col0 col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col2 + ( 34 ) * - col0 + tab1.col2 AS col1 FROM tab1
----
-2062
-2528
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 + col0 col0 FROM tab1
----
3
64
80
query I rowsort
SELECT + col2 * ( - 24 ) + col2 * col2 - col1 FROM tab0 AS cor0
----
-120
211
4665
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-518
SELECT tab0.col2 + ( ( tab0.col0 ) ) - - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-518
SELECT tab0.col2 + ( ( tab0.col0 ) ) - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 - ( - col1 ) FROM tab0
----
119
173
98
query I rowsort
SELECT + col1 * + ( - col2 ) AS col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT col2 - 38 FROM tab0
----
-37
-5
44
query I rowsort
SELECT - 46 * + cor1.col1 * - 45 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 00808ea7e787c58a21a5c8542c0b1a58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 86 col1 FROM tab0 AS cor0
----
110
121
175
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 17 col1 FROM tab2 AS cor0
----
-442
-459
-646
query I rowsort
SELECT ALL - col2 + ( 4 ) * col2 FROM tab1 AS cor0
----
162
171
288
query I rowsort
SELECT cor2.col2 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to 291cdf20f55dc7bbcb55f561dc0b74d8
query I rowsort
SELECT DISTINCT 45 - + ( - col0 ) * - col0 FROM tab1 AS cor0
----
-4051
-6355
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * + col1 * - 86 col1 FROM tab0 AS cor0
----
-177418
-291873
-696423
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col2 col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + 71 * + col0 + - col2 AS col1 FROM tab1 cor0
----
159
4487
5584
query I rowsort
SELECT ALL col0 * ( - col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT 41 * - 52 + - col0 AS col2 FROM tab2 AS cor0
----
-2139
-2210
-2211
query I rowsort
SELECT ALL + - col1 * ( cor0.col1 ) FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - 26 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-1404
-1482
-2496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-535
SELECT + CAST( + col1 AS SIGNED ) * col1 + - 39 * col2 FROM tab0 AS cor0
----
5083
6109
9370
skipif mysql # not compatible
query I rowsort label-535
SELECT + CAST ( + col1 AS INTEGER ) * col1 + - 39 * col2 FROM tab0 AS cor0
----
5083
6109
9370
query I rowsort
SELECT DISTINCT 35 * + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-10115
-121835
-33635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 90 + - col1 * - col0 * - 80 + col0 * - col1 col0 FROM tab0 AS cor0
----
-167274
-275085
-656109
query I rowsort
SELECT ALL + - col1 * ( col0 ) AS col2 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - col2 + + col2 - col2 AS col1 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - col0 * + col2 + - col2 - - col0 FROM tab2
----
-1976
-209
-2961
query I rowsort
SELECT DISTINCT - ( - 31 ) FROM tab0 AS cor0
----
31
query I rowsort
SELECT + col1 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT col0 + + col1 * 74 - + col1 FROM tab1
----
1029
1901
794
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-544
SELECT ALL - col2 * col1 - col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-544
SELECT ALL - col2 * col1 - col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col1 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to de2705ff0bb8b4f714dafb07497c6119
query I rowsort
SELECT + - col2 * + col0 + col1 FROM tab0 cor0
----
-706
-7207
62
query I rowsort
SELECT - col0 * col2 * col2 - - cor0.col0 FROM tab1 cor0
----
-207872
-737200
-8745
query I rowsort
SELECT - + cor0.col2 * col2 + - cor0.col0 * + 95 * + col1 FROM tab0 AS cor0
----
-197169
-322526
-776129
onlyif mysql # use DIV operator for integer division
query I rowsort label-549
SELECT 63 DIV col0 + col0 col2 FROM tab1 AS cor0
----
24
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-549
SELECT 63 / col0 + col0 col2 FROM tab1 AS cor0
----
24
64
80
query I rowsort
SELECT - 73 - col1 * ( + col0 * col2 ) FROM tab2 AS cor0
----
-119725
-51107
-5932
query I rowsort
SELECT col2 + col0 * 23 AS col0 FROM tab0 AS cor0
----
2129
585
806
query I rowsort
SELECT 14 * - col1 FROM tab1
----
-140
-182
-364
query I rowsort
SELECT col0 * + 21 FROM tab1 AS cor0
----
1344
1680
63
query I rowsort
SELECT DISTINCT - - col2 - 65 AS col0 FROM tab1 AS cor0
----
-11
-8
31
query I rowsort
SELECT cor0.col2 * + col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL col0 + 82 FROM tab2 AS cor0
----
160
161
89
query I rowsort
SELECT DISTINCT - cor0.col2 - 28 AS col0 FROM tab2 AS cor0
----
-54
-55
-66
query I rowsort
SELECT DISTINCT + cor0.col0 * + col1 * + col0 + col2 * - col1 FROM tab0 AS cor0
----
118728
46698
713349
query I rowsort
SELECT col0 * - ( col1 * - cor0.col1 ) FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT ALL col0 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT cor0.col0 + tab2.col0 + 13 FROM tab2, tab2 AS cor0
----
9 values hashing to 44f11ae6f0bd423c5df55f7ad18af8e5
query I rowsort
SELECT DISTINCT ( col2 + tab1.col2 ) AS col0 FROM tab1
----
108
114
192
query I rowsort
SELECT + 8 * - col2 - + col2 * 96 AS col1 FROM tab0
----
-104
-3432
-8528
query I rowsort
SELECT ALL - col1 * col2 AS col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT 44 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 19a2b9512177749564ba22ea2213fe3f
query I rowsort
SELECT ALL + col1 + + col2 * - col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT DISTINCT col2 * col2 - 85 * col0 FROM tab2 cor0
----
-5271
-5954
134
query I rowsort
SELECT DISTINCT cor0.col1 + ( + cor0.col0 ) FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + cor0.col0 * cor0.col2 + 0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT 0 + 28 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
28
query I rowsort
SELECT DISTINCT ( - 20 ) + + cor0.col2 * + 6 FROM tab1, tab0 AS cor0
----
-14
178
472
query I rowsort
SELECT ALL + + cor0.col2 + col1 + col0 AS col0 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT col0 + ( cor0.col1 ) * - col2 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT + + col2 - - col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL - 98 AS col0 FROM tab0
----
-98
-98
-98
query I rowsort
SELECT cor0.col1 * + cor0.col2 - ( col2 ) AS col0 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT - cor0.col0 * - col0 AS col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT + col1 * - 84 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-2130
-783
-996
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 - col0 col2 FROM tab1 AS cor0
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + ( col0 ) * - col1 col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT - col1 * - ( col1 + cor0.col1 ) AS col0 FROM tab1 AS cor0
----
1352
200
338
query I rowsort
SELECT - col1 * + ( col2 ) + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT col1 - - cor0.col2 * col0 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT - col2 - - col2 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT col1 + - tab2.col0 AS col0 FROM tab2
----
-19
-62
24
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT BETWEEN ( + col2 ) AND NULL
----
query I rowsort
SELECT + col2 + + col2 * - tab1.col2 AS col1 FROM tab1
----
-2862
-3192
-9120
query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col1
----
query I rowsort
SELECT - col0 + col1 - col0 * - col2 FROM tab2
----
2009
213
2940
query I rowsort
SELECT col1 + - col0 * + col1 * col0 + col2 AS col0 FROM tab1
----
-154
-40893
-83091
query I rowsort
SELECT col2 * col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col2 * + tab1.col2 * col0 + + col2 + col2 )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - col1 )
----
query I rowsort
SELECT ALL - col0 + - col0 * col0 * + col1 AS col1 FROM tab1
----
-237
-41024
-83280
query I rowsort
SELECT tab2.col0 + tab2.col0 * col0 AS col1 FROM tab2
----
56
6162
6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 44 col0 FROM tab1 AS cor0
----
-44
-44
-44
query I rowsort
SELECT col0 + cor0.col0 * + col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT - 40 * col0 AS col0 FROM tab2 AS cor0
----
-280
-3120
-3160
query I rowsort
SELECT + + 20 AS col1 FROM tab0 AS cor0
----
20
20
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-599
SELECT + col2 + - col2 DIV 42 FROM tab0 cor0
----
1
33
81
skipif mysql # not compatible
query I rowsort label-599
SELECT + col2 + - col2 / 42 FROM tab0 cor0
----
1
33
81
query I rowsort
SELECT col1 - - col2 * col1 AS col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE col1 * col0 < NULL
----
query I rowsort
SELECT DISTINCT + col2 + - tab1.col2 AS col1 FROM tab1
----
0
query I rowsort
SELECT - 46 + + cor0.col0 FROM tab2 AS cor0
----
-39
32
33
query I rowsort
SELECT + + ( col0 ) * 12 FROM tab2 AS cor0
----
84
936
948
query I rowsort
SELECT + - col0 * col1 + 58 * col0 FROM tab1 AS cor0
----
3072
3600
96
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - 71 AS REAL ) * + col2 * - col1 AS col2 FROM tab0
----
201498
529802
6887
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 53 + col0 col0 FROM tab2 cor0
----
131
132
60
query I rowsort
SELECT ALL col1 + + col2 * + col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT col0 + + col1 * - 37 * 21 AS col1 FROM tab0 AS cor0
----
-66798
-70618
-75334
query I rowsort
SELECT ALL col2 * col2 + - col2 AS col2 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT DISTINCT - + col1 * - col2 + + ( + col2 ) AS col2 FROM tab1 AS cor0
----
1344
1458
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * col0 + cor0.col1 col1 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT DISTINCT 16 * col2 + col1 * - 73 AS col2 FROM tab1
----
-1034
182
587
query I rowsort
SELECT DISTINCT + ( col1 * + col1 ) FROM tab0
----
7396
8281
9409
query I rowsort
SELECT - 90 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-616
SELECT + CAST( - col1 AS SIGNED ) + col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-616
SELECT + CAST ( - col1 AS INTEGER ) + col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT - + col2 + + 17 AS col0 FROM tab1 AS cor0
----
-37
-40
-79
query I rowsort
SELECT col2 + - col2 + ( col2 ) AS col2 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT - cor0.col1 * + col0 * - col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT ALL - col0 + tab1.col1 * tab1.col2 - col2 AS col0 FROM tab1
----
1072
1347
449
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 - - col1 col2 FROM tab1
----
-58
-71
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-622
SELECT DISTINCT cor0.col2 DIV - 57 AS col0 FROM tab0, tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-622
SELECT DISTINCT cor0.col2 / - 57 AS col0 FROM tab0, tab0 AS cor0
----
-1
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-623
SELECT DISTINCT tab1.col2 * + CAST( col1 AS SIGNED ) + col1 AS col0 FROM tab1
----
1261
1430
580
skipif mysql # not compatible
query I rowsort label-623
SELECT DISTINCT tab1.col2 * + CAST ( col1 AS INTEGER ) + col1 AS col0 FROM tab1
----
1261
1430
580
query I rowsort
SELECT tab0.col2 * + 45 + col0 FROM tab0
----
1509
3779
80
query I rowsort
SELECT tab0.col0 * + 4 AS col1 FROM tab0
----
140
356
96
query I rowsort
SELECT DISTINCT - cor0.col2 * + col2 + + col2 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
-2808
-3135
-9024
query I rowsort
SELECT - col0 + - cor0.col2 * + col1 * + col0 AS col0 FROM tab1 AS cor0
----
-36544
-4215
-99920
query I rowsort
SELECT DISTINCT + cor0.col1 * 71 FROM tab0 AS cor0
----
6106
6461
6887
query I rowsort
SELECT ALL + col0 + col2 * + col0 * cor0.col1 AS col1 FROM tab2 cor0
----
119730
51113
5866
query I rowsort
SELECT - ( tab2.col0 + - col0 ) AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL + tab0.col1 * col2 * col2 AS col1 FROM tab0
----
611884
93654
97
query I rowsort
SELECT col0 + 67 FROM tab1
----
131
147
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 + - col0 col2 FROM tab1 cor0
----
-156
-172
-95
query I rowsort
SELECT ALL + col1 - - col0 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + col2 * col2 + col1 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT + - col0 * col0 AS col2 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL + 19 + cor0.col0 AS col2 FROM tab0 AS cor0
----
108
43
54
query I rowsort
SELECT - - col1 + cor0.col1 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT DISTINCT 83 AS col0 FROM tab1 AS cor0
----
83
query I rowsort
SELECT DISTINCT - 21 + + col1 FROM tab1 AS cor0
----
-11
-8
5
query I rowsort
SELECT + ( col2 ) + + col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + + 72 * cor0.col1 AS col0 FROM tab0 AS cor0
----
6192
6552
6984
query I rowsort
SELECT ALL + col1 * + col0 * - col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL cor0.col2 + + 38 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 5111694fae19213d38c768d8b6f956d9
query I rowsort
SELECT - tab0.col0 * col1 + col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL + 3 + - col2 FROM tab2 AS cor0
----
-23
-24
-35
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab1 cor1, tab0 AS cor2
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f
query I rowsort
SELECT DISTINCT cor0.col2 + + cor0.col2 AS col1 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT + col2 * + col2 AS col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT 35 + + col0 * 60 AS col0 FROM tab2 AS cor0
----
455
4715
4775
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 * col1 col0 FROM tab1 cor0
----
-200
-260
-520
query I rowsort
SELECT + col2 * 12 AS col0 FROM tab1 cor0
----
1152
648
684
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-653
SELECT + - col0 * CAST( NULL AS DECIMAL ) * - 90 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-653
SELECT + - col0 * CAST ( NULL AS REAL ) * - 90 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 + col1 * cor0.col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT - - col0 * col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-656
SELECT ALL + col1 + - ( col0 ) DIV + col2 AS col2 FROM tab1 AS cor0
----
13
26
9
skipif mysql # not compatible
query I rowsort label-656
SELECT ALL + col1 + - ( col0 ) / + col2 AS col2 FROM tab1 AS cor0
----
13
26
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 55 + - 32 * cor0.col2 col1 FROM tab1 AS cor0
----
-1563
1328
1696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + - ( - col0 ) * ( col0 ) + col0 * - 25 col0 FROM tab0 AS cor0
----
13158
2814
447
query I rowsort
SELECT - col0 + col0 + + col0 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + col1 * + col1 + - 35 AS col2 FROM tab1
----
134
641
65
query I rowsort
SELECT col1 * 19 AS col2 FROM tab1 cor0
----
190
247
494
query I rowsort
SELECT DISTINCT 1 * - 22 AS col0 FROM tab2 AS cor0
----
-22
query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL - + col0 * + col1 + + col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT + col0 + + 89 FROM tab2 AS cor0
----
167
168
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * 77 col1 FROM tab1 AS cor0
----
-231
-4928
-6160
query I rowsort
SELECT ALL - - col0 + - ( col1 * 10 ) - col0 AS col2 FROM tab2 AS cor0
----
-170
-310
-590
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-668
SELECT DISTINCT CAST( col1 AS SIGNED ) FROM tab2 cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-668
SELECT DISTINCT CAST ( col1 AS INTEGER ) FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT - col1 + col0 * col1 AS col0 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ALL - 62 + col2 FROM tab0 AS cor0
----
-29
-61
20
query I rowsort
SELECT + - cor0.col1 * col0 + col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT 98 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
60
71
72
query I rowsort
SELECT DISTINCT 47 FROM tab2, tab0 AS cor0
----
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * + col1 col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT 74 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
74
query I rowsort
SELECT + 25 * - cor0.col0 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to e355f1314e550ddd0c7740ff16769d7e
query I rowsort
SELECT ALL - col2 * + col2 * col0 AS col2 FROM tab1
----
-207936
-737280
-8748
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to 944e54872ec2718f5c1c2710e1806e36
query I rowsort
SELECT + col2 * + col2 - + col0 AS col1 FROM tab0
----
-34
1065
6635
query I rowsort
SELECT DISTINCT tab0.col1 AS col1 FROM tab0, tab2 cor0, tab1 AS cor1
----
86
91
97
query I rowsort
SELECT - col2 * 85 FROM tab2 AS cor0
----
-2210
-2295
-3230
onlyif mysql # use DIV operator for integer division
query I rowsort label-682
SELECT ( + 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-682
SELECT ( + col1 ) / col0 col0 FROM tab2 AS cor0
----
0
0
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-683
SELECT col1 + + col1 DIV - ( col0 ) FROM tab2 AS cor0
----
17
27
59
skipif mysql # not compatible
query I rowsort label-683
SELECT col1 + + col1 / - ( col0 ) FROM tab2 AS cor0
----
17
27
59
query I rowsort
SELECT DISTINCT - - 45 + col2 * col0 AS col2 FROM tab1 AS cor0
----
207
3693
7725
query I rowsort
SELECT col1 + col0 * + 29 AS col0 FROM tab1 AS cor0
----
113
1866
2333
onlyif mysql # use DIV operator for integer division
query I rowsort label-686
SELECT col2 DIV 89 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-686
SELECT col2 / 89 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + tab0.col2 * + tab0.col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT cor0.col1 * 45 + + col1 * col1 FROM tab0 AS cor0
----
11266
12376
13774
query I rowsort
SELECT - + cor0.col1 * + 38 FROM tab1 AS cor0
----
-380
-494
-988
query I rowsort
SELECT + col1 * + ( + col0 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT col0 + + col0 * - ( col2 + 93 ) FROM tab0 AS cor0
----
-15486
-3000
-3255
query I rowsort
SELECT + tab0.col0 + + tab0.col0 FROM tab0
----
178
48
70
query I rowsort
SELECT DISTINCT col0 + + col2 * + ( tab1.col1 ) FROM tab1
----
1328
1407
634
query I rowsort
SELECT ALL + col1 * + tab0.col0 * + 95 + - col0 AS col2 FROM tab0
----
196056
322490
769316
query I rowsort
SELECT ALL col0 * + 19 + + col2 FROM tab2 AS cor0
----
1508
1539
160
query I rowsort
SELECT DISTINCT - + col2 + + 51 FROM tab0 AS cor0
----
-31
18
50
query I rowsort
SELECT - - col2 * col2 + + col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT col1 + 48 FROM tab0 AS cor0
----
134
139
145
onlyif mysql # use DIV operator for integer division
query I rowsort label-699
SELECT - + col0 + + 72 DIV ( - cor0.col0 ) FROM tab1 AS cor0
----
-27
-65
-80
skipif mysql # not compatible
query I rowsort label-699
SELECT - + col0 + + 72 / ( - cor0.col0 ) FROM tab1 AS cor0
----
-27
-65
-80
query I rowsort
SELECT ALL - col1 * + 7 AS col2 FROM tab0 AS cor0
----
-602
-637
-679
query I rowsort
SELECT - 9 + + cor0.col2 FROM tab0 AS cor0
----
-8
24
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-702
SELECT ALL - ( + col0 ) DIV + col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-702
SELECT ALL - ( + col0 ) / + col2 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT + - ( col0 ) * + col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + col1 + col0 + col0 AS col0 FROM tab0 AS cor0
----
134
167
269
query I rowsort
SELECT 35 + + col1 AS col0 FROM tab1 AS cor0
----
45
48
61
query I rowsort
SELECT + + col0 + 32 FROM tab0 cor0
----
121
56
67
query I rowsort
SELECT DISTINCT col2 + + tab1.col1 * + 68 AS col1 FROM tab1
----
1822
737
980
query I rowsort
SELECT DISTINCT - + 80 * col0 AS col1 FROM tab2 AS cor0
----
-560
-6240
-6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-709
SELECT + + cor0.col0 DIV cor0.col0 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-709
SELECT + + cor0.col0 / cor0.col0 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT - 2 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 20c9213316527d507e26425041e08387
query I rowsort
SELECT 31 + col0 AS col1 FROM tab2 AS cor0
----
109
110
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-712
SELECT ALL 41 DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-712
SELECT ALL 41 / + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 81 + - col2 FROM tab0 AS cor0
----
-1
48
80
query I rowsort
SELECT - - 3 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-4
-75
-76
query I rowsort
SELECT DISTINCT + cor0.col1 + + col1 * col2 AS col0 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT col1 * col0 + col2 FROM tab2 AS cor0
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-717
SELECT ALL - - col0 DIV 96 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-717
SELECT ALL - - col0 / 96 AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-718
SELECT ALL + col0 * CAST( NULL AS DECIMAL ) / 7 + col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-718
SELECT ALL + col0 * CAST ( NULL AS REAL ) / 7 + col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 38 col2 FROM tab0
----
38
38
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-720
SELECT 96 DIV col0 col0 FROM tab2
----
1
1
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-720
SELECT 96 / col0 col0 FROM tab2
----
1
1
13
query I rowsort
SELECT - 89 + col1 + - col1 AS col2 FROM tab2
----
-89
-89
-89
query I rowsort
SELECT - 59 + - col1 AS col0 FROM tab0 AS cor0
----
-145
-150
-156
query I rowsort
SELECT + 98 + + col0 FROM tab0
----
122
133
187
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * col2 col2 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-725
SELECT ALL CAST( - 55 AS SIGNED ) + col0 * - col1 + - col2 * - col0 AS col0 FROM tab1 AS cor0
----
29
2953
6585
skipif mysql # not compatible
query I rowsort label-725
SELECT ALL CAST ( - 55 AS INTEGER ) + col0 * - col1 + - col2 * - col0 AS col0 FROM tab1 AS cor0
----
29
2953
6585
query I rowsort
SELECT DISTINCT + 94 + - 66 FROM tab1 AS cor0
----
28
query I rowsort
SELECT ALL + + 88 * 96 FROM tab0 AS cor0
----
8448
8448
8448
query I rowsort
SELECT ALL + - 44 AS col2 FROM tab0 AS cor0
----
-44
-44
-44
query I rowsort
SELECT ALL + ( 72 ) * + col2 AS col1 FROM tab2 AS cor0
----
1872
1944
2736
query I rowsort
SELECT ( + 38 ) + col0 * 29 FROM tab1 AS cor0
----
125
1894
2358
query I rowsort
SELECT DISTINCT - 64 + + col0 AS col1 FROM tab0 AS cor0
----
-29
-40
25
query I rowsort
SELECT + - col1 * - col1 * cor0.col2 AS col0 FROM tab1 cor0
----
16224
36504
5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-733
SELECT - col0 DIV + 85 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-733
SELECT - col0 / + 85 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 * 84 AS col2 FROM tab0 AS cor0
----
7224
7644
8148
query I rowsort
SELECT ALL + col1 * 13 * col0 AS col1 FROM tab1 AS cor0
----
1014
13520
8320
query I rowsort
SELECT - 90 * col2 AS col0 FROM tab0 cor0
----
-2970
-7380
-90
query I rowsort
SELECT - - col2 * col1 + - col2 + + col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + - col2 + - col0 * col1 FROM tab2 cor0
----
-1381
-244
-4628
query I rowsort
SELECT + col0 + col0 + + 63 * - col2 AS col2 FROM tab1 AS cor0
----
-3396
-3463
-5888
query I rowsort
SELECT DISTINCT col2 - col1 * + col2 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT - col1 + - 96 AS col2 FROM tab1 AS cor0
----
-106
-109
-122
onlyif mysql # use DIV operator for integer division
query I rowsort label-742
SELECT DISTINCT + - col0 - + 33 DIV - col1 AS col1 FROM tab1 AS cor0
----
-2
-61
-78
skipif mysql # not compatible
query I rowsort label-742
SELECT DISTINCT + - col0 - + 33 / - col1 AS col1 FROM tab1 AS cor0
----
-2
-61
-78
query I rowsort
SELECT ALL - + col2 * ( - col2 ) * + cor0.col1 + - col1 * col2 FROM tab2 AS cor0
----
21762
23902
38350
query I rowsort
SELECT ALL col0 + 63 FROM tab1 cor0
----
127
143
66
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2, tab2 cor2
----
3645 values hashing to c670882ff9ea3f0bb08fc55ec569be96
query I rowsort
SELECT DISTINCT col1 + - ( - col2 ) AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL + col2 + 81 AS col0 FROM tab0 AS cor0
----
114
163
82
query I rowsort
SELECT - 35 FROM tab1, tab0 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b
query I rowsort
SELECT ALL - - col1 - 37 FROM tab2 AS cor0
----
-20
-6
22
query I rowsort
SELECT ALL 18 * - col2 + 88 FROM tab0
----
-1388
-506
70
query I rowsort
SELECT ALL cor0.col0 * - 22 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 95f993406bbdfe40a39b50518a3d65bc
query I rowsort
SELECT + - 38 * 76 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 011c30581a235c10c4a79f03ccb977eb
query I rowsort
SELECT ALL col0 * col0 + + 39 FROM tab1
----
4135
48
6439
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 * tab2.col0 col2 FROM tab2
----
49
6084
6241
query I rowsort
SELECT DISTINCT + col2 + - 11 FROM tab0 AS cor0
----
-10
22
71
query I rowsort
SELECT - col1 + + 76 FROM tab2
----
17
45
59
query I rowsort
SELECT cor1.col0 + 78 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to cba3221f2cf82ebde7b8205671ec8b13
query I rowsort
SELECT col1 * col1 + tab0.col1 * col2 AS col1 FROM tab0
----
10234
15743
9506
query I rowsort
SELECT ( 8 ) FROM tab2
----
8
8
8
query I rowsort
SELECT 58 AS col2 FROM tab1 cor0
----
58
58
58
query I rowsort
SELECT - - ( 85 ) FROM tab1 AS cor0
----
85
85
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-762
SELECT ALL col0 DIV cor0.col2 + + col1 FROM tab0 AS cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-762
SELECT ALL col0 / cor0.col2 + + col1 FROM tab0 AS cor0
----
132
86
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-763
SELECT + CAST( 89 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
89
89
89
skipif mysql # not compatible
query I rowsort label-763
SELECT + CAST ( 89 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
89
89
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT - - col1 * - cor0.col1 + - col1 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT - 9 * - col2 FROM tab2
----
234
243
342
onlyif mysql # use DIV operator for integer division
query I rowsort label-768
SELECT - ( tab0.col1 ) DIV + col0 + + col0 AS col0 FROM tab0
----
21
33
88
skipif mysql # not compatible
query I rowsort label-768
SELECT - ( tab0.col1 ) / + col0 + + col0 AS col0 FROM tab0
----
21
33
88
query I rowsort
SELECT DISTINCT + 59 AS col1 FROM tab2 AS cor0
----
59
query I rowsort
SELECT DISTINCT + - 32 * - col1 FROM tab2 AS cor0
----
1888
544
992
query I rowsort
SELECT ALL - - col2 + + col2 * + 64 AS col1 FROM tab2 AS cor0
----
1690
1755
2470
query I rowsort
SELECT + col1 + - col1 + col0 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - - col1 * + col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT ALL cor0.col2 + 33 * 73 * cor0.col0 FROM tab1 AS cor0
----
154233
192816
7281
query I rowsort
SELECT - col2 * col0 + - col1 AS col0 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT 63 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
63
query I rowsort
SELECT + col2 * 73 AS col1 FROM tab2 AS cor0
----
1898
1971
2774
onlyif mysql # use DIV operator for integer division
query I rowsort label-778
SELECT + col0 DIV col1 + col2 FROM tab1 AS cor0
----
102
54
63
skipif mysql # not compatible
query I rowsort label-778
SELECT + col0 / col1 + col2 FROM tab1 AS cor0
----
102
54
63
query I rowsort
SELECT ALL tab2.col2 * tab2.col2 + col2 * - tab2.col0 FROM tab2
----
-1352
-1558
540
onlyif mysql # use DIV operator for integer division
query I rowsort label-780
SELECT cor0.col0 * - col2 * col0 + col1 DIV - col2 FROM tab0 cor0
----
-1322
-19010
-649523
skipif mysql # not compatible
query I rowsort label-780
SELECT cor0.col0 * - col2 * col0 + col1 / - col2 FROM tab0 cor0
----
-1322
-19010
-649523
query I rowsort
SELECT - - col0 * + col1 + - ( - col0 ) * - col2 AS col2 FROM tab0 AS cor0
----
1272
3360
801
query I rowsort
SELECT - col2 + col2 + col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + col1 * + col2 * col1 + col1 * - col2 FROM tab0 AS cor0
----
241230
671580
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-784
SELECT cor0.col2 + - col2 + 41 DIV + 46 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-784
SELECT cor0.col2 + - col2 + 41 / + 46 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 * 17 + - col2 * col2 FROM tab1 cor0
----
-3358
-3419
-9437
query I rowsort
SELECT ALL col1 * + 55 + - col0 AS col2 FROM tab2 AS cor0
----
1698
3167
856
onlyif mysql # use DIV operator for integer division
query I rowsort label-787
SELECT + col0 * ( - col1 ) DIV col0 FROM tab2 cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-787
SELECT + col0 * ( - col1 ) / col0 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - 25 + + col0 + - 84 FROM tab1
----
-106
-29
-45
query I rowsort
SELECT DISTINCT col0 + - col0 * - tab0.col1 AS col2 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT - col1 * col1 + + col0 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT col0 + 93 * col2 FROM tab1 AS cor0
----
5025
5365
9008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * + col1 col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - col0 - - col1 * col2 AS col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT - ( + cor0.col1 ) + - cor0.col0 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-795
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2 FROM tab2, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-795
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2 FROM tab2, tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col0 + ( + col1 ) FROM tab2
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT 47 * 19 FROM tab0
----
893
893
893
query I rowsort
SELECT 88 * col1 + col0 * + col1 * col1 AS col0 FROM tab1 AS cor0
----
14664
4316
7280
query I rowsort
SELECT ALL col1 - col2 * - col0 FROM tab1
----
188
3658
7693
query I rowsort
SELECT + cor0.col1 + - 79 FROM tab2 AS cor0
----
-20
-48
-62
query I rowsort
SELECT col2 * col1 + + col0 * col1 * - 91 AS col0 FROM tab1 AS cor0
----
-5694
-57670
-93392
query I rowsort
SELECT DISTINCT tab1.col2 - - col2 * - col0 AS col2 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT - col1 + col0 * col1 + + ( tab1.col2 ) * - tab1.col2 FROM tab1
----
-2619
-2864
-8189
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-805
SELECT - CAST( NULL AS SIGNED ) - + 99 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-805
SELECT - CAST ( NULL AS INTEGER ) - + 99 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * + col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL 57 AS col1 FROM tab2
----
57
57
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-808
SELECT DISTINCT + tab1.col0 + tab1.col1 DIV - col1 FROM tab1
----
2
63
79
skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT + tab1.col0 + tab1.col1 / - col1 FROM tab1
----
2
63
79
query I rowsort
SELECT col0 * col2 * col2 AS col0 FROM tab0
----
26136
35
598436
query I rowsort
SELECT ( 10 * + col2 ) + ( - col2 ) AS col0 FROM tab2
----
234
243
342
query I rowsort
SELECT DISTINCT col1 + + 31 * col1 FROM tab0
----
2752
2912
3104
query I rowsort
SELECT ALL + 65 - ( col0 ) AS col1 FROM tab0
----
-24
30
41
query I rowsort
SELECT DISTINCT - 64 AS col2 FROM tab2, tab0 AS cor0
----
-64
query I rowsort
SELECT + 54 + + tab2.col0 - - tab2.col2 FROM tab2
----
158
171
88
query I rowsort
SELECT DISTINCT 50 + - col1 FROM tab0
----
-36
-41
-47
query I rowsort
SELECT 57 * col0 + col2 AS col1 FROM tab0 cor0
----
1401
1996
5155
query I rowsort
SELECT ALL + col0 + + col2 * + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + cor1.col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT + + 82 * col1 + + 98 * 41 FROM tab0 AS cor0
----
11070
11480
11972
query I rowsort
SELECT DISTINCT - - col1 * + col2 + + 58 FROM tab2 AS cor0
----
1592
704
895
query I rowsort
SELECT DISTINCT 68 * col2 * + ( + cor0.col1 ) - - col0 FROM tab2 AS cor0
----
104390
44007
56923
query I rowsort
SELECT DISTINCT - + 57 * col0 + 46 + col2 * + col0 AS col1 FROM tab0 AS cor0
----
-1914
-530
2271
query I rowsort
SELECT ALL 1 * col2 AS col1 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-824
SELECT - cor0.col2 + - col1 DIV col2 FROM tab0 AS cor0
----
-35
-83
-98
skipif mysql # not compatible
query I rowsort label-824
SELECT - cor0.col2 + - col1 / col2 FROM tab0 AS cor0
----
-35
-83
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) * col1 col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - - col2 * + col0 + cor0.col1 * + col2 AS col0 FROM tab0 AS cor0
----
132
14760
3630
query I rowsort
SELECT ALL - col1 + col2 + - ( - cor0.col2 + - col2 ) * + ( 38 ) AS col0 FROM tab2 AS cor0
----
1943
2048
2909
query I rowsort
SELECT ALL cor0.col0 * col0 + - 50 * - col0 FROM tab0 AS cor0
----
12371
1776
2975
query I rowsort
SELECT DISTINCT - col1 * col2 + cor0.col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT DISTINCT + tab2.col2 * col1 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT + col1 * - col2 + 57 AS col0 FROM tab1 AS cor0
----
-1191
-1347
-513
query I rowsort
SELECT ALL col0 * 80 FROM tab1 AS cor0
----
240
5120
6400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-835
SELECT + + col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-835
SELECT + + col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-836
SELECT ALL + col1 DIV - 74 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-836
SELECT ALL + col1 / - 74 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + - ( + col2 ) * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT cor0.col0 AS col2 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( cor0.col0 ) col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + - 41 FROM tab2 cor0
----
-41
query I rowsort
SELECT - col2 * cor0.col1 - cor0.col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT 77 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 38f487c2147ee2fe05527e38c5e0503b
query I rowsort
SELECT ALL - cor0.col0 * 76 AS col2 FROM tab1 AS cor0
----
-228
-4864
-6080
query I rowsort
SELECT ALL + 53 + cor0.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 2cd14832f76a56e635b1e88e89f255c7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-845
SELECT ALL + cor0.col0 + - col2 * col2 * CAST( 56 * - col0 AS SIGNED ) col2 FROM tab2 AS cor0
----
285775
2952846
6388335
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-845
SELECT ALL + cor0.col0 + - col2 * col2 * CAST ( 56 * - col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
285775
2952846
6388335
query I rowsort
SELECT DISTINCT + - ( col0 ) * - col2 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) * col2 + col0 * - col2 col0 FROM tab0 AS cor0
----
-132
-14760
-3630
onlyif mysql # use DIV operator for integer division
query I rowsort label-848
SELECT ALL + ( + col2 ) + col1 DIV + col1 col0 FROM tab1 AS cor0
----
55
58
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-848
SELECT ALL + ( + col2 ) + col1 / + col1 col0 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT + ( col2 ) * cor0.col1 FROM tab0 cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col0 col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + - 78 * - col1 FROM tab1 AS cor0
----
1014
2028
780
onlyif mysql # use DIV operator for integer division
query I rowsort label-852
SELECT DISTINCT - col0 DIV col2 col0 FROM tab0 AS cor0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT - col0 / col2 col0 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT - col0 * col2 * cor0.col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-854
SELECT DISTINCT cor0.col0 - + col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
10
78
79
skipif mysql # not compatible
query I rowsort label-854
SELECT DISTINCT cor0.col0 - + col2 / - col0 AS col0 FROM tab2 AS cor0
----
10
78
79
query I rowsort
SELECT + col1 + cor0.col1 * - col1 AS col2 FROM tab2 AS cor0
----
-272
-3422
-930
onlyif mysql # use DIV operator for integer division
query I rowsort label-856
SELECT DISTINCT - col2 + col2 * cor0.col1 DIV col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-856
SELECT DISTINCT - col2 + col2 * cor0.col1 / col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + - col0 * - cor0.col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT - 82 + col0 AS col2 FROM tab1
----
-18
-2
-79
query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NULL > ( NULL )
----
query I rowsort
SELECT - col0 * + 88 * col2 + - col0 FROM tab0 cor0
----
-3115
-642313
-69720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-861
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 + + col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-861
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 + + col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - - cor0.col1 * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL 43 * - 34 AS col2 FROM tab0 AS cor0
----
-1462
-1462
-1462
query I rowsort
SELECT ALL - 96 + col0 * - col0 AS col1 FROM tab1
----
-105
-4192
-6496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 col1 FROM tab2, tab2 cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT col0 + - 84 FROM tab2 AS cor0
----
-5
-6
-77
query I rowsort
SELECT ALL col0 + + 66 FROM tab1 AS cor0
----
130
146
69
query I rowsort
SELECT col2 * + cor0.col2 + col1 AS col0 FROM tab2 AS cor0
----
1461
735
760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-869
SELECT ALL + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-869
SELECT ALL + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-870
SELECT - col2 DIV + col2 + + cor0.col1 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-7397
-8282
-9410
skipif mysql # not compatible
query I rowsort label-870
SELECT - col2 / + col2 + + cor0.col1 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-7397
-8282
-9410
query I rowsort
SELECT DISTINCT + ( - col0 ) + - col0 * col2 AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT - + ( - col2 ) + - col0 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT - col0 * cor0.col2 + + col1 AS col0 FROM tab2 cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL - col0 + tab0.col2 + - col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT + 16 * + col0 * col0 - + col0 * col0 FROM tab1
----
135
61440
96000
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-876
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 * tab0.col2 + + tab0.col2 AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-876
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 * tab0.col2 + + tab0.col2 AS col1 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT + col0 + col1 * + col0 AS col0 FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT - 75 * col0 + + col1 * - col0 FROM tab0 AS cor0
----
-14774
-3864
-6020
query I rowsort
SELECT DISTINCT + col0 + + cor0.col2 * - col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT + 23 + cor0.col2 FROM tab0 AS cor0
----
105
24
56
query I rowsort
SELECT ALL - ( col0 ) * - col0 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-882
SELECT DISTINCT - col2 * col2 + col2 DIV col2 + col0 * + col1 AS col2 FROM tab0 AS cor0
----
1376
3395
976
skipif mysql # not compatible
query I rowsort label-882
SELECT DISTINCT - col2 * col2 + col2 / col2 + col0 * + col1 AS col2 FROM tab0 AS cor0
----
1376
3395
976
query I rowsort
SELECT ALL 45 * 29 + col1 AS col1 FROM tab0
----
1391
1396
1402
query I rowsort
SELECT ALL ( + col2 * col0 ) + - col2 + col1 * col0 FROM tab0
----
15315
2823
3429
query I rowsort
SELECT ( 5 ) * col2 + col1 AS col0 FROM tab2
----
166
189
207
query I rowsort
SELECT 29 * 40 + col2 FROM tab1
----
1214
1217
1256
query I rowsort
SELECT ALL col1 * - col1 + + col1 * tab0.col2 AS col2 FROM tab0
----
-4558
-819
-9312
query I rowsort
SELECT DISTINCT - tab0.col0 + - tab0.col0 AS col1 FROM tab0
----
-178
-48
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-889
SELECT col1 DIV + 15 + col2 FROM tab1
----
55
57
96
skipif mysql # not compatible
query I rowsort label-889
SELECT col1 / + 15 + col2 FROM tab1
----
55
57
96
query I rowsort
SELECT DISTINCT - tab0.col1 + - col2 AS col0 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT + 98 * - 95 + - col1 FROM tab1
----
-9320
-9323
-9336
query I rowsort
SELECT DISTINCT - ( 85 ) * col2 + col1 FROM tab2
----
-2151
-2264
-3213
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col1 )
----
query I rowsort
SELECT + col1 - + col0 AS col2 FROM tab2 WHERE NULL NOT IN ( + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-896
SELECT col2 + col0 + + col0 DIV + col1 AS col2 FROM tab1
----
127
182
57
skipif mysql # not compatible
query I rowsort label-896
SELECT col2 + col0 + + col0 / + col1 AS col2 FROM tab1
----
127
182
57
query I rowsort
SELECT + col2 + + col0 * col2 + - col2 FROM tab2
----
189
2028
3002
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN col1 AND ( col1 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * + col2 > ( NULL )
----
query I rowsort
SELECT ALL col0 * col2 + - col1 * - col0 AS col1 FROM tab0
----
15397
2856
3430
query I rowsort
SELECT col0 * - tab1.col0 * col2 - col2 * + tab1.col0 AS col1 FROM tab1
----
-237120
-622080
-648
query I rowsort
SELECT DISTINCT - col1 * col1 + + col2 * + col0 AS col0 FROM tab0
----
-6604
-9374
-983
query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( col2 ) <> - col1
----
query IIIIII rowsort
SELECT * FROM tab2, tab0 cor0 WHERE NOT tab2.col2 >= NULL
----
query I rowsort
SELECT col0 * col1 AS col0 FROM tab2 WHERE NOT ( col0 ) NOT BETWEEN + col0 AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 col0 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
query I rowsort
SELECT col0 * + col1 + col1 AS col2 FROM tab1
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-909
SELECT DISTINCT col1 DIV - col0 AS col1 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-909
SELECT DISTINCT col1 / - col0 AS col1 FROM tab0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col0 * col0 + col2 col2 FROM tab2 AS cor0
----
6188
6358
83
query I rowsort
SELECT - col1 + - col0 * - col2 AS col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT - col2 * - col1 + - col0 FROM tab2
----
1456
567
830
query I rowsort
SELECT ALL + col0 * - col0 + col1 AS col1 FROM tab2 cor0
----
-18
-6025
-6224
onlyif mysql # use DIV operator for integer division
query I rowsort label-914
SELECT DISTINCT col0 - col1 DIV cor0.col0 FROM tab2 AS cor0
----
3
78
79
skipif mysql # not compatible
query I rowsort label-914
SELECT DISTINCT col0 - col1 / cor0.col0 FROM tab2 AS cor0
----
3
78
79
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= ( col1 * col2 + col0 )
----
query I rowsort
SELECT + col2 + - col1 AS col1 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT col2 - col0 * col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT + + cor0.col1 * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + cor0.col2 - - col0 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL + col1 + col2 + col1 * + col2 AS col0 FROM tab0 AS cor0
----
195
2957
7635
query I rowsort
SELECT DISTINCT + col2 * col0 + col2 * + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-112128
-28842
-75654
query I rowsort
SELECT + + col2 * + col2 - col1 AS col2 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT DISTINCT - - col0 + + col0 AS col2 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT ALL + col2 - + cor0.col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT col2 + col2 * + col1 * - col2 + - 21 AS col1 FROM tab1
----
-119733
-32454
-75783
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-926
SELECT DISTINCT - col0 - CAST( NULL AS SIGNED ) * + col0 * + col2 AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT - col0 - CAST ( NULL AS INTEGER ) * + col0 * + col2 AS col1 FROM tab2
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-927
SELECT DISTINCT - col0 DIV 63 col2 FROM tab2
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-927
SELECT DISTINCT - col0 / 63 col2 FROM tab2
----
-1
0
query I rowsort
SELECT + + col1 * - col2 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-929
SELECT + col0 DIV 77 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-929
SELECT + col0 / 77 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT ALL - col2 * + 21 AS col1 FROM tab1 AS cor0
----
-1134
-1197
-2016
query I rowsort
SELECT DISTINCT + - 16 AS col0 FROM tab0 AS cor0
----
-16
query I rowsort
SELECT DISTINCT + 24 + + col2 AS col0 FROM tab0 cor0
----
106
25
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-933
SELECT + ( + col2 ) + col1 DIV + col1 col1 FROM tab2 cor0
----
27
28
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-933
SELECT + ( + col2 ) + col1 / + col1 col1 FROM tab2 cor0
----
27
28
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-934
SELECT + col2 * col2 + + col1 * 55 DIV col0 AS col1 FROM tab2 AS cor0
----
1455
717
972
skipif mysql # not compatible
query I rowsort label-934
SELECT + col2 * col2 + + col1 * 55 / col0 AS col1 FROM tab2 AS cor0
----
1455
717
972
query I rowsort
SELECT ALL - + 1 * + 25 FROM tab1 AS cor0
----
-25
-25
-25
query I rowsort
SELECT DISTINCT 66 * + col2 FROM tab1 AS cor0
----
3564
3762
6336
query I rowsort
SELECT 79 + + 36 * - col0 FROM tab1 AS cor0
----
-2225
-2801
-29
onlyif mysql # use DIV operator for integer division
query I rowsort label-938
SELECT - col2 + + col2 DIV - col1 FROM tab2 AS cor0
----
-26
-27
-40
skipif mysql # not compatible
query I rowsort label-938
SELECT - col2 + + col2 / - col1 FROM tab2 AS cor0
----
-26
-27
-40
query I rowsort
SELECT + 25 * - col1 + - cor0.col2 * col1 FROM tab2 cor0
----
-1071
-1612
-3009
query I rowsort
SELECT ALL + + col2 * 42 * cor0.col0 AS col2 FROM tab2 cor0
----
126084
7938
85176
query I rowsort
SELECT 35 + 4 FROM tab1 AS cor0
----
39
39
39
query I rowsort
SELECT col2 * - 53 + - col0 FROM tab2 AS cor0
----
-1438
-1456
-2093
query I rowsort
SELECT 84 + - cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
-1450
-562
-753
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - cor0.col2 col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-945
SELECT 50 + - col1 * col1 DIV + col1 col2 FROM tab0
----
-36
-41
-47
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-945
SELECT 50 + - col1 * col1 / + col1 col2 FROM tab0
----
-36
-41
-47
query I rowsort
SELECT DISTINCT + - col2 + 28 AS col1 FROM tab1 AS cor0
----
-26
-29
-68
query I rowsort
SELECT col1 * ( + col2 ) + - col2 AS col0 FROM tab2 AS cor0
----
1508
608
810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * ( - col2 ) col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - - col2 + + col2 AS col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL - - col1 + + 77 AS col2 FROM tab1 AS cor0
----
103
87
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-951
SELECT DISTINCT col1 + + col2 * 37 DIV col0 AS col0 FROM tab2 cor0
----
173
34
71
skipif mysql # not compatible
query I rowsort label-951
SELECT DISTINCT col1 + + col2 * 37 / col0 AS col0 FROM tab2 cor0
----
173
34
71
query I rowsort
SELECT DISTINCT + col2 + 15 - - col1 FROM tab2 AS cor0
----
100
70
73
query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 + col2 * col1 FROM tab0 AS cor0
----
14924
194
5676
query I rowsort
SELECT DISTINCT + col1 * - col1 * - col2 - col1 FROM tab0 AS cor0
----
243982
678951
9312
query I rowsort
SELECT ALL cor0.col2 + + ( cor0.col0 ) * col0 * - col0 AS col1 FROM tab1 cor0
----
-262087
-511904
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-956
SELECT - col2 DIV + col2 + tab1.col2 * - col0 * - tab1.col1 - + col1 AS col1 FROM tab1
----
36469
4185
99826
skipif mysql # not compatible
query I rowsort label-956
SELECT - col2 / + col2 + tab1.col2 * - col0 * - tab1.col1 - + col1 AS col1 FROM tab1
----
36469
4185
99826
query I rowsort
SELECT DISTINCT cor2.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1, tab0 cor2
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-958
SELECT + + col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-958
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-959
SELECT ALL + col0 + - col0 DIV col1 AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-959
SELECT ALL + col0 + - col0 / col1 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - col0 * 20 AS col2 FROM tab0 AS cor0
----
-1780
-480
-700
query I rowsort
SELECT ALL col0 + + col1 * col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT + 31 FROM tab0, tab1 cor0
----
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 col2 FROM tab2 AS cor0
----
-6
-6
-6
query I rowsort
SELECT ( - col1 ) + - col0 * + 94 FROM tab1 cor0
----
-308
-6026
-7533
query I rowsort
SELECT - - 0 * col0 AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-966
SELECT + ( col1 * CAST( NULL AS DECIMAL ) + col0 ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-966
SELECT + ( col1 * CAST ( NULL AS REAL ) + col0 ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( - cor0.col1 ) AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-968
SELECT DISTINCT + ( col0 ) * CAST( col0 AS SIGNED ) col2 FROM tab2
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-968
SELECT DISTINCT + ( col0 ) * CAST ( col0 AS INTEGER ) col2 FROM tab2
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * tab1.col0 col1 FROM tab1
----
4096
6400
9
query I rowsort
SELECT ALL + - col1 - - col0 * col2 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT 76 FROM tab0 cor0
----
76
76
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col2 + + col0 * + 13 + col0 col0 FROM tab2 AS cor0
----
287
3120
4108
query I rowsort
SELECT ALL + ( cor0.col0 ) - - 92 FROM tab2 AS cor0
----
170
171
99
query I rowsort
SELECT - 68 AS col2 FROM tab1 cor0
----
-68
-68
-68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-975
SELECT - CAST( ( col1 ) AS SIGNED ) * col2 AS col0 FROM tab0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-975
SELECT - CAST ( ( col1 ) AS INTEGER ) * col2 AS col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT 82 + + 93 * - col0 FROM tab0
----
-2150
-3173
-8195
query I rowsort
SELECT + col0 + col0 * tab0.col2 AS col1 FROM tab0
----
70
7387
816
query I rowsort
SELECT - cor0.col2 * - col2 + + 99 AS col0 FROM tab1 AS cor0
----
3015
3348
9315
query I rowsort
SELECT ALL + + col2 + col0 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT col0 * - col1 + + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT - - col1 + + col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT col0 + + cor0.col0 AS col2 FROM tab1 cor0
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 * + 31 col0 FROM tab1 AS cor0
----
1927
2384
39
query I rowsort
SELECT ALL - 29 * + col0 FROM tab2 AS cor0
----
-203
-2262
-2291
onlyif mysql # use DIV operator for integer division
query I rowsort label-985
SELECT + + ( col1 ) DIV - 12 + cor0.col2 + col1 FROM tab0 AS cor0
----
112
166
90
skipif mysql # not compatible
query I rowsort label-985
SELECT + + ( col1 ) / - 12 + cor0.col2 + col1 FROM tab0 AS cor0
----
112
166
90
query I rowsort
SELECT DISTINCT - col1 + + cor0.col2 * - col2 FROM tab0 AS cor0
----
-1175
-6815
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-987
SELECT - col2 + col2 DIV 66 + col2 * col0 FROM tab1
----
108
3591
7585
skipif mysql # not compatible
query I rowsort label-987
SELECT - col2 + col2 / 66 + col2 * col0 FROM tab1
----
108
3591
7585
query I rowsort
SELECT ALL tab2.col1 - + 10 * + tab2.col2 AS col0 FROM tab2
----
-201
-239
-363
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to b050f98b2d07c1b092b73ecf6b5b347c
query I rowsort
SELECT ALL + + col1 * - ( col1 ) AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT col0 * + 83 AS col0 FROM tab0 AS cor0
----
1992
2905
7387
query I rowsort
SELECT - col0 * ( 64 ) AS col0 FROM tab2 AS cor0
----
-448
-4992
-5056
query I rowsort
SELECT ALL - col0 + 7 AS col0 FROM tab0 cor0
----
-17
-28
-82
query I rowsort
SELECT + 23 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
query I rowsort
SELECT ALL 85 * 96 FROM tab0 AS cor0
----
8160
8160
8160
query I rowsort
SELECT DISTINCT col2 - col2 FROM tab0 cor0
----
0
query I rowsort
SELECT cor0.col1 + 53 FROM tab1 cor0
----
63
66
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-998
SELECT ALL CAST( + 37 AS SIGNED ) * + col1 AS col1 FROM tab1 AS cor0
----
370
481
962
skipif mysql # not compatible
query I rowsort label-998
SELECT ALL CAST ( + 37 AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0
----
370
481
962
query I rowsort
SELECT + cor0.col1 * col2 + + col2 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1000
SELECT + + 16 * 39 + + col0 * + CAST( - 66 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1686
-5250
-960
skipif mysql # not compatible
query I rowsort label-1000
SELECT + + 16 * 39 + + col0 * + CAST ( - 66 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1686
-5250
-960
query I rowsort
SELECT col1 * 70 AS col0 FROM tab2
----
1190
2170
4130
query I rowsort
SELECT ALL - + col1 + - 26 + col0 FROM tab0 AS cor0
----
-28
-88
-88
query I rowsort
SELECT DISTINCT - - ( + 1 ) FROM tab0 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * ( col0 ) col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL - - 85 + + col2 FROM tab2 AS cor0
----
111
112
123
query I rowsort
SELECT ALL - col0 + + col2 * col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT - 55 * 33 FROM tab2
----
-1815
-1815
-1815
query I rowsort
SELECT + - 20 FROM tab2 cor0
----
-20
-20
-20
query I rowsort
SELECT - 3 * col0 FROM tab0 AS cor0
----
-105
-267
-72
query I rowsort
SELECT + col1 + - col1 * col0 * 95 AS col1 FROM tab1 AS cor0
----
-60790
-7384
-98787
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0 CROSS JOIN tab0, tab2, tab2 AS cor1
----
3645 values hashing to bb6428239bf7f3ea361f6a10500a581d
query I rowsort
SELECT DISTINCT - 28 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
-28
query I rowsort
SELECT ALL + col2 * 3 + + 80 AS col0 FROM tab0 AS cor0
----
179
326
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 * - 83 col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8df6b8f240eba26306fbb0e4a66da901
query I rowsort
SELECT + - col2 + ( - cor0.col1 ) * + col1 * + col0 AS col0 FROM tab2 AS cor0
----
-22869
-271544
-6754
query I rowsort
SELECT + 22 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
query I rowsort
SELECT tab1.col1 + ( col1 + col2 ) FROM tab1
----
106
122
77
query I rowsort
SELECT + 85 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT + - col1 * col2 * col1 AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT ALL ( cor0.col0 ) AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT DISTINCT ( + cor0.col2 ) FROM tab2, tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - col1 * + ( - col2 + col2 ) * col2 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1023
SELECT ALL col0 + ( col1 + + cor0.col2 ) DIV cor0.col1 FROM tab1 AS cor0
----
6
70
88
skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL col0 + ( col1 + + cor0.col2 ) / cor0.col1 FROM tab1 AS cor0
----
6
70
88
query I rowsort
SELECT ALL - col2 + - cor0.col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
3
64
80
query I rowsort
SELECT - 55 + + col1 FROM tab1
----
-29
-42
-45
query I rowsort
SELECT col0 * 55 - tab0.col2 FROM tab0
----
1287
1924
4813
query I rowsort
SELECT DISTINCT col2 - ( col0 ) FROM tab2
----
-41
-52
20
query I rowsort
SELECT ALL - col1 - - 70 * - 49 FROM tab2
----
-3447
-3461
-3489
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 10 col2 FROM tab0, tab1 AS cor0
----
-10
query I rowsort
SELECT DISTINCT + - cor0.col2 * col1 + - ( - cor0.col1 + 69 ) * - col1 AS col0 FROM tab0 AS cor0
----
-2813
-4300
-9464
query I rowsort
SELECT + col0 - col0 * - col2 AS col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL - col2 * 77 FROM tab2
----
-2002
-2079
-2926
query I rowsort
SELECT ALL ( - cor0.col2 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT ALL col1 + - 49 FROM tab2
----
-18
-32
10
query I rowsort
SELECT - 23 * 75 FROM tab2 cor0
----
-1725
-1725
-1725
query I rowsort
SELECT - - 53 FROM tab0 AS cor0
----
53
53
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col1 col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 * col1 * ( 90 + cor0.col1 ) col2 FROM tab1 AS cor0
----
-127205
-286520
-95000
query I rowsort
SELECT - - col1 + + col2 * col2 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT DISTINCT ( - col0 ) * col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + 94 * col2 FROM tab2 AS cor0
----
2444
2538
3572
query I rowsort
SELECT DISTINCT + col2 * - col2 + col2 FROM tab1 cor0
----
-2862
-3192
-9120
query I rowsort
SELECT - + 30 FROM tab2 cor0
----
-30
-30
-30
query I rowsort
SELECT ALL col2 * col0 + cor0.col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT + cor0.col2 + + col0 AS col1 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + 61 + + col1 - - 37 AS col0 FROM tab0 AS cor0
----
184
189
195
query I rowsort
SELECT DISTINCT - + ( col0 ) * ( + col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - 75 * col0 FROM tab2 AS cor0
----
-525
-5850
-5925
query I rowsort
SELECT - + 41 + col0 AS col2 FROM tab1 AS cor0
----
-38
23
39
query I rowsort
SELECT DISTINCT - + 80 + col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1454
566
757
query I rowsort
SELECT ALL + 61 * tab2.col0 AS col2 FROM tab2
----
427
4758
4819
query I rowsort
SELECT tab1.col0 * col1 + - 40 FROM tab1
----
1000
38
600
onlyif mysql # use DIV operator for integer division
query I rowsort label-1054
SELECT DISTINCT + + col2 + + col1 DIV col0 FROM tab2 AS cor0
----
26
31
38
skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT + + col2 + + col1 / col0 FROM tab2 AS cor0
----
26
31
38
query I rowsort
SELECT ALL - 25 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a
query I rowsort
SELECT + ( - col2 ) * 46 AS col0 FROM tab0 AS cor0
----
-1518
-3772
-46
query I rowsort
SELECT cor0.col2 * col2 * + cor0.col1 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT - col0 + cor0.col2 + ( ( - col2 ) * 23 + col0 ) AS col2 FROM tab2 cor0
----
-572
-594
-836
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * cor0.col1 col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - col1 * - col2 AS col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL + col2 * col0 * + col1 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-1062
SELECT DISTINCT - cor0.col1 + ( ( col2 ) ) DIV - col2 + 22 DIV - col0 FROM tab0 AS cor0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT - cor0.col1 + ( ( col2 ) ) / - col2 + 22 / - col0 FROM tab0 AS cor0
----
-87
-92
-98
query I rowsort
SELECT DISTINCT - cor0.col2 * 76 AS col1 FROM tab2 AS cor0
----
-1976
-2052
-2888
query I rowsort
SELECT DISTINCT col1 * + col2 * - 6 FROM tab0 AS cor0
----
-17028
-44772
-582
query I rowsort
SELECT - + col0 * ( 90 * col1 ) AS col2 FROM tab0 AS cor0
----
-185760
-305550
-728910
query I rowsort
SELECT - col2 * col2 * col0 + + 51 AS col2 FROM tab2 AS cor0
----
-114025
-5052
-52677
query I rowsort
SELECT DISTINCT - - 38 + 34 * col0 FROM tab1 AS cor0
----
140
2214
2758
onlyif mysql # use DIV operator for integer division
query I rowsort label-1068
SELECT ALL - ( - col2 ) - col1 DIV - col0 FROM tab2 AS cor0
----
26
31
38
skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL - ( - col2 ) - col1 / - col0 FROM tab2 AS cor0
----
26
31
38
query I rowsort
SELECT + 22 + col1 FROM tab1 cor0
----
32
35
48
query I rowsort
SELECT ALL - + 57 * + col0 * col2 FROM tab2 AS cor0
----
-10773
-115596
-171114
query I rowsort
SELECT - col2 + - 89 * - col2 FROM tab2 AS cor0
----
2288
2376
3344
query I rowsort
SELECT DISTINCT col1 + ( + col2 ) AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + 50 + col1 AS col1 FROM tab1 cor0
----
60
63
76
query I rowsort
SELECT DISTINCT 56 + + 2 FROM tab0 AS cor0
----
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * 83 * cor0.col0 col2 FROM tab1 AS cor0
----
-339968
-531200
-747
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1076
SELECT CAST( 51 AS SIGNED ) FROM tab2 AS cor0
----
51
51
51
skipif mysql # not compatible
query I rowsort label-1076
SELECT CAST ( 51 AS INTEGER ) FROM tab2 AS cor0
----
51
51
51
query I rowsort
SELECT - + col0 * + col2 + - cor0.col0 FROM tab1 AS cor0
----
-165
-3712
-7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-1078
SELECT ALL col2 DIV 19 AS col1 FROM tab2 AS cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL col2 / 19 AS col1 FROM tab2 AS cor0
----
1
1
2
query I rowsort
SELECT ( - cor0.col1 ) + col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 * cor0.col1 + col0 AS col1 FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT ALL - 56 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80
query I rowsort
SELECT + cor0.col0 + - col0 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-1083
SELECT ALL cor0.col1 + + col1 DIV + col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL cor0.col1 + + col1 / + col1 FROM tab1 AS cor0
----
11
14
27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1084
SELECT ALL - - CAST( NULL AS SIGNED ) * col0 * col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1084
SELECT ALL - - CAST ( NULL AS INTEGER ) * col0 * col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 * - 41 * - col0 + col2 AS col0 FROM tab1 AS cor0
----
167993
262496
423
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1087
SELECT ALL - + 36 + col1 DIV - ( - col0 ) AS col2 FROM tab1 AS cor0
----
-28
-36
-36
skipif mysql # not compatible
query I rowsort label-1087
SELECT ALL - + 36 + col1 / - ( - col0 ) AS col2 FROM tab1 AS cor0
----
-28
-36
-36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1088
SELECT ALL - CAST( - col0 AS SIGNED ) + tab0.col1 AS col1 FROM tab0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL - CAST ( - col0 AS INTEGER ) + tab0.col1 AS col1 FROM tab0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1089
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-1090
SELECT - - 43 * 90 + - cor0.col2 + + ( - col0 ) DIV col2 FROM tab1 AS cor0
----
3774
3812
3816
skipif mysql # not compatible
query I rowsort label-1090
SELECT - - 43 * 90 + - cor0.col2 + + ( - col0 ) / col2 FROM tab1 AS cor0
----
3774
3812
3816
query I rowsort
SELECT ( + ( - col0 ) ) + - col0 * 89 FROM tab1 AS cor0
----
-270
-5760
-7200
onlyif mysql # use DIV operator for integer division
query I rowsort label-1092
SELECT + col0 * + 40 * col0 - ( + 4 ) DIV col1 AS col1 FROM tab1
----
163840
256000
360
skipif mysql # not compatible
query I rowsort label-1092
SELECT + col0 * + 40 * col0 - ( + 4 ) / col1 AS col1 FROM tab1
----
163840
256000
360
query I rowsort
SELECT - col0 * + 53 + + col1 AS col1 FROM tab1 AS cor0
----
-133
-3382
-4227
query I rowsort
SELECT DISTINCT cor0.col2 + + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL - cor0.col0 - ( - col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col0 + cor0.col0 * 42 AS col1 FROM tab1 cor0
----
129
2752
3440
query I rowsort
SELECT - col1 * - 95 * col1 - col2 AS col1 FROM tab0 cor0
----
702587
786613
893854
query I rowsort
SELECT DISTINCT + col2 + 95 FROM tab1 AS cor0
----
149
152
191
query I rowsort
SELECT DISTINCT - col0 + 54 AS col1 FROM tab2 AS cor0
----
-24
-25
47
query I rowsort
SELECT DISTINCT + + col0 + - cor0.col2 AS col2 FROM tab1 cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1101
SELECT ALL cor0.col2 * cor0.col0 DIV 41 FROM tab1 AS cor0
----
187
3
88
skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL cor0.col2 * cor0.col0 / 41 FROM tab1 AS cor0
----
187
3
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - 12 col0 FROM tab0 AS cor0
----
12
23
77
query I rowsort
SELECT + col0 + - col1 - - cor0.col2 FROM tab1 AS cor0
----
111
163
31
query I rowsort
SELECT - cor0.col1 + ( 90 ) FROM tab0 cor0
----
-1
-7
4
query I rowsort
SELECT - 88 + - tab2.col0 AS col2 FROM tab2
----
-166
-167
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-1106
SELECT DISTINCT - col2 + 67 DIV + col0 AS col2 FROM tab1
----
-32
-56
-96
skipif mysql # not compatible
query I rowsort label-1106
SELECT DISTINCT - col2 + 67 / + col0 AS col2 FROM tab1
----
-32
-56
-96
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + 3 * + col1 col2 FROM tab2 AS cor0
----
120
203
89
query I rowsort
SELECT ALL col2 + - col0 * 51 FROM tab1 AS cor0
----
-3207
-3984
-99
query I rowsort
SELECT - col0 * col1 - - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-70
1326
208
query I rowsort
SELECT ALL + 33 + - col1 * ( col1 * col2 ) AS col2 FROM tab2 AS cor0
----
-10949
-25914
-90473
query I rowsort
SELECT ( + cor0.col1 + cor1.col1 ) FROM tab0, tab0 cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
243 values hashing to b473f302945f174efcb65ec5fdad2e44
query I rowsort
SELECT ALL 60 FROM tab1, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query I rowsort
SELECT col1 * 46 + col0 * ( + col1 ) * col0 FROM tab0
----
123287
53492
724997
query I rowsort
SELECT DISTINCT - 19 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
-19
onlyif mysql # use DIV operator for integer division
query I rowsort label-1116
SELECT DISTINCT + + col0 DIV cor0.col1 + - ( 59 ) * - col1 + col1 FROM tab0 AS cor0
----
5160
5460
5820
skipif mysql # not compatible
query I rowsort label-1116
SELECT DISTINCT + + col0 / cor0.col1 + - ( 59 ) * - col1 + col1 FROM tab0 AS cor0
----
5160
5460
5820
query I rowsort
SELECT 90 + - col2 FROM tab1
----
-6
33
36
query I rowsort
SELECT ALL + col1 * - col2 + - ( + 85 ) FROM tab1 cor0
----
-1333
-1489
-655
query I rowsort
SELECT DISTINCT col2 * col0 + - col0 * col0 AS col0 FROM tab0 AS cor0
----
-1190
-623
216
query I rowsort
SELECT ALL col1 + + col0 + ( + col0 ) FROM tab1 cor0
----
138
173
32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1121
SELECT ALL + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1121
SELECT ALL + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL ( + col0 ) * - col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT cor0.col1 + + 48 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
107
65
79
query I rowsort
SELECT ALL + 19 + - col1 * - col1 AS col1 FROM tab2 AS cor0
----
308
3500
980
query I rowsort
SELECT DISTINCT - - 60 AS col0 FROM tab0 AS cor0
----
60
query I rowsort
SELECT + col0 * ( - col2 ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - 46 * + cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 28b9691d12ef41d93939a40af02f7604
query I rowsort
SELECT DISTINCT 66 FROM tab0, tab1 AS cor0
----
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-1129
SELECT ALL 73 + - cor0.col2 DIV col2 FROM tab0 AS cor0
----
72
72
72
skipif mysql # not compatible
query I rowsort label-1129
SELECT ALL 73 + - cor0.col2 / col2 FROM tab0 AS cor0
----
72
72
72
query I rowsort
SELECT DISTINCT ( - col1 + col0 ) * col1 FROM tab2
----
-744
1054
1121
query I rowsort
SELECT + ( + col0 ) * + cor0.col0 * + ( - 57 ) + - col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-233472
-364800
-513
query I rowsort
SELECT ALL ( col0 ) + - col1 AS col2 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-1133
SELECT - 69 * - col1 + col0 + col0 DIV col1 FROM tab2 AS cor0
----
1256
2146
4150
skipif mysql # not compatible
query I rowsort label-1133
SELECT - 69 * - col1 + col0 + col0 / col1 FROM tab2 AS cor0
----
1256
2146
4150
query I rowsort
SELECT - col2 * 9 + col0 AS col2 FROM tab1 AS cor0
----
-449
-483
-784
query I rowsort
SELECT ALL + col2 * - 63 FROM tab0 AS cor0
----
-2079
-5166
-63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1136
SELECT - - CAST( NULL AS SIGNED ) * + 50 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1136
SELECT - - CAST ( NULL AS INTEGER ) * + 50 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1137
SELECT + ( - col1 ) DIV col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-1137
SELECT + ( - col1 ) / col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT - cor0.col2 + - cor0.col1 * + 88 AS col1 FROM tab1 AS cor0
----
-1240
-2342
-937
query I rowsort
SELECT + + cor0.col2 + col0 * 61 * col1 FROM tab0 AS cor0
----
125937
207096
494121
query I rowsort
SELECT - 5 * + col2 AS col1 FROM tab0 AS cor0
----
-165
-410
-5
query I rowsort
SELECT - ( + tab1.col1 ) + - col0 FROM tab1
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1142
SELECT col2 * tab2.col0 * + col1 + CAST( + col2 + - col0 AS SIGNED ) FROM tab2
----
119600
50993
5879
skipif mysql # not compatible
query I rowsort label-1142
SELECT col2 * tab2.col0 * + col1 + CAST ( + col2 + - col0 AS INTEGER ) FROM tab2
----
119600
50993
5879
query I rowsort
SELECT - col1 + - 98 AS col2 FROM tab0 AS cor0
----
-184
-189
-195
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1144
SELECT ALL + ( + 35 ) * col2 * CAST( NULL AS DECIMAL ) - col2 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL + ( + 35 ) * col2 * CAST ( NULL AS REAL ) - col2 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col1 * cor0.col0 - + cor0.col0 AS col1 FROM tab0 cor0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL - 55 AS col2 FROM tab0 AS cor0
----
-55
-55
-55
query I rowsort
SELECT ALL 85 * + cor0.col0 * + col1 FROM tab0 cor0
----
175440
288575
688415
query I rowsort
SELECT 18 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT DISTINCT - col0 * - col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL 66 FROM tab2, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT ALL tab1.col0 AS col0 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL ( col2 + tab2.col2 ) AS col2 FROM tab2
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 col0 FROM tab0 AS cor0
----
14
14
14
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 80 col2 FROM tab1
----
1040
2080
800
query I rowsort
SELECT ALL - 10 AS col0 FROM tab1
----
-10
-10
-10
query I rowsort
SELECT ALL 82 * tab0.col2 AS col0 FROM tab0
----
2706
6724
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1157
SELECT - tab0.col2 * - col1 * - CAST( col2 AS SIGNED ) FROM tab0
----
-611884
-93654
-97
skipif mysql # not compatible
query I rowsort label-1157
SELECT - tab0.col2 * - col1 * - CAST ( col2 AS INTEGER ) FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT - tab2.col0 * + 53 + 45 FROM tab2, tab0 cor0
----
-326
-4089
-4142
query I rowsort
SELECT 88 + 33 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to caef24c3af92e31c3c63f6930ea05b46
query I rowsort
SELECT DISTINCT - col2 * col2 - ( - tab0.col0 ) * + col1 FROM tab0
----
1375
3394
975
query I rowsort
SELECT tab0.col0 - - col0 FROM tab0
----
178
48
70
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7
query I rowsort
SELECT - 67 * 19 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 903a52b3a2a012779972395a5e05ad57
query I rowsort
SELECT - + cor0.col2 * 61 AS col0 FROM tab1 AS cor0
----
-3294
-3477
-5856
query I rowsort
SELECT col2 * - 66 AS col2 FROM tab0 AS cor0
----
-2178
-5412
-66
query I rowsort
SELECT + col0 + + 22 AS col1 FROM tab2 AS cor0
----
100
101
29
query I rowsort
SELECT - + cor0.col0 + + col1 * - cor0.col2 * col0 FROM tab0 AS cor0
----
-3430
-664207
-68136
query I rowsort
SELECT + col2 + + 33 FROM tab2 AS cor0
----
59
60
71
query I rowsort
SELECT ALL - col2 + ( + col0 ) AS col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - - col2 * 9 + + cor0.col0 * + col1 FROM tab0 AS cor0
----
2361
3404
8837
query I rowsort
SELECT cor0.col0 + - 68 AS col2 FROM tab0 cor0
----
-33
-44
21
query I rowsort
SELECT ALL col1 * ( 91 ) + col0 + - col1 AS col0 FROM tab2
----
1609
2797
5388
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1173
SELECT col1 * + CAST( col0 AS SIGNED ) AS col2 FROM tab2
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-1173
SELECT col1 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ( tab1.col1 ) AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT + col0 + tab0.col0 AS col2 FROM tab0
----
178
48
70
query I rowsort
SELECT + tab2.col1 * + 55 AS col2 FROM tab2
----
1705
3245
935
onlyif mysql # use DIV operator for integer division
query I rowsort label-1177
SELECT col2 DIV 6 + col2 * tab0.col1 col0 FROM tab0
----
2843
7475
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1177
SELECT col2 / 6 + col2 * tab0.col1 col0 FROM tab0
----
2843
7475
97
query I rowsort
SELECT ( cor1.col1 ) FROM tab1, tab2 cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to de2705ff0bb8b4f714dafb07497c6119
onlyif mysql # use DIV operator for integer division
query I rowsort label-1179
SELECT DISTINCT col0 DIV - 5 AS col1 FROM tab0 cor0
----
-17
-4
-7
skipif mysql # not compatible
query I rowsort label-1179
SELECT DISTINCT col0 / - 5 AS col1 FROM tab0 cor0
----
-17
-4
-7
query I rowsort
SELECT - col1 * + col0 * col2 + - col2 AS col0 FROM tab0 AS cor0
----
-3396
-664200
-68145
query I rowsort
SELECT ALL tab2.col1 + + col1 AS col1 FROM tab2
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 62 col1 FROM tab1 AS cor0
----
-186
-3968
-4960
query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) * col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - ( - cor0.col2 ) * + col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - ( - col0 ) * + col0 AS col2 FROM tab0 cor0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col0 * col1 col0 FROM tab2 AS cor0
----
-1326
-186
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-1187
SELECT 80 + col0 DIV + col1 AS col2 FROM tab0 AS cor0
----
80
80
80
skipif mysql # not compatible
query I rowsort label-1187
SELECT 80 + col0 / + col1 AS col2 FROM tab0 AS cor0
----
80
80
80
query I rowsort
SELECT ALL + col1 + 66 FROM tab0 cor0
----
152
157
163
query I rowsort
SELECT DISTINCT ( + col0 ) + cor0.col1 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT col2 * ( + col1 * cor0.col0 ) FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT - - col1 * 60 AS col1 FROM tab2 AS cor0
----
1020
1860
3540
query I rowsort
SELECT ALL ( - col1 ) * col1 + cor0.col0 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT + tab1.col1 + - col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT DISTINCT - col2 + + 57 + - col1 FROM tab0
----
-116
-41
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 - + col2 col0 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1196
SELECT ALL - CAST( NULL AS SIGNED ) * + col2 + cor0.col2 * - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 + cor0.col2 * - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - ( + col2 ) * col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - + 14 + + 35 * col1 + ( - col0 + - col1 ) * - 55 * - col1 FROM tab2 cor0
----
-442514
-63719
-89179
query I rowsort
SELECT - 44 * col1 FROM tab0 AS cor0
----
-3784
-4004
-4268
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + ( + col0 + + ( col1 ) ) col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - 94 + - col1 AS col0 FROM tab1 AS cor0
----
-104
-107
-120
query I rowsort
SELECT DISTINCT + 39 * - col2 AS col0 FROM tab1 AS cor0
----
-2106
-2223
-3744
query I rowsort
SELECT + + 89 + - col0 FROM tab2 AS cor0
----
10
11
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1204
SELECT + col2 DIV - col1 + + 96 - - col2 FROM tab0 AS cor0
----
129
178
97
skipif mysql # not compatible
query I rowsort label-1204
SELECT + col2 / - col1 + + 96 - - col2 FROM tab0 AS cor0
----
129
178
97
query I rowsort
SELECT ALL ( col0 * col1 ) + 38 + col1 FROM tab1
----
1091
142
688
query I rowsort
SELECT col2 * col2 + col0 AS col0 FROM tab0 cor0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-1207
SELECT - col1 DIV - col1 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1207
SELECT - col1 / - col1 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT + 21 * cor0.col2 FROM tab2 AS cor0
----
546
567
798
query I rowsort
SELECT ALL + col0 + col0 * + ( col0 ) AS col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT DISTINCT 31 * col0 + 88 AS col0 FROM tab2 AS cor0
----
2506
2537
305
onlyif mysql # use DIV operator for integer division
query I rowsort label-1211
SELECT - col1 DIV + col0 col2 FROM tab1 AS cor0
----
-8
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1211
SELECT - col1 / + col0 col2 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT ALL cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - 40 * + col0 FROM tab1 cor0
----
-120
-2560
-3200
query I rowsort
SELECT + - 46 * cor0.col2 + col1 AS col0 FROM tab1 AS cor0
----
-2458
-2612
-4403
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 24 col2 FROM tab2 cor0
----
-24
-24
-24
query I rowsort
SELECT ALL + cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL 7 + - tab2.col1 - + col0 FROM tab2
----
-130
-31
-89
query I rowsort
SELECT DISTINCT col1 * ( col1 ) FROM tab2
----
289
3481
961
query I rowsort
SELECT ALL ( - cor0.col0 ) * cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 75a608bf2ba236d24f146ac4aff9ec52
query I rowsort
SELECT ALL - - ( col2 ) * col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + + col0 * 99 FROM tab2 AS cor0
----
693
7722
7821
onlyif mysql # use DIV operator for integer division
query I rowsort label-1222
SELECT ALL + ( ( - col1 ) ) DIV - col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL + ( ( - col1 ) ) / - col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT - + ( col0 ) * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - ( - 59 ) * + col1 - + col2 FROM tab0 AS cor0
----
5041
5287
5722
query I rowsort
SELECT + 59 - col0 * + col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-177445
-329256
-736950
query I rowsort
SELECT cor0.col2 * col2 + + col2 FROM tab1 AS cor0
----
2970
3306
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-1227
SELECT + + 58 DIV - col0 FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-1227
SELECT + + 58 / - col0 FROM tab0 AS cor0
----
-1
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1228
SELECT DISTINCT + col2 DIV - col0 FROM tab0 cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-1228
SELECT DISTINCT + col2 / - col0 FROM tab0 cor0
----
-1
0
query I rowsort
SELECT ALL ( + col0 ) + cor0.col2 * col1 * - cor0.col2 FROM tab0 AS cor0
----
-611795
-62
-93630
query I rowsort
SELECT col1 * - col1 * col2 AS col0 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT tab2.col2 * - col0 + + tab2.col0 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT - ( + 12 * + col1 + col1 ) FROM tab0
----
-1118
-1183
-1261
query I rowsort
SELECT DISTINCT col1 * - 56 FROM tab1
----
-1456
-560
-728
query I rowsort
SELECT DISTINCT - 72 AS col0 FROM tab2
----
-72
onlyif mysql # use DIV operator for integer division
query I rowsort label-1235
SELECT + col1 * 24 DIV + 61 FROM tab2 AS cor0
----
12
23
6
skipif mysql # not compatible
query I rowsort label-1235
SELECT + col1 * 24 / + 61 FROM tab2 AS cor0
----
12
23
6
query I rowsort
SELECT DISTINCT col2 + cor0.col2 + col0 AS col1 FROM tab2 AS cor0
----
130
155
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - 77 + + 48 * col2 col0 FROM tab1 AS cor0
----
-1566
-1653
-2784
onlyif mysql # use DIV operator for integer division
query I rowsort label-1238
SELECT ALL + col0 DIV + 96 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1238
SELECT ALL + col0 / + 96 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 * 25 + + 80 + col2 AS col1 FROM tab0 AS cor0
----
2263
2437
2506
query I rowsort
SELECT DISTINCT 80 * - col2 + tab1.col2 FROM tab1
----
-4266
-4503
-7584
query I rowsort
SELECT col2 * - ( 67 ) FROM tab0 AS cor0
----
-2211
-5494
-67
onlyif mysql # use DIV operator for integer division
query I rowsort label-1242
SELECT col0 + CAST( 79 AS SIGNED ) DIV col0 AS col1 FROM tab1 AS cor0
----
29
65
80
skipif mysql # not compatible
query I rowsort label-1242
SELECT col0 + CAST ( 79 AS INTEGER ) / col0 AS col1 FROM tab1 AS cor0
----
29
65
80
query I rowsort
SELECT ALL - cor0.col1 + + col2 * col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT + col0 + 64 FROM tab0 AS cor0
----
153
88
99
query I rowsort
SELECT DISTINCT + + cor0.col0 * col2 + col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT - col1 + 26 * col1 FROM tab1 AS cor0
----
250
325
650
query I rowsort
SELECT + + cor0.col2 + col0 * - col1 * col1 + - col0 FROM tab1 AS cor0
----
-13504
-1977
-6407
query I rowsort
SELECT - + cor0.col2 * ( + col2 ) FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-1249
SELECT + col0 + 90 DIV + col0 AS col0 FROM tab2 AS cor0
----
19
79
80
skipif mysql # not compatible
query I rowsort label-1249
SELECT + col0 + 90 / + col0 AS col0 FROM tab2 AS cor0
----
19
79
80
query I rowsort
SELECT ALL - 37 FROM tab0, tab2 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 93 col1 FROM tab1
----
5022
5301
8928
query I rowsort
SELECT col2 + + cor0.col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NOT col2 * col0 + col0 NOT BETWEEN NULL AND col1
----
query I rowsort
SELECT DISTINCT - col2 + + col0 + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-213
-3641
-7696
query I rowsort
SELECT ALL + cor0.col1 - + col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - col0 + - cor0.col0 * col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT - col2 * col1 * col1 AS col1 FROM tab2
----
-10982
-25947
-90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 + col0 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT tab2.col1 FROM tab2, tab0, tab1 AS cor0 WHERE NULL = ( NULL )
----
query I rowsort
SELECT + + col0 * - col2 + - col0 * - col2 FROM tab1 AS cor0
----
0
0
0
query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NULL < NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - col2 * col0 + + ( col2 ) * col1 AS col0 FROM tab1
----
-3078
-6432
1242
query I rowsort
SELECT DISTINCT + 22 FROM tab0 cor0
----
22
query I rowsort
SELECT DISTINCT - 43 + col2 AS col0 FROM tab1 AS cor0
----
11
14
53
query I rowsort
SELECT ALL - - cor0.col0 * - cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - - 94 * + col1 AS col2 FROM tab0 AS cor0
----
8084
8554
9118
query I rowsort
SELECT - col0 + - col2 * col2 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT DISTINCT 49 * col0 FROM tab0 AS cor0
----
1176
1715
4361
query I rowsort
SELECT DISTINCT - - col0 + col2 * - 45 FROM tab0 cor0
----
-10
-1461
-3601
query I rowsort
SELECT 98 + + col0 * + 61 * + cor0.col1 FROM tab2 AS cor0
----
13335
280820
82021
onlyif mysql # use DIV operator for integer division
query I rowsort label-1272
SELECT col0 DIV - col2 col0 FROM tab1 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1272
SELECT col0 / - col2 col0 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT - col1 * - col1 + - cor0.col1 FROM tab0 AS cor0
----
7310
8190
9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 + col0 col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + - col1 + - cor0.col0 * 20 AS col1 FROM tab1 AS cor0
----
-1290
-1613
-86
query I rowsort
SELECT ALL - - col0 * + 99 FROM tab1 AS cor0
----
297
6336
7920
query I rowsort
SELECT + col0 * - 35 FROM tab0 AS cor0
----
-1225
-3115
-840
onlyif mysql # use DIV operator for integer division
query I rowsort label-1278
SELECT ALL col0 DIV 22 FROM tab0 AS cor0
----
1
1
4
skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL col0 / 22 FROM tab0 AS cor0
----
1
1
4
query I rowsort
SELECT ALL + col0 * 10 + 76 AS col2 FROM tab1 AS cor0
----
106
716
876
query I rowsort
SELECT DISTINCT - + col2 + 62 * - col2 FROM tab0 AS cor0
----
-2079
-5166
-63
onlyif mysql # use DIV operator for integer division
query I rowsort label-1281
SELECT DISTINCT col2 * ( - col0 + - col2 ) DIV col0 col1 FROM tab1 AS cor0
----
-1026
-107
-211
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT col2 * ( - col0 + - col2 ) / col0 col1 FROM tab1 AS cor0
----
-1026
-107
-211
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 0 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL + col2 * - tab0.col0 + + 85 FROM tab0
----
-707
-7213
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-1284
SELECT + ( + col1 ) DIV col2 + 91 AS col2 FROM tab0 cor0
----
188
92
93
skipif mysql # not compatible
query I rowsort label-1284
SELECT + ( + col1 ) / col2 + 91 AS col2 FROM tab0 cor0
----
188
92
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-1285
SELECT ( - 83 ) DIV + col0 FROM tab0 AS cor0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-1285
SELECT ( - 83 ) / + col0 FROM tab0 AS cor0
----
-2
-3
0
query I rowsort
SELECT + - ( - col0 ) + - col0 AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1287
SELECT col0 DIV 89 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1287
SELECT col0 / 89 FROM tab1
----
0
0
0
query I rowsort
SELECT col1 * - 72 AS col1 FROM tab2
----
-1224
-2232
-4248
query I rowsort
SELECT ALL - + 14 * 57 + - cor0.col1 * cor0.col2 FROM tab1 AS cor0
----
-1368
-2046
-2202
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1290
SELECT ALL + CAST( NULL AS SIGNED ) * col1 * col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1290
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 * col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 91 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
onlyif mysql # use DIV operator for integer division
query I rowsort label-1292
SELECT DISTINCT + 34 DIV + col1 + col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-1292
SELECT DISTINCT + 34 / + col1 + col0 FROM tab0
----
24
35
89
query I rowsort
SELECT - col0 * + 27 FROM tab2
----
-189
-2106
-2133
onlyif mysql # use DIV operator for integer division
query I rowsort label-1294
SELECT - 85 DIV - col1 FROM tab2
----
1
2
5
skipif mysql # not compatible
query I rowsort label-1294
SELECT - 85 / - col1 FROM tab2
----
1
2
5
query I rowsort
SELECT - 68 * + tab2.col2 + col1 FROM tab2
----
-1709
-1805
-2567
query I rowsort
SELECT cor1.col2 * 42 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 34b06ed561610479f39bb2ca6e077698
query I rowsort
SELECT - ( 37 ) * - col2 + - 24 + ( + col2 ) FROM tab2
----
1002
1420
964
query I rowsort
SELECT DISTINCT - tab1.col0 * ( col2 ) - + col1 FROM tab1
----
-188
-3658
-7693
query I rowsort
SELECT - ( + cor0.col2 ) * + col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT col2 + col1 * - col0 * - 83 AS col2 FROM tab2 AS cor0
----
111507
18038
381992
query I rowsort
SELECT ALL + col0 * + col0 * col0 + - 19 FROM tab1 AS cor0
----
262125
511981
8
query I rowsort
SELECT ALL ( - col1 * tab1.col2 ) - - col1 AS col0 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT ALL ( 0 ) * col2 + tab2.col1 AS col0 FROM tab2
----
17
31
59
query I rowsort
SELECT cor0.col1 FROM tab2, tab2 cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1305
SELECT DISTINCT ( + tab1.col0 ) + - 84 DIV - tab1.col1 AS col1 FROM tab1
----
6
72
86
skipif mysql # not compatible
query I rowsort label-1305
SELECT DISTINCT ( + tab1.col0 ) + - 84 / - tab1.col1 AS col1 FROM tab1
----
6
72
86
query I rowsort
SELECT ALL 76 * + col0 + tab2.col1 AS col2 FROM tab2
----
563
5987
6021
query I rowsort
SELECT + 42 + col1 * + 35 AS col2 FROM tab0
----
3052
3227
3437
query I rowsort
SELECT ALL col2 * + tab1.col0 + col0 * - col2 AS col1 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1309
SELECT DISTINCT 65 DIV col2 + - col0 * - col1 AS col2 FROM tab1
----
1040
641
79
skipif mysql # not compatible
query I rowsort label-1309
SELECT DISTINCT 65 / col2 + - col0 * - col1 AS col2 FROM tab1
----
1040
641
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1310
SELECT + col1 DIV - col0 AS col1 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-1310
SELECT + col1 / - col0 AS col1 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT DISTINCT + 60 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
60
query I rowsort
SELECT DISTINCT 81 AS col1 FROM tab2, tab1 AS cor0
----
81
query I rowsort
SELECT - col1 * col2 - tab1.col2 FROM tab1
----
-1344
-1458
-627
query I rowsort
SELECT col1 * - tab1.col2 + + 8 FROM tab1
----
-1240
-1396
-562
query I rowsort
SELECT ALL col0 + - ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + - tab0.col2 col0 FROM tab0
----
34
7216
759
query I rowsort
SELECT col1 * - col0 - + col1 FROM tab1 cor0
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT col0 * + col0 + - col2 * col2 FROM tab1 AS cor0
----
-2816
-2907
847
query I rowsort
SELECT ALL - col1 + + 27 * - col0 FROM tab1 AS cor0
----
-107
-1738
-2173
onlyif mysql # use DIV operator for integer division
query I rowsort label-1320
SELECT ALL ( col0 ) * col1 + col2 - 64 DIV + col2 AS col0 FROM tab0 AS cor0
----
2096
3332
8181
skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL ( col0 ) * col1 + col2 - 64 / + col2 AS col0 FROM tab0 AS cor0
----
2096
3332
8181
query I rowsort
SELECT - col2 * 91 AS col1 FROM tab1 AS cor0
----
-4914
-5187
-8736
query I rowsort
SELECT DISTINCT + col2 * + 22 + - col2 AS col1 FROM tab0
----
1722
21
693
query I rowsort
SELECT ALL ( + col2 ) - col0 FROM tab1 cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + col1 * - col1 + - col2 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT 35 * - col1 FROM tab1 AS cor0
----
-350
-455
-910
onlyif mysql # use DIV operator for integer division
query I rowsort label-1327
SELECT DISTINCT + 87 DIV 46 AS col0 FROM tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-1327
SELECT DISTINCT + 87 / 46 AS col0 FROM tab0 cor0
----
1
query I rowsort
SELECT DISTINCT + 91 * col1 FROM tab1 AS cor0
----
1183
2366
910
query I rowsort
SELECT ALL + col0 - 7 * - col2 AS col1 FROM tab1 AS cor0
----
381
463
752
onlyif mysql # use DIV operator for integer division
query I rowsort label-1330
SELECT ALL - - 6 DIV + col1 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL - - 6 / + col1 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 7 * col2 FROM tab0 AS cor0
----
231
574
7
query I rowsort
SELECT DISTINCT + + ( - 54 ) + col1 * ( col1 ) FROM tab1 AS cor0
----
115
46
622
query I rowsort
SELECT DISTINCT + 47 * + col1 + col1 FROM tab0 AS cor0
----
4128
4368
4656
query I rowsort
SELECT ALL + col2 * - col0 + - col1 * ( 92 ) FROM tab2 AS cor0
----
-3041
-4566
-7456
query I rowsort
SELECT ALL - cor0.col1 * 78 FROM tab0 cor0
----
-6708
-7098
-7566
query I rowsort
SELECT ALL col2 * + ( - 98 ) FROM tab1
----
-5292
-5586
-9408
query I rowsort
SELECT + col0 * - col1 * + col0 FROM tab2 AS cor0
----
-106097
-1519
-358956
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1338
SELECT ALL - col0 / - CAST( NULL AS SIGNED ) + cor0.col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL - col0 / - CAST ( NULL AS INTEGER ) + cor0.col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + - 20 * col2 AS col1 FROM tab1 AS cor0
----
-1054
-1130
-1907
query I rowsort
SELECT - - col0 * col2 + - col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT + tab0.col1 * + 79 FROM tab0
----
6794
7189
7663
query I rowsort
SELECT DISTINCT - - ( + cor0.col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL 66 + + col1 * + col2 FROM tab1 AS cor0
----
1314
1470
636
query I rowsort
SELECT ALL + ( - 89 * - col1 ) FROM tab2
----
1513
2759
5251
query I rowsort
SELECT - - 26 AS col2 FROM tab1 cor0
----
26
26
26
query I rowsort
SELECT ALL + 36 * + col1 FROM tab0 cor0
----
3096
3276
3492
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT - tab2.col0 + + 43 FROM tab2, tab1 cor0
----
9 values hashing to d45ed7377532fa14140d2fa2b0e17790
query I rowsort
SELECT DISTINCT - + 85 * col0 FROM tab1 AS cor0
----
-255
-5440
-6800
onlyif mysql # use DIV operator for integer division
query I rowsort label-1350
SELECT 3 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1350
SELECT 3 / - col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col0 + cor0.col0 AS col0 FROM tab2 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 92 + + col2 col2 FROM tab2 AS cor0
----
-54
-65
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-1353
SELECT - 8 DIV - col2 col0 FROM tab0
----
0
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1353
SELECT - 8 / - col2 col0 FROM tab0
----
0
0
8
query I rowsort
SELECT ALL 42 * + col1 + + col0 AS col0 FROM tab0
----
3636
3911
4109
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1356
SELECT - + CAST( 29 AS SIGNED ) * cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31af336f294c9b00673a806e905bbdc0
skipif mysql # not compatible
query I rowsort label-1356
SELECT - + CAST ( 29 AS INTEGER ) * cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31af336f294c9b00673a806e905bbdc0
query I rowsort
SELECT col2 * cor0.col2 + - 78 * col1 - - col0 FROM tab2 AS cor0
----
-1682
-3848
197
query I rowsort
SELECT DISTINCT + + 68 * - col1 FROM tab2 AS cor0
----
-1156
-2108
-4012
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1359
SELECT - - cor0.col2 + - col0 - - CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1359
SELECT - - cor0.col2 + - col0 - - CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - 7 * - col1 FROM tab2 AS cor0
----
-119
-217
-413
onlyif mysql # use DIV operator for integer division
query I rowsort label-1361
SELECT - 72 + - col2 DIV - col0 FROM tab0 cor0
----
-71
-72
-72
skipif mysql # not compatible
query I rowsort label-1361
SELECT - 72 + - col2 / - col0 FROM tab0 cor0
----
-71
-72
-72
query I rowsort
SELECT 17 + + col2 FROM tab0 AS cor0
----
18
50
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-1363
SELECT cor0.col1 DIV + 97 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1363
SELECT cor0.col1 / + 97 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1364
SELECT col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1364
SELECT col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 + - col1 * - 17 * - col1 FROM tab0 cor0
----
-125646
-140686
-159856
query I rowsort
SELECT + 71 FROM tab1, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT + col0 * + col2 + col2 * - col1 FROM tab2 AS cor0
----
-648
2356
494
query I rowsort
SELECT col2 * col0 + + col2 * + col2 FROM tab2 AS cor0
----
2704
4446
918
onlyif mysql # use DIV operator for integer division
query I rowsort label-1369
SELECT + + col1 DIV col2 + cor0.col2 * - cor0.col2 FROM tab0 AS cor0
----
-1087
-6723
96
skipif mysql # not compatible
query I rowsort label-1369
SELECT + + col1 / col2 + cor0.col2 * - cor0.col2 FROM tab0 AS cor0
----
-1087
-6723
96
query I rowsort
SELECT ALL + - ( col2 ) + col0 AS col1 FROM tab2 AS cor0
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 * - col0 + - ( col1 ) col2 FROM tab2 cor0
----
119593
51017
5828
query I rowsort
SELECT - 10 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e
query I rowsort
SELECT + 90 + - col1 * col0 FROM tab1 AS cor0
----
-550
-950
12
onlyif mysql # use DIV operator for integer division
query I rowsort label-1374
SELECT DISTINCT + col0 + - col2 + col0 DIV col2 FROM tab0
----
-9
69
8
skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT + col0 + - col2 + col0 / col2 FROM tab0
----
-9
69
8
query I rowsort
SELECT 91 + + col2 FROM tab0
----
124
173
92
query I rowsort
SELECT DISTINCT tab1.col0 * + tab1.col0 * + ( - col1 ) + - col2 FROM tab1
----
-288
-41017
-83296
query I rowsort
SELECT tab1.col1 * - 29 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 2f8c0124c2f3e70e2fd3f07596e28df0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1378
SELECT ALL col0 DIV + tab1.col2 AS col0 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1378
SELECT ALL col0 / + tab1.col2 AS col0 FROM tab1
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1379
SELECT ALL tab2.col2 * col1 DIV - col1 AS col2 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-1379
SELECT ALL tab2.col2 * col1 / - col1 AS col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT col0 - + col1 * col1 * - col0 AS col2 FROM tab2
----
22910
271596
6734
onlyif mysql # use DIV operator for integer division
query I rowsort label-1381
SELECT DISTINCT + col0 DIV + col1 AS col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-1381
SELECT DISTINCT + col0 / + col1 AS col0 FROM tab0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1382
SELECT DISTINCT tab1.col2 DIV - col0 AS col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT tab1.col2 / - col0 AS col0 FROM tab1
----
-1
-18
0
query I rowsort
SELECT col1 * tab2.col2 + tab2.col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT ALL col1 + + tab0.col0 * + col2 - + col2 FROM tab0
----
131
7307
845
query I rowsort
SELECT DISTINCT + col0 + - tab2.col0 * col0 + + col2 FROM tab2
----
-15
-5980
-6124
query I rowsort
SELECT + col0 * col2 + - col0 AS col2 FROM tab0 WHERE ( NULL ) IN ( col2 )
----
query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col1 * col2 * + col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * tab1.col0 * col2 + col1 col0 FROM tab1
----
-233462
-460
-614387
query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + col2 + col2 * tab0.col2 )
----
query I rowsort
SELECT ALL - col0 + col0 + - tab2.col2 AS col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT col2 * col1 * col1 AS col2 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT tab2.col2 * - col0 AS col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT col0 * col0 * - tab0.col2 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL + col1 * col1 + - 14 AS col1 FROM tab1 AS cor0
----
155
662
86
query I rowsort
SELECT ALL - ( - col0 ) AS col1 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT + cor0.col1 * 23 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to 3630ab1a16e198a0e244e6e2cb68f30e
onlyif mysql # use DIV operator for integer division
query I rowsort label-1397
SELECT col1 * col0 * 20 + col0 DIV col2 FROM tab0 AS cor0
----
161981
41280
67935
skipif mysql # not compatible
query I rowsort label-1397
SELECT col1 * col0 * 20 + col0 / col2 FROM tab0 AS cor0
----
161981
41280
67935
query I rowsort
SELECT ALL + ( - col1 ) * - col1 + - col2 AS col0 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT + - col1 + + cor0.col1 * + ( + col2 * - cor0.col1 ) FROM tab1 AS cor0
----
-16237
-36530
-5710
query I rowsort
SELECT - 52 * + col1 + + col0 FROM tab0 AS cor0
----
-4448
-4643
-5009
query I rowsort
SELECT ALL col1 + - col1 * + col1 + 42 * cor0.col2 FROM tab1 AS cor0
----
1618
2304
3876
onlyif mysql # use DIV operator for integer division
query I rowsort label-1402
SELECT col0 + cor0.col2 DIV + col0 FROM tab1 AS cor0
----
21
64
81
skipif mysql # not compatible
query I rowsort label-1402
SELECT col0 + cor0.col2 / + col0 FROM tab1 AS cor0
----
21
64
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 + col0 col2 FROM tab0 AS cor0
----
115
126
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 + col1 * col1 col1 FROM tab0 WHERE NOT - col1 * + col2 IN ( - tab0.col0 * tab0.col0 )
----
182
5332
6014
query I rowsort
SELECT col0 FROM tab1 WHERE NOT + col0 BETWEEN NULL AND ( col2 + col2 )
----
query I rowsort
SELECT col1 + + tab0.col2 * col1 AS col2 FROM tab0
----
194
2924
7553
query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE ( NULL ) <> NULL
----
query I rowsort
SELECT ALL - col1 * col1 * + col2 AS col0 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT ALL + tab1.col0 * col1 * + tab1.col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT ALL + col0 + + tab1.col0 * col0 AS col2 FROM tab1
----
12
4160
6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-1411
SELECT ALL col1 DIV col1 + - col0 AS col1 FROM tab0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL col1 / col1 + - col0 AS col1 FROM tab0
----
-23
-34
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + - col1 col2 FROM tab1
----
156
650
90
query I rowsort
SELECT col0 + col0 FROM tab0 WHERE NULL <= col1
----
query I rowsort
SELECT DISTINCT + cor0.col2 * - 68 FROM tab2 AS cor0
----
-1768
-1836
-2584
query I rowsort
SELECT ALL - ( + col1 ) * - col2 + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL 61 * - cor0.col2 + col0 FROM tab2 AS cor0
----
-1508
-1640
-2239
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 0a9194f200a4220e419d35c461f9fcfe
query I rowsort
SELECT + - 68 * 33 AS col2 FROM tab0 cor0
----
-2244
-2244
-2244
query I rowsort
SELECT 69 * col0 * - col1 AS col0 FROM tab0 AS cor0
----
-142416
-234255
-558831
query I rowsort
SELECT ALL 43 - 87 FROM tab0
----
-44
-44
-44
query I rowsort
SELECT ALL + 98 AS col0 FROM tab1 cor0
----
98
98
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-1422
SELECT + col0 DIV col2 + + ( 69 ) AS col0 FROM tab1 AS cor0
----
69
69
70
skipif mysql # not compatible
query I rowsort label-1422
SELECT + col0 / col2 + + ( 69 ) AS col0 FROM tab1 AS cor0
----
69
69
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-1423
SELECT DISTINCT col1 + col2 DIV + col0 - + col2 * 79 FROM tab0
----
-2520
-6387
18
skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT col1 + col2 / + col0 - + col2 * 79 FROM tab0
----
-2520
-6387
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1424
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1424
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1, tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col2 + 5 AS col1 FROM tab0
----
-28
-77
4
query I rowsort
SELECT 39 + - col1 * + col2 * col1 FROM tab2
----
-10943
-25908
-90467
query I rowsort
SELECT ALL col2 + + 16 * + col2 AS col1 FROM tab0
----
1394
17
561
query I rowsort
SELECT ALL + + 38 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
onlyif mysql # use DIV operator for integer division
query I rowsort label-1429
SELECT DISTINCT - col2 * 3 + - col0 DIV col1 AS col1 FROM tab1 AS cor0
----
-162
-177
-294
skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT - col2 * 3 + - col0 / col1 AS col1 FROM tab1 AS cor0
----
-162
-177
-294
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * cor0.col0 col0 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT col0 * + col0 * col1 AS col2 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT DISTINCT - - col0 + - col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - col2 + 36 * 31 AS col0 FROM tab1 AS cor0
----
1020
1059
1062
onlyif mysql # use DIV operator for integer division
query I rowsort label-1434
SELECT ALL col2 DIV - tab0.col1 + 68 * 18 DIV col2 AS col2 FROM tab0
----
1224
14
37
skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL col2 / - tab0.col1 + 68 * 18 / col2 AS col2 FROM tab0
----
1224
14
37
query I rowsort
SELECT DISTINCT + ( + col2 ) + - 48 * col1 FROM tab2
----
-1461
-2806
-778
query I rowsort
SELECT col1 * - col0 * col0 + col0 FROM tab1
----
-231
-40896
-83120
query I rowsort
SELECT col0 + - col1 * + col1 AS col0 FROM tab1
----
-36
-673
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 * - ( col1 ) + - col2 col2 FROM tab1
----
-288
-41017
-83296
query I rowsort
SELECT ALL - 59 + tab0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to f3f6292eda917e4c117ed07a3844f6ec
query I rowsort
SELECT ALL cor0.col2 * + col2 + + col1 * - cor0.col2 FROM tab0 AS cor0
----
-1749
-738
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1441
SELECT DISTINCT + col1 * CAST( col2 AS SIGNED ) + col0 * 84 AS col1 FROM tab2 AS cor0
----
1425
7282
8086
skipif mysql # not compatible
query I rowsort label-1441
SELECT DISTINCT + col1 * CAST ( col2 AS INTEGER ) + col0 * 84 AS col1 FROM tab2 AS cor0
----
1425
7282
8086
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - col0 * - CAST ( - 55 AS REAL ) * cor0.col0 + - col2 AS col1 FROM tab0 cor0
----
-31713
-435737
-67376
query I rowsort
SELECT DISTINCT - col2 + - col1 * + 56 * col1 FROM tab2 AS cor0
----
-16222
-194962
-53843
query I rowsort
SELECT ALL - + col0 * - ( 57 ) FROM tab2 AS cor0
----
399
4446
4503
onlyif mysql # use DIV operator for integer division
query I rowsort label-1445
SELECT col1 DIV + 44 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1445
SELECT col1 / + 44 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - cor0.col2 * + ( + col2 + + col1 ) FROM tab1 AS cor0
----
10464
3819
4320
query I rowsort
SELECT - 11 * col0 + col1 AS col2 FROM tab1 AS cor0
----
-694
-7
-867
query I rowsort
SELECT + 45 + - col1 + 17 AS col1 FROM tab2 AS cor0
----
3
31
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-1449
SELECT DISTINCT col2 + - col0 DIV col1 + + col0 FROM tab1
----
115
170
57
skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT col2 + - col0 / col1 + + col0 FROM tab1
----
115
170
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 3 + col1 col2 FROM tab2
----
-175
-220
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-1451
SELECT + col2 DIV + col0 + cor0.col1 AS col0 FROM tab1 cor0
----
10
14
44
skipif mysql # not compatible
query I rowsort label-1451
SELECT + col2 / + col0 + cor0.col1 AS col0 FROM tab1 cor0
----
10
14
44
query I rowsort
SELECT DISTINCT - 40 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-40
query I rowsort
SELECT ALL + 57 * - col2 AS col2 FROM tab1
----
-3078
-3249
-5472
onlyif mysql # use DIV operator for integer division
query I rowsort label-1454
SELECT ALL - + col2 DIV col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1454
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-1455
SELECT - col0 + CAST( - 25 AS SIGNED ) FROM tab1
----
-105
-28
-89
skipif mysql # not compatible
query I rowsort label-1455
SELECT - col0 + CAST ( - 25 AS INTEGER ) FROM tab1
----
-105
-28
-89
query I rowsort
SELECT + col1 - + col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 21 col0 FROM tab2
----
-4
10
38
query I rowsort
SELECT + - 74 * - 91 AS col0 FROM tab0 AS cor0
----
6734
6734
6734
query I rowsort
SELECT ALL + col1 * col0 * col2 - - col0 FROM tab2 cor0
----
119730
51113
5866
query I rowsort
SELECT + - 74 + - col0 AS col1 FROM tab1 AS cor0
----
-138
-154
-77
query I rowsort
SELECT ( col2 ) + col1 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT 43 * - 25 - + col0 * + 45 FROM tab2 AS cor0
----
-1390
-4585
-4630
query I rowsort
SELECT ALL - - cor0.col0 * col2 + col2 AS col1 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT + - 92 * + col2 + col2 AS col1 FROM tab2 AS cor0
----
-2366
-2457
-3458
query I rowsort
SELECT ALL - + col1 + - cor0.col0 * col0 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT ALL - - cor0.col2 - col2 * col1 * + 34 FROM tab2 cor0
----
-21926
-28431
-52130
onlyif mysql # use DIV operator for integer division
query I rowsort label-1467
SELECT DISTINCT col0 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1467
SELECT DISTINCT col0 / - col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + 48 * col2 - col0 FROM tab2 AS cor0
----
1170
1289
1745
onlyif mysql # use DIV operator for integer division
query I rowsort label-1469
SELECT DISTINCT + col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-1469
SELECT DISTINCT + col0 / - col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1470
SELECT ALL + 98 DIV - 38 + + col1 AS col0 FROM tab0 AS cor0
----
84
89
95
skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL + 98 / - 38 + + col1 AS col0 FROM tab0 AS cor0
----
84
89
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 col2 FROM tab2 cor0
----
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1472
SELECT CAST( NULL AS SIGNED ) * - col2 * col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1472
SELECT CAST ( NULL AS INTEGER ) * - col2 * col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1473
SELECT 52 DIV + col0 FROM tab2
----
0
0
7
skipif mysql # not compatible
query I rowsort label-1473
SELECT 52 / + col0 FROM tab2
----
0
0
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 + cor0.col0 + 12 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to e81ca319ca779b9e9abb5d61fbd4f184
query I rowsort
SELECT + - 14 * + col0 AS col1 FROM tab1 AS cor0
----
-1120
-42
-896
query I rowsort
SELECT - - ( + col0 ) * col1 * + col0 - - col2 * - col0 FROM tab2 AS cor0
----
103095
1330
356928
query I rowsort
SELECT - - col2 * col1 - + ( - ( cor0.col1 ) * - col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 + - cor0.col1 col2 FROM tab1 AS cor0
----
19
22
6
query I rowsort
SELECT ( + col2 ) * 47 + - col1 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
11316
144
4389
query I rowsort
SELECT ALL - ( col0 ) * + ( + 0 ) + col0 FROM tab0 cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1481
SELECT ALL - + 80 + col2 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL - + 80 + col2 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * col2 * + col1 + 57 AS col1 FROM tab2 AS cor0
----
-10925
-25890
-90449
query I rowsort
SELECT DISTINCT - - 33 AS col2 FROM tab1 AS cor0
----
33
query I rowsort
SELECT ALL + cor0.col2 - - col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT + - ( + col0 ) * 46 + - cor0.col0 + col0 AS col2 FROM tab1 AS cor0
----
-138
-2944
-3680
query I rowsort
SELECT + 37 - + col0 FROM tab2 AS cor0
----
-41
-42
30
query I rowsort
SELECT col2 + - ( + 27 ) * col0 FROM tab0 AS cor0
----
-2321
-615
-944
query I rowsort
SELECT - col2 * + ( ( - col0 ) ) FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1489
SELECT + CAST( 11 AS SIGNED ) FROM tab0, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 288f8fb62e079d095c14d7cf3e2d3359
skipif mysql # not compatible
query I rowsort label-1489
SELECT + CAST ( 11 AS INTEGER ) FROM tab0, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 288f8fb62e079d095c14d7cf3e2d3359
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT ALL - - col1 * - 97 + 4 FROM tab2 cor0
----
-1645
-3003
-5719
query I rowsort
SELECT col2 + - col0 AS col2 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT - col0 * - col1 + - col1 AS col2 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT DISTINCT + + col1 + - ( + col1 ) * - col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT DISTINCT - col1 + 14 * - col0 AS col0 FROM tab2 AS cor0
----
-1123
-1151
-129
query I rowsort
SELECT ALL + 46 * + col1 FROM tab0
----
3956
4186
4462
query I rowsort
SELECT ALL - col2 * - 3 - - col2 AS col0 FROM tab0
----
132
328
4
query I rowsort
SELECT DISTINCT - 19 FROM tab1, tab0 AS cor0
----
-19
query I rowsort
SELECT + col1 * - col2 + + col1 - + col2 * - ( 18 ) FROM tab0
----
-2158
-5895
18
query I rowsort
SELECT - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT DISTINCT - col1 * 61 FROM tab0 AS cor0
----
-5246
-5551
-5917
query I rowsort
SELECT DISTINCT col2 * + 3 AS col1 FROM tab2 cor0
----
114
78
81
query I rowsort
SELECT - col1 + - col2 - + 81 FROM tab1 AS cor0
----
-148
-161
-190
query I rowsort
SELECT ALL + - col0 + - 93 AS col2 FROM tab1 AS cor0
----
-157
-173
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 * col0 - - col2 col1 FROM tab1 AS cor0
----
1056
129
633
query I rowsort
SELECT col2 + - ( col1 ) AS col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT ( col1 * + 62 ) AS col1 FROM tab1
----
1612
620
806
query I rowsort
SELECT cor0.col2 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT ALL - 77 AS col0 FROM tab2
----
-77
-77
-77
query I rowsort
SELECT 8 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1511
SELECT - CAST( NULL AS SIGNED ) * + 99 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1511
SELECT - CAST ( NULL AS INTEGER ) * + 99 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - col1 + - col0 * + col2 AS col1 FROM tab2 cor0
----
-2087
-220
-3019
query I rowsort
SELECT ALL - col1 * col2 + - 58 * 50 FROM tab2 AS cor0
----
-3546
-3737
-4434
query I rowsort
SELECT DISTINCT + 16 - col1 FROM tab2 AS cor0
----
-1
-15
-43
query I rowsort
SELECT DISTINCT + cor0.col1 * col0 - col1 AS col0 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ALL + 12 * + col1 + + 45 AS col1 FROM tab0 cor0
----
1077
1137
1209
query I rowsort
SELECT DISTINCT + - 33 AS col0 FROM tab1 AS cor0
----
-33
query I rowsort
SELECT DISTINCT - ( + tab0.col1 * + tab0.col2 ) AS col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + + col1 - + col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col1 + - col0 * col1 * 22 + - col1 AS col2 FROM tab1 AS cor0
----
-14080
-1716
-22880
query I rowsort
SELECT ALL - ( - col1 ) - - col2 * col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT - - col0 * - col1 - col0 AS col0 FROM tab2 cor0
----
-1422
-224
-4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-1523
SELECT ALL - - cor0.col1 + col2 DIV + col0 col0 FROM tab0 cor0
----
87
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1523
SELECT ALL - - cor0.col1 + col2 / + col0 col0 FROM tab0 cor0
----
87
91
97
query I rowsort
SELECT DISTINCT - - ( col0 ) * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL + - ( col0 ) * + 7 FROM tab0 AS cor0
----
-168
-245
-623
query I rowsort
SELECT DISTINCT - + col2 + 64 + col1 FROM tab0 AS cor0
----
117
160
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-1527
SELECT ALL + col2 - 35 DIV col0 AS col2 FROM tab2 AS cor0
----
22
26
38
skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL + col2 - 35 / col0 AS col2 FROM tab2 AS cor0
----
22
26
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1528
SELECT DISTINCT + col2 - - col0 DIV - col0 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-1528
SELECT DISTINCT + col2 - - col0 / - col0 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT DISTINCT - - col0 * + col0 + 56 - col1 FROM tab2 cor0
----
6081
6280
74
query I rowsort
SELECT col1 * + ( col0 ) FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1531
SELECT - CAST( NULL AS SIGNED ) / - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1531
SELECT - CAST ( NULL AS INTEGER ) / - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1532
SELECT DISTINCT - - ( col2 ) + + cor0.col1 DIV col2 FROM tab1 cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-1532
SELECT DISTINCT - - ( col2 ) + + cor0.col1 / col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + ( - col2 ) + + col0 * - 1 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT - 61 + - col1 FROM tab0
----
-147
-152
-158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1535
SELECT ALL CAST( - 36 AS SIGNED ) * col1 AS col1 FROM tab1
----
-360
-468
-936
skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL CAST ( - 36 AS INTEGER ) * col1 AS col1 FROM tab1
----
-360
-468
-936
query I rowsort
SELECT - - ( - 21 ) AS col2 FROM tab1 AS cor0
----
-21
-21
-21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1537
SELECT ALL + CAST( NULL AS SIGNED ) * + 75 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL + CAST ( NULL AS INTEGER ) * + 75 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 19 FROM tab1, tab1 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4
query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col1 FROM tab0, tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL col1 - ( - col1 + + col0 ) FROM tab0
----
148
159
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-1541
SELECT + col0 * - col0 + + col0 DIV - col2 AS col1 FROM tab0 cor0
----
-1260
-576
-7922
skipif mysql # not compatible
query I rowsort label-1541
SELECT + col0 * - col0 + + col0 / - col2 AS col1 FROM tab0 cor0
----
-1260
-576
-7922
query I rowsort
SELECT + col1 * cor0.col1 + + 50 * col0 AS col1 FROM tab1 AS cor0
----
3300
4169
826
query I rowsort
SELECT ALL + 69 + col2 AS col1 FROM tab2
----
107
95
96
query I rowsort
SELECT DISTINCT col2 + tab1.col1 * col1 + - col2 FROM tab1
----
100
169
676
query I rowsort
SELECT + 77 + ( + col1 * + col0 ) + + col0 * + col0 AS col1 FROM tab1
----
164
4813
7517
query I rowsort
SELECT - col1 * col2 + ( + col1 ) AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL - 52 * - col2 FROM tab1 AS cor0
----
2808
2964
4992
query I rowsort
SELECT ALL + 55 * - col0 AS col1 FROM tab2 AS cor0
----
-385
-4290
-4345
query I rowsort
SELECT + col0 + col2 * ( col2 * - col0 ) AS col1 FROM tab1 AS cor0
----
-207872
-737200
-8745
onlyif mysql # use DIV operator for integer division
query I rowsort label-1550
SELECT ALL col1 DIV col1 AS col2 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1550
SELECT ALL col1 / col1 AS col2 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT 72 AS col0 FROM tab1 cor0
----
72
query I rowsort
SELECT ALL col0 * 45 * + col0 + - col2 AS col2 FROM tab0
----
25887
356363
55124
query I rowsort
SELECT DISTINCT ( col2 * col0 ) + - 49 AS col2 FROM tab2
----
140
1979
2953
onlyif mysql # use DIV operator for integer division
query I rowsort label-1554
SELECT col1 + - col2 DIV - col2 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-1554
SELECT col1 + - col2 / - col2 FROM tab1
----
11
14
27
query I rowsort
SELECT ALL - 76 + - 78 AS col0 FROM tab2
----
-154
-154
-154
query I rowsort
SELECT ALL + col1 + col1 * col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - 19 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662
query I rowsort
SELECT DISTINCT col2 * + col2 + + 94 FROM tab0
----
1183
6818
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + cor0.col2 col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - 6 + - ( cor0.col0 ) FROM tab2 AS cor0
----
-13
-84
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1561
SELECT - tab0.col2 * - CAST( + col2 * col0 AS SIGNED ) FROM tab0
----
26136
35
598436
skipif mysql # not compatible
query I rowsort label-1561
SELECT - tab0.col2 * - CAST ( + col2 * col0 AS INTEGER ) FROM tab0
----
26136
35
598436
query I rowsort
SELECT col2 * col1 * col1 FROM tab0
----
244068
679042
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-1563
SELECT col0 + - col1 DIV + col2 AS col2 FROM tab0
----
-62
22
88
skipif mysql # not compatible
query I rowsort label-1563
SELECT col0 + - col1 / + col2 AS col2 FROM tab0
----
-62
22
88
query I rowsort
SELECT DISTINCT col2 + col1 * 78 FROM tab1
----
1110
2082
837
query I rowsort
SELECT ALL 55 AS col2 FROM tab0 AS cor0
----
55
55
55
query I rowsort
SELECT ALL - cor0.col1 * + col2 + col0 * col1 * + col2 FROM tab0 cor0
----
3298
65274
656656
query I rowsort
SELECT + + 85 FROM tab0 AS cor0
----
85
85
85
query I rowsort
SELECT DISTINCT ( - col1 ) * col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - ( col1 + - col1 ) * ( - 41 + col1 ) AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT 86 + col2 FROM tab2
----
112
113
124
query I rowsort
SELECT ALL + 34 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT - - 39 - 36 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 68 col1 FROM tab0 AS cor0
----
-68
-68
-68
query I rowsort
SELECT DISTINCT - + 76 FROM tab0 cor0
----
-76
query I rowsort
SELECT ALL col0 + col2 * ( col2 ) FROM tab0 AS cor0
----
1113
36
6813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * cor0.col0 * + ( col0 ) col2 FROM tab2 AS cor0
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-1577
SELECT DISTINCT - 20 DIV + col0 AS col1 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-1577
SELECT DISTINCT - 20 / + col0 AS col1 FROM tab2 AS cor0
----
-2
0
query I rowsort
SELECT DISTINCT - + tab1.col0 FROM tab1, tab0, tab0 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + col2 * + cor0.col1 * 66 FROM tab2 AS cor0
----
101244
42636
55242
query I rowsort
SELECT DISTINCT - 19 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-19
query I rowsort
SELECT ALL - col0 + - ( col0 ) AS col2 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT DISTINCT + col1 * + ( 59 ) + col2 FROM tab1 AS cor0
----
1588
647
863
query I rowsort
SELECT ALL + - col1 * ( 74 ) - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-1933
-4836
-7362
query I rowsort
SELECT ALL tab1.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL + tab0.col1 * + cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 116454f2268e21c1351daf3f5803c987
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to 58b53d9f2c5d79e6fe94b4a97272440e
query I rowsort
SELECT col2 * 5 FROM tab2 AS cor0
----
130
135
190
query I rowsort
SELECT DISTINCT 87 FROM tab0, tab2 AS cor0
----
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - ( tab0.col1 ) ) col0 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL - cor0.col1 * + tab2.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 98035271089455e681d20c65fd337c0a
query I rowsort
SELECT + col1 * cor0.col1 + - cor0.col2 FROM tab2 cor0
----
251
3455
934
onlyif mysql # use DIV operator for integer division
query I rowsort label-1592
SELECT + 98 DIV + tab0.col0 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 36d00a2b29852f88ac26d257535464fb
skipif mysql # not compatible
query I rowsort label-1592
SELECT + 98 / + tab0.col0 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 36d00a2b29852f88ac26d257535464fb
query I rowsort
SELECT - + 55 FROM tab0 AS cor0
----
-55
-55
-55
query I rowsort
SELECT + 4 * 23 FROM tab1
----
92
92
92
query I rowsort
SELECT - 41 + col0 FROM tab1 AS cor0
----
-38
23
39
query I rowsort
SELECT DISTINCT - 79 * col0 + col1 FROM tab0 AS cor0
----
-1810
-2668
-6940
query I rowsort
SELECT ALL - ( + 53 ) AS col0 FROM tab1 AS cor0
----
-53
-53
-53
onlyif mysql # use DIV operator for integer division
query I rowsort label-1598
SELECT + cor0.col1 DIV - col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1598
SELECT + cor0.col1 / - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - 24 * - 92 FROM tab0 AS cor0
----
2208
2208
2208
onlyif mysql # use DIV operator for integer division
query I rowsort label-1600
SELECT + col2 + + col2 DIV cor0.col0 FROM tab1 AS cor0
----
57
72
97
skipif mysql # not compatible
query I rowsort label-1600
SELECT + col2 + + col2 / cor0.col0 FROM tab1 AS cor0
----
57
72
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1601
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1601
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - ( ( + col1 ) ) * col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT - - ( 36 ) + col0 FROM tab2 AS cor0
----
114
115
43
query I rowsort
SELECT + - col2 * - col1 + col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL - col0 + 79 FROM tab2 cor0
----
0
1
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-1606
SELECT ALL - + ( col1 ) DIV col0 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-1606
SELECT ALL - + ( col1 ) / col0 FROM tab1 AS cor0
----
-8
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 7 col0 FROM tab2 AS cor0
----
182
189
266
query I rowsort
SELECT DISTINCT - - ( col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + 98 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
243 values hashing to d130086b8d8a18a3ac49ce2321d35e00
query I rowsort
SELECT 13 * col2 AS col1 FROM tab0 AS cor0
----
1066
13
429
query I rowsort
SELECT DISTINCT - col1 + - col2 * ( col0 ) FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT DISTINCT - + 48 * + col0 FROM tab0 AS cor0
----
-1152
-1680
-4272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 * cor0.col1 col0 FROM tab0 AS cor0
----
-4816
-5096
-5432
query I rowsort
SELECT - col0 + - 20 * - col1 AS col1 FROM tab1 cor0
----
136
180
517
query I rowsort
SELECT - - cor0.col2 + 23 FROM tab2 AS cor0
----
49
50
61
query I rowsort
SELECT ALL - col2 + + col0 * col1 AS col1 FROM tab2 AS cor0
----
1305
190
4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-1617
SELECT ALL + - col1 * CAST( - col1 AS SIGNED ) + col1 DIV col1 FROM tab2 AS cor0
----
290
3482
962
skipif mysql # not compatible
query I rowsort label-1617
SELECT ALL + - col1 * CAST ( - col1 AS INTEGER ) + col1 / col1 FROM tab2 AS cor0
----
290
3482
962
query I rowsort
SELECT cor0.col2 + + 16 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9d703c16a40654c427edf3fea00c0445
query I rowsort
SELECT - col1 * col1 * tab2.col1 + col1 FROM tab2
----
-205320
-29760
-4896
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1620
SELECT DISTINCT + col1 + + CAST( - 59 AS SIGNED ) * col2 AS col2 FROM tab1
----
-3160
-3353
-5651
skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT + col1 + + CAST ( - 59 AS INTEGER ) * col2 AS col2 FROM tab1
----
-3160
-3353
-5651
query I rowsort
SELECT 46 * cor0.col2 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to bf0183b54e5412a34c217a814687e823
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 * CAST ( 43 * + col2 AS REAL ) + col0 AS col2 FROM tab2
----
27857
35998
66040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 + col1 + - col1 col2 FROM tab1
----
100
169
676
query I rowsort
SELECT col2 + + col2 * 19 FROM tab0
----
1640
20
660
query I rowsort
SELECT ALL col2 + - ( col1 ) AS col2 FROM tab2
----
-33
-4
21
query I rowsort
SELECT tab0.col0 * 29 - col0 AS col2 FROM tab0
----
2492
672
980
query I rowsort
SELECT - - col2 * 12 * + col2 AS col1 FROM tab2 AS cor0
----
17328
8112
8748
query I rowsort
SELECT col0 * 16 * 16 FROM tab0 AS cor0
----
22784
6144
8960
query I rowsort
SELECT - col0 * col0 * + tab0.col2 + + col0 AS col0 FROM tab0
----
-1190
-18984
-649433
query I rowsort
SELECT - col2 * - 49 AS col0 FROM tab0 cor0
----
1617
4018
49
query I rowsort
SELECT ALL col1 * ( col1 ) * + col1 + col2 * - 51 AS col2 FROM tab2
----
204053
28414
2975
query I rowsort
SELECT DISTINCT - col1 + 42 AS col2 FROM tab1 AS cor0
----
16
29
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 col1 FROM tab2
----
-10
-10
-10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1634
SELECT CAST( - col1 * col0 AS SIGNED ) AS col1 FROM tab1
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-1634
SELECT CAST ( - col1 * col0 AS INTEGER ) AS col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL - col0 * col0 + + col1 * 65 FROM tab1 AS cor0
----
-3446
-5555
1681
query I rowsort
SELECT ALL + col1 + - col2 * cor0.col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT - 98 AS col1 FROM tab1
----
-98
-98
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1638
SELECT - CAST( + col2 AS SIGNED ) AS col2 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-1638
SELECT - CAST ( + col2 AS INTEGER ) AS col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - 26 * + col1 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-250
-325
-650
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1640
SELECT DISTINCT - - CAST( col0 AS SIGNED ) + + col0 FROM tab2 cor0
----
14
156
158
skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT - - CAST ( col0 AS INTEGER ) + + col0 FROM tab2 cor0
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-1641
SELECT + + 32 DIV - 16 + - cor0.col0 * + ( + col0 ) col0 FROM tab2 AS cor0
----
-51
-6086
-6243
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1641
SELECT + + 32 / - 16 + - cor0.col0 * + ( + col0 ) col0 FROM tab2 AS cor0
----
-51
-6086
-6243
query I rowsort
SELECT ALL + col2 + - 40 FROM tab1 AS cor0
----
14
17
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 col2 FROM tab2 AS cor0
----
22
22
22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1644
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + cor0.col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1644
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + cor0.col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT 64 AS col2 FROM tab1 AS cor0
----
64
64
64
query I rowsort
SELECT + ( + col2 ) * col0 + 5 FROM tab1 AS cor0
----
167
3653
7685
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 44 + col2 col1 FROM tab2 AS cor0
----
1170
1215
1710
query I rowsort
SELECT DISTINCT - - ( cor0.col0 ) + - col0 * ( - col0 ) AS col1 FROM tab2 cor0
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-1649
SELECT - col2 * - col1 * + col0 + - col0 + col1 DIV + 48 FROM tab1
----
36416
4209
99760
skipif mysql # not compatible
query I rowsort label-1649
SELECT - col2 * - col1 * + col0 + - col0 + col1 / + 48 FROM tab1
----
36416
4209
99760
query I rowsort
SELECT DISTINCT tab2.col0 * tab2.col2 - 91 FROM tab2
----
1937
2911
98
query I rowsort
SELECT + tab0.col1 * + col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT 76 FROM tab2, tab2 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to a8a6c4c5005303c62d4e50b6c96b584f
query I rowsort
SELECT ALL 3 AS col2 FROM tab1 AS cor0
----
3
3
3
query I rowsort
SELECT ALL 31 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
query I rowsort
SELECT DISTINCT - + 79 - - col1 * 0 AS col0 FROM tab1 AS cor0
----
-79
query I rowsort
SELECT ALL 29 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1711
493
899
query I rowsort
SELECT DISTINCT cor0.col2 + 99 * - 76 AS col0 FROM tab1 AS cor0
----
-7428
-7467
-7470
query I rowsort
SELECT cor0.col1 * col0 + 74 + + col0 AS col2 FROM tab1 AS cor0
----
1194
155
778
query I rowsort
SELECT + col2 - ( 64 + col2 ) FROM tab0 AS cor0
----
-64
-64
-64
query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 * + col0 + - col1 AS col0 FROM tab2 cor0
----
-114093
-5134
-52787
query I rowsort
SELECT DISTINCT col0 + - col2 * - col1 + col1 AS col0 FROM tab0 AS cor0
----
229
2948
7642
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - ( 35 ) col2 FROM tab1 cor0
----
-350
-455
-910
query I rowsort
SELECT DISTINCT + col0 + ( - 35 ) * cor0.col2 FROM tab1 AS cor0
----
-1887
-1931
-3280
query I rowsort
SELECT ALL + + col1 * - col1 - - 52 AS col2 FROM tab1 AS cor0
----
-117
-48
-624
query I rowsort
SELECT + + col0 * + 13 + - 41 FROM tab0 AS cor0
----
1116
271
414
query I rowsort
SELECT ALL col2 + ( cor0.col1 ) FROM tab0 AS cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1667
SELECT ALL + + col1 * CAST( 68 AS SIGNED ) - col1 AS col2 FROM tab0 AS cor0
----
5762
6097
6499
skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL + + col1 * CAST ( 68 AS INTEGER ) - col1 AS col2 FROM tab0 AS cor0
----
5762
6097
6499
onlyif mysql # use DIV operator for integer division
query I rowsort label-1668
SELECT ALL 77 - + col0 DIV - col1 FROM tab1
----
77
83
83
skipif mysql # not compatible
query I rowsort label-1668
SELECT ALL 77 - + col0 / - col1 FROM tab1
----
77
83
83
query I rowsort
SELECT + col2 + 39 + col1 AS col1 FROM tab1 cor0
----
106
119
148
query I rowsort
SELECT - cor0.col1 + cor0.col2 + - cor0.col1 FROM tab2 cor0
----
-35
-92
4
query I rowsort
SELECT DISTINCT - ( col2 * - 53 ) - - col0 FROM tab2
----
1438
1456
2093
query I rowsort
SELECT ALL 36 * + col0 + - ( + cor0.col1 * + col1 ) AS col1 FROM tab1 AS cor0
----
-568
2204
2711
query I rowsort
SELECT DISTINCT + 67 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
67
query I rowsort
SELECT DISTINCT + 72 + ( + col2 ) * col0 AS col1 FROM tab2 AS cor0
----
2100
261
3074
query I rowsort
SELECT - cor0.col2 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT ALL - tab1.col2 * - ( - col0 ) FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT + col0 * - col2 + + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT + col2 * - col2 + + col1 AS col1 FROM tab1 cor0
----
-2890
-3239
-9203
query I rowsort
SELECT - col1 * 75 + cor0.col1 AS col0 FROM tab0 AS cor0
----
-6364
-6734
-7178
query I rowsort
SELECT - col0 * cor0.col2 + + col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT - - col1 * + col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + - col0 + col0 * col0 AS col1 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT + 78 AS col1 FROM tab2 AS cor0
----
78
78
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1684
SELECT - CAST( NULL AS SIGNED ) + + col1 * col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1684
SELECT - CAST ( NULL AS INTEGER ) + + col1 * col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 46 AS col1 FROM tab0, tab1 AS cor0
----
46
query I rowsort
SELECT - ( 39 ) * col1 AS col1 FROM tab1
----
-1014
-390
-507
query I rowsort
SELECT + 63 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1688
SELECT ALL ( 90 + col2 ) * - CAST( - col1 AS SIGNED ) * tab2.col1 AS col0 FROM tab2
----
112437
36992
403796
skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL ( 90 + col2 ) * - CAST ( - col1 AS INTEGER ) * tab2.col1 AS col0 FROM tab2
----
112437
36992
403796
onlyif mysql # use DIV operator for integer division
query I rowsort label-1689
SELECT ALL ( - tab2.col0 ) DIV + col1 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL ( - tab2.col0 ) / + col1 FROM tab2
----
-1
-4
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1690
SELECT + 48 + - cor0.col1 * col2 + col1 DIV col1 FROM tab0 AS cor0
----
-2789
-48
-7413
skipif mysql # not compatible
query I rowsort label-1690
SELECT + 48 + - cor0.col1 * col2 + col1 / col1 FROM tab0 AS cor0
----
-2789
-48
-7413
query I rowsort
SELECT - 31 * - col1 + col1 AS col2 FROM tab1 AS cor0
----
320
416
832
onlyif mysql # use DIV operator for integer division
query I rowsort label-1692
SELECT - 7 DIV - col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1692
SELECT - 7 / - col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1693
SELECT DISTINCT tab2.col1 + + col2 DIV - ( col1 ) FROM tab2
----
15
31
59
skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT tab2.col1 + + col2 / - ( col1 ) FROM tab2
----
15
31
59
query I rowsort
SELECT DISTINCT 46 * + col2 AS col0 FROM tab1
----
2484
2622
4416
query I rowsort
SELECT ALL - 48 + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-210
-3696
-7728
query I rowsort
SELECT 1 * col1 + ( col0 ) FROM tab1 AS cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + col0 * CAST ( col2 + col1 AS REAL ) FROM tab0 AS cor0
----
-15397
-2856
-3430
query I rowsort
SELECT + + col0 * + col2 * col2 FROM tab1 AS cor0
----
207936
737280
8748
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1699
SELECT - - col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1699
SELECT - - col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - cor0.col0 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT DISTINCT tab0.col1 * tab0.col0 + - tab0.col0 FROM tab0
----
2040
3360
8010
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab2 cor0, tab2 cor1
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1703
SELECT - CAST( 67 AS SIGNED ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99
skipif mysql # not compatible
query I rowsort label-1703
SELECT - CAST ( 67 AS INTEGER ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99
onlyif mysql # use DIV operator for integer division
query I rowsort label-1704
SELECT DISTINCT 59 DIV col0 AS col2 FROM tab0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT 59 / col0 AS col2 FROM tab0
----
0
1
2
query I rowsort
SELECT - - 12 * - 81 + - col1 AS col0 FROM tab2 AS cor0
----
-1003
-1031
-989
query I rowsort
SELECT + + col1 + 96 * + col1 FROM tab0 cor0
----
8342
8827
9409
query I rowsort
SELECT ALL + cor0.col1 + + 90 * + col2 FROM tab2 AS cor0
----
2399
2461
3437
query I rowsort
SELECT - col2 * col2 + - cor0.col2 * col0 FROM tab0 AS cor0
----
-14022
-1881
-36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1709
SELECT + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1709
SELECT + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 52 - 26 * col2 AS col2 FROM tab2 AS cor0
----
-1040
-728
-754
query I rowsort
SELECT + 89 * + 30 + col0 FROM tab0 cor0
----
2694
2705
2759
query I rowsort
SELECT ALL 16 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
query I rowsort
SELECT DISTINCT - 6 AS col1 FROM tab0, tab1 AS cor0
----
-6
query I rowsort
SELECT + col2 + + tab1.col2 * - col2 FROM tab1
----
-2862
-3192
-9120
query I rowsort
SELECT DISTINCT + tab2.col0 * + col1 * tab2.col0 FROM tab2
----
106097
1519
358956
query III rowsort
SELECT ALL * FROM tab0 WHERE col0 + col2 > NULL
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = ( + col0 + + col2 * - col1 )
----
query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE col2 + col1 NOT IN ( col1 + + tab2.col2 )
----
query I rowsort
SELECT DISTINCT tab1.col0 * tab1.col0 + + col0 FROM tab1
----
12
4160
6480
query I rowsort
SELECT ALL - col1 * col1 * + cor0.col2 + col2 * + col1 FROM tab2 cor0
----
-10336
-25110
-88972
query I rowsort
SELECT DISTINCT col2 + col2 * - col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT cor0.col0 + + col0 * + col0 * + col0 FROM tab2 AS cor0
----
350
474630
493118
query I rowsort
SELECT DISTINCT col2 * col2 + col1 AS col1 FROM tab0
----
1175
6815
98
query I rowsort
SELECT ALL col0 * - col1 + col0 AS col0 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL + tab2.col0 * + col1 AS col0 FROM tab2
----
1343
217
4602
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 * - col0 + col1 ) NOT IN ( col2 + tab1.col1 )
----
query I rowsort
SELECT col0 + - tab0.col1 AS col2 FROM tab0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND col2 / - col1
----
query I rowsort
SELECT col0 * col1 + col2 * col0 AS col1 FROM tab0
----
15397
2856
3430
query I rowsort
SELECT + col1 * col2 - col2 FROM tab0
----
2805
7380
96
query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( NULL ) < NULL
----
query I rowsort
SELECT DISTINCT - col2 * + col1 AS col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT col0 * - col1 + - col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT + - col0 + cor0.col1 + + col0 AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - + col0 * + col0 - + col0 FROM tab2 AS cor0
----
-56
-6162
-6320
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= NULL OR ( NULL ) NOT BETWEEN + col0 * - col1 + + col0 - col1 AND col1 / + col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col2 col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-1737
SELECT DISTINCT - - col1 DIV - col0 FROM tab2 AS cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-1737
SELECT DISTINCT - - col1 / - col0 FROM tab2 AS cor0
----
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * col1 * - cor0.col0 + - cor0.col2 - cor0.col2 * - col0 col2 FROM tab1 AS cor0
----
342
44551
90784
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 * cor0.col0 col1 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-1740
SELECT ALL + col0 + col1 DIV col0 FROM tab0 AS cor0 WHERE ( + col0 ) NOT IN ( col0 * col0 * col0 ) OR + col1 * - col0 IN ( col1 + + col0 * - col2 )
----
27
37
90
skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL + col0 + col1 / col0 FROM tab0 AS cor0 WHERE ( + col0 ) NOT IN ( col0 * col0 * col0 ) OR + col1 * - col0 IN ( col1 + + col0 * - col2 )
----
27
37
90
query I rowsort
SELECT - col2 - cor0.col1 * col1 AS col1 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 * col2 FROM tab0 AS cor0
----
26136
35
598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-1743
SELECT - + col1 + col1 + - col0 * col2 DIV - col0 AS col1 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-1743
SELECT - + col1 + col1 + - col0 * col2 / - col0 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + col0 AS col1 FROM tab1 cor0 WHERE NULL <= col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 + col2 col2 FROM tab1 cor0
----
-2862
-3192
-9120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col0 col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
7
78
79
query I rowsort
SELECT ALL col1 - - col0 * + col2 FROM tab1
----
188
3658
7693
query I rowsort
SELECT col0 * col0 * col0 AS col2 FROM tab2
----
343
474552
493039
query I rowsort
SELECT col0 + - col2 * - col2 + + tab2.col0 FROM tab2
----
1602
743
832
query I rowsort
SELECT DISTINCT col0 * - 30 AS col2 FROM tab2 AS cor0
----
-210
-2340
-2370
query I rowsort
SELECT + + col2 * + cor0.col2 + - ( - col2 ) AS col0 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT ALL + + cor0.col1 * + 18 AS col1 FROM tab0 AS cor0
----
1548
1638
1746
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1753
SELECT ALL col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1754
SELECT + + col1 DIV + cor0.col0 AS col1 FROM tab0 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-1754
SELECT + + col1 / + cor0.col0 AS col1 FROM tab0 cor0
----
1
2
3
query I rowsort
SELECT DISTINCT + - col1 * - col1 FROM tab1 cor0
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1756
SELECT ALL - col2 * + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL - col2 * + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col0 + - cor0.col0 * + col2 FROM tab0 cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT - col1 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1128
490
7830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 * col2 col1 FROM tab0
----
-1749
-4346
-53
query I rowsort
SELECT 85 + + col2 + tab1.col0 FROM tab1
----
142
206
261
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1761
SELECT - CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1761
SELECT - CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL + 64 - - col2 AS col2 FROM tab0
----
146
65
97
query I rowsort
SELECT ALL col2 + col1 * + col2 FROM tab1
----
1344
1458
627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1764
SELECT + col2 - + CAST( + col0 AS SIGNED ) FROM tab0 cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-1764
SELECT + col2 - + CAST ( + col0 AS INTEGER ) FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT + + cor0.col1 + - ( + 63 ) AS col2 FROM tab1 AS cor0
----
-37
-50
-53
query I rowsort
SELECT DISTINCT + 53 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
53
query I rowsort
SELECT - - ( 59 ) + col1 FROM tab2 AS cor0
----
118
76
90
query I rowsort
SELECT + col0 + - col2 + col1 * col1 FROM tab1
----
107
153
625
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 16 col1 FROM tab0 AS cor0
----
16
16
16
query I rowsort
SELECT DISTINCT - col0 * + col2 - + col0 FROM tab2
----
-196
-2106
-3081
query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NULL IN ( + col0 * - col1 )
----
query I rowsort
SELECT col1 + col2 * - col2 + - col0 FROM tab1
----
-2893
-3303
-9283
query I rowsort
SELECT ALL + ( tab2.col2 ) FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT + col1 + + col2 + ( + tab1.col2 * col0 ) FROM tab1
----
242
3715
7789
onlyif mysql # use DIV operator for integer division
query I rowsort label-1775
SELECT cor0.col1 + + 21 DIV 93 col0 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1775
SELECT cor0.col1 + + 21 / 93 col0 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query I rowsort
SELECT ALL 94 * - cor0.col1 * col2 AS col2 FROM tab2 cor0
----
-144196
-60724
-78678
onlyif mysql # use DIV operator for integer division
query I rowsort label-1777
SELECT DISTINCT - - ( col1 ) DIV col2 + + col2 + col0 AS col0 FROM tab1 AS cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-1777
SELECT DISTINCT - - ( col1 ) / col2 + + col2 + col0 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - 55 + col2 AS col1 FROM tab1 AS cor0
----
-1
2
41
query I rowsort
SELECT DISTINCT + 21 + col1 AS col2 FROM tab0 cor0
----
107
112
118
query I rowsort
SELECT ALL - col1 * + col1 - col2 FROM tab2 AS cor0
----
-327
-3507
-988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 col0 FROM tab2 AS cor0
----
-54
-54
-54
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab1 cor1, tab2 AS cor2
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
query I rowsort
SELECT + 75 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query I rowsort
SELECT tab2.col2 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL col2 * 24 AS col1 FROM tab0
----
1968
24
792
query I rowsort
SELECT + cor0.col2 + - col1 * + col1 * col0 AS col0 FROM tab0 AS cor0
----
-177471
-329314
-736927
query I rowsort
SELECT - 76 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1788
SELECT CAST( col2 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1788
SELECT CAST ( col2 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1789
SELECT DISTINCT + col0 DIV - col0 + - col2 * + 93 FROM tab1 AS cor0
----
-5023
-5302
-8929
skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT + col0 / - col0 + - col2 * + 93 FROM tab1 AS cor0
----
-5023
-5302
-8929
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 * col1 col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT col1 * - col2 * col2 + col1 FROM tab2
----
-22568
-24531
-39825
query I rowsort
SELECT ALL 40 + col2 * - col1 AS col1 FROM tab2
----
-1494
-606
-797
query I rowsort
SELECT DISTINCT - col0 + + tab1.col2 AS col1 FROM tab1
----
-7
16
51
query I rowsort
SELECT - 7 * col2 * + 86 AS col0 FROM tab2
----
-15652
-16254
-22876
query I rowsort
SELECT tab2.col2 AS col1 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL - 94 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1797
SELECT ALL + ( - cor0.col0 ) * CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL + ( - cor0.col0 ) * CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 48 + - 76 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to eb6bf5ade8a35ce86adf876ecc9d584e
query I rowsort
SELECT DISTINCT + ( + col0 ) + - col1 AS col2 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT ALL - 28 * + col1 AS col2 FROM tab0
----
-2408
-2548
-2716
query I rowsort
SELECT ALL + + col1 * 42 + col1 FROM tab2 cor0
----
1333
2537
731
query I rowsort
SELECT col2 * col0 + cor0.col2 * + col0 FROM tab1 AS cor0
----
15360
324
7296
query I rowsort
SELECT - col2 + - 85 * col1 * + col1 FROM tab2 AS cor0
----
-24603
-295911
-81712
onlyif mysql # use DIV operator for integer division
query I rowsort label-1804
SELECT - col0 DIV 56 + col2 FROM tab2 AS cor0
----
25
27
37
skipif mysql # not compatible
query I rowsort label-1804
SELECT - col0 / 56 + col2 FROM tab2 AS cor0
----
25
27
37
query I rowsort
SELECT DISTINCT 62 * 91 FROM tab2, tab2 AS cor0
----
5642
query I rowsort
SELECT DISTINCT - col0 + col1 * + col1 FROM tab0
----
7372
8192
9374
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1807
SELECT - col1 + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1807
SELECT - col1 + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 23 AS col1 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5
query I rowsort
SELECT - - col2 * col0 + 71 AS col2 FROM tab2 AS cor0
----
2099
260
3073
onlyif mysql # use DIV operator for integer division
query I rowsort label-1810
SELECT - - col1 + 38 DIV col2 AS col2 FROM tab0 AS cor0
----
135
87
91
skipif mysql # not compatible
query I rowsort label-1810
SELECT - - col1 + 38 / col2 AS col2 FROM tab0 AS cor0
----
135
87
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1811
SELECT ALL - CAST( + col2 AS SIGNED ) + col0 * + ( col0 ) FROM tab2 AS cor0
----
22
6058
6203
skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL - CAST ( + col2 AS INTEGER ) + col0 * + ( col0 ) FROM tab2 AS cor0
----
22
6058
6203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 41 + + col1 * + col1 - - ( + col0 + col2 ) col2 FROM tab2 AS cor0
----
1036
3626
447
query I rowsort
SELECT DISTINCT - + 84 AS col1 FROM tab1 cor0
----
-84
query I rowsort
SELECT ALL 68 AS col1 FROM tab1 AS cor0
----
68
68
68
query I rowsort
SELECT + + ( + cor0.col0 ) * - col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - 58 + - 55 FROM tab2 AS cor0
----
-113
-113
-113
query I rowsort
SELECT col0 + col2 * col1 AS col2 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1818
SELECT - CAST( + 28 AS SIGNED ) * + tab0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to a02a8b63d3e3704ac99c29befd886053
skipif mysql # not compatible
query I rowsort label-1818
SELECT - CAST ( + 28 AS INTEGER ) * + tab0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to a02a8b63d3e3704ac99c29befd886053
query I rowsort
SELECT DISTINCT - + 60 + 87 * col2 AS col2 FROM tab0 AS cor0
----
27
2811
7074
query I rowsort
SELECT DISTINCT 83 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
83
query I rowsort
SELECT + 25 * + col2 FROM tab2 AS cor0
----
650
675
950
query I rowsort
SELECT + - ( col2 ) + 2 AS col2 FROM tab0 AS cor0
----
-31
-80
1
query I rowsort
SELECT - + 77 * col2 AS col2 FROM tab0 AS cor0
----
-2541
-6314
-77
query I rowsort
SELECT - - cor0.col1 * + col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL 59 * + 53 AS col0 FROM tab1
----
3127
3127
3127
query I rowsort
SELECT DISTINCT + 78 AS col1 FROM tab2
----
78
query I rowsort
SELECT + + 0 + cor0.col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + col2 * + 57 + ( - col1 ) AS col0 FROM tab1 AS cor0
----
3052
3239
5459
query I rowsort
SELECT ALL col2 + col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT - col2 * 6 + - 2 AS col1 FROM tab2 AS cor0
----
-158
-164
-230
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col2 col2 FROM tab1
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-1832
SELECT col2 * tab0.col1 DIV - tab0.col1 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-1832
SELECT col2 * tab0.col1 / - tab0.col1 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL + + cor0.col0 * cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d2e5241c58e367013a1a203910e000c0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1834
SELECT DISTINCT - col1 DIV - col2 col2 FROM tab1
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT - col1 / - col2 col2 FROM tab1
----
0
query I rowsort
SELECT ALL - ( col0 ) - - col0 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL col2 * + col2 - tab0.col1 FROM tab0
----
-96
1003
6633
query I rowsort
SELECT ALL - + col1 * - cor0.col1 + + 2 FROM tab2 AS cor0
----
291
3483
963
query I rowsort
SELECT DISTINCT + 30 * - col2 * col0 AS col1 FROM tab0 AS cor0
----
-1050
-218940
-23760
query I rowsort
SELECT ( col0 ) + + col1 * - col2 + - tab2.col2 AS col1 FROM tab2
----
-1482
-605
-857
query I rowsort
SELECT col0 + tab2.col2 + + col1 FROM tab2
----
134
163
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-1841
SELECT DISTINCT ( - col1 ) DIV tab1.col0 + col0 FROM tab1
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT ( - col1 ) / tab1.col0 + col0 FROM tab1
----
-5
64
80
query I rowsort
SELECT 20 FROM tab2, tab1 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1843
SELECT ALL + CAST( + col1 AS SIGNED ) - + col2 FROM tab0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL + CAST ( + col1 AS INTEGER ) - + col2 FROM tab0
----
53
9
96
query I rowsort
SELECT DISTINCT - 53 + 37 * + col1 AS col2 FROM tab0
----
3129
3314
3536
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1845
SELECT DISTINCT CAST( tab0.col0 AS SIGNED ) + - col1 FROM tab0
----
-2
-62
skipif mysql # not compatible
query I rowsort label-1845
SELECT DISTINCT CAST ( tab0.col0 AS INTEGER ) + - col1 FROM tab0
----
-2
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-1846
SELECT - 92 DIV - 98 + tab2.col1 AS col1 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-1846
SELECT - 92 / - 98 + tab2.col1 AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT - col1 + col2 * 87 FROM tab0 AS cor0
----
-10
2785
7043
query I rowsort
SELECT DISTINCT col0 * - col2 + cor0.col0 * 0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT col2 * + col2 + - col0 AS col2 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT DISTINCT - + 99 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-99
query I rowsort
SELECT col1 + - col0 * ( + col2 ) + + col1 FROM tab0 AS cor0
----
-620
-7116
159
onlyif mysql # use DIV operator for integer division
query I rowsort label-1852
SELECT ALL - col2 DIV + col0 + col2 AS col1 FROM tab2 AS cor0
----
24
26
38
skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL - col2 / + col0 + col2 AS col1 FROM tab2 AS cor0
----
24
26
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) + - col2 col0 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT - + cor0.col1 + col0 * col2 AS col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT + 74 + col1 * + ( + 76 ) FROM tab0 AS cor0
----
6610
6990
7446
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1856
SELECT + + col0 + - col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1856
SELECT + + col0 + - col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - col0 + + col1 + + col0 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT 16 + + col1 AS col2 FROM tab2 AS cor0
----
33
47
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-1860
SELECT ALL - - col2 DIV col0 + col1 * 20 AS col0 FROM tab0 AS cor0
----
1721
1820
1940
skipif mysql # not compatible
query I rowsort label-1860
SELECT ALL - - col2 / col0 + col1 * 20 AS col0 FROM tab0 AS cor0
----
1721
1820
1940
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col1 * col2 col2 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT ALL + - col2 * - col2 - + col2 AS col2 FROM tab2 AS cor0
----
1406
650
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-1863
SELECT DISTINCT + tab2.col2 DIV + 63 FROM tab2, tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT + tab2.col2 / + 63 FROM tab2, tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col1 * - col2 + + 91 AS col1 FROM tab2 AS cor0
----
-1443
-555
-746
query I rowsort
SELECT ALL cor0.col2 * - 21 + - cor0.col2 - col1 FROM tab2 cor0
----
-625
-631
-853
query I rowsort
SELECT ALL - col0 + - ( - col0 ) AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1867
SELECT DISTINCT + col0 DIV + col2 + col2 DIV col0 FROM tab1 AS cor0
----
1
18
skipif mysql # not compatible
query I rowsort label-1867
SELECT DISTINCT + col0 / + col2 + col2 / col0 FROM tab1 AS cor0
----
1
18
query I rowsort
SELECT - 71 + cor0.col1 AS col1 FROM tab0 cor0
----
15
20
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1869
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 - col2 AS col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1869
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 - col2 AS col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT ALL + ( 57 ) + cor0.col1 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
7453
8338
9466
query I rowsort
SELECT DISTINCT - 40 FROM tab2, tab2 AS cor0
----
-40
query I rowsort
SELECT + cor0.col1 + + col0 + + col0 * - col0 * + col2 FROM tab2 cor0
----
-1285
-158047
-237062
query I rowsort
SELECT - cor0.col0 + cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 023677f2362ebf8bd60cb629f4090df4
query I rowsort
SELECT DISTINCT + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - - col0 * - 9 FROM tab1 cor0
----
-27
-576
-720
query I rowsort
SELECT - 24 * - ( - col0 * - 39 ) FROM tab2 AS cor0
----
6552
73008
73944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1877
SELECT ALL CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 65 AS col0 FROM tab1 AS cor0
----
65
65
65
query I rowsort
SELECT DISTINCT - 60 * col2 FROM tab0 AS cor0
----
-1980
-4920
-60
query I rowsort
SELECT ALL ( cor0.col1 ) + col2 + col2 * + 30 FROM tab0 AS cor0
----
1109
128
2633
onlyif mysql # use DIV operator for integer division
query I rowsort label-1881
SELECT + col2 DIV - col0 AS col1 FROM tab0 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1881
SELECT + col2 / - col0 AS col1 FROM tab0 cor0
----
-1
0
0
query I rowsort
SELECT ALL - 2 * col0 AS col2 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT DISTINCT col1 * col1 + + col2 - col2 * col1 AS col0 FROM tab0
----
4591
901
9313
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1884
SELECT ALL + ( tab1.col1 ) * tab1.col1 + CAST( col1 AS SIGNED ) * - col0 col2 FROM tab1
----
-540
-871
598
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL + ( tab1.col1 ) * tab1.col1 + CAST ( col1 AS INTEGER ) * - col0 col2 FROM tab1
----
-540
-871
598
query I rowsort
SELECT col2 * - col1 + col2 + col1 AS col1 FROM tab0 AS cor0
----
-2719
-7289
1
query I rowsort
SELECT ALL + ( 68 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT DISTINCT - col2 + - 76 AS col2 FROM tab0 AS cor0
----
-109
-158
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * - cor0.col2 col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + col2 * col2 + col1 * + col1 AS col1 FROM tab0 AS cor0
----
15005
8485
9410
query I rowsort
SELECT ALL - 44 AS col0 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + tab0.col1 * col2 col1 FROM tab0
----
2871
7544
98
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 * + CAST ( + col2 AS REAL ) AS col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL col0 * - ( + col1 ) AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT col2 * - col2 * + 50 FROM tab1
----
-145800
-162450
-460800
query I rowsort
SELECT ALL + col1 * - 23 AS col1 FROM tab2 cor0
----
-1357
-391
-713
query I rowsort
SELECT ALL + 20 + + tab0.col0 FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to 5e2ba45526bed86a3f87863c6e1b7517
query I rowsort
SELECT - - 82 + + col0 FROM tab0 AS cor0
----
106
117
171
query I rowsort
SELECT + 69 + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-120
-1959
-2933
query I rowsort
SELECT + - col1 * - col1 + 92 AS col2 FROM tab2 AS cor0
----
1053
3573
381
query I rowsort
SELECT + 62 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
query I rowsort
SELECT + 89 * - col1 AS col0 FROM tab2
----
-1513
-2759
-5251
query I rowsort
SELECT DISTINCT + ( col0 * + col1 ) + col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT - 82 + + col0 + cor0.col2 FROM tab2 AS cor0
----
-48
22
35
query I rowsort
SELECT ALL - col1 * + col0 - + 88 FROM tab0 AS cor0
----
-2152
-3483
-8187
query I rowsort
SELECT cor0.col1 - + 13 FROM tab2, tab0 AS cor0
----
9 values hashing to c1b00775411f410c5309cc275ba378c2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab0, tab1 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT + col0 * + col1 * + col2 FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT col1 + 89 AS col2 FROM tab1 AS cor0
----
102
115
99
query I rowsort
SELECT + 36 * - col0 FROM tab2 AS cor0
----
-252
-2808
-2844
query I rowsort
SELECT - col1 * - 61 FROM tab2
----
1037
1891
3599
onlyif mysql # use DIV operator for integer division
query I rowsort label-1911
SELECT DISTINCT ( + col0 ) * + col0 DIV col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-1911
SELECT DISTINCT ( + col0 ) * + col0 / col0 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT + ( - 10 * tab0.col0 ) + 30 AS col0 FROM tab0
----
-210
-320
-860
query I rowsort
SELECT DISTINCT - 80 FROM tab1, tab0 AS cor0
----
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1914
SELECT CAST( NULL AS SIGNED ) + col2 + col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1914
SELECT CAST ( NULL AS INTEGER ) + col2 + col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - + 32 AS col2 FROM tab0 AS cor0
----
-32
-32
-32
query I rowsort
SELECT - 28 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115
onlyif mysql # use DIV operator for integer division
query I rowsort label-1917
SELECT DISTINCT + - col0 DIV col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT + - col0 / col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT col0 * cor0.col0 + ( + col2 ) + + col1 FROM tab1 AS cor0
----
4163
6509
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 col2 FROM tab0 AS cor0
----
25
25
25
query I rowsort
SELECT + col1 + 44 FROM tab0
----
130
135
141
query I rowsort
SELECT + col1 + col2 * col0 FROM tab0
----
132
7389
878
query I rowsort
SELECT + 73 AS col1 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1923
SELECT ALL col2 * - col2 + + CAST( NULL AS DECIMAL ) * + 67 - - col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL col2 * - col2 + + CAST ( NULL AS REAL ) * + 67 - - col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1924
SELECT DISTINCT + col1 DIV + col1 + col1 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT + col1 / + col1 + col1 FROM tab1
----
11
14
27
query I rowsort
SELECT 64 AS col1 FROM tab1 AS cor0
----
64
64
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-1926
SELECT tab0.col1 + - 17 DIV col1 AS col0 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-1926
SELECT tab0.col1 + - 17 / col1 AS col0 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1927
SELECT col2 * + col0 + tab0.col2 DIV - tab0.col2 FROM tab0
----
34
7297
791
skipif mysql # not compatible
query I rowsort label-1927
SELECT col2 * + col0 + tab0.col2 / - tab0.col2 FROM tab0
----
34
7297
791
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - ( + col0 ) col0 FROM tab2 cor0
----
-137
-38
-96
query I rowsort
SELECT - + 19 FROM tab2 cor0
----
-19
-19
-19
query I rowsort
SELECT + + ( cor0.col1 ) + col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + col2 * + 23 AS col1 FROM tab1 AS cor0
----
1242
1311
2208
query I rowsort
SELECT ALL 28 + cor0.col1 FROM tab1 AS cor0
----
38
41
54
query I rowsort
SELECT ALL - cor0.col0 + col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * col2 - - col1 * col1 col1 FROM tab1 AS cor0
----
-3548
-7511
514
query I rowsort
SELECT + col1 * 60 AS col2 FROM tab1 AS cor0
----
1560
600
780
query I rowsort
SELECT ALL - + cor0.col0 + + 90 AS col2 FROM tab0 AS cor0
----
1
55
66
query I rowsort
SELECT DISTINCT - col2 * + col0 + col2 * - col0 - col0 * col2 AS col0 FROM tab0 AS cor0
----
-105
-21894
-2376
query I rowsort
SELECT DISTINCT + - col0 * - col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT + col0 * - 40 * cor0.col1 FROM tab0 AS cor0
----
-135800
-323960
-82560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1940
SELECT col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1940
SELECT col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 - 76 * + 21 AS col0 FROM tab1 AS cor0
----
-1500
-1539
-1542
query I rowsort
SELECT + + col1 + col1 * col0 FROM tab2 cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT - col1 + - 27 AS col0 FROM tab1 cor0
----
-37
-40
-53
query I rowsort
SELECT DISTINCT - 58 AS col2 FROM tab1, tab1 AS cor0
----
-58
query I rowsort
SELECT ALL - - col2 + 78 AS col0 FROM tab0 AS cor0
----
111
160
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1946
SELECT - col1 * CAST( col0 AS SIGNED ) - col0 FROM tab1
----
-1120
-704
-81
skipif mysql # not compatible
query I rowsort label-1946
SELECT - col1 * CAST ( col0 AS INTEGER ) - col0 FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT DISTINCT tab0.col2 + 78 AS col0 FROM tab0
----
111
160
79
query I rowsort
SELECT ALL tab0.col0 * + 98 + - col2 FROM tab0
----
2319
3429
8640
query I rowsort
SELECT + cor0.col1 + + col2 * col0 AS col1 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT + col2 + - 71 * - col1 AS col1 FROM tab0
----
6139
6543
6888
query I rowsort
SELECT - col2 * - ( + col1 * col1 ) FROM tab1
----
16224
36504
5700
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1952
SELECT + col1 + + CAST( col0 AS SIGNED ) FROM tab2
----
137
38
96
skipif mysql # not compatible
query I rowsort label-1952
SELECT + col1 + + CAST ( col0 AS INTEGER ) FROM tab2
----
137
38
96
query I rowsort
SELECT col2 + 87 * - col2 + col2 * col2 FROM tab1
----
-1653
-1728
960
query I rowsort
SELECT DISTINCT col1 + 88 FROM tab0
----
174
179
185
onlyif mysql # use DIV operator for integer division
query I rowsort label-1955
SELECT col2 DIV ( - col2 * col0 ) AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1955
SELECT col2 / ( - col2 * col0 ) AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT - 39 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 7 col0 FROM tab1 AS cor0
----
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1958
SELECT + col2 DIV col0 col2 FROM tab2 AS cor0
----
0
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1958
SELECT + col2 / col0 col2 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT + col1 * col2 + + col2 * 71 AS col2 FROM tab1
----
4617
5238
8064
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1960
SELECT CAST( NULL AS SIGNED ) + 0 * col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1960
SELECT CAST ( NULL AS INTEGER ) + 0 * col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + + 39 FROM tab2
----
65
66
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1962
SELECT ALL 86 * + col2 * - col2 + CAST( - col1 AS SIGNED ) AS col2 FROM tab1
----
-250802
-279424
-792589
skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL 86 * + col2 * - col2 + CAST ( - col1 AS INTEGER ) AS col2 FROM tab1
----
-250802
-279424
-792589
query I rowsort
SELECT + 50 - col1 * + col1 * + col0 FROM tab1
----
-13470
-1978
-6350
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 + + 63 * col0 col1 FROM tab1
----
195
4038
5046
onlyif mysql # use DIV operator for integer division
query I rowsort label-1965
SELECT DISTINCT col2 * - tab0.col0 DIV col0 + - col1 AS col1 FROM tab0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT col2 * - tab0.col0 / col0 + - col1 AS col1 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT col2 * tab1.col1 * + col2 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT + col1 * - col1 + + col2 FROM tab0
----
-7363
-8199
-9408
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1968
SELECT ALL ( col0 ) * CAST( + col1 AS SIGNED ) FROM tab0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL ( col0 ) * CAST ( + col1 AS INTEGER ) FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col1 * col1 * col1 + col0 FROM tab2 AS cor0
----
205457
29798
4992
query I rowsort
SELECT ALL - - cor0.col0 * + col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL col1 * - col2 + 51 AS col1 FROM tab1 AS cor0
----
-1197
-1353
-519
query I rowsort
SELECT DISTINCT 25 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-1973
SELECT DISTINCT - 89 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-1973
SELECT DISTINCT - 89 / cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-1974
SELECT DISTINCT + - col1 * col2 + col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT + - col1 * col2 + col0 / - col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + col0 + col0 AS col1 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT DISTINCT + - col2 * 36 AS col0 FROM tab1 AS cor0
----
-1944
-2052
-3456
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1977
SELECT DISTINCT - cor0.col1 * + CAST( + col2 AS SIGNED ) col1 FROM tab0 cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1977
SELECT DISTINCT - cor0.col1 * + CAST ( + col2 AS INTEGER ) col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL col2 + cor0.col2 * - col2 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1023
-6560
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 17 col1 FROM tab1 AS cor0
----
-1632
-918
-969
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1980
SELECT + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1980
SELECT + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col2 + - ( + col0 ) * + col1 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT - col2 + - cor0.col0 * + col1 FROM tab1 cor0
----
-1136
-132
-697
query I rowsort
SELECT DISTINCT - ( 10 ) FROM tab0 AS cor0
----
-10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1984
SELECT ALL col0 + - col2 * + col0 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL col0 + - col2 * + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 + col1 - col2 * - 39 * + col1 FROM tab1 AS cor0
----
22250
48698
54808
query I rowsort
SELECT ALL ( - tab1.col1 ) AS col0 FROM tab1, tab2 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b
query I rowsort
SELECT + ( - col1 ) + - col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL - ( col2 ) * col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT + 14 + - col0 AS col0 FROM tab2 AS cor0
----
-64
-65
7
query I rowsort
SELECT + - col2 + col0 * + col0 AS col2 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT ALL - + 55 FROM tab2 AS cor0
----
-55
-55
-55
query I rowsort
SELECT + 41 + - col2 FROM tab2 AS cor0
----
14
15
3
query I rowsort
SELECT + 91 * col2 FROM tab0 AS cor0
----
3003
7462
91
query I rowsort
SELECT ALL 89 * - cor0.col0 + col2 * + 2 AS col1 FROM tab2 AS cor0
----
-569
-6890
-6955
query I rowsort
SELECT 95 * col1 + - col1 AS col0 FROM tab0 AS cor0
----
8084
8554
9118
query I rowsort
SELECT ALL 68 + cor1.col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 63fbabe1670494a36e9fde411027b780
query I rowsort
SELECT ALL cor0.col1 + - col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 93 * + tab2.col2 * col2 + + col0 FROM tab2
----
134371
62946
67804
query I rowsort
SELECT ALL ( - col1 ) + + col1 * col0 + col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT col0 + ( col0 * + col1 ) FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT + - col1 - col0 AS col2 FROM tab2 cor0
----
-137
-38
-96
query I rowsort
SELECT - + col2 + ( ( col0 ) ) FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2003
SELECT + col1 + CAST( - 30 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
56
61
67
skipif mysql # not compatible
query I rowsort label-2003
SELECT + col1 + CAST ( - 30 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
56
61
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-2004
SELECT - col1 * CAST( - col1 AS SIGNED ) DIV - col1 - col0 col1 FROM tab1 AS cor0
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2004
SELECT - col1 * CAST ( - col1 AS INTEGER ) / - col1 - col0 col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT + - col0 + cor0.col1 + col2 * col2 FROM tab2 AS cor0
----
1382
657
753
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2006
SELECT - col0 + CAST( - 84 AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
-7248
-7733
-8183
skipif mysql # not compatible
query I rowsort label-2006
SELECT - col0 + CAST ( - 84 AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
-7248
-7733
-8183
query I rowsort
SELECT - + col2 + - col0 * - cor0.col1 FROM tab2 cor0
----
1305
190
4576
query I rowsort
SELECT - cor0.col2 + col1 * 76 FROM tab1 AS cor0
----
1922
703
892
query I rowsort
SELECT ( + 9 ) * + tab1.col1 + col0 AS col2 FROM tab1
----
154
197
237
query I rowsort
SELECT DISTINCT - tab0.col0 * - col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT + - cor0.col2 * - col2 * - col2 AS col1 FROM tab1 AS cor0
----
-157464
-185193
-884736
query I rowsort
SELECT DISTINCT - + col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * + col2 col2 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-2014
SELECT col1 DIV cor0.col2 AS col0 FROM tab0 cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-2014
SELECT col1 / cor0.col2 AS col0 FROM tab0 cor0
----
1
2
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2015
SELECT ALL + cor0.col2 + col0 DIV col2 AS col0 FROM tab0 AS cor0
----
33
36
83
skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL + cor0.col2 + col0 / col2 AS col0 FROM tab0 AS cor0
----
33
36
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-2016
SELECT col2 * + tab2.col0 DIV col0 AS col2 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-2016
SELECT col2 * + tab2.col0 / col0 AS col2 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL - tab1.col0 * tab1.col2 AS col2 FROM tab1
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-2018
SELECT - col0 DIV tab0.col2 + + col0 DIV - col2 AS col2 FROM tab0
----
-2
-70
0
skipif mysql # not compatible
query I rowsort label-2018
SELECT - col0 / tab0.col2 + + col0 / - col2 AS col2 FROM tab0
----
-2
-70
0
query I rowsort
SELECT - cor0.col0 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT + col1 + - tab0.col0 * col0 AS col1 FROM tab0
----
-1128
-490
-7830
query I rowsort
SELECT + col1 * - 63 FROM tab0
----
-5418
-5733
-6111
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 + col1 + + col2 col0 FROM tab0 AS cor0
----
-2719
-7289
1
query I rowsort
SELECT DISTINCT + 42 AS col2 FROM tab0
----
42
query I rowsort
SELECT - 59 * + col2 FROM tab2
----
-1534
-1593
-2242
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2025
SELECT DISTINCT - CAST( NULL AS SIGNED ) / col0 + col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / col0 + col2 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT - 21 FROM tab1
----
-21
query I rowsort
SELECT + 15 * col2 * col2 AS col2 FROM tab0
----
100860
15
16335
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2028
SELECT DISTINCT CAST( + col1 + col2 AS SIGNED ) FROM tab1
----
109
67
80
skipif mysql # not compatible
query I rowsort label-2028
SELECT DISTINCT CAST ( + col1 + col2 AS INTEGER ) FROM tab1
----
109
67
80
query I rowsort
SELECT + + cor0.col0 * + cor0.col1 * col1 + col0 AS col1 FROM tab0 cor0
----
177528
329350
737098
onlyif mysql # use DIV operator for integer division
query I rowsort label-2030
SELECT DISTINCT - col0 + col0 + - col1 DIV - col1 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT - col0 + col0 + - col1 / - col1 FROM tab1
----
1
query I rowsort
SELECT + - cor0.col0 AS col2 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT col2 + - col0 * - col2 * - col2 + + col2 FROM tab0 AS cor0
----
-26070
-33
-598272
query I rowsort
SELECT DISTINCT - 34 FROM tab2 cor0
----
-34
query I rowsort
SELECT ALL 3 AS col0 FROM tab2
----
3
3
3
query I rowsort
SELECT + + 91 * - col2 AS col1 FROM tab1 AS cor0
----
-4914
-5187
-8736
query I rowsort
SELECT DISTINCT - - 64 FROM tab2 AS cor0
----
64
query I rowsort
SELECT DISTINCT + 44 * - col2 FROM tab0 cor0
----
-1452
-3608
-44
query I rowsort
SELECT - ( 35 * - col1 ) FROM tab2
----
1085
2065
595
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2039
SELECT DISTINCT - col0 * ( - col2 ) - CAST( + col0 AS SIGNED ) * cor0.col0 FROM tab2 AS cor0
----
-3239
-4056
140
skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT - col0 * ( - col2 ) - CAST ( + col0 AS INTEGER ) * cor0.col0 FROM tab2 AS cor0
----
-3239
-4056
140
query I rowsort
SELECT 71 * - 31 FROM tab0 AS cor0
----
-2201
-2201
-2201
query I rowsort
SELECT ALL - - 1 * 36 AS col2 FROM tab2 AS cor0
----
36
36
36
query I rowsort
SELECT DISTINCT - + ( col2 ) * col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + col2 - col2 AS col2 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2044
SELECT ALL - col0 DIV col2 col2 FROM tab1 cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL - col0 / col2 col2 FROM tab1 cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2045
SELECT DISTINCT + col0 + + col2 DIV 78 col1 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2045
SELECT DISTINCT + col0 + + col2 / 78 col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + + 9 - col0 AS col2 FROM tab2 AS cor0
----
-69
-70
2
query I rowsort
SELECT ALL col0 + + cor0.col2 * col2 FROM tab2 AS cor0
----
1523
736
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-2048
SELECT DISTINCT + col2 DIV col0 AS col1 FROM tab2 cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT + col2 / col0 AS col1 FROM tab2 cor0
----
0
3
query I rowsort
SELECT - 39 * + col2 FROM tab0 AS cor0
----
-1287
-3198
-39
query I rowsort
SELECT DISTINCT - - col2 * col1 - - 13 AS col1 FROM tab0 AS cor0
----
110
2851
7475
query I rowsort
SELECT DISTINCT col0 * - col2 - 31 FROM tab2 AS cor0
----
-2059
-220
-3033
onlyif mysql # use DIV operator for integer division
query I rowsort label-2052
SELECT DISTINCT + 38 * + col2 + - col1 DIV - col1 FROM tab2 AS cor0
----
1027
1445
989
skipif mysql # not compatible
query I rowsort label-2052
SELECT DISTINCT + 38 * + col2 + - col1 / - col1 FROM tab2 AS cor0
----
1027
1445
989
query I rowsort
SELECT DISTINCT + 66 AS col2 FROM tab1, tab0 cor0
----
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2054
SELECT DISTINCT - ( col0 ) * + col2 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-2054
SELECT DISTINCT - ( col0 ) * + col2 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query I rowsort
SELECT ALL ( + 21 ) FROM tab0
----
21
21
21
query I rowsort
SELECT cor0.col0 * + col1 + col0 * col2 FROM tab1 AS cor0
----
240
4288
8720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col0 * - 47 col0 FROM tab1 AS cor0
----
138
2944
3680
query I rowsort
SELECT DISTINCT - col1 * 81 AS col2 FROM tab1 AS cor0
----
-1053
-2106
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-2059
SELECT + col0 DIV + cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2059
SELECT + col0 / + cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT cor0.col0 * - col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - col2 * - 97 + col0 FROM tab2 AS cor0
----
2600
2626
3765
query I rowsort
SELECT ALL col2 * + 28 FROM tab1 cor0
----
1512
1596
2688
query I rowsort
SELECT - + col2 + col1 * + col0 AS col1 FROM tab1 AS cor0
----
24
583
944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + col0 + cor0.col2 col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT ALL + 40 - col2 * + col0 AS col1 FROM tab2
----
-149
-1988
-2962
query I rowsort
SELECT ALL + col2 + col1 * tab1.col0 - - ( + col2 ) * + 78 AS col1 FROM tab1
----
4344
5143
8624
onlyif mysql # use DIV operator for integer division
query I rowsort label-2067
SELECT - col2 * col1 DIV - col1 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-2067
SELECT - col2 * col1 / - col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - col0 * 65 AS col2 FROM tab1 AS cor0
----
-195
-4160
-5200
query I rowsort
SELECT - - col0 * col2 * 79 FROM tab2 AS cor0
----
14931
160212
237158
query I rowsort
SELECT ALL + - cor0.col1 * - col1 + + ( - col0 ) FROM tab1 AS cor0
----
36
673
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2071
SELECT + cor0.col1 DIV + cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2071
SELECT + cor0.col1 / + cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col2 + - 49 * col2 AS col1 FROM tab2 AS cor0
----
-1248
-1296
-1824
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2073
SELECT ALL tab2.col0 + + CAST( ( + col1 ) + ( col1 ) AS SIGNED ) FROM tab2
----
113
196
69
skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL tab2.col0 + + CAST ( ( + col1 ) + ( col1 ) AS INTEGER ) FROM tab2
----
113
196
69
query I rowsort
SELECT ALL 31 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
onlyif mysql # use DIV operator for integer division
query I rowsort label-2075
SELECT col0 * ( tab1.col2 ) DIV + tab1.col2 + col2 FROM tab1
----
121
176
57
skipif mysql # not compatible
query I rowsort label-2075
SELECT col0 * ( tab1.col2 ) / + tab1.col2 + col2 FROM tab1
----
121
176
57
query I rowsort
SELECT - col0 * + 50 AS col0 FROM tab1 AS cor0
----
-150
-3200
-4000
onlyif mysql # use DIV operator for integer division
query I rowsort label-2077
SELECT col0 + col0 * + col0 DIV + col0 AS col2 FROM tab2
----
14
156
158
skipif mysql # not compatible
query I rowsort label-2077
SELECT col0 + col0 * + col0 / + col0 AS col2 FROM tab2
----
14
156
158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2078
SELECT DISTINCT CAST( + 91 AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0
----
91
skipif mysql # not compatible
query I rowsort label-2078
SELECT DISTINCT CAST ( + 91 AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0
----
91
query I rowsort
SELECT + col0 * col2 + + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT - col1 * - col0 - + 78 FROM tab0
----
1986
3317
8021
query I rowsort
SELECT col1 + - 50 FROM tab1
----
-24
-37
-40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 3 col1 FROM tab2
----
14
28
56
query I rowsort
SELECT + 23 * 28 AS col1 FROM tab1 AS cor0
----
644
644
644
query I rowsort
SELECT - cor0.col1 * + col2 + cor0.col2 * col0 FROM tab1 AS cor0
----
-1242
3078
6432
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2085
SELECT ALL col1 * CAST( - col0 AS SIGNED ) AS col2 FROM tab2
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL col1 * CAST ( - col0 AS INTEGER ) AS col2 FROM tab2
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 * 57 col2 FROM tab0
----
-1995
-415986
-45144
query I rowsort
SELECT ALL - col2 * - 85 + tab2.col1 AS col2 FROM tab2
----
2269
2326
3247
query I rowsort
SELECT 13 FROM tab0, tab2 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2089
SELECT ALL - CAST( NULL AS SIGNED ) / - 71 + col2 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL - CAST ( NULL AS INTEGER ) / - 71 + col2 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * 29 AS col1 FROM tab0 cor0
----
2494
2639
2813
query I rowsort
SELECT + col0 * - 71 FROM tab1 AS cor0
----
-213
-4544
-5680
query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2093
SELECT ALL - CAST( NULL AS SIGNED ) * ( cor0.col0 ) * + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL - CAST ( NULL AS INTEGER ) * ( cor0.col0 ) * + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col2 + + 99 * + col1 * - col1 FROM tab2 AS cor0
----
-28573
-344593
-95112
query I rowsort
SELECT - - ( col0 ) * + col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT - 70 AS col2 FROM tab0 cor0
----
-70
query I rowsort
SELECT + 1 * cor0.col2 + col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL col0 + + col0 * - col2 * - ( - col2 + - col1 ) AS col0 FROM tab1 AS cor0
----
-12957
-244352
-837040
query I rowsort
SELECT ALL + col0 - col2 * 91 AS col2 FROM tab0
----
-2979
-56
-7373
query I rowsort
SELECT + col1 + + tab0.col0 * 96 * - 98 + + col1 * + col0 AS col2 FROM tab0
----
-223642
-325788
-829122
query I rowsort
SELECT DISTINCT + - col1 * - col0 * col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL - cor0.col1 * ( col1 ) AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - 82 AS col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
-82
query I rowsort
SELECT ALL + col1 * + col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2105
SELECT DISTINCT + + col2 + + col2 DIV - col0 FROM tab1 AS cor0
----
36
57
95
skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT + + col2 + + col2 / - col0 FROM tab1 AS cor0
----
36
57
95
query I rowsort
SELECT + col0 * + ( tab1.col1 ) AS col1 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2107
SELECT ALL - + col1 + + col1 DIV + 80 col2 FROM tab0 AS cor0
----
-85
-90
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL - + col1 + + col1 / + 80 col2 FROM tab0 AS cor0
----
-85
-90
-96
query I rowsort
SELECT col0 + + 95 FROM tab0 cor0
----
119
130
184
query I rowsort
SELECT ALL - cor0.col0 + col0 * - 39 + - col1 FROM tab2 AS cor0
----
-311
-3177
-3179
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2110
SELECT + - col2 * CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-2110
SELECT + - col2 * CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2111
SELECT + col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2111
SELECT + col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * ( - col0 ) AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2113
SELECT - col1 * cor0.col2 DIV - col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2113
SELECT - col1 * cor0.col2 / - col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - + cor0.col1 + col0 * - col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT cor0.col0 * cor0.col2 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 02081120b66025475df9f31f465bcbe4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2116
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) - + 71 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2116
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) - + 71 FROM tab0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2117
SELECT col0 DIV 23 FROM tab1
----
0
2
3
skipif mysql # not compatible
query I rowsort label-2117
SELECT col0 / 23 FROM tab1
----
0
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 55 col0 FROM tab2 AS cor0
----
-23
-24
48
query I rowsort
SELECT col1 * 6 FROM tab1 AS cor0
----
156
60
78
query I rowsort
SELECT - col0 * - 15 FROM tab0 AS cor0
----
1335
360
525
onlyif mysql # use DIV operator for integer division
query I rowsort label-2121
SELECT - col1 DIV + 14 AS col1 FROM tab2 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-2121
SELECT - col1 / + 14 AS col1 FROM tab2 AS cor0
----
-1
-2
-4
query I rowsort
SELECT - + cor0.col2 * 27 AS col1 FROM tab1 AS cor0
----
-1458
-1539
-2592
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2123
SELECT CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2123
SELECT CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2124
SELECT ALL + + col0 * 82 DIV col1 AS col0 FROM tab1 AS cor0
----
504
524
9
skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL + + col0 * 82 / col1 AS col0 FROM tab1 AS cor0
----
504
524
9
query I rowsort
SELECT - col1 + cor0.col2 * col0 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT - + col1 * col1 + col2 AS col2 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT + 24 + - col1 AS col2 FROM tab2 AS cor0
----
-35
-7
7
query I rowsort
SELECT ALL + ( + cor1.col1 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT - + 47 FROM tab2 cor0
----
-47
query I rowsort
SELECT - 88 + - col1 * 70 * col1 AS col1 FROM tab2 AS cor0
----
-20318
-243758
-67358
query I rowsort
SELECT + 86 * + col0 + + cor0.col0 FROM tab2 cor0
----
609
6786
6873
query I rowsort
SELECT 87 * col2 * 57 AS col2 FROM tab1 cor0
----
267786
282663
476064
query I rowsort
SELECT ALL 46 * col2 FROM tab2 cor0
----
1196
1242
1748
query I rowsort
SELECT ALL + - 83 + col1 * - col1 FROM tab1 AS cor0
----
-183
-252
-759
query I rowsort
SELECT DISTINCT - 44 * col2 AS col0 FROM tab0 AS cor0
----
-1452
-3608
-44
query I rowsort
SELECT ALL + - col2 + col2 * + 79 FROM tab0 AS cor0
----
2574
6396
78
query I rowsort
SELECT ALL - col2 - col0 * + col1 AS col0 FROM tab0 cor0
----
-2097
-3396
-8181
query I rowsort
SELECT - 10 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0
query I rowsort
SELECT ALL - - cor0.col1 + + ( - col1 ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 + cor0.col1 FROM tab0 cor0
----
2
62
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 91 col1 FROM tab2 AS cor0
----
1547
2821
5369
query I rowsort
SELECT DISTINCT + col0 * + ( + 41 ) + col0 FROM tab1 AS cor0
----
126
2688
3360
query I rowsort
SELECT ALL - 59 FROM tab0, tab1 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703
query I rowsort
SELECT DISTINCT - col2 - + col2 * + col1 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT - col0 * col2 + + col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT ALL - col0 * + col0 + cor0.col0 FROM tab0 cor0
----
-1190
-552
-7832
query I rowsort
SELECT - ( - 8 ) AS col0 FROM tab0 AS cor0
----
8
8
8
query I rowsort
SELECT ALL - 10 * col1 FROM tab2 AS cor0
----
-170
-310
-590
query I rowsort
SELECT + - ( col0 ) * col2 + + col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * cor0.col2 col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - col0 + + col1 * + 87 FROM tab1 AS cor0
----
1051
2259
806
query I rowsort
SELECT - cor0.col1 * + col1 + 38 * - cor0.col1 FROM tab0 AS cor0
----
-10664
-11739
-13095
onlyif mysql # use DIV operator for integer division
query I rowsort label-2153
SELECT DISTINCT + col2 DIV - col1 + - col0 + - ( col0 ) * - col1 FROM tab0
----
2040
3360
8010
skipif mysql # not compatible
query I rowsort label-2153
SELECT DISTINCT + col2 / - col1 + - col0 + - ( col0 ) * - col1 FROM tab0
----
2040
3360
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-2154
SELECT - col1 DIV 15 FROM tab0
----
-5
-6
-6
skipif mysql # not compatible
query I rowsort label-2154
SELECT - col1 / 15 FROM tab0
----
-5
-6
-6
query I rowsort
SELECT ( - 85 ) * - col1 FROM tab2
----
1445
2635
5015
onlyif mysql # use DIV operator for integer division
query I rowsort label-2156
SELECT ALL 93 + col0 DIV col2 FROM tab0
----
128
93
94
skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL 93 + col0 / col2 FROM tab0
----
128
93
94
query I rowsort
SELECT 62 * - col2 + col2 FROM tab0
----
-2013
-5002
-61
query I rowsort
SELECT DISTINCT - 71 AS col0 FROM tab1, tab0, tab1 AS cor0
----
-71
query I rowsort
SELECT ALL ( - 98 ) * col0 * + col1 + + col1 FROM tab2
----
-131597
-21235
-450937
query I rowsort
SELECT DISTINCT 85 + + col0 FROM tab0
----
109
120
174
query I rowsort
SELECT - 51 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT - col2 + - cor0.col1 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT ALL cor0.col0 + - col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2165
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) + + ( col2 ) * + col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2165
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) + + ( col2 ) * + col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT cor0.col2 * + 56 AS col0 FROM tab2 AS cor0
----
1456
1512
2128
query I rowsort
SELECT + + 60 * + col1 * + cor0.col2 FROM tab1 cor0
----
34200
74880
84240
query I rowsort
SELECT DISTINCT + ( 5 ) FROM tab2
----
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2169
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL - CAST ( NULL AS INTEGER ) * - col0 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col2 * - 50 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
1300
1350
1900
query I rowsort
SELECT ALL cor1.col0 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( col2 AS REAL ) + col0 / col0 FROM tab2 AS cor0
----
-25
-26
-37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2173
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-2173
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
onlyif mysql # use DIV operator for integer division
query I rowsort label-2174
SELECT - col2 DIV - 11 + + cor0.col0 FROM tab0 AS cor0
----
27
35
96
skipif mysql # not compatible
query I rowsort label-2174
SELECT - col2 / - 11 + + cor0.col0 FROM tab0 AS cor0
----
27
35
96
query I rowsort
SELECT DISTINCT 61 + + col0 * - cor0.col2 FROM tab0 AS cor0
----
-7237
-731
26
query I rowsort
SELECT 97 + + col1 FROM tab2 AS cor0
----
114
128
156
query I rowsort
SELECT ALL + + 13 + + ( - col2 ) * col2 FROM tab2 AS cor0
----
-1431
-663
-716
query I rowsort
SELECT + ( ( + col2 ) ) FROM tab1 cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 * - col0 + col2 * + ( + col2 ) col0 FROM tab0 AS cor0
----
-1375
-3394
-975
query I rowsort
SELECT DISTINCT cor0.col2 * 55 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
2970
3135
5280
onlyif mysql # use DIV operator for integer division
query I rowsort label-2181
SELECT + 11 DIV col0 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2181
SELECT + 11 / col0 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - 81 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81
query I rowsort
SELECT ALL cor1.col1 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT - 42 + col0 * - col0 FROM tab0
----
-1267
-618
-7963
onlyif mysql # use DIV operator for integer division
query I rowsort label-2185
SELECT - 34 + tab0.col2 DIV 33 FROM tab0
----
-32
-33
-34
skipif mysql # not compatible
query I rowsort label-2185
SELECT - 34 + tab0.col2 / 33 FROM tab0
----
-32
-33
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-2186
SELECT + col1 DIV + col2 + col0 * 25 AS col0 FROM tab1
----
1600
2000
75
skipif mysql # not compatible
query I rowsort label-2186
SELECT + col1 / + col2 + col0 * 25 AS col0 FROM tab1
----
1600
2000
75
query I rowsort
SELECT + col0 * - col2 * - 71 FROM tab0
----
2485
518158
56232
query I rowsort
SELECT - col1 + col0 + 74 * 58 AS col0 FROM tab0
----
4230
4230
4290
onlyif mysql # use DIV operator for integer division
query I rowsort label-2189
SELECT ALL - col0 DIV cor0.col2 AS col1 FROM tab1 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL - col0 / cor0.col2 AS col1 FROM tab1 cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT ALL + - col0 * col1 - 75 AS col2 FROM tab1 AS cor0
----
-1115
-153
-715
query I rowsort
SELECT DISTINCT - - 98 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
184
189
195
query I rowsort
SELECT - col1 * + col0 + col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT + cor0.col0 * - col1 * ( col2 ) FROM tab0 AS cor0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-2195
SELECT ALL - col2 * + ( - cor0.col1 ) + + col2 DIV - 95 AS col2 FROM tab0 cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL - col2 * + ( - cor0.col1 ) + + col2 / - 95 AS col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + col0 + col0 * - col1 FROM tab1 AS cor0
----
-576
-75
-960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2197
SELECT ALL - col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - cor0.col1 + 3 FROM tab1 AS cor0
----
13
16
29
query I rowsort
SELECT DISTINCT - col0 + + col1 + col0 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + - col0 * ( - col0 * - col2 ) + + col1 AS col0 FROM tab2 AS cor0
----
-1292
-158125
-237141
query I rowsort
SELECT + col2 + 42 * 11 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
12038
12501
17594
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2202
SELECT + col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2202
SELECT + col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - cor0.col1 + col2 AS col1 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT ALL col1 * 43 * 41 AS col0 FROM tab1 AS cor0
----
17630
22919
45838
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2205
SELECT + cor0.col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2205
SELECT + cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col0 + + 78 AS col2 FROM tab2 AS cor0
----
156
157
85
query I rowsort
SELECT ALL + col1 + + 81 * col2 AS col0 FROM tab2 AS cor0
----
2165
2218
3095
query I rowsort
SELECT - tab0.col2 * + tab0.col2 AS col1 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT ALL col1 * col2 * + col0 AS col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT - - col1 + 46 FROM tab2 AS cor0
----
105
63
77
query I rowsort
SELECT DISTINCT - + col0 * + 35 AS col1 FROM tab2 AS cor0
----
-245
-2730
-2765
query I rowsort
SELECT ALL - col0 + - col0 * - col1 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT + col2 * - 95 FROM tab0 cor0
----
-3135
-7790
-95
query I rowsort
SELECT + cor0.col0 * 37 AS col1 FROM tab2 AS cor0
----
259
2886
2923
query I rowsort
SELECT ALL - - 55 FROM tab0, tab1 cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + 8 * col1 + col2 col0 FROM tab0 cor0
----
22737
59778
777
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 + cor0.col0 col2 FROM tab0, tab2 AS cor0
----
15
86
87
query I rowsort
SELECT + col0 + col2 + - 58 * col2 FROM tab2 AS cor0
----
-1404
-1532
-2087
query I rowsort
SELECT - col2 + 49 FROM tab1 cor0
----
-47
-5
-8
query I rowsort
SELECT DISTINCT col0 + - ( 97 ) FROM tab2
----
-18
-19
-90
query I rowsort
SELECT + col2 + 77 AS col0 FROM tab1 AS cor0
----
131
134
173
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 28 col0 FROM tab2
----
196
2184
2212
query I rowsort
SELECT DISTINCT + 9 * + 62 FROM tab1, tab1 AS cor0
----
558
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2224
SELECT + 46 * col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2224
SELECT + 46 * col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 36 * col1 AS col1 FROM tab2 cor0
----
1116
2124
612
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2226
SELECT ALL col1 * + col2 + + CAST( 50 AS SIGNED ) FROM tab0 AS cor0
----
147
2888
7512
skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL col1 * + col2 + + CAST ( 50 AS INTEGER ) FROM tab0 AS cor0
----
147
2888
7512
query I rowsort
SELECT DISTINCT + col2 + + col0 * - col1 + col1 * col2 * col0 FROM tab1 AS cor0
----
35897
4188
98896
onlyif mysql # use DIV operator for integer division
query I rowsort label-2228
SELECT DISTINCT - 87 + col0 DIV + 5 AS col1 FROM tab1 cor0
----
-71
-75
-87
skipif mysql # not compatible
query I rowsort label-2228
SELECT DISTINCT - 87 + col0 / + 5 AS col1 FROM tab1 cor0
----
-71
-75
-87
query I rowsort
SELECT + 66 * col2 FROM tab2 AS cor0
----
1716
1782
2508
query I rowsort
SELECT - 6 * col0 FROM tab2 cor0
----
-42
-468
-474
query I rowsort
SELECT ALL + 79 * + col2 AS col1 FROM tab0 AS cor0
----
2607
6478
79
query I rowsort
SELECT ( col1 * + col2 + 65 ) FROM tab2
----
1599
711
902
query I rowsort
SELECT + 86 * + col2 * - 92 FROM tab0
----
-261096
-648784
-7912
query I rowsort
SELECT ALL 95 FROM tab2 cor0
----
95
95
95
query I rowsort
SELECT DISTINCT 5 + + col2 AS col1 FROM tab2 AS cor0
----
31
32
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-2236
SELECT ALL - col0 + - col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL - col0 + - col2 / + col1 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + - col1 * 98 AS col2 FROM tab2 AS cor0
----
-1666
-3038
-5782
query I rowsort
SELECT + + ( col0 ) + col0 * - col2 + col1 FROM tab1 AS cor0
----
-133
-3574
-7587
query I rowsort
SELECT + 59 + col2 + col0 * - col0 * col2 FROM tab2 AS cor0
----
-1237
-158099
-237061
query I rowsort
SELECT - 25 * col0 + - col2 AS col2 FROM tab1 AS cor0
----
-129
-1657
-2096
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2241
SELECT ALL - CAST( + 36 AS SIGNED ) FROM tab2 AS cor0
----
-36
-36
-36
skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL - CAST ( + 36 AS INTEGER ) FROM tab2 AS cor0
----
-36
-36
-36
query I rowsort
SELECT + - 35 + + ( - col2 ) * + ( col1 ) * col2 AS col1 FROM tab2 AS cor0
----
-22634
-24583
-39919
onlyif mysql # use DIV operator for integer division
query I rowsort label-2243
SELECT ALL + col2 DIV col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
10
14
44
skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL + col2 / col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
10
14
44
query I rowsort
SELECT ALL + col1 * col1 * - col1 AS col1 FROM tab2 cor0
----
-205379
-29791
-4913
onlyif mysql # use DIV operator for integer division
query I rowsort label-2245
SELECT col0 DIV - 80 + tab1.col0 AS col1 FROM tab1
----
3
64
79
skipif mysql # not compatible
query I rowsort label-2245
SELECT col0 / - 80 + tab1.col0 AS col1 FROM tab1
----
3
64
79
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0, tab2 AS cor1
----
3645 values hashing to 0c9c9a26da1b45580001288543ac8dbe
onlyif mysql # use DIV operator for integer division
query I rowsort label-2247
SELECT + ( col0 ) DIV - col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-2247
SELECT + ( col0 ) / - col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT ALL + 64 * col0 AS col2 FROM tab0
----
1536
2240
5696
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2249
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL CAST ( NULL AS REAL ) FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - col1 * + col0 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2251
SELECT ALL col2 - - col2 DIV tab0.col0 FROM tab0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL col2 - - col2 / tab0.col0 FROM tab0
----
1
34
82
query I rowsort
SELECT + col0 + - 72 FROM tab1 cor0
----
-69
-8
8
query I rowsort
SELECT + col1 - + col2 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT + 20 FROM tab1, tab1 AS cor0
----
20
query I rowsort
SELECT ALL cor0.col0 * col1 + col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT + 76 + - 41 AS col2 FROM tab2 AS cor0
----
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2257
SELECT CAST( NULL AS SIGNED ) * - 81 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2257
SELECT CAST ( NULL AS INTEGER ) * - 81 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + cor0.col1 col1 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2260
SELECT ALL CAST( ( + col0 ) AS SIGNED ) - ( 3 ) AS col2 FROM tab1 AS cor0
----
0
61
77
skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL CAST ( ( + col0 ) AS INTEGER ) - ( 3 ) AS col2 FROM tab1 AS cor0
----
0
61
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-2261
SELECT ALL - col2 + 92 DIV col0 AS col2 FROM tab0 cor0
----
-30
-81
1
skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL - col2 + 92 / col0 AS col2 FROM tab0 cor0
----
-30
-81
1
query I rowsort
SELECT DISTINCT + + col0 * cor0.col1 - + col2 * col1 AS col2 FROM tab0 AS cor0
----
-774
3298
637
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 50 * + col2 + + col2 col2 FROM tab1 AS cor0
----
-145746
-162393
-460704
query I rowsort
SELECT DISTINCT + 79 + + ( - col0 ) FROM tab1 AS cor0
----
-1
15
76
query I rowsort
SELECT + cor0.col2 FROM tab2, tab0 cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
query I rowsort
SELECT + cor1.col0 AS col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT + 11 * + col2 FROM tab1 cor0
----
1056
594
627
query I rowsort
SELECT DISTINCT - ( col0 ) * col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - col0 + - 99 AS col2 FROM tab0 AS cor0
----
-123
-134
-188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2270
SELECT ALL + col2 + CAST( NULL AS DECIMAL ) / - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL + col2 + CAST ( NULL AS REAL ) / - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2271
SELECT DISTINCT + - col2 * - CAST( - col2 AS SIGNED ) + - col1 AS col1 FROM tab2 AS cor0
----
-1461
-735
-760
skipif mysql # not compatible
query I rowsort label-2271
SELECT DISTINCT + - col2 * - CAST ( - col2 AS INTEGER ) + - col1 AS col1 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT DISTINCT - col2 * 65 - col0 AS col0 FROM tab0 cor0
----
-100
-2169
-5419
query I rowsort
SELECT + col1 * + col2 - col2 * - col2 FROM tab2 cor0
----
1566
2090
2210
query I rowsort
SELECT DISTINCT col2 + + col0 * col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL + - col1 + 61 AS col1 FROM tab0 AS cor0
----
-25
-30
-36
query I rowsort
SELECT DISTINCT + col1 * - 36 * ( - col0 ) FROM tab0 AS cor0
----
122220
291564
74304
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 23 col0 FROM tab2 AS cor0
----
-49
-50
-61
query I rowsort
SELECT DISTINCT tab2.col2 * col2 AS col1 FROM tab2
----
1444
676
729
query I rowsort
SELECT DISTINCT cor0.col0 * - col1 + 46 AS col1 FROM tab1 AS cor0
----
-32
-594
-994
onlyif mysql # use DIV operator for integer division
query I rowsort label-2280
SELECT - col1 DIV + col2 + - col1 * - cor0.col0 * - cor0.col1 FROM tab0 AS cor0
----
-177506
-329412
-737010
skipif mysql # not compatible
query I rowsort label-2280
SELECT - col1 / + col2 + - col1 * - cor0.col0 * - cor0.col1 FROM tab0 AS cor0
----
-177506
-329412
-737010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - tab1.col2 col0 FROM tab1
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 + cor0.col0 col0 FROM tab2 AS cor0
----
-68
3
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 col2 FROM tab1 AS cor0
----
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 27 + col1 col1 FROM tab2 cor0
----
44
58
86
query I rowsort
SELECT 58 AS col1 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT - col2 * col2 + - 3 FROM tab1 AS cor0
----
-2919
-3252
-9219
query I rowsort
SELECT ALL 30 * - col0 + col1 FROM tab2
----
-179
-2281
-2353
query I rowsort
SELECT DISTINCT - 67 AS col0 FROM tab2, tab2 AS cor0
----
-67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 + - tab0.col1 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT 2 + tab2.col1 AS col1 FROM tab2
----
19
33
61
query I rowsort
SELECT DISTINCT col0 * col1 + ( tab1.col2 ) * + col0 FROM tab1
----
240
4288
8720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 * - col0 + col1 col2 FROM tab2
----
-18
-6025
-6224
onlyif mysql # use DIV operator for integer division
query I rowsort label-2293
SELECT ALL - col2 + - col2 DIV col0 AS col0 FROM tab2 cor0
----
-26
-30
-38
skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL - col2 + - col2 / col0 AS col0 FROM tab2 cor0
----
-26
-30
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-2294
SELECT 53 DIV + col1 AS col1 FROM tab2 AS cor0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-2294
SELECT 53 / + col1 AS col1 FROM tab2 AS cor0
----
0
1
3
query I rowsort
SELECT ALL + ( 30 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT - col1 + col2 * + tab1.col1 FROM tab1
----
1235
1378
560
query I rowsort
SELECT col0 * col0 - tab2.col2 FROM tab2
----
22
6058
6203
query I rowsort
SELECT 23 + - 75 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
query I rowsort
SELECT DISTINCT 48 AS col2 FROM tab0, tab0 AS cor0
----
48
query I rowsort
SELECT ALL - ( - cor0.col2 ) + col0 * cor0.col2 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2301
SELECT ALL + CAST( + col2 AS SIGNED ) * col0 + ( 79 ) * - col0 AS col2 FROM tab0 AS cor0
----
-1104
-2730
267
skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL + CAST ( + col2 AS INTEGER ) * col0 + ( 79 ) * - col0 AS col2 FROM tab0 AS cor0
----
-1104
-2730
267
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + cor0.col1 + col0 * - col2 col0 FROM tab1 AS cor0
----
-240
-4288
-8720
query I rowsort
SELECT ALL + + ( + cor0.col1 ) + col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL col2 + ( + col0 ) * col1 * - 99 FROM tab2
----
-132919
-21456
-455572
onlyif mysql # use DIV operator for integer division
query I rowsort label-2305
SELECT ALL - ( col1 ) + col0 * col2 + + 96 DIV + col2 FROM tab1
----
137
3639
7668
skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL - ( col1 ) + col0 * col2 + + 96 / + col2 FROM tab1
----
137
3639
7668
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2306
SELECT + CAST( + cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2306
SELECT + CAST ( + cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2307
SELECT DISTINCT 21 + col1 DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
13
21
skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT 21 + col1 / - cor0.col0 AS col2 FROM tab1 AS cor0
----
13
21
skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( - col0 AS REAL ) + col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - ( cor0.col0 ) * + col2 + + col1 * col1 AS col0 FROM tab0 AS cor0
----
6604
9374
983
query I rowsort
SELECT ALL + col1 + 38 AS col0 FROM tab2 AS cor0
----
55
69
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - 12 + - col1 col0 FROM tab1 AS cor0
----
110
143
286
query I rowsort
SELECT ALL - col0 * 95 + - col1 - col2 AS col1 FROM tab1 AS cor0
----
-365
-6147
-7709
query I rowsort
SELECT ALL col2 * col0 + col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT - 79 + col0 FROM tab0 cor0
----
-44
-55
10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2315
SELECT ALL CAST( NULL AS SIGNED ) * col2 + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL CAST ( NULL AS INTEGER ) * col2 + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + 99 * 93 AS col2 FROM tab1 AS cor0
----
9207
query I rowsort
SELECT col1 + + col1 AS col2 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT ALL - cor0.col0 * 45 * + col2 + 45 FROM tab0 AS cor0
----
-1530
-328365
-35595
query I rowsort
SELECT DISTINCT - + 15 * + col2 + + col1 FROM tab0 AS cor0
----
-1139
-409
82
query I rowsort
SELECT DISTINCT + 42 AS col2 FROM tab0, tab2, tab0 AS cor0, tab1 AS cor1
----
42
query I rowsort
SELECT + 79 FROM tab1, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT DISTINCT + ( - ( - col1 ) ) AS col0 FROM tab1
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2323
SELECT DISTINCT + - CAST( 54 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-54
skipif mysql # not compatible
query I rowsort label-2323
SELECT DISTINCT + - CAST ( 54 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - ( - col1 ) * - col1 col1 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT + 85 AS col0 FROM tab0 AS cor0
----
85
85
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2326
SELECT - CAST( 90 AS SIGNED ) * - col1 AS col0 FROM tab0 AS cor0
----
7740
8190
8730
skipif mysql # not compatible
query I rowsort label-2326
SELECT - CAST ( 90 AS INTEGER ) * - col1 AS col0 FROM tab0 AS cor0
----
7740
8190
8730
query I rowsort
SELECT + ( + col2 ) + col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT + - col2 * col1 - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1593
-663
-868
onlyif mysql # use DIV operator for integer division
query I rowsort label-2329
SELECT - + 95 DIV col1 FROM tab2 AS cor0
----
-1
-3
-5
skipif mysql # not compatible
query I rowsort label-2329
SELECT - + 95 / col1 FROM tab2 AS cor0
----
-1
-3
-5
query I rowsort
SELECT - col0 * col2 - col1 * 39 AS col1 FROM tab0 AS cor0
----
-10847
-3818
-4146
query I rowsort
SELECT ( col0 ) + + col0 * col0 FROM tab2
----
56
6162
6320
query I rowsort
SELECT + + 18 * - col2 FROM tab1 cor0
----
-1026
-1728
-972
query I rowsort
SELECT col1 * col0 - - 37 AS col0 FROM tab0 AS cor0
----
2101
3432
8136
query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col0 AS col0 FROM tab0, tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + - col1 + - ( col1 ) * + col2 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT + 71 * - col2 + col0 AS col1 FROM tab0
----
-2319
-36
-5733
query I rowsort
SELECT + + col2 * + 15 + + 46 AS col1 FROM tab2 AS cor0
----
436
451
616
onlyif mysql # use DIV operator for integer division
query I rowsort label-2338
SELECT ALL cor0.col2 + col0 DIV - col1 FROM tab1 AS cor0
----
51
54
90
skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL cor0.col2 + col0 / - col1 FROM tab1 AS cor0
----
51
54
90
query I rowsort
SELECT + col1 * + 18 FROM tab1 AS cor0
----
180
234
468
query I rowsort
SELECT DISTINCT - col2 * + ( col0 ) * - col1 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-2341
SELECT - col0 DIV - 55 + col0 AS col0 FROM tab2 AS cor0
----
7
79
80
skipif mysql # not compatible
query I rowsort label-2341
SELECT - col0 / - 55 + col0 AS col0 FROM tab2 AS cor0
----
7
79
80
query I rowsort
SELECT col2 + - ( + col0 + col1 * 80 ) FROM tab2
----
-1401
-2460
-4772
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 23 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d
onlyif mysql # use DIV operator for integer division
query I rowsort label-2344
SELECT DISTINCT - col1 DIV tab0.col2 + 13 FROM tab0
----
-84
11
12
skipif mysql # not compatible
query I rowsort label-2344
SELECT DISTINCT - col1 / tab0.col2 + 13 FROM tab0
----
-84
11
12
query I rowsort
SELECT - tab0.col1 + - col1 * + 49 AS col2 FROM tab0
----
-4300
-4550
-4850
query I rowsort
SELECT - - 42 * col2 + - ( 87 ) AS col0 FROM tab0 AS cor0
----
-45
1299
3357
onlyif mysql # use DIV operator for integer division
query I rowsort label-2347
SELECT DISTINCT + - cor0.col0 * + ( ( + col0 ) ) + col1 * col1 DIV col0 FROM tab1 AS cor0
----
-4095
-6398
216
skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT + - cor0.col0 * + ( ( + col0 ) ) + col1 * col1 / col0 FROM tab1 AS cor0
----
-4095
-6398
216
query I rowsort
SELECT DISTINCT + col1 * + ( col2 * - col2 ) AS col0 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT ALL col2 * - ( 63 ) + cor0.col2 FROM tab1 AS cor0
----
-3348
-3534
-5952
query I rowsort
SELECT col2 * + 44 AS col2 FROM tab2 AS cor0
----
1144
1188
1672
query I rowsort
SELECT DISTINCT + col1 * + col0 + col1 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
50
593
957
query I rowsort
SELECT cor0.col2 + - col1 * + col1 FROM tab2 cor0
----
-251
-3455
-934
query I rowsort
SELECT - + col2 + 59 FROM tab1 AS cor0
----
-37
2
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-2354
SELECT + col1 + col1 DIV col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-2354
SELECT + col1 + col1 / col1 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT DISTINCT + - col0 * col1 + col1 * col2 * - cor0.col1 FROM tab2 AS cor0
----
-12325
-26164
-95108
onlyif mysql # use DIV operator for integer division
query I rowsort label-2356
SELECT DISTINCT - + col2 + col2 DIV - 35 AS col1 FROM tab2 AS cor0
----
-26
-27
-39
skipif mysql # not compatible
query I rowsort label-2356
SELECT DISTINCT - + col2 + col2 / - 35 AS col1 FROM tab2 AS cor0
----
-26
-27
-39
query I rowsort
SELECT - - cor0.col2 + ( + 3 ) * col2 FROM tab1 AS cor0
----
216
228
384
query I rowsort
SELECT ALL + col1 + + col1 * - col0 AS col1 FROM tab1 cor0
----
-1027
-52
-630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2359
SELECT - CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-2359
SELECT - CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2360
SELECT CAST( NULL AS DECIMAL ) - ( + col1 ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2360
SELECT CAST ( NULL AS REAL ) - ( + col1 ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col1 * 13 FROM tab1 AS cor0
----
130
169
338
query I rowsort
SELECT ALL + - cor0.col0 + + cor0.col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT tab2.col2 * 11 AS col1 FROM tab2
----
286
297
418
query I rowsort
SELECT - 91 AS col1 FROM tab0 cor0
----
-91
-91
-91
query I rowsort
SELECT - - 50 * + col0 FROM tab1 AS cor0
----
150
3200
4000
query I rowsort
SELECT + col0 * col1 + col2 * + 99 + col1 * col1 AS col0 FROM tab2 AS cor0
----
10657
3851
5394
onlyif mysql # use DIV operator for integer division
query I rowsort label-2367
SELECT + ( + col1 ) DIV - tab0.col1 AS col1 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2367
SELECT + ( + col1 ) / - tab0.col1 AS col1 FROM tab0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2368
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + ( - col0 ) - 38 * - 55 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + ( - col0 ) - 38 * - 55 FROM tab0
----
NULL
query I rowsort
SELECT ALL 12 * - col0 AS col2 FROM tab2 AS cor0
----
-84
-936
-948
query I rowsort
SELECT - col2 * col1 - - col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-2371
SELECT ALL + 35 * col1 DIV col1 FROM tab0 AS cor0
----
35
35
35
skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL + 35 * col1 / col1 FROM tab0 AS cor0
----
35
35
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-2372
SELECT + + 30 DIV + col2 FROM tab0 AS cor0
----
0
0
30
skipif mysql # not compatible
query I rowsort label-2372
SELECT + + 30 / + col2 FROM tab0 AS cor0
----
0
0
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * col0 col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col2 * col0 - cor0.col1 AS col0 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT DISTINCT 51 * + col1 AS col2 FROM tab1 AS cor0
----
1326
510
663
query I rowsort
SELECT + ( col0 ) + + col0 AS col0 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT + - col0 * - col1 + - col2 AS col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT + 22 * 48 * col1 AS col1 FROM tab2
----
17952
32736
62304
query I rowsort
SELECT DISTINCT ( col2 ) * col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT 90 - - col0 * + col0 * col1 FROM tab0
----
118915
49626
720901
query I rowsort
SELECT ( - 87 + - col1 ) FROM tab2
----
-104
-118
-146
query I rowsort
SELECT - col2 * col2 + col2 FROM tab1
----
-2862
-3192
-9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-2383
SELECT + 78 DIV - col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2383
SELECT + 78 / - col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT - cor1.col1 - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a464155f1f6cb07f325fb0d7a4ec61f2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 * - col1 col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT col0 * col0 * + col2 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT ALL + + cor0.col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT col0 + - col1 + + col0 FROM tab2 AS cor0
----
-17
141
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2389
SELECT ALL col0 DIV - col1 + col1 * col2 FROM tab1
----
1242
1404
564
skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL col0 / - col1 + col1 * col2 FROM tab1
----
1242
1404
564
query I rowsort
SELECT ALL + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT - col2 + col0 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
1224
543
7839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 62 ) col2 FROM tab2 cor0
----
-62
-62
-62
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 + 26 * col1 FROM tab2 AS cor0
----
1534
442
806
query I rowsort
SELECT ALL - col1 * + 5 AS col0 FROM tab2
----
-155
-295
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2396
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 33 * + col0 AS col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2396
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 33 * + col0 AS col2 FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL - ( col2 ) + + col2 * - col0 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT + + ( col2 ) AS col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT 64 * + col1 + col2 FROM tab1 AS cor0
----
1718
697
928
query I rowsort
SELECT - - col2 * 68 FROM tab2 AS cor0
----
1768
1836
2584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2401
SELECT ALL - CAST( 8 AS SIGNED ) + cor0.col1 * + cor0.col1 FROM tab1 AS cor0
----
161
668
92
skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL - CAST ( 8 AS INTEGER ) + cor0.col1 * + cor0.col1 FROM tab1 AS cor0
----
161
668
92
query I rowsort
SELECT DISTINCT - col0 * + col0 + + col0 * + col2 * - col1 FROM tab2 AS cor0
----
-125736
-57275
-5908
query I rowsort
SELECT ALL - col1 + 26 * + col2 AS col1 FROM tab1 AS cor0
----
1378
1472
2483
onlyif mysql # use DIV operator for integer division
query I rowsort label-2404
SELECT ALL col1 + col1 DIV - col0 AS col2 FROM tab0 AS cor0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL col1 + col1 / - col0 AS col2 FROM tab0 AS cor0
----
83
90
95
query I rowsort
SELECT ALL - col2 - - col0 * col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT + col1 * 69 AS col1 FROM tab1 AS cor0
----
1794
690
897
query I rowsort
SELECT col1 * 88 AS col2 FROM tab0 cor0
----
7568
8008
8536
query I rowsort
SELECT ALL - - col1 + ( - col1 ) * + col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 * 37 FROM tab0 AS cor0
----
1295
270026
29304
query I rowsort
SELECT - + cor0.col1 * col1 FROM tab0 cor0
----
-7396
-8281
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2411
SELECT ALL col1 + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL col1 + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + + col0 AS col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ( + col1 ) + col1 * 62 AS col0 FROM tab1 AS cor0
----
1638
630
819
query I rowsort
SELECT + - col1 + + 80 FROM tab1 AS cor0
----
54
67
70
query I rowsort
SELECT ALL tab2.col2 * + col0 * + tab2.col0 + + col0 * ( + col0 ) AS col0 FROM tab2
----
1372
164268
243399
query I rowsort
SELECT col0 + - ( + col1 ) + col2 FROM tab2
----
100
3
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-2417
SELECT DISTINCT + - 8 DIV + col0 AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2417
SELECT DISTINCT + - 8 / + col0 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - 8 + col2 AS col1 FROM tab0 cor0
----
-7
25
74
query I rowsort
SELECT ALL - + ( + col0 ) * - 5 FROM tab0 AS cor0
----
120
175
445
query I rowsort
SELECT ALL - 82 * col0 FROM tab2 AS cor0
----
-574
-6396
-6478
query I rowsort
SELECT DISTINCT - 63 AS col2 FROM tab1 AS cor0
----
-63
query I rowsort
SELECT ALL - - col0 + - col1 AS col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT - col0 * + col0 * 25 FROM tab0 AS cor0
----
-14400
-198025
-30625
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2424
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
NULL
query I rowsort
SELECT DISTINCT + + col2 - col0 * - col1 * + cor0.col2 FROM tab0 AS cor0
----
3396
664200
68145
query I rowsort
SELECT DISTINCT - col2 + 97 AS col1 FROM tab0
----
15
64
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + tab1.col1 + 92 col2 FROM tab1
----
1340
1496
662
query I rowsort
SELECT + col2 * tab0.col1 + col0 AS col1 FROM tab0
----
132
2862
7551
query I rowsort
SELECT ALL + col0 * + col2 * + tab1.col0 AS col1 FROM tab1
----
233472
486
614400
query I rowsort
SELECT DISTINCT col2 * col1 * 53 AS col1 FROM tab1 AS cor0
----
30210
66144
74412
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 + col0 * - col0 col0 FROM tab0 AS cor0
----
-1224
-543
-7839
onlyif mysql # use DIV operator for integer division
query I rowsort label-2432
SELECT DISTINCT + cor0.col0 + col0 DIV col2 AS col2 FROM tab0 AS cor0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT + cor0.col0 + col0 / col2 AS col2 FROM tab0 AS cor0
----
24
70
90
query I rowsort
SELECT 59 * + col2 FROM tab2 AS cor0
----
1534
1593
2242
query I rowsort
SELECT ALL ( - col2 + - ( - 72 ) ) FROM tab0
----
-10
39
71
query I rowsort
SELECT - col0 * col0 + col2 * col0 AS col0 FROM tab0
----
-1190
-623
216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2436
SELECT + col1 * - CAST( - col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-2436
SELECT + col1 * - CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT - col2 * - ( + 35 ) AS col2 FROM tab2 AS cor0
----
1330
910
945
query I rowsort
SELECT DISTINCT + 8 FROM tab1, tab2 cor0, tab0 AS cor1
----
8
query I rowsort
SELECT - cor1.col2 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + ( + 76 ) col2 FROM tab1
----
228
4864
6080
query I rowsort
SELECT - - col1 * col0 + - col2 AS col2 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT - ( ( tab0.col0 ) ) * col1 AS col2 FROM tab0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 * - col1 col2 FROM tab2
----
1457
2773
799
query I rowsort
SELECT DISTINCT col0 * - col0 + col0 FROM tab0
----
-1190
-552
-7832
query I rowsort
SELECT + 7 * col2 FROM tab0
----
231
574
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2446
SELECT DISTINCT 37 DIV col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-2446
SELECT DISTINCT 37 / col2 FROM tab1
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2447
SELECT ALL col0 DIV 18 AS col2 FROM tab2 AS cor0
----
0
4
4
skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL col0 / 18 AS col2 FROM tab2 AS cor0
----
0
4
4
query I rowsort
SELECT DISTINCT - 75 AS col2 FROM tab1
----
-75
query I rowsort
SELECT + + col1 + col2 + + ( - 88 ) FROM tab0 AS cor0
----
10
31
85
query I rowsort
SELECT - - col0 + col1 * + col2 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT ( + col1 * col0 ) + col2 * col1 AS col2 FROM tab0
----
15561
3492
4902
query I rowsort
SELECT - col2 + + col0 * col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT 25 AS col1 FROM tab1, tab0, tab2 AS cor0, tab2 AS cor1
----
25
query I rowsort
SELECT col0 * ( + col2 + col2 ) FROM tab2
----
378
4056
6004
query I rowsort
SELECT + 50 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 314aace40e704c20a6be06204a329f80
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2457
SELECT + - col0 DIV col1 + - col1 FROM tab1 AS cor0
----
-16
-19
-26
skipif mysql # not compatible
query I rowsort label-2457
SELECT + - col0 / col1 + - col1 FROM tab1 AS cor0
----
-16
-19
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 + col1 col1 FROM tab2 AS cor0
----
110
138
96
query I rowsort
SELECT ALL ( col0 ) * col0 * col1 + + col1 * ( ( + tab1.col1 ) ) AS col1 FROM tab1
----
41060
83369
910
query I rowsort
SELECT DISTINCT + + cor0.col2 * cor0.col1 * col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
119730
51113
5866
query I rowsort
SELECT - - 29 - col1 AS col0 FROM tab2 AS cor0
----
-2
-30
12
query I rowsort
SELECT DISTINCT + + col0 * col1 + + 40 * 81 AS col0 FROM tab1 AS cor0
----
3318
3880
4280
query I rowsort
SELECT - ( - col2 ) + + col2 FROM tab0 cor0
----
164
2
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2464
SELECT col1 * col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2464
SELECT col1 * col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 74 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
222
4736
5920
onlyif mysql # use DIV operator for integer division
query I rowsort label-2466
SELECT ALL + 73 DIV - cor0.col0 FROM tab0 AS cor0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL + 73 / - cor0.col0 FROM tab0 AS cor0
----
-2
-3
0
query I rowsort
SELECT + 34 AS col2 FROM tab2 AS cor0
----
34
34
34
query I rowsort
SELECT - cor0.col2 * + col2 + - col0 AS col1 FROM tab0 AS cor0
----
-1113
-36
-6813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col2 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT cor0.col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - - col2 * ( 72 ) FROM tab0 AS cor0
----
2376
5904
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2472
SELECT - cor0.col0 * CAST( 67 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1608
-2345
-5963
skipif mysql # not compatible
query I rowsort label-2472
SELECT - cor0.col0 * CAST ( 67 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1608
-2345
-5963
query I rowsort
SELECT - ( - cor0.col0 ) * + col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT + + col2 + 10 * + col2 AS col1 FROM tab1 AS cor0
----
1056
594
627
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to b3ea820890445d59f3f7464a1521d42d
query I rowsort
SELECT + 38 * + col1 AS col1 FROM tab1 cor0
----
380
494
988
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
0
7209
768
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2478
SELECT - + CAST( col1 AS SIGNED ) + col0 FROM tab0 cor0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-2478
SELECT - + CAST ( col1 AS INTEGER ) + col0 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT ALL 94 * ( + col1 ) FROM tab0 AS cor0
----
8084
8554
9118
query I rowsort
SELECT cor0.col1 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-2481
SELECT DISTINCT ( col0 ) DIV col0 - - col2 * - col1 FROM tab2 AS cor0
----
-1533
-645
-836
skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT ( col0 ) / col0 - - col2 * - col1 FROM tab2 AS cor0
----
-1533
-645
-836
query I rowsort
SELECT + 60 * - col2 AS col2 FROM tab2 AS cor0
----
-1560
-1620
-2280
query I rowsort
SELECT ALL - col1 * + col2 * + col2 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT ALL + ( - 81 ) AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1
query I rowsort
SELECT - ( 34 ) * col1 FROM tab0 AS cor0
----
-2924
-3094
-3298
query I rowsort
SELECT + ( + 27 ) FROM tab0 cor0
----
27
27
27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2487
SELECT DISTINCT - CAST( 21 AS SIGNED ) FROM tab0 cor0
----
-21
skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT - CAST ( 21 AS INTEGER ) FROM tab0 cor0
----
-21
query I rowsort
SELECT DISTINCT + 17 + ( col2 ) FROM tab2 cor0
----
43
44
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-2489
SELECT + - col2 + + col1 * col2 DIV 80 AS col1 FROM tab0 AS cor0
----
0
11
2
skipif mysql # not compatible
query I rowsort label-2489
SELECT + - col2 + + col1 * col2 / 80 AS col1 FROM tab0 AS cor0
----
0
11
2
query I rowsort
SELECT ALL + 17 * + col2 AS col1 FROM tab2 AS cor0
----
442
459
646
query I rowsort
SELECT DISTINCT col1 * + ( - col0 + col2 ) FROM tab2
----
-3068
-697
620
query I rowsort
SELECT col1 + 65 FROM tab0
----
151
156
162
query I rowsort
SELECT DISTINCT - col0 * - ( col0 ) AS col1 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-2494
SELECT + + col0 * - 49 + + col1 * col2 DIV col2 FROM tab1 AS cor0
----
-121
-3126
-3907
skipif mysql # not compatible
query I rowsort label-2494
SELECT + + col0 * - 49 + + col1 * col2 / col2 FROM tab1 AS cor0
----
-121
-3126
-3907
query I rowsort
SELECT - col2 * cor0.col1 + 13 * col1 AS col1 FROM tab0 AS cor0
----
-1720
-6279
1164
query I rowsort
SELECT ALL + col0 * + ( 11 ) AS col0 FROM tab2 AS cor0
----
77
858
869
onlyif mysql # use DIV operator for integer division
query I rowsort label-2497
SELECT + col0 DIV 23 + - col2 FROM tab2 AS cor0
----
-23
-27
-35
skipif mysql # not compatible
query I rowsort label-2497
SELECT + col0 / 23 + - col2 FROM tab2 AS cor0
----
-23
-27
-35
query I rowsort
SELECT col1 * 66 + + col1 FROM tab2 AS cor0
----
1139
2077
3953
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col1 FROM tab1, tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2500
SELECT + tab0.col0 - - col2 DIV + tab0.col1 AS col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-2500
SELECT + tab0.col0 - - col2 / + tab0.col1 AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT + col1 - - tab0.col0 AS col1 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT col1 * + 86 * - 14 FROM tab1
----
-12040
-15652
-31304
query I rowsort
SELECT DISTINCT + tab1.col2 + + col0 * col1 AS col2 FROM tab1
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-2504
SELECT DISTINCT col1 DIV + col0 + col1 + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-128
-3638
-7667
skipif mysql # not compatible
query I rowsort label-2504
SELECT DISTINCT col1 / + col0 + col1 + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-128
-3638
-7667
query I rowsort
SELECT ALL 11 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
query I rowsort
SELECT - ( tab0.col1 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT - col0 * col2 + + col2 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT - cor0.col0 * col0 + col0 * + col1 AS col2 FROM tab1 AS cor0
----
-3456
-5360
69
query I rowsort
SELECT ALL col2 * col1 - col0 AS col1 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT DISTINCT + col1 * + col1 * - col0 + col2 FROM tab2 AS cor0
----
-22793
-271492
-6700
query I rowsort
SELECT DISTINCT + col1 * col2 + - col2 * + col0 AS col0 FROM tab1 cor0
----
-3078
-6432
1242
query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT NULL IN ( tab2.col1 + + col1 )
----
query I rowsort
SELECT col2 + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT - - cor0.col1 + + col0 AS col0 FROM tab2 AS cor0
----
137
38
96
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * - col0 > NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2517
SELECT ALL cor0.col1 DIV col2 + + col1 * + col0 * col1 FROM tab1 AS cor0
----
13520
2028
6400
skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL cor0.col1 / col2 + + col1 * + col0 * col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT ALL - col0 - + cor0.col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT ALL - col0 * col1 + + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-4736
-7440
-87
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN - col0 AND col0
----
query I rowsort
SELECT ALL - - col1 + - col0 * + col0 AS col2 FROM tab2 cor0
----
-18
-6025
-6224
query I rowsort
SELECT ALL - cor0.col0 * + cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT - cor0.col1 + - col2 * + cor0.col0 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT ALL + col2 * + cor0.col0 AS col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT + col1 * + col2 + - col1 FROM tab1 AS cor0
----
1235
1378
560
onlyif mysql # use DIV operator for integer division
query I rowsort label-2526
SELECT col2 + col2 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2526
SELECT col2 + col2 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 + col0 * col1 AS col2 FROM tab1 AS cor0
----
1209
740
754
query I rowsort
SELECT DISTINCT + tab2.col1 + + col0 * + col0 * + col0 FROM tab2
----
374
474611
493056
query I rowsort
SELECT ALL - tab2.col0 * col0 + col0 AS col0 FROM tab2
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT col0 * col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-2531
SELECT ALL + col2 + col0 DIV - cor0.col1 AS col0 FROM tab2 cor0
----
25
27
34
skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL + col2 + col0 / - cor0.col1 AS col0 FROM tab2 cor0
----
25
27
34
query I rowsort
SELECT DISTINCT col1 + + col1 + col1 AS col1 FROM tab0
----
258
273
291
query I rowsort
SELECT + col0 * tab1.col0 AS col1 FROM tab1
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2534
SELECT tab0.col2 DIV - col0 + col1 * - col0 AS col1 FROM tab0
----
-2065
-3395
-8099
skipif mysql # not compatible
query I rowsort label-2534
SELECT tab0.col2 / - col0 + col1 * - col0 AS col1 FROM tab0
----
-2065
-3395
-8099
query I rowsort
SELECT ALL col0 + + col2 * - col1 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT col0 * col0 + tab1.col1 AS col1 FROM tab1
----
35
4106
6413
query I rowsort
SELECT DISTINCT + tab1.col1 + col2 AS col2 FROM tab1
----
109
67
80
query I rowsort
SELECT - col2 * + col2 + + col2 * col2 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 * col2 AS col2 FROM tab1 WHERE NOT NULL >= ( col0 - col0 )
----
query I rowsort
SELECT col1 * col2 * - tab0.col2 AS col0 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT col0 - + col1 FROM tab0
----
-2
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2542
SELECT + 10 DIV + col0 + - col1 FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-2542
SELECT + 10 / + col0 + - col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT ALL 6 * col1 FROM tab2 AS cor0
----
102
186
354
onlyif mysql # use DIV operator for integer division
query I rowsort label-2544
SELECT + 91 DIV - col1 AS col2 FROM tab1 AS cor0
----
-3
-7
-9
skipif mysql # not compatible
query I rowsort label-2544
SELECT + 91 / - col1 AS col2 FROM tab1 AS cor0
----
-3
-7
-9
query I rowsort
SELECT + - 97 * + col2 + - col2 AS col2 FROM tab2 AS cor0
----
-2548
-2646
-3724
query I rowsort
SELECT DISTINCT - col1 * - col1 AS col2 FROM tab0
----
7396
8281
9409
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + tab0.col2 )
----
query III rowsort
SELECT * FROM tab0 WHERE ( + col0 + - col0 ) NOT IN ( + col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT ALL + col2 + - col0 + col2 AS col1 FROM tab1
----
105
112
50
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( col1 * + col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col0 * col1 col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col1 + + col1 * + tab1.col2 + + col1 FROM tab1
----
1274
1456
590
query I rowsort
SELECT col0 * col0 + tab2.col0 FROM tab2
----
56
6162
6320
query I rowsort
SELECT ALL - col1 * tab0.col0 * col1 + col2 + - col0 AS col1 FROM tab0
----
-177495
-329349
-737016
onlyif mysql # use DIV operator for integer division
query I rowsort label-2555
SELECT ALL - col0 * col1 + + col0 DIV tab1.col0 + col0 FROM tab1
----
-575
-74
-959
skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL - col0 * col1 + + col0 / tab1.col0 + col0 FROM tab1
----
-575
-74
-959
query I rowsort
SELECT DISTINCT - tab2.col2 * - col1 + + col2 FROM tab2
----
1560
684
864
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN col2 AND NULL
----
query I rowsort
SELECT - col2 - tab1.col2 * col1 AS col2 FROM tab1
----
-1344
-1458
-627
query I rowsort
SELECT DISTINCT + col0 * - col0 + col0 AS col2 FROM tab1
----
-4032
-6
-6320
query I rowsort
SELECT ALL col1 * + col1 * col2 + + col0 AS col0 FROM tab2
----
11061
25954
90584
query III rowsort
SELECT * FROM tab2 WHERE NOT col0 NOT BETWEEN ( NULL ) AND ( + col1 * - col2 )
----
query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT col2 = + col2
----
query I rowsort
SELECT col1 * col2 + - col2 FROM tab1
----
1152
1350
513
query I rowsort
SELECT - col1 FROM tab1 WHERE NOT NULL >= NULL
----
query I rowsort
SELECT - col0 + col2 + + col1 * - col0 AS col0 FROM tab1
----
-1024
-27
-647
query I rowsort
SELECT - tab1.col1 * + tab1.col2 AS col0 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + col2 * tab2.col2 + col1 AS col0 FROM tab2
----
1461
735
760
query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT - col0 / col1 IN ( - col0 )
----
26
27
38
query I rowsort
SELECT col1 - + col1 * col2 AS col0 FROM tab1
----
-1235
-1378
-560
onlyif mysql # use DIV operator for integer division
query I rowsort label-2570
SELECT col0 DIV - col2 + col2 * col1 FROM tab1
----
1248
1404
569
skipif mysql # not compatible
query I rowsort label-2570
SELECT col0 / - col2 + col2 * col1 FROM tab1
----
1248
1404
569
query I rowsort
SELECT - 11 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 56 col1 FROM tab2 AS cor0
----
1456
1512
2128
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 col0 FROM tab0 cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2574
SELECT ALL + + col0 * + CAST( - 55 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-385
-4290
-4345
skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL + + col0 * + CAST ( - 55 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-385
-4290
-4345
query I rowsort
SELECT ALL + col0 * - 62 + - col1 AS col1 FROM tab1 cor0
----
-212
-3978
-4973
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2576
SELECT col2 + + CAST( col0 AS SIGNED ) * + col0 - - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2576
SELECT col2 + + CAST ( col0 AS INTEGER ) * + col0 - - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 * + 72 FROM tab1
----
-1872
-720
-936
query I rowsort
SELECT ALL 91 * col2 * col0 FROM tab0
----
3185
664118
72072
query I rowsort
SELECT DISTINCT 24 * + cor0.col0 * 2 AS col1 FROM tab2 AS cor0
----
336
3744
3792
query I rowsort
SELECT DISTINCT + + col0 + col0 * + ( col0 ) * cor0.col1 + col2 * + col1 AS col1 FROM tab1 AS cor0
----
1641
41594
84528
query I rowsort
SELECT 75 + - col0 AS col2 FROM tab0 AS cor0
----
-14
40
51
query I rowsort
SELECT - col2 * ( tab0.col2 ) FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT col0 * - tab1.col1 AS col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT - 51 AS col0 FROM tab2 cor0
----
-51
-51
-51
query I rowsort
SELECT ALL - + 94 AS col2 FROM tab1 AS cor0
----
-94
-94
-94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col2 ) col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT col0 + col0 * 2 AS col2 FROM tab1 AS cor0
----
192
240
9
query I rowsort
SELECT - col1 + col2 * + col1 AS col1 FROM tab0 cor0
----
0
2752
7371
query I rowsort
SELECT 14 + col1 * col1 AS col2 FROM tab0 AS cor0
----
7410
8295
9423
query I rowsort
SELECT - col1 + col2 * + col0 AS col1 FROM tab0
----
-62
706
7207
onlyif mysql # use DIV operator for integer division
query I rowsort label-2591
SELECT - 5 * col0 + 58 DIV col0 FROM tab2
----
-27
-390
-395
skipif mysql # not compatible
query I rowsort label-2591
SELECT - 5 * col0 + 58 / col0 FROM tab2
----
-27
-390
-395
query I rowsort
SELECT + col1 * tab2.col0 + - ( col1 + col2 ) AS col2 FROM tab2
----
1288
159
4517
query I rowsort
SELECT + col2 * col1 * + col1 - col2 FROM tab0
----
244035
678960
9408
query I rowsort
SELECT - col1 - tab2.col0 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT + cor0.col1 * cor0.col0 AS col1 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2596
SELECT ALL + col1 * col1 + - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL + col1 * col1 + - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col0 * col0 * - col0 + cor0.col2 FROM tab1 AS cor0
----
-262087
-511904
27
query I rowsort
SELECT - - col1 + 98 * - col0 FROM tab2 AS cor0
----
-655
-7585
-7725
query I rowsort
SELECT - col2 + + ( - cor0.col1 ) * - col0 FROM tab0 cor0
----
2031
3394
8017
query I rowsort
SELECT + col1 * ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + + cor0.col0 + - ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2602
SELECT DISTINCT col1 + CAST( - 90 AS SIGNED ) DIV + col0 AS col2 FROM tab0 AS cor0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT col1 + CAST ( - 90 AS INTEGER ) / + col0 AS col2 FROM tab0 AS cor0
----
83
90
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-2603
SELECT DISTINCT - col0 + + cor0.col0 DIV + 6 FROM tab2 AS cor0
----
-6
-65
-66
skipif mysql # not compatible
query I rowsort label-2603
SELECT DISTINCT - col0 + + cor0.col0 / + 6 FROM tab2 AS cor0
----
-6
-65
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + + 16 * - 58 col0 FROM tab2 AS cor0
----
-890
-901
-902
query I rowsort
SELECT ALL + cor0.col2 * ( 33 * + col0 ) AS col2 FROM tab0 cor0
----
1155
240834
26136
query I rowsort
SELECT DISTINCT col1 + 66 * - col1 FROM tab0 AS cor0
----
-5590
-5915
-6305
query I rowsort
SELECT cor0.col1 * col0 * col1 AS col2 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT - col0 * - ( 78 ) FROM tab2 AS cor0
----
546
6084
6162
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 * 68 col2 FROM tab1
----
1765
616
804
query I rowsort
SELECT + 89 * col0 * col1 - + col2 AS col0 FROM tab2
----
119489
19286
409552
query I rowsort
SELECT + + col2 * col0 * - col2 AS col2 FROM tab1 cor0
----
-207936
-737280
-8748
query I rowsort
SELECT col1 * - ( col2 ) + + col1 + col2 AS col2 FROM tab0 AS cor0
----
-2719
-7289
1
query I rowsort
SELECT DISTINCT col0 + col2 * - ( - cor0.col0 * col0 ) FROM tab0 AS cor0
----
1260
19032
649611
query I rowsort
SELECT ALL - col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT col0 + cor0.col1 * - col2 AS col0 FROM tab2 cor0
----
-1456
-567
-830
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 - + ( col0 ) + + col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT - 91 - + 7 * col0 * col2 AS col1 FROM tab1 AS cor0
----
-1225
-25627
-53851
query I rowsort
SELECT DISTINCT - + cor0.col1 + - col0 + col1 * col2 AS col0 FROM tab0 AS cor0
----
-35
2728
7282
query I rowsort
SELECT DISTINCT + cor0.col0 * col0 + - cor0.col1 * 22 FROM tab0 AS cor0
----
-1316
-909
5919
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2621
SELECT ALL + + CAST( col0 AS SIGNED ) * + col0 AS col1 FROM tab1 cor0
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL + + CAST ( col0 AS INTEGER ) * + col0 AS col1 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT ALL col2 * col2 + col1 FROM tab1
----
2942
3259
9229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 * col0 col0 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT ALL - + col2 * - 78 FROM tab2 AS cor0
----
2028
2106
2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-2625
SELECT DISTINCT + + col0 DIV cor0.col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-2625
SELECT DISTINCT + + col0 / cor0.col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT ALL + + col1 * + cor0.col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + - col1 * - col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - - col2 - cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * 75 - - col0 FROM tab2 AS cor0
----
-518
-5772
-5846
onlyif mysql # use DIV operator for integer division
query I rowsort label-2630
SELECT - ( + col1 ) * col2 + col1 DIV 15 FROM tab2 AS cor0
----
-1531
-645
-835
skipif mysql # not compatible
query I rowsort label-2630
SELECT - ( + col1 ) * col2 + col1 / 15 FROM tab2 AS cor0
----
-1531
-645
-835
query I rowsort
SELECT DISTINCT 37 * col0 AS col2 FROM tab1 AS cor0
----
111
2368
2960
query I rowsort
SELECT ALL col1 * 26 * col2 - 6 * + 74 FROM tab2 AS cor0
----
16352
21318
39440
onlyif mysql # use DIV operator for integer division
query I rowsort label-2633
SELECT ALL col1 DIV col0 + cor0.col1 * + col0 + col0 * CAST( col0 AS SIGNED ) FROM tab2 cor0
----
10686
270
7584
skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL col1 / col0 + cor0.col1 * + col0 + col0 * CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
10686
270
7584
query I rowsort
SELECT + 12 + + col2 * 16 FROM tab2 AS cor0
----
428
444
620
onlyif mysql # use DIV operator for integer division
query I rowsort label-2635
SELECT ALL col0 DIV col1 + 5 * ( + col2 + - ( - 4 ) ) FROM tab2 AS cor0
----
151
155
214
skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL col0 / col1 + 5 * ( + col2 + - ( - 4 ) ) FROM tab2 AS cor0
----
151
155
214
onlyif mysql # use DIV operator for integer division
query I rowsort label-2636
SELECT + col0 * - cor0.col2 + cor0.col1 DIV col0 FROM tab0 AS cor0
----
-33
-7297
-789
skipif mysql # not compatible
query I rowsort label-2636
SELECT + col0 * - cor0.col2 + cor0.col1 / col0 FROM tab0 AS cor0
----
-33
-7297
-789
query I rowsort
SELECT DISTINCT ( col2 ) + + ( col2 ) * + col0 * - col0 FROM tab2 AS cor0
----
-1296
-158158
-237120
query I rowsort
SELECT ALL - 3 * col1 FROM tab1 AS cor0
----
-30
-39
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2639
SELECT DISTINCT - CAST( + col1 AS SIGNED ) + - col1 AS col0 FROM tab0
----
-172
-182
-194
skipif mysql # not compatible
query I rowsort label-2639
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) + - col1 AS col0 FROM tab0
----
-172
-182
-194
query I rowsort
SELECT + 38 + 76 AS col1 FROM tab0 AS cor0
----
114
114
114
onlyif mysql # use DIV operator for integer division
query I rowsort label-2641
SELECT col2 + + 25 DIV - col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2641
SELECT col2 + + 25 / - col1 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL - tab1.col0 * col1 * col1 + col2 AS col2 FROM tab1
----
-13424
-1974
-6343
query I rowsort
SELECT - col2 * 63 FROM tab1 AS cor0
----
-3402
-3591
-6048
query I rowsort
SELECT col1 * 95 AS col2 FROM tab1 cor0
----
1235
2470
950
query I rowsort
SELECT - col1 * col1 * - col2 + col2 FROM tab1
----
16320
36558
5757
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab0 AS cor0, tab1 cor1
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d
query I rowsort
SELECT col0 + - col2 * col0 AS col2 FROM tab1
----
-159
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-2648
SELECT - col1 DIV 15 + col1 * tab0.col0 AS col0 FROM tab0
----
2059
3389
8093
skipif mysql # not compatible
query I rowsort label-2648
SELECT - col1 / 15 + col1 * tab0.col0 AS col0 FROM tab0
----
2059
3389
8093
query I rowsort
SELECT tab1.col2 + + 55 AS col0 FROM tab1
----
109
112
151
onlyif mysql # use DIV operator for integer division
query I rowsort label-2650
SELECT ALL + col1 DIV cor0.col1 AS col2 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL + col1 / cor0.col1 AS col2 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT ALL + 11 * - ( - cor0.col0 ) + - ( + col0 ) FROM tab0 AS cor0
----
240
350
890
query I rowsort
SELECT + 11 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
21
24
37
query I rowsort
SELECT 7 + - 77 FROM tab1 AS cor0
----
-70
-70
-70
query I rowsort
SELECT DISTINCT tab1.col0 * - col1 * 21 + tab1.col1 AS col0 FROM tab1
----
-13430
-1612
-21827
query I rowsort
SELECT DISTINCT col0 + + col0 + tab2.col1 FROM tab2
----
175
215
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-2656
SELECT + col1 + col0 * ( - 40 ) DIV + col0 + - ( col0 ) FROM tab0
----
-38
22
22
skipif mysql # not compatible
query I rowsort label-2656
SELECT + col1 + col0 * ( - 40 ) / + col0 + - ( col0 ) FROM tab0
----
-38
22
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + cor0.col2 col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - 19 * - col1 - col0 FROM tab0 AS cor0
----
1610
1640
1808
query I rowsort
SELECT DISTINCT + col2 * - col2 + 19 * col2 FROM tab0 AS cor0
----
-462
-5166
18
query I rowsort
SELECT ALL - - col1 * + col0 * ( - 10 ) - col0 FROM tab0 cor0
----
-20664
-33985
-81079
query I rowsort
SELECT ALL col0 + - col0 * col1 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL + col2 * - 44 AS col2 FROM tab0 AS cor0
----
-1452
-3608
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-2663
SELECT + col0 * col0 DIV col1 FROM tab2 AS cor0
----
1
103
367
skipif mysql # not compatible
query I rowsort label-2663
SELECT + col0 * col0 / col1 FROM tab2 AS cor0
----
1
103
367
query I rowsort
SELECT + col0 + ( - col0 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT + cor0.col2 * + col2 + + 54 FROM tab0 AS cor0
----
1143
55
6778
query I rowsort
SELECT DISTINCT + + cor0.col2 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT + col1 * 56 - - col1 * col0 FROM tab1
----
1200
1534
1768
query I rowsort
SELECT col2 - cor0.col2 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + cor0.col0 - 21 FROM tab2 AS cor0
----
-14
57
58
query I rowsort
SELECT - col2 - ( ( + col1 ) ) FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT + - col0 * - 63 AS col1 FROM tab2 AS cor0
----
441
4914
4977
query I rowsort
SELECT - col1 * col1 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT + ( + cor0.col0 ) + col0 + col2 FROM tab1 AS cor0
----
185
256
60
query I rowsort
SELECT + 32 * - col0 + col0 * + ( col1 ) + - col1 AS col2 FROM tab0 AS cor0
----
1210
2178
5160
query I rowsort
SELECT - 61 * + col1 + col0 FROM tab0 AS cor0
----
-5222
-5462
-5882
query I rowsort
SELECT + ( + ( + col2 ) ) + col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ( 37 ) FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to b8def841e97863779a391f3a05d3eb92
onlyif mysql # use DIV operator for integer division
query I rowsort label-2678
SELECT ( col0 ) DIV + col0 + + col2 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-2678
SELECT ( col0 ) / + col0 + + col2 FROM tab2 AS cor0
----
27
28
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 + col1 col1 FROM tab2 cor0
----
-17
-3
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-2680
SELECT - 86 DIV - cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 596e8a354aabadf4013db262639c7c57
skipif mysql # not compatible
query I rowsort label-2680
SELECT - 86 / - cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 596e8a354aabadf4013db262639c7c57
query I rowsort
SELECT DISTINCT + 4 * col2 AS col0 FROM tab0
----
132
328
4
query I rowsort
SELECT ALL - 22 * + col2 AS col2 FROM tab2 AS cor0
----
-572
-594
-836
query I rowsort
SELECT - 84 * - col2 FROM tab0 AS cor0
----
2772
6888
84
query I rowsort
SELECT - 61 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 80442609e72d8c1c7f1c6175b1d2eac8
query I rowsort
SELECT + cor0.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT + + col1 + - col1 AS col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT DISTINCT + 29 AS col2 FROM tab2
----
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 col0 FROM tab1 AS cor0
----
88
88
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) col2 FROM tab1 cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 * + 43 + col1 col1 FROM tab0 AS cor0
----
-677
-683
-688
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2692
SELECT DISTINCT cor0.col2 + + col2 + + CAST( - 55 + col0 AS SIGNED ) FROM tab2 AS cor0
----
100
6
75
skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT cor0.col2 + + col2 + + CAST ( - 55 + col0 AS INTEGER ) FROM tab2 AS cor0
----
100
6
75
query I rowsort
SELECT ALL + col0 - col2 AS col1 FROM tab0 AS cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL - + 88 + col2 FROM tab1 cor0
----
-31
-34
8
query I rowsort
SELECT - tab0.col1 - col0 * col2 AS col0 FROM tab0
----
-132
-7389
-878
query I rowsort
SELECT - 87 - col2 AS col2 FROM tab0
----
-120
-169
-88
query I rowsort
SELECT + 45 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT ( 26 ) AS col0 FROM tab1
----
26
26
26
query I rowsort
SELECT DISTINCT 65 AS col0 FROM tab2
----
65
query I rowsort
SELECT col0 + + col2 * col1 AS col1 FROM tab1
----
1328
1407
634
query I rowsort
SELECT ALL col0 * 46 * cor0.col1 AS col2 FROM tab0 AS cor0
----
156170
372554
94944
query I rowsort
SELECT ALL - + col0 * + ( + col1 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT col1 + 3 FROM tab2 AS cor0
----
20
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2705
SELECT DISTINCT + ( col2 ) DIV + 17 FROM tab2
----
1
2
skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT + ( col2 ) / + 17 FROM tab2
----
1
2
query I rowsort
SELECT DISTINCT - 41 AS col1 FROM tab0, tab1, tab0 AS cor0
----
-41
onlyif mysql # use DIV operator for integer division
query I rowsort label-2707
SELECT + col0 * col1 + - tab0.col2 * col2 DIV col2 FROM tab0
----
2031
3394
8017
skipif mysql # not compatible
query I rowsort label-2707
SELECT + col0 * col1 + - tab0.col2 * col2 / col2 FROM tab0
----
2031
3394
8017
query I rowsort
SELECT - - col2 + - ( - 1 * - col1 ) AS col0 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT - col1 + - 63 AS col2 FROM tab0 cor0
----
-149
-154
-160
query I rowsort
SELECT 97 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
query I rowsort
SELECT - - 11 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT - + col1 + cor0.col0 * col1 AS col2 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT + col2 + ( col2 ) + + tab2.col0 FROM tab2
----
130
155
61
query I rowsort
SELECT DISTINCT + - col0 + 1 FROM tab0 AS cor0
----
-23
-34
-88
query I rowsort
SELECT ALL + + 64 + - ( col0 ) AS col1 FROM tab0 cor0
----
-25
29
40
query I rowsort
SELECT - col1 * + col1 + col1 AS col1 FROM tab2 AS cor0
----
-272
-3422
-930
onlyif mysql # use DIV operator for integer division
query I rowsort label-2717
SELECT DISTINCT ( col1 ) + - col1 DIV - CAST( - cor0.col2 * col0 AS SIGNED ) FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-2717
SELECT DISTINCT ( col1 ) + - col1 / - CAST ( - cor0.col2 * col0 AS INTEGER ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - cor0.col1 + - col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT ALL + col2 * - col0 + + ( - tab0.col1 ) * col1 - + ( + tab0.col1 ) AS col1 FROM tab0
----
-15670
-8274
-9541
query I rowsort
SELECT - col0 + - tab1.col1 + col0 * - col2 * + ( col0 ) AS col1 FROM tab1
----
-233546
-515
-614493
onlyif mysql # use DIV operator for integer division
query I rowsort label-2721
SELECT DISTINCT - col1 * col1 + + col2 DIV col1 + col0 FROM tab1
----
-31
-671
-82
skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT - col1 * col1 + + col2 / col1 + col0 FROM tab1
----
-31
-671
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2722
SELECT ALL - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col0 * 78 FROM tab0 cor0
----
-1872
-2730
-6942
query I rowsort
SELECT ALL 72 * + col1 AS col1 FROM tab2 AS cor0
----
1224
2232
4248
query I rowsort
SELECT DISTINCT - 51 AS col2 FROM tab1, tab1 AS cor0
----
-51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2726
SELECT ALL + CAST( - col0 AS SIGNED ) + - col0 * + cor0.col1 FROM tab2 AS cor0
----
-1422
-224
-4680
skipif mysql # not compatible
query I rowsort label-2726
SELECT ALL + CAST ( - col0 AS INTEGER ) + - col0 * + cor0.col1 FROM tab2 AS cor0
----
-1422
-224
-4680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2727
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + col0 * + col0 * col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2727
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + col0 * + col0 * col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + 90 * + col2 + cor0.col1 FROM tab1 AS cor0
----
4886
5140
8653
query I rowsort
SELECT DISTINCT cor0.col2 + col0 AS col1 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - 70 * - col0 FROM tab0 AS cor0
----
1680
2450
6230
query I rowsort
SELECT DISTINCT - + 8 * - col2 * + col0 FROM tab0 AS cor0
----
280
58384
6336
onlyif mysql # use DIV operator for integer division
query I rowsort label-2732
SELECT col0 DIV col0 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2732
SELECT col0 / col0 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + col1 + 84 AS col1 FROM tab2 AS cor0
----
101
115
143
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2734
SELECT - + CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2734
SELECT - + CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - 33 AS col1 FROM tab2 AS cor0
----
-33
query I rowsort
SELECT DISTINCT - 85 AS col0 FROM tab0 AS cor0
----
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-2737
SELECT col2 DIV - col1 + col2 AS col1 FROM tab2 AS cor0
----
26
27
36
skipif mysql # not compatible
query I rowsort label-2737
SELECT col2 / - col1 + col2 AS col1 FROM tab2 AS cor0
----
26
27
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 col1 FROM tab0
----
83
query I rowsort
SELECT 90 * col0 + col2 FROM tab1
----
324
5817
7296
query I rowsort
SELECT cor0.col0 + + col1 * 69 FROM tab1 AS cor0
----
1797
754
977
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 col0 * col0 * - col1 - - col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-104754
-1302
-354354
query I rowsort
SELECT DISTINCT + col1 + col2 - col0 FROM tab1 AS cor0
----
29
3
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2744
SELECT ALL col0 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL col0 * + CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - cor0.col2 + + col1 AS col2 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-2746
SELECT DISTINCT + + col2 DIV + col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2746
SELECT DISTINCT + + col2 / + col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT cor0.col2 + - ( col2 ) AS col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2748
SELECT ALL + col0 DIV + 81 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL + col0 / + 81 AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2749
SELECT - + col0 DIV + 62 + - col0 AS col2 FROM tab2 AS cor0
----
-7
-79
-80
skipif mysql # not compatible
query I rowsort label-2749
SELECT - + col0 / + 62 + - col0 AS col2 FROM tab2 AS cor0
----
-7
-79
-80
query I rowsort
SELECT ALL + + cor0.col2 + + 40 AS col2 FROM tab2 AS cor0
----
66
67
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2751
SELECT ALL + cor0.col1 * col2 * + CAST( NULL AS SIGNED ) + col0 * col0 + - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL + cor0.col1 * col2 * + CAST ( NULL AS INTEGER ) + col0 * col0 + - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - 13 - - col0 AS col0 FROM tab1 cor0
----
16
77
93
query I rowsort
SELECT - - col0 * col0 - cor0.col2 FROM tab0 cor0
----
1224
543
7839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 * - 72 col1 FROM tab1 AS cor0
----
-1846
-710
-923
onlyif mysql # use DIV operator for integer division
query I rowsort label-2755
SELECT + 76 + col1 DIV - ( ( - col1 ) + col0 ) AS col1 FROM tab0 cor0
----
121
77
77
skipif mysql # not compatible
query I rowsort label-2755
SELECT + 76 + col1 / - ( ( - col1 ) + col0 ) AS col1 FROM tab0 cor0
----
121
77
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col2 col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT cor0.col2 + col1 + + col0 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT ALL + 46 AS col0 FROM tab0 AS cor0
----
46
46
46
query I rowsort
SELECT - 2 AS col1 FROM tab1 cor0
----
-2
-2
-2
query I rowsort
SELECT col0 + + cor0.col0 * ( + col1 ) AS col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT - + ( + col0 ) * - ( ( col0 ) * + 10 ) + col1 FROM tab0 AS cor0
----
12347
5846
79301
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4
query I rowsort
SELECT ALL - tab1.col1 + col0 + tab1.col0 FROM tab1
----
-20
118
147
query I rowsort
SELECT DISTINCT col2 + - 44 FROM tab2
----
-17
-18
-6
query I rowsort
SELECT - + col2 + + col2 - ( col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + col2 * col0 + 82 FROM tab2 AS cor0
----
2110
271
3084
onlyif mysql # use DIV operator for integer division
query I rowsort label-2767
SELECT - 68 DIV col1 + col2 FROM tab1 AS cor0
----
51
52
91
skipif mysql # not compatible
query I rowsort label-2767
SELECT - 68 / col1 + col2 FROM tab1 AS cor0
----
51
52
91
query I rowsort
SELECT ALL 8 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2769
SELECT + col2 * + col1 + col2 DIV col0 AS col2 FROM tab0 AS cor0
----
2839
7462
97
skipif mysql # not compatible
query I rowsort label-2769
SELECT + col2 * + col1 + col2 / col0 AS col2 FROM tab0 AS cor0
----
2839
7462
97
query I rowsort
SELECT DISTINCT 25 + + col2 FROM tab1
----
121
79
82
query I rowsort
SELECT ALL + 51 FROM tab0, tab0 cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT + tab0.col2 * col1 - - col1 AS col0 FROM tab0
----
194
2924
7553
query I rowsort
SELECT + ( 73 ) AS col0 FROM tab0 AS cor0
----
73
73
73
query I rowsort
SELECT + cor0.col2 * 99 FROM tab0 AS cor0
----
3267
8118
99
query I rowsort
SELECT col2 + 98 FROM tab0
----
131
180
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-2776
SELECT + col1 + + col2 DIV - col2 FROM tab0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-2776
SELECT + col1 + + col2 / - col2 FROM tab0
----
85
90
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2777
SELECT ALL - col0 DIV + 14 FROM tab0
----
-1
-2
-6
skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL - col0 / + 14 FROM tab0
----
-1
-2
-6
query I rowsort
SELECT + 65 + + col1 * - col2 * + 58 AS col0 FROM tab2
----
-37403
-48481
-88907
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 ) + + col1 * col0 col2 FROM tab1
----
576
75
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-2780
SELECT col0 DIV + ( col0 ) AS col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2780
SELECT col0 / + ( col0 ) AS col1 FROM tab1
----
1
1
1
query I rowsort
SELECT - + col2 * col1 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
10982
25947
90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 75 col1 FROM tab1 AS cor0
----
-75
query I rowsort
SELECT DISTINCT - 74 * col1 FROM tab2 AS cor0
----
-1258
-2294
-4366
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 col2 FROM tab1 cor0
----
-23
-23
-23
query I rowsort
SELECT - + 23 + ( - col0 ) FROM tab0 AS cor0
----
-112
-47
-58
query I rowsort
SELECT ALL 54 * + cor0.col1 FROM tab0 AS cor0
----
4644
4914
5238
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 cor1
----
64
query I rowsort
SELECT ALL + col1 * - 83 FROM tab2
----
-1411
-2573
-4897
query I rowsort
SELECT ALL + col0 * ( - col2 ) * col0 AS col1 FROM tab2
----
-1323
-158184
-237158
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to 59ca7c96f3955e014bebd08b5442edff
query I rowsort
SELECT + col2 * - 12 AS col2 FROM tab2 AS cor0
----
-312
-324
-456
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2792
SELECT + CAST( - 72 AS SIGNED ) FROM tab2 cor0
----
-72
-72
-72
skipif mysql # not compatible
query I rowsort label-2792
SELECT + CAST ( - 72 AS INTEGER ) FROM tab2 cor0
----
-72
-72
-72
query I rowsort
SELECT + + 4 + col0 AS col0 FROM tab1 AS cor0
----
68
7
84
query I rowsort
SELECT DISTINCT - 32 AS col1 FROM tab1, tab0 AS cor0
----
-32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 22 + 60 * col0 col2 FROM tab1 AS cor0
----
4060
5086
752
query I rowsort
SELECT + - col2 + + ( col2 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + + col2 * + col1 + 10 FROM tab2 cor0
----
1544
656
847
onlyif mysql # use DIV operator for integer division
query I rowsort label-2798
SELECT + - col0 * + col0 DIV cor0.col0 AS col2 FROM tab0 cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-2798
SELECT + - col0 * + col0 / cor0.col0 AS col2 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT - 13 * - col2 AS col2 FROM tab2 AS cor0
----
338
351
494
query I rowsort
SELECT 49 + - ( col1 ) FROM tab0 AS cor0
----
-37
-42
-48
onlyif mysql # use DIV operator for integer division
query I rowsort label-2801
SELECT + - col0 DIV + 58 FROM tab2 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-2801
SELECT + - col0 / + 58 FROM tab2 AS cor0
----
-1
-1
0
query I rowsort
SELECT - ( + 39 ) * col1 AS col2 FROM tab2 AS cor0
----
-1209
-2301
-663
query I rowsort
SELECT col2 * col1 - col2 FROM tab1
----
1152
1350
513
query I rowsort
SELECT DISTINCT tab2.col1 * col2 + - col0 AS col2 FROM tab2
----
1456
567
830
query I rowsort
SELECT col2 * 15 AS col1 FROM tab1
----
1440
810
855
query I rowsort
SELECT - col1 * col0 + + ( - col0 ) * col0 AS col0 FROM tab1 AS cor0
----
-4736
-7440
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-2807
SELECT col1 DIV - col0 + - col2 FROM tab0 AS cor0
----
-3
-36
-83
skipif mysql # not compatible
query I rowsort label-2807
SELECT col1 / - col0 + - col2 FROM tab0 AS cor0
----
-3
-36
-83
query I rowsort
SELECT - col1 * - cor0.col1 - + col2 AS col1 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT DISTINCT + cor0.col0 * + ( col1 ) FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - - col0 * + 11 FROM tab2 AS cor0
----
77
858
869
onlyif mysql # use DIV operator for integer division
query I rowsort label-2811
SELECT DISTINCT + col2 + - col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2811
SELECT DISTINCT + col2 + - col0 / - col1 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + - 72 * + 50 + - col1 + - col2 FROM tab2 AS cor0
----
-3655
-3658
-3685
query I rowsort
SELECT + ( col1 * + col1 ) + + 39 FROM tab0
----
7435
8320
9448
query I rowsort
SELECT ALL col0 + + col1 * col1 * ( - 62 ) FROM tab1 AS cor0
----
-10398
-41909
-6136
onlyif mysql # use DIV operator for integer division
query I rowsort label-2815
SELECT DISTINCT - 43 + cor0.col2 DIV + col2 FROM tab1 AS cor0
----
-42
skipif mysql # not compatible
query I rowsort label-2815
SELECT DISTINCT - 43 + cor0.col2 / + col2 FROM tab1 AS cor0
----
-42
query I rowsort
SELECT col0 + 41 + + col0 FROM tab1 AS cor0
----
169
201
47
query I rowsort
SELECT + 39 * + col0 FROM tab1 cor0
----
117
2496
3120
query I rowsort
SELECT DISTINCT - col0 * ( + col1 ) FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + 39 + 58 AS col1 FROM tab0 AS cor0
----
97
97
97
query I rowsort
SELECT ALL - 14 * col2 * + ( ( + col0 ) ) - + col1 * + col0 AS col0 FROM tab0
----
-110271
-13152
-3885
query I rowsort
SELECT ALL + 6 + col1 FROM tab1 cor0
----
16
19
32
query I rowsort
SELECT - cor0.col2 * + cor0.col0 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 91af1085835c3ef572d2dbd91480f658
query I rowsort
SELECT DISTINCT + + col1 * + 13 AS col0 FROM tab1 AS cor0
----
130
169
338
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2824
SELECT ALL + cor0.col2 + CAST( NULL AS SIGNED ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL + cor0.col2 + CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * ( col0 ) + + cor0.col1 + + col2 FROM tab0 AS cor0
----
2183
3493
8272
onlyif mysql # use DIV operator for integer division
query I rowsort label-2826
SELECT + col0 - + 30 DIV - col2 FROM tab0 AS cor0
----
24
65
89
skipif mysql # not compatible
query I rowsort label-2826
SELECT + col0 - + 30 / - col2 FROM tab0 AS cor0
----
24
65
89
query I rowsort
SELECT ALL + col1 + - col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-2828
SELECT ALL + col1 DIV + col0 AS col1 FROM tab0 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL + col1 / + col0 AS col1 FROM tab0 cor0
----
1
2
3
query I rowsort
SELECT DISTINCT + col0 + + col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL col2 * ( + col2 ) FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL - - cor0.col2 * col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + col2 + 61 * + col0 * col1 AS col0 FROM tab0 AS cor0
----
125937
207096
494121
query I rowsort
SELECT DISTINCT col0 * - col0 + col1 * col0 + + ( col1 ) AS col2 FROM tab1 AS cor0
----
-3446
-5347
95
query I rowsort
SELECT ALL - + cor0.col2 + + col1 AS col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT + col2 * - col1 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL - + col2 * ( 51 ) AS col1 FROM tab2 AS cor0
----
-1326
-1377
-1938
onlyif mysql # use DIV operator for integer division
query I rowsort label-2837
SELECT ALL + col2 DIV col0 - col2 FROM tab0 AS cor0
----
-1
-32
-82
skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL + col2 / col0 - col2 FROM tab0 AS cor0
----
-1
-32
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2838
SELECT + cor0.col0 DIV - 25 + + 38 * col1 AS col2 FROM tab2 AS cor0
----
1178
2239
643
skipif mysql # not compatible
query I rowsort label-2838
SELECT + cor0.col0 / - 25 + + 38 * col1 AS col2 FROM tab2 AS cor0
----
1178
2239
643
query I rowsort
SELECT - 19 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662
query I rowsort
SELECT + 38 * - tab0.col1 AS col0 FROM tab0
----
-3268
-3458
-3686
query I rowsort
SELECT ( tab0.col0 ) * - tab0.col2 AS col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT cor0.col2 - + ( - col1 * + col1 ) AS col2 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 - - col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL - - col0 * col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL - col2 * 28 FROM tab2 AS cor0
----
-1064
-728
-756
query I rowsort
SELECT - + col1 - - ( + cor0.col2 ) * + col1 FROM tab1 cor0
----
1235
1378
560
query I rowsort
SELECT ALL - - col1 + - 73 * + col0 FROM tab1 AS cor0
----
-193
-4662
-5827
query I rowsort
SELECT ALL col2 + ( - col1 ) FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT ALL + tab0.col0 - col0 AS col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2850
SELECT ALL + col2 + col1 DIV col1 AS col0 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL + col2 + col1 / col1 AS col0 FROM tab0
----
2
34
83
query I rowsort
SELECT col2 * - col2 + - col0 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT 10 + - col2 AS col2 FROM tab2 AS cor0
----
-16
-17
-28
query I rowsort
SELECT DISTINCT - col2 * - tab2.col2 + + col2 AS col0 FROM tab2
----
1482
702
756
query I rowsort
SELECT 44 * + col0 AS col0 FROM tab0 AS cor0
----
1056
1540
3916
query I rowsort
SELECT ALL + tab2.col1 * + 74 + col1 FROM tab2
----
1275
2325
4425
query I rowsort
SELECT ALL - 86 + col0 * ( 39 ) FROM tab1 AS cor0
----
2410
3034
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 48 col2 FROM tab0, tab2, tab1 AS cor0, tab1
----
-48
query I rowsort
SELECT tab1.col0 * + tab1.col0 + col2 FROM tab1
----
4153
63
6496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 + col1 col1 FROM tab2
----
137
38
96
query I rowsort
SELECT tab1.col0 + 45 FROM tab1
----
109
125
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2861
SELECT DISTINCT - 15 * - 94 * + col2 + CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT - 15 * - 94 * + col2 + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
query I rowsort
SELECT ( ( col2 ) * col1 ) AS col0 FROM tab1
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) + - cor0.col2 * col2 col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT ALL + 63 * col0 AS col2 FROM tab2 AS cor0
----
441
4914
4977
query I rowsort
SELECT ALL col2 + - col2 * col0 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT col0 * tab2.col1 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT + col1 * col2 + col2 * + col1 AS col0 FROM tab0 AS cor0
----
14924
194
5676
query I rowsort
SELECT - + cor0.col1 * - col0 + - col2 FROM tab1 AS cor0
----
24
583
944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + col0 col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL - col0 + col2 + col2 FROM tab2 AS cor0
----
-26
-3
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-2871
SELECT - tab0.col1 DIV col0 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-2871
SELECT - tab0.col1 / col0 FROM tab0
----
-1
-2
-3
query I rowsort
SELECT ALL col0 * tab0.col1 + col2 AS col2 FROM tab0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 - - col0 col2 FROM tab0 AS cor0
----
196
229
271
onlyif mysql # use DIV operator for integer division
query I rowsort label-2874
SELECT - - cor0.col0 + - cor0.col0 DIV - col0 - - cor0.col0 AS col2 FROM tab1 AS cor0
----
129
161
7
skipif mysql # not compatible
query I rowsort label-2874
SELECT - - cor0.col0 + - cor0.col0 / - col0 - - cor0.col0 AS col2 FROM tab1 AS cor0
----
129
161
7
query I rowsort
SELECT ALL 92 * col2 AS col0 FROM tab0 AS cor0
----
3036
7544
92
query I rowsort
SELECT 14 + col0 * col2 * col1 FROM tab2 AS cor0
----
119666
51048
5873
query I rowsort
SELECT DISTINCT - 72 * col1 FROM tab1 AS cor0
----
-1872
-720
-936
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - col0 col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL + + 32 * col1 + col0 AS col0 FROM tab2 AS cor0
----
1966
623
999
query I rowsort
SELECT DISTINCT + - cor0.col1 + cor0.col1 AS col0 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL col0 * cor0.col2 * - col0 AS col1 FROM tab2 cor0
----
-1323
-158184
-237158
query I rowsort
SELECT + - 74 * col2 * col0 FROM tab0 AS cor0
----
-2590
-540052
-58608
query I rowsort
SELECT col1 + col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * + col1 + - col0 * col2 * col0 col1 FROM tab2 cor0
----
-159718
-2160
-237804
query III rowsort
SELECT * FROM tab0 WHERE NOT col1 >= ( NULL )
----
query I rowsort
SELECT col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN col2 AND + col0 / col1
----
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( col1 + col0 + col1 * + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2888
SELECT ALL col2 - + col0 * col0 DIV + col1 FROM tab1
----
-352
-396
54
skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL col2 - + col0 * col0 / + col1 FROM tab1
----
-352
-396
54
query I rowsort
SELECT col1 + - col1 * + col0 * col2 FROM tab2 WHERE ( NULL ) NOT IN ( col0 * col2 / col1 + + tab2.col1 / col0 + col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col1 col0 FROM tab2
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - col0 col1 FROM tab0 WHERE NOT col1 * col0 BETWEEN NULL AND ( - col2 )
----
0
query I rowsort
SELECT DISTINCT col1 + + col2 * - col0 * col1 AS col0 FROM tab1
----
-36470
-4186
-99827
query I rowsort
SELECT DISTINCT col2 * - col0 * col0 + col2 * col2 FROM tab2
----
-157508
-235714
-594
query I rowsort
SELECT tab2.col1 - + col2 AS col2 FROM tab2
----
-21
33
4
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = col0 * + col1
----
query III rowsort
SELECT * FROM tab2 WHERE - col0 NOT IN ( col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 - col0 * col1 * - col0 col2 FROM tab0
----
118826
49569
720893
query I rowsort
SELECT col0 - - col0 AS col2 FROM tab1
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-2899
SELECT + col1 + + col0 + + col0 DIV + col2 FROM tab0
----
110
167
181
skipif mysql # not compatible
query I rowsort label-2899
SELECT + col1 + + col0 + + col0 / + col2 FROM tab0
----
110
167
181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - tab0.col1 col0 FROM tab0
----
-172
-182
-194
query I rowsort
SELECT col2 + - col0 + - col0 FROM tab0
----
-15
-69
-96
query I rowsort
SELECT + col1 * - col1 + cor0.col1 FROM tab1 cor0
----
-156
-650
-90
query I rowsort
SELECT ALL cor0.col2 + - cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5b9ded363f55d1d4bbc85491d2b84046
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 col0 FROM tab2 WHERE + col2 * col0 NOT IN ( + col1 )
----
104
117
34
query I rowsort
SELECT ALL + col0 * col1 + - col2 * - col0 FROM tab1
----
240
4288
8720
query III rowsort
SELECT * FROM tab0 WHERE - col1 * + col2 + - col2 >= NULL
----
query I rowsort
SELECT DISTINCT - col0 * col0 + col1 AS col1 FROM tab0
----
-1128
-490
-7830
query I rowsort
SELECT ALL col1 + col0 * col1 * - col0 AS col2 FROM tab1
----
-208
-40950
-83187
query I rowsort
SELECT + col0 + cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT - col0 * col2 + - cor0.col0 FROM tab1 cor0
----
-165
-3712
-7760
query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab0, tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - col0 + col2 )
----
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) > ( + cor0.col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 col2 FROM tab2 AS cor0
----
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 col2 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2916
SELECT ALL col0 + + col0 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL col0 + + col0 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 col1 FROM tab2 AS cor0
----
49
query I rowsort
SELECT ALL + + 22 * col0 FROM tab1 AS cor0
----
1408
1760
66
query I rowsort
SELECT DISTINCT + 84 AS col1 FROM tab2, tab1 cor0
----
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-2920
SELECT - col2 * + tab1.col2 + col1 DIV ( col0 ) FROM tab1
----
-2908
-3249
-9216
skipif mysql # not compatible
query I rowsort label-2920
SELECT - col2 * + tab1.col2 + col1 / ( col0 ) FROM tab1
----
-2908
-3249
-9216
query I rowsort
SELECT DISTINCT + col2 + tab1.col0 AS col1 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL - col1 + - col1 AS col1 FROM tab1
----
-20
-26
-52
query I rowsort
SELECT DISTINCT - - col1 * + col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + col2 + col1 * col1 AS col1 FROM tab1 cor0
----
157
265
730
query I rowsort
SELECT - col2 + - col1 - + 29 FROM tab0 cor0
----
-127
-148
-202
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 + cor0.col0 col2 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT ALL + 65 * col0 FROM tab1 AS cor0
----
195
4160
5200
onlyif mysql # use DIV operator for integer division
query I rowsort label-2928
SELECT DISTINCT - col2 DIV - col0 col1 FROM tab1
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2928
SELECT DISTINCT - col2 / - col0 col1 FROM tab1
----
0
1
18
query I rowsort
SELECT - 8 FROM tab1, tab1 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e
query I rowsort
SELECT DISTINCT col2 * - ( col0 ) * col2 FROM tab2
----
-114076
-5103
-52728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 60 col2 FROM tab0 AS cor0
----
-60
-60
-60
query I rowsort
SELECT ALL - 59 FROM tab1 cor0
----
-59
-59
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2933
SELECT CAST( NULL AS SIGNED ) + - 12 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2933
SELECT CAST ( NULL AS INTEGER ) + - 12 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( - cor0.col1 ) * - cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL 78 * - 17 * cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to aa80fd97065ff21882b94234f6e34d33
query I rowsort
SELECT DISTINCT ( col0 ) + cor0.col2 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL ( + col2 ) * - col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + - 73 * col1 FROM tab2 AS cor0
----
-1241
-2263
-4307
query I rowsort
SELECT ALL cor0.col1 + ( - 98 ) FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 923bd249401d824fbbfb5bef115a8e30
query I rowsort
SELECT ALL + col2 * - ( - col1 ) + col2 AS col0 FROM tab1 cor0
----
1344
1458
627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2941
SELECT ALL CAST( NULL AS SIGNED ) * + tab2.col0 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL CAST ( NULL AS INTEGER ) * + tab2.col0 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * col0 * col2 - col1 col0 FROM tab2 AS cor0
----
1292
158125
237141
query I rowsort
SELECT DISTINCT - + col0 - + 23 FROM tab1 AS cor0
----
-103
-26
-87
query I rowsort
SELECT ALL ( 66 ) FROM tab0 AS cor0
----
66
66
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - col1 ) col0 FROM tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 * 14 col1 FROM tab0 AS cor0
----
-1246
-336
-490
query I rowsort
SELECT ALL col2 - 37 FROM tab2 AS cor0
----
-10
-11
1
query I rowsort
SELECT - - 53 * + 63 FROM tab0 AS cor0
----
3339
3339
3339
query I rowsort
SELECT DISTINCT - - col2 - col0 * + col0 FROM tab2 AS cor0
----
-22
-6058
-6203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + cor0.col1 * + col1 + - col2 col1 FROM tab1 cor0
----
-21
-7
619
query I rowsort
SELECT - col1 + + 47 AS col1 FROM tab0 AS cor0
----
-39
-44
-50
query I rowsort
SELECT - 63 * + col2 AS col2 FROM tab0 cor0
----
-2079
-5166
-63
query I rowsort
SELECT ALL - - cor0.col0 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL + ( + col1 ) + ( + col2 ) FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - col0 + + cor0.col1 * + 15 AS col0 FROM tab0 cor0
----
1266
1276
1420
query I rowsort
SELECT ALL 16 * col0 + + col2 - col0 * + col0 * 58 FROM tab0 cor0
----
-32991
-457912
-70489
query I rowsort
SELECT DISTINCT + 53 + col1 FROM tab2 AS cor0
----
112
70
84
query I rowsort
SELECT ALL - col2 + col0 * + col0 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT ( col0 ) + + col0 AS col0 FROM tab2
----
14
156
158
query I rowsort
SELECT DISTINCT - + col1 * + col2 + col2 FROM tab2 AS cor0
----
-1508
-608
-810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ALL col0 * - col2 - col1 AS col1 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT - col2 * 97 AS col0 FROM tab2 AS cor0
----
-2522
-2619
-3686
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2964
SELECT + + col0 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2964
SELECT + + col0 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 + cor0.col2 * + 84 FROM tab1 AS cor0
----
4562
4798
8077
onlyif mysql # use DIV operator for integer division
query I rowsort label-2966
SELECT DISTINCT + col0 DIV ( col1 ) FROM tab1 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-2966
SELECT DISTINCT + col0 / ( col1 ) FROM tab1 AS cor0
----
0
6
query I rowsort
SELECT + cor0.col2 * ( - 78 * col1 ) AS col2 FROM tab2 AS cor0
----
-119652
-50388
-65286
query I rowsort
SELECT 45 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca
query I rowsort
SELECT ALL + ( - col0 ) - - 18 FROM tab1
----
-46
-62
15
query I rowsort
SELECT DISTINCT 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-2971
SELECT DISTINCT + col2 DIV + col1 AS col1 FROM tab1 cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT + col2 / + col1 AS col1 FROM tab1 cor0
----
2
5
7
query I rowsort
SELECT + - col0 * 97 FROM tab2 AS cor0
----
-679
-7566
-7663
query I rowsort
SELECT DISTINCT + + cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + col0 * ( col0 ) + + col2 * col1 AS col1 FROM tab1 AS cor0
----
1413
4666
7648
query I rowsort
SELECT DISTINCT - 24 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
-24
query I rowsort
SELECT - col0 * - 69 FROM tab1 AS cor0
----
207
4416
5520
query I rowsort
SELECT ALL - col2 * col2 + - 71 AS col0 FROM tab1 AS cor0
----
-2987
-3320
-9287
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 col1 FROM tab0, tab1 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2979
SELECT ALL 44 DIV + col0 AS col1 FROM tab0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL 44 / + col0 AS col1 FROM tab0
----
0
1
1
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab0 AS cor0 WHERE NULL > tab1.col0
----
query I rowsort
SELECT DISTINCT - col0 * 61 AS col2 FROM tab1 AS cor0
----
-183
-3904
-4880
query I rowsort
SELECT - cor0.col2 + - col0 AS col2 FROM tab0 AS cor0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( + col2 ) col2 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-2984
SELECT - col1 DIV + ( + 4 + cor0.col2 ) AS col0 FROM tab0 AS cor0
----
-1
-19
-2
skipif mysql # not compatible
query I rowsort label-2984
SELECT - col1 / + ( + 4 + cor0.col2 ) AS col0 FROM tab0 AS cor0
----
-1
-19
-2
onlyif mysql # use DIV operator for integer division
query I rowsort label-2985
SELECT + col0 * col1 DIV 23 FROM tab1 AS cor0
----
27
3
45
skipif mysql # not compatible
query I rowsort label-2985
SELECT + col0 * col1 / 23 FROM tab1 AS cor0
----
27
3
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-2986
SELECT + - cor0.col1 * CAST( - col0 AS SIGNED ) DIV cor0.col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-2986
SELECT + - cor0.col1 * CAST ( - col0 AS INTEGER ) / cor0.col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + 94 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT + 33 * ( - col1 ) + ( + col2 + col0 ) AS col1 FROM tab2 cor0
----
-1843
-444
-989
query I rowsort
SELECT DISTINCT 97 FROM tab0 AS cor0
----
97
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-2991
SELECT ALL - - col1 DIV 68 + col1 + col2 AS col0 FROM tab1 AS cor0
----
109
67
80
skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL - - col1 / 68 + col1 + col2 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - - ( + col0 ) * + col2 - - col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT + + ( col2 ) AS col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT + ( - col1 ) + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 93 * - col2 + col0 col2 FROM tab1 AS cor0
----
-5022
-5301
-8928
query I rowsort
SELECT ALL + + col2 + ( - col2 * - col1 ) FROM tab2 AS cor0
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 48 col1 FROM tab0 AS cor0
----
-38
-43
-49
query I rowsort
SELECT ALL + 4 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-104
-108
-152
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col2 col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT - - col2 + - 42 AS col1 FROM tab2 cor0
----
-15
-16
-4
onlyif mysql # use DIV operator for integer division
query I rowsort label-3001
SELECT ALL - col1 + - ( col1 ) DIV col0 FROM tab2 AS cor0
----
-17
-35
-59
skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL - col1 + - ( col1 ) / col0 FROM tab2 AS cor0
----
-17
-35
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 * 84 + col0 col0 FROM tab0 AS cor0
----
780
791
845
query I rowsort
SELECT - + col2 * col2 + col1 + cor0.col0 FROM tab0 AS cor0
----
-6544
-979
131
query I rowsort
SELECT + 0 * col1 + ( 19 ) FROM tab0 AS cor0
----
19
19
19
query I rowsort
SELECT ALL - col0 * col0 + + col1 * 84 AS col1 FROM tab0 cor0
----
-277
6648
6923
query I rowsort
SELECT ALL col0 + - ( + col0 ) AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + 89 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0 cor2
----
89
query I rowsort
SELECT + 41 + cor0.col1 FROM tab2 cor0
----
100
58
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 + ( + col2 * - cor0.col2 ) col1 FROM tab2 cor0
----
-2704
-4446
-918
query I rowsort
SELECT - - ( col2 ) + col1 AS col1 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 + col0 col0 FROM tab2 AS cor0
----
-65
6
7
query I rowsort
SELECT DISTINCT + cor0.col2 + col0 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - + col2 + - 50 * - col0 * col1 FROM tab2 AS cor0
----
10823
230074
67112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 col1 FROM tab2
----
63
63
63
query I rowsort
SELECT - col0 + + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-128
-160
-6
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 cor2
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3017
SELECT - CAST( NULL AS DECIMAL ) + + col2 * - col2 + - col2 / col0 col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3017
SELECT - CAST ( NULL AS REAL ) + + col2 * - col2 + - col2 / col0 col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * 84 AS col2 FROM tab0
----
-7224
-7644
-8148
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3019
SELECT + + CAST( NULL AS SIGNED ) * - cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3019
SELECT + + CAST ( NULL AS INTEGER ) * - cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * col0 * - col2 AS col2 FROM tab0 AS cor0
----
1225
19008
649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-3021
SELECT DISTINCT - col2 DIV + 13 FROM tab2 AS cor0
----
-2
skipif mysql # not compatible
query I rowsort label-3021
SELECT DISTINCT - col2 / + 13 FROM tab2 AS cor0
----
-2
query I rowsort
SELECT ALL + col2 * 12 FROM tab1 AS cor0
----
1152
648
684
query I rowsort
SELECT + col0 + - 80 AS col0 FROM tab2 AS cor0
----
-1
-2
-73
query I rowsort
SELECT + + col1 * - ( + col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3025
SELECT DISTINCT + col1 + + ( cor0.col2 ) * col1 DIV col1 FROM tab2 cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort label-3025
SELECT DISTINCT + col1 + + ( cor0.col2 ) * col1 / col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL - col1 * - cor0.col0 + - cor0.col1 * col2 * 16 FROM tab2 AS cor0
----
-13175
-19942
-8993
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + col2 col2 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT ALL - cor0.col2 + 63 AS col2 FROM tab0 AS cor0
----
-19
30
62
query I rowsort
SELECT DISTINCT - + col2 * 76 - col1 AS col1 FROM tab0 AS cor0
----
-173
-2594
-6323
query I rowsort
SELECT ALL + col1 * + col0 + + 99 * col1 + - 35 AS col0 FROM tab0 cor0
----
10543
12963
17073
query I rowsort
SELECT - ( - cor0.col1 ) * col1 + + 21 FROM tab0 AS cor0
----
7417
8302
9430
query I rowsort
SELECT ALL + + col0 + cor0.col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT 22 AS col0 FROM tab0 AS cor0
----
22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3034
SELECT + col1 * + col0 + - ( + col1 + + col1 * CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3034
SELECT + col1 * + col0 + - ( + col1 + + col1 * CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 36 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e
query I rowsort
SELECT ALL col0 * + col2 + col2 * + col2 FROM tab0 AS cor0
----
14022
1881
36
query I rowsort
SELECT ALL - 74 * + col2 AS col1 FROM tab1 AS cor0
----
-3996
-4218
-7104
query I rowsort
SELECT - 78 * tab2.col1 * col2 - - ( 75 ) FROM tab2
----
-119577
-50313
-65211
query I rowsort
SELECT ( - col2 + - col1 ) FROM tab2
----
-55
-58
-85
query I rowsort
SELECT DISTINCT + ( ( col2 ) ) AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT tab1.col2 FROM tab1, tab2, tab1 AS cor0
----
54
57
96
query I rowsort
SELECT col1 * col2 + - col2 AS col0 FROM tab0
----
2805
7380
96
query I rowsort
SELECT - 99 + - col0 AS col1 FROM tab2
----
-106
-177
-178
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col2 * - col1 col2 FROM tab0
----
132
2862
7551
query I rowsort
SELECT - col0 * - col2 + + col0 AS col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT - + col2 + col1 * + col1 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT - col0 + - col2 + 62 FROM tab2 AS cor0
----
-42
-55
28
query I rowsort
SELECT - tab2.col1 + - col0 * 38 * + tab2.col1 AS col1 FROM tab2
----
-174935
-51051
-8277
query I rowsort
SELECT col0 - col0 * col2 AS col2 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT + cor1.col1 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT + col2 * - col0 * ( + col0 ) AS col1 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT + ( col0 + + col1 ) AS col1 FROM tab2
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3053
SELECT + 80 + cor0.col2 * col1 DIV + 40 col1 FROM tab0 AS cor0
----
150
266
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3053
SELECT + 80 + cor0.col2 * col1 / + 40 col1 FROM tab0 AS cor0
----
150
266
82
query I rowsort
SELECT ALL - 46 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3055
SELECT ALL cor0.col1 * CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL cor0.col1 * CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - col0 + 85 AS col0 FROM tab0 AS cor0
----
-4
50
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-3057
SELECT ALL + col2 DIV col2 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL + col2 / col2 AS col2 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3058
SELECT - - col2 * col1 + col0 + col0 / - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3058
SELECT - - col2 * col1 + col0 + col0 / - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * ( - col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT col0 * - cor0.col2 + col1 + + col0 FROM tab2 AS cor0
----
-151
-1891
-2906
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3061
SELECT ALL + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3062
SELECT 82 DIV + 19 col0 FROM tab1
----
4
4
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3062
SELECT 82 / + 19 col0 FROM tab1
----
4
4
4
query I rowsort
SELECT col1 + 70 AS col0 FROM tab0
----
156
161
167
query I rowsort
SELECT DISTINCT col1 + + 67 * + col0 FROM tab2
----
500
5285
5310
query I rowsort
SELECT ALL - + 72 FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to 95a1a68628dd064d94b4fe1543a3419f
query I rowsort
SELECT DISTINCT - tab2.col2 + - col1 AS col2 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT - col0 + col2 * - col0 * tab1.col2 + - col1 FROM tab1
----
-208010
-737373
-8777
query I rowsort
SELECT ALL - col0 * col0 + + tab0.col0 FROM tab0
----
-1190
-552
-7832
query I rowsort
SELECT DISTINCT + - cor0.col0 * 59 FROM tab0 cor0
----
-1416
-2065
-5251
onlyif mysql # use DIV operator for integer division
query I rowsort label-3070
SELECT ALL 12 DIV col0 FROM tab1 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL 12 / col0 FROM tab1 AS cor0
----
0
0
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-3071
SELECT col1 DIV col0 col2 FROM tab1 AS cor0
----
0
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3071
SELECT col1 / col0 col2 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT ALL + + ( + col2 ) * + col1 + - 77 * + 92 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
236610
588350
7181
query I rowsort
SELECT + ( - 72 ) FROM tab0 AS cor0
----
-72
-72
-72
query I rowsort
SELECT + cor0.col0 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 col2 FROM tab1 AS cor0
----
10
10
10
query I rowsort
SELECT ALL 84 * - col2 * + col2 + 66 * col2 FROM tab1 AS cor0
----
-241380
-269154
-767808
onlyif mysql # use DIV operator for integer division
query I rowsort label-3077
SELECT DISTINCT - + col1 DIV col1 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT - + col1 / col1 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT ALL - col0 + col2 * - cor0.col2 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT + col2 * + col0 + col1 * 44 FROM tab1 AS cor0
----
1306
4088
8252
onlyif mysql # use DIV operator for integer division
query I rowsort label-3080
SELECT - - cor0.col2 DIV col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-3080
SELECT - - cor0.col2 / col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT 89 * col1 + col2 * - col1 * + col2 AS col1 FROM tab1 AS cor0
----
-118651
-31600
-73502
onlyif mysql # use DIV operator for integer division
query I rowsort label-3082
SELECT ALL + - col1 DIV col0 AS col0 FROM tab2 cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL + - col1 / col0 AS col0 FROM tab2 cor0
----
-4
0
0
query I rowsort
SELECT DISTINCT + 38 + + col1 AS col0 FROM tab2 AS cor0
----
55
69
97
query I rowsort
SELECT ALL + 42 + - col0 AS col2 FROM tab1 AS cor0
----
-22
-38
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 * + col0 col2 FROM tab2 AS cor0
----
308
3432
3476
query I rowsort
SELECT + + 11 * col0 * + 27 + - 86 * cor0.col1 * ( + col0 * - col1 ) AS col1 FROM tab0 AS cor0
----
15272472
28331485
63409207
query I rowsort
SELECT DISTINCT + - cor0.col1 * cor0.col1 + ( col2 ) AS col2 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT ALL - 45 * - col2 + + col1 AS col1 FROM tab0 cor0
----
142
1571
3781
query I rowsort
SELECT ALL tab0.col0 + - col1 * - tab0.col1 AS col2 FROM tab0
----
7420
8370
9444
query I rowsort
SELECT + col2 * cor0.col0 * col2 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT col0 + - col2 + - col2 FROM tab1 cor0
----
-105
-112
-50
query I rowsort
SELECT ALL tab0.col0 * - 78 + - col2 - col2 AS col1 FROM tab0
----
-1938
-2732
-7106
query I rowsort
SELECT + col0 + col2 * col0 * + col2 FROM tab2 AS cor0
----
114155
5110
52806
query I rowsort
SELECT + ( col2 ) + - cor0.col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT 85 + cor0.col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
1428
302
4687
query I rowsort
SELECT 47 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
query IIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2, tab1 cor1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3098
SELECT - CAST( NULL AS SIGNED ) + + 87 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3098
SELECT - CAST ( NULL AS INTEGER ) + + 87 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col0 + 10 * cor0.col1 FROM tab2, tab1 AS cor0
----
269
4196
6530
query I rowsort
SELECT 99 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 58 * 0 col0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT col1 - col2 * col0 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ( col1 ) * col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT - ( - 9 ) AS col0 FROM tab2
----
9
9
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + 27 col2 FROM tab2 AS cor0
----
1026
702
729
query I rowsort
SELECT + + col0 - col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + cor0.col1 AS col2 FROM tab0, tab1, tab1 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-3109
SELECT ALL - tab2.col1 DIV + col1 + - col0 AS col0 FROM tab2
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL - tab2.col1 / + col1 + - col0 AS col0 FROM tab2
----
-79
-8
-80
query I rowsort
SELECT DISTINCT col2 + col0 * - col1 FROM tab0
----
-2031
-3394
-8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * col2 col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL + col1 + 94 AS col0 FROM tab2 AS cor0
----
111
125
153
query I rowsort
SELECT DISTINCT col0 * ( + col2 ) * - col0 - col2 FROM tab2 AS cor0
----
-1350
-158210
-237196
query I rowsort
SELECT - + col1 * col2 - col0 AS col0 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT ALL + col2 + - ( 90 ) AS col2 FROM tab0 AS cor0
----
-57
-8
-89
query I rowsort
SELECT - col0 * - col2 + 96 FROM tab0 AS cor0
----
131
7394
888
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3117
SELECT - tab1.col1 * ( ( col2 ) + CAST( NULL AS SIGNED ) ) / col1 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3117
SELECT - tab1.col1 * ( ( col2 ) + CAST ( NULL AS INTEGER ) ) / col1 AS col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3118
SELECT DISTINCT col1 DIV 50 AS col1 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT col1 / 50 AS col1 FROM tab1
----
0
query I rowsort
SELECT ALL tab1.col2 - 29 AS col1 FROM tab1
----
25
28
67
query I rowsort
SELECT ALL + col2 * + col1 * - 15 - col0 * col2 FROM tab1
----
-12198
-21222
-26400
query I rowsort
SELECT DISTINCT - tab0.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3122
SELECT ALL + col2 + CAST( col0 AS SIGNED ) * tab2.col2 - + col1 * col0 AS col0 FROM tab2
----
-1
-2548
1697
skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL + col2 + CAST ( col0 AS INTEGER ) * tab2.col2 - + col1 * col0 AS col0 FROM tab2
----
-1
-2548
1697
query I rowsort
SELECT 18 + 77 FROM tab2
----
95
95
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 + col2 col1 FROM tab1 AS cor0
----
157
265
730
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3125
SELECT CAST( NULL AS DECIMAL ) * col1 * col1 + + 34 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3125
SELECT CAST ( NULL AS REAL ) * col1 * col1 + + 34 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * + col2 + - col0 AS col1 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT ALL - col0 + cor0.col2 * + col0 AS col2 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT + cor0.col0 * + 68 AS col0 FROM tab2 AS cor0
----
476
5304
5372
query I rowsort
SELECT 62 * 30 AS col0 FROM tab1 AS cor0
----
1860
1860
1860
query I rowsort
SELECT DISTINCT + col2 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3131
SELECT - CAST( + col1 AS SIGNED ) * + col0 + ( col1 ) col0 FROM tab2 AS cor0
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3131
SELECT - CAST ( + col1 AS INTEGER ) * + col0 + ( col1 ) col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT ( - 17 ) + - cor0.col1 * 63 FROM tab0 cor0
----
-5435
-5750
-6128
query I rowsort
SELECT - 99 * + cor0.col1 FROM tab0 AS cor0
----
-8514
-9009
-9603
query I rowsort
SELECT + 25 * cor0.col0 AS col1 FROM tab2 AS cor0
----
175
1950
1975
query I rowsort
SELECT ( + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - - 25 AS col2 FROM tab1 AS cor0
----
25
25
25
query I rowsort
SELECT - + col2 + + ( + 58 ) FROM tab2 AS cor0
----
20
31
32
query I rowsort
SELECT DISTINCT col0 * - 43 AS col0 FROM tab0 AS cor0
----
-1032
-1505
-3827
query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT col1 * col2 * - col2 AS col1 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT - col0 * 21 + + col2 + 8 FROM tab1 cor0
----
-1
-1279
-1576
query I rowsort
SELECT - col0 * + col1 + + cor0.col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL - col2 - col2 AS col1 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT DISTINCT - - col1 - + 83 FROM tab0 cor0
----
14
3
8
query I rowsort
SELECT ALL + + cor0.col2 + - 15 AS col2 FROM tab0 AS cor0
----
-14
18
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-3146
SELECT col0 DIV + col2 + + col0 FROM tab0 AS cor0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-3146
SELECT col0 / + col2 + + col0 FROM tab0 AS cor0
----
24
70
90
query I rowsort
SELECT + - 44 AS col1 FROM tab0 AS cor0
----
-44
-44
-44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3148
SELECT - - col1 * cor0.col1 + - col0 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3148
SELECT - - col1 * cor0.col1 + - col0 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 + + ( col1 ) AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - + 21 * + col2 + col2 FROM tab2 AS cor0
----
-520
-540
-760
query I rowsort
SELECT + + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + col2 * col0 + 20 * - col1 FROM tab0 cor0
----
-1905
-928
5478
query I rowsort
SELECT ALL 91 * col1 FROM tab1 AS cor0
----
1183
2366
910
query I rowsort
SELECT DISTINCT ( - col0 ) + - col1 AS col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT ALL - ( ( tab1.col2 ) ) AS col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT col2 * 60 * + col0 AS col1 FROM tab2 cor0
----
11340
121680
180120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3157
SELECT DISTINCT - + cor0.col1 * CAST( NULL AS SIGNED ) + 92 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT - + cor0.col1 * CAST ( NULL AS INTEGER ) + 92 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL cor0.col2 + 46 FROM tab2 AS cor0
----
72
73
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - col2 col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + - 19 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4
onlyif mysql # use DIV operator for integer division
query I rowsort label-3161
SELECT DISTINCT - + cor0.col0 + col0 DIV col0 + col1 FROM tab0 AS cor0
----
3
63
skipif mysql # not compatible
query I rowsort label-3161
SELECT DISTINCT - + cor0.col0 + col0 / col0 + col1 FROM tab0 AS cor0
----
3
63
query I rowsort
SELECT DISTINCT - col1 + - 71 AS col2 FROM tab2 AS cor0
----
-102
-130
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-3163
SELECT - col0 + - CAST( + col1 AS SIGNED ) DIV col1 FROM tab2 AS cor0
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-3163
SELECT - col0 + - CAST ( + col1 AS INTEGER ) / col1 FROM tab2 AS cor0
----
-79
-8
-80
query I rowsort
SELECT DISTINCT + col0 + - 17 * cor0.col1 FROM tab0 AS cor0
----
-1438
-1458
-1614
onlyif mysql # use DIV operator for integer division
query I rowsort label-3165
SELECT ALL col2 DIV col2 + - col0 AS col0 FROM tab0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL col2 / col2 + - col0 AS col0 FROM tab0
----
-23
-34
-88
query I rowsort
SELECT DISTINCT + 9 * cor0.col0 AS col0 FROM tab1 AS cor0
----
27
576
720
query I rowsort
SELECT DISTINCT - - col0 * + 25 AS col1 FROM tab0 AS cor0
----
2225
600
875
query I rowsort
SELECT + - 62 + col0 AS col2 FROM tab2 cor0
----
-55
16
17
query I rowsort
SELECT ALL - col2 + - col1 * col1 FROM tab0 AS cor0
----
-7429
-8363
-9410
query I rowsort
SELECT DISTINCT - col0 * - col1 - col1 AS col0 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-3171
SELECT DISTINCT tab0.col2 + col1 DIV col2 FROM tab0
----
35
83
98
skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT tab0.col2 + col1 / col2 FROM tab0
----
35
83
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3172
SELECT - col0 * col0 DIV + 89 FROM tab2
----
-68
-70
0
skipif mysql # not compatible
query I rowsort label-3172
SELECT - col0 * col0 / + 89 FROM tab2
----
-68
-70
0
query I rowsort
SELECT col2 - 47 * + col1 AS col0 FROM tab1
----
-1168
-413
-515
query I rowsort
SELECT col2 * tab0.col1 * - 30 FROM tab0
----
-223860
-2910
-85140
onlyif mysql # use DIV operator for integer division
query I rowsort label-3175
SELECT ALL tab0.col2 + ( - col0 ) DIV col0 AS col1 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL tab0.col2 + ( - col0 ) / col0 AS col1 FROM tab0
----
0
32
81
query I rowsort
SELECT + + col2 * + 39 + + col2 * col0 AS col1 FROM tab1 AS cor0
----
11424
2268
5871
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3177
SELECT ALL - + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3177
SELECT ALL - + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3178
SELECT - col2 DIV ( - 35 ) + - col0 * + col1 * + col0 + col0 AS col0 FROM tab2
----
-106017
-1512
-358878
skipif mysql # not compatible
query I rowsort label-3178
SELECT - col2 / ( - 35 ) + - col0 * + col1 * + col0 + col0 AS col0 FROM tab2
----
-106017
-1512
-358878
onlyif mysql # use DIV operator for integer division
query I rowsort label-3179
SELECT col0 DIV - 2 FROM tab1
----
-1
-32
-40
skipif mysql # not compatible
query I rowsort label-3179
SELECT col0 / - 2 FROM tab1
----
-1
-32
-40
query I rowsort
SELECT col2 + col2 + 28 FROM tab2
----
104
80
82
query I rowsort
SELECT DISTINCT + col0 + col0 + col0 AS col1 FROM tab2
----
21
234
237
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * tab0.col1 col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT 6 * - col2 AS col0 FROM tab0
----
-198
-492
-6
query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT ( NOT ( NULL ) > NULL AND NOT NULL NOT IN ( + col1 ) ) AND NOT - col2 IN ( - col2 * col0 + col1 )
----
query I rowsort
SELECT col2 * + col0 + - col1 AS col2 FROM tab0
----
-62
706
7207
query I rowsort
SELECT - 6 + 19 FROM tab2
----
13
13
13
query I rowsort
SELECT DISTINCT 65 + tab1.col1 FROM tab1
----
75
78
91
query I rowsort
SELECT col0 + - 50 * - tab1.col0 FROM tab1
----
153
3264
4080
query I rowsort
SELECT DISTINCT 54 AS col2 FROM tab0, tab2 AS cor0
----
54
query I rowsort
SELECT DISTINCT + + ( + col0 ) FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + + 78 AS col1 FROM tab2 AS cor0
----
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3192
SELECT + CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3192
SELECT + CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col1 * col2 + - col0 FROM tab0 cor0
----
-132
-2862
-7551
query I rowsort
SELECT - 74 + tab1.col1 * col1 FROM tab1
----
26
602
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 - col0 * tab2.col2 col0 FROM tab2
----
-166
-2005
-2979
query I rowsort
SELECT ALL + col0 * - col2 + 84 AS col2 FROM tab1 AS cor0
----
-3564
-7596
-78
query I rowsort
SELECT ALL col1 + col1 * 76 FROM tab1 AS cor0
----
1001
2002
770
query I rowsort
SELECT DISTINCT - - 31 FROM tab1, tab0, tab0 AS cor0
----
31
query I rowsort
SELECT ALL col1 * col2 * + 21 AS col0 FROM tab1
----
11970
26208
29484
query I rowsort
SELECT + col1 * col0 - - col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL - cor0.col1 * - ( 58 ) FROM tab0 AS cor0
----
4988
5278
5626
query I rowsort
SELECT - col2 + + ( - cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT + col2 + - col1 * - col0 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-3204
SELECT DISTINCT col0 + - 45 DIV - col2 FROM tab0
----
25
80
89
skipif mysql # not compatible
query I rowsort label-3204
SELECT DISTINCT col0 + - 45 / - col2 FROM tab0
----
25
80
89
query I rowsort
SELECT DISTINCT tab0.col0 + col2 + col0 FROM tab0
----
260
71
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * cor0.col0 col1 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3207
SELECT DISTINCT col1 DIV + col0 FROM tab1 AS cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-3207
SELECT DISTINCT col1 / + col0 FROM tab1 AS cor0
----
0
8
query I rowsort
SELECT + - col1 + + ( + col0 ) * + col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ALL + - col1 * + 8 + + 10 FROM tab1 AS cor0
----
-198
-70
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-3210
SELECT col1 * 42 DIV col1 AS col0 FROM tab2 AS cor0
----
42
42
42
skipif mysql # not compatible
query I rowsort label-3210
SELECT col1 * 42 / col1 AS col0 FROM tab2 AS cor0
----
42
42
42
query I rowsort
SELECT ALL col0 + 12 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-77
-858
-869
query I rowsort
SELECT + - col0 * - 98 * + col1 + cor0.col2 - + col1 * + col0 * + col1 AS col0 FROM tab2 AS cor0
----
108821
14566
179504
query I rowsort
SELECT ALL col0 * - ( + cor0.col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT col1 * 31 - 81 * - col2 FROM tab1 AS cor0
----
4927
5180
8179
query I rowsort
SELECT DISTINCT - - col1 * col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-3217
SELECT DISTINCT - - col1 + + col2 DIV - col1 + + cor0.col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1003
-6633
96
skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT - - col1 + + col2 / - col1 + + cor0.col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT + col1 * - col1 + - ( col1 ) * col1 AS col2 FROM tab0 AS cor0
----
-14792
-16562
-18818
query I rowsort
SELECT - - 15 AS col0 FROM tab2 AS cor0
----
15
15
15
query I rowsort
SELECT - 44 + cor0.col0 FROM tab0 AS cor0
----
-20
-9
45
query I rowsort
SELECT + - col0 * + col2 + + 93 FROM tab1 cor0
----
-3555
-69
-7587
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3222
SELECT - col0 * + ( + col1 ) + col0 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3222
SELECT - col0 * + ( + col1 ) + col0 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col2 * ( col1 ) * - col0 + - col2 * - 74 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
-190
-32252
-92723
query I rowsort
SELECT DISTINCT - tab2.col1 + - tab2.col2 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT + col0 * - 41 + cor0.col1 * - col0 FROM tab0 AS cor0
----
-11748
-3048
-4830
query I rowsort
SELECT DISTINCT cor0.col2 * + 74 + 10 FROM tab2, tab2 AS cor0
----
1934
2008
2822
query I rowsort
SELECT 18 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 903ac227935c1532300db45a8537c595
query I rowsort
SELECT + 1 + + col1 AS col0 FROM tab1
----
11
14
27
query I rowsort
SELECT DISTINCT - 81 + + 94 FROM tab0 AS cor0
----
13
query I rowsort
SELECT 38 AS col1 FROM tab0 cor0
----
38
38
38
query I rowsort
SELECT - tab2.col1 * col2 * col1 + - tab2.col1 * - col0 AS col1 FROM tab2
----
-25730
-85904
-9639
query I rowsort
SELECT + tab0.col0 * - col2 + - tab0.col0 FROM tab0
----
-70
-7387
-816
query I rowsort
SELECT DISTINCT - tab1.col0 + 62 AS col0 FROM tab1
----
-18
-2
59
query I rowsort
SELECT ALL + - col2 - + col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT 10 AS col0 FROM tab2 AS cor0
----
10
10
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 88 col0 FROM tab2 AS cor0
----
2288
2376
3344
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3237
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 - - col0 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 - - col0 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL 31 * col2 AS col1 FROM tab2
----
1178
806
837
query I rowsort
SELECT ALL 58 * - col0 AS col0 FROM tab2
----
-406
-4524
-4582
query I rowsort
SELECT ALL + - 4 * + col1 FROM tab0 AS cor0
----
-344
-364
-388
query I rowsort
SELECT ALL + col1 * + col0 + 2 AS col2 FROM tab1 AS cor0
----
1042
642
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3242
SELECT DISTINCT col2 DIV 71 col0 FROM tab2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT col2 / 71 col0 FROM tab2
----
0
query I rowsort
SELECT tab1.col1 * + col1 + col0 * 10 AS col1 FROM tab1
----
706
740
969
query I rowsort
SELECT + 45 + 68 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e8b0720b8386c308e7f43eb0f4e6aee1
query I rowsort
SELECT DISTINCT + tab1.col2 - col2 AS col1 FROM tab1
----
0
query I rowsort
SELECT DISTINCT - 52 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-52
query I rowsort
SELECT ALL - ( + col1 ) * + 88 + 24 - tab2.col2 FROM tab2
----
-1510
-2731
-5194
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3248
SELECT col2 + - col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3248
SELECT col2 + - col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 7 + col2 AS col0 FROM tab1 AS cor0
----
103
61
64
query I rowsort
SELECT - 61 * col1 AS col0 FROM tab2 AS cor0
----
-1037
-1891
-3599
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3251
SELECT + col1 * + CAST( - 10 AS SIGNED ) FROM tab1 AS cor0
----
-100
-130
-260
skipif mysql # not compatible
query I rowsort label-3251
SELECT + col1 * + CAST ( - 10 AS INTEGER ) FROM tab1 AS cor0
----
-100
-130
-260
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - ( col1 ) col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + cor0.col0 * col2 AS col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT + col2 + + 70 * 59 AS col0 FROM tab0 AS cor0
----
4131
4163
4212
onlyif mysql # use DIV operator for integer division
query I rowsort label-3255
SELECT ALL ( col1 ) DIV - col2 AS col0 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL ( col1 ) / - col2 AS col0 FROM tab0
----
-1
-2
-97
query I rowsort
SELECT + col2 + col1 * col0 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL - col2 + + ( + col2 ) + col0 * col1 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 1 col2 FROM tab0 cor0
----
2
34
83
query I rowsort
SELECT 64 AS col2 FROM tab1 cor0
----
64
64
64
query I rowsort
SELECT + col1 * col0 * - col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT - cor0.col0 * - 13 AS col2 FROM tab0 cor0
----
1157
312
455
query I rowsort
SELECT ALL col2 * - 62 * col0 AS col0 FROM tab2 AS cor0
----
-11718
-125736
-186124
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3263
SELECT CAST( col2 AS SIGNED ) * + cor0.col2 + - col1 AS col2 FROM tab1 AS cor0
----
2890
3239
9203
skipif mysql # not compatible
query I rowsort label-3263
SELECT CAST ( col2 AS INTEGER ) * + cor0.col2 + - col1 AS col2 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT ALL - ( col2 ) + - col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT - - ( - col2 ) * - col2 AS col1 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT col1 + + 72 FROM tab2
----
103
131
89
query I rowsort
SELECT tab2.col2 + + col2 + - col0 * - col2 * - col1 AS col2 FROM tab2
----
-119600
-50958
-5805
query I rowsort
SELECT ALL + col0 + + col0 * + col2 FROM tab0
----
70
7387
816
query I rowsort
SELECT DISTINCT tab1.col2 + + col0 AS col0 FROM tab1
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 20 col0 FROM tab2, tab1 cor0
----
20
query I rowsort
SELECT 30 FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab0 cor1
----
81 values hashing to 1ae25494a21836bac07879aa19fd4615
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( col1 ) * - col2 col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT 59 * 71 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 820e033b689f021a659af65a7bed5df3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3274
SELECT + CAST( - col2 AS SIGNED ) FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-3274
SELECT + CAST ( - col2 AS INTEGER ) FROM tab0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * - col2 - - col1 col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT col1 * + ( col0 ) + - col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3277
SELECT ALL - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + ( col2 ) * col0 + col0 * + ( + col0 ) AS col0 FROM tab1 AS cor0
----
14080
171
7744
query I rowsort
SELECT ALL 20 AS col1 FROM tab1 AS cor0
----
20
20
20
query I rowsort
SELECT col2 + + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL + - 1 + - col1 * col0 AS col0 FROM tab1 AS cor0
----
-1041
-641
-79
query I rowsort
SELECT - + ( - col1 ) + - col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL + ( cor0.col2 ) + col2 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT DISTINCT - - 41 * 19 AS col2 FROM tab0 AS cor0
----
779
query I rowsort
SELECT DISTINCT + 29 - - col1 AS col2 FROM tab2 cor0
----
46
60
88
query I rowsort
SELECT DISTINCT - - col0 + col2 * col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT ALL - col0 + cor0.col0 * - col2 * 48 AS col2 FROM tab1 AS cor0
----
-175168
-368720
-7779
query I rowsort
SELECT - ( - col0 ) * col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + col1 + cor0.col2 * - col2 FROM tab0 AS cor0
----
-1003
-6633
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3290
SELECT DISTINCT cor0.col2 + - col2 DIV - col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-3290
SELECT DISTINCT cor0.col2 + - col2 / - col1 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-3291
SELECT col1 DIV + col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3291
SELECT col1 / + col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT 73 * + col1 AS col1 FROM tab1 AS cor0
----
1898
730
949
onlyif mysql # use DIV operator for integer division
query I rowsort label-3293
SELECT + 58 DIV col1 FROM tab1 AS cor0
----
2
4
5
skipif mysql # not compatible
query I rowsort label-3293
SELECT + 58 / col1 FROM tab1 AS cor0
----
2
4
5
query I rowsort
SELECT ALL - col1 + col2 * ( - col1 ) FROM tab2 AS cor0
----
-1593
-663
-868
onlyif mysql # use DIV operator for integer division
query I rowsort label-3295
SELECT ALL ( col2 ) DIV - ( ( - cor0.col2 ) ) + - 25 FROM tab1 AS cor0
----
-24
-24
-24
skipif mysql # not compatible
query I rowsort label-3295
SELECT ALL ( col2 ) / - ( ( - cor0.col2 ) ) + - 25 FROM tab1 AS cor0
----
-24
-24
-24
onlyif mysql # use DIV operator for integer division
query I rowsort label-3296
SELECT col0 + + col0 * - col2 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3296
SELECT col0 + + col0 * - col2 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3297
SELECT + col0 * CAST( NULL AS SIGNED ) + col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3297
SELECT + col0 * CAST ( NULL AS INTEGER ) + col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - ( 46 ) col1 FROM tab1 AS cor0
----
-20
-33
-36
query I rowsort
SELECT DISTINCT + tab2.col0 - + ( - 78 ) FROM tab2, tab2 AS cor0
----
156
157
85
query I rowsort
SELECT ALL - cor0.col0 * - cor0.col1 AS col1 FROM tab2 cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 60 col2 FROM tab0 AS cor0
----
5160
5460
5820
query I rowsort
SELECT ALL - - col1 + - ( - col0 ) FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + + col2 * - ( - cor0.col2 ) + col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT col1 * 33 FROM tab1 cor0
----
330
429
858
query I rowsort
SELECT DISTINCT - - col2 * 77 FROM tab0 AS cor0
----
2541
6314
77
query I rowsort
SELECT - cor0.col1 + col2 * col0 AS col2 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL + + cor0.col1 + - 80 AS col1 FROM tab0 AS cor0
----
11
17
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3308
SELECT DISTINCT col2 + - CAST( NULL AS SIGNED ) * col1 - col2 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3308
SELECT DISTINCT col2 + - CAST ( NULL AS INTEGER ) * col1 - col2 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - + cor0.col2 * + col0 + col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT col0 + + 76 FROM tab0 AS cor0
----
100
111
165
query I rowsort
SELECT DISTINCT - col0 + col0 * - 93 FROM tab1 AS cor0
----
-282
-6016
-7520
onlyif mysql # use DIV operator for integer division
query I rowsort label-3312
SELECT ALL + col2 DIV cor0.col1 + 68 AS col2 FROM tab0 AS cor0
----
68
68
68
skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL + col2 / cor0.col1 + 68 AS col2 FROM tab0 AS cor0
----
68
68
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3313
SELECT + - CAST( + col2 AS SIGNED ) + cor0.col0 FROM tab1 AS cor0
----
-16
-51
7
skipif mysql # not compatible
query I rowsort label-3313
SELECT + - CAST ( + col2 AS INTEGER ) + cor0.col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT 37 + col0 FROM tab2 AS cor0
----
115
116
44
query I rowsort
SELECT ALL col1 + - tab1.col2 * + col0 AS col0 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT + col0 + col2 + + col2 * col1 FROM tab2
----
1638
763
871
query I rowsort
SELECT col2 + 45 + col2 AS col2 FROM tab1
----
153
159
237
query I rowsort
SELECT DISTINCT - + 27 * col0 AS col0 FROM tab1 AS cor0
----
-1728
-2160
-81
query I rowsort
SELECT DISTINCT 80 * col0 + + col0 AS col0 FROM tab0 AS cor0
----
1944
2835
7209
query I rowsort
SELECT ALL + + col0 * - col1 - + ( - col1 ) FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL - 88 + cor0.col1 + + ( - col2 ) * + col1 FROM tab2 cor0
----
-1563
-717
-894
query I rowsort
SELECT ALL - ( - col2 ) - - col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL + 5 AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7
query I rowsort
SELECT + ( - col2 ) * col1 + col2 * col2 FROM tab1 cor0
----
1512
2679
7968
query I rowsort
SELECT DISTINCT + col1 + + ( col1 ) FROM tab2
----
118
34
62
query I rowsort
SELECT DISTINCT col2 - col1 AS col1 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT - 46 AS col2 FROM tab0
----
-46
-46
-46
onlyif mysql # use DIV operator for integer division
query I rowsort label-3328
SELECT DISTINCT + CAST( ( col0 ) AS SIGNED ) DIV - ( + ( - col0 ) * 9 ) FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT + CAST ( ( col0 ) AS INTEGER ) / - ( + ( - col0 ) * 9 ) FROM tab1
----
0
query I rowsort
SELECT ALL - cor0.col0 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
onlyif mysql # use DIV operator for integer division
query I rowsort label-3330
SELECT + ( + 46 ) DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3330
SELECT + ( + 46 ) / cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3331
SELECT ALL 90 * + col2 - col0 DIV col1 FROM tab1
----
4860
5124
8634
skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL 90 * + col2 - col0 / col1 FROM tab1
----
4860
5124
8634
query I rowsort
SELECT + + col1 + - col1 * + 33 - - ( col0 ) FROM tab2 AS cor0
----
-1810
-465
-985
query I rowsort
SELECT - 81 + cor0.col2 * ( + col1 ) FROM tab2 AS cor0
----
1453
565
756
query I rowsort
SELECT ALL + 40 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT + - cor0.col2 * - col0 * - ( col0 * col2 + - col0 ) AS col1 FROM tab2 AS cor0
----
-34398
-3954600
-8774846
query I rowsort
SELECT ALL - - col1 * + 1 + + 85 FROM tab1 AS cor0
----
111
95
98
query I rowsort
SELECT col0 + - 34 * col2 AS col2 FROM tab2 AS cor0
----
-1213
-806
-911
query I rowsort
SELECT + col2 * - ( - cor0.col1 ) AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - 91 * + col1 FROM tab0 AS cor0
----
-7826
-8281
-8827
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col2 ) * + col0 col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + 3 AS col0 FROM tab1, tab2 AS cor0
----
3
query I rowsort
SELECT + 28 + col2 FROM tab0 AS cor0
----
110
29
61
query I rowsort
SELECT + cor0.col2 * + cor0.col2 + + col0 * + 24 AS col0 FROM tab1 AS cor0
----
11136
2988
4785
query I rowsort
SELECT DISTINCT - ( col0 ) AS col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + ( + col0 ) * - col1 + - 49 * + col0 * col2 FROM tab0 AS cor0
----
-365701
-40872
-5110
query I rowsort
SELECT DISTINCT 28 * - ( col1 ) + + ( col2 ) AS col0 FROM tab1 AS cor0
----
-223
-268
-674
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - cor0.col2 ) * - cor0.col2 + + ( - cor0.col2 ) col2 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT DISTINCT - 70 AS col1 FROM tab2, tab1 AS cor0
----
-70
query I rowsort
SELECT ALL - cor0.col1 + + col0 + - ( - col0 + - col0 ) * - 17 FROM tab2 AS cor0
----
-262
-2624
-2633
query I rowsort
SELECT DISTINCT + ( col2 ) * - col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + col1 + - cor0.col0 * + 72 AS col2 FROM tab1 AS cor0
----
-190
-4598
-5747
onlyif mysql # use DIV operator for integer division
query I rowsort label-3352
SELECT ALL cor0.col2 DIV - col0 + col1 AS col0 FROM tab2 AS cor0
----
17
28
59
skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL cor0.col2 / - col0 + col1 AS col0 FROM tab2 AS cor0
----
17
28
59
query I rowsort
SELECT - col1 - 30 AS col2 FROM tab1
----
-40
-43
-56
query I rowsort
SELECT ( col0 ) + - col2 AS col1 FROM tab0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3355
SELECT ALL + CAST( NULL AS SIGNED ) * col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL + CAST ( NULL AS INTEGER ) * col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col0 * col2 + col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL cor0.col1 + - col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-3358
SELECT ALL col1 DIV + cor0.col0 AS col2 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL col1 / + cor0.col0 AS col2 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT - col2 + ( + 32 ) AS col1 FROM tab1 AS cor0
----
-22
-25
-64
query I rowsort
SELECT + - col1 * + ( + cor0.col2 * - cor0.col2 ) AS col1 FROM tab0 AS cor0
----
611884
93654
97
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab2 AS cor0, tab2 cor1
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859
query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab2, tab0, tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT col1 + - 35 AS col0 FROM tab0
----
51
56
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3364
SELECT ALL - CAST( cor0.col1 AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
skipif mysql # not compatible
query I rowsort label-3364
SELECT ALL - CAST ( cor0.col1 AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3365
SELECT - col0 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3365
SELECT - col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 57 + - col2 col2 FROM tab1
----
-3132
-3306
-5568
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3367
SELECT - 39 * col2 + CAST( NULL AS SIGNED ) + + col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3367
SELECT - 39 * col2 + CAST ( NULL AS INTEGER ) + + col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 73 * - col2 * - 53 AS col1 FROM tab0 AS cor0
----
127677
317258
3869
query I rowsort
SELECT - cor0.col2 + + col1 + col1 FROM tab2 AS cor0
----
-4
35
92
query I rowsort
SELECT DISTINCT + cor0.col0 * col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT + - col0 + col0 + col0 AS col2 FROM tab0 cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 + + ( + 28 ) col2 FROM tab0 AS cor0
----
-2810
-69
-7434
query I rowsort
SELECT 22 + col2 + 49 FROM tab0 AS cor0
----
104
153
72
query I rowsort
SELECT ALL - 31 + cor0.col0 * col0 FROM tab2 AS cor0
----
18
6053
6210
query I rowsort
SELECT DISTINCT + 74 + col1 FROM tab0 AS cor0
----
160
165
171
query I rowsort
SELECT ALL + 75 * + col1 AS col2 FROM tab0 AS cor0
----
6450
6825
7275
query I rowsort
SELECT 25 * - col2 - 1 AS col1 FROM tab2 AS cor0
----
-651
-676
-951
query I rowsort
SELECT ALL + 92 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT ALL tab1.col0 * - col1 AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL col0 * + cor0.col2 * + cor0.col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT tab2.col2 + - col2 * col1 - - col0 FROM tab2
----
-1430
-529
-803
query I rowsort
SELECT DISTINCT ( + col0 ) * + col2 - + col1 FROM tab2
----
158
1969
2985
query I rowsort
SELECT + tab0.col2 + col2 * 83 + - col1 AS col1 FROM tab0
----
-13
2686
6797
query I rowsort
SELECT ALL - 79 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3385
SELECT ALL + CAST( NULL AS SIGNED ) - - cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL + CAST ( NULL AS INTEGER ) - - cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - 61 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3387
SELECT + col2 + col2 + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3387
SELECT + col2 + col2 + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 0 * + col1 + + col1 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + ( - cor0.col2 ) + col1 * col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT ALL 83 + + tab0.col2 * - ( + col2 ) AS col2 FROM tab0
----
-1006
-6641
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) * col1 col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT 21 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
onlyif mysql # use DIV operator for integer division
query I rowsort label-3393
SELECT cor0.col0 + 72 DIV + cor0.col2 + col2 col1 FROM tab1 AS cor0
----
122
176
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3393
SELECT cor0.col0 + 72 / + cor0.col2 + col2 col1 FROM tab1 AS cor0
----
122
176
58
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 cor1, tab0 AS cor2
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55
query I rowsort
SELECT - ( cor0.col2 ) * col1 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col0 col2 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT - ( 43 ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
-3698
-3913
-4171
query I rowsort
SELECT + - 51 * - col1 * - col0 FROM tab2 AS cor0
----
-11067
-234702
-68493
query I rowsort
SELECT ALL - col1 * - col1 * col1 - + 79 FROM tab0 cor0
----
635977
753492
912594
query I rowsort
SELECT - ( + col0 + col2 ) FROM tab0
----
-171
-36
-57
query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab2, tab0 cor1
----
3645 values hashing to 489b7b2b5c4980d50e86e51be30361c3
query I rowsort
SELECT + 89 AS col0 FROM tab0, tab2 cor0, tab2, tab0 AS cor1
----
81 values hashing to bb5bb13eab35a33bb4641905f5e7c9b6
onlyif mysql # use DIV operator for integer division
query I rowsort label-3404
SELECT ALL col1 DIV 99 + col2 col2 FROM tab0 cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL col1 / 99 + col2 col2 FROM tab0 cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 68 + col0 col0 FROM tab1 AS cor0
----
1771
744
964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3406
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3406
SELECT DISTINCT + CAST ( NULL AS REAL ) / col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + - ( 96 ) AS col1 FROM tab1 AS cor0
----
-96
-96
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3408
SELECT - 1 * - col1 DIV col2 AS col0 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-3408
SELECT - 1 * - col1 / col2 AS col0 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT ALL + - 81 + col2 FROM tab1 AS cor0
----
-24
-27
15
query I rowsort
SELECT DISTINCT + 45 * + col1 + 53 FROM tab2 AS cor0
----
1448
2708
818
query I rowsort
SELECT 42 + col0 FROM tab2 AS cor0
----
120
121
49
query I rowsort
SELECT DISTINCT - col2 * col0 + + col1 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3413
SELECT - CAST( cor0.col1 * cor0.col2 AS SIGNED ) FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 9fc71e55d98c21fc68f4af540b1d7651
skipif mysql # not compatible
query I rowsort label-3413
SELECT - CAST ( cor0.col1 * cor0.col2 AS INTEGER ) FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 9fc71e55d98c21fc68f4af540b1d7651
onlyif mysql # use DIV operator for integer division
query I rowsort label-3414
SELECT + col0 + + col0 DIV col0 AS col1 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-3414
SELECT + col0 + + col0 / col0 AS col1 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT DISTINCT - col0 + 53 AS col2 FROM tab0 AS cor0
----
-36
18
29
query I rowsort
SELECT - - col2 * col0 + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT + col2 * ( 58 ) FROM tab2
----
1508
1566
2204
query I rowsort
SELECT DISTINCT + cor0.col1 + + col1 * - col1 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT ALL + + col2 - - 25 FROM tab0 AS cor0
----
107
26
58
skipif mysql # not compatible
query I rowsort
SELECT - col2 - + CAST ( ( col2 ) AS REAL ) FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT col2 + - col2 + - col0 * col1 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 64 + cor0.col1 col1 FROM tab2 AS cor0
----
-1605
-1697
-2415
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) + + col1 * - 62 col0 FROM tab1 AS cor0
----
-1586
-610
-793
query I rowsort
SELECT DISTINCT col0 + - ( - col0 ) * col1 AS col0 FROM tab1 AS cor0
----
1120
704
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-3425
SELECT DISTINCT col0 + 51 DIV - col1 AS col2 FROM tab2 AS cor0
----
6
76
78
skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT col0 + 51 / - col1 AS col2 FROM tab2 AS cor0
----
6
76
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3426
SELECT ALL + col1 * + col2 + col2 / + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL + col1 * + col2 + col2 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * + 2 FROM tab1
----
20
26
52
query I rowsort
SELECT - col2 * col1 + + col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT col0 + + ( + col1 ) AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT ( col2 + ( col0 ) ) FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT + cor0.col0 + - 53 AS col0 FROM tab2, tab0, tab0 cor0
----
-18
-29
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3432
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3432
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( 70 ) col0 FROM tab0
----
2310
5740
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3434
SELECT - + col2 * CAST( NULL AS SIGNED ) + 76 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3434
SELECT - + col2 * CAST ( NULL AS INTEGER ) + 76 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col2 * - ( - col0 ) AS col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-3436
SELECT col2 DIV col0 + - col0 * - tab1.col1 + - tab1.col1 * - col2 FROM tab1
----
1210
1500
2289
skipif mysql # not compatible
query I rowsort label-3436
SELECT col2 / col0 + - col0 * - tab1.col1 + - tab1.col1 * - col2 FROM tab1
----
1210
1500
2289
query I rowsort
SELECT - 52 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74
query I rowsort
SELECT - col1 * 8 FROM tab0
----
-688
-728
-776
onlyif mysql # use DIV operator for integer division
query I rowsort label-3439
SELECT DISTINCT col0 + ( + col0 ) DIV - col0 AS col0 FROM tab1
----
2
63
79
skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT col0 + ( + col0 ) / - col0 AS col0 FROM tab1
----
2
63
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3440
SELECT CAST( + col0 AS SIGNED ) * tab2.col1 FROM tab2
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-3440
SELECT CAST ( + col0 AS INTEGER ) * tab2.col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + ( col0 ) + - col1 AS col2 FROM tab1
----
-23
54
67
query I rowsort
SELECT - col0 * - 26 FROM tab2
----
182
2028
2054
query I rowsort
SELECT 83 * + col2 AS col0 FROM tab0
----
2739
6806
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-3444
SELECT DISTINCT - 42 DIV col0 col2 FROM tab2
----
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT - 42 / col0 col2 FROM tab2
----
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 col0 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT ALL ( 15 ) AS col0 FROM tab1
----
15
15
15
query I rowsort
SELECT DISTINCT + 63 AS col0 FROM tab1
----
63
query I rowsort
SELECT DISTINCT - 50 + col1 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
7346
8231
9359
query I rowsort
SELECT ALL ( - tab2.col1 ) * 35 AS col1 FROM tab2
----
-1085
-2065
-595
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3451
SELECT DISTINCT - - col0 * col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT - - col0 * col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - cor0.col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + 47 + + col1 FROM tab2 AS cor0
----
106
64
78
query I rowsort
SELECT + col0 * col1 + col2 * + col1 FROM tab1 cor0
----
1210
1482
2288
query I rowsort
SELECT - cor0.col2 * col2 + - ( - 66 ) FROM tab2 AS cor0
----
-1378
-610
-663
query I rowsort
SELECT + - ( - col2 ) * ( - 46 * + col1 ) AS col2 FROM tab2 AS cor0
----
-29716
-38502
-70564
query I rowsort
SELECT ALL 34 * + tab1.col2 + ( - col1 ) FROM tab1
----
1810
1928
3251
query I rowsort
SELECT DISTINCT col0 + + tab2.col1 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL - ( cor1.col1 ) AS col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT ALL + + cor0.col0 * col1 + + ( + col2 ) * col0 FROM tab1 AS cor0
----
240
4288
8720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col0 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT - - 31 * col2 FROM tab1 cor0
----
1674
1767
2976
query I rowsort
SELECT + + col2 + - col1 + + ( col1 ) AS col2 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 * col2 col1 FROM tab0 AS cor0
----
3234
8036
98
query I rowsort
SELECT DISTINCT col2 * col0 + + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT col1 * + cor0.col1 + cor0.col0 AS col1 FROM tab1 AS cor0
----
164
249
679
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3467
SELECT + + col2 * CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-3467
SELECT + + col2 * CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL - col0 * col1 + + ( - cor0.col0 ) FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT + col0 * 80 * - col2 + + cor0.col0 * 20 * ( - col1 ) + + col1 AS col0 FROM tab2 AS cor0
----
-19429
-254221
-267003
query I rowsort
SELECT + + col0 * col1 + 84 * - col2 AS col1 FROM tab1 AS cor0
----
-4148
-4458
-7024
query I rowsort
SELECT - cor0.col2 * col1 * - col1 AS col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT ALL col0 * + ( - col0 ) + - col0 + + 40 FROM tab1 AS cor0
----
-4120
-6440
28
query I rowsort
SELECT - col1 + - 74 AS col1 FROM tab2 AS cor0
----
-105
-133
-91
query I rowsort
SELECT ALL col2 * - 32 FROM tab1 AS cor0
----
-1728
-1824
-3072
onlyif mysql # use DIV operator for integer division
query I rowsort label-3475
SELECT ALL - col1 * + col2 DIV - tab1.col2 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL - col1 * + col2 / - tab1.col2 FROM tab1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 col0 FROM tab2 cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3477
SELECT + CAST( - col0 AS SIGNED ) * - col2 col1 FROM tab0 cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3477
SELECT + CAST ( - col0 AS INTEGER ) * - col2 col1 FROM tab0 cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3478
SELECT + - CAST( NULL AS SIGNED ) * 42 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3478
SELECT + - CAST ( NULL AS INTEGER ) * 42 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + ( - cor0.col2 ) col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT + + ( 31 ) - col1 AS col1 FROM tab1 AS cor0
----
18
21
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-3481
SELECT - 15 DIV + col1 + + col1 * - col0 FROM tab1 AS cor0
----
-1041
-641
-78
skipif mysql # not compatible
query I rowsort label-3481
SELECT - 15 / + col1 + + col1 * - col0 FROM tab1 AS cor0
----
-1041
-641
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3482
SELECT DISTINCT + 60 DIV col1 FROM tab2 AS cor0
----
1
3
skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT + 60 / col1 FROM tab2 AS cor0
----
1
3
query I rowsort
SELECT 99 + cor0.col1 AS col0 FROM tab0, tab2, tab0 cor0, tab1
----
81 values hashing to f65392ade88c5653652a79dd40148147
query I rowsort
SELECT ALL - - col0 + + col2 * col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT - - 40 FROM tab2, tab1 cor0, tab1, tab2 AS cor1
----
81 values hashing to 09624b9180d40f03a4dda4b4c17356c0
query I rowsort
SELECT + col2 + col2 * - cor0.col1 FROM tab1 cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT - col1 + - col0 * 55 AS col1 FROM tab0 AS cor0
----
-1406
-2022
-4986
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3488
SELECT DISTINCT - + 47 * col2 + - CAST( + cor0.col2 AS SIGNED ) * + cor0.col1 + + col1 AS col0 FROM tab1 AS cor0
----
-3239
-3916
-5747
skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT - + 47 * col2 + - CAST ( + cor0.col2 AS INTEGER ) * + cor0.col1 + + col1 AS col0 FROM tab1 AS cor0
----
-3239
-3916
-5747
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - col1 * - col0 + ( col1 ) col2 FROM tab1 cor0
----
260
40970
83213
onlyif mysql # use DIV operator for integer division
query I rowsort label-3490
SELECT DISTINCT col0 * 13 * col1 + - cor0.col2 DIV ( + 38 ) AS col2 FROM tab2 AS cor0
----
17458
2821
59826
skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT col0 * 13 * col1 + - cor0.col2 / ( + 38 ) AS col2 FROM tab2 AS cor0
----
17458
2821
59826
query I rowsort
SELECT + - col0 * ( ( col1 ) ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3492
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) / + cor0.col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3492
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) / + cor0.col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3493
SELECT ALL + cor0.col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL + cor0.col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 + 90 AS col2 FROM tab2 AS cor0
----
11
12
83
query I rowsort
SELECT DISTINCT col0 + + col0 * col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT + col1 + 13 AS col0 FROM tab1 AS cor0
----
23
26
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 0 + cor0.col0 col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + col1 + - 66 AS col1 FROM tab0 cor0
----
20
25
31
query I rowsort
SELECT + + 1 AS col0 FROM tab2 cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3500
SELECT CAST( + col0 AS SIGNED ) + col1 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-3500
SELECT CAST ( + col0 AS INTEGER ) + col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + ( col0 ) * col0 + 98 FROM tab1 AS cor0
----
107
4194
6498
query I rowsort
SELECT DISTINCT - + col2 + + col1 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT col2 + 40 * + col2 AS col0 FROM tab0 cor0
----
1353
3362
41
query I rowsort
SELECT + col2 - 28 AS col2 FROM tab2
----
-1
-2
10
query I rowsort
SELECT - 93 + - col2 FROM tab2 cor0
----
-119
-120
-131
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3506
SELECT DISTINCT tab1.col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT tab1.col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3507
SELECT DISTINCT - col0 DIV + 27 AS col2 FROM tab1
----
-2
0
skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT - col0 / + 27 AS col2 FROM tab1
----
-2
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + col2 * - ( - col1 ) col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL - 47 * + col0 + + col2 - cor0.col1 * + col2 FROM tab1 AS cor0
----
-1491
-3521
-4912
query I rowsort
SELECT DISTINCT 31 * col1 + + 42 * col1 * + col1 FROM tab1 AS cor0
----
29198
4510
7501
query I rowsort
SELECT - col0 + col2 * - 94 AS col1 FROM tab1 AS cor0
----
-5079
-5422
-9104
query I rowsort
SELECT ALL - 60 + - col1 AS col1 FROM tab1 cor0
----
-70
-73
-86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3513
SELECT DISTINCT + 60 - + col1 * CAST( NULL AS SIGNED ) / col0 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3513
SELECT DISTINCT + 60 - + col1 * CAST ( NULL AS INTEGER ) / col0 AS col0 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3514
SELECT ALL - 2 DIV - col0 + ( 54 ) * + col1 AS col2 FROM tab0 AS cor0
----
4644
4914
5238
skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL - 2 / - col0 + ( 54 ) * + col1 AS col2 FROM tab0 AS cor0
----
4644
4914
5238
query I rowsort
SELECT DISTINCT + 86 * col1 * - 90 - col1 AS col0 FROM tab1 AS cor0
----
-100633
-201266
-77410
query I rowsort
SELECT + + col1 + + col0 * + col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL - - 99 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
19
35
96
query I rowsort
SELECT DISTINCT - 68 AS col1 FROM tab1
----
-68
query I rowsort
SELECT DISTINCT cor1.col1 FROM tab0, tab0 AS cor0, tab1 cor1
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3520
SELECT ALL - CAST( NULL AS SIGNED ) + - 23 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL - CAST ( NULL AS INTEGER ) + - 23 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + + 32 * cor0.col1 + col0 * + cor0.col2 FROM tab0 cor0
----
10210
3139
3544
onlyif mysql # use DIV operator for integer division
query I rowsort label-3522
SELECT DISTINCT + - 72 * col1 + + col2 DIV + 97 AS col2 FROM tab1 AS cor0
----
-1872
-720
-936
skipif mysql # not compatible
query I rowsort label-3522
SELECT DISTINCT + - 72 * col1 + + col2 / + 97 AS col2 FROM tab1 AS cor0
----
-1872
-720
-936
query I rowsort
SELECT DISTINCT + - col1 * col0 + - col1 FROM tab1 cor0
----
-104
-1053
-650
query I rowsort
SELECT col0 * 69 FROM tab2 AS cor0
----
483
5382
5451
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col1 FROM tab0
----
65
query I rowsort
SELECT + - 98 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638
query I rowsort
SELECT DISTINCT + 69 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + + col0 * col0 col0 FROM tab1 AS cor0
----
-45
4039
6304
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 * - col2 + + col2 col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT - col0 + tab0.col0 AS col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * 59 + - col2 col2 FROM tab1 AS cor0
----
1480
533
671
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 + - col2 col2 FROM tab0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 col2 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT 60 FROM tab2, tab2 cor0
----
60
query I rowsort
SELECT ALL + - col1 * + ( col1 * - cor0.col2 ) FROM tab1 cor0
----
16224
36504
5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - col1 col1 FROM tab1 AS cor0
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - col1 * col2 col0 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT ALL + - col0 + - col1 * col1 FROM tab1 cor0
----
-164
-249
-679
query I rowsort
SELECT DISTINCT + cor0.col1 * - 22 + col1 AS col1 FROM tab2 AS cor0
----
-1239
-357
-651
query I rowsort
SELECT - + col1 * col2 + cor0.col2 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-3541
SELECT col1 * col1 + + col2 + + col2 DIV - col1 AS col1 FROM tab2
----
325
3507
988
skipif mysql # not compatible
query I rowsort label-3541
SELECT col1 * col1 + + col2 + + col2 / - col1 AS col1 FROM tab2
----
325
3507
988
query I rowsort
SELECT DISTINCT col1 * tab2.col2 + col2 AS col1 FROM tab2
----
1560
684
864
query I rowsort
SELECT DISTINCT + ( + tab1.col1 ) + col1 + ( - 77 * + col2 ) AS col0 FROM tab1
----
-4106
-4369
-7366
query I rowsort
SELECT col1 * col2 + cor0.col0 - 29 * ( - col0 + + col1 * + col1 ) AS col1 FROM tab2 AS cor0
----
-26822
-5365
-97075
query I rowsort
SELECT ALL + - 78 * + col0 FROM tab2 AS cor0
----
-546
-6084
-6162
query I rowsort
SELECT - cor0.col2 * + col2 * col0 + - ( - 81 * + col0 ) FROM tab0 AS cor0
----
-24192
-591227
2800
query I rowsort
SELECT DISTINCT - col0 + col2 * + col0 * - 11 AS col2 FROM tab2 AS cor0
----
-2086
-22386
-33101
query I rowsort
SELECT DISTINCT + col0 + - cor0.col2 * + col1 AS col2 FROM tab0 cor0
----
-2814
-62
-7373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3549
SELECT ALL CAST( + 3 AS SIGNED ) * - cor0.col2 * - col2 AS col0 FROM tab0 AS cor0
----
20172
3
3267
skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL CAST ( + 3 AS INTEGER ) * - cor0.col2 * - col2 AS col0 FROM tab0 AS cor0
----
20172
3
3267
query I rowsort
SELECT 94 * - col0 + 54 FROM tab2 AS cor0
----
-604
-7278
-7372
query I rowsort
SELECT 55 + - col2 FROM tab2 AS cor0
----
17
28
29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3552
SELECT ( col1 ) * - CAST( + col0 AS SIGNED ) + + col0 AS col1 FROM tab0 cor0
----
-2040
-3360
-8010
skipif mysql # not compatible
query I rowsort label-3552
SELECT ( col1 ) * - CAST ( + col0 AS INTEGER ) + + col0 AS col1 FROM tab0 cor0
----
-2040
-3360
-8010
query I rowsort
SELECT - 0 - + col0 * + col1 AS col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT - col2 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192
onlyif mysql # use DIV operator for integer division
query I rowsort label-3555
SELECT - - col2 * + col2 * + cor0.col2 + - col0 + + col2 DIV - col2 FROM tab0 AS cor0
----
-35
35912
551278
skipif mysql # not compatible
query I rowsort label-3555
SELECT - - col2 * + col2 * + cor0.col2 + - col0 + + col2 / - col2 FROM tab0 AS cor0
----
-35
35912
551278
query I rowsort
SELECT - ( cor0.col0 ) FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + + cor0.col2 + 63 + col2 FROM tab1 AS cor0
----
171
177
255
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3558
SELECT - CAST( 85 AS SIGNED ) FROM tab2 AS cor0
----
-85
-85
-85
skipif mysql # not compatible
query I rowsort label-3558
SELECT - CAST ( 85 AS INTEGER ) FROM tab2 AS cor0
----
-85
-85
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-3559
SELECT ALL + 66 DIV - col1 + col2 + - col2 FROM tab2 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL + 66 / - col1 + col2 + - col2 FROM tab2 AS cor0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT + - ( - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + - cor0.col1 * 36 FROM tab2 AS cor0
----
-1116
-2124
-612
query I rowsort
SELECT ALL - - col0 + col2 AS col0 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-3563
SELECT cor0.col0 DIV col0 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3563
SELECT cor0.col0 / col0 AS col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - ( col2 ) * + col0 * - col0 AS col0 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT + ( cor0.col2 ) AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT + + col1 + + col2 * col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT + - col1 + 57 + col1 FROM tab1 AS cor0
----
57
57
57
query I rowsort
SELECT col0 + + 71 AS col1 FROM tab2 cor0
----
149
150
78
query I rowsort
SELECT ALL + 21 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
query I rowsort
SELECT DISTINCT - col1 * + tab0.col1 AS col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT 42 * + 99 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to bd1b6f5990acb215b713246304846d56
query I rowsort
SELECT DISTINCT col1 + - tab2.col2 + - tab2.col0 FROM tab2
----
-100
-3
-45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3573
SELECT + col0 * - CAST( NULL AS SIGNED ) * - col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3573
SELECT + col0 * - CAST ( NULL AS INTEGER ) * - col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT - col2 * - col1 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL 57 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT ALL - - cor0.col0 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT col2 + - ( cor0.col1 ) FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL + col2 * ( - col1 ) AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + 55 AS col0 FROM tab1 AS cor0
----
55
55
55
query I rowsort
SELECT ALL + - 1 * col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-3582
SELECT DISTINCT 70 DIV 31 AS col0 FROM tab0 AS cor0
----
2
skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT 70 / 31 AS col0 FROM tab0 AS cor0
----
2
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 22 AS REAL ) + - cor0.col2 + 53 AS col0 FROM tab1 AS cor0
----
-23
-26
-65
query I rowsort
SELECT ALL - 38 * col0 AS col1 FROM tab0 AS cor0
----
-1330
-3382
-912
query I rowsort
SELECT + col1 + + col0 - col1 FROM tab2
----
7
78
79
query I rowsort
SELECT 84 * + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 743e9804e2d2b75c29f9d7eca3aa4fd7
query I rowsort
SELECT ALL + 92 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
query I rowsort
SELECT ALL + tab0.col0 - col0 * + col2 AS col2 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT + ( col2 ) * col2 + + col0 FROM tab2
----
1523
736
754
query I rowsort
SELECT + ( 7 ) + col2 FROM tab0
----
40
8
89
query I rowsort
SELECT + 75 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query I rowsort
SELECT ALL 57 * - col2 + + col0 AS col2 FROM tab1
----
-3075
-3185
-5392
query I rowsort
SELECT col1 * - col0 + + col1 * - col1 + + col2 * + col0 FROM tab1
----
-592
2908
6471
query I rowsort
SELECT 54 + - ( col0 * col0 ) AS col2 FROM tab0
----
-1171
-522
-7867
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3595
SELECT - - CAST( - 51 AS SIGNED ) + + col0 AS col0 FROM tab0 AS cor0
----
-16
-27
38
skipif mysql # not compatible
query I rowsort label-3595
SELECT - - CAST ( - 51 AS INTEGER ) + + col0 AS col0 FROM tab0 AS cor0
----
-16
-27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3596
SELECT DISTINCT CAST( NULL AS SIGNED ) * 48 * cor0.col1 + CAST( NULL AS SIGNED ) * + ( + cor0.col2 ) AS col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3596
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 48 * cor0.col1 + CAST ( NULL AS INTEGER ) * + ( + cor0.col2 ) AS col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT - + col2 * + 22 + cor0.col1 FROM tab1 AS cor0
----
-1162
-1244
-2099
query I rowsort
SELECT DISTINCT ( - col0 ) + cor0.col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-3599
SELECT DISTINCT 75 DIV + col0 AS col1 FROM tab1
----
0
1
25
skipif mysql # not compatible
query I rowsort label-3599
SELECT DISTINCT 75 / + col0 AS col1 FROM tab1
----
0
1
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col2 col0 FROM tab2, tab1 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 20 col1 FROM tab0
----
-20
-20
-20
query I rowsort
SELECT 63 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 + + col2 col2 FROM tab0
----
122
171
90
query I rowsort
SELECT DISTINCT cor1.col0 FROM tab2, tab2 cor0, tab0 AS cor1
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 + + cor0.col2 col1 FROM tab0 AS cor0
----
141
60
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-3606
SELECT DISTINCT + col2 + - col1 DIV + col0 AS col2 FROM tab1 AS cor0
----
46
57
96
skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT + col2 + - col1 / + col0 AS col2 FROM tab1 AS cor0
----
46
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3607
SELECT col2 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3607
SELECT col2 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - col2 * 17 FROM tab0 AS cor0
----
-1394
-17
-561
query I rowsort
SELECT + col1 * + 96 AS col1 FROM tab1 AS cor0
----
1248
2496
960
query I rowsort
SELECT ALL + 64 AS col2 FROM tab2
----
64
64
64
query I rowsort
SELECT + cor0.col0 * - 93 AS col2 FROM tab2 cor0
----
-651
-7254
-7347
query I rowsort
SELECT col0 * + col2 * 69 FROM tab0 AS cor0
----
2415
503562
54648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3614
SELECT ALL - - cor0.col1 + CAST( NULL AS DECIMAL ) * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL - - cor0.col1 + CAST ( NULL AS REAL ) * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 + col0 col1 FROM tab2
----
100
101
29
query I rowsort
SELECT ( col1 ) + + col0 AS col0 FROM tab2
----
137
38
96
query I rowsort
SELECT 94 - col1 FROM tab0
----
-3
3
8
query I rowsort
SELECT ALL 44 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-3784
-4004
-4268
query I rowsort
SELECT ( cor0.col0 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT + 64 + col2 AS col2 FROM tab2
----
102
90
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-3621
SELECT DISTINCT + col0 DIV col0 col1 FROM tab0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT + col0 / col0 col1 FROM tab0
----
1
query I rowsort
SELECT - 59 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-3186
-3363
-5664
query I rowsort
SELECT ALL + 90 * col2 AS col2 FROM tab2 cor0
----
2340
2430
3420
query I rowsort
SELECT - col2 * - 84 FROM tab0 cor0
----
2772
6888
84
query I rowsort
SELECT ALL - col0 * 62 FROM tab0 cor0
----
-1488
-2170
-5518
query I rowsort
SELECT ALL + col2 * ( + col2 ) + - col0 AS col0 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT DISTINCT - - col0 + - 97 FROM tab2 AS cor0
----
-18
-19
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + 68 col1 FROM tab2 AS cor0
----
127
85
99
query I rowsort
SELECT DISTINCT col1 * ( - col2 ) AS col0 FROM tab1
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 * CAST ( + col2 * + col1 AS REAL ) AS col0 FROM tab1 AS cor0
----
119808
32490
75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-3631
SELECT ALL - col2 DIV col1 AS col0 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL - col2 / col1 AS col0 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT ALL + col2 + - col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT + tab1.col2 + + col1 FROM tab1
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3634
SELECT ALL col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * col0 * + col0 AS col0 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL - col0 * - tab2.col2 * col1 FROM tab2
----
119652
51034
5859
query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * - col1 + col2 NOT BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3638
SELECT col2 DIV + col2 + - col1 FROM tab0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-3638
SELECT col2 / + col2 + - col1 FROM tab0
----
-85
-90
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3639
SELECT + col1 DIV col2 + col1 * - col1 AS col0 FROM tab0
----
-7394
-8280
-9312
skipif mysql # not compatible
query I rowsort label-3639
SELECT + col1 / col2 + col1 * - col1 AS col0 FROM tab0
----
-7394
-8280
-9312
query I rowsort
SELECT - tab1.col1 * + tab1.col1 + + col0 FROM tab1
----
-36
-673
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3641
SELECT ALL + col0 DIV tab0.col0 + - tab0.col0 FROM tab0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL + col0 / tab0.col0 + - tab0.col0 FROM tab0
----
-23
-34
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-3642
SELECT ALL - col0 DIV col1 - tab2.col1 AS col2 FROM tab2
----
-21
-31
-60
skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL - col0 / col1 - tab2.col1 AS col2 FROM tab2
----
-21
-31
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-3643
SELECT + col1 DIV col1 + - col1 FROM tab1
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-3643
SELECT + col1 / col1 + - col1 FROM tab1
----
-12
-25
-9
query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT col1 / - col0 <> ( NULL )
----
query I rowsort
SELECT ALL + - cor0.col2 + cor0.col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + 15 + col1 FROM tab2 AS cor0
----
32
46
74
query I rowsort
SELECT + 30 + col0 + + 0 * - col2 FROM tab0 AS cor0
----
119
54
65
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 FROM tab1 cor0
----
0
query I rowsort
SELECT DISTINCT - + col2 * + cor0.col1 + - col1 + + col2 FROM tab2 AS cor0
----
-1567
-625
-841
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col1 * + col1 col0 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT col2 + tab2.col0 + col2 FROM tab2
----
130
155
61
query I rowsort
SELECT - col0 * col2 * col0 AS col1 FROM tab1
----
-233472
-486
-614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col1 - - col2 * col0 col2 FROM tab1
----
191
3722
7773
query I rowsort
SELECT col2 + tab1.col2 + col2 AS col2 FROM tab1
----
162
171
288
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col1 )
----
query I rowsort
SELECT ALL - tab1.col2 + col0 / + col2 FROM tab1 WHERE ( NULL ) IN ( col0 )
----
query I rowsort
SELECT ALL + + col2 * - col1 - - 87 AS col2 FROM tab1 AS cor0
----
-1161
-1317
-483
query I rowsort
SELECT + - col2 + col2 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 63 + col2 FROM tab0 AS cor0
----
145
64
96
query I rowsort
SELECT - + col2 - - col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3661
SELECT ALL + - 95 + col2 * CAST( + ( + col0 ) AS SIGNED ) AS col0 FROM tab1 cor0
----
3553
67
7585
skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL + - 95 + col2 * CAST ( + ( + col0 ) AS INTEGER ) AS col0 FROM tab1 cor0
----
3553
67
7585
onlyif mysql # use DIV operator for integer division
query I rowsort label-3662
SELECT DISTINCT - 20 + + col0 + + col0 * + col2 DIV + col2 AS col1 FROM tab1 cor0
----
-14
108
140
skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT - 20 + + col0 + + col0 * + col2 / + col2 AS col1 FROM tab1 cor0
----
-14
108
140
query I rowsort
SELECT + col1 * col0 + 3 AS col0 FROM tab1 AS cor0
----
1043
643
81
query I rowsort
SELECT ALL + + 6 * + cor0.col2 + ( - col2 ) AS col0 FROM tab2 AS cor0
----
130
135
190
query I rowsort
SELECT - col1 * cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT - - col0 + ( col0 ) FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT col1 + + ( + 21 * - cor0.col2 ) FROM tab2 AS cor0
----
-487
-536
-781
query I rowsort
SELECT 53 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT + col0 + 8 FROM tab0 cor0
----
32
43
97
query I rowsort
SELECT DISTINCT - col0 + col1 * + 26 FROM tab1
----
196
258
673
query I rowsort
SELECT DISTINCT + - 68 - col1 FROM tab2 AS cor0
----
-127
-85
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 col1 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL - 46 FROM tab1 cor0
----
-46
-46
-46
query I rowsort
SELECT ( + col0 * - col0 ) AS col2 FROM tab0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + tab2.col1 + - col1 col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT + ( + col0 + col2 ) * 93 * tab0.col1 FROM tab0
----
1447173
324756
455886
query I rowsort
SELECT ALL - 12 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45
query I rowsort
SELECT DISTINCT tab2.col1 AS col2 FROM tab2, tab0, tab2 AS cor0
----
17
31
59
query I rowsort
SELECT cor0.col1 + + col1 * col1 AS col1 FROM tab0 cor0
----
7482
8372
9506
query I rowsort
SELECT - + cor0.col0 + col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + - 5 + 21 FROM tab1 AS cor0
----
16
query I rowsort
SELECT DISTINCT - 39 * - 90 FROM tab0 AS cor0
----
3510
query I rowsort
SELECT 43 * 88 FROM tab2 AS cor0
----
3784
3784
3784
query I rowsort
SELECT - ( cor0.col2 ) * - col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT cor0.col1 + - 11 FROM tab1, tab2 cor0, tab1 AS cor1
----
20
48
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-3686
SELECT DISTINCT col2 + 31 DIV - col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT col2 + 31 / - col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - 32 * - ( col2 ) FROM tab0 AS cor0
----
1056
2624
32
query I rowsort
SELECT ALL + 30 * 82 FROM tab1 AS cor0
----
2460
2460
2460
query I rowsort
SELECT ALL - 32 - - cor0.col0 AS col1 FROM tab0 AS cor0
----
-8
3
57
query I rowsort
SELECT ALL tab2.col0 * col2 - tab2.col2 AS col1 FROM tab2
----
162
2002
2964
query I rowsort
SELECT - - col0 + col0 * cor0.col1 - - col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1185
1711
8161
onlyif mysql # use DIV operator for integer division
query I rowsort label-3692
SELECT + - ( col1 ) DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3692
SELECT + - ( col1 ) / + col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 * col1 + col0 col2 FROM tab0 cor0
----
177528
329350
737098
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 - col1 col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - col0 * col2 + - col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT + - 43 * + col2 + - cor0.col0 FROM tab1 AS cor0
----
-2325
-2515
-4208
onlyif mysql # use DIV operator for integer division
query I rowsort label-3697
SELECT col0 DIV - cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3697
SELECT col0 / - cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + - col0 * col0 + - col0 AS col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT - col1 + + col1 * cor0.col0 + + col2 FROM tab2 AS cor0
----
1364
213
4569
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - col1 col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col2 * + col1 + + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT - + ( + col2 ) * - col1 AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL ( + 54 ) * - col1 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1378
-530
-689
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 85ee76cb25486c31b8f0abeb3f8683dc
query I rowsort
SELECT 78 + - col1 AS col2 FROM tab1 AS cor0
----
52
65
68
query I rowsort
SELECT - ( - 64 ) AS col0 FROM tab2 AS cor0
----
64
64
64
query I rowsort
SELECT ALL ( + col2 * - col0 ) AS col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT + 89 + col0 FROM tab0 cor0
----
113
124
178
query I rowsort
SELECT + - 40 + - cor0.col1 * + col2 AS col2 FROM tab2 cor0
----
-1574
-686
-877
query I rowsort
SELECT - col2 * + col0 + col2 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT col1 * col2 + + col1 AS col2 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT + 85 * col0 FROM tab0
----
2040
2975
7565
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3713
SELECT + CAST( + 10 AS SIGNED ) FROM tab1
----
10
10
10
skipif mysql # not compatible
query I rowsort label-3713
SELECT + CAST ( + 10 AS INTEGER ) FROM tab1
----
10
10
10
query I rowsort
SELECT ( + ( tab1.col2 ) ) FROM tab1
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * col2 col1 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col1 - col1 * + col1 col1 FROM tab0 AS cor0
----
-7334
-8279
-9347
query I rowsort
SELECT DISTINCT - col1 + col2 AS col0 FROM tab0 cor0 WHERE NULL BETWEEN NULL AND col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3718
SELECT ALL col2 DIV - tab1.col0 AS col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL col2 / - tab1.col0 AS col0 FROM tab1
----
-1
-18
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3719
SELECT col1 DIV col0 + + col1 + col1 AS col2 FROM tab2
----
118
34
66
skipif mysql # not compatible
query I rowsort label-3719
SELECT col1 / col0 + + col1 + col1 AS col2 FROM tab2
----
118
34
66
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( col1 * - col2 * - col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3721
SELECT DISTINCT - tab2.col2 * + col1 DIV + tab2.col1 + + col2 + col0 AS col2 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT - tab2.col2 * + col1 / + tab2.col1 + + col2 + col0 AS col2 FROM tab2
----
7
78
79
query I rowsort
SELECT + col0 * tab0.col0 - col1 AS col1 FROM tab0
----
1128
490
7830
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + col0 * tab2.col0 + + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3724
SELECT DISTINCT - col1 + col0 DIV - col1 AS col1 FROM tab2
----
-21
-31
-60
skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT - col1 + col0 / - col1 AS col1 FROM tab2
----
-21
-31
-60
query I rowsort
SELECT + + col2 * col0 AS col1 FROM tab0 cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col0 col1 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + col1 * + cor0.col0 * + cor0.col2 col1 FROM tab1 AS cor0
----
36423
4158
99744
query I rowsort
SELECT + - col1 * + col2 + col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT 94 * col1 + - col0 AS col1 FROM tab0 AS cor0
----
8060
8465
9083
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) + - col2 * 24 col0 FROM tab0 AS cor0
----
-1886
-23
-759
query I rowsort
SELECT ALL 26 * + 3 + col1 + col0 AS col1 FROM tab1 AS cor0
----
107
152
171
query I rowsort
SELECT - + col0 + + 65 AS col2 FROM tab0 AS cor0
----
-24
30
41
query I rowsort
SELECT ALL - 40 + col0 * + col2 FROM tab2 AS cor0
----
149
1988
2962
query I rowsort
SELECT ALL + col2 * col2 + col0 AS col1 FROM tab1
----
2919
3313
9296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3735
SELECT col1 + CAST( NULL AS SIGNED ) + + tab2.col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3735
SELECT col1 + CAST ( NULL AS INTEGER ) + + tab2.col1 FROM tab2
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614
query I rowsort
SELECT col0 * 84 * - tab1.col0 FROM tab1
----
-344064
-537600
-756
query I rowsort
SELECT - ( - tab0.col1 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT + - 17 AS col0 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e
query I rowsort
SELECT ALL + 4 AS col0 FROM tab0
----
4
4
4
query I rowsort
SELECT DISTINCT - col0 + 89 FROM tab0 AS cor0
----
0
54
65
query I rowsort
SELECT cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - cor0.col2 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT ALL 87 FROM tab0, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT DISTINCT col0 + 70 FROM tab0 AS cor0
----
105
159
94
query I rowsort
SELECT cor0.col2 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3747
SELECT CAST( NULL AS DECIMAL ) / - col2 + + col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3747
SELECT CAST ( NULL AS REAL ) / - col2 + + col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 col2 FROM tab0, tab0 cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT + col0 * col2 + + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL 37 * - col0 AS col0 FROM tab0 AS cor0
----
-1295
-3293
-888
onlyif mysql # use DIV operator for integer division
query I rowsort label-3751
SELECT ALL 35 DIV + col0 col2 FROM tab1
----
0
0
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL 35 / + col0 col2 FROM tab1
----
0
0
11
query I rowsort
SELECT ALL + 80 AS col1 FROM tab1
----
80
80
80
query I rowsort
SELECT - cor0.col2 * col2 + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3754
SELECT - col1 + - CAST( NULL AS SIGNED ) - 45 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3754
SELECT - col1 + - CAST ( NULL AS INTEGER ) - 45 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col1 * - 88 FROM tab2 AS cor0
----
1496
2728
5192
query I rowsort
SELECT DISTINCT - col1 + ( col0 + + col1 ) FROM tab1
----
3
64
80
query I rowsort
SELECT 45 - 27 FROM tab0, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT DISTINCT - cor0.col2 * + 38 AS col0 FROM tab0 AS cor0
----
-1254
-3116
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-3759
SELECT DISTINCT + col0 + col0 + - col1 DIV + col0 FROM tab2 AS cor0
----
10
156
158
skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT + col0 + col0 + - col1 / + col0 FROM tab2 AS cor0
----
10
156
158
query I rowsort
SELECT + col1 + ( + 37 ) AS col1 FROM tab1 AS cor0
----
47
50
63
query I rowsort
SELECT - col2 * + 2 + cor0.col0 AS col2 FROM tab2 cor0
----
-47
26
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-3762
SELECT DISTINCT col2 DIV + col1 + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4091
-6393
-7
skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT col2 / + col1 + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4091
-6393
-7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3763
SELECT ALL - col0 - ( + cor0.col2 + col1 ) * + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-1014
-1805
-5093
skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL - col0 - ( + cor0.col2 + col1 ) * + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-1014
-1805
-5093
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + col2 * - 11 FROM tab1 AS cor0
----
-1056
-594
-627
query I rowsort
SELECT DISTINCT col0 * ( + col0 ) AS col1 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3767
SELECT col0 * + CAST( 43 AS SIGNED ) - col0 col1 FROM tab1 AS cor0
----
126
2688
3360
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3767
SELECT col0 * + CAST ( 43 AS INTEGER ) - col0 col1 FROM tab1 AS cor0
----
126
2688
3360
query I rowsort
SELECT ALL - col2 + 91 AS col1 FROM tab2 cor0
----
53
64
65
query I rowsort
SELECT + + cor0.col2 * 98 AS col1 FROM tab1 AS cor0
----
5292
5586
9408
query I rowsort
SELECT DISTINCT col0 + ( - col2 ) * col2 * col0 FROM tab1
----
-207872
-737200
-8745
query I rowsort
SELECT ALL col0 + + 28 FROM tab0
----
117
52
63
query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-3773
SELECT - col2 DIV + 12 FROM tab0
----
-2
-6
0
skipif mysql # not compatible
query I rowsort label-3773
SELECT - col2 / + 12 FROM tab0
----
-2
-6
0
query I rowsort
SELECT - + col1 * ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + - col1 + col1 + - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + col0 + - ( col0 ) FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3777
SELECT - + col2 + + col2 DIV col2 - + 76 DIV + 50 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-3777
SELECT - + col2 + + col2 / col2 - + 76 / + 50 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3778
SELECT + 19 + + cor0.col1 DIV cor0.col2 + col0 FROM tab0 AS cor0
----
109
151
45
skipif mysql # not compatible
query I rowsort label-3778
SELECT + 19 + + cor0.col1 / cor0.col2 + col0 FROM tab0 AS cor0
----
109
151
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3779
SELECT CAST( - col1 AS SIGNED ) * + col1 + + col1 * col1 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3779
SELECT CAST ( - col1 AS INTEGER ) * + col1 + + col1 * col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT cor0.col0 + 95 - + col0 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-481
-865
20
query I rowsort
SELECT 47 * + 1 AS col1 FROM tab1 AS cor0
----
47
47
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-3782
SELECT + - 0 * - cor0.col2 + col1 DIV ( 99 ) + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-3782
SELECT + - 0 * - cor0.col2 + col1 / ( 99 ) + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT col2 * + ( cor0.col0 ) FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-3784
SELECT + - cor0.col1 DIV cor0.col1 + - col0 FROM tab1 AS cor0
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-3784
SELECT + - cor0.col1 / cor0.col1 + - col0 FROM tab1 AS cor0
----
-4
-65
-81
query I rowsort
SELECT DISTINCT - 68 * - col1 FROM tab0 AS cor0
----
5848
6188
6596
query I rowsort
SELECT ALL + col0 * cor0.col2 + col1 FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-3787
SELECT DISTINCT col2 + col0 DIV - 78 AS col2 FROM tab1 cor0
----
54
57
95
skipif mysql # not compatible
query I rowsort label-3787
SELECT DISTINCT col2 + col0 / - 78 AS col2 FROM tab1 cor0
----
54
57
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col0 * col0 col1 FROM tab1
----
35
4106
6413
query I rowsort
SELECT - + col0 * - col0 * col0 FROM tab0 AS cor0
----
13824
42875
704969
query I rowsort
SELECT DISTINCT - cor0.col2 * + 16 * 29 AS col1 FROM tab2, tab0 AS cor0
----
-15312
-38048
-464
query I rowsort
SELECT - + col2 * - 56 AS col2 FROM tab2 cor0
----
1456
1512
2128
query I rowsort
SELECT DISTINCT - + cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT 30 * + col0 FROM tab0
----
1050
2670
720
onlyif mysql # use DIV operator for integer division
query I rowsort label-3794
SELECT DISTINCT + cor0.col2 * - col0 - col1 DIV cor0.col0 FROM tab1 AS cor0
----
-170
-3648
-7680
skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT + cor0.col2 * - col0 - col1 / cor0.col0 FROM tab1 AS cor0
----
-170
-3648
-7680
query I rowsort
SELECT ALL - col1 * + col1 + - col1 AS col1 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT DISTINCT + - cor0.col1 * + col0 - + 5 AS col1 FROM tab1 AS cor0
----
-1045
-645
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col1 * 47 col1 FROM tab2 cor0
----
-1426
-2714
-782
query I rowsort
SELECT DISTINCT ( + tab2.col1 ) FROM tab2
----
17
31
59
query I rowsort
SELECT 94 + + col0 AS col1 FROM tab0
----
118
129
183
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 + + 39 col1 FROM tab1, tab0 cor0, tab2, tab2 AS cor1
----
81 values hashing to 1119aacaba862d86ec9bf1dfdca6a6ce
query I rowsort
SELECT - + 42 * cor0.col2 + - col2 FROM tab1 AS cor0
----
-2322
-2451
-4128
query I rowsort
SELECT - 20 + - col1 * col2 FROM tab2
----
-1554
-666
-857
query I rowsort
SELECT - col2 - + col1 * - ( + 37 + col1 ) * cor0.col1 FROM tab1 AS cor0
----
42534
4643
8354
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3804
SELECT - ( col0 ) - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3804
SELECT - ( col0 ) - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab2, tab1 cor0, tab1 AS cor1
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-3806
SELECT + col1 * 88 + col2 DIV + cor0.col2 FROM tab0 AS cor0
----
7569
8009
8537
skipif mysql # not compatible
query I rowsort label-3806
SELECT + col1 * 88 + col2 / + cor0.col2 FROM tab0 AS cor0
----
7569
8009
8537
query I rowsort
SELECT col2 * - col2 + - 78 + + col0 FROM tab1 AS cor0
----
-2991
-3263
-9214
query I rowsort
SELECT DISTINCT + col0 * ( - col1 ) AS col0 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-3809
SELECT + col0 DIV 7 + + col2 DIV tab1.col2 AS col0 FROM tab1
----
1
10
12
skipif mysql # not compatible
query I rowsort label-3809
SELECT + col0 / 7 + + col2 / tab1.col2 AS col0 FROM tab1
----
1
10
12
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3810
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 34 / - col1 - + col0 * + col1 col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 34 / - col1 - + col0 * + col1 col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - 82 * col0 AS col0 FROM tab0 AS cor0
----
-1968
-2870
-7298
query I rowsort
SELECT - 89 * + 70 * - col1 AS col1 FROM tab1 AS cor0
----
161980
62300
80990
query I rowsort
SELECT - + ( col2 ) * + col0 * - col0 AS col1 FROM tab2 AS cor0
----
1323
158184
237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-3814
SELECT + + ( - 62 ) DIV col0 AS col1 FROM tab1 AS cor0
----
-20
0
0
skipif mysql # not compatible
query I rowsort label-3814
SELECT + + ( - 62 ) / col0 AS col1 FROM tab1 AS cor0
----
-20
0
0
query I rowsort
SELECT ( col0 ) + + col2 * ( + col2 * - col1 + + 18 * - col1 ) AS col1 FROM tab2
----
-36097
-37658
-67418
query I rowsort
SELECT ALL 19 * + 39 AS col1 FROM tab0
----
741
741
741
query I rowsort
SELECT ALL + col2 * + ( col0 ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT 62 + 69 FROM tab2 AS cor0
----
131
131
131
query I rowsort
SELECT + col2 + col0 + col2 * col0 FROM tab0 AS cor0
----
71
7469
849
query I rowsort
SELECT DISTINCT - cor0.col1 + - 37 * col1 FROM tab0 AS cor0
----
-3268
-3458
-3686
query I rowsort
SELECT + col2 * - 40 AS col1 FROM tab1 cor0
----
-2160
-2280
-3840
query I rowsort
SELECT DISTINCT + col0 + + col1 + + col1 AS col1 FROM tab2 AS cor0
----
113
196
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-3823
SELECT - cor0.col1 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3823
SELECT - cor0.col1 / col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 * col0 col1 FROM tab0 AS cor0
----
-1068
-288
-420
query I rowsort
SELECT col2 + - cor0.col0 * + col0 AS col1 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT DISTINCT - + ( + col0 ) + - col1 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT ALL - col0 + - col0 * - col1 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-13600
-2031
-6464
query I rowsort
SELECT 8 * col2 FROM tab0 AS cor0
----
264
656
8
query I rowsort
SELECT DISTINCT 63 AS col1 FROM tab2
----
63
query I rowsort
SELECT + col0 - + col0 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + col2 + - col0 * 40 + + col0 * + col1 FROM tab1 AS cor0
----
-1863
-2064
12
query I rowsort
SELECT cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3833
SELECT + col2 * CAST( + col1 AS SIGNED ) * - col2 + - col1 AS col2 FROM tab2 AS cor0
----
-22630
-24565
-39943
skipif mysql # not compatible
query I rowsort label-3833
SELECT + col2 * CAST ( + col1 AS INTEGER ) * - col2 + - col1 AS col2 FROM tab2 AS cor0
----
-22630
-24565
-39943
query I rowsort
SELECT DISTINCT - + col0 + - col2 + + col2 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + + col0 + col0 * 56 * col1 FROM tab2 AS cor0
----
12159
257790
75287
query I rowsort
SELECT DISTINCT col0 * ( - col2 ) + col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL - col1 * cor0.col1 - col0 AS col1 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT DISTINCT + + cor0.col1 * + cor0.col2 * 28 FROM tab2 cor0
----
18088
23436
42952
query I rowsort
SELECT ALL + col1 + + col1 * col1 * - col1 FROM tab1 AS cor0
----
-17550
-2184
-990
query I rowsort
SELECT tab1.col2 * + ( col0 ) * - col0 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT - 57 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b
onlyif mysql # use DIV operator for integer division
query I rowsort label-3842
SELECT col0 DIV - ( col0 ) FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3842
SELECT col0 / - ( col0 ) FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + cor0.col1 + - col2 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
100
139
193
query I rowsort
SELECT ALL ( + col2 ) * - col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + ( + ( - col1 ) ) + 73 FROM tab0 AS cor0
----
-13
-18
-24
query I rowsort
SELECT ALL col2 * cor0.col2 + col2 * + 67 AS col0 FROM tab0 cor0
----
12218
3300
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3847
SELECT ALL + col2 * - CAST( + 15 AS SIGNED ) + col0 + - ( col0 ) AS col2 FROM tab2
----
-390
-405
-570
skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL + col2 * - CAST ( + 15 AS INTEGER ) + col0 + - ( col0 ) AS col2 FROM tab2
----
-390
-405
-570
query I rowsort
SELECT ALL tab1.col2 + + tab1.col1 * + ( col0 ) + + col2 * + col2 FROM tab1
----
10352
3048
3946
query I rowsort
SELECT tab2.col2 * - ( col1 ) AS col1 FROM tab2
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 * col2 col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT + - col2 - col1 * col0 FROM tab2 cor0
----
-1381
-244
-4628
query I rowsort
SELECT - col2 * col2 + col0 * ( col0 * col1 ) FROM tab2 AS cor0
----
104653
358280
790
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 63 + col2 * + col2 col0 FROM tab2 AS cor0
----
1507
739
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-3854
SELECT ALL + + 78 DIV col0 FROM tab1 cor0
----
0
1
26
skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL + + 78 / col0 FROM tab1 cor0
----
0
1
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 * + col1 col0 FROM tab2 AS cor0
----
-1088
-1984
-3776
query I rowsort
SELECT ALL + + col2 * col1 AS col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT - 12 - col1 FROM tab0
----
-103
-109
-98
query I rowsort
SELECT ALL - col0 + + cor0.col0 * col1 FROM tab0 AS cor0
----
2040
3360
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-3859
SELECT ALL + ( col0 ) * - col2 + col2 DIV col2 AS col2 FROM tab0
----
-34
-7297
-791
skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL + ( col0 ) * - col2 + col2 / col2 AS col2 FROM tab0
----
-34
-7297
-791
query I rowsort
SELECT - - col0 * 74 + col0 FROM tab1 AS cor0
----
225
4800
6000
query I rowsort
SELECT - col2 * - 45 AS col0 FROM tab2 cor0
----
1170
1215
1710
query I rowsort
SELECT + 97 AS col1 FROM tab2
----
97
97
97
query I rowsort
SELECT + + 42 AS col2 FROM tab2 AS cor0
----
42
42
42
query I rowsort
SELECT ALL + - 82 + - col2 FROM tab1 AS cor0
----
-136
-139
-178
query I rowsort
SELECT + 97 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123
query I rowsort
SELECT ALL - 62 * col2 + col2 AS col0 FROM tab2 AS cor0
----
-1586
-1647
-2318
query I rowsort
SELECT ALL - - col0 - + ( col2 ) FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT - - 62 AS col0 FROM tab1 AS cor0
----
62
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3869
SELECT - CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-3869
SELECT - CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - col2 + + 77 + + col0 FROM tab0 AS cor0
----
111
68
84
query I rowsort
SELECT ALL - - col1 * col0 + - cor0.col0 - + col1 * col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - tab0.col2 + + ( col2 + tab0.col0 ) * - 95 AS col0 FROM tab0
----
-16327
-3421
-5448
query I rowsort
SELECT DISTINCT - col0 * - 63 FROM tab2
----
441
4914
4977
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 61 col0 FROM tab0
----
-143
-62
-94
query I rowsort
SELECT 64 AS col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 * col2 + + col1 col1 FROM tab1
----
-36470
-4186
-99827
onlyif mysql # use DIV operator for integer division
query I rowsort label-3877
SELECT ALL col0 * - col0 + col0 DIV 76 FROM tab1 AS cor0
----
-4096
-6399
-9
skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL col0 * - col0 + col0 / 76 FROM tab1 AS cor0
----
-4096
-6399
-9
query I rowsort
SELECT DISTINCT + + 87 + col2 AS col1 FROM tab1 AS cor0
----
141
144
183
query I rowsort
SELECT ALL - 48 FROM tab1 cor0
----
-48
-48
-48
query I rowsort
SELECT DISTINCT - cor0.col2 + col0 + + col2 AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + - 25 * + 30 + col1 + + col0 FROM tab0 AS cor0
----
-570
-618
-640
query I rowsort
SELECT ALL - col0 + ( + col0 ) AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 * - 77 AS col0 FROM tab0
----
2541
6314
77
query I rowsort
SELECT DISTINCT 93 * col1 AS col0 FROM tab2
----
1581
2883
5487
query I rowsort
SELECT ( - 98 * + col0 ) AS col1 FROM tab2
----
-686
-7644
-7742
query I rowsort
SELECT DISTINCT - cor0.col2 * col2 * - col0 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT 10 * cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to daf30803acc158430e9342e85963898a
query I rowsort
SELECT DISTINCT - + 1 FROM tab0 cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 col0 FROM tab2 AS cor0
----
-59
-59
-59
query I rowsort
SELECT ALL + 41 * - col2 AS col1 FROM tab1
----
-2214
-2337
-3936
query I rowsort
SELECT - 23 * - col2 AS col2 FROM tab0 cor0
----
1886
23
759
query I rowsort
SELECT col2 + col2 * 85 FROM tab1 AS cor0
----
4644
4902
8256
query I rowsort
SELECT 52 * - col2 AS col0 FROM tab1 cor0
----
-2808
-2964
-4992
onlyif mysql # use DIV operator for integer division
query I rowsort label-3894
SELECT - cor0.col1 + - col1 DIV col1 FROM tab2 AS cor0
----
-18
-32
-60
skipif mysql # not compatible
query I rowsort label-3894
SELECT - cor0.col1 + - col1 / col1 FROM tab2 AS cor0
----
-18
-32
-60
query I rowsort
SELECT + cor0.col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT tab0.col1 + + 67 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to a4c5bf82c6e4a62bca64c27bb7120d7e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - cor0.col2 ) col0 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT + - col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - + col0 + - col2 * col0 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT ALL - - col0 * col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL - col0 + ( - col1 ) AS col0 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-3902
SELECT + col1 DIV + 63 + + 50 * col0 AS col0 FROM tab1 AS cor0
----
150
3200
4000
skipif mysql # not compatible
query I rowsort label-3902
SELECT + col1 / + 63 + + 50 * col0 AS col0 FROM tab1 AS cor0
----
150
3200
4000
query I rowsort
SELECT - - col0 * col0 * col0 FROM tab0 AS cor0
----
13824
42875
704969
query I rowsort
SELECT ALL - col1 * 97 + ( + col2 ) * col1 FROM tab2 AS cor0
----
-1003
-2170
-4189
query I rowsort
SELECT - col0 * + col0 + col2 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT DISTINCT + - col2 * ( col0 ) + col2 + col1 * col1 FROM tab0 AS cor0
----
1065
6637
9375
query I rowsort
SELECT ALL col1 * + 96 * - col1 FROM tab1 AS cor0
----
-16224
-64896
-9600
query I rowsort
SELECT + col2 * - ( - col2 ) AS col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT 31 * + ( - col1 ) FROM tab0 AS cor0
----
-2666
-2821
-3007
query I rowsort
SELECT DISTINCT + 7 * + ( + col2 ) FROM tab0 AS cor0
----
231
574
7
query I rowsort
SELECT DISTINCT + 50 FROM tab0, tab2 AS cor0
----
50
query I rowsort
SELECT + col1 * 1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + + ( col2 ) * + col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - col2 + 84 + + col1 AS col0 FROM tab1
----
1
37
56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3915
SELECT - col1 * CAST( + col2 AS SIGNED ) FROM tab2 cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-3915
SELECT - col1 * CAST ( + col2 AS INTEGER ) FROM tab2 cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3916
SELECT - col0 + CAST( NULL AS DECIMAL ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3916
SELECT - col0 + CAST ( NULL AS REAL ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + col2 * ( col0 ) AS col2 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT ALL - 35 FROM tab2
----
-35
-35
-35
query I rowsort
SELECT DISTINCT cor0.col2 + - 98 FROM tab1 AS cor0
----
-2
-41
-44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 53 col2 FROM tab1 AS cor0
----
2862
3021
5088
query I rowsort
SELECT ALL cor0.col1 * ( col2 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - col0 + + 52 * col0 * - col0 FROM tab2 AS cor0
----
-2555
-316446
-324611
query I rowsort
SELECT + cor0.col2 * col0 + - cor0.col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT + 92 * col0 + col1 * col1 FROM tab1 cor0
----
5988
7529
952
query I rowsort
SELECT DISTINCT - 14 * col1 AS col0 FROM tab2
----
-238
-434
-826
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3926
SELECT - ( - col0 + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3926
SELECT - ( - col0 + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 25 AS col1 FROM tab1
----
-25
-25
-25
query I rowsort
SELECT - col2 + - cor0.col1 * ( col0 ) AS col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT - 24 + + col0 * col1 AS col0 FROM tab2 AS cor0
----
1319
193
4578
query I rowsort
SELECT + + 58 + col0 AS col0 FROM tab2 AS cor0
----
136
137
65
query I rowsort
SELECT DISTINCT tab2.col1 * - col2 + 46 AS col1 FROM tab2
----
-1488
-600
-791
skipif mysql # not compatible
query I rowsort
SELECT + col0 * col1 + + CAST ( col0 AS REAL ) / - col0 FROM tab0
----
2063
3394
8098
onlyif mysql # use DIV operator for integer division
query I rowsort label-3933
SELECT + + col1 + + col1 DIV col0 FROM tab1 AS cor0
----
10
13
34
skipif mysql # not compatible
query I rowsort label-3933
SELECT + + col1 + + col1 / col0 FROM tab1 AS cor0
----
10
13
34
query I rowsort
SELECT 57 + tab1.col2 * - 84 FROM tab1
----
-4479
-4731
-8007
query I rowsort
SELECT ALL col1 * + 9 FROM tab0 cor0
----
774
819
873
query I rowsort
SELECT DISTINCT - - col0 * 14 + - col2 FROM tab1 AS cor0
----
-12
1024
839
query I rowsort
SELECT ALL + cor0.col2 + - col0 + + cor0.col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + col2 + 32 AS col1 FROM tab1 AS cor0
----
128
86
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3939
SELECT - col2 * 65 * + ( col1 ) + 54 DIV - col0 FROM tab0 cor0
----
-184472
-485030
-6306
skipif mysql # not compatible
query I rowsort label-3939
SELECT - col2 * 65 * + ( col1 ) + 54 / - col0 FROM tab0 cor0
----
-184472
-485030
-6306
onlyif mysql # use DIV operator for integer division
query I rowsort label-3940
SELECT + cor0.col1 + + col1 * col0 DIV col0 AS col0 FROM tab1 AS cor0
----
20
26
52
skipif mysql # not compatible
query I rowsort label-3940
SELECT + cor0.col1 + + col1 * col0 / col0 AS col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT col1 * 35 AS col1 FROM tab1 AS cor0
----
350
455
910
query I rowsort
SELECT DISTINCT - + col2 * col0 - + col1 FROM tab1 cor0
----
-188
-3658
-7693
query I rowsort
SELECT + ( col0 ) + + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL - 96 - col2 FROM tab2
----
-122
-123
-134
query I rowsort
SELECT ALL + col0 + tab2.col0 - - col0 * - tab2.col1 AS col0 FROM tab2
----
-1185
-203
-4446
query I rowsort
SELECT DISTINCT ( col2 ) * col2 + col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ALL + + 13 AS col2 FROM tab2 AS cor0
----
13
13
13
query I rowsort
SELECT ALL ( col1 ) AS col1 FROM tab1 cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3949
SELECT DISTINCT - CAST( 25 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
-175
-1950
-1975
skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT - CAST ( 25 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
-175
-1950
-1975
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col0 AS REAL ) * + col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT 49 + col0 - 23 AS col1 FROM tab2 cor0
----
104
105
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-3952
SELECT + - 63 * col1 DIV + col2 col0 FROM tab0 AS cor0
----
-164
-6111
-69
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3952
SELECT + - 63 * col1 / + col2 col0 FROM tab0 AS cor0
----
-164
-6111
-69
query I rowsort
SELECT DISTINCT col1 * - cor0.col0 + col2 * 68 * - col2 AS col0 FROM tab2 AS cor0
----
-49789
-50570
-99535
onlyif mysql # use DIV operator for integer division
query I rowsort label-3954
SELECT - 81 DIV - col0 - CAST( - 62 AS SIGNED ) FROM tab2 AS cor0
----
63
63
73
skipif mysql # not compatible
query I rowsort label-3954
SELECT - 81 / - col0 - CAST ( - 62 AS INTEGER ) FROM tab2 AS cor0
----
63
63
73
query I rowsort
SELECT ALL 65 + col0 * + col1 FROM tab2 AS cor0
----
1408
282
4667
query I rowsort
SELECT + + col1 * cor0.col1 + + 34 FROM tab2 AS cor0
----
323
3515
995
query I rowsort
SELECT + + 46 * - col0 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1071
-1609
-4012
query I rowsort
SELECT DISTINCT col1 + col1 - - col2 FROM tab1
----
106
122
77
query I rowsort
SELECT + col0 * ( + col0 * col2 ) AS col1 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT DISTINCT + ( 14 ) AS col2 FROM tab2
----
14
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( col0 * - col2 )
----
query I rowsort
SELECT + col1 * + col2 FROM tab0 WHERE NULL < NULL
----
query I rowsort
SELECT DISTINCT col2 * - col1 - col1 AS col0 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT col0 * col0 - - col2 AS col1 FROM tab2
----
6110
6279
76
query I rowsort
SELECT ALL + col0 + cor0.col2 * + ( col0 ) AS col1 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL - ( + col2 ) + - ( ( - col2 ) ) * ( col1 ) AS col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT + ( col2 ) * + ( col1 ) - + col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT - - col2 + + col2 * col1 FROM tab2 AS cor0
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT col1 * + col1 * + col0 AS col0 FROM tab2 AS cor0
----
22831
271518
6727
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = ( NULL )
----
query I rowsort
SELECT ALL - col0 + - col1 * + col0 FROM tab2 cor0
----
-1422
-224
-4680
query I rowsort
SELECT cor0.col0 + + col1 AS col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT ALL col0 * col2 + + col1 * + col0 * col0 FROM tab2 AS cor0
----
109099
1708
360984
query I rowsort
SELECT ALL + col0 + + col0 * + col1 AS col1 FROM tab1
----
1120
704
81
query I rowsort
SELECT tab0.col1 + col1 * - col0 * col0 FROM tab0
----
-118728
-49450
-720720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 + - tab1.col2 col2 FROM tab1
----
-111
-163
-31
query I rowsort
SELECT - col0 * - col2 FROM tab2 WHERE NOT col1 + col1 NOT IN ( col1 + - col1 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= - col0 * col0
----
query I rowsort
SELECT + col2 * col2 * - col0 + tab1.col2 + + col2 FROM tab1
----
-207822
-737088
-8640
query I rowsort
SELECT - col0 + + col1 + col1 * - col2 AS col2 FROM tab2
----
-1553
-708
-813
query I rowsort
SELECT DISTINCT tab2.col0 + + col2 * - col1 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT col0 * + tab0.col1 * col0 - - tab0.col0 AS col1 FROM tab0
----
118860
49560
720900
query I rowsort
SELECT ALL col0 * + col2 * - col0 FROM tab2 WHERE NOT ( NULL ) < NULL
----
query I rowsort
SELECT DISTINCT col2 + + col2 * + col2 AS col2 FROM tab0
----
1122
2
6806
onlyif mysql # use DIV operator for integer division
query I rowsort label-3986
SELECT 42 + - col1 DIV col0 AS col2 FROM tab2 AS cor0
----
38
42
42
skipif mysql # not compatible
query I rowsort label-3986
SELECT 42 + - col1 / col0 AS col2 FROM tab2 AS cor0
----
38
42
42
query I rowsort
SELECT DISTINCT 35 FROM tab1, tab1 cor0
----
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 * col1 + + col1 col1 FROM tab0 AS cor0
----
8514
9009
9603
query I rowsort
SELECT - 9 FROM tab2, tab2 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a
query I rowsort
SELECT + col1 * col1 + col1 * + ( col0 ) AS col0 FROM tab0 AS cor0
----
12804
16380
9460
onlyif mysql # use DIV operator for integer division
query I rowsort label-3991
SELECT - - col1 DIV col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-3991
SELECT - - col1 / col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT DISTINCT col0 * - col0 + + col2 FROM tab2 AS cor0
----
-22
-6058
-6203
onlyif mysql # use DIV operator for integer division
query I rowsort label-3993
SELECT ALL - col0 DIV + col2 FROM tab0 cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL - col0 / + col2 FROM tab0 cor0
----
-1
-35
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3994
SELECT DISTINCT col2 DIV + 50 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT col2 / + 50 FROM tab2
----
0
query I rowsort
SELECT ALL ( col1 * col2 ) AS col2 FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 + col2 col2 FROM tab2
----
78
79
90
query I rowsort
SELECT - - col2 * ( + col0 ) FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3998
SELECT - + col0 - + CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3998
SELECT - + col0 - + CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col1 - + cor0.col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT + 90 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
query I rowsort
SELECT - tab1.col1 * tab1.col1 * 26 FROM tab1
----
-17576
-2600
-4394
query I rowsort
SELECT ALL col1 * + col2 + - 24 AS col0 FROM tab2
----
1510
622
813
onlyif mysql # use DIV operator for integer division
query I rowsort label-4003
SELECT ALL col2 DIV - tab2.col1 + 8 AS col0 FROM tab2
----
6
8
8
skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL col2 / - tab2.col1 + 8 AS col0 FROM tab2
----
6
8
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4004
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL - CAST ( NULL AS REAL ) FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT 4 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT cor0.col0 - col2 AS col1 FROM tab1 cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 + + col2 col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL + - col2 * col1 - + col1 * + col1 FROM tab0 AS cor0
----
-10234
-15743
-9506
query I rowsort
SELECT + cor0.col1 - - col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT col2 + + ( - col0 ) * - col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT - col1 * 55 AS col1 FROM tab0
----
-4730
-5005
-5335
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) - + col2 col1 FROM tab2
----
-21
33
4
query I rowsort
SELECT ALL ( + tab1.col0 + + col2 ) FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT - tab2.col1 AS col0 FROM tab2, tab0, tab0 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL tab0.col0 * + cor0.col0 FROM tab0, tab0 cor0
----
9 values hashing to 71e1c6f2098b2226c685e662111e4001
query I rowsort
SELECT - col0 * + col0 + col0 * - cor0.col2 AS col2 FROM tab0 cor0
----
-1260
-1368
-15219
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4017
SELECT + CAST( NULL AS DECIMAL ) + + 86 * + col1 + cor0.col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4017
SELECT + CAST ( NULL AS REAL ) + + 86 * + col1 + cor0.col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 40 + + col2 * col1 FROM tab1 AS cor0
----
1288
1444
610
query I rowsort
SELECT DISTINCT + 28 AS col2 FROM tab1 AS cor0
----
28
query I rowsort
SELECT - 25 + col0 AS col0 FROM tab0 AS cor0
----
-1
10
64
query I rowsort
SELECT ALL + ( + col2 ) + col2 * - cor0.col2 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT 32 * - col1 AS col1 FROM tab1 AS cor0
----
-320
-416
-832
query I rowsort
SELECT DISTINCT 0 * - col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - col2 * + col0 + + col0 * col2 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - 86 * - col1 AS col0 FROM tab0 AS cor0
----
-7396
-7826
-8342
onlyif mysql # use DIV operator for integer division
query I rowsort label-4026
SELECT DISTINCT + col0 DIV + col0 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT + col0 / + col0 FROM tab1 AS cor0
----
1
query I rowsort
SELECT - - col1 + col2 * col0 AS col1 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT cor0.col0 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + 40 AS col2 FROM tab0
----
40
query I rowsort
SELECT ALL - 76 * tab1.col0 FROM tab1
----
-228
-4864
-6080
query I rowsort
SELECT DISTINCT col1 * - cor0.col2 + - col2 AS col0 FROM tab2 cor0
----
-1560
-684
-864
query I rowsort
SELECT ALL - - ( + col1 ) * - col0 + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-15397
-2856
-3430
query I rowsort
SELECT - 2 * - col2 FROM tab2
----
52
54
76
query I rowsort
SELECT col2 + - 89 AS col1 FROM tab1 AS cor0
----
-32
-35
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4035
SELECT col2 DIV + tab0.col1 - col1 AS col0 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-4035
SELECT col2 / + tab0.col1 - col1 AS col0 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT - + cor0.col0 + - 51 FROM tab0 AS cor0
----
-140
-75
-86
query I rowsort
SELECT - col0 + + ( 12 * col1 ) AS col1 FROM tab1 AS cor0
----
309
56
76
query I rowsort
SELECT + col0 + - col0 * - col2 AS col1 FROM tab0 AS cor0
----
70
7387
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 23 col0 FROM tab1 AS cor0
----
-33
-36
-49
query I rowsort
SELECT DISTINCT - - cor0.col0 * - col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - col0 + 35 AS col0 FROM tab0 AS cor0
----
-54
0
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-4042
SELECT ALL tab1.col2 DIV col0 AS col0 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL tab1.col2 / col0 AS col0 FROM tab1
----
0
1
18
query I rowsort
SELECT col0 + - ( 60 ) FROM tab0 AS cor0
----
-25
-36
29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4044
SELECT + - col0 - + CAST( + col0 AS SIGNED ) * - col1 * - col0 AS col2 FROM tab0 cor0
----
-118860
-49560
-720900
skipif mysql # not compatible
query I rowsort label-4044
SELECT + - col0 - + CAST ( + col0 AS INTEGER ) * - col1 * - col0 AS col2 FROM tab0 cor0
----
-118860
-49560
-720900
query I rowsort
SELECT + col1 * col1 - col2 * - col0 AS col2 FROM tab1 AS cor0
----
3748
7849
838
query I rowsort
SELECT ALL col1 - 56 AS col2 FROM tab1 AS cor0
----
-30
-43
-46
query I rowsort
SELECT - - col2 + cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-4048
SELECT + col2 DIV - col0 + col2 AS col2 FROM tab2 AS cor0
----
24
26
38
skipif mysql # not compatible
query I rowsort label-4048
SELECT + col2 / - col0 + col2 AS col2 FROM tab2 AS cor0
----
24
26
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 col1 FROM tab2, tab0 cor0, tab1, tab1 AS cor1
----
81 values hashing to c569638e8a09ff819458d62ddbde994c
query I rowsort
SELECT DISTINCT col1 + cor0.col0 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL + + col2 - - col1 AS col1 FROM tab2 cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-4052
SELECT ALL col0 + col1 DIV col2 FROM tab0 AS cor0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-4052
SELECT ALL col0 + col1 / col2 FROM tab0 AS cor0
----
132
26
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + col2 col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + cor0.col2 - col0 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT + + col1 + col2 * + col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT col0 * + col2 + col2 * col0 AS col0 FROM tab2 AS cor0
----
378
4056
6004
query I rowsort
SELECT DISTINCT - col2 + col2 * col1 AS col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT ALL - + col2 + col0 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT ALL col1 * col0 * + col1 - col2 FROM tab2
----
22793
271492
6700
onlyif mysql # use DIV operator for integer division
query I rowsort label-4060
SELECT col0 * - col1 + + tab2.col2 * tab2.col2 DIV col0 AS col1 FROM tab2
----
-113
-1325
-4594
skipif mysql # not compatible
query I rowsort label-4060
SELECT col0 * - col1 + + tab2.col2 * tab2.col2 / col0 AS col1 FROM tab2
----
-113
-1325
-4594
query I rowsort
SELECT DISTINCT + col0 * col0 - col2 AS col0 FROM tab2
----
22
6058
6203
query I rowsort
SELECT ALL + col1 * col2 - cor0.col2 FROM tab2 cor0
----
1508
608
810
query I rowsort
SELECT col2 * - tab0.col2 * - col2 - + tab0.col2 FROM tab0
----
0
35904
551286
query I rowsort
SELECT DISTINCT col0 * + col2 + + col1 FROM tab2
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-4065
SELECT col2 * + col2 + col0 + - col2 DIV - tab0.col2 AS col0 FROM tab0
----
1114
37
6814
skipif mysql # not compatible
query I rowsort label-4065
SELECT col2 * + col2 + col0 + - col2 / - tab0.col2 AS col0 FROM tab0
----
1114
37
6814
query I rowsort
SELECT - col1 * col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT DISTINCT + col1 - + col0 AS col2 FROM tab0 AS cor0
----
2
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 + col2 * col0 col0 FROM tab2 AS cor0
----
-1453
-772
2713
query I rowsort
SELECT col2 - col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - tab2.col1 FROM tab0 cor0 CROSS JOIN tab2
----
-17
-31
-59
query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <= NULL
----
query I rowsort
SELECT ALL 84 * col1 AS col0 FROM tab1
----
1092
2184
840
query I rowsort
SELECT DISTINCT + + col0 - - col0 * col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT - col1 + - col2 * - col0 AS col1 FROM tab0
----
-62
706
7207
query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE ( + cor0.col2 ) NOT BETWEEN ( + cor0.col2 ) AND ( NULL )
----
query I rowsort
SELECT ALL col0 + col2 * + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT col1 + col2 * col2 * - col1 AS col0 FROM tab1 AS cor0
----
-119795
-32480
-75790
query I rowsort
SELECT ALL 51 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT 30 + + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 76432e94f1a83d1f7a61210a286babca
onlyif mysql # use DIV operator for integer division
query I rowsort label-4080
SELECT DISTINCT - ( + cor0.col0 ) DIV 34 + col0 FROM tab1 AS cor0
----
3
63
78
skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT - ( + cor0.col0 ) / 34 + col0 FROM tab1 AS cor0
----
3
63
78
query I rowsort
SELECT DISTINCT - - 48 AS col0 FROM tab1 AS cor0
----
48
query I rowsort
SELECT ( - 80 ) FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4083
SELECT + + cor0.col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4083
SELECT + + cor0.col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * 38 FROM tab1 cor0
----
114
2432
3040
query I rowsort
SELECT ALL 91 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT DISTINCT + col1 * + 38 FROM tab0 AS cor0
----
3268
3458
3686
query I rowsort
SELECT DISTINCT + tab2.col1 * col1 + - col2 FROM tab2
----
251
3455
934
onlyif mysql # use DIV operator for integer division
query I rowsort label-4088
SELECT + col2 DIV + col1 + col2 AS col0 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-4088
SELECT + col2 / + col1 + col2 AS col0 FROM tab0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4089
SELECT 4 DIV 18 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4089
SELECT 4 / 18 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL + col2 + col2 + tab1.col1 AS col0 FROM tab1
----
124
134
205
query I rowsort
SELECT ALL ( - col2 ) * col0 + - 57 FROM tab1
----
-219
-3705
-7737
query I rowsort
SELECT + 33 * + 32 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
1063
1134
1135
query I rowsort
SELECT - - col0 * col1 + cor0.col1 FROM tab1 cor0
----
104
1053
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL 55 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT DISTINCT - 63 AS col0 FROM tab1 AS cor0
----
-63
query I rowsort
SELECT DISTINCT - 4 * 58 FROM tab0 AS cor0
----
-232
query I rowsort
SELECT - 94 * - col2 AS col0 FROM tab1 AS cor0
----
5076
5358
9024
query I rowsort
SELECT DISTINCT 40 + - col2 AS col0 FROM tab1 AS cor0
----
-14
-17
-56
onlyif mysql # use DIV operator for integer division
query I rowsort label-4100
SELECT - - col1 DIV + col0 + 57 FROM tab2 AS cor0
----
57
57
61
skipif mysql # not compatible
query I rowsort label-4100
SELECT - - col1 / + col0 + 57 FROM tab2 AS cor0
----
57
57
61
query I rowsort
SELECT ALL + col1 + cor0.col0 * 89 FROM tab2 cor0
----
654
7001
7048
query I rowsort
SELECT DISTINCT - col0 * - cor0.col0 + ( cor0.col2 ) FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT DISTINCT - + col2 + col0 * col1 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT - cor0.col2 + - col0 * - col1 AS col1 FROM tab1 AS cor0
----
24
583
944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4105
SELECT + CAST( + 60 AS SIGNED ) - + col1 * + col1 FROM tab1
----
-109
-40
-616
skipif mysql # not compatible
query I rowsort label-4105
SELECT + CAST ( + 60 AS INTEGER ) - + col1 * + col1 FROM tab1
----
-109
-40
-616
query I rowsort
SELECT + 23 * col0 + cor0.col0 FROM tab2 AS cor0
----
168
1872
1896
query I rowsort
SELECT cor0.col0 * col1 + + col0 * col1 AS col0 FROM tab1 AS cor0
----
1280
156
2080
query I rowsort
SELECT - + cor0.col0 + col0 * col0 FROM tab2 AS cor0
----
42
6006
6162
onlyif mysql # use DIV operator for integer division
query I rowsort label-4109
SELECT 13 DIV + col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4109
SELECT 13 / + col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * + col1 + - col2 FROM tab1 cor0
----
43
622
73
query I rowsort
SELECT ALL tab2.col2 * + 95 FROM tab2, tab2 AS cor0
----
9 values hashing to 93aae9329d7ccefd5cd3d88a62ed5aca
onlyif mysql # use DIV operator for integer division
query I rowsort label-4112
SELECT + cor0.col0 + + col2 DIV - col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4112
SELECT + cor0.col0 + + col2 / - col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT 98 * col2 - col0 AS col1 FROM tab2 cor0
----
2470
2639
3645
query I rowsort
SELECT - col0 + + ( + col0 ) AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col2 * - col2 * - 65 FROM tab1 AS cor0
----
189540
211185
599040
query I rowsort
SELECT - + col2 + ( col0 * col0 ) + col0 AS col1 FROM tab1 AS cor0
----
-42
4103
6384
query I rowsort
SELECT + - col0 * 4 * + col0 FROM tab0 AS cor0
----
-2304
-31684
-4900
query I rowsort
SELECT + cor1.col2 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT tab1.col2 + col1 AS col1 FROM tab1
----
109
67
80
query I rowsort
SELECT 55 AS col0 FROM tab0
----
55
55
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 30 col0 FROM tab2 AS cor0
----
30
30
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 18 * ( + col0 ) * col0 col0 FROM tab0
----
-10282
-142487
-21953
query I rowsort
SELECT + col0 * + 6 FROM tab1 cor0
----
18
384
480
query I rowsort
SELECT col0 + + col2 * 53 FROM tab2
----
1438
1456
2093
query I rowsort
SELECT col0 * col0 + - col0 + + col2 FROM tab2
----
6032
6200
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4126
SELECT ALL - - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL - - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - - col1 + col1 AS col0 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT col1 + - tab2.col1 * + col0 * col2 FROM tab2
----
-119593
-51017
-5828
query I rowsort
SELECT ALL - - cor0.col1 * + 73 + cor0.col0 - col0 FROM tab1 AS cor0
----
1898
730
949
query I rowsort
SELECT ALL cor0.col1 * cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 16ae0e1090cb09b93854a4788f17716b
query I rowsort
SELECT DISTINCT col1 - 62 FROM tab0
----
24
29
35
query I rowsort
SELECT ALL col0 + + col2 - - col2 * - col1 FROM tab0
----
-2781
-61
-7291
query I rowsort
SELECT - + 68 + col0 FROM tab1 cor0
----
-4
-65
12
query I rowsort
SELECT - 27 + col1 * + col1 FROM tab1 AS cor0
----
142
649
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4137
SELECT + CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4137
SELECT + CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 87 - col0 AS col1 FROM tab1 AS cor0
----
23
7
84
query I rowsort
SELECT + + 40 * - col1 AS col0 FROM tab1 cor0
----
-1040
-400
-520
query I rowsort
SELECT + 94 * + col1 * cor0.col0 + cor0.col1 FROM tab0 AS cor0
----
194102
319227
761397
query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL 89 AS col2 FROM tab0 cor0
----
89
89
89
query I rowsort
SELECT DISTINCT + 92 + col1 AS col0 FROM tab1 AS cor0
----
102
105
118
query I rowsort
SELECT col1 + 20 AS col1 FROM tab2 AS cor0
----
37
51
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 + + col2 col1 FROM tab2 AS cor0
----
125
126
137
onlyif mysql # use DIV operator for integer division
query I rowsort label-4146
SELECT col2 DIV 82 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4146
SELECT col2 / 82 AS col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4147
SELECT - col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-4147
SELECT - col1 / - col0 AS col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - 18 AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT + - 63 AS col0 FROM tab0 cor0
----
-63
-63
-63
query I rowsort
SELECT - + ( - col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4151
SELECT ( cor0.col2 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4151
SELECT ( cor0.col2 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - cor0.col0 AS col2 FROM tab0 cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 col2 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col0 * + col2 col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - col1 * - col2 * - tab2.col2 AS col1 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT cor0.col1 + ( + 25 ) AS col2 FROM tab0 AS cor0
----
111
116
122
query I rowsort
SELECT DISTINCT + col1 * 2 + 98 AS col0 FROM tab2 AS cor0
----
132
160
216
query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 + col2 * col1 FROM tab1 AS cor0
----
-70
1326
208
query I rowsort
SELECT ALL cor0.col2 * + cor0.col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col0 + + col2 * col2 * cor0.col0 + - 95 FROM tab0 AS cor0
----
-95
26017
598252
query I rowsort
SELECT ALL - col0 * ( col0 ) + col1 + col2 FROM tab1 AS cor0
----
-4029
-6291
71
query I rowsort
SELECT ALL col2 * + 53 FROM tab1 AS cor0
----
2862
3021
5088
query I rowsort
SELECT - col2 * 88 + col0 AS col1 FROM tab0 AS cor0
----
-2880
-53
-7127
query I rowsort
SELECT DISTINCT col1 * ( + 96 ) * - col1 AS col1 FROM tab2 AS cor0
----
-27744
-334176
-92256
onlyif mysql # use DIV operator for integer division
query I rowsort label-4165
SELECT - cor0.col1 DIV col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-4165
SELECT - cor0.col1 / col2 FROM tab0 AS cor0
----
-1
-2
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4166
SELECT DISTINCT + col1 DIV col1 + 33 + col0 * + 91 AS col1 FROM tab1 cor0
----
307
5858
7314
skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT + col1 / col1 + 33 + col0 * + 91 AS col1 FROM tab1 cor0
----
307
5858
7314
query I rowsort
SELECT DISTINCT + + col0 + ( + col0 ) AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + cor0.col2 * - 81 AS col0 FROM tab0 AS cor0
----
-2673
-6642
-81
query I rowsort
SELECT ALL - cor0.col2 * + 97 AS col1 FROM tab1 AS cor0
----
-5238
-5529
-9312
query I rowsort
SELECT col2 + 59 + + 60 FROM tab1
----
173
176
215
query I rowsort
SELECT + col2 + - col0 * + col1 AS col2 FROM tab1 cor0
----
-24
-583
-944
query I rowsort
SELECT - col2 * col1 + col1 * 44 AS col1 FROM tab0 AS cor0
----
-3458
4171
946
query I rowsort
SELECT DISTINCT 53 + 88 * - cor0.col1 FROM tab1 AS cor0
----
-1091
-2235
-827
query I rowsort
SELECT + - ( ( col2 ) ) + - col0 AS col0 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT ( 48 ) FROM tab0 AS cor0
----
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-4176
SELECT + + col1 + cor0.col0 DIV + col2 FROM tab1 AS cor0
----
11
13
26
skipif mysql # not compatible
query I rowsort label-4176
SELECT + + col1 + cor0.col0 / + col2 FROM tab1 AS cor0
----
11
13
26
query I rowsort
SELECT DISTINCT + col2 * col1 - - ( - col2 ) AS col0 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT ALL - - cor0.col2 * col2 + - 32 * col1 * col0 FROM tab1 AS cor0
----
-17231
-24064
420
query I rowsort
SELECT DISTINCT + cor0.col2 * col0 - + ( + col1 ) AS col1 FROM tab2 AS cor0
----
158
1969
2985
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4180
SELECT DISTINCT - CAST( 3 AS SIGNED ) * - col0 + - col1 FROM tab0
----
-14
176
8
skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT - CAST ( 3 AS INTEGER ) * - col0 + - col1 FROM tab0
----
-14
176
8
query I rowsort
SELECT ( - col0 * - tab1.col1 ) FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT - 54 FROM tab2, tab0 AS cor0
----
-54
query I rowsort
SELECT DISTINCT + 55 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
55
query I rowsort
SELECT + col1 + + col1 * + col2 FROM tab1
----
1261
1430
580
query I rowsort
SELECT col0 * + col0 - + col0 AS col0 FROM tab2
----
42
6006
6162
query I rowsort
SELECT ALL - 26 AS col2 FROM tab0
----
-26
-26
-26
query I rowsort
SELECT - col1 + - col2 * + ( 23 ) FROM tab2
----
-652
-657
-891
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * cor0.col0 col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - 92 + col2 * + col0 FROM tab0 AS cor0
----
-57
700
7206
query I rowsort
SELECT ALL + col2 + - 87 * + col0 FROM tab0 AS cor0
----
-2055
-3044
-7661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4191
SELECT + CAST( NULL AS SIGNED ) + col0 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4191
SELECT + CAST ( NULL AS INTEGER ) + col0 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4192
SELECT - + CAST( - 20 AS SIGNED ) + - col1 * col1 DIV col1 FROM tab0 AS cor0
----
-66
-71
-77
skipif mysql # not compatible
query I rowsort label-4192
SELECT - + CAST ( - 20 AS INTEGER ) + - col1 * col1 / col1 FROM tab0 AS cor0
----
-66
-71
-77
query I rowsort
SELECT ALL ( col2 ) + - col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT col0 + col0 * cor0.col0 + - col1 AS col0 FROM tab1 AS cor0
----
-14
4150
6467
query I rowsort
SELECT 63 * 28 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f8fcd17a4201ffadbaddb1a56991f10e
query I rowsort
SELECT DISTINCT col1 + - col1 * ( col2 ) * - col1 AS col0 FROM tab0
----
244154
679133
9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + ( col2 ) * col0 * + 61 col0 FROM tab1
----
222592
468560
9885
query I rowsort
SELECT - - 98 + - col0 FROM tab2 AS cor0
----
19
20
91
query I rowsort
SELECT + 73 + ( + col2 + + cor0.col2 ) AS col0 FROM tab1 AS cor0
----
181
187
265
query I rowsort
SELECT col0 + ( + col0 ) AS col1 FROM tab2
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-4201
SELECT ( - col0 ) DIV col2 + + col0 + cor0.col2 AS col1 FROM tab1 AS cor0
----
120
176
57
skipif mysql # not compatible
query I rowsort label-4201
SELECT ( - col0 ) / col2 + + col0 + cor0.col2 AS col1 FROM tab1 AS cor0
----
120
176
57
query I rowsort
SELECT DISTINCT ( tab1.col0 ) AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT - col0 + + 42 FROM tab1
----
-22
-38
39
query I rowsort
SELECT ALL + col1 + col1 + - 75 FROM tab1 AS cor0
----
-23
-49
-55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4205
SELECT DISTINCT + - col0 * CAST( NULL AS SIGNED ) + - 93 col0 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT + - col0 * CAST ( NULL AS INTEGER ) + - 93 col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL col0 * 52 AS col0 FROM tab2 AS cor0
----
364
4056
4108
query I rowsort
SELECT + + col0 * cor0.col0 - - col1 * - col0 FROM tab1 AS cor0
----
-69
3456
5360
query I rowsort
SELECT DISTINCT + + col0 - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4209
SELECT ALL - + CAST( 59 AS SIGNED ) * cor0.col0 + ( cor0.col1 ) FROM tab2 AS cor0
----
-382
-4543
-4644
skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL - + CAST ( 59 AS INTEGER ) * cor0.col0 + ( cor0.col1 ) FROM tab2 AS cor0
----
-382
-4543
-4644
onlyif mysql # use DIV operator for integer division
query I rowsort label-4210
SELECT ALL col2 DIV + ( + ( + col0 ) ) col1 FROM tab1
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL col2 / + ( + ( + col0 ) ) col1 FROM tab1
----
0
1
18
query I rowsort
SELECT - 9 * - cor0.col2 + + col2 AS col1 FROM tab2 AS cor0
----
260
270
380
query I rowsort
SELECT ALL 11 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT DISTINCT 25 * + col2 - + col2 * 15 * ( - tab1.col0 ) FROM tab1
----
117600
3780
56145
query I rowsort
SELECT DISTINCT tab2.col2 * - 74 - + col2 AS col0 FROM tab2
----
-1950
-2025
-2850
query I rowsort
SELECT + - col2 + + col1 + - col0 AS col2 FROM tab2 AS cor0
----
-100
-3
-45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4216
SELECT ALL - CAST( + col2 AS SIGNED ) * cor0.col0 + col2 * - cor0.col1 FROM tab0 AS cor0
----
-132
-14760
-3630
skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL - CAST ( + col2 AS INTEGER ) * cor0.col0 + col2 * - cor0.col1 FROM tab0 AS cor0
----
-132
-14760
-3630
query I rowsort
SELECT DISTINCT 10 * - col0 FROM tab2
----
-70
-780
-790
query I rowsort
SELECT ALL + 51 * col1 FROM tab2
----
1581
3009
867
query I rowsort
SELECT DISTINCT - tab0.col2 FROM tab0, tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT - 5 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e
query I rowsort
SELECT ALL ( col0 ) * - 14 FROM tab0
----
-1246
-336
-490
query I rowsort
SELECT + tab1.col0 * 89 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0645a7614be705a7413a3b1d04bc3bf0
query I rowsort
SELECT - - col2 + - col2 * - cor0.col1 + + cor0.col2 FROM tab2 AS cor0
----
1586
722
891
query I rowsort
SELECT ALL ( + 33 ) FROM tab2, tab1 cor0, tab0 cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
query I rowsort
SELECT ALL - 23 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5
query I rowsort
SELECT + cor0.col2 * col1 + col0 AS col0 FROM tab2 cor0
----
1612
725
844
query I rowsort
SELECT - col0 * - ( + col0 ) * col1 AS col1 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT + 41 + ( cor0.col0 ) AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 08520abc225c50f70ecda12396d84461
query I rowsort
SELECT col1 * 85 * + ( - col1 ) FROM tab2 AS cor0
----
-24565
-295885
-81685
query I rowsort
SELECT - - cor0.col1 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # use DIV operator for integer division
query I rowsort label-4231
SELECT ALL + col0 DIV col0 + + col0 * 66 * + col1 FROM tab1 AS cor0
----
42241
5149
68641
skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL + col0 / col0 + + col0 * 66 * + col1 FROM tab1 AS cor0
----
42241
5149
68641
query I rowsort
SELECT - + cor0.col0 * + col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL 22 AS col0 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
query I rowsort
SELECT + + 43 FROM tab1 AS cor0
----
43
43
43
query I rowsort
SELECT DISTINCT - 18 * - col2 FROM tab0 AS cor0
----
1476
18
594
query I rowsort
SELECT - ( col1 * tab1.col1 ) AS col2 FROM tab1
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 col1 FROM tab2, tab2 AS cor0
----
-92
query I rowsort
SELECT ALL col2 * - col2 + ( col1 ) FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT DISTINCT + col2 + + col0 + + col2 * + col2 AS col2 FROM tab1 cor0
----
2973
3370
9392
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col1 col1 FROM tab1, tab0 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + 13 * - tab2.col0 * + 31 + - 6 FROM tab2
----
-2827
-31440
-31843
query I rowsort
SELECT DISTINCT col0 + - cor0.col1 * col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT + col1 + - col1 AS col1 FROM tab2 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4244
SELECT DISTINCT - col1 DIV tab0.col0 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-4244
SELECT DISTINCT - col1 / tab0.col0 FROM tab0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT 42 + tab1.col0 - col1 FROM tab1
----
109
19
96
query I rowsort
SELECT ALL 53 - tab1.col1 FROM tab1
----
27
40
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + - col2 col1 FROM tab1 cor0
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4248
SELECT ALL + CAST( - 73 AS SIGNED ) * + col0 col1 FROM tab2 AS cor0
----
-511
-5694
-5767
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL + CAST ( - 73 AS INTEGER ) * + col0 col1 FROM tab2 AS cor0
----
-511
-5694
-5767
query I rowsort
SELECT ALL - 96 * - 70 + + col1 FROM tab0 AS cor0
----
6806
6811
6817
query I rowsort
SELECT col1 * + 37 FROM tab2 AS cor0
----
1147
2183
629
query I rowsort
SELECT DISTINCT + ( - col2 ) * - col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4252
SELECT DISTINCT - CAST( col1 AS SIGNED ) * + col0 + - col1 DIV col2 AS col2 FROM tab0 AS cor0
----
-2066
-3492
-8100
skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * + col0 + - col1 / col2 AS col2 FROM tab0 AS cor0
----
-2066
-3492
-8100
query I rowsort
SELECT + - ( 88 ) FROM tab1 AS cor0
----
-88
-88
-88
query I rowsort
SELECT ALL + ( cor0.col2 ) + col2 AS col1 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT ALL - col2 * + tab2.col1 + + col0 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT ALL col0 + + 60 + col1 FROM tab0
----
170
192
240
onlyif mysql # use DIV operator for integer division
query I rowsort label-4257
SELECT col1 - col2 DIV - 55 AS col1 FROM tab0
----
86
92
97
skipif mysql # not compatible
query I rowsort label-4257
SELECT col1 - col2 / - 55 AS col1 FROM tab0
----
86
92
97
query I rowsort
SELECT ALL col1 * col2 + - 89 * col0 * + col2 FROM tab0
----
-3018
-642060
-67650
query I rowsort
SELECT + ( 15 ) * - tab2.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to eb91a7cd3d386d9d68515c604425c526
onlyif mysql # use DIV operator for integer division
query I rowsort label-4260
SELECT DISTINCT + 3 DIV cor0.col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
0
3
skipif mysql # not compatible
query I rowsort label-4260
SELECT DISTINCT + 3 / cor0.col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
0
3
query I rowsort
SELECT ALL col0 + ( col0 ) + + col2 * - col1 * + tab0.col0 FROM tab0
----
-3325
-663940
-68064
onlyif mysql # use DIV operator for integer division
query I rowsort label-4262
SELECT - col0 + + 56 DIV col0 AS col2 FROM tab2
----
-78
-79
1
skipif mysql # not compatible
query I rowsort label-4262
SELECT - col0 + + 56 / col0 AS col2 FROM tab2
----
-78
-79
1
query I rowsort
SELECT 11 + - cor0.col1 FROM tab1 AS cor0
----
-15
-2
1
query I rowsort
SELECT + ( cor0.col1 ) * - col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL 26 * 70 FROM tab0 cor0
----
1820
1820
1820
query I rowsort
SELECT 71 * + col0 * + col0 FROM tab1 AS cor0
----
290816
454400
639
query I rowsort
SELECT + 59 * col1 + - col1 * + 68 * + 99 FROM tab0
----
-573878
-607243
-647281
query I rowsort
SELECT DISTINCT 31 * - 89 AS col1 FROM tab1
----
-2759
query I rowsort
SELECT + col0 + - 64 FROM tab0
----
-29
-40
25
query I rowsort
SELECT + 48 * + col2 + col0 FROM tab2
----
1303
1326
1903
query I rowsort
SELECT + + col0 * + 14 AS col0 FROM tab2 cor0
----
1092
1106
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4272
SELECT - col2 DIV - 1 AS col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-4272
SELECT - col2 / - 1 AS col2 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4273
SELECT DISTINCT + + ( - cor0.col1 ) + col1 * cor0.col0 DIV ( col1 ) col2 FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4273
SELECT DISTINCT + + ( - cor0.col1 ) + col1 * cor0.col0 / ( col1 ) col2 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4274
SELECT ALL + CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL + CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 39 FROM tab2, tab2 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT DISTINCT - + ( + 47 ) + col1 + - col0 AS col2 FROM tab2 AS cor0
----
-109
-23
-66
query I rowsort
SELECT 22 + 9 AS col2 FROM tab2
----
31
31
31
query I rowsort
SELECT DISTINCT - col1 * 20 * col1 AS col2 FROM tab0
----
-147920
-165620
-188180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT ALL + 15 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 97c4e033347d2076218e240ed49af0a7
query I rowsort
SELECT DISTINCT col2 * + col0 + 78 FROM tab0 AS cor0
----
113
7376
870
query I rowsort
SELECT ALL + 92 + col1 FROM tab0 AS cor0
----
178
183
189
query I rowsort
SELECT 15 * col1 FROM tab2 AS cor0
----
255
465
885
query I rowsort
SELECT ALL + col2 + - col0 - + ( - cor0.col2 ) AS col2 FROM tab1 cor0
----
105
112
50
query I rowsort
SELECT DISTINCT + cor0.col1 - - col1 AS col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL 92 - col2 * cor0.col1 FROM tab2 AS cor0
----
-1442
-554
-745
query I rowsort
SELECT DISTINCT - 11 FROM tab2 AS cor0
----
-11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4288
SELECT tab2.col1 * - 89 - + col1 * CAST( - col0 AS SIGNED ) col1 FROM tab2
----
-170
-2542
-649
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4288
SELECT tab2.col1 * - 89 - + col1 * CAST ( - col0 AS INTEGER ) col1 FROM tab2
----
-170
-2542
-649
query I rowsort
SELECT ALL - 86 AS col0 FROM tab0
----
-86
-86
-86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) + + 63 col2 FROM tab2 AS cor0
----
32
4
46
query I rowsort
SELECT + ( col1 ) * cor0.col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - col2 * + col1 AS col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT - 79 * + col0 FROM tab0 AS cor0
----
-1896
-2765
-7031
query I rowsort
SELECT DISTINCT + col1 + + cor0.col1 * + col1 * + col1 FROM tab1 AS cor0
----
1010
17602
2210
onlyif mysql # use DIV operator for integer division
query I rowsort label-4295
SELECT + + col0 DIV col0 - - col2 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-4295
SELECT + + col0 / col0 - - col2 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT DISTINCT + col0 * 20 FROM tab2 AS cor0
----
140
1560
1580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - tab1.col1 ) * tab1.col1 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 38f503ad6f93db2d1a70a8c95bb8c2c2
query I rowsort
SELECT - col1 * + 62 * - col1 + - col2 * + col1 * col2 FROM tab1 AS cor0
----
-109330
-26290
-33904
onlyif mysql # use DIV operator for integer division
query I rowsort label-4299
SELECT ALL + col0 DIV col0 + - col2 col1 FROM tab1 cor0
----
-53
-56
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL + col0 / col0 + - col2 col1 FROM tab1 cor0
----
-53
-56
-95
query I rowsort
SELECT col2 * + ( + col2 ) + cor0.col2 AS col2 FROM tab2 cor0
----
1482
702
756
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4301
SELECT DISTINCT + - col1 * CAST( - col0 * col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
13520
2028
6400
skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT + - col1 * CAST ( - col0 * col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
13520
2028
6400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4302
SELECT DISTINCT - + col2 * CAST( NULL AS SIGNED ) + col0 * + col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT - + col2 * CAST ( NULL AS INTEGER ) + col0 * + col2 FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT col2 * cor0.col1 + - ( col2 ) * - col0 FROM tab1 AS cor0
----
1566
4218
8928
query I rowsort
SELECT + col1 * 35 + - col1 * + col0 AS col0 FROM tab2 AS cor0
----
-2537
-748
868
query I rowsort
SELECT ALL - col1 * col2 * + 30 FROM tab2 AS cor0
----
-19380
-25110
-46020
onlyif mysql # use DIV operator for integer division
query I rowsort label-4306
SELECT + - col2 DIV col1 + - col2 FROM tab1 AS cor0
----
-103
-56
-62
skipif mysql # not compatible
query I rowsort label-4306
SELECT + - col2 / col1 + - col2 FROM tab1 AS cor0
----
-103
-56
-62
query I rowsort
SELECT ALL - - ( - cor0.col2 ) * col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + - ( col2 ) * + col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - cor0.col0 * cor0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 9bb5096fcd17e3f131152e7a67a5338f
query I rowsort
SELECT + 73 + - col1 FROM tab2 AS cor0
----
14
42
56
query I rowsort
SELECT - col2 + col1 * col2 * - col1 AS col0 FROM tab0 AS cor0
----
-244101
-679124
-9410
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4312
SELECT ALL - - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL - - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor1.col0 + - 52 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
-17
-28
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-4314
SELECT ALL - - CAST( + ( col2 ) AS SIGNED ) DIV col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL - - CAST ( + ( col2 ) AS INTEGER ) / col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT DISTINCT - tab0.col1 * tab0.col2 + col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT tab1.col0 * col1 - col1 * + col0 FROM tab1
----
0
0
0
query I rowsort
SELECT 91 AS col0 FROM tab2 AS cor0
----
91
91
91
query I rowsort
SELECT - - 18 * cor0.col2 * col2 + col1 - + col2 * - col1 * + 71 AS col0 FROM tab0 AS cor0
----
221186
650925
7002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4319
SELECT DISTINCT + col1 + + col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT + col1 + + col1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - col0 + col1 + - col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + col1 + + col2 * + 0 - - col2 * col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT + 22 * - col0 * - 79 FROM tab2 AS cor0
----
12166
135564
137302
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 col0 FROM tab1 AS cor0
----
89
query I rowsort
SELECT DISTINCT - 75 * cor0.col2 FROM tab2 AS cor0
----
-1950
-2025
-2850
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 50 col0 FROM tab2 AS cor0
----
350
3900
3950
onlyif mysql # use DIV operator for integer division
query I rowsort label-4326
SELECT ALL 22 * col2 DIV - 35 + - col1 + - tab1.col1 * + col2 AS col0 FROM tab1
----
-1321
-1463
-615
skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL 22 * col2 / - 35 + - col1 + - tab1.col1 * + col2 AS col0 FROM tab1
----
-1321
-1463
-615
query I rowsort
SELECT DISTINCT + 98 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
98
query I rowsort
SELECT ALL tab2.col1 + col0 + 30 FROM tab2
----
126
167
68
query I rowsort
SELECT DISTINCT - - 45 + + 39 FROM tab1 AS cor0
----
84
query I rowsort
SELECT ALL col1 * cor0.col1 * cor0.col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
636142
753662
912770
query I rowsort
SELECT + 25 AS col1 FROM tab0 cor0
----
25
25
25
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4332
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-4332
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 * - col0 col2 FROM tab0 cor0
----
2184
3185
8099
query I rowsort
SELECT + ( + 81 ) AS col1 FROM tab1
----
81
81
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4335
SELECT + CAST( NULL AS SIGNED ) + + 94 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4335
SELECT + CAST ( NULL AS INTEGER ) + + 94 AS col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4336
SELECT DISTINCT 11 DIV - col1 AS col0 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-4336
SELECT DISTINCT 11 / - col1 AS col0 FROM tab2
----
0
query I rowsort
SELECT ALL + ( - 16 ) FROM tab1
----
-16
-16
-16
query I rowsort
SELECT ALL + 58 AS col2 FROM tab0 AS cor0
----
58
58
58
query I rowsort
SELECT DISTINCT - 23 * + 11 AS col1 FROM tab1 AS cor0
----
-253
query I rowsort
SELECT ALL - - col1 * + col0 + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL - 33 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to bbc05afe7eb6fed16e9d75f7f74d1948
query I rowsort
SELECT - + 66 + cor0.col0 FROM tab2 AS cor0
----
-59
12
13
query I rowsort
SELECT DISTINCT 13 FROM tab0, tab1 cor0
----
13
query I rowsort
SELECT + + col2 + + col2 AS col0 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ( - col0 * + 25 ) FROM tab2
----
-175
-1950
-1975
query I rowsort
SELECT 2 * col0 - + 69 AS col1 FROM tab0
----
-21
1
109
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT - col2 * + 1 AS col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT + 8 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT DISTINCT col1 + 94 * col1 FROM tab1 AS cor0
----
1235
2470
950
query I rowsort
SELECT + 44 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT ALL 81 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
query I rowsort
SELECT 48 FROM tab0, tab2 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT - 77 + col0 * + col0 AS col1 FROM tab2 AS cor0
----
-28
6007
6164
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( 57 ) col2 FROM tab0 cor0
----
57
57
57
query I rowsort
SELECT ALL - 22 AS col2 FROM tab1
----
-22
-22
-22
query I rowsort
SELECT + 29 * - 16 FROM tab2 cor0
----
-464
-464
-464
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4358
SELECT CAST( NULL AS SIGNED ) * + ( + col2 ) + 75 * col1 / + cor0.col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4358
SELECT CAST ( NULL AS INTEGER ) * + ( + col2 ) + 75 * col1 / + cor0.col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4359
SELECT - cor0.col0 DIV 95 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4359
SELECT - cor0.col0 / 95 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - ( + cor0.col2 ) * - col0 + col1 FROM tab0 AS cor0
----
132
7389
878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - col0 + 74 * col2 FROM tab2 cor0
----
1846
1991
2733
query I rowsort
SELECT + ( 86 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4364
SELECT DISTINCT + - col2 + CAST( - 63 AS SIGNED ) * col0 AS col2 FROM tab1 cor0
----
-243
-4089
-5136
skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT + - col2 + CAST ( - 63 AS INTEGER ) * col0 AS col2 FROM tab1 cor0
----
-243
-4089
-5136
query I rowsort
SELECT ALL - col0 * col1 + col1 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT + col1 * + col1 + ( col2 ) * col0 FROM tab1 cor0
----
3748
7849
838
query I rowsort
SELECT ALL cor0.col0 * - ( col2 ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + ( 45 ) AS col2 FROM tab2 AS cor0
----
45
45
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + 12 ) * col2 col2 FROM tab2 AS cor0
----
-312
-324
-456
query I rowsort
SELECT ALL + + 1 + - 92 * - col0 FROM tab2 AS cor0
----
645
7177
7269
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4371
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - 60 * - col2 FROM tab1 AS cor0
----
3240
3420
5760
query I rowsort
SELECT col2 - col1 * 66 AS col2 FROM tab1
----
-1662
-603
-762
query I rowsort
SELECT DISTINCT + tab2.col2 * + col2 FROM tab2
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-4375
SELECT tab0.col2 - - 4 * col2 DIV col1 FROM tab0
----
1
34
85
skipif mysql # not compatible
query I rowsort label-4375
SELECT tab0.col2 - - 4 * col2 / col1 FROM tab0
----
1
34
85
query I rowsort
SELECT DISTINCT - 19 + - col2 FROM tab1 AS cor0
----
-115
-73
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + cor0.col2 + col1 col2 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT ALL - col0 - + col1 AS col0 FROM tab1 cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT - - col0 + col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-42
-6006
-6162
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col0 ) col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT 67 * col2 + 86 FROM tab1 AS cor0
----
3704
3905
6518
query I rowsort
SELECT DISTINCT tab2.col1 FROM tab2, tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + 11 AS col2 FROM tab1
----
11
query I rowsort
SELECT DISTINCT - ( + col0 ) AS col2 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - ( + col2 * + ( col1 ) ) + - col1 * ( tab0.col2 + + col1 ) AS col0 FROM tab0
----
-13072
-23205
-9603
query I rowsort
SELECT + 58 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT ( col0 ) + ( - tab1.col1 ) FROM tab1
----
-23
54
67
query I rowsort
SELECT - - col0 * + col1 + cor0.col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT + + col0 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + - 85 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4391
SELECT ALL col1 + col2 * + CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL col1 + col2 * + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * + col0 + - cor0.col0 FROM tab0 cor0
----
1190
552
7832
query I rowsort
SELECT ALL cor0.col1 + 25 FROM tab2 cor0
----
42
56
84
query I rowsort
SELECT DISTINCT - cor0.col1 - ( col0 ) * + col2 * + cor0.col1 FROM tab2 AS cor0
----
-119711
-51051
-5890
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4395
SELECT DISTINCT + - col1 * - CAST( + col1 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
-636056
-753571
-912673
skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT + - col1 * - CAST ( + col1 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
-636056
-753571
-912673
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + 91 col1 FROM tab0 AS cor0
----
115
126
180
query I rowsort
SELECT + tab2.col1 * col1 * ( - col1 ) AS col2 FROM tab2
----
-205379
-29791
-4913
query I rowsort
SELECT 87 * + col2 AS col0 FROM tab1
----
4698
4959
8352
query I rowsort
SELECT ALL + 96 * tab2.col0 + ( col0 ) AS col0 FROM tab2
----
679
7566
7663
query I rowsort
SELECT DISTINCT 32 + - col1 FROM tab0
----
-54
-59
-65
query I rowsort
SELECT ALL + col0 + + col2 + ( + 24 ) FROM tab0
----
195
60
81
query I rowsort
SELECT ALL tab2.col2 + + tab2.col1 * col2 AS col2 FROM tab2
----
1560
684
864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4403
SELECT DISTINCT - col2 * - col0 * + CAST( NULL AS SIGNED ) + 60 / + col0 AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT - col2 * - col0 * + CAST ( NULL AS INTEGER ) + 60 / + col0 AS col2 FROM tab0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4404
SELECT DISTINCT cor0.col1 * col1 + - cor0.col0 DIV - col1 FROM tab2 AS cor0
----
293
3482
961
skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT cor0.col1 * col1 + - cor0.col0 / - col1 FROM tab2 AS cor0
----
293
3482
961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4405
SELECT - col1 + CAST( col2 AS SIGNED ) AS col2 FROM tab0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-4405
SELECT - col1 + CAST ( col2 AS INTEGER ) AS col2 FROM tab0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
20
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 AS col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - col0 + 26 AS col0 FROM tab0 AS cor0
----
-63
-9
2
query I rowsort
SELECT - cor0.col2 * 17 AS col0 FROM tab0 AS cor0
----
-1394
-17
-561
query I rowsort
SELECT ALL - + col2 * 43 * col2 + col2 AS col1 FROM tab2 AS cor0
----
-29042
-31320
-62054
query I rowsort
SELECT DISTINCT + cor0.col0 + + ( col2 ) * col1 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-4412
SELECT ALL - - col1 + + col1 DIV + cor0.col0 AS col2 FROM tab0 AS cor0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL - - col1 + + col1 / + cor0.col0 AS col2 FROM tab0 AS cor0
----
89
92
99
query I rowsort
SELECT - - cor0.col0 + - col1 AS col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT + col2 + + ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4415
SELECT ALL - col2 - + CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-108
-114
-192
skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL - col2 - + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT + + cor0.col2 + - 29 FROM tab0 AS cor0
----
-28
4
53
query I rowsort
SELECT ALL - col0 + + cor0.col1 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT col1 + + col1 AS col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT - - cor0.col1 * col2 AS col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL + col1 * + ( + col0 ) + - col2 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT + col2 * + 61 AS col1 FROM tab1 AS cor0
----
3294
3477
5856
query I rowsort
SELECT DISTINCT col2 + 22 * + 36 * - col1 AS col0 FROM tab0 AS cor0
----
-68079
-71990
-76823
query I rowsort
SELECT - col0 + + 42 FROM tab2
----
-36
-37
35
query I rowsort
SELECT ALL - 86 AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af
onlyif mysql # use DIV operator for integer division
query I rowsort label-4425
SELECT ALL - ( ( col2 ) ) DIV - ( - col1 * col0 ) - ( + col1 ) FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL - ( ( col2 ) ) / - ( - col1 * col0 ) - ( + col1 ) FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL - - ( - cor0.col0 ) * + col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT col2 * ( col0 * 58 ) FROM tab2 AS cor0
----
10962
117624
174116
query I rowsort
SELECT 88 + ( + col2 ) FROM tab1 AS cor0
----
142
145
184
query I rowsort
SELECT ALL - - col2 * col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 70 AS REAL ) + + col0 AS col2 FROM tab0 AS cor0
----
105
159
94
query I rowsort
SELECT ( - 37 ) + + col1 * + col1 AS col1 FROM tab1 cor0
----
132
63
639
onlyif mysql # use DIV operator for integer division
query I rowsort label-4432
SELECT + - col1 + - col1 DIV - col0 FROM tab1 AS cor0
----
-10
-13
-18
skipif mysql # not compatible
query I rowsort label-4432
SELECT + - col1 + - col1 / - col0 FROM tab1 AS cor0
----
-10
-13
-18
query I rowsort
SELECT ( col0 ) + 77 AS col2 FROM tab2 AS cor0
----
155
156
84
query I rowsort
SELECT 25 + col1 AS col0 FROM tab1 cor0
----
35
38
51
query I rowsort
SELECT - 95 + - col0 AS col2 FROM tab0 AS cor0
----
-119
-130
-184
query I rowsort
SELECT + 9 + - 2 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
query I rowsort
SELECT ALL + cor1.col1 * + ( 74 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2bc65e52b35c1e02e7c244003eb6ecdb
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4438
SELECT ALL - ( 53 ) / col1 - CAST( NULL AS SIGNED ) * col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL - ( 53 ) / col1 - CAST ( NULL AS INTEGER ) * col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 59 * col1 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
5098
5458
5758
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 + + 52 col2 FROM tab1
----
61
61
61
query I rowsort
SELECT ALL ( col1 + - col0 ) * col2 * + col2 FROM tab0
----
13448
62
67518
query I rowsort
SELECT DISTINCT cor0.col2 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-4443
SELECT ALL cor0.col2 DIV + col0 + 8 FROM tab1 AS cor0
----
26
8
9
skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL cor0.col2 / + col0 + 8 FROM tab1 AS cor0
----
26
8
9
query I rowsort
SELECT ALL tab1.col0 * col1 * + col2 AS col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT - cor0.col2 * + col2 + - col1 AS col2 FROM tab2 cor0
----
-1461
-735
-760
query I rowsort
SELECT ALL cor0.col0 * - ( 24 ) FROM tab2 AS cor0
----
-168
-1872
-1896
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4447
SELECT ALL - cor0.col1 + CAST( - col0 AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL - cor0.col1 + CAST ( - col0 AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT + + col0 * col0 + col2 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-4449
SELECT + col0 DIV 62 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4449
SELECT + col0 / 62 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT ALL col1 + - col1 * col1 FROM tab0 cor0
----
-7310
-8190
-9312
query I rowsort
SELECT ALL - + col1 * - 60 AS col1 FROM tab2 AS cor0
----
1020
1860
3540
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4452
SELECT + - col0 + + CAST( col2 AS SIGNED ) * - cor0.col0 FROM tab0 AS cor0
----
-70
-7387
-816
skipif mysql # not compatible
query I rowsort label-4452
SELECT + - col0 + + CAST ( col2 AS INTEGER ) * - cor0.col0 FROM tab0 AS cor0
----
-70
-7387
-816
onlyif mysql # use DIV operator for integer division
query I rowsort label-4453
SELECT ALL - + cor0.col1 DIV col0 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL - + cor0.col1 / col0 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT DISTINCT 48 + + col1 + + col0 AS col1 FROM tab2 AS cor0
----
144
185
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-4455
SELECT ALL - ( + col1 ) - col1 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
-17
-35
-59
skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL - ( + col1 ) - col1 / cor0.col0 AS col0 FROM tab2 AS cor0
----
-17
-35
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4456
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab1, tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab1, tab0 cor0
----
NULL
query I rowsort
SELECT ALL cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT + - col1 + - col1 + col0 AS col2 FROM tab1 AS cor0
----
-49
44
54
query I rowsort
SELECT + 75 + + 25 * + col1 FROM tab0
----
2225
2350
2500
query I rowsort
SELECT - - ( 13 ) + col2 * col2 + col2 * col2 * - ( - col0 ) FROM tab1 AS cor0
----
11677
211198
746509
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 80 col0 FROM tab1 AS cor0
----
80
80
80
query I rowsort
SELECT ALL 31 + + 95 * col1 FROM tab2 AS cor0
----
1646
2976
5636
query I rowsort
SELECT 29 + 74 AS col1 FROM tab2 cor0
----
103
103
103
query I rowsort
SELECT + + col0 * - col0 + - col0 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT DISTINCT 0 * - col2 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL 37 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 * + cor0.col0 + ( - col1 ) * col1 col2 FROM tab1 AS cor0
----
-1700
-2169
-751
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 17 ) col1 FROM tab2
----
17
17
17
query I rowsort
SELECT DISTINCT - 94 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
-94
query I rowsort
SELECT col1 * - 99 * col0 + col1 AS col1 FROM tab1 AS cor0
----
-102947
-63350
-7696
onlyif mysql # use DIV operator for integer division
query I rowsort label-4471
SELECT 55 DIV - col0 AS col0 FROM tab1
----
-18
0
0
skipif mysql # not compatible
query I rowsort label-4471
SELECT 55 / - col0 AS col0 FROM tab1
----
-18
0
0
query I rowsort
SELECT DISTINCT 11 * col2 + ( + col2 * col1 ) AS col1 FROM tab2
----
1064
1134
1820
query I rowsort
SELECT DISTINCT - tab1.col1 FROM tab1, tab0, tab1 cor0
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4474
SELECT + col2 * + CAST( NULL AS SIGNED ) * - col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4474
SELECT + col2 * + CAST ( NULL AS INTEGER ) * - col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4475
SELECT cor0.col0 DIV - col0 + - col0 FROM tab2 AS cor0
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-4475
SELECT cor0.col0 / - col0 + - col0 FROM tab2 AS cor0
----
-79
-8
-80
query I rowsort
SELECT DISTINCT col0 - ( + col0 ) * + col2 * + col1 FROM tab1
----
-36416
-4209
-99760
query I rowsort
SELECT ALL cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT 42 + - cor0.col2 * + col0 - - col1 * + col1 FROM tab0 AS cor0
----
1025
6646
9416
query I rowsort
SELECT ALL + - col2 + 86 * col0 * cor0.col2 FROM tab1 cor0
----
13878
313671
660384
query I rowsort
SELECT DISTINCT col2 * + col0 + col1 * + cor0.col1 FROM tab2 AS cor0
----
1150
3291
5509
query I rowsort
SELECT DISTINCT - col2 - col1 * col0 * col2 FROM tab1 AS cor0
----
-36537
-4266
-99936
query I rowsort
SELECT DISTINCT + col0 * - col0 * col0 + - col1 * - col0 FROM tab1 cor0
----
-261504
-510960
51
query I rowsort
SELECT - col1 + ( + 18 ) * col0 FROM tab2 AS cor0
----
1345
1405
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + col0 * + col0 col2 FROM tab1 cor0
----
4153
63
6496
query I rowsort
SELECT DISTINCT - col2 * ( col0 ) FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + cor0.col0 * col1 + - col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT ALL + + col0 + + col2 * + col2 FROM tab0 AS cor0
----
1113
36
6813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4488
SELECT + - col2 + CAST( 37 + + col1 AS SIGNED ) FROM tab1 cor0
----
-10
-46
9
skipif mysql # not compatible
query I rowsort label-4488
SELECT + - col2 + CAST ( 37 + + col1 AS INTEGER ) FROM tab1 cor0
----
-10
-46
9
query I rowsort
SELECT ALL - col1 * ( + 67 ) - col2 AS col1 FROM tab1 AS cor0
----
-1796
-727
-967
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4490
SELECT + - CAST( NULL AS SIGNED ) * - col2 + + col1 * col0 * - cor0.col0 - + cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4490
SELECT + - CAST ( NULL AS INTEGER ) * - col2 + + col1 * col0 * - cor0.col0 - + cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( col0 * - col2 ) + col1 - col2 FROM tab2
----
-185
-1995
-3023
query I rowsort
SELECT - ( + 0 ) * tab0.col1 + col2 + - col2 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 * col0 - - col0 FROM tab1
----
12
4160
6480
query I rowsort
SELECT 81 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT ALL + + ( + col2 ) + - col1 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT - + 14 * - col0 FROM tab2 AS cor0
----
1092
1106
98
query I rowsort
SELECT - col2 + + col1 * - cor0.col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT - ( + col2 ) * + col1 * - col2 + - col2 FROM tab1 AS cor0
----
119712
32433
75762
query I rowsort
SELECT ALL - col1 * + col2 AS col0 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT + - 8 + + col1 FROM tab0 AS cor0
----
78
83
89
query I rowsort
SELECT DISTINCT ( + col0 ) * col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL col1 * col1 * + col2 FROM tab1 AS cor0
----
16224
36504
5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-4503
SELECT DISTINCT - + 42 * col0 DIV ( cor0.col1 + + col1 ) FROM tab0 AS cor0
----
-20
-5
-7
skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT - + 42 * col0 / ( cor0.col1 + + col1 ) FROM tab0 AS cor0
----
-20
-5
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4504
SELECT + 20 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4504
SELECT + 20 / col2 AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4505
SELECT ALL - col1 + col0 * CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661
skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL - col1 + col0 * CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT DISTINCT - 57 * col2 * ( - col1 ) FROM tab0 AS cor0
----
161766
425334
5529
query I rowsort
SELECT ALL 57 * col1 * - col1 + col0 FROM tab0 AS cor0
----
-421548
-471928
-536278
onlyif mysql # use DIV operator for integer division
query I rowsort label-4508
SELECT DISTINCT - + col0 + - col1 DIV - col0 - col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-49
skipif mysql # not compatible
query I rowsort label-4508
SELECT DISTINCT - + col0 + - col1 / - col0 - col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-49
query I rowsort
SELECT col0 * ( + col2 * col2 ) FROM tab2
----
114076
5103
52728
query I rowsort
SELECT ALL - 87 + col2 - col2 FROM tab2
----
-87
-87
-87
query I rowsort
SELECT 43 * + col1 AS col0 FROM tab1
----
1118
430
559
query I rowsort
SELECT DISTINCT + - 78 FROM tab2 cor0
----
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4513
SELECT - cor0.col1 + - col0 DIV - 52 FROM tab2 AS cor0
----
-16
-31
-58
skipif mysql # not compatible
query I rowsort label-4513
SELECT - cor0.col1 + - col0 / - 52 FROM tab2 AS cor0
----
-16
-31
-58
query I rowsort
SELECT DISTINCT 7 * col0 AS col1 FROM tab2 AS cor0
----
49
546
553
query I rowsort
SELECT ALL - - 38 FROM tab2 AS cor0
----
38
38
38
query I rowsort
SELECT + col1 * - col1 + - ( - 10 * - col0 ) AS col2 FROM tab1 AS cor0
----
-706
-740
-969
query I rowsort
SELECT ALL 74 + col2 AS col2 FROM tab1
----
128
131
170
query I rowsort
SELECT + + cor0.col0 * - col0 * 91 AS col0 FROM tab2 AS cor0
----
-4459
-553644
-567931
query I rowsort
SELECT col0 * - col0 + - 67 AS col2 FROM tab2 AS cor0
----
-116
-6151
-6308
query I rowsort
SELECT col2 * - ( + cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT 65 * - 77 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-5005
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab2 cor0, tab2 AS cor1
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859
query I rowsort
SELECT ALL - col2 + tab0.col1 + + col2 AS col0 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL - col0 * col1 + col2 * ( col2 ) + + col2 * col0 FROM tab1 AS cor0
----
15856
3000
6257
query I rowsort
SELECT DISTINCT + 73 * - cor0.col2 - cor0.col1 FROM tab0 AS cor0
----
-170
-2495
-6077
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 13 * cor0.col1 col0 FROM tab2 AS cor0
----
221
403
767
query I rowsort
SELECT col2 + col0 * + col1 AS col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL + cor0.col1 + - col1 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + - 70 AS col0 FROM tab2 AS cor0
----
-70
-70
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4530
SELECT DISTINCT + CAST( 80 AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
106
90
93
skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT + CAST ( 80 AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
106
90
93
query I rowsort
SELECT + col1 * col1 + - 69 AS col1 FROM tab0
----
7327
8212
9340
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + tab2.col1 col1 FROM tab2
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-4533
SELECT DISTINCT - 39 DIV col2 AS col0 FROM tab0
----
-1
-39
0
skipif mysql # not compatible
query I rowsort label-4533
SELECT DISTINCT - 39 / col2 AS col0 FROM tab0
----
-1
-39
0
query I rowsort
SELECT + ( 93 ) * col1 * - col2 + ( col1 ) FROM tab2
----
-142603
-60061
-77810
query I rowsort
SELECT + + ( + col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - 80 * + cor0.col2 + col2 * - col0 * col0 AS col0 FROM tab2 cor0
----
-160264
-240198
-3483
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4537
SELECT CAST( - ( col2 ) AS SIGNED ) + - 96 AS col1 FROM tab2 AS cor0
----
-122
-123
-134
skipif mysql # not compatible
query I rowsort label-4537
SELECT CAST ( - ( col2 ) AS INTEGER ) + - 96 AS col1 FROM tab2 AS cor0
----
-122
-123
-134
query I rowsort
SELECT ( 15 ) AS col2 FROM tab1 AS cor0
----
15
15
15
query I rowsort
SELECT ALL 38 + - 94 + + col2 FROM tab2 cor0
----
-18
-29
-30
query I rowsort
SELECT - tab2.col2 + 0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT col2 * 5 AS col2 FROM tab1 AS cor0
----
270
285
480
query I rowsort
SELECT ALL - - col2 + - 32 AS col1 FROM tab0 AS cor0
----
-31
1
50
query I rowsort
SELECT DISTINCT + ( - col0 ) * col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL col1 * - 49 + col2 + + col1 FROM tab2 AS cor0
----
-1461
-2806
-778
onlyif mysql # use DIV operator for integer division
query I rowsort label-4545
SELECT DISTINCT - col2 + 40 * + col0 + + col0 DIV - col0 FROM tab1 cor0
----
2502
3103
65
skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT - col2 + 40 * + col0 + + col0 / - col0 FROM tab1 cor0
----
2502
3103
65
query I rowsort
SELECT ALL 62 * + col0 - col2 FROM tab1 AS cor0
----
132
3911
4864
query I rowsort
SELECT DISTINCT + col0 * 23 FROM tab0 AS cor0
----
2047
552
805
query I rowsort
SELECT 42 + + col0 AS col2 FROM tab0
----
131
66
77
query I rowsort
SELECT 2 + tab2.col0 * + col2 + 85 * + col1 FROM tab2
----
2826
4449
7045
onlyif mysql # use DIV operator for integer division
query I rowsort label-4550
SELECT - col2 DIV + col1 + + ( 36 ) AS col2 FROM tab1
----
29
31
34
skipif mysql # not compatible
query I rowsort label-4550
SELECT - col2 / + col1 + + ( 36 ) AS col2 FROM tab1
----
29
31
34
query I rowsort
SELECT DISTINCT + ( - col2 * - tab2.col2 + 37 ) FROM tab2
----
1481
713
766
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 cor2
----
972 values hashing to 5e655b1287771868a8f868574a94d749
query I rowsort
SELECT ALL col2 * col0 * + tab2.col1 AS col0 FROM tab2
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-4554
SELECT ALL col0 DIV + cor0.col1 + - col1 DIV - col1 FROM tab1 AS cor0
----
1
7
7
skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL col0 / + cor0.col1 + - col1 / - col1 FROM tab1 AS cor0
----
1
7
7
query I rowsort
SELECT + - cor0.col1 + + 88 AS col1 FROM tab0 AS cor0
----
-3
-9
2
query I rowsort
SELECT ALL - col1 * + 6 - - col2 AS col2 FROM tab2 AS cor0
----
-159
-328
-64
onlyif mysql # use DIV operator for integer division
query I rowsort label-4557
SELECT DISTINCT + - col0 DIV + 29 FROM tab0 AS cor0
----
-1
-3
0
skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT + - col0 / + 29 FROM tab0 AS cor0
----
-1
-3
0
query I rowsort
SELECT + col0 * col0 + col0 * col1 FROM tab1 AS cor0
----
4736
7440
87
query I rowsort
SELECT ( - 26 ) * - col0 * + 9 AS col2 FROM tab0
----
20826
5616
8190
query I rowsort
SELECT + col2 + col1 * - col0 + col1 FROM tab0
----
-1945
-3297
-7926
query I rowsort
SELECT ALL 42 AS col0 FROM tab2
----
42
42
42
query I rowsort
SELECT ALL ( - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL col0 * 25 FROM tab1 AS cor0
----
1600
2000
75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4564
SELECT - CAST( NULL AS SIGNED ) - 17 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4564
SELECT - CAST ( NULL AS INTEGER ) - 17 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col2 + cor0.col2 AS col0 FROM tab0 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4566
SELECT - + 60 * + 3 + col1 + col2 DIV + col0 FROM tab1 cor0
----
-136
-166
-170
skipif mysql # not compatible
query I rowsort label-4566
SELECT - + 60 * + 3 + col1 + col2 / + col0 FROM tab1 cor0
----
-136
-166
-170
query I rowsort
SELECT ALL + + col2 * cor0.col1 + ( col0 + + col2 ) FROM tab0 AS cor0
----
133
2895
7633
query I rowsort
SELECT DISTINCT - 97 + + col1 * + col2 FROM tab1 AS cor0
----
1151
1307
473
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 + col1 * tab1.col0 AS col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT - 95 * + col2 FROM tab1
----
-5130
-5415
-9120
query I rowsort
SELECT + 77 + - col2 - + col0 AS col0 FROM tab2 cor0
----
-27
-40
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 - cor0.col0 col0 FROM tab2 AS cor0
----
-14
-156
-158
onlyif mysql # use DIV operator for integer division
query I rowsort label-4574
SELECT DISTINCT - 78 * cor0.col1 * cor0.col0 + col0 DIV col1 AS col2 FROM tab1 cor0
----
-49914
-6084
-81114
skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT - 78 * cor0.col1 * cor0.col0 + col0 / col1 AS col2 FROM tab1 cor0
----
-49914
-6084
-81114
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - col1 col0 FROM tab0
----
53
9
96
query I rowsort
SELECT 38 * + 64 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0ab9c7743b75f1a2512c523f8d3def
onlyif mysql # use DIV operator for integer division
query I rowsort label-4577
SELECT - 13 DIV + col2 + - 53 - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1142
-67
-6777
skipif mysql # not compatible
query I rowsort label-4577
SELECT - 13 / + col2 + - 53 - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1142
-67
-6777
query I rowsort
SELECT - col1 * cor0.col1 * ( - col2 ) - + col1 AS col0 FROM tab2 AS cor0
----
10965
25916
90447
query I rowsort
SELECT - - col0 * + col2 - - col2 AS col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT - col1 + - col2 * ( - col2 ) AS col0 FROM tab2 cor0
----
1427
617
698
query I rowsort
SELECT + + col2 * col1 + col2 * col0 AS col2 FROM tab0 AS cor0
----
132
14760
3630
query I rowsort
SELECT col0 * 78 AS col2 FROM tab0 cor0
----
1872
2730
6942
query I rowsort
SELECT - + col1 + - 25 FROM tab2 AS cor0
----
-42
-56
-84
query I rowsort
SELECT - 95 FROM tab0, tab2 AS cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c
query I rowsort
SELECT cor1.col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT + 71 AS col1 FROM tab0
----
71
query I rowsort
SELECT + cor0.col2 * + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 16ae0e1090cb09b93854a4788f17716b
query I rowsort
SELECT col0 + + col2 * col0 * + col0 - + cor0.col1 FROM tab1 AS cor0
----
233526
463
614467
query I rowsort
SELECT + col0 * + col2 + + ( - 57 + col0 * - col0 ) AS col2 FROM tab2 AS cor0
----
-3296
-4113
83
query I rowsort
SELECT DISTINCT - ( - ( col1 ) ) FROM tab1
----
10
13
26
query I rowsort
SELECT + col0 - ( col0 ) * col2 * col2 FROM tab1 AS cor0
----
-207872
-737200
-8745
onlyif mysql # use DIV operator for integer division
query I rowsort label-4592
SELECT DISTINCT col2 DIV col0 + + col0 FROM tab0 AS cor0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-4592
SELECT DISTINCT col2 / col0 + + col0 FROM tab0 AS cor0
----
25
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 col0 FROM tab1 cor0
----
41
41
41
query I rowsort
SELECT DISTINCT + - col1 * ( - cor0.col1 ) * 61 + - 71 * cor0.col2 + col2 FROM tab0 AS cor0
----
448846
499401
573879
query I rowsort
SELECT ALL - cor1.col0 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4596
SELECT - CAST( - col0 AS SIGNED ) + + col2 AS col1 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-4596
SELECT - CAST ( - col0 AS INTEGER ) + + col2 AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT col1 * 9 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
104
208
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4598
SELECT DISTINCT - ( + col2 ) + + col0 DIV + 13 AS col0 FROM tab1 AS cor0
----
-53
-54
-90
skipif mysql # not compatible
query I rowsort label-4598
SELECT DISTINCT - ( + col2 ) + + col0 / + 13 AS col0 FROM tab1 AS cor0
----
-53
-54
-90
query I rowsort
SELECT col2 + col0 + - col2 FROM tab2
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4600
SELECT CAST( - col2 AS SIGNED ) * col1 + + 66 AS col0 FROM tab1
----
-1182
-1338
-504
skipif mysql # not compatible
query I rowsort label-4600
SELECT CAST ( - col2 AS INTEGER ) * col1 + + 66 AS col0 FROM tab1
----
-1182
-1338
-504
query I rowsort
SELECT ALL col0 + 87 * col2 AS col0 FROM tab1
----
4701
5023
8432
query I rowsort
SELECT DISTINCT - - ( col0 ) * + cor0.col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL col1 * col2 + - col2 + ( - col2 ) FROM tab1 AS cor0
----
1056
1296
456
query I rowsort
SELECT - ( col0 ) * col0 + col0 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT ALL + 29 + + col1 FROM tab0 AS cor0
----
115
120
126
query I rowsort
SELECT DISTINCT 87 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
87
query I rowsort
SELECT DISTINCT - cor0.col2 * + col2 + col0 AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT DISTINCT 47 - col2 AS col1 FROM tab1 AS cor0
----
-10
-49
-7
query I rowsort
SELECT ALL + - col1 * col0 + - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 26 * 23 col2 FROM tab1 AS cor0
----
598
598
598
query I rowsort
SELECT DISTINCT 23 + + tab0.col0 FROM tab0, tab1, tab0 AS cor0
----
112
47
58
query I rowsort
SELECT - 73 + + col0 * - cor0.col0 FROM tab2 AS cor0
----
-122
-6157
-6314
query I rowsort
SELECT ALL - col2 - + col1 FROM tab0 AS cor0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort
SELECT ALL - col1 * + CAST ( + col2 + - col1 AS REAL ) AS col1 FROM tab0 AS cor0
----
4558
819
9312
query I rowsort
SELECT DISTINCT col2 + col2 * col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1224
-18975
-649440
query I rowsort
SELECT DISTINCT + + cor0.col1 + ( + 0 ) AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - col2 * + cor0.col2 + col0 AS col2 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT - - col1 + + 16 AS col1 FROM tab0 AS cor0
----
102
107
113
query I rowsort
SELECT - + col2 - + 91 FROM tab0 AS cor0
----
-124
-173
-92
query I rowsort
SELECT ALL + col1 - - cor0.col1 AS col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL col0 * - 94 FROM tab2 AS cor0
----
-658
-7332
-7426
query I rowsort
SELECT DISTINCT + cor0.col2 * - 80 FROM tab1 AS cor0
----
-4320
-4560
-7680
query I rowsort
SELECT ALL col2 * 56 AS col1 FROM tab2
----
1456
1512
2128
query I rowsort
SELECT 27 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT 38 * + tab1.col0 * cor0.col1 FROM tab1, tab0 cor0
----
9 values hashing to 68ee2d6a7cdac1c282f241a6ce72a64b
query I rowsort
SELECT DISTINCT - + col2 * + 98 FROM tab2 AS cor0
----
-2548
-2646
-3724
query I rowsort
SELECT DISTINCT col2 + + col0 * + 70 AS col0 FROM tab2 AS cor0
----
517
5486
5568
query I rowsort
SELECT ALL - col0 + ( 15 ) FROM tab2 AS cor0
----
-63
-64
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 * ( + col1 + - col2 ) col2 FROM tab1 AS cor0
----
-1159
-534
-731
query I rowsort
SELECT + - col0 * - col0 - col1 * - 43 FROM tab1 AS cor0
----
1127
4526
6959
query I rowsort
SELECT - 97 * col1 * col2 - 22 FROM tab1 AS cor0
----
-121078
-136210
-55312
query I rowsort
SELECT DISTINCT + cor0.col0 - + 30 AS col2 FROM tab2 AS cor0
----
-23
48
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-4633
SELECT ALL cor0.col0 + col0 DIV col0 AS col0 FROM tab1 cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL cor0.col0 + col0 / col0 AS col0 FROM tab1 cor0
----
4
65
81
query I rowsort
SELECT col0 - col0 * col2 * - 47 FROM tab1 AS cor0
----
171520
361040
7617
query I rowsort
SELECT ALL + + col1 + col2 * col2 + col2 FROM tab0 AS cor0
----
1208
6897
99
query I rowsort
SELECT 62 + - cor0.col0 FROM tab2 AS cor0
----
-16
-17
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-4637
SELECT ALL - col0 * col0 DIV col1 + CAST( col0 AS SIGNED ) + col1 FROM tab1 AS cor0
----
-335
-399
29
skipif mysql # not compatible
query I rowsort label-4637
SELECT ALL - col0 * col0 / col1 + CAST ( col0 AS INTEGER ) + col1 FROM tab1 AS cor0
----
-335
-399
29
query I rowsort
SELECT col2 * ( + col0 ) + + tab1.col1 FROM tab1
----
188
3658
7693
query I rowsort
SELECT 47 * col2 FROM tab2 AS cor0
----
1222
1269
1786
query I rowsort
SELECT - col2 + 68 * col0 AS col1 FROM tab0
----
1599
2379
5970
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + col2 * ( cor0.col0 ) + cor0.col0 col0 FROM tab2 cor0
----
2132
223
3119
query I rowsort
SELECT DISTINCT + 23 * col1 AS col1 FROM tab1 AS cor0
----
230
299
598
query I rowsort
SELECT ALL col2 + col1 AS col2 FROM tab2 AS cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 * col1 * + col2 col0 FROM tab1 AS cor0
----
105300
42750
93600
onlyif mysql # use DIV operator for integer division
query I rowsort label-4645
SELECT DISTINCT + + col2 + - col1 DIV - 87 FROM tab1 cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT + + col2 + - col1 / - 87 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL - 28 * + col1 FROM tab1 AS cor0
----
-280
-364
-728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 * - col1 col1 FROM tab1 AS cor0
----
100
130
260
query I rowsort
SELECT ALL - - 96 FROM tab1 AS cor0
----
96
96
96
query I rowsort
SELECT - - col1 * col2 + + ( cor0.col1 ) + + col1 FROM tab2 cor0
----
1652
680
899
onlyif mysql # use DIV operator for integer division
query I rowsort label-4650
SELECT + col0 + - col1 DIV + ( col0 * col2 ) + + col2 AS col0 FROM tab1 AS cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-4650
SELECT + col0 + - col1 / + ( col0 * col2 ) + + col2 AS col0 FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 * - cor0.col0 + + 90 + + col1 col0 FROM tab1 AS cor0
----
-106
-4636
-5817
onlyif mysql # use DIV operator for integer division
query I rowsort label-4652
SELECT + ( + col1 ) + - tab2.col0 - + col1 DIV + col1 FROM tab2
----
-20
-63
23
skipif mysql # not compatible
query I rowsort label-4652
SELECT + ( + col1 ) + - tab2.col0 - + col1 / + col1 FROM tab2
----
-20
-63
23
query I rowsort
SELECT ALL 72 * - 94 + col2 * 1 AS col1 FROM tab1
----
-6672
-6711
-6714
query I rowsort
SELECT ALL + cor0.col0 + col0 + + col1 * - 6 AS col0 FROM tab2 AS cor0
----
-172
-198
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-4655
SELECT ALL - - col0 * cor0.col2 + col1 DIV + col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL - - col0 * cor0.col2 + col1 / + col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT 9 AS col2 FROM tab1 cor0
----
9
query I rowsort
SELECT - ( - col1 ) * - cor0.col0 + - col1 * col2 AS col2 FROM tab0 AS cor0
----
-15561
-3492
-4902
query I rowsort
SELECT ALL - 23 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d
query I rowsort
SELECT DISTINCT - - ( col1 ) + - col2 * - col1 AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL 98 * col0 FROM tab0 AS cor0
----
2352
3430
8722
onlyif mysql # use DIV operator for integer division
query I rowsort label-4661
SELECT - cor0.col0 DIV + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f59e02d45e48e1ed09e8ba1d9c2f06bd
skipif mysql # not compatible
query I rowsort label-4661
SELECT - cor0.col0 / + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f59e02d45e48e1ed09e8ba1d9c2f06bd
query I rowsort
SELECT 90 + + col1 FROM tab0
----
176
181
187
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4663
SELECT col2 * - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-4663
SELECT col2 * - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - - col1 * + ( col1 ) FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT - cor0.col1 + - ( col1 ) * col2 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT - 8 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 852581644118629bf652b1aa4b8f4363
onlyif mysql # use DIV operator for integer division
query I rowsort label-4667
SELECT col1 DIV + col1 - - col0 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-4667
SELECT col1 / + col1 - - col0 FROM tab0
----
25
36
90
query I rowsort
SELECT + col2 + - cor0.col2 * - cor0.col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL 90 FROM tab2
----
90
90
90
query I rowsort
SELECT tab0.col1 * 22 AS col2 FROM tab0
----
1892
2002
2134
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4671
SELECT + CAST( NULL AS DECIMAL ) / + tab1.col0 col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4671
SELECT + CAST ( NULL AS REAL ) / + tab1.col0 col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col0 AS REAL ) * cor0.col0 + col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT col2 + 92 FROM tab0 AS cor0
----
125
174
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col0 col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT col0 * - col2 * ( + col2 ) AS col0 FROM tab0 cor0
----
-26136
-35
-598436
query I rowsort
SELECT - + cor0.col1 * cor0.col0 + + col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + col2 AS REAL ) col0 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL + 77 * + tab1.col1 FROM tab1
----
1001
2002
770
skipif mysql # not compatible
query I rowsort
SELECT - cor0.col1 + - CAST ( col0 AS REAL ) FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT tab0.col1 + col2 * - tab0.col1 + col1 FROM tab0
----
-2666
-7280
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-41
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2, tab2 cor3
----
3645 values hashing to a6775d4c5b4880512ff9492a52ee0905
query I rowsort
SELECT col2 * + 27 + - col0 + col1 FROM tab2
----
683
753
964
query I rowsort
SELECT ALL + col2 + + cor0.col0 + - col0 * + col2 * + col1 AS col2 FROM tab0 AS cor0
----
-3359
-663947
-68055
query I rowsort
SELECT + - col0 * + col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL cor0.col1 * + col0 + col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT - col1 * - col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - ( 33 ) AS col2 FROM tab1 AS cor0
----
-33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 66 + + ( - col2 * - col1 ) col1 FROM tab1 cor0
----
1182
1338
504
query I rowsort
SELECT DISTINCT + ( - ( - col1 ) ) + - 38 * - col2 FROM tab1 AS cor0
----
2078
2176
3661
query I rowsort
SELECT - + ( - col1 ) + cor0.col1 AS col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL + cor0.col0 * + col1 - col1 * - col1 AS col2 FROM tab1 AS cor0
----
1209
740
754
query I rowsort
SELECT ALL 89 + col0 AS col0 FROM tab2 AS cor0
----
167
168
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col2 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + 79 * col0 AS col2 FROM tab1 AS cor0
----
237
5056
6320
query I rowsort
SELECT ALL cor0.col1 + - cor0.col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + 39 * 80 AS col1 FROM tab2 AS cor0
----
-3120
query I rowsort
SELECT + col2 * + col1 * + col1 + + col2 FROM tab1 AS cor0
----
16320
36558
5757
onlyif mysql # use DIV operator for integer division
query I rowsort label-4699
SELECT + ( col2 ) DIV - col1 + cor0.col2 * col1 FROM tab2 AS cor0
----
1534
644
837
skipif mysql # not compatible
query I rowsort label-4699
SELECT + ( col2 ) / - col1 + cor0.col2 * col1 FROM tab2 AS cor0
----
1534
644
837
query I rowsort
SELECT 28 + ( cor0.col0 ) FROM tab1 cor0
----
108
31
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-4701
SELECT + 60 DIV + cor0.col2 + col2 FROM tab1 AS cor0
----
55
58
96
skipif mysql # not compatible
query I rowsort label-4701
SELECT + 60 / + cor0.col2 + col2 FROM tab1 AS cor0
----
55
58
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4702
SELECT CAST( + col0 AS SIGNED ) FROM tab1 cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4702
SELECT CAST ( + col0 AS INTEGER ) FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL cor0.col0 + tab2.col0 * 82 + - cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to a24a3ad5ceb6ba4b76b7447500186681
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 * cor0.col1 col2 FROM tab2 AS cor0
----
-1209
-2301
-663
query I rowsort
SELECT col2 * - col0 + + ( - col2 ) AS col1 FROM tab0
----
-36
-7380
-825
query I rowsort
SELECT 63 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT DISTINCT + 51 AS col2 FROM tab2 AS cor0
----
51
query I rowsort
SELECT ALL - - 49 FROM tab0 cor0
----
49
49
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-4709
SELECT DISTINCT col1 DIV col0 + col2 * col0 AS col0 FROM tab0 AS cor0
----
37
7299
795
skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT col1 / col0 + col2 * col0 AS col0 FROM tab0 AS cor0
----
37
7299
795
query I rowsort
SELECT + - 10 + + col0 * - 46 * + col2 FROM tab0 AS cor0
----
-1620
-335718
-36442
query I rowsort
SELECT DISTINCT col2 * + cor0.col1 + cor0.col2 FROM tab2 cor0
----
1560
684
864
query I rowsort
SELECT ALL + col0 + - col0 * - ( + 39 * - col2 ) AS col2 FROM tab0 AS cor0
----
-1330
-284533
-30864
query I rowsort
SELECT ALL + - 80 FROM tab0 cor0
----
-80
-80
-80
query I rowsort
SELECT ALL + - 20 FROM tab0 cor0
----
-20
-20
-20
query I rowsort
SELECT + 95 * + col2 FROM tab0 AS cor0
----
3135
7790
95
query I rowsort
SELECT ALL col2 * + col1 + - col2 AS col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT 80 * col0 AS col2 FROM tab0 AS cor0
----
1920
2800
7120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 51 - col1 * col2 col1 FROM tab0 AS cor0
----
-2821
1548
4850
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4719
SELECT DISTINCT + + col0 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT + + col0 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT col1 + + col1 + col1 FROM tab1 cor0
----
30
39
78
query I rowsort
SELECT ALL - 86 * + col0 + ( ( col0 ) ) - - col1 AS col2 FROM tab0
----
-1954
-2878
-7474
query I rowsort
SELECT + - 2 + 8 + col0 * + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-43
-6078
-6235
query I rowsort
SELECT ALL + ( + col0 ) * - col0 + - col0 * - col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 - + col1 AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT col0 * - col1 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT - ( + col2 ) + + cor0.col2 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 * 38 * cor0.col2 col1 FROM tab0 AS cor0
----
120384
299136
3648
query I rowsort
SELECT DISTINCT + - 36 AS col2 FROM tab2 AS cor0
----
-36
query I rowsort
SELECT DISTINCT ( - 43 ) AS col0 FROM tab2 AS cor0
----
-43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col2 col0 FROM tab1
----
0
query I rowsort
SELECT DISTINCT - 78 FROM tab1, tab1 cor0
----
-78
query I rowsort
SELECT ALL + cor0.col0 - 66 AS col1 FROM tab0, tab1, tab0 cor0
----
27 values hashing to a0e264a2a300701f1a75104b3158b70c
query I rowsort
SELECT ALL + 53 AS col0 FROM tab0
----
53
53
53
query I rowsort
SELECT + 94 * - 15 FROM tab0 AS cor0
----
-1410
-1410
-1410
onlyif mysql # use DIV operator for integer division
query I rowsort label-4735
SELECT + cor0.col0 + - cor0.col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
7
78
81
skipif mysql # not compatible
query I rowsort label-4735
SELECT + cor0.col0 + - cor0.col2 / - col1 AS col2 FROM tab2 AS cor0
----
7
78
81
query I rowsort
SELECT ALL col2 * + col0 + - col1 AS col2 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT DISTINCT col2 + 94 AS col2 FROM tab2 AS cor0
----
120
121
132
query I rowsort
SELECT ALL tab1.col2 AS col2 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ( 59 + tab2.col2 ) FROM tab2
----
85
86
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 * - col1 + col0 col0 FROM tab1
----
-116
-154
-465
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 - 6 AS col1 FROM tab0 AS cor0
----
-6
-6
-6
query I rowsort
SELECT DISTINCT + 94 + - col1 AS col1 FROM tab2 AS cor0
----
35
63
77
query I rowsort
SELECT - col0 * 64 + col1 + tab0.col2 FROM tab0
----
-1417
-2142
-5523
query I rowsort
SELECT ALL col0 * ( col2 ) * col0 + - ( col1 ) * col2 FROM tab0
----
1128
16170
642060
query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab1, tab2, tab2 AS cor0, tab0
----
-26
-27
-38
query I rowsort
SELECT ALL col1 * col2 + col1 * tab1.col1 + + col2 FROM tab1
----
1513
2134
727
query I rowsort
SELECT - col2 + 80 * 78 FROM tab0
----
6158
6207
6239
query I rowsort
SELECT DISTINCT + + col2 + + col2 AS col0 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT ALL - - cor0.col0 * col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT 32 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b
query I rowsort
SELECT ALL - + col0 * + 34 FROM tab0 AS cor0
----
-1190
-3026
-816
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab0 AS cor0 WHERE ( NULL ) > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 0 col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + 88 * - cor0.col0 + + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-15753
-2688
-4305
onlyif mysql # use DIV operator for integer division
query I rowsort label-4756
SELECT DISTINCT - 28 * 62 DIV col1 - col0 AS col2 FROM tab1 AS cor0
----
-213
-237
-69
skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT - 28 * 62 / col1 - col0 AS col2 FROM tab1 AS cor0
----
-213
-237
-69
query I rowsort
SELECT DISTINCT - col1 * + 81 + col2 FROM tab0 cor0
----
-6933
-7289
-7856
onlyif mysql # use DIV operator for integer division
query I rowsort label-4758
SELECT ALL - col0 DIV + cor0.col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL - col0 / + cor0.col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT + + col2 + + col0 AS col2 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4760
SELECT DISTINCT + CAST( - col0 AS SIGNED ) + - col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57
skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) + - col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4761
SELECT ALL CAST( - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4762
SELECT DISTINCT 98 DIV + col2 + cor0.col1 FROM tab0 cor0
----
195
88
92
skipif mysql # not compatible
query I rowsort label-4762
SELECT DISTINCT 98 / + col2 + cor0.col1 FROM tab0 cor0
----
195
88
92
query I rowsort
SELECT ALL - + 47 * col2 - col0 FROM tab2 AS cor0
----
-1276
-1300
-1865
onlyif mysql # use DIV operator for integer division
query I rowsort label-4764
SELECT col2 DIV - col2 + col0 AS col2 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-4764
SELECT col2 / - col2 + col0 AS col2 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT DISTINCT - ( 68 ) FROM tab1 AS cor0
----
-68
query I rowsort
SELECT + ( + col0 ) + - col0 * - ( col2 ) FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL - cor0.col0 * - col0 * col0 AS col0 FROM tab1 AS cor0
----
262144
27
512000
onlyif mysql # use DIV operator for integer division
query I rowsort label-4768
SELECT ALL - 66 DIV + 13 + col2 col1 FROM tab1 AS cor0
----
49
52
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL - 66 / + 13 + col2 col1 FROM tab1 AS cor0
----
49
52
91
query I rowsort
SELECT + ( col1 ) * - col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 * - tab2.col0 + col2 * col1 * + col1 col1 FROM tab2
----
125058
143234
31050
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 ) NOT IN ( col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT - col2 + col1 AS col0 FROM tab1 WHERE + col2 * + col1 NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT col1 * - col2 + tab0.col2 AS col1 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT + tab1.col1 * + col1 AS col1 FROM tab1
----
100
169
676
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 NOT IN ( + col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT + tab0.col2 FROM tab0 WHERE NOT - col2 <> NULL
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN + col0 + col1 + + col1 AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col1 col2 FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT - col0 + cor0.col1 FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4780
SELECT col2 DIV - col0 + col1 * - col0 * + col1 FROM tab2
----
-22831
-271518
-6730
skipif mysql # not compatible
query I rowsort label-4780
SELECT col2 / - col0 + col1 * - col0 * + col1 FROM tab2
----
-22831
-271518
-6730
query I rowsort
SELECT DISTINCT + col1 - + col1 FROM tab0 WHERE NOT NULL BETWEEN ( col1 ) AND NULL
----
query I rowsort
SELECT DISTINCT + col1 * - tab2.col0 AS col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL + col0 / - tab1.col2 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND ( col2 + col1 )
----
query I rowsort
SELECT - tab0.col2 * col2 - col0 * + col1 AS col2 FROM tab0
----
-14823
-3153
-3396
query III rowsort
SELECT * FROM tab0 WHERE NULL > ( col1 * + col2 + col0 )
----
query I rowsort
SELECT DISTINCT - tab1.col1 * - col0 * col1 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT DISTINCT - col0 + + col1 + + col2 FROM tab2
----
-24
51
7
query I rowsort
SELECT ALL col2 * col2 AS col1 FROM tab0 cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-4789
SELECT + + col0 + col1 * col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-4789
SELECT + + col0 + col1 * col0 / + col0 AS col0 FROM tab2 AS cor0
----
137
38
96
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 JOIN tab2 ON NOT NULL <= NULL
----
query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT NULL BETWEEN ( col2 ) AND col0
----
query I rowsort
SELECT + - col0 * ( col2 ) + col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL - + col2 + 71 * - col1 AS col1 FROM tab2 AS cor0
----
-1245
-2228
-4215
query I rowsort
SELECT ALL - col0 * + col0 * - 21 FROM tab2 AS cor0
----
1029
127764
131061
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4795
SELECT - cor0.col1 * CAST( + 67 AS SIGNED ) FROM tab2 cor0
----
-1139
-2077
-3953
skipif mysql # not compatible
query I rowsort label-4795
SELECT - cor0.col1 * CAST ( + 67 AS INTEGER ) FROM tab2 cor0
----
-1139
-2077
-3953
query I rowsort
SELECT ALL + + col0 * + 11 AS col1 FROM tab0 AS cor0
----
264
385
979
query I rowsort
SELECT ALL - col0 * + 75 + - col2 FROM tab2 AS cor0
----
-552
-5876
-5963
query I rowsort
SELECT DISTINCT col0 * 8 AS col1 FROM tab2
----
56
624
632
query I rowsort
SELECT ALL 2 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT + col0 * + ( + col0 ) + col1 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT DISTINCT col1 * - 64 AS col1 FROM tab1
----
-1664
-640
-832
query I rowsort
SELECT col1 * col0 FROM tab2 WHERE + col1 IN ( + col2 + col1 )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 > NULL
----
query I rowsort
SELECT 74 * col0 + - col2 AS col0 FROM tab2 AS cor0
----
491
5746
5808
query I rowsort
SELECT DISTINCT - 56 * cor0.col0 + col1 * + col2 AS col1 FROM tab0 AS cor0
----
-1863
1494
2478
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * - 20 + col2 * + col1 col2 FROM tab1 AS cor0
----
-570
-672
324
query I rowsort
SELECT col0 + + col0 * ( col1 * col0 + col0 ) AS col2 FROM tab1 AS cor0
----
246
45120
89680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4808
SELECT ALL - + col2 + col1 DIV 17 AS col1 FROM tab2 AS cor0
----
-23
-26
-37
skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL - + col2 + col1 / 17 AS col1 FROM tab2 AS cor0
----
-23
-26
-37
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= - col2 * + col0
----
query I rowsort
SELECT col1 * + col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND - col1
----
query I rowsort
SELECT col2 * - col1 + col1 * - col2 AS col0 FROM tab2
----
-1292
-1674
-3068
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + col0 col2 FROM tab0
----
0
query I rowsort
SELECT - tab0.col0 - - col1 FROM tab0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4814
SELECT ALL col2 + col0 DIV ( col1 + + col0 ) FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL col2 + col0 / ( col1 + + col0 ) FROM tab1
----
54
57
96
query I rowsort
SELECT - + 70 + + col0 FROM tab1 cor0
----
-6
-67
10
query I rowsort
SELECT + col1 * 40 + - 40 FROM tab0
----
3400
3600
3840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4817
SELECT ALL col0 * + CAST( col1 + - col2 AS SIGNED ) * col2 AS col0 FROM tab0
----
3360
41976
65682
skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL col0 * + CAST ( col1 + - col2 AS INTEGER ) * col2 AS col0 FROM tab0
----
3360
41976
65682
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4818
SELECT DISTINCT + + col1 + - CAST( - ( + col0 ) AS SIGNED ) * col1 FROM tab0 AS cor0
----
2150
3492
8190
skipif mysql # not compatible
query I rowsort label-4818
SELECT DISTINCT + + col1 + - CAST ( - ( + col0 ) AS INTEGER ) * col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT + col0 * + 68 FROM tab1 AS cor0
----
204
4352
5440
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4820
SELECT - col1 * - CAST( ( - col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-4820
SELECT - col1 * - CAST ( ( - col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col0 * cor0.col2 * col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL - col2 * + cor0.col1 + 30 AS col1 FROM tab0 AS cor0
----
-2808
-67
-7432
query I rowsort
SELECT DISTINCT - + cor0.col2 + + col2 AS col1 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 11 col2 FROM tab1 AS cor0
----
-15
-2
1
skipif mysql # not compatible
query I rowsort
SELECT - col2 * CAST ( col0 AS REAL ) FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - col2 + ( + col2 * col0 ) + + col2 * col2 FROM tab1 AS cor0
----
16800
3024
6840
onlyif mysql # use DIV operator for integer division
query I rowsort label-4827
SELECT DISTINCT col0 * col2 DIV + 78 FROM tab0 AS cor0
----
0
10
93
skipif mysql # not compatible
query I rowsort label-4827
SELECT DISTINCT col0 * col2 / + 78 FROM tab0 AS cor0
----
0
10
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-4828
SELECT DISTINCT + CAST( + col0 AS SIGNED ) DIV cor0.col0 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) / cor0.col0 FROM tab2 AS cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4829
SELECT DISTINCT col0 * ( col1 ) DIV col0 + - col1 - + col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-4829
SELECT DISTINCT col0 * ( col1 ) / col0 + - col1 - + col1 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4830
SELECT ALL - 50 DIV 30 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL - 50 / 30 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - cor0.col2 * + 90 - col1 * col1 AS col1 FROM tab1 AS cor0
----
-5230
-5536
-8809
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 60 col0 FROM tab2 AS cor0
----
-420
-4680
-4740
query I rowsort
SELECT - col0 - - 74 * - 7 AS col2 FROM tab0
----
-542
-553
-607
query I rowsort
SELECT - col0 - - 96 AS col1 FROM tab1
----
16
32
93
query I rowsort
SELECT ALL + ( + col2 ) + - col1 AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT col1 + - col0 * - col2 * col1 AS col0 FROM tab0 AS cor0
----
3492
664209
68198
query I rowsort
SELECT DISTINCT col2 + 52 * col1 FROM tab2 AS cor0
----
1639
3094
922
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ( col1 ) + + cor0.col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - + col2 + col2 * 83 FROM tab2 AS cor0
----
2132
2214
3116
query I rowsort
SELECT + 9 * col1 + + col1 FROM tab0 AS cor0
----
860
910
970
query I rowsort
SELECT col2 + cor0.col1 * + ( - col0 ) FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT - col2 * col2 + - col0 AS col1 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT DISTINCT - 93 + cor0.col0 AS col2 FROM tab2, tab0, tab2 cor0
----
-14
-15
-86
query I rowsort
SELECT DISTINCT + 73 AS col2 FROM tab1
----
73
query I rowsort
SELECT ALL - 44 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79
query I rowsort
SELECT DISTINCT 33 * - col1 + 38 * col2 AS col2 FROM tab2
----
-959
3
883
query I rowsort
SELECT col0 + 61 FROM tab0 AS cor0
----
150
85
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - 54 col2 FROM tab1 AS cor0
----
1404
540
702
query I rowsort
SELECT - col0 * - col0 * col0 FROM tab0 AS cor0
----
13824
42875
704969
query I rowsort
SELECT DISTINCT + + cor0.col1 * - ( - col2 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + 7 * col0 + 52 + 89 * - col1 FROM tab0
----
-7424
-7434
-8336
onlyif mysql # use DIV operator for integer division
query I rowsort label-4853
SELECT ALL - cor0.col0 DIV tab1.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 2333fa0ff036e88b19ebee0e364138a5
skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL - cor0.col0 / tab1.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 2333fa0ff036e88b19ebee0e364138a5
query I rowsort
SELECT ALL + col0 + - col1 AS col0 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT - tab0.col0 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL 44 + col2 + - col0 * 54 AS col2 FROM tab0
----
-1219
-1845
-4680
query I rowsort
SELECT ALL - col2 * col1 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT + + col1 + - col2 * col1 + - col2 FROM tab2 AS cor0
----
-1501
-667
-833
onlyif mysql # use DIV operator for integer division
query I rowsort label-4859
SELECT - col1 + + col2 + - col0 DIV - col1 FROM tab0 AS cor0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-4859
SELECT - col1 + + col2 + - col0 / - col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT col0 + + tab1.col0 AS col2 FROM tab1
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 + + tab2.col1 * - tab2.col2 + col1 col1 FROM tab2
----
-1399
-553
-730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 * - col1 col1 FROM tab2
----
-272
-3422
-930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + tab1.col0 * col2 col1 FROM tab1
----
216
3705
7776
query I rowsort
SELECT - tab0.col1 + col2 * col2 FROM tab0
----
-96
1003
6633
onlyif mysql # use DIV operator for integer division
query I rowsort label-4865
SELECT DISTINCT - col2 DIV col1 AS col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT - col2 / col1 AS col2 FROM tab0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4866
SELECT DISTINCT - col0 DIV - col2 AS col0 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-4866
SELECT DISTINCT - col0 / - col2 AS col0 FROM tab1
----
0
1
query I rowsort
SELECT DISTINCT + col2 * col2 * col1 AS col0 FROM tab0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4868
SELECT DISTINCT + - col0 + - col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
-7
-78
-81
skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT + - col0 + - col2 / + col1 AS col1 FROM tab2 AS cor0
----
-7
-78
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-4869
SELECT + cor0.col2 DIV col1 + col2 FROM tab1 AS cor0
----
103
56
62
skipif mysql # not compatible
query I rowsort label-4869
SELECT + cor0.col2 / col1 + col2 FROM tab1 AS cor0
----
103
56
62
query I rowsort
SELECT - - col0 * - col2 + + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - col1 col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - 57 + col2 * + col1 * - col1 + - col2 AS col2 FROM tab1
----
-16377
-36615
-5814
onlyif mysql # use DIV operator for integer division
query I rowsort label-4873
SELECT ( tab1.col0 ) DIV col2 + - col0 AS col2 FROM tab1
----
-3
-63
-80
skipif mysql # not compatible
query I rowsort label-4873
SELECT ( tab1.col0 ) / col2 + - col0 AS col2 FROM tab1
----
-3
-63
-80
query I rowsort
SELECT col0 + col0 - col0 AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT ALL - cor0.col0 * - 27 FROM tab1 AS cor0
----
1728
2160
81
query I rowsort
SELECT - col0 + col1 * + col0 FROM tab1
----
576
75
960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4878
SELECT + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4878
SELECT + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * + col1 + col0 * + col0 FROM tab0 cor0
----
16020
2640
4620
query I rowsort
SELECT DISTINCT cor0.col0 + - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL + ( - col0 ) * col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL + - 81 + col1 FROM tab1 AS cor0
----
-55
-68
-71
query I rowsort
SELECT DISTINCT - + col2 * + col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT - 41 + + col0 AS col1 FROM tab2
----
-34
37
38
query I rowsort
SELECT DISTINCT + col0 - col1 AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT col1 - col1 * col2 FROM tab1 cor0
----
-1235
-1378
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 + col1 col0 FROM tab2 cor0
----
116
74
88
query I rowsort
SELECT DISTINCT 65 * - col1 AS col2 FROM tab2 AS cor0
----
-1105
-2015
-3835
onlyif mysql # use DIV operator for integer division
query I rowsort label-4889
SELECT ALL col0 DIV col1 + col1 AS col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL col0 / col1 + col1 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT col0 * + col1 - col0 * + cor0.col0 FROM tab1 AS cor0
----
-3456
-5360
69
query I rowsort
SELECT DISTINCT 75 AS col2 FROM tab1 AS cor0
----
75
query I rowsort
SELECT - col0 - + cor0.col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT ALL 76 + col2 * + col0 FROM tab1 AS cor0
----
238
3724
7756
query I rowsort
SELECT ALL + cor0.col0 * - col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - - col0 * + col0 + col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT + ( - cor1.col0 ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT - + 25 * - col2 FROM tab0 AS cor0
----
2050
25
825
query I rowsort
SELECT ALL + ( - 29 ) FROM tab2
----
-29
-29
-29
onlyif mysql # use DIV operator for integer division
query I rowsort label-4899
SELECT ALL - cor0.col1 DIV - 36 - cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
skipif mysql # not compatible
query I rowsort label-4899
SELECT ALL - cor0.col1 / - 36 - cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 160649b428b8d254517cd2096e054d21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT - col2 + - col0 AS col2 FROM tab0 cor0
----
-171
-36
-57
query I rowsort
SELECT 34 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
query I rowsort
SELECT - col0 * + col0 + - tab2.col1 AS col2 FROM tab2
----
-6143
-6258
-80
query I rowsort
SELECT DISTINCT - col2 + + col0 * 34 FROM tab2 AS cor0
----
211
2626
2648
query I rowsort
SELECT - tab2.col1 * 70 FROM tab2
----
-1190
-2170
-4130
query I rowsort
SELECT col0 * ( - 99 ) AS col1 FROM tab1
----
-297
-6336
-7920
query I rowsort
SELECT - col1 * 14 + cor0.col2 FROM tab0 AS cor0
----
-1171
-1192
-1357
query I rowsort
SELECT - - col2 + + 97 AS col2 FROM tab2 AS cor0
----
123
124
135
query I rowsort
SELECT col2 * - 9 * col1 + ( col2 ) FROM tab2 AS cor0
----
-13780
-5776
-7506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 57 + - 27 col2 FROM tab1 AS cor0
----
30
30
30
query I rowsort
SELECT 47 + 62 AS col2 FROM tab2 AS cor0
----
109
109
109
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4913
SELECT - CAST( + col2 AS SIGNED ) * + cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-4913
SELECT - CAST ( + col2 AS INTEGER ) * + cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT 74 + - 16 AS col1 FROM tab0
----
58
58
58
query I rowsort
SELECT + 47 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to 5c7a6f591fb2a38893dafe56c4b9b97f
query I rowsort
SELECT ALL - 45 * col1 + + col1 FROM tab2
----
-1364
-2596
-748
onlyif mysql # use DIV operator for integer division
query I rowsort label-4917
SELECT DISTINCT + col2 DIV col1 + + col1 AS col0 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-4917
SELECT DISTINCT + col2 / col1 + + col1 AS col0 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL tab1.col2 + ( col2 ) FROM tab1
----
108
114
192
query I rowsort
SELECT ALL 91 FROM tab0 AS cor0
----
91
91
91
query I rowsort
SELECT + + ( 58 ) * + col1 AS col2 FROM tab1 AS cor0
----
1508
580
754
query I rowsort
SELECT ALL - cor0.col1 * + cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 38f503ad6f93db2d1a70a8c95bb8c2c2
query I rowsort
SELECT - col1 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
7310
8190
9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4923
SELECT - CAST( + ( col2 ) AS SIGNED ) + + CAST( col1 AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0
----
24
583
944
skipif mysql # not compatible
query I rowsort label-4923
SELECT - CAST ( + ( col2 ) AS INTEGER ) + + CAST ( col1 AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0
----
24
583
944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 col0 FROM tab1 AS cor0
----
-55
-55
-55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4925
SELECT DISTINCT + cor0.col2 * + col0 + CAST( - 75 + col2 * 29 AS SIGNED ) col1 FROM tab2 cor0
----
2707
4029
897
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4925
SELECT DISTINCT + cor0.col2 * + col0 + CAST ( - 75 + col2 * 29 AS INTEGER ) col1 FROM tab2 cor0
----
2707
4029
897
query I rowsort
SELECT ALL + - cor0.col2 * + col1 + ( + col0 ) + - col1 AS col1 FROM tab1 AS cor0
----
-1181
-1427
-516
query I rowsort
SELECT ALL col2 + + col1 * 48 FROM tab2 AS cor0
----
1515
2858
854
onlyif mysql # use DIV operator for integer division
query I rowsort label-4928
SELECT DISTINCT + cor0.col0 DIV col1 + + col0 AS col1 FROM tab2 cor0
----
7
79
83
skipif mysql # not compatible
query I rowsort label-4928
SELECT DISTINCT + cor0.col0 / col1 + + col0 AS col1 FROM tab2 cor0
----
7
79
83
query I rowsort
SELECT ALL + 23 AS col2 FROM tab1
----
23
23
23
query I rowsort
SELECT DISTINCT 32 * 71 FROM tab1
----
2272
query I rowsort
SELECT + 39 + col2 FROM tab2 AS cor0
----
65
66
77
query I rowsort
SELECT DISTINCT + 14 * col0 - 8 AS col1 FROM tab1 AS cor0
----
1112
34
888
query I rowsort
SELECT DISTINCT - - 2 + col2 AS col1 FROM tab2 cor0
----
28
29
40
query I rowsort
SELECT DISTINCT col0 + col2 * - 39 AS col0 FROM tab1 AS cor0
----
-2103
-2159
-3664
query I rowsort
SELECT DISTINCT 92 * col0 AS col2 FROM tab0
----
2208
3220
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-4936
SELECT ALL 68 DIV - col0 - 15 * + ( col0 * col1 + - 1 * col0 ) FROM tab1 AS cor0
----
-1147
-14400
-8641
skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL 68 / - col0 - 15 * + ( col0 * col1 + - 1 * col0 ) FROM tab1 AS cor0
----
-1147
-14400
-8641
onlyif mysql # use DIV operator for integer division
query I rowsort label-4937
SELECT - - cor0.col1 DIV - 16 - - 11 FROM tab1 AS cor0
----
10
11
11
skipif mysql # not compatible
query I rowsort label-4937
SELECT - - cor0.col1 / - 16 - - 11 FROM tab1 AS cor0
----
10
11
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 + - col2 - - col0 * - col1 * 18 col2 FROM tab0 AS cor0
----
-137765
-35121
-57716
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4939
SELECT + - col2 * + CAST( - 78 AS SIGNED ) + col0 FROM tab1 AS cor0
----
4215
4510
7568
skipif mysql # not compatible
query I rowsort label-4939
SELECT + - col2 * + CAST ( - 78 AS INTEGER ) + col0 FROM tab1 AS cor0
----
4215
4510
7568
query I rowsort
SELECT + cor0.col0 * col1 + col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4941
SELECT - + col2 * + CAST( + 51 AS SIGNED ) + col1 * - col0 - 21 AS col1 FROM tab0 AS cor0
----
-12302
-3467
-3768
skipif mysql # not compatible
query I rowsort label-4941
SELECT - + col2 * + CAST ( + 51 AS INTEGER ) + col1 * - col0 - 21 AS col1 FROM tab0 AS cor0
----
-12302
-3467
-3768
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4942
SELECT col1 * CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4942
SELECT col1 * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * ( cor0.col2 ) + cor0.col1 * + 56 AS col1 FROM tab1 AS cor0
----
3809
4372
9944
query I rowsort
SELECT - cor0.col2 + + ( col1 ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT col2 * - cor0.col2 + - ( col1 * - col0 ) FROM tab1 AS cor0
----
-2609
-2838
-8176
query I rowsort
SELECT + cor0.col1 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-4947
SELECT - + col1 * col2 DIV + 52 + col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2784
7319
96
skipif mysql # not compatible
query I rowsort label-4947
SELECT - + col1 * col2 / + 52 + col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2784
7319
96
query I rowsort
SELECT - col2 + 87 * 77 - + col1 * - cor0.col1 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
16107
250734
685659
onlyif mysql # use DIV operator for integer division
query I rowsort label-4949
SELECT + cor0.col0 + + col1 DIV + col1 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-4949
SELECT + cor0.col0 + + col1 / + col1 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT DISTINCT - + cor0.col1 * + 39 AS col1 FROM tab0 AS cor0
----
-3354
-3549
-3783
query I rowsort
SELECT DISTINCT - - col1 + col2 * col1 - col2 * col2 FROM tab1 AS cor0
----
-1486
-2669
-7955
query I rowsort
SELECT ALL - 51 FROM tab0, tab1 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 21 * + 74 col0 FROM tab2, tab0 cor0
----
-1554
query I rowsort
SELECT ALL - col2 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT - 10 + col1 FROM tab1 AS cor0
----
0
16
3
query I rowsort
SELECT + col1 * 28 * col1 + 90 FROM tab2 cor0
----
26998
8182
97558
query I rowsort
SELECT DISTINCT + ( + col2 ) + cor0.col1 AS col1 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + col2 * col2 col2 FROM tab2
----
-1427
-617
-698
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4959
SELECT ALL col2 - CAST( NULL AS DECIMAL ) * tab1.col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL col2 - CAST ( NULL AS REAL ) * tab1.col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 - + ( + col0 ) AS col2 FROM tab0
----
2
62
62
query I rowsort
SELECT DISTINCT 40 FROM tab0, tab1, tab1 AS cor0
----
40
query I rowsort
SELECT - 50 * + col2 AS col1 FROM tab0
----
-1650
-4100
-50
query I rowsort
SELECT ALL 64 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT DISTINCT col1 * ( - ( - col1 ) ) + + col2 AS col2 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT ALL - col1 - col0 * col0 AS col2 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT DISTINCT col2 * ( 12 ) * col2 + + ( - cor0.col2 ) AS col1 FROM tab0 AS cor0
----
11
13035
80606
query I rowsort
SELECT 13 * - col0 FROM tab1
----
-1040
-39
-832
query I rowsort
SELECT - 82 AS col2 FROM tab1
----
-82
-82
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - tab2.col1 col2 FROM tab2
----
-24
19
62
query I rowsort
SELECT 29 FROM tab1, tab1 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT ALL + 43 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4
onlyif mysql # use DIV operator for integer division
query I rowsort label-4972
SELECT DISTINCT - cor0.col1 + - ( + col2 ) DIV + cor0.col0 FROM tab0 AS cor0
----
-87
-91
-97
skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT - cor0.col1 + - ( + col2 ) / + cor0.col0 FROM tab0 AS cor0
----
-87
-91
-97
query I rowsort
SELECT col1 + - ( col2 * col1 ) AS col0 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT - col0 * col2 + - 57 AS col2 FROM tab1 cor0
----
-219
-3705
-7737
query I rowsort
SELECT ALL + - cor0.col1 + + ( col0 ) FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT + col2 * + ( - ( col2 ) ) + 53 + + col2 FROM tab0 AS cor0
----
-1003
-6589
53
query I rowsort
SELECT ALL - col0 * + ( + col1 ) + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT - cor0.col1 * + 59 AS col2 FROM tab0 AS cor0
----
-5074
-5369
-5723
query I rowsort
SELECT ALL + + col2 * col0 + col2 AS col1 FROM tab1 cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT - col0 * + col1 + ( col0 ) AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4981
SELECT col1 + - CAST( + col2 AS SIGNED ) * + col0 * col0 FROM tab0 AS cor0
----
-1128
-18922
-649431
skipif mysql # not compatible
query I rowsort label-4981
SELECT col1 + - CAST ( + col2 AS INTEGER ) * + col0 * col0 FROM tab0 AS cor0
----
-1128
-18922
-649431
query I rowsort
SELECT DISTINCT + + 65 AS col0 FROM tab0 AS cor0
----
65
query I rowsort
SELECT DISTINCT + - 75 FROM tab0 AS cor0
----
-75
query I rowsort
SELECT + 72 AS col0 FROM tab2 AS cor0
----
72
72
72
query I rowsort
SELECT ALL + 25 AS col0 FROM tab2 AS cor0
----
25
25
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 83 * - col1 col0 FROM tab2 AS cor0
----
-1411
-2573
-4897
query I rowsort
SELECT ALL - 89 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 94 * + col2 + - col2 + ( + col1 + + col2 ) col0 FROM tab2 AS cor0
----
-2385
-2507
-3555
query I rowsort
SELECT ALL + 75 AS col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col2 * - ( - 35 ) * col1 col2 FROM tab0 AS cor0
----
-261088
-3394
-99297
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4991
SELECT - col2 + col2 * CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4991
SELECT - col2 + col2 * CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4992
SELECT ALL - col1 + col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL - col1 + col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + - col1 * 1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT ( - col1 ) + + 64 * - col2 FROM tab2 AS cor0
----
-1723
-1759
-2449
query I rowsort
SELECT ALL - - col1 * col1 + col1 + - col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT tab2.col2 + col0 + col1 AS col0 FROM tab2
----
134
163
65
query I rowsort
SELECT DISTINCT - - ( cor0.col0 ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + col2 * cor0.col1 + 44 FROM tab1 AS cor0
----
1292
1448
614
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4999
SELECT DISTINCT + - col0 + col0 - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4999
SELECT DISTINCT + - col0 + col0 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 + - col0 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT ALL - 49 AS col0 FROM tab1 AS cor0
----
-49
-49
-49
onlyif mysql # use DIV operator for integer division
query I rowsort label-5002
SELECT + 91 DIV - tab2.col0 AS col1 FROM tab2
----
-1
-1
-13
skipif mysql # not compatible
query I rowsort label-5002
SELECT + 91 / - tab2.col0 AS col1 FROM tab2
----
-1
-1
-13
query I rowsort
SELECT DISTINCT col1 * col0 * ( 61 ) FROM tab2 cor0
----
13237
280722
81923
onlyif mysql # use DIV operator for integer division
query I rowsort label-5004
SELECT ALL col1 + col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL col1 + col1 / - col1 AS col2 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT + + col2 * + cor0.col0 * + col2 + col1 * col0 AS col1 FROM tab2 AS cor0
----
115419
5320
57330
query I rowsort
SELECT + cor1.col1 * - 85 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 5adaa23c416a0110ec97ec8a917373c0
query I rowsort
SELECT ( cor0.col2 + - 25 ) * + 66 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 45f0d85bda744bcf70d981994d85ee18
query I rowsort
SELECT ALL + 91 * + col2 AS col2 FROM tab1 AS cor0
----
4914
5187
8736
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to fb1fb273a543ea33958edfcaa2e7ed26
onlyif mysql # use DIV operator for integer division
query I rowsort label-5010
SELECT DISTINCT 68 DIV + cor0.col1 FROM tab0, tab1 AS cor0, tab1 cor1, tab2 AS cor2
----
2
5
6
skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT 68 / + cor0.col1 FROM tab0, tab1 AS cor0, tab1 cor1, tab2 AS cor2
----
2
5
6
query I rowsort
SELECT DISTINCT + 54 AS col0 FROM tab2, tab1 AS cor0
----
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - 42 col1 FROM tab0 AS cor0
----
-131
-66
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-5013
SELECT DISTINCT + 47 DIV col0 + cor0.col2 col2 FROM tab1 cor0
----
57
69
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT + 47 / col0 + cor0.col2 col2 FROM tab1 cor0
----
57
69
96
query I rowsort
SELECT ALL + col2 * + 80 + - cor0.col2 FROM tab0 AS cor0
----
2607
6478
79
query I rowsort
SELECT + ( - col0 ) + + col2 * col2 FROM tab0 AS cor0
----
-34
1065
6635
onlyif mysql # use DIV operator for integer division
query I rowsort label-5016
SELECT + 2 * - 5 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5016
SELECT + 2 * - 5 / + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col0 + - col1 * col0 * + col1 FROM tab1
----
-13440
-2025
-6336
query I rowsort
SELECT DISTINCT 95 AS col0 FROM tab0, tab1 AS cor0
----
95
query I rowsort
SELECT - ( tab1.col0 * col1 ) + - 96 AS col0 FROM tab1
----
-1136
-174
-736
query I rowsort
SELECT - 16 AS col2 FROM tab1
----
-16
-16
-16
onlyif mysql # use DIV operator for integer division
query I rowsort label-5021
SELECT + col2 * col1 + col1 DIV - col0 + - CAST( + col0 AS SIGNED ) * col0 DIV + cor0.col0 AS col1 FROM tab1 AS cor0
----
1168
1393
506
skipif mysql # not compatible
query I rowsort label-5021
SELECT + col2 * col1 + col1 / - col0 + - CAST ( + col0 AS INTEGER ) * col0 / + cor0.col0 AS col1 FROM tab1 AS cor0
----
1168
1393
506
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab2 cor1, tab1, tab2 cor2
----
3645 values hashing to bd2b318ad064d89aa12ab468220362b6
query I rowsort
SELECT ALL ( 26 ) + cor1.col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 78d1f1a669989c2efce0556b049e9268
query I rowsort
SELECT ( col2 ) * + 95 AS col1 FROM tab0
----
3135
7790
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5025
SELECT + cor0.col0 * + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-5025
SELECT + cor0.col0 * + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + col0 * + col1 * tab2.col1 + + 48 + + 93 FROM tab2
----
22972
271659
6868
query I rowsort
SELECT + + 21 * - col1 FROM tab2 AS cor0
----
-1239
-357
-651
query I rowsort
SELECT + ( - col2 ) * col2 AS col2 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT ALL 9 AS col2 FROM tab2
----
9
9
9
query I rowsort
SELECT ALL tab2.col1 + - col2 AS col0 FROM tab2
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 col0 FROM tab2
----
45
45
45
query I rowsort
SELECT 55 * col1 + col2 AS col0 FROM tab2 AS cor0
----
1732
3271
973
query I rowsort
SELECT + ( - cor0.col1 ) + + col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + 5 AS col1 FROM tab0 AS cor0
----
5
5
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 84 + + col2 col2 FROM tab2 cor0
----
-46
-57
-58
query I rowsort
SELECT 14 + + col2 FROM tab2 AS cor0
----
40
41
52
query I rowsort
SELECT - tab2.col2 * col1 * tab2.col0 FROM tab2
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-5038
SELECT col0 DIV + col0 col2 FROM tab0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5038
SELECT col0 / + col0 col2 FROM tab0
----
1
1
1
query I rowsort
SELECT ALL + - 76 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * col0 * col0 + - tab2.col1 col0 FROM tab2
----
1285
158047
237062
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5041
SELECT + col0 * col1 + ( col0 ) * - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5041
SELECT + col0 * col1 + ( col0 ) * - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5042
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5042
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 col1 FROM tab2
----
-34
-34
-34
query I rowsort
SELECT ALL 11 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
query I rowsort
SELECT DISTINCT + col1 * + col0 - - 24 * - col2 FROM tab2
----
-431
3978
431
query I rowsort
SELECT DISTINCT col0 * - col0 - col0 FROM tab0
----
-1260
-600
-8010
query I rowsort
SELECT tab2.col1 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT col1 * col0 * col0 AS col0 FROM tab1
----
234
40960
83200
query I rowsort
SELECT cor0.col2 + 30 FROM tab2 cor0
----
56
57
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( + col0 ) + col2 * + col0 col1 FROM tab1 AS cor0
----
15360
324
7296
query I rowsort
SELECT - + col2 + + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 2270901c73a658a63f841c68db8155ba
query I rowsort
SELECT - tab1.col1 * + col0 + + ( col1 ) AS col0 FROM tab1
----
-1027
-52
-630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col1 col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
17
31
59
query I rowsort
SELECT ALL col1 + - 56 AS col1 FROM tab0 AS cor0
----
30
35
41
query I rowsort
SELECT DISTINCT col1 * - col2 - col0 AS col1 FROM tab2 cor0
----
-1612
-725
-844
query I rowsort
SELECT ALL - - col0 + - ( + col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5058
SELECT + col2 * CAST( NULL AS SIGNED ) + col2 * cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5058
SELECT + col2 * CAST ( NULL AS INTEGER ) + col2 * cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col1 * 1 - col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - col0 + - 81 AS col2 FROM tab1 cor0
----
-145
-161
-84
query I rowsort
SELECT ALL col0 * + 45 + cor0.col0 AS col0 FROM tab0 AS cor0
----
1104
1610
4094
query I rowsort
SELECT - + col2 + + col1 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT ALL + ( + tab1.col0 ) AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT + 78 * + col0 FROM tab1 AS cor0
----
234
4992
6240
query I rowsort
SELECT + col1 + cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT 51 * + 7 AS col0 FROM tab1 cor0
----
357
357
357
query I rowsort
SELECT + + ( 60 ) AS col1 FROM tab0 AS cor0
----
60
60
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5068
SELECT - col2 * cor0.col2 + + CAST( + 28 AS SIGNED ) FROM tab1 AS cor0
----
-2888
-3221
-9188
skipif mysql # not compatible
query I rowsort label-5068
SELECT - col2 * cor0.col2 + + CAST ( + 28 AS INTEGER ) FROM tab1 AS cor0
----
-2888
-3221
-9188
query I rowsort
SELECT DISTINCT + + 78 * + cor0.col0 FROM tab1 AS cor0
----
234
4992
6240
query I rowsort
SELECT DISTINCT - - col0 * col0 + - 87 AS col1 FROM tab0 AS cor0
----
1138
489
7834
query I rowsort
SELECT ALL - col2 * col1 + - 83 FROM tab1 AS cor0
----
-1331
-1487
-653
query I rowsort
SELECT ALL - 88 * col1 AS col0 FROM tab0 AS cor0
----
-7568
-8008
-8536
onlyif mysql # use DIV operator for integer division
query I rowsort label-5073
SELECT - 38 * col2 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
-14
-34
0
skipif mysql # not compatible
query I rowsort label-5073
SELECT - 38 * col2 / cor0.col1 AS col2 FROM tab0 AS cor0
----
-14
-34
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5074
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT + - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 1 * col2 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL - col1 + 98 * - col0 FROM tab1 AS cor0
----
-320
-6282
-7853
query I rowsort
SELECT 93 * col0 FROM tab0 AS cor0
----
2232
3255
8277
query I rowsort
SELECT DISTINCT - col0 - + 2 * - tab0.col0 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT col2 - col0 * col0 FROM tab1
----
-4039
-6304
45
query I rowsort
SELECT DISTINCT tab1.col1 - - ( - tab1.col1 ) FROM tab1
----
0
query I rowsort
SELECT ALL - col0 - - 63 * col1 AS col1 FROM tab2
----
1946
3639
992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5082
SELECT + CAST( + col2 AS SIGNED ) - + col1 * + 1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-5082
SELECT + CAST ( + col2 AS INTEGER ) - + col1 * + 1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT col0 * col1 - col1 AS col2 FROM tab1
----
1027
52
630
query I rowsort
SELECT DISTINCT col1 + col1 * - 55 - - col0 FROM tab1
----
-1401
-476
-622
query I rowsort
SELECT + col2 - ( + col2 ) FROM tab2
----
0
0
0
query I rowsort
SELECT col2 - ( + 47 ) AS col2 FROM tab0
----
-14
-46
35
query I rowsort
SELECT - col0 * col1 + col0 + + col1 * col0 FROM tab2
----
7
78
79
query I rowsort
SELECT + cor0.col0 + tab0.col2 AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 8ccec472ba030beef859f936b43eb646
query I rowsort
SELECT ALL 8 AS col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3
----
729 values hashing to 911921a706da37f15078467fb0b11a94
query I rowsort
SELECT DISTINCT + + col2 + cor0.col0 * + col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL - - col2 * col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - - col2 * - col0 + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT DISTINCT ( + 47 ) FROM tab2 cor0
----
47
query I rowsort
SELECT ALL - 77 * - col2 + col2 FROM tab2
----
2028
2106
2964
query I rowsort
SELECT col0 + col1 * ( + 40 ) AS col0 FROM tab2
----
1247
2438
759
query I rowsort
SELECT DISTINCT + + col1 * + ( + 82 ) AS col0 FROM tab2 AS cor0
----
1394
2542
4838
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col2 col0 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT DISTINCT col1 * - col2 + cor0.col0 * col0 FROM tab1 AS cor0
----
-1395
3526
5152
query I rowsort
SELECT ALL - cor0.col0 * + 51 AS col2 FROM tab2 AS cor0
----
-357
-3978
-4029
onlyif mysql # use DIV operator for integer division
query I rowsort label-5101
SELECT ALL + col1 DIV ( + 84 ) AS col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL + col1 / ( + 84 ) AS col1 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( + cor0.col2 ) col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL - + col1 * - ( col2 ) + col0 AS col1 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5104
SELECT - col2 * CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-5104
SELECT - col2 * CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT + - 37 + cor2.col0 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
-13
-2
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 + - col1 col0 FROM tab0
----
-110
-132
-180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5108
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5108
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + cor0.col2 + col2 * 44 AS col1 FROM tab2 AS cor0
----
1170
1215
1710
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - ( - col1 ) col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + - 79 AS col2 FROM tab1 cor0
----
-79
-79
-79
query I rowsort
SELECT + + cor0.col1 * 25 FROM tab0, tab0 AS cor0
----
9 values hashing to ddbbad196d6cb93f9b5d0c5d288ae538
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5113
SELECT CAST( col1 AS SIGNED ) AS col0 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-5113
SELECT CAST ( col1 AS INTEGER ) AS col0 FROM tab1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-5114
SELECT ( + 0 ) DIV tab2.col0 AS col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5114
SELECT ( + 0 ) / tab2.col0 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + 2 * - 32 FROM tab0 AS cor0
----
-64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 52 - + col2 * + col0 col1 FROM tab2 AS cor0
----
-137
-1976
-2950
query I rowsort
SELECT - col1 * 59 AS col2 FROM tab2 AS cor0
----
-1003
-1829
-3481
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5118
SELECT DISTINCT CAST( col2 AS SIGNED ) * + col2 AS col2 FROM tab1 cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-5118
SELECT DISTINCT CAST ( col2 AS INTEGER ) * + col2 AS col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - col1 + col1 * + col1 AS col0 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT ALL - + 50 * col1 FROM tab1 AS cor0
----
-1300
-500
-650
query I rowsort
SELECT + tab2.col2 * - ( cor0.col1 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 3f5ea019223361c8c7a5502ecc1aeefb
query I rowsort
SELECT ALL 74 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT DISTINCT + cor0.col0 * + cor0.col1 * - col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-5124
SELECT ALL col2 + col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL col2 + col0 / - col1 AS col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-5125
SELECT ALL col2 * col0 DIV + 40 FROM tab1
----
192
4
91
skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL col2 * col0 / + 40 FROM tab1
----
192
4
91
query I rowsort
SELECT - col2 * + col1 * - col2 + - 56 * + col2 * 21 FROM tab1
----
-34542
12312
6912
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5127
SELECT + + 47 * - cor0.col2 + - CAST( - col1 * - col0 AS SIGNED ) + 97 FROM tab1 AS cor0
----
-2519
-3222
-5455
skipif mysql # not compatible
query I rowsort label-5127
SELECT + + 47 * - cor0.col2 + - CAST ( - col1 * - col0 AS INTEGER ) + 97 FROM tab1 AS cor0
----
-2519
-3222
-5455
query I rowsort
SELECT DISTINCT - 41 AS col1 FROM tab0 cor0
----
-41
query I rowsort
SELECT DISTINCT - ( col0 ) * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + 59 col1 FROM tab1 AS cor0
----
3186
3363
5664
onlyif mysql # use DIV operator for integer division
query I rowsort label-5131
SELECT - + col0 DIV + ( col2 ) AS col0 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5131
SELECT - + col0 / + ( col2 ) AS col0 FROM tab1 AS cor0
----
-1
0
0
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab2 AS cor0, tab0 cor1
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975
query I rowsort
SELECT 43 * + col1 FROM tab2
----
1333
2537
731
query I rowsort
SELECT DISTINCT - 12 FROM tab0, tab1, tab2 AS cor0
----
-12
query I rowsort
SELECT tab0.col0 * tab0.col0 + col0 FROM tab0
----
1260
600
8010
query I rowsort
SELECT col1 * - tab0.col1 * ( col1 ) FROM tab0
----
-636056
-753571
-912673
query I rowsort
SELECT ALL tab2.col1 - - col2 * col0 FROM tab2
----
2087
220
3019
query I rowsort
SELECT tab0.col0 + tab0.col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 651bd87d0835272922fb073806a0b5a0
query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 IN ( col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT - cor0.col0 - col1 * col2 AS col1 FROM tab2 AS cor0
----
-1612
-725
-844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col1 + + col0 - - col1 * + col0 * - col2 col0 FROM tab2 AS cor0
----
-123055
-51244
-6813
query I rowsort
SELECT col1 * + col2 + + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + col0 * col0 + col2 * - col2 FROM tab2 AS cor0
----
-680
4797
5408
query I rowsort
SELECT ALL col0 + cor0.col2 + col2 AS col0 FROM tab2 AS cor0
----
130
155
61
query I rowsort
SELECT cor0.col1 + + col1 * + col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL col1 + + col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL + col0 + - col2 * - col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT + col0 * col0 * col2 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT + col1 + col0 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
175
215
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-5151
SELECT - - cor0.col2 - + col0 * - cor0.col0 DIV col0 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-5151
SELECT - - cor0.col2 - + col0 * - cor0.col0 / col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT col0 * cor0.col0 + - col2 * - col2 + + col1 AS col1 FROM tab2 cor0
----
6819
7702
809
query I rowsort
SELECT col2 * + col0 + - col2 * - col1 AS col2 FROM tab2 cor0
----
1026
3562
3648
query I rowsort
SELECT + col0 * + cor0.col1 + + col2 * + col0 FROM tab1 AS cor0
----
240
4288
8720
query I rowsort
SELECT ALL + 5 + col1 * - 51 * - col0 AS col2 FROM tab1 AS cor0
----
32645
3983
53045
onlyif mysql # use DIV operator for integer division
query I rowsort label-5156
SELECT + - col0 DIV - cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5156
SELECT + - col0 / - cor0.col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - ( col0 ) * + col2 + - col2 * + col1 AS col1 FROM tab0 AS cor0
----
-132
-14760
-3630
query I rowsort
SELECT DISTINCT + 65 AS col0 FROM tab0 AS cor0
----
65
query III rowsort
SELECT * FROM tab2 WHERE ( tab2.col2 ) <= col2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT ( - col1 * col2 ) > ( NULL )
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5161
SELECT + 60 - col2 / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5161
SELECT + 60 - col2 / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 82 * col2 - col0 * 56 FROM tab0
----
-11708
-2042
-4050
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 - col1 col0 FROM tab2
----
-6
22
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-5164
SELECT cor0.col0 DIV 92 + col2 AS col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-5164
SELECT cor0.col0 / 92 + col2 AS col0 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5165
SELECT DISTINCT + col1 DIV - col1 AS col2 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT + col1 / - col1 AS col2 FROM tab0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5166
SELECT ALL col0 + col0 DIV - col0 AS col0 FROM tab1
----
2
63
79
skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL col0 + col0 / - col0 AS col0 FROM tab1
----
2
63
79
query I rowsort
SELECT col0 + col0 - col1 FROM tab0
----
-27
-38
87
query I rowsort
SELECT col1 + col0 * - col0 FROM tab2
----
-18
-6025
-6224
query I rowsort
SELECT DISTINCT - tab1.col2 - + col2 * col1 FROM tab1
----
-1344
-1458
-627
query I rowsort
SELECT + col1 * col1 + col0 AS col0 FROM tab2 WHERE NULL <= NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN col1 + + col1 AND NULL
----
query I rowsort
SELECT - col0 - + col0 * col1 AS col2 FROM tab0
----
-2088
-3430
-8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-5173
SELECT ALL col1 + + tab0.col0 DIV + col1 AS col0 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL col1 + + tab0.col0 / + col1 AS col0 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col2 col2 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT - col0 * - tab0.col2 AS col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT + col2 + col2 * tab1.col0 AS col0 FROM tab1
----
216
3705
7776
query I rowsort
SELECT + tab1.col2 * - tab1.col0 + + tab1.col0 + + col2 AS col1 FROM tab1
----
-105
-3527
-7504
query I rowsort
SELECT + col1 - + col0 * col0 AS col0 FROM tab0
----
-1128
-490
-7830
query I rowsort
SELECT DISTINCT - col1 * col1 / col1 FROM tab0 WHERE NOT NULL NOT IN ( tab0.col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 col1 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL col1 * tab1.col2 - - col0 AS col2 FROM tab1
----
1328
1407
634
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 BETWEEN ( col1 ) AND NULL
----
query I rowsort
SELECT - col1 - - col0 * col1 AS col1 FROM tab2
----
1326
186
4543
query I rowsort
SELECT ALL + col1 + col2 * + col2 AS col2 FROM tab0
----
1175
6815
98
query I rowsort
SELECT col0 FROM tab2 WHERE NULL IN ( - col1 * - col0 + col0 * col2 )
----
query I rowsort
SELECT + col1 + + col0 * col0 * + col1 FROM tab0
----
118922
49622
720902
query I rowsort
SELECT col2 + + col2 * 33 FROM tab2
----
1292
884
918
query I rowsort
SELECT DISTINCT - 59 * - col2 AS col0 FROM tab1
----
3186
3363
5664
query I rowsort
SELECT DISTINCT + 25 * col2 FROM tab1
----
1350
1425
2400
query I rowsort
SELECT ALL 45 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 8a6d20810140ea088e8e0fd74ffb8339
query I rowsort
SELECT DISTINCT 35 * col1 FROM tab2 AS cor0
----
1085
2065
595
query I rowsort
SELECT ALL - + col0 + col1 * - col2 AS col2 FROM tab1 cor0
----
-1328
-1407
-634
query I rowsort
SELECT DISTINCT col2 * - col0 * 4 AS col1 FROM tab0 AS cor0
----
-140
-29192
-3168
query I rowsort
SELECT DISTINCT col0 - cor0.col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT col2 * - col2 - ( + cor0.col0 ) FROM tab2 cor0
----
-1523
-736
-754
query I rowsort
SELECT ALL - col0 - col0 AS col2 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT DISTINCT - - col1 + ( - col1 ) AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - - cor0.col2 * 92 + col2 FROM tab1 AS cor0
----
5022
5301
8928
query I rowsort
SELECT ALL col2 * + 67 FROM tab1 AS cor0
----
3618
3819
6432
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( - cor0.col1 ) col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT ( - col0 * 66 ) AS col0 FROM tab2
----
-462
-5148
-5214
query I rowsort
SELECT + tab1.col2 FROM tab1, tab2 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT + col2 * - col2 + 59 * col1 FROM tab0 AS cor0
----
-1355
3985
5722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * 35 col2 FROM tab2 AS cor0
----
1085
2065
595
query I rowsort
SELECT DISTINCT col2 + + col1 * col0 + col1 * col2 FROM tab0 AS cor0
----
15643
3493
4935
query I rowsort
SELECT DISTINCT + 0 AS col1 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5207
SELECT ALL + CAST( + col2 AS SIGNED ) DIV col1 AS col0 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL + CAST ( + col2 AS INTEGER ) / col1 AS col0 FROM tab1 AS cor0
----
2
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5208
SELECT ALL - 49 DIV col1 + + col0 + ( - 69 ) FROM tab1 AS cor0
----
-67
-9
8
skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL - 49 / col1 + + col0 + ( - 69 ) FROM tab1 AS cor0
----
-67
-9
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 1 col1 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5210
SELECT + CAST( NULL AS DECIMAL ) * col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5210
SELECT + CAST ( NULL AS REAL ) * col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * + 38 + col1 FROM tab1 AS cor0
----
1014
390
507
query I rowsort
SELECT DISTINCT - col1 + - 89 AS col1 FROM tab0 cor0
----
-175
-180
-186
query I rowsort
SELECT DISTINCT + col2 * - col1 + ( col2 ) * col2 FROM tab0
----
-1749
-738
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 + + ( + col0 ) col2 FROM tab1
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * 52 col0 FROM tab1 AS cor0
----
156
3328
4160
query I rowsort
SELECT DISTINCT col2 * 82 AS col2 FROM tab0 AS cor0
----
2706
6724
82
query I rowsort
SELECT - col0 * + cor0.col0 + - cor0.col1 * ( - col0 ) + + col2 * + col0 FROM tab1 AS cor0
----
192
231
2320
query I rowsort
SELECT + col2 + 28 * + col2 + cor0.col1 AS col0 FROM tab0 cor0
----
1043
126
2469
query I rowsort
SELECT + 56 + col1 * col0 FROM tab2 AS cor0
----
1399
273
4658
query I rowsort
SELECT ALL + col2 * col2 * + col1 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT ALL + 93 * col0 FROM tab2 AS cor0
----
651
7254
7347
query I rowsort
SELECT 33 AS col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
query I rowsort
SELECT + 30 * - col0 AS col1 FROM tab1 AS cor0
----
-1920
-2400
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-5224
SELECT + - ( + cor0.col2 ) DIV 7 FROM tab2 AS cor0
----
-3
-3
-5
skipif mysql # not compatible
query I rowsort label-5224
SELECT + - ( + cor0.col2 ) / 7 FROM tab2 AS cor0
----
-3
-3
-5
query I rowsort
SELECT + 3 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 76903cfa3a27727fd541d9dcdf362a4c
query I rowsort
SELECT ALL - col2 * + 5 * col2 AS col0 FROM tab0
----
-33620
-5
-5445
query I rowsort
SELECT ALL - ( 75 ) * col1 AS col1 FROM tab2 AS cor0
----
-1275
-2325
-4425
query I rowsort
SELECT - col2 * + cor0.col1 * col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
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 + col2 * + col0 AS col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT + + ( + col1 ) + col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT - col1 * ( col1 ) AS col0 FROM tab0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-5234
SELECT DISTINCT col1 * + col1 DIV col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT col1 * + col1 / col1 FROM tab1
----
10
13
26
query I rowsort
SELECT 41 + + col2 AS col0 FROM tab1
----
137
95
98
query I rowsort
SELECT cor1.col2 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # use DIV operator for integer division
query I rowsort label-5237
SELECT DISTINCT + col0 DIV 15 + - col2 DIV + col2 AS col1 FROM tab1
----
-1
3
4
skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT + col0 / 15 + - col2 / + col2 AS col1 FROM tab1
----
-1
3
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5238
SELECT ALL - col0 - CAST( 38 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-102
-118
-41
skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL - col0 - CAST ( 38 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-102
-118
-41
query I rowsort
SELECT col2 * ( - cor0.col2 ) + cor0.col2 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT ALL col1 * cor0.col0 * + col1 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT ALL + + col1 * col0 * 75 FROM tab0 AS cor0
----
154800
254625
607425
query I rowsort
SELECT + col1 * col0 - + col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT + col1 + ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5244
SELECT ALL + CAST( + col0 AS SIGNED ) * col1 + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81
skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL + CAST ( + col0 AS INTEGER ) * col1 + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT cor0.col1 * - col2 + - cor0.col2 + - col2 FROM tab0 AS cor0
----
-2904
-7626
-99
query I rowsort
SELECT DISTINCT + ( - 55 ) FROM tab1 cor0
----
-55
query I rowsort
SELECT ALL tab2.col2 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT + + col2 * col1 + - col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ( col1 ) + col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL - + 25 + col0 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1235
575
7985
query I rowsort
SELECT DISTINCT + col0 * 85 FROM tab2
----
595
6630
6715
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 * + col2 + col1 col1 FROM tab0 AS cor0
----
152
255
99
query I rowsort
SELECT - + cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
onlyif mysql # use DIV operator for integer division
query I rowsort label-5254
SELECT - col1 DIV + tab0.col2 AS col0 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-5254
SELECT - col1 / + tab0.col2 AS col0 FROM tab0
----
-1
-2
-97
query I rowsort
SELECT + + 77 + 9 * cor0.col2 AS col1 FROM tab0, tab2, tab2 cor0
----
27 values hashing to aeec5bc3617be39f3c1c69d60ab3594b
onlyif mysql # use DIV operator for integer division
query I rowsort label-5256
SELECT - - col1 * - col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-5256
SELECT - - col1 * - col2 / - col2 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT col1 * col1 * tab0.col1 + 32 AS col2 FROM tab0
----
636088
753603
912705
onlyif mysql # use DIV operator for integer division
query I rowsort label-5258
SELECT ALL - col0 DIV col2 - col0 AS col0 FROM tab0
----
-24
-70
-90
skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL - col0 / col2 - col0 AS col0 FROM tab0
----
-24
-70
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-5259
SELECT - col2 + + col2 DIV - col2 FROM tab0 cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-5259
SELECT - col2 + + col2 / - col2 FROM tab0 cor0
----
-2
-34
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 33 + col1 col0 FROM tab2 AS cor0
----
50
64
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 + - col1 col1 FROM tab2 AS cor0
----
27
55
69
query I rowsort
SELECT 36 * - ( col1 ) + + 60 AS col1 FROM tab0 cor0
----
-3036
-3216
-3432
query I rowsort
SELECT ALL + - 8 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 852581644118629bf652b1aa4b8f4363
query I rowsort
SELECT - 28 * + col0 AS col0 FROM tab2 AS cor0
----
-196
-2184
-2212
query I rowsort
SELECT + col2 + col1 + - ( 59 + - col2 ) FROM tab1 AS cor0
----
146
65
75
query I rowsort
SELECT - - col0 + - 5 * cor0.col1 AS col0 FROM tab0 cor0
----
-366
-406
-450
query I rowsort
SELECT ALL 62 * col0 AS col0 FROM tab2
----
434
4836
4898
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 * col2 col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + col0 + + cor0.col1 - - 95 AS col2 FROM tab0 AS cor0
----
205
227
275
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 col2 FROM tab0
----
54
query I rowsort
SELECT - - col0 * - ( col0 ) FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL - cor0.col0 * ( - 21 ) * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1029
-127764
-131061
query I rowsort
SELECT DISTINCT - col2 * - ( 34 + - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
1368
2016
432
onlyif mysql # use DIV operator for integer division
query I rowsort label-5274
SELECT DISTINCT + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-5274
SELECT DISTINCT + col1 / col0 AS col0 FROM tab0 AS cor0
----
1
2
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5275
SELECT col2 * CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-5275
SELECT col2 * CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-5276
SELECT ALL col1 DIV 59 - - col1 FROM tab2 AS cor0
----
17
31
60
skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL col1 / 59 - - col1 FROM tab2 AS cor0
----
17
31
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 col1 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - - 10 * + col2 FROM tab1 AS cor0
----
540
570
960
query I rowsort
SELECT - + col1 * + 28 FROM tab1 AS cor0
----
-280
-364
-728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 65 ) col0 FROM tab2 AS cor0
----
-65
-65
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-5281
SELECT - 41 DIV col0 FROM tab1 AS cor0
----
-13
0
0
skipif mysql # not compatible
query I rowsort label-5281
SELECT - 41 / col0 FROM tab1 AS cor0
----
-13
0
0
query I rowsort
SELECT ALL 6 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-102
-186
-354
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 20 * - col0 + + cor0.col0 col2 FROM tab1 AS cor0
----
-1216
-1520
-57
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * col2 + 35 AS col1 FROM tab1 cor0
----
2951
3284
9251
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5285
SELECT CAST( NULL AS SIGNED ) + col2 * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5285
SELECT CAST ( NULL AS INTEGER ) + col2 * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5286
SELECT - + ( + col0 ) DIV + col2 col1 FROM tab1 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5286
SELECT - + ( + col0 ) / + col2 col1 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT + col0 * 20 * + col1 - + tab1.col2 AS col0 FROM tab1
----
12743
1506
20704
query I rowsort
SELECT col0 * - tab0.col2 + - col0 FROM tab0
----
-70
-7387
-816
query I rowsort
SELECT ALL 26 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT ALL cor0.col1 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL - + 11 * - col2 FROM tab1 AS cor0
----
1056
594
627
query I rowsort
SELECT ALL col1 * col1 + col0 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT - ( ( col1 ) ) * tab2.col2 AS col2 FROM tab2
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-5294
SELECT DISTINCT col1 DIV + 44 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT col1 / + 44 FROM tab1
----
0
query I rowsort
SELECT DISTINCT - + ( col1 ) + 11 FROM tab2 AS cor0
----
-20
-48
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 91 * - col0 col0 FROM tab2
----
-4459
-553644
-567931
query I rowsort
SELECT DISTINCT + tab2.col2 * tab2.col2 FROM tab2
----
1444
676
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5298
SELECT + + col2 * + col1 + + CAST( NULL AS SIGNED ) * 36 + col2 * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5298
SELECT + + col2 * + col1 + + CAST ( NULL AS INTEGER ) * 36 + col2 * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5299
SELECT - + 21 + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5299
SELECT - + 21 + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( + col1 ) * + col2 + + tab0.col2 * col2 AS col1 FROM tab0
----
14186
3927
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5301
SELECT - CAST( NULL AS SIGNED ) + tab2.col0 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5301
SELECT - CAST ( NULL AS INTEGER ) + tab2.col0 AS col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5302
SELECT ALL 67 + tab1.col0 DIV 90 + + 21 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL 67 + tab1.col0 / 90 + + 21 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT col2 + + tab2.col1 * tab2.col0 * 82 AS col2 FROM tab2
----
110164
17821
377390
query I rowsort
SELECT col2 + 19 AS col1 FROM tab1
----
115
73
76
query I rowsort
SELECT DISTINCT ( 18 ) * col0 + + ( col2 ) AS col0 FROM tab0 AS cor0
----
1684
465
631
query I rowsort
SELECT ALL - + col1 - 30 AS col2 FROM tab0 AS cor0
----
-116
-121
-127
query I rowsort
SELECT 2 * - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1292
-1674
-3068
query I rowsort
SELECT ALL - 55 + col0 AS col2 FROM tab2 AS cor0
----
-48
23
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 61 + 38 col0 FROM tab2 cor0
----
99
99
99
query I rowsort
SELECT ALL - + col2 + col1 * - cor0.col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT + 52 + col2 FROM tab2 AS cor0
----
78
79
90
query I rowsort
SELECT ALL 0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - - 56 AS col0 FROM tab0 AS cor0
----
56
56
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-5314
SELECT DISTINCT + - ( col1 ) * - col1 + col2 + + col1 DIV col1 AS col2 FROM tab0 AS cor0
----
7430
8364
9411
skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT + - ( col1 ) * - col1 + col2 + + col1 / col1 AS col2 FROM tab0 AS cor0
----
7430
8364
9411
query I rowsort
SELECT DISTINCT + 52 + + col1 + - col2 FROM tab2 AS cor0
----
31
56
85
query I rowsort
SELECT ALL ( - col1 ) + col2 * cor0.col2 * col1 AS col1 FROM tab0 AS cor0
----
0
611793
93568
query I rowsort
SELECT DISTINCT cor1.col1 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5318
SELECT DISTINCT col1 + - col2 DIV col1 AS col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5318
SELECT DISTINCT col1 + - col2 / col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - + 38 AS col2 FROM tab2 AS cor0
----
-38
-38
-38
query I rowsort
SELECT - - col2 + + ( + 67 ) FROM tab2 AS cor0
----
105
93
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 - - cor0.col2 col2 FROM tab1 AS cor0
----
162
171
288
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + 91 + + col0 col1 FROM tab2 AS cor0
----
1626
2828
5447
onlyif mysql # use DIV operator for integer division
query I rowsort label-5323
SELECT cor0.col0 + cor0.col2 DIV cor0.col0 FROM tab1 AS cor0
----
21
64
81
skipif mysql # not compatible
query I rowsort label-5323
SELECT cor0.col0 + cor0.col2 / cor0.col0 FROM tab1 AS cor0
----
21
64
81
query I rowsort
SELECT ALL col0 * - cor0.col2 + + col1 AS col2 FROM tab2 cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT + - col0 * + ( 92 ) - col2 FROM tab2 cor0
----
-671
-7202
-7306
query I rowsort
SELECT ALL col2 + 2 FROM tab1
----
56
59
98
query I rowsort
SELECT DISTINCT - col2 * ( - col2 ) FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT ALL - - col2 + 75 * - 9 FROM tab2 AS cor0
----
-637
-648
-649
onlyif mysql # use DIV operator for integer division
query I rowsort label-5329
SELECT + cor0.col2 + + cor0.col1 - 59 DIV + col2 FROM tab0 cor0
----
118
173
39
skipif mysql # not compatible
query I rowsort label-5329
SELECT + cor0.col2 + + cor0.col1 - 59 / + col2 FROM tab0 cor0
----
118
173
39
query I rowsort
SELECT DISTINCT + - col1 + - col0 * col2 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT ALL + col2 * - 7 FROM tab1 AS cor0
----
-378
-399
-672
onlyif mysql # use DIV operator for integer division
query I rowsort label-5332
SELECT ALL - col2 DIV + 49 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL - col2 / + 49 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + + cor0.col2 + - cor0.col1 * cor0.col2 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5334
SELECT ALL - + CAST( col0 AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL - + CAST ( col0 AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + ( + col1 ) * - col1 AS col0 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT + + 74 + - col0 FROM tab2 AS cor0
----
-4
-5
67
query I rowsort
SELECT DISTINCT - tab1.col0 + 25 FROM tab1
----
-39
-55
22
query I rowsort
SELECT - col0 * - cor0.col2 + - col1 AS col1 FROM tab0 AS cor0
----
-62
706
7207
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5339
SELECT + CAST( + ( + col0 ) AS SIGNED ) * col1 + - col2 * + col1 * col0 col0 FROM tab0 AS cor0
----
-656019
-66048
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5339
SELECT + CAST ( + ( + col0 ) AS INTEGER ) * col1 + - col2 * + col1 * col0 col0 FROM tab0 AS cor0
----
-656019
-66048
0
query I rowsort
SELECT + ( 33 ) + + col2 AS col0 FROM tab1 AS cor0
----
129
87
90
query I rowsort
SELECT + ( - col1 ) * - col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - + ( 12 ) + - col2 * 71 FROM tab1 AS cor0
----
-3846
-4059
-6828
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 + - col0 * col2 col1 FROM tab2 AS cor0
----
-1352
-1558
540
query I rowsort
SELECT ALL - + 43 * cor0.col1 FROM tab0 AS cor0
----
-3698
-3913
-4171
query I rowsort
SELECT cor0.col0 * col0 + col2 AS col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT ALL - col0 * + ( col2 ) + + col0 AS col1 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT + + col0 * col2 * - col2 + + col0 * + 36 * + col2 FROM tab1 AS cor0
----
-2916
-460800
-76608
onlyif mysql # use DIV operator for integer division
query I rowsort label-5348
SELECT ( + 26 ) * + col2 * - 41 - + col2 * col2 DIV col1 AS col2 FROM tab0 AS cor0
----
-1066
-35190
-87485
skipif mysql # not compatible
query I rowsort label-5348
SELECT ( + 26 ) * + col2 * - 41 - + col2 * col2 / col1 AS col2 FROM tab0 AS cor0
----
-1066
-35190
-87485
onlyif mysql # use DIV operator for integer division
query I rowsort label-5349
SELECT - 90 DIV col0 + + col0 FROM tab1 cor0
----
-27
63
79
skipif mysql # not compatible
query I rowsort label-5349
SELECT - 90 / col0 + + col0 FROM tab1 cor0
----
-27
63
79
query I rowsort
SELECT col1 * col2 + col2 FROM tab0 cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT - 21 FROM tab2, tab2 AS cor0
----
-21
onlyif mysql # use DIV operator for integer division
query I rowsort label-5352
SELECT + col1 + - col0 DIV 90 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-5352
SELECT + col1 + - col0 / 90 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + 52 FROM tab2, tab0 cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT ALL 47 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
onlyif mysql # use DIV operator for integer division
query I rowsort label-5355
SELECT col2 DIV tab0.col1 + ( col1 * + col0 ) FROM tab0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-5355
SELECT col2 / tab0.col1 + ( col1 * + col0 ) FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL col0 * + 25 + 11 FROM tab1
----
1611
2011
86
query I rowsort
SELECT ALL tab0.col0 + ( tab0.col0 * + col0 ) AS col2 FROM tab0
----
1260
600
8010
query I rowsort
SELECT col2 * - 85 + 63 AS col2 FROM tab2 AS cor0
----
-2147
-2232
-3167
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col1 FROM tab1 AS cor0
----
24
24
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-5360
SELECT DISTINCT + - col2 + - col2 DIV col0 FROM tab2 cor0
----
-26
-30
-38
skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT + - col2 + - col2 / col0 FROM tab2 cor0
----
-26
-30
-38
query I rowsort
SELECT DISTINCT + cor0.col1 * - col1 + col1 AS col0 FROM tab1 AS cor0
----
-156
-650
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 * col0 col1 FROM tab2 AS cor0
----
35
390
395
query I rowsort
SELECT - + 64 * col1 FROM tab0 AS cor0
----
-5504
-5824
-6208
query I rowsort
SELECT ALL + ( + col0 * + col2 ) FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col0 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort
SELECT col0 * col1 * - CAST ( 28 AS REAL ) AS col1 FROM tab2 AS cor0
----
-128856
-37604
-6076
onlyif mysql # use DIV operator for integer division
query I rowsort label-5367
SELECT DISTINCT + cor0.col2 DIV col1 AS col1 FROM tab2 AS cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT + cor0.col2 / col1 AS col1 FROM tab2 AS cor0
----
0
2
query I rowsort
SELECT ALL - 82 AS col2 FROM tab1
----
-82
-82
-82
query I rowsort
SELECT DISTINCT col0 * + tab0.col0 * 58 FROM tab0
----
33408
459418
71050
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5370
SELECT DISTINCT + + cor0.col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT + + cor0.col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - col1 * - 34 AS col0 FROM tab0 AS cor0
----
2924
3094
3298
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col1 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5373
SELECT + - col1 DIV - cor0.col1 AS col0 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5373
SELECT + - col1 / - cor0.col1 AS col0 FROM tab2 cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5374
SELECT 78 DIV 64 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5374
SELECT 78 / 64 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT col0 * col1 + + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab0 cor2
----
3
64
80
query I rowsort
SELECT ALL - 19 + 54 + - col0 FROM tab2 AS cor0
----
-43
-44
28
query I rowsort
SELECT + 68 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT 54 - ( cor0.col1 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 38ebcbdd0ba4648ea4bb6dd631f7f095
query I rowsort
SELECT ALL 35 + col2 + col2 FROM tab1
----
143
149
227
query I rowsort
SELECT DISTINCT - cor2.col2 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5382
SELECT col1 * 28 + - col1 * col0 + cor0.col2 DIV col2 AS col1 FROM tab1 AS cor0
----
-359
-675
651
skipif mysql # not compatible
query I rowsort label-5382
SELECT col1 * 28 + - col1 * col0 + cor0.col2 / col2 AS col1 FROM tab1 AS cor0
----
-359
-675
651
query I rowsort
SELECT - 15 * - 87 + col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
1360
1363
1390
query I rowsort
SELECT DISTINCT 55 FROM tab0, tab1 AS cor0
----
55
query I rowsort
SELECT + 56 FROM tab2, tab1 cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 9cee91ca9c60ba6e45a33b388a3b7d9b
onlyif mysql # use DIV operator for integer division
query I rowsort label-5386
SELECT - - col1 + ( - col1 ) + - col1 DIV + 24 FROM tab2 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-5386
SELECT - - col1 + ( - col1 ) + - col1 / + 24 FROM tab2 AS cor0
----
-1
-2
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5387
SELECT ALL CAST( NULL AS SIGNED ) * col1 + + tab1.col0 * ( col0 * col1 ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL CAST ( NULL AS INTEGER ) * col1 + + tab1.col0 * ( col0 * col1 ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - ( + 19 ) + col1 AS col0 FROM tab0 AS cor0
----
67
72
78
skipif mysql # not compatible
query I rowsort
SELECT ALL - - CAST ( 45 AS REAL ) * + col2 + col2 AS col2 FROM tab0 AS cor0
----
1518
3772
46
query I rowsort
SELECT DISTINCT - col1 + + col2 - col0 * col2 FROM tab0 AS cor0
----
-131
-7307
-845
query I rowsort
SELECT ALL + + 23 + cor1.col0 FROM tab1, tab0 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to f2038afa2f581c633a89d690498ca7a2
query I rowsort
SELECT DISTINCT - col0 + - 96 FROM tab1
----
-160
-176
-99
query I rowsort
SELECT ALL + cor0.col0 * col0 * ( - 63 ) + col2 FROM tab1 AS cor0
----
-257991
-403104
-513
query I rowsort
SELECT ALL - 58 * + col2 - + 30 FROM tab0 AS cor0
----
-1944
-4786
-88
query I rowsort
SELECT ( - col1 ) + + ( col1 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ( col2 ) + + col0 AS col0 FROM tab1
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) col1 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT + + 19 + - col0 * col2 FROM tab0 AS cor0
----
-16
-7279
-773
query I rowsort
SELECT + cor0.col0 * col2 + + 95 AS col2 FROM tab1 AS cor0
----
257
3743
7775
query I rowsort
SELECT ALL col2 + - col1 * 7 FROM tab0 AS cor0
----
-555
-569
-678
query I rowsort
SELECT + col2 - + ( + 53 ) FROM tab2 AS cor0
----
-15
-26
-27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 54 col2 FROM tab2 AS cor0
----
132
133
61
query I rowsort
SELECT DISTINCT ( 1 ) AS col0 FROM tab2, tab1 AS cor0
----
1
query I rowsort
SELECT 20 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4
query I rowsort
SELECT ALL + col2 + - col2 * - col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT + cor0.col1 * col2 * col2 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT DISTINCT + 85 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
85
query I rowsort
SELECT ALL - + cor0.col1 + - 37 * + col2 FROM tab1 AS cor0
----
-2024
-2119
-3565
query I rowsort
SELECT ALL 45 + 54 FROM tab1 AS cor0
----
99
99
99
query I rowsort
SELECT + + col0 + - 54 FROM tab0 cor0
----
-19
-30
35
query I rowsort
SELECT ALL 49 - + col2 AS col0 FROM tab0 AS cor0
----
-33
16
48
query I rowsort
SELECT - 14 + col0 AS col1 FROM tab2 AS cor0
----
-7
64
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-5413
SELECT - + cor0.col2 DIV col2 + + col2 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-5413
SELECT - + cor0.col2 / col2 + + col2 FROM tab1 AS cor0
----
53
56
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-5414
SELECT DISTINCT - + col1 * col1 + col1 DIV + 99 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-5414
SELECT DISTINCT - + col1 * col1 + col1 / + 99 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT + col1 * + ( - cor0.col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 col1 FROM tab2, tab2 AS cor0
----
-11
query I rowsort
SELECT - col1 + ( col2 ) + - col1 * ( - col2 * tab0.col0 ) AS col1 FROM tab0
----
3299
664109
68059
onlyif mysql # use DIV operator for integer division
query I rowsort label-5418
SELECT DISTINCT + - cor0.col0 DIV cor0.col2 + - col0 * 2 FROM tab0 AS cor0
----
-105
-179
-48
skipif mysql # not compatible
query I rowsort label-5418
SELECT DISTINCT + - cor0.col0 / cor0.col2 + - col0 * 2 FROM tab0 AS cor0
----
-105
-179
-48
query I rowsort
SELECT + + col1 * col1 + - 64 FROM tab1 AS cor0
----
105
36
612
query I rowsort
SELECT cor0.col2 * col2 + col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT + 16 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
query I rowsort
SELECT ALL col2 + col1 * + col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT col2 * - tab0.col0 AS col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT col1 * - ( col0 ) FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + + col2 + - col1 + + col2 FROM tab2 AS cor0
----
-7
23
59
query I rowsort
SELECT ALL + col0 * 56 FROM tab1 AS cor0
----
168
3584
4480
query I rowsort
SELECT DISTINCT + cor0.col2 * + col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT col1 * - 57 FROM tab2
----
-1767
-3363
-969
query I rowsort
SELECT DISTINCT col0 - + col0 FROM tab1
----
0
query I rowsort
SELECT DISTINCT ( col2 ) - col2 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5431
SELECT - col2 DIV 35 FROM tab0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-5431
SELECT - col2 / 35 FROM tab0
----
-2
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5432
SELECT + col0 DIV 39 FROM tab2
----
0
2
2
skipif mysql # not compatible
query I rowsort label-5432
SELECT + col0 / 39 FROM tab2
----
0
2
2
query I rowsort
SELECT 71 * + 67 FROM tab1
----
4757
4757
4757
query I rowsort
SELECT col0 - - cor0.col2 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL - - ( 48 ) * + col1 + - col0 + col2 AS col0 FROM tab2 AS cor0
----
1508
2780
775
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5436
SELECT CAST( NULL AS SIGNED ) + - 84 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5436
SELECT CAST ( NULL AS INTEGER ) + - 84 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + 81 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
query I rowsort
SELECT DISTINCT - 90 + col1 * 37 AS col2 FROM tab2 cor0
----
1057
2093
539
query I rowsort
SELECT - - col1 * col2 + + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT - col1 * - col2 - 61 FROM tab1 cor0
----
1187
1343
509
onlyif mysql # use DIV operator for integer division
query I rowsort label-5442
SELECT ALL + col1 + - cor0.col1 DIV + ( - col0 + col2 ) col0 FROM tab2 AS cor0
----
17
30
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL + col1 + - cor0.col1 / + ( - col0 + col2 ) col0 FROM tab2 AS cor0
----
17
30
60
query I rowsort
SELECT col2 * - col2 + col0 AS col0 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT ALL cor0.col1 * + cor0.col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL + - 46 + col1 AS col0 FROM tab2 AS cor0
----
-15
-29
13
query I rowsort
SELECT DISTINCT 60 AS col0 FROM tab1 cor0
----
60
query I rowsort
SELECT ALL - ( - cor0.col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - ( col1 ) + col0 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-5449
SELECT ( col1 ) + col1 DIV ( cor0.col0 ) AS col1 FROM tab2 cor0
----
17
35
59
skipif mysql # not compatible
query I rowsort label-5449
SELECT ( col1 ) + col1 / ( cor0.col0 ) AS col1 FROM tab2 cor0
----
17
35
59
query I rowsort
SELECT ALL - 91 + col2 * col0 * col1 AS col1 FROM tab1 AS cor0
----
36389
4121
99749
query I rowsort
SELECT + 64 * tab0.col0 AS col0 FROM tab0
----
1536
2240
5696
query I rowsort
SELECT ALL + col2 * + col0 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT + - 77 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
-42
-53
12
query I rowsort
SELECT + + 81 * col0 FROM tab2 cor0
----
567
6318
6399
query I rowsort
SELECT + 54 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + cor0.col2 col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col1 - - ( col1 ) FROM tab1 AS cor0
----
0
0
0
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 + - cor0.col1 * col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT - cor0.col2 - + 41 * - col1 * - col2 AS col2 FROM tab0 AS cor0
----
-116391
-306024
-3978
query I rowsort
SELECT - col2 + - col1 + col1 * col0 FROM tab0 AS cor0
----
1945
3297
7926
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5462
SELECT - - cor0.col1 + CAST( + col2 AS SIGNED ) * col2 FROM tab1 AS cor0
----
2942
3259
9229
skipif mysql # not compatible
query I rowsort label-5462
SELECT - - cor0.col1 + CAST ( + col2 AS INTEGER ) * col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT 16 * + col1 FROM tab0 AS cor0
----
1376
1456
1552
query I rowsort
SELECT ALL col1 * + 20 + col2 AS col1 FROM tab2 AS cor0
----
1206
378
647
query I rowsort
SELECT DISTINCT + - 6 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1438
670
723
query I rowsort
SELECT ALL - col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + 23 * + col1 AS col0 FROM tab0 AS cor0
----
1978
2093
2231
query I rowsort
SELECT ALL 3 * col2 * - col2 FROM tab0
----
-20172
-3
-3267
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 col0 FROM tab2 cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( + col1 ) col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ( 83 ) * col0 FROM tab1 AS cor0
----
249
5312
6640
query I rowsort
SELECT cor0.col1 * ( + col1 * + col2 ) AS col0 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT ALL + 73 * + col2 AS col0 FROM tab1
----
3942
4161
7008
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0, tab0 AS cor1
----
3645 values hashing to f655b6f4c5b9ff73813030f2822ea1fd
query I rowsort
SELECT - col0 + - col1 + col0 * col0 FROM tab2 cor0
----
11
5947
6145
onlyif mysql # use DIV operator for integer division
query I rowsort label-5476
SELECT cor0.col0 * + col1 + 59 DIV col2 FROM tab1 AS cor0
----
1040
641
79
skipif mysql # not compatible
query I rowsort label-5476
SELECT cor0.col0 * + col1 + 59 / col2 FROM tab1 AS cor0
----
1040
641
79
query I rowsort
SELECT + cor0.col2 * 55 AS col2 FROM tab0 AS cor0
----
1815
4510
55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5478
SELECT DISTINCT + col0 + - CAST( NULL AS SIGNED ) + ( - tab1.col1 ) * col1 AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-5478
SELECT DISTINCT + col0 + - CAST ( NULL AS INTEGER ) + ( - tab1.col1 ) * col1 AS col2 FROM tab1
----
NULL
query I rowsort
SELECT + - col2 + - ( - cor0.col1 ) * - col0 * 59 FROM tab1 AS cor0
----
-37817
-4656
-61456
query I rowsort
SELECT - col0 * - 59 + col2 * col2 FROM tab0 AS cor0
----
11975
2066
2505
query I rowsort
SELECT DISTINCT + col0 * 93 FROM tab1 AS cor0
----
279
5952
7440
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5482
SELECT + cor0.col0 + CAST( cor0.col1 AS SIGNED ) * cor0.col2 AS col0 FROM tab0 AS cor0
----
132
2862
7551
skipif mysql # not compatible
query I rowsort label-5482
SELECT + cor0.col0 + CAST ( cor0.col1 AS INTEGER ) * cor0.col2 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL - 57 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-1368
-1995
-5073
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col0 AS REAL ) FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL + col2 * + 48 + + col2 FROM tab2 AS cor0
----
1274
1323
1862
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5486
SELECT DISTINCT + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + 53 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1378
-1431
-2014
query I rowsort
SELECT + 63 * 0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col0 + - 32 FROM tab2
----
-25
46
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-5490
SELECT + + cor0.col0 DIV + col0 + ( 47 ) AS col2 FROM tab1 AS cor0
----
48
48
48
skipif mysql # not compatible
query I rowsort label-5490
SELECT + + cor0.col0 / + col0 + ( 47 ) AS col2 FROM tab1 AS cor0
----
48
48
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-5491
SELECT 9 DIV + col2 col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5491
SELECT 9 / + col2 col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5492
SELECT col2 DIV - 84 col2 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5492
SELECT col2 / - 84 col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col1 + col1 + col0 * + tab1.col1 FROM tab1
----
1066
130
660
onlyif mysql # use DIV operator for integer division
query I rowsort label-5494
SELECT DISTINCT - col1 DIV col1 AS col0 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT - col1 / col1 AS col0 FROM tab0
----
-1
query I rowsort
SELECT DISTINCT + tab2.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5496
SELECT ( - col0 ) * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5496
SELECT ( - col0 ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 5 * - col2 AS col0 FROM tab2
----
-130
-135
-190
query I rowsort
SELECT DISTINCT - col0 + col2 - 31 FROM tab1
----
-15
-38
20
query I rowsort
SELECT - 47 * col1 FROM tab2 AS cor0
----
-1457
-2773
-799
onlyif mysql # use DIV operator for integer division
query I rowsort label-5500
SELECT - - col2 DIV - cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5500
SELECT - - col2 / - cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5501
SELECT col1 - ( col1 ) * col2 DIV + col0 FROM tab2 AS cor0
----
-88
40
9
skipif mysql # not compatible
query I rowsort label-5501
SELECT col1 - ( col1 ) * col2 / + col0 FROM tab2 AS cor0
----
-88
40
9
query I rowsort
SELECT ALL + col1 * + ( - cor0.col2 ) * col2 + + col1 FROM tab1 cor0
----
-119795
-32480
-75790
query I rowsort
SELECT ALL + + col2 + ( col0 ) FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5504
SELECT DISTINCT - col2 DIV - col0 + - cor0.col1 * col0 col2 FROM tab0 AS cor0
----
-2063
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5504
SELECT DISTINCT - col2 / - col0 + - cor0.col1 * col0 col2 FROM tab0 AS cor0
----
-2063
-3395
-8099
query I rowsort
SELECT ALL + col2 * + col0 + col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT tab2.col0 * - tab2.col1 + - ( col0 ) FROM tab2
----
-1422
-224
-4680
query I rowsort
SELECT + - ( cor0.col0 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT ALL - col0 * col0 - ( ( - col1 ) ) AS col2 FROM tab2
----
-18
-6025
-6224
query I rowsort
SELECT ALL col0 + ( tab1.col0 * col0 ) FROM tab1
----
12
4160
6480
query I rowsort
SELECT ALL + tab0.col1 * - tab0.col0 + - col2 FROM tab0
----
-2097
-3396
-8181
query I rowsort
SELECT ALL col0 * + tab1.col1 * + col1 + col2 FROM tab1
----
13616
2082
6457
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5512
SELECT DISTINCT - tab1.col0 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-5512
SELECT DISTINCT - tab1.col0 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
query I rowsort
SELECT ALL - col1 + tab1.col1 AS col0 FROM tab1
----
0
0
0
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to bb6428239bf7f3ea361f6a10500a581d
query I rowsort
SELECT - col0 * col1 + col0 + - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - - col2 + ( - col2 ) AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + + cor0.col1 * + col1 + col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-5518
SELECT ALL col2 DIV - col0 + + col0 FROM tab1 AS cor0
----
-15
64
79
skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL col2 / - col0 + + col0 FROM tab1 AS cor0
----
-15
64
79
query I rowsort
SELECT ALL + col2 + col2 * - col1 FROM tab1 cor0
----
-1152
-1350
-513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5520
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 5 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-5520
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 5 FROM tab2
----
NULL
query I rowsort
SELECT + 21 * - 75 - + col0 AS col1 FROM tab2
----
-1582
-1653
-1654
query I rowsort
SELECT + 66 + - col1 AS col0 FROM tab0 AS cor0
----
-20
-25
-31
onlyif mysql # use DIV operator for integer division
query I rowsort label-5523
SELECT col1 DIV col2 - - 90 AS col2 FROM tab0 AS cor0
----
187
91
92
skipif mysql # not compatible
query I rowsort label-5523
SELECT col1 / col2 - - 90 AS col2 FROM tab0 AS cor0
----
187
91
92
query I rowsort
SELECT DISTINCT + col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - col2 + + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL ( + col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + col0 * - col1 + - cor0.col0 FROM tab1 cor0
----
-1120
-704
-81
query I rowsort
SELECT - - 6 * col0 AS col1 FROM tab0 AS cor0
----
144
210
534
onlyif mysql # use DIV operator for integer division
query I rowsort label-5529
SELECT ALL - col2 DIV col0 AS col0 FROM tab1 cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL - col2 / col0 AS col0 FROM tab1 cor0
----
-1
-18
0
query I rowsort
SELECT + 12 * + col0 AS col0 FROM tab0 AS cor0
----
1068
288
420
query I rowsort
SELECT ALL - - col2 * - col1 + - col2 AS col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT 21 * - col2 + - cor0.col0 + - 82 * - col0 AS col0 FROM tab1 AS cor0
----
-891
3987
4464
query I rowsort
SELECT - - cor0.col1 * col1 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-5534
SELECT DISTINCT cor0.col2 DIV col1 + 70 AS col2 FROM tab2 AS cor0
----
70
72
skipif mysql # not compatible
query I rowsort label-5534
SELECT DISTINCT cor0.col2 / col1 + 70 AS col2 FROM tab2 AS cor0
----
70
72
query I rowsort
SELECT DISTINCT + col0 * col2 + col0 AS col0 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT ALL + + 4 * - col1 FROM tab1 AS cor0
----
-104
-40
-52
query I rowsort
SELECT + 32 * - 98 + + col1 FROM tab2 AS cor0
----
-3077
-3105
-3119
query I rowsort
SELECT DISTINCT - - col1 + + col0 * + col0 AS col2 FROM tab1 AS cor0
----
35
4106
6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 col2 FROM tab2
----
45
45
45
query I rowsort
SELECT ALL + 97 FROM tab2 AS cor0
----
97
97
97
query I rowsort
SELECT + - col0 + ( col2 ) FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL + 27 * + col1 FROM tab1 AS cor0
----
270
351
702
query I rowsort
SELECT - - 76 * col1 + col1 AS col1 FROM tab0 cor0
----
6622
7007
7469
query I rowsort
SELECT DISTINCT + ( - ( + col1 ) ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + 60 * + col2 + - col2 FROM tab2 cor0
----
1534
1593
2242
query I rowsort
SELECT - - ( + 83 ) + cor0.col0 FROM tab2 cor0
----
161
162
90
query I rowsort
SELECT + - 44 + 73 FROM tab0 AS cor0
----
29
29
29
query I rowsort
SELECT - + cor0.col0 + + col0 * - 38 AS col1 FROM tab2 AS cor0
----
-273
-3042
-3081
query I rowsort
SELECT - ( + 84 ) + col0 AS col2 FROM tab1
----
-20
-4
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-5550
SELECT CAST( + col0 AS SIGNED ) DIV - tab0.col2 + - ( + 15 + col1 ) FROM tab0
----
-101
-107
-147
skipif mysql # not compatible
query I rowsort label-5550
SELECT CAST ( + col0 AS INTEGER ) / - tab0.col2 + - ( + 15 + col1 ) FROM tab0
----
-101
-107
-147
query I rowsort
SELECT ALL ( 4 * tab1.col0 ) + - ( ( col2 ) ) * - col2 FROM tab1
----
2928
3505
9536
query I rowsort
SELECT + 12 + col1 AS col1 FROM tab2 AS cor0
----
29
43
71
query I rowsort
SELECT - 5 * col2 + 44 AS col1 FROM tab0 AS cor0
----
-121
-366
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-5554
SELECT DISTINCT 35 DIV - tab1.col0 + - col2 AS col2 FROM tab1
----
-57
-65
-96
skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT 35 / - tab1.col0 + - col2 AS col2 FROM tab1
----
-57
-65
-96
query I rowsort
SELECT + tab1.col2 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL - 98 + col0 FROM tab2
----
-19
-20
-91
query I rowsort
SELECT ALL ( + col2 ) * - col2 + 59 FROM tab2
----
-1385
-617
-670
query I rowsort
SELECT + ( - col0 ) * col1 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-5559
SELECT ALL + col0 + col1 DIV 50 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL + col0 + col1 / 50 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + col1 + 19 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
-102
-1423
-1484
query I rowsort
SELECT ALL + + col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 * 9 col0 FROM tab1 AS cor0
----
486
513
864
query I rowsort
SELECT DISTINCT cor0.col0 * 0 FROM tab0 cor0
----
0
query I rowsort
SELECT ( col0 * col1 + + col1 ) FROM tab2
----
1360
248
4661
query I rowsort
SELECT DISTINCT + tab1.col0 * col1 AS col2 FROM tab1
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + cor0.col1 ) col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT - col2 * - 83 FROM tab0 AS cor0
----
2739
6806
83
query I rowsort
SELECT DISTINCT + + cor0.col0 AS col1 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL + + col2 * - 47 * 70 AS col1 FROM tab2 AS cor0
----
-125020
-85540
-88830
query I rowsort
SELECT DISTINCT + + col0 + + ( - col0 ) AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT col2 + - 23 AS col0 FROM tab1
----
31
34
73
query I rowsort
SELECT - cor0.col2 + - cor0.col2 * col2 FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT + - col1 * + 82 FROM tab1 AS cor0
----
-1066
-2132
-820
query I rowsort
SELECT DISTINCT col0 * + 75 * + tab2.col1 FROM tab2
----
100725
16275
345150
query I rowsort
SELECT ( 45 ) * + col2 AS col1 FROM tab1 AS cor0
----
2430
2565
4320
query I rowsort
SELECT ALL + - col1 + + 69 AS col2 FROM tab0 AS cor0
----
-17
-22
-28
query I rowsort
SELECT DISTINCT + 17 FROM tab2, tab2 AS cor0
----
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-5578
SELECT + cor0.col0 * 92 DIV col2 col1 FROM tab0 AS cor0
----
3220
66
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5578
SELECT + cor0.col0 * 92 / col2 col1 FROM tab0 AS cor0
----
3220
66
99
query I rowsort
SELECT + - 14 * - col0 AS col1 FROM tab1 AS cor0
----
1120
42
896
query I rowsort
SELECT - 26 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39
query I rowsort
SELECT - ( - col2 ) * col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + col0 - - col1 * - 28 FROM tab2 AS cor0
----
-1574
-397
-861
query I rowsort
SELECT ALL + col0 * col0 + - 46 * + col2 AS col2 FROM tab2 AS cor0
----
-1193
4493
4888
query I rowsort
SELECT 32 * + col0 FROM tab2 AS cor0
----
224
2496
2528
query I rowsort
SELECT - - col2 * col2 + + col1 AS col2 FROM tab0 AS cor0
----
1175
6815
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5586
SELECT ALL + cor0.col0 * - col0 - CAST( ( - col1 ) + + ( col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-1163
-514
-7919
skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL + cor0.col0 * - col0 - CAST ( ( - col1 ) + + ( col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-1163
-514
-7919
query I rowsort
SELECT DISTINCT col0 * col0 + col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5588
SELECT DISTINCT ( col1 ) * CAST( ( + cor0.col2 ) AS SIGNED ) FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT ( col1 ) * CAST ( ( + cor0.col2 ) AS INTEGER ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + 24 + col2 AS col0 FROM tab0 AS cor0
----
106
25
57
query I rowsort
SELECT DISTINCT + 60 AS col0 FROM tab1, tab1 AS cor0, tab1 cor1
----
60
query I rowsort
SELECT - + col0 * - col2 + + col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL - col0 * + col0 + - 11 FROM tab1 AS cor0
----
-20
-4107
-6411
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab1 cor1, tab0, tab0 AS cor2
----
3645 values hashing to 8db0cc6df185b737ff75d2626a6d198b
query I rowsort
SELECT col0 * - ( + 32 * col1 ) FROM tab2 cor0
----
-147264
-42976
-6944
query I rowsort
SELECT + - col0 * - ( col1 ) FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT 35 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-5597
SELECT DISTINCT col0 - col2 DIV col0 FROM tab0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-5597
SELECT DISTINCT col0 - col2 / col0 FROM tab0
----
23
35
89
query I rowsort
SELECT ALL + col1 + ( col1 ) AS col2 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT 96 * - tab1.col0 * tab1.col0 FROM tab1
----
-393216
-614400
-864
query I rowsort
SELECT - ( - col1 ) + col1 + 92 * tab1.col2 AS col1 FROM tab1
----
5020
5264
8858
query I rowsort
SELECT ALL cor0.col2 + - ( 96 ) FROM tab0, tab0 AS cor0
----
9 values hashing to ed9e3e8b7f4562e6849b302627472f76
query I rowsort
SELECT DISTINCT - 52 * cor1.col1 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
-4472
-4732
-5044
query I rowsort
SELECT DISTINCT tab0.col2 - - col0 * col0 FROM tab0
----
1226
609
8003
query I rowsort
SELECT ALL - 57 * - tab1.col0 - 67 FROM tab1
----
104
3581
4493
query I rowsort
SELECT col2 * + 44 + col2 FROM tab2 AS cor0
----
1170
1215
1710
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2, tab1 cor3
----
3645 values hashing to b49addbe072ff0e7eba0714ba1a11067
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5607
SELECT + + col0 * CAST( NULL AS SIGNED ) + + 21 * col1 + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5607
SELECT + + col0 * CAST ( NULL AS INTEGER ) + + 21 * col1 + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * col1 + + col1 * col0 * + col0 FROM tab2 AS cor0
----
106743
2356
360490
query I rowsort
SELECT DISTINCT col0 * col2 + col1 + - col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT cor0.col1 + - 70 * col1 * - cor0.col1 + 13 AS col1 FROM tab0 AS cor0
----
517819
579774
658740
query I rowsort
SELECT ALL - col0 * + 56 FROM tab0 cor0
----
-1344
-1960
-4984
onlyif mysql # use DIV operator for integer division
query I rowsort label-5612
SELECT + col1 DIV col0 + 84 FROM tab0 AS cor0
----
85
86
87
skipif mysql # not compatible
query I rowsort label-5612
SELECT + col1 / col0 + 84 FROM tab0 AS cor0
----
85
86
87
query I rowsort
SELECT - col2 * col1 * 56 AS col0 FROM tab1 AS cor0
----
-31920
-69888
-78624
query I rowsort
SELECT ALL - col1 * + col0 * - col2 AS col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT - col1 + + ( - col0 ) + cor0.col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT 75 * col0 AS col2 FROM tab1 cor0
----
225
4800
6000
query I rowsort
SELECT - col2 * 96 AS col1 FROM tab0 AS cor0
----
-3168
-7872
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5618
SELECT ALL - col2 * col1 DIV + col1 + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627
skipif mysql # not compatible
query I rowsort label-5618
SELECT ALL - col2 * col1 / + col1 + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT + + cor0.col0 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + 72 FROM tab0, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5621
SELECT CAST( NULL AS DECIMAL ) FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5621
SELECT CAST ( NULL AS REAL ) FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 + - ( col1 ) * + col2 col2 FROM tab2 AS cor0
----
-1054
-1989
-6136
query I rowsort
SELECT ALL ( + col1 ) * 78 FROM tab2 cor0
----
1326
2418
4602
query I rowsort
SELECT + col1 + + col1 * 14 * 83 FROM tab0
----
100018
105833
112811
query I rowsort
SELECT DISTINCT col2 + + col0 * - ( + col2 ) AS col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT 82 * + col0 FROM tab0 AS cor0
----
1968
2870
7298
query I rowsort
SELECT DISTINCT + cor0.col1 * col0 * - 32 AS col2 FROM tab2 AS cor0
----
-147264
-42976
-6944
query I rowsort
SELECT ALL 82 + col2 * - 0 FROM tab0 AS cor0
----
82
82
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 * col1 + + 13 col0 FROM tab1 AS cor0
----
273
351
689
query I rowsort
SELECT ALL cor0.col0 * - cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
-13824
-42875
-704969
query I rowsort
SELECT DISTINCT col2 - - cor0.col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT ( col0 ) * - ( col1 ) * col0 FROM tab0 cor0
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT + + col2 - - cor0.col0 * - col0 * 18 FROM tab1 AS cor0
----
-108
-115104
-73671
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 col1 FROM tab2 AS cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * col2 * - ( ( - col2 ) ) + col0 * - col2 col1 FROM tab2 AS cor0
----
15548
19494
51870
query I rowsort
SELECT DISTINCT + - 90 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-90
query I rowsort
SELECT DISTINCT - col0 + 16 * col2 + col1 * + ( + ( col1 ) + ( + col0 ) ) AS col2 FROM tab0 AS cor0
----
12785
17603
9964
query I rowsort
SELECT + - cor0.col1 + + 59 AS col2 FROM tab0 AS cor0
----
-27
-32
-38
query I rowsort
SELECT DISTINCT + - col0 * + col0 + - col0 * col2 FROM tab0 AS cor0
----
-1260
-1368
-15219
query I rowsort
SELECT 93 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT + 38 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
onlyif mysql # use DIV operator for integer division
query I rowsort label-5642
SELECT DISTINCT + col0 * + col1 + col2 DIV + 4 + col1 * + col2 FROM tab2 AS cor0
----
1060
1998
6142
skipif mysql # not compatible
query I rowsort label-5642
SELECT DISTINCT + col0 * + col1 + col2 / + 4 + col1 * + col2 FROM tab2 AS cor0
----
1060
1998
6142
query I rowsort
SELECT DISTINCT + col1 * + col2 + col1 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5644
SELECT ALL - - CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5644
SELECT ALL - - CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5645
SELECT col1 * col1 DIV col0 FROM tab1 AS cor0
----
1
2
225
skipif mysql # not compatible
query I rowsort label-5645
SELECT col1 * col1 / col0 FROM tab1 AS cor0
----
1
2
225
query I rowsort
SELECT DISTINCT + 38 FROM tab0, tab1 AS cor0
----
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-5647
SELECT col1 + col2 DIV - col2 AS col0 FROM tab1
----
12
25
9
skipif mysql # not compatible
query I rowsort label-5647
SELECT col1 + col2 / - col2 AS col0 FROM tab1
----
12
25
9
query I rowsort
SELECT 42 + + tab2.col0 * + col2 AS col2 FROM tab2
----
2070
231
3044
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5649
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col1 * col1 col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5649
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 * col1 col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5650
SELECT ALL + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col1 FROM tab2, tab2 cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5652
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + col2 col0 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5652
SELECT DISTINCT CAST ( NULL AS REAL ) * + col2 col0 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) + col1 col2 FROM tab1
----
20
26
52
query I rowsort
SELECT 62 * - col2 AS col1 FROM tab2 cor0
----
-1612
-1674
-2356
query I rowsort
SELECT ALL + col2 + 0 * + 27 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + col0 * - 72 + 3 AS col1 FROM tab2 AS cor0
----
-501
-5613
-5685
query I rowsort
SELECT DISTINCT - col2 + ( + col1 ) FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT ALL col1 * col2 + col2 + + col0 FROM tab1 AS cor0
----
1424
1461
691
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5659
SELECT + cor0.col0 + - CAST( cor0.col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-5659
SELECT + cor0.col0 + - CAST ( cor0.col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT + col1 + + 10 AS col0 FROM tab2 cor0
----
27
41
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130
query I rowsort
SELECT ALL - col0 * - col0 AS col1 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT + 95 * 59 FROM tab2
----
5605
5605
5605
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5664
SELECT ALL - + CAST( 8 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-8
-8
-8
skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL - + CAST ( 8 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-8
-8
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-5665
SELECT - col2 DIV col0 + - col0 * col1 FROM tab2 AS cor0
----
-1343
-220
-4602
skipif mysql # not compatible
query I rowsort label-5665
SELECT - col2 / col0 + - col0 * col1 FROM tab2 AS cor0
----
-1343
-220
-4602
query I rowsort
SELECT - 34 * + col2 FROM tab0 AS cor0
----
-1122
-2788
-34
query I rowsort
SELECT - ( - cor0.col1 ) * col1 AS col1 FROM tab1 AS cor0
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) + - 52 * - 69 col2 FROM tab0 cor0
----
3674
3679
3685
query I rowsort
SELECT + 87 AS col1 FROM tab0
----
87
87
87
query I rowsort
SELECT ALL - 2 * - col0 - - ( - col2 + col0 ) * - 10 AS col0 FROM tab0 cor0
----
-270
108
138
query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 - col2 * - 20 AS col0 FROM tab0 AS cor0
----
-2178
-5822
-77
query I rowsort
SELECT + + col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + col1 + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL + col1 + + col2 + + col1 FROM tab2 AS cor0
----
144
72
89
query I rowsort
SELECT ALL - cor0.col1 * + col0 + col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL 22 * + col1 AS col1 FROM tab1
----
220
286
572
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + col0 * 69 col2 FROM tab2 AS cor0
----
490
5460
5530
query I rowsort
SELECT + - col0 + col0 + cor0.col1 FROM tab0 cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5679
SELECT col1 * col2 + + 32 DIV col0 AS col1 FROM tab2 AS cor0
----
1534
646
841
skipif mysql # not compatible
query I rowsort label-5679
SELECT col1 * col2 + + 32 / col0 AS col1 FROM tab2 AS cor0
----
1534
646
841
query I rowsort
SELECT DISTINCT + col2 * ( col0 ) FROM tab0
----
35
7298
792
query I rowsort
SELECT - 66 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + - 47 + col2 * col1 FROM tab1 AS cor0
----
1201
1357
523
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5684
SELECT ALL CAST( NULL AS SIGNED ) * 84 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL CAST ( NULL AS INTEGER ) * 84 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 * 10 FROM tab2
----
-260
-270
-380
query I rowsort
SELECT 18 + - col0 AS col2 FROM tab0 AS cor0
----
-17
-6
-71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5687
SELECT DISTINCT CAST( - col2 AS SIGNED ) + + col2 AS col0 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + + col2 AS col0 FROM tab1
----
0
query I rowsort
SELECT + col2 * - col1 * 89 AS col2 FROM tab2 AS cor0
----
-136526
-57494
-74493
onlyif mysql # use DIV operator for integer division
query I rowsort label-5689
SELECT - col1 * col0 DIV + 82 FROM tab2 AS cor0
----
-16
-2
-56
skipif mysql # not compatible
query I rowsort label-5689
SELECT - col1 * col0 / + 82 FROM tab2 AS cor0
----
-16
-2
-56
query I rowsort
SELECT col0 + - col0 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - - col2 * col2 - - cor0.col1 * - 29 FROM tab2 AS cor0
----
-1035
-170
951
query I rowsort
SELECT - col1 * + col1 + col1 AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT + col1 + cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
113
196
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 * - 68 col1 FROM tab2 AS cor0
----
-1118
-2081
-3986
query I rowsort
SELECT + - col1 * col0 + col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-5696
SELECT ALL col1 + - col1 + - col2 DIV + col1 AS col2 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL col1 + - col1 + - col2 / + col1 AS col2 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT + 79 + + cor0.col1 AS col2 FROM tab1 cor0
----
105
89
92
query I rowsort
SELECT ALL - ( + 9 ) FROM tab1 AS cor0
----
-9
-9
-9
query I rowsort
SELECT - - 91 + + cor0.col1 - col0 * + 86 AS col0 FROM tab2 AS cor0
----
-480
-6558
-6686
query I rowsort
SELECT DISTINCT + 56 * - col1 + cor0.col0 + 17 FROM tab1 AS cor0
----
-1436
-479
-631
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5701
SELECT - CAST( - col2 AS SIGNED ) - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839
skipif mysql # not compatible
query I rowsort label-5701
SELECT - CAST ( - col2 AS INTEGER ) - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5702
SELECT DISTINCT - + col0 + col1 * col2 + CAST( NULL AS SIGNED ) * col2 / + col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5702
SELECT DISTINCT - + col0 + col1 * col2 + CAST ( NULL AS INTEGER ) * col2 / + col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5703
SELECT DISTINCT - CAST( + col1 AS SIGNED ) DIV + col0 FROM tab2 AS cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-5703
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) / + col0 FROM tab2 AS cor0
----
-4
0
query I rowsort
SELECT ALL - - 4 AS col0 FROM tab0 cor0
----
4
4
4
query I rowsort
SELECT col1 - + ( - col2 ) FROM tab1
----
109
67
80
query I rowsort
SELECT ALL tab2.col0 * ( col0 * col1 + - col2 ) AS col1 FROM tab2
----
103095
1330
356928
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5707
SELECT ALL - 38 * 77 + + col0 - CAST( + ( col2 ) AS SIGNED ) FROM tab2
----
-2874
-2885
-2946
skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL - 38 * 77 + + col0 - CAST ( + ( col2 ) AS INTEGER ) FROM tab2
----
-2874
-2885
-2946
query I rowsort
SELECT + - cor0.col1 FROM tab2, tab2 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5
query I rowsort
SELECT DISTINCT + 25 AS col2 FROM tab2, tab1 AS cor0
----
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) + col1 * col1 col0 FROM tab2 AS cor0
----
3559
368
968
onlyif mysql # use DIV operator for integer division
query I rowsort label-5711
SELECT - + 25 DIV col1 FROM tab2 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5711
SELECT - + 25 / col1 FROM tab2 cor0
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5712
SELECT ALL - + CAST( col1 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-55
-58
-85
skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL - + CAST ( col1 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-5713
SELECT col2 * cor0.col1 DIV col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-5713
SELECT col2 * cor0.col1 / col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL - + 23 AS col0 FROM tab2 AS cor0
----
-23
-23
-23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 25 col2 FROM tab1 AS cor0
----
105
28
89
query I rowsort
SELECT - col0 * + col0 + col2 * + cor0.col1 FROM tab0 AS cor0
----
-1128
-459
2262
query I rowsort
SELECT + col0 * + 33 + col0 FROM tab2 AS cor0
----
238
2652
2686
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 + col1 * col1 col1 FROM tab0 AS cor0
----
7332
8217
9345
query I rowsort
SELECT col0 - col0 * + col0 AS col2 FROM tab0
----
-1190
-552
-7832
query I rowsort
SELECT DISTINCT + 9 + tab2.col1 FROM tab2
----
26
40
68
query I rowsort
SELECT + 22 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT - col1 * 69 + - col1 FROM tab2
----
-1190
-2170
-4130
query I rowsort
SELECT col1 + 82 AS col2 FROM tab0
----
168
173
179
query I rowsort
SELECT - cor0.col2 + col1 * + 94 FROM tab1 AS cor0
----
1126
2390
883
query I rowsort
SELECT ALL col0 + col0 * col2 AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL col1 * tab1.col0 * - col0 AS col1 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT ALL col1 + - 45 + col0 AS col1 FROM tab2 AS cor0
----
-7
51
92
query I rowsort
SELECT DISTINCT - col2 * col1 + col1 * - col1 FROM tab0 AS cor0
----
-10234
-15743
-9506
query I rowsort
SELECT ALL - - cor0.col0 - - col0 AS col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - - col1 * + ( - col2 ) AS col0 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - col1 * 81 FROM tab0 AS cor0
----
-6966
-7371
-7857
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5732
SELECT ALL + col1 * + CAST( - col1 AS SIGNED ) + col1 FROM tab2 AS cor0
----
-272
-3422
-930
skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL + col1 * + CAST ( - col1 AS INTEGER ) + col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT DISTINCT col1 * - col1 - + col1 * - col2 FROM tab2 AS cor0
----
-124
-1947
357
onlyif mysql # use DIV operator for integer division
query I rowsort label-5734
SELECT DISTINCT + col1 + col0 DIV ( col2 ) + ( cor0.col0 + + col1 ) * - col1 AS col0 FROM tab0 AS cor0
----
-12672
-16288
-9374
skipif mysql # not compatible
query I rowsort label-5734
SELECT DISTINCT + col1 + col0 / ( col2 ) + ( cor0.col0 + + col1 ) * - col1 AS col0 FROM tab0 AS cor0
----
-12672
-16288
-9374
query I rowsort
SELECT DISTINCT + + col1 - col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - - col2 + + 93 FROM tab0 cor0
----
126
175
94
query I rowsort
SELECT ALL - col2 * cor0.col2 + cor0.col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT ALL col0 * - col0 + col0 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1152
-15842
-2450
query I rowsort
SELECT ALL cor1.col1 * cor0.col0 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e6d1e51162f22414194f33e791083a39
query I rowsort
SELECT cor0.col0 * - cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 4734c38591591662f77999e8d1e5daf1
query I rowsort
SELECT ALL 41 * - col2 FROM tab0 cor0
----
-1353
-3362
-41
query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT 15 AS col0 FROM tab0 AS cor0
----
15
15
15
query I rowsort
SELECT col1 * - col1 + col0 FROM tab1
----
-36
-673
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5745
SELECT DISTINCT 86 DIV ( + col1 ) AS col1 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-5745
SELECT DISTINCT 86 / ( + col1 ) AS col1 FROM tab0 AS cor0
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5746
SELECT + col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5746
SELECT + col2 / - col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT 9 + + col0 AS col2 FROM tab1 AS cor0
----
12
73
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5748
SELECT + - col1 * - cor0.col0 * col1 + + col0 DIV col2 FROM tab0 AS cor0
----
177504
329350
737010
skipif mysql # not compatible
query I rowsort label-5748
SELECT + - col1 * - cor0.col0 * col1 + + col0 / col2 FROM tab0 AS cor0
----
177504
329350
737010
query I rowsort
SELECT cor0.col2 * + 13 FROM tab2, tab0 AS cor0
----
9 values hashing to 8c3ea62b19b9adb8f7a146791fb95e2a
query I rowsort
SELECT - + 94 * col2 * + col2 + + col2 AS col1 FROM tab1 AS cor0
----
-274050
-305349
-866208
query I rowsort
SELECT - - 34 FROM tab0, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 6cda47a564e8ee9e9e7915815a3a7769
onlyif mysql # use DIV operator for integer division
query I rowsort label-5752
SELECT DISTINCT tab2.col1 DIV + 42 AS col2 FROM tab2
----
0
1
skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT tab2.col1 / + 42 AS col2 FROM tab2
----
0
1
query I rowsort
SELECT DISTINCT - cor0.col2 - - col1 * col0 AS col1 FROM tab2 AS cor0
----
1305
190
4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 + + 93 col1 FROM tab1 AS cor0
----
-547
-947
15
query I rowsort
SELECT col0 + col1 * ( - 25 * + col0 ) FROM tab2 cor0
----
-114972
-33496
-5418
query I rowsort
SELECT ALL - + col2 + + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1482
-702
-756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) * - col0 + 88 col0 FROM tab0
----
-704
-7210
53
query I rowsort
SELECT DISTINCT + col2 + tab2.col2 * + 11 FROM tab2
----
312
324
456
query I rowsort
SELECT ALL col1 * ( + col1 ) * col1 AS col0 FROM tab0 cor0
----
636056
753571
912673
query I rowsort
SELECT DISTINCT col0 + + col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT + col1 * col0 + - 17 FROM tab0 AS cor0
----
2047
3378
8082
query I rowsort
SELECT - - cor0.col1 * 40 AS col1 FROM tab0 AS cor0
----
3440
3640
3880
query I rowsort
SELECT + col1 * + ( col1 ) + col2 AS col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT DISTINCT col1 + col0 * - 11 AS col1 FROM tab0 AS cor0
----
-178
-288
-888
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5765
SELECT ALL + 72 + col1 * CAST( - ( col0 ) AS SIGNED ) col2 FROM tab0
----
-1992
-3323
-8027
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5765
SELECT ALL + 72 + col1 * CAST ( - ( col0 ) AS INTEGER ) col2 FROM tab0
----
-1992
-3323
-8027
onlyif mysql # use DIV operator for integer division
query I rowsort label-5766
SELECT ALL - col0 * col1 + + tab0.col2 DIV - col0 AS col0 FROM tab0
----
-2065
-3395
-8099
skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL - col0 * col1 + + tab0.col2 / - col0 AS col0 FROM tab0
----
-2065
-3395
-8099
query I rowsort
SELECT DISTINCT - col2 + + col2 AS col0 FROM tab2
----
0
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab0 cor1, tab2 AS cor2
----
3645 values hashing to 972d282d6d92f451c90dc8ca51a18f3e
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-3
-64
-80
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-5771
SELECT DISTINCT 99 DIV col2 AS col2 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT 99 / col2 AS col2 FROM tab1
----
1
query I rowsort
SELECT col1 + + col2 * ( 92 ) * + col1 FROM tab0 AS cor0
----
261182
686595
9021
query I rowsort
SELECT DISTINCT + col2 + col1 * + 70 AS col1 FROM tab2 AS cor0
----
1228
2197
4156
query I rowsort
SELECT ALL cor0.col2 + col1 * ( ( - col1 ) ) FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT DISTINCT col0 * - col2 + + tab1.col1 AS col1 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT + 97 FROM tab0, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
onlyif mysql # use DIV operator for integer division
query I rowsort label-5777
SELECT col1 + col2 DIV + ( col0 + + col2 ) FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-5777
SELECT col1 + col2 / + ( col0 + + col2 ) FROM tab1
----
10
13
26
query I rowsort
SELECT ALL - - col0 + ( 10 * + col0 ) + + 26 * + col2 * + col0 AS col2 FROM tab1 AS cor0
----
200560
4245
95552
query I rowsort
SELECT ALL + col1 + cor0.col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT DISTINCT + - col2 * 5 + + col2 FROM tab1 AS cor0
----
-216
-228
-384
query I rowsort
SELECT - col0 * ( col1 ) AS col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + 91 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT DISTINCT + 61 * + col2 AS col0 FROM tab0 AS cor0
----
2013
5002
61
query I rowsort
SELECT - 27 + + cor0.col1 FROM tab2 AS cor0
----
-10
32
4
query I rowsort
SELECT ALL 92 - 27 * + col2 AS col2 FROM tab1 AS cor0
----
-1366
-1447
-2500
query I rowsort
SELECT DISTINCT - 0 FROM tab2 cor0
----
0
query I rowsort
SELECT - 77 + + col0 FROM tab1 AS cor0
----
-13
-74
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5788
SELECT ALL - CAST( NULL AS DECIMAL ) / + col2 + col2 * cor0.col1 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5788
SELECT ALL - CAST ( NULL AS REAL ) / + col2 + col2 * cor0.col1 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + 18 * + col1 - col0 AS col2 FROM tab0 AS cor0
----
-1572
-1727
-1781
query I rowsort
SELECT DISTINCT + col1 + col1 * + col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT ALL - col2 * ( cor0.col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + + col1 * col1 + - cor0.col0 FROM tab0 AS cor0
----
7372
8192
9374
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5793
SELECT ALL + CAST( ( col1 ) AS SIGNED ) + + 34 FROM tab2 AS cor0
----
51
65
93
skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL + CAST ( ( col1 ) AS INTEGER ) + + 34 FROM tab2 AS cor0
----
51
65
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 56 * + cor0.col1 col2 FROM tab1 cor0
----
1459
624
808
query I rowsort
SELECT ALL - + col0 * + 83 AS col1 FROM tab0 AS cor0
----
-1992
-2905
-7387
query I rowsort
SELECT DISTINCT + col2 + 99 FROM tab2 cor0
----
125
126
137
query I rowsort
SELECT DISTINCT + cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col0 * + col2 * + col0 + col1 FROM tab1
----
233482
512
614413
query I rowsort
SELECT ALL + col0 + 94 FROM tab0
----
118
129
183
query I rowsort
SELECT ALL col2 + 86 FROM tab0
----
119
168
87
query I rowsort
SELECT + cor0.col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 69 AS REAL ) * col1 + - 74 * col1 col2 FROM tab1 cor0
----
-1430
-1859
-3718
query I rowsort
SELECT col1 * - 92 FROM tab1
----
-1196
-2392
-920
query I rowsort
SELECT 54 * 47 FROM tab0
----
2538
2538
2538
query I rowsort
SELECT + col0 * + ( col1 ) FROM tab2
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5806
SELECT ( - col2 ) * + col0 * - CAST( + col1 AS SIGNED ) - - col1 FROM tab2 cor0
----
119711
51051
5890
skipif mysql # not compatible
query I rowsort label-5806
SELECT ( - col2 ) * + col0 * - CAST ( + col1 AS INTEGER ) - - col1 FROM tab2 cor0
----
119711
51051
5890
query I rowsort
SELECT + 39 + 40 AS col2 FROM tab0 AS cor0
----
79
79
79
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col0 AS REAL ) + col2 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5809
SELECT DISTINCT + col2 * col0 * CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1225
19008
649522
skipif mysql # not compatible
query I rowsort label-5809
SELECT DISTINCT + col2 * col0 * CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT + 75 * col0 AS col2 FROM tab1 AS cor0
----
225
4800
6000
query I rowsort
SELECT ALL 90 * + col1 FROM tab1 AS cor0
----
1170
2340
900
onlyif mysql # use DIV operator for integer division
query I rowsort label-5812
SELECT - - col2 DIV col1 + ( - col2 ) AS col0 FROM tab1 cor0
----
-52
-52
-89
skipif mysql # not compatible
query I rowsort label-5812
SELECT - - col2 / col1 + ( - col2 ) AS col0 FROM tab1 cor0
----
-52
-52
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 + col2 col2 FROM tab0 AS cor0
----
-3
29
78
query I rowsort
SELECT col1 * - ( 38 ) FROM tab0 AS cor0
----
-3268
-3458
-3686
query I rowsort
SELECT + col2 * - ( 17 ) FROM tab2 AS cor0
----
-442
-459
-646
skipif mysql # not compatible
query I rowsort
SELECT + - cor0.col0 + + CAST ( - 76 AS REAL ) AS col0 FROM tab1 cor0
----
-140
-156
-79
query I rowsort
SELECT + + cor0.col1 + 43 * - col2 * col2 - 35 FROM tab0 AS cor0
----
-289076
-46776
19
query I rowsort
SELECT + cor0.col0 * col1 + - col0 - col0 FROM tab2 AS cor0
----
1185
203
4446
query I rowsort
SELECT + col0 * + col1 * 97 AS col0 FROM tab1 cor0
----
100880
62080
7566
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + col2 col1 FROM tab2
----
1560
684
864
query I rowsort
SELECT ( col0 * col2 ) AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - + col2 * + col1 * + col1 AS col2 FROM tab2 cor0
----
-10982
-25947
-90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 * 31 + - col2 col1 FROM tab0 AS cor0
----
-2574
-2606
-2655
query I rowsort
SELECT + ( - col2 ) + + col0 - col2 AS col1 FROM tab0 AS cor0
----
-42
-75
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-5826
SELECT - col0 - - col1 DIV - 68 AS col0 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-5826
SELECT - col0 - - col1 / - 68 AS col0 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5827
SELECT ALL - cor0.col0 * CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL - cor0.col0 * CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT - - 58 * cor0.col2 FROM tab1 AS cor0
----
3132
3306
5568
query I rowsort
SELECT 9 * + col2 FROM tab1 AS cor0
----
486
513
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 84 col1 FROM tab1 AS cor0
----
-84
-84
-84
query I rowsort
SELECT DISTINCT + col0 + - 9 * + col1 AS col1 FROM tab2 cor0
----
-272
-453
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-5833
SELECT ALL col1 + 15 DIV - 44 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-5833
SELECT ALL col1 + 15 / - 44 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL col0 - + col2 * col1 AS col0 FROM tab2 cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT col1 * + 47 AS col1 FROM tab2 AS cor0
----
1457
2773
799
onlyif mysql # use DIV operator for integer division
query I rowsort label-5836
SELECT DISTINCT + + col1 DIV + ( 81 ) + col1 - + col0 FROM tab1 AS cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT + + col1 / + ( 81 ) + col1 - + col0 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-5837
SELECT ALL - - col2 + + 64 DIV col1 AS col0 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL - - col2 + + 64 / col1 AS col0 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 38 col1 FROM tab2 AS cor0
----
1178
2242
646
query I rowsort
SELECT 86 - col2 FROM tab1
----
-10
29
32
query I rowsort
SELECT - 21 + - col0 * - ( + 76 ) FROM tab0
----
1803
2639
6743
onlyif mysql # use DIV operator for integer division
query I rowsort label-5841
SELECT + - col2 + col0 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
-33
-81
34
skipif mysql # not compatible
query I rowsort label-5841
SELECT + - col2 + col0 / cor0.col2 AS col2 FROM tab0 AS cor0
----
-33
-81
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5842
SELECT ALL - - CAST( + col0 AS SIGNED ) * col2 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-5842
SELECT ALL - - CAST ( + col0 AS INTEGER ) * col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - 30 + 85 + - col2 * - col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
36535
4267
99895
query I rowsort
SELECT ( ( col2 ) ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT cor0.col0 * 15 AS col2 FROM tab1 AS cor0
----
1200
45
960
query I rowsort
SELECT + + col2 * 72 + col1 FROM tab0 AS cor0
----
169
2462
5995
query I rowsort
SELECT DISTINCT + 67 AS col2 FROM tab0 cor0
----
67
query I rowsort
SELECT + + 68 AS col1 FROM tab2 AS cor0
----
68
68
68
query I rowsort
SELECT - tab0.col2 * - 55 AS col0 FROM tab0
----
1815
4510
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-5850
SELECT + 92 DIV col0 FROM tab1 AS cor0
----
1
1
30
skipif mysql # not compatible
query I rowsort label-5850
SELECT + 92 / col0 FROM tab1 AS cor0
----
1
1
30
query I rowsort
SELECT ALL - - ( - col0 ) + - col0 FROM tab0 AS cor0
----
-178
-48
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-5852
SELECT DISTINCT col1 DIV - ( - col0 ) FROM tab2
----
0
4
skipif mysql # not compatible
query I rowsort label-5852
SELECT DISTINCT col1 / - ( - col0 ) FROM tab2
----
0
4
query I rowsort
SELECT 50 FROM tab2, tab1, tab1 AS cor0, tab0
----
81 values hashing to 6932c991110d256d3f92f3e9538f8040
query I rowsort
SELECT - tab2.col0 * + ( - 58 + col0 ) FROM tab2
----
-1560
-1659
357
query I rowsort
SELECT DISTINCT - col1 * + col2 + - col2 FROM tab2
----
-1560
-684
-864
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 cor2
----
3645 values hashing to 972d282d6d92f451c90dc8ca51a18f3e
query I rowsort
SELECT - col1 * - 47 FROM tab1 cor0
----
1222
470
611
query I rowsort
SELECT DISTINCT + col2 + col2 * - col1 + col1 AS col2 FROM tab1
----
-1139
-1324
-503
query I rowsort
SELECT DISTINCT + 75 + + col2 * + col1 FROM tab1
----
1323
1479
645
query I rowsort
SELECT ALL - tab2.col2 + - 18 AS col0 FROM tab2
----
-44
-45
-56
query I rowsort
SELECT + col0 * col2 * - 94 FROM tab2 AS cor0
----
-17766
-190632
-282188
query I rowsort
SELECT ALL 14 * + col0 FROM tab2 cor0
----
1092
1106
98
query I rowsort
SELECT + + col2 + - col2 + + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT 12 AS col1 FROM tab0, tab1 AS cor0
----
12
query I rowsort
SELECT + + 1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
query I rowsort
SELECT DISTINCT + col0 * + col0 + col1 AS col0 FROM tab2
----
6143
6258
80
query I rowsort
SELECT ALL - tab0.col2 + - col2 AS col1 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT ALL - tab1.col0 + col1 AS col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT ALL + 31 FROM tab1, tab2 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT ALL 79 * + col0 FROM tab2
----
553
6162
6241
query I rowsort
SELECT ( col1 ) * - 57 + col1 FROM tab1
----
-1456
-560
-728
onlyif mysql # use DIV operator for integer division
query I rowsort label-5872
SELECT DISTINCT tab0.col2 DIV - 45 FROM tab0, tab2 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT tab0.col2 / - 45 FROM tab0, tab2 AS cor0
----
-1
0
query I rowsort
SELECT ALL + + 33 FROM tab0 AS cor0
----
33
33
33
query I rowsort
SELECT col2 + col1 + + col0 AS col0 FROM tab2 AS cor0
----
134
163
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-5875
SELECT DISTINCT 9 + - cor0.col0 DIV col0 AS col2 FROM tab2 AS cor0
----
8
skipif mysql # not compatible
query I rowsort label-5875
SELECT DISTINCT 9 + - cor0.col0 / col0 AS col2 FROM tab2 AS cor0
----
8
query I rowsort
SELECT DISTINCT + + ( - col0 ) + col0 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL col1 * + col0 AS col1 FROM tab1 cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5878
SELECT DISTINCT ( col2 ) DIV ( - col2 + - col0 ) AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT ( col2 ) / ( - col2 + - col0 ) AS col1 FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5879
SELECT - + 98 + + col1 * CAST( col2 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-36
2716
7275
skipif mysql # not compatible
query I rowsort label-5879
SELECT - + 98 + + col1 * CAST ( col2 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-36
2716
7275
query I rowsort
SELECT ALL 89 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT - cor0.col1 * col2 - col0 AS col1 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT DISTINCT + col2 + - 2 FROM tab1 AS cor0
----
52
55
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5883
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) / - col0 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) / - col0 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + - cor0.col0 * - 66 + col1 AS col2 FROM tab2 AS cor0
----
493
5207
5231
query I rowsort
SELECT - col0 * 92 AS col1 FROM tab1 cor0
----
-276
-5888
-7360
query I rowsort
SELECT ALL col1 * + cor0.col2 + + col0 - col1 AS col0 FROM tab2 cor0
----
1553
708
813
query I rowsort
SELECT + col2 * + 1 + col1 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5888
SELECT - col2 * 22 + 15 DIV col0 FROM tab2 cor0
----
-572
-592
-836
skipif mysql # not compatible
query I rowsort label-5888
SELECT - col2 * 22 + 15 / col0 FROM tab2 cor0
----
-572
-592
-836
query I rowsort
SELECT DISTINCT col2 * + 95 AS col1 FROM tab1 AS cor0
----
5130
5415
9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-5890
SELECT ALL - col2 DIV + 63 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL - col2 / + 63 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT 52 AS col1 FROM tab2, tab2 AS cor0
----
52
query I rowsort
SELECT DISTINCT 98 FROM tab1, tab2 AS cor0
----
98
query I rowsort
SELECT ALL - + col1 + col2 + col0 AS col1 FROM tab2 AS cor0
----
100
3
45
query I rowsort
SELECT - ( - col1 ) + + col2 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + 45 + + 41 FROM tab1 AS cor0
----
86
query I rowsort
SELECT ALL 43 + col2 FROM tab2 AS cor0
----
69
70
81
query I rowsort
SELECT DISTINCT - - col2 * 30 + col1 FROM tab2 cor0
----
1157
839
841
query I rowsort
SELECT ALL col0 - col1 AS col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT - 80 * col0 * col0 FROM tab2 AS cor0
----
-3920
-486720
-499280
query I rowsort
SELECT DISTINCT - col2 * - col1 * col2 + 39 FROM tab2 cor0
----
22638
24587
39923
query I rowsort
SELECT DISTINCT - - 19 FROM tab2 AS cor0
----
19
query I rowsort
SELECT DISTINCT - col2 * - 67 + + col0 AS col2 FROM tab0 AS cor0
----
102
2235
5583
query I rowsort
SELECT + ( col2 ) * - cor0.col0 + - col1 + col2 * + col2 * - col1 FROM tab2 AS cor0
----
-22819
-27567
-41971
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5904
SELECT ALL - - CAST( NULL AS SIGNED ) * + col0 * - col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL - - CAST ( NULL AS INTEGER ) * + col0 * - col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT + - col0 * CAST ( + col2 AS REAL ) FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + col0 + 24 AS col1 FROM tab0 cor0
----
113
48
59
query I rowsort
SELECT col1 * 12 FROM tab2 AS cor0
----
204
372
708
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5908
SELECT - + col0 + CAST( - 53 AS SIGNED ) FROM tab1 AS cor0
----
-117
-133
-56
skipif mysql # not compatible
query I rowsort label-5908
SELECT - + col0 + CAST ( - 53 AS INTEGER ) FROM tab1 AS cor0
----
-117
-133
-56
skipif mysql # not compatible
query I rowsort
SELECT ALL cor0.col2 + CAST ( col2 AS REAL ) * - col2 AS col2 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT col1 * - col1 + col0 AS col2 FROM tab0 cor0
----
-7372
-8192
-9374
query I rowsort
SELECT ALL - + col1 * 79 FROM tab1 AS cor0
----
-1027
-2054
-790
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 ALL + col2 + col0 * ( col2 * + col0 ) col2 FROM tab1
----
233529
540
614496
query I rowsort
SELECT ALL 71 * tab0.col1 + + 58 * - col1 AS col1 FROM tab0
----
1118
1183
1261
query I rowsort
SELECT + - col0 * 13 + 73 * - col1 * + 81 - - cor0.col2 FROM tab1 AS cor0
----
-153723
-59905
-77813
query I rowsort
SELECT - col0 + - 25 AS col0 FROM tab1 AS cor0
----
-105
-28
-89
query I rowsort
SELECT - col1 * cor0.col0 * + col0 AS col0 FROM tab2 cor0
----
-106097
-1519
-358956
query I rowsort
SELECT - col0 * 13 * - cor0.col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
17497
2848
59852
query I rowsort
SELECT + ( col0 ) + col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - + 99 AS col1 FROM tab2 AS cor0
----
-99
-99
-99
query I rowsort
SELECT - + col1 + - col0 - - cor0.col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
133
3574
7587
onlyif mysql # use DIV operator for integer division
query I rowsort label-5922
SELECT + col0 DIV - col1 + - cor0.col2 * col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-5922
SELECT + col0 / - col1 + - cor0.col2 * col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - 11 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202
query I rowsort
SELECT ALL 84 * col0 FROM tab0
----
2016
2940
7476
onlyif mysql # use DIV operator for integer division
query I rowsort label-5925
SELECT + col0 * col0 DIV 45 FROM tab2
----
1
135
138
skipif mysql # not compatible
query I rowsort label-5925
SELECT + col0 * col0 / 45 FROM tab2
----
1
135
138
query I rowsort
SELECT + 14 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5927
SELECT DISTINCT col0 DIV + col2 col2 FROM tab0 AS cor0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT col0 / + col2 col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT - + 52 * - col2 FROM tab2 AS cor0
----
1352
1404
1976
onlyif mysql # use DIV operator for integer division
query I rowsort label-5929
SELECT cor0.col0 + col0 DIV 43 - + cor0.col0 AS col0 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-5929
SELECT cor0.col0 + col0 / 43 - + cor0.col0 AS col0 FROM tab2 AS cor0
----
0
1
1
query I rowsort
SELECT - 1 * tab0.col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - tab1.col2 + + 45 + - col0 FROM tab1
----
-12
-131
-76
query I rowsort
SELECT - col2 * - 57 + col2 FROM tab1 AS cor0
----
3132
3306
5568
onlyif mysql # use DIV operator for integer division
query I rowsort label-5933
SELECT + col0 DIV - tab0.col0 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5933
SELECT + col0 / - tab0.col0 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT + tab0.col1 * tab0.col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 51855bb230a34802a628192d3e332a79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5935
SELECT + col1 DIV - 7 + col2 FROM tab2 AS cor0
----
18
23
36
skipif mysql # not compatible
query I rowsort label-5935
SELECT + col1 / - 7 + col2 FROM tab2 AS cor0
----
18
23
36
query I rowsort
SELECT - col1 + - 18 AS col0 FROM tab2 AS cor0
----
-35
-49
-77
query I rowsort
SELECT + 11 FROM tab1, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5938
SELECT ALL - CAST( col2 AS SIGNED ) AS col2 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL - CAST ( col2 AS INTEGER ) AS col2 FROM tab1
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( ( tab1.col2 ) ) col0 FROM tab1
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5940
SELECT DISTINCT - CAST( - 85 AS SIGNED ) FROM tab2
----
85
skipif mysql # not compatible
query I rowsort label-5940
SELECT DISTINCT - CAST ( - 85 AS INTEGER ) FROM tab2
----
85
query I rowsort
SELECT + ( - ( - col1 ) ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + - 85 + col1 FROM tab2 AS cor0
----
-26
-54
-68
query I rowsort
SELECT - ( + col1 ) * + 52 + - col2 FROM tab1 AS cor0
----
-1406
-577
-772
query I rowsort
SELECT ALL - cor0.col1 * col0 + + ( + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT 16 * + col2 FROM tab2 AS cor0
----
416
432
608
query I rowsort
SELECT DISTINCT + - 2 * - col1 * - col1 + col0 - + col1 FROM tab1 cor0
----
-1375
-146
-271
query I rowsort
SELECT - ( 20 ) AS col0 FROM tab2
----
-20
-20
-20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
onlyif mysql # use DIV operator for integer division
query I rowsort label-5949
SELECT + col1 * col1 + + col1 DIV col1 FROM tab2 AS cor0
----
290
3482
962
skipif mysql # not compatible
query I rowsort label-5949
SELECT + col1 * col1 + + col1 / col1 FROM tab2 AS cor0
----
290
3482
962
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col1 * col2 col1 FROM tab1 AS cor0
----
1152
1350
513
onlyif mysql # use DIV operator for integer division
query I rowsort label-5951
SELECT DISTINCT + cor0.col0 DIV - col2 + - col2 FROM tab1 AS cor0
----
-54
-58
-96
skipif mysql # not compatible
query I rowsort label-5951
SELECT DISTINCT + cor0.col0 / - col2 + - col2 FROM tab1 AS cor0
----
-54
-58
-96
query I rowsort
SELECT DISTINCT - col2 + col0 - + cor0.col1 FROM tab0 AS cor0
----
-63
-84
-95
query I rowsort
SELECT + col0 + col0 * + col0 * - col2 FROM tab1 AS cor0
----
-233408
-483
-614320
onlyif mysql # use DIV operator for integer division
query I rowsort label-5954
SELECT DISTINCT - tab0.col2 * tab0.col2 DIV - col0 + + col0 AS col1 FROM tab0
----
164
35
69
skipif mysql # not compatible
query I rowsort label-5954
SELECT DISTINCT - tab0.col2 * tab0.col2 / - col0 + + col0 AS col1 FROM tab0
----
164
35
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-5955
SELECT DISTINCT - col2 * cor0.col0 + + col0 DIV cor0.col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-157
-1968
-2984
skipif mysql # not compatible
query I rowsort label-5955
SELECT DISTINCT - col2 * cor0.col0 + + col0 / cor0.col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-157
-1968
-2984
query I rowsort
SELECT ALL + - col0 + - col2 * col0 AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT DISTINCT col1 * col1 * + cor0.col0 AS col2 FROM tab2 cor0
----
22831
271518
6727
query I rowsort
SELECT ALL - col2 * + col2 - col1 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT ALL + col0 * col2 * + col2 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT DISTINCT - cor0.col2 * + col1 + - cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
-1331
-1432
-617
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 + col0 + - cor0.col1 col2 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col0 col2 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 * col2 col0 FROM tab2 cor0
----
1523
736
754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + col1 ) + - col1 col2 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT + + col2 * cor0.col1 + + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT - + 7 * col1 + + col2 AS col2 FROM tab1 AS cor0
----
-128
-13
5
query I rowsort
SELECT ALL cor0.col1 - + col0 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5969
SELECT ALL col0 * + col2 + - cor0.col0 DIV col1 col0 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL col0 * + col2 + - cor0.col0 / col1 col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + ( + col0 ) AS col0 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5971
SELECT - col2 * col1 + col2 DIV col2 FROM tab1 AS cor0
----
-1247
-1403
-569
skipif mysql # not compatible
query I rowsort label-5971
SELECT - col2 * col1 + col2 / col2 FROM tab1 AS cor0
----
-1247
-1403
-569
query I rowsort
SELECT DISTINCT + col2 + + col1 * col2 * col2 FROM tab1
----
119904
32547
75870
query I rowsort
SELECT col1 + col2 AS col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 + + col2 col0 FROM tab1
----
-108
-3591
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-5975
SELECT ALL col2 DIV col1 + - col2 FROM tab2
----
-26
-27
-36
skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL col2 / col1 + - col2 FROM tab2
----
-26
-27
-36
query I rowsort
SELECT tab2.col0 * tab2.col0 + col2 FROM tab2
----
6110
6279
76
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( tab2.col1 )
----
query I rowsort
SELECT - col2 * + col1 * - col2 AS col1 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT - col2 * + col0 + - col2 * col1 FROM tab2
----
-1026
-3562
-3648
query I rowsort
SELECT DISTINCT col0 + + col2 + - col2 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5981
SELECT DISTINCT - col1 DIV tab2.col0 FROM tab2
----
-4
0
skipif mysql # not compatible
query I rowsort label-5981
SELECT DISTINCT - col1 / tab2.col0 FROM tab2
----
-4
0
query I rowsort
SELECT + col0 + - col0 + + col0 FROM tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5983
SELECT col2 * + col0 DIV - col0 AS col1 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-5983
SELECT col2 * + col0 / - col0 AS col1 FROM tab1
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5984
SELECT ALL + col1 DIV + col1 AS col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL + col1 / + col1 AS col1 FROM tab1
----
1
1
1
query III rowsort
SELECT * FROM tab2 WHERE ( col0 - - col2 ) NOT IN ( + col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT + col1 * col2 + col1 / tab2.col0 AS col1 FROM tab2 WHERE ( NULL ) BETWEEN ( NULL ) AND - col2 * - col2
----
query I rowsort
SELECT - col1 * + col0 - col1 AS col0 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT ALL - tab0.col0 * - col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT col2 * col2 + - col1 + - col0 * - col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + tab2.col2 + col2 * col0 )
----
query I rowsort
SELECT DISTINCT col2 * col1 * - tab1.col2 AS col2 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT + + 46 * + cor0.col0 FROM tab0 AS cor0
----
1104
1610
4094
query I rowsort
SELECT ALL col1 + - tab2.col2 + col1 FROM tab2
----
-4
35
92
query I rowsort
SELECT tab2.col0 + + col2 * col2 FROM tab2
----
1523
736
754
query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 WHERE NULL IN ( col1 * + col0 )
----
query I rowsort
SELECT - tab0.col2 * + tab0.col2 AS col0 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT ALL + tab0.col2 * - col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT tab1.col0 * - col0 * col0 FROM tab1
----
-262144
-27
-512000
query I rowsort
SELECT - tab2.col1 * col0 AS col1 FROM tab2
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 col1 FROM tab0
----
1
1089
6724
query I rowsort
SELECT + col0 * + col0 - + col2 AS col0 FROM tab2
----
22
6058
6203
onlyif mysql # use DIV operator for integer division
query I rowsort label-6001
SELECT + col1 * col0 + - col2 DIV col1 FROM tab0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-6001
SELECT + col1 * col0 + - col2 / col1 FROM tab0
----
2064
3395
8099
query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * + col1 * col2 < - col2
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT + col2 / col0 FROM tab0 WHERE ( NULL ) IN ( tab0.col2 )
----
query I rowsort
SELECT DISTINCT - col1 * tab1.col1 * col1 AS col2 FROM tab1
----
-1000
-17576
-2197
query III rowsort
SELECT * FROM tab0 WHERE NULL <= ( - col1 * col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + tab0.col0 * col1 col1 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT ALL col0 * col0 + - col2 * col1 + tab1.col0 AS col2 FROM tab1
----
-1392
3590
5232
onlyif mysql # use DIV operator for integer division
query I rowsort label-6009
SELECT ALL - cor0.col1 DIV + col0 + col2 + col2 AS col0 FROM tab2 AS cor0
----
50
52
76
skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL - cor0.col1 / + col0 + col2 + col2 AS col0 FROM tab2 AS cor0
----
50
52
76
query I rowsort
SELECT ALL - col0 + tab0.col1 + + col2 AS col1 FROM tab0
----
63
84
95
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 + col1 IN ( - col2 )
----
query I rowsort
SELECT DISTINCT col1 * - col1 * col2 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT + col2 * col2 - col1 * col1 AS col2 FROM tab1
----
2240
3149
9047
query I rowsort
SELECT DISTINCT - col2 * + col1 + + col1 + - col0 FROM tab0
----
-2776
-35
-7460
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 = NULL
----
query I rowsort
SELECT DISTINCT - col1 + - 42 * col0 AS col2 FROM tab1 AS cor0
----
-152
-2698
-3373
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( ( col0 ) AS REAL ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - col2 + - col1 * + col0 * 81 FROM tab2 AS cor0
----
-108821
-17604
-372788
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6019
SELECT CAST( NULL AS SIGNED ) - - cor0.col2 * col0 * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6019
SELECT CAST ( NULL AS INTEGER ) - - cor0.col2 * col0 * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 51 * cor0.col2 AS col1 FROM tab1 AS cor0
----
2754
2907
4896
query I rowsort
SELECT + - ( col2 ) - - col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + - ( cor0.col1 ) + col1 * col2 + col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - col2 * 95 AS col0 FROM tab1 AS cor0
----
-5130
-5415
-9120
query I rowsort
SELECT 85 * - col2 + 94 * - 49 FROM tab2 AS cor0
----
-6816
-6901
-7836
query I rowsort
SELECT + 22 * + col0 - col0 FROM tab1 AS cor0
----
1344
1680
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6026
SELECT + - col0 * col1 / CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6026
SELECT + - col0 * col1 / CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6027
SELECT col2 + + col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6027
SELECT col2 + + col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( ( - col1 ) ) col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT 20 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6030
SELECT DISTINCT + CAST( 65 AS SIGNED ) * cor0.col0 AS col1 FROM tab2, tab2 AS cor0
----
455
5070
5135
skipif mysql # not compatible
query I rowsort label-6030
SELECT DISTINCT + CAST ( 65 AS INTEGER ) * cor0.col0 AS col1 FROM tab2, tab2 AS cor0
----
455
5070
5135
query I rowsort
SELECT ALL + 85 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
onlyif mysql # use DIV operator for integer division
query I rowsort label-6032
SELECT tab2.col2 + + ( col0 ) DIV - col0 FROM tab2
----
25
26
37
skipif mysql # not compatible
query I rowsort label-6032
SELECT tab2.col2 + + ( col0 ) / - col0 FROM tab2
----
25
26
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col2 col0 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-6034
SELECT - col0 * 62 + + col0 DIV col0 col1 FROM tab1
----
-185
-3967
-4959
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6034
SELECT - col0 * 62 + + col0 / col0 col1 FROM tab1
----
-185
-3967
-4959
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 col1 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT ALL - col1 + ( 54 ) * col1 FROM tab2 AS cor0
----
1643
3127
901
query I rowsort
SELECT + + 28 * + col2 FROM tab0 cor0
----
2296
28
924
onlyif mysql # use DIV operator for integer division
query I rowsort label-6038
SELECT ALL ( cor0.col2 ) DIV + col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL ( cor0.col2 ) / + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - cor0.col1 * - col2 * - col2 AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT - col0 * 77 AS col1 FROM tab1
----
-231
-4928
-6160
query I rowsort
SELECT DISTINCT col1 * + ( col1 + col1 ) FROM tab0
----
14792
16562
18818
query I rowsort
SELECT - 50 - - 3 FROM tab2, tab2 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 col0 FROM tab0, tab2 AS cor0
----
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6044
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 49 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-6044
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 49 FROM tab0
----
NULL
query I rowsort
SELECT + 39 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1014
390
507
query I rowsort
SELECT DISTINCT + 57 FROM tab1
----
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) + + 8 * col0 col0 FROM tab2
----
649
683
87
query I rowsort
SELECT - + 34 AS col1 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6049
SELECT ALL - - col0 * col1 + + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL - - col0 * col1 + + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + col0 * - ( col0 * + col1 + + cor0.col2 * col2 ) AS col2 FROM tab1 AS cor0
----
-248839
-820384
-8928
query I rowsort
SELECT DISTINCT 20 * col2 FROM tab1
----
1080
1140
1920
query I rowsort
SELECT cor0.col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + - col0 * + col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 - - col0 col2 FROM tab2
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6055
SELECT + + col2 + col1 DIV 55 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-6055
SELECT + + col2 + col1 / 55 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT DISTINCT + col0 * + 73 AS col0 FROM tab0 AS cor0
----
1752
2555
6497
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * - col1 + col2 * - col1 col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6058
SELECT + col0 DIV - col2 + col0 * cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
233471
486
614400
skipif mysql # not compatible
query I rowsort label-6058
SELECT + col0 / - col2 + col0 * cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
233471
486
614400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6059
SELECT ALL + col1 + CAST( + ( - cor0.col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL + col1 + CAST ( + ( - cor0.col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col2 * cor0.col0 + col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL col2 + col0 * + tab0.col1 AS col0 FROM tab0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 42 col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
42
query I rowsort
SELECT ALL col1 * col1 - + col2 FROM tab0
----
7363
8199
9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-6064
SELECT ALL tab1.col2 + - 84 DIV + col0 + - col1 FROM tab1
----
0
46
82
skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL tab1.col2 + - 84 / + col0 + - col1 FROM tab1
----
0
46
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6065
SELECT - + cor0.col0 + 57 DIV 90 col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6065
SELECT - + cor0.col0 + 57 / 90 col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL + tab1.col2 + + col1 + - col2 * tab1.col2 * ( tab1.col2 ) AS col0 FROM tab1
----
-157384
-185126
-884627
query I rowsort
SELECT DISTINCT + 94 - - 77 AS col0 FROM tab2, tab0 cor0
----
171
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab1, tab2, tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-6069
SELECT DISTINCT col1 + - 44 DIV ( - col2 * - 60 ) FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT col1 + - 44 / ( - col2 * - 60 ) FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT col0 + + 20 * + col1 * + tab1.col2 AS col2 FROM tab1
----
11464
25040
28083
query I rowsort
SELECT ALL + col0 * tab0.col0 + col1 FROM tab0
----
1322
662
8012
query I rowsort
SELECT + - col1 * - col2 + col1 * - col1 AS col0 FROM tab1 AS cor0
----
1079
470
728
query I rowsort
SELECT col2 * 79 FROM tab0 AS cor0
----
2607
6478
79
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 * CAST ( - col0 AS REAL ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 33 col0 FROM tab0 AS cor0
----
115
34
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6076
SELECT ALL - col1 * + CAST( NULL AS SIGNED ) / + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ) / + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 + + 82 AS col1 FROM tab2 AS cor0
----
108
109
120
onlyif mysql # use DIV operator for integer division
query I rowsort label-6078
SELECT 42 DIV tab1.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 8f17c7717daed768d3828a51d27471f0
skipif mysql # not compatible
query I rowsort label-6078
SELECT 42 / tab1.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 8f17c7717daed768d3828a51d27471f0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT ALL + cor1.col1 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT 22 + col1 * col1 FROM tab0 AS cor0
----
7418
8303
9431
query I rowsort
SELECT col1 * + col2 + ( + col1 ) * - col2 AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6083
SELECT ALL + 42 DIV - cor0.col0 AS col1 FROM tab2 AS cor0
----
-6
0
0
skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL + 42 / - cor0.col0 AS col1 FROM tab2 AS cor0
----
-6
0
0
query I rowsort
SELECT DISTINCT - col0 + - col2 AS col1 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT + - 0 * col0 * - 45 + col2 * col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-6086
SELECT ALL col2 DIV col0 + col0 FROM tab0 cor0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL col2 / col0 + col0 FROM tab0 cor0
----
25
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col1 + + col2 col0 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT + col1 + - col0 - + ( ( - col1 ) + col0 ) FROM tab0 AS cor0
----
124
124
4
query I rowsort
SELECT + 24 * + col2 * col2 AS col0 FROM tab0 cor0
----
161376
24
26136
query I rowsort
SELECT ALL + cor0.col1 * + col1 * + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-6091
SELECT ALL - tab0.col1 DIV - col0 col2 FROM tab0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6091
SELECT ALL - tab0.col1 / - col0 col2 FROM tab0
----
1
2
3
query I rowsort
SELECT DISTINCT - - 74 * - col2 + - 90 AS col1 FROM tab1 cor0
----
-4086
-4308
-7194
query I rowsort
SELECT ALL 48 * + cor0.col0 + + 44 FROM tab2 AS cor0
----
3788
380
3836
query I rowsort
SELECT ALL + col2 * col0 + + col1 * col0 + col1 FROM tab0 cor0
----
15488
2942
3527
onlyif mysql # use DIV operator for integer division
query I rowsort label-6095
SELECT DISTINCT - col1 DIV col2 col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6095
SELECT DISTINCT - col1 / col2 col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT DISTINCT + + col0 + - col2 * - ( + col2 ) FROM tab2 cor0
----
1523
736
754
query I rowsort
SELECT ALL + + cor0.col2 * col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL + 84 * - col1 AS col0 FROM tab0 AS cor0
----
-7224
-7644
-8148
query I rowsort
SELECT DISTINCT - - col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL col0 * col2 - - col0 FROM tab0 cor0
----
70
7387
816
query I rowsort
SELECT 9 * + col1 FROM tab2 AS cor0
----
153
279
531
query I rowsort
SELECT + cor0.col1 - ( col2 ) FROM tab0 AS cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6103
SELECT - col0 * 93 + 37 DIV col1 col2 FROM tab2 AS cor0
----
-650
-7254
-7345
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6103
SELECT - col0 * 93 + 37 / col1 col2 FROM tab2 AS cor0
----
-650
-7254
-7345
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 - cor0.col2 col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + cor0.col0 * col1 * col2 col2 FROM tab1 AS cor0
----
36544
4215
99920
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6106
SELECT ALL - - col1 / + CAST( NULL AS SIGNED ) + + ( + cor0.col0 ) * 45 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL - - col1 / + CAST ( NULL AS INTEGER ) + + ( + cor0.col0 ) * 45 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + cor0.col2 + + cor0.col0 + col1 FROM tab2 AS cor0
----
134
163
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 * - col1 + - col1 col0 FROM tab2 AS cor0
----
-306
-3540
-992
skipif mysql # not compatible
query I rowsort
SELECT col2 - CAST ( col0 * col2 AS REAL ) FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL - + col2 + 25 FROM tab0 AS cor0
----
-57
-8
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-6111
SELECT - tab1.col0 DIV + col1 + col2 + + col1 col0 FROM tab1
----
103
61
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6111
SELECT - tab1.col0 / + col1 + col2 + + col1 col0 FROM tab1
----
103
61
80
query I rowsort
SELECT - ( - col0 ) + tab0.col1 * + col2 AS col1 FROM tab0
----
132
2862
7551
query I rowsort
SELECT - cor0.col0 + - col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT 68 - + col2 * col0 AS col2 FROM tab1
----
-3580
-7612
-94
query I rowsort
SELECT ALL + col0 - + tab1.col0 AS col1 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6116
SELECT ALL - + CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL - + CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * + 72 FROM tab2 AS cor0
----
-504
-5616
-5688
query I rowsort
SELECT DISTINCT ( col1 ) * - col0 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6119
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 / + cor0.col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6119
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 / + cor0.col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL ( col2 ) + - cor0.col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL + col2 - - col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1226
609
8003
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6122
SELECT DISTINCT - CAST( col0 AS SIGNED ) * - col1 - + col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008
skipif mysql # not compatible
query I rowsort label-6122
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * - col1 - + col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT ALL 26 * 64 + cor0.col0 * col0 FROM tab2 AS cor0
----
1713
7748
7905
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6124
SELECT DISTINCT + CAST( col1 AS SIGNED ) + col1 - - ( col1 ) * col0 FROM tab0 AS cor0
----
2236
3589
8281
skipif mysql # not compatible
query I rowsort label-6124
SELECT DISTINCT + CAST ( col1 AS INTEGER ) + col1 - - ( col1 ) * col0 FROM tab0 AS cor0
----
2236
3589
8281
query I rowsort
SELECT DISTINCT col1 + + tab2.col1 FROM tab2
----
118
34
62
query I rowsort
SELECT DISTINCT col0 + 5 AS col0 FROM tab0
----
29
40
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-6127
SELECT ALL tab1.col1 * 16 * col2 + col0 DIV + col2 AS col1 FROM tab1
----
19968
22464
9121
skipif mysql # not compatible
query I rowsort label-6127
SELECT ALL tab1.col1 * 16 * col2 + col0 / + col2 AS col1 FROM tab1
----
19968
22464
9121
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 6 col2 FROM tab1
----
-58
-74
3
query I rowsort
SELECT + - col0 + + 50 * + col0 FROM tab1 AS cor0
----
147
3136
3920
query I rowsort
SELECT ALL + + ( - 6 ) + col1 * 25 AS col1 FROM tab2 AS cor0
----
1469
419
769
query I rowsort
SELECT DISTINCT ( 44 ) AS col2 FROM tab1 AS cor0
----
44
query I rowsort
SELECT col2 + ( cor0.col2 ) * 95 FROM tab1 AS cor0
----
5184
5472
9216
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to c0625992cd48bef51317edf43a55d9e4
query I rowsort
SELECT DISTINCT + - ( + 38 ) * col0 AS col2 FROM tab2 AS cor0
----
-266
-2964
-3002
query I rowsort
SELECT + ( col0 * + col0 ) FROM tab2
----
49
6084
6241
query I rowsort
SELECT DISTINCT + col1 * 19 * - col0 AS col2 FROM tab2
----
-25517
-4123
-87438
query I rowsort
SELECT col2 + col1 * + col2 AS col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT 37 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + tab1.col2 col0 FROM tab1
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6140
SELECT ALL + col1 * - CAST( + col2 AS SIGNED ) AS col1 FROM tab2
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL + col1 * - CAST ( + col2 AS INTEGER ) AS col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + cor1.col0 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
24
35
89
query I rowsort
SELECT 16 * - col2 FROM tab1 AS cor0
----
-1536
-864
-912
query I rowsort
SELECT DISTINCT + 35 * 1 * + col1 FROM tab0
----
3010
3185
3395
query I rowsort
SELECT + + col1 + - cor0.col0 * + cor0.col2 + - 29 FROM tab2 AS cor0
----
-187
-1998
-3014
query I rowsort
SELECT ALL - col2 * col1 * ( col0 ) AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ( - col1 ) * + col1 + + col0 FROM tab0 AS cor0
----
-7372
-8192
-9374
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6147
SELECT DISTINCT col1 * col1 + CAST( 3 AS SIGNED ) FROM tab2 AS cor0
----
292
3484
964
skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT col1 * col1 + CAST ( 3 AS INTEGER ) FROM tab2 AS cor0
----
292
3484
964
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 - + ( 12 ) FROM tab0 AS cor0
----
-109
-2850
-7474
query I rowsort
SELECT DISTINCT 17 FROM tab1, tab2 cor0, tab0 AS cor1
----
17
query I rowsort
SELECT DISTINCT - 68 FROM tab0, tab2 AS cor0
----
-68
query I rowsort
SELECT + col2 + ( + col2 ) FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - + col0 + - 25 FROM tab0 AS cor0
----
-114
-49
-60
query I rowsort
SELECT - - col1 + - 40 FROM tab2 cor0
----
-23
-9
19
query I rowsort
SELECT col1 + + 15 * 59 AS col2 FROM tab1 AS cor0
----
895
898
911
query I rowsort
SELECT - col2 * 88 AS col2 FROM tab2 AS cor0
----
-2288
-2376
-3344
query I rowsort
SELECT col2 + - col0 * col0 * col0 FROM tab2
----
-316
-474526
-493001
query I rowsort
SELECT col0 * 98 AS col0 FROM tab1 AS cor0
----
294
6272
7840
query I rowsort
SELECT ALL - col2 + - 17 FROM tab0 AS cor0
----
-18
-50
-99
query I rowsort
SELECT DISTINCT - - col1 - 92 FROM tab2 AS cor0
----
-33
-61
-75
query I rowsort
SELECT DISTINCT + col2 * 46 + - col0 FROM tab1 AS cor0
----
2481
2558
4336
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6161
SELECT - CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6161
SELECT - CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6162
SELECT ALL - CAST( NULL AS SIGNED ) + col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6162
SELECT ALL - CAST ( NULL AS INTEGER ) + col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + cor0.col1 * col2 + + col2 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT - col1 * - col1 * ( - col1 ) + + col0 * col1 AS col0 FROM tab2 cor0
----
-200777
-29574
-3570
query I rowsort
SELECT - col2 * col0 + 44 AS col0 FROM tab1 AS cor0
----
-118
-3604
-7636
query I rowsort
SELECT DISTINCT - 77 * + col2 * - tab2.col1 FROM tab2
----
118118
49742
64449
query I rowsort
SELECT 53 * col1 FROM tab1
----
1378
530
689
query I rowsort
SELECT ALL col0 + cor0.col2 * 0 * cor0.col2 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 * - col2 col0 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT 43 * col2 AS col1 FROM tab2
----
1118
1161
1634
query I rowsort
SELECT ALL + 7 AS col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
query I rowsort
SELECT - col0 + col0 * + 6 FROM tab1
----
15
320
400
query I rowsort
SELECT ( + col0 ) - col1 AS col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT + 58 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6175
SELECT DISTINCT + CAST( - col2 AS SIGNED ) + - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-216
-3705
-7776
skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) + - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT ALL cor0.col0 * + col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 0c9c9a26da1b45580001288543ac8dbe
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 + col0 col1 FROM tab1 AS cor0
----
142
158
81
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab2 cor2, tab2
----
13122 values hashing to 530a95e210c63b52f5ff22d0211ea988
query I rowsort
SELECT - tab0.col0 * + col1 + - 65 FROM tab0
----
-2129
-3460
-8164
query I rowsort
SELECT + col2 - 55 AS col1 FROM tab2
----
-17
-28
-29
query I rowsort
SELECT DISTINCT - cor0.col1 + - 47 * + 26 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
-1239
-1253
-1281
query I rowsort
SELECT DISTINCT 39 * + col0 FROM tab1 AS cor0
----
117
2496
3120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 49 * col2 ) col1 FROM tab1
----
-2646
-2793
-4704
query I rowsort
SELECT DISTINCT + + col0 + + col2 - - col0 AS col1 FROM tab2 AS cor0
----
182
196
41
query I rowsort
SELECT ALL 84 * + col1 FROM tab2
----
1428
2604
4956
query I rowsort
SELECT DISTINCT + ( 98 * - col2 ) - 94 FROM tab0
----
-192
-3328
-8130
query I rowsort
SELECT 42 * col1 AS col0 FROM tab1
----
1092
420
546
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 * - col0 - - col0 col1 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT - 60 + col0 AS col0 FROM tab0
----
-25
-36
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 + - col0 - + 45 col1 FROM tab0
----
1145
507
7787
query I rowsort
SELECT 38 * col0 AS col1 FROM tab1
----
114
2432
3040
query I rowsort
SELECT + col1 * col2 * col0 AS col0 FROM tab0 cor0
----
3395
664118
68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6194
SELECT - cor0.col0 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6194
SELECT - cor0.col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - cor0.col2 FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 col1 FROM tab2
----
93
query I rowsort
SELECT DISTINCT + 27 AS col1 FROM tab1
----
27
query I rowsort
SELECT + col1 * + 60 AS col1 FROM tab1 AS cor0
----
1560
600
780
query I rowsort
SELECT - col0 + + ( + 56 ) FROM tab0
----
-33
21
32
query I rowsort
SELECT ALL col0 * - ( - cor0.col2 ) FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6201
SELECT tab0.col0 * - col1 * col2 + - col0 DIV 18 AS col2 FROM tab0
----
-3396
-664122
-68113
skipif mysql # not compatible
query I rowsort label-6201
SELECT tab0.col0 * - col1 * col2 + - col0 / 18 AS col2 FROM tab0
----
-3396
-664122
-68113
query I rowsort
SELECT cor0.col2 * + ( + cor0.col2 ) + + cor0.col2 AS col1 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT DISTINCT - col1 + cor0.col2 * 68 FROM tab1 AS cor0
----
3646
3866
6515
query I rowsort
SELECT DISTINCT col2 * col2 + col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT + col2 * 46 + - 71 AS col1 FROM tab2
----
1125
1171
1677
query I rowsort
SELECT DISTINCT - 52 * col2 AS col0 FROM tab0 AS cor0
----
-1716
-4264
-52
query I rowsort
SELECT - - 1 * col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + - ( col2 ) + - col0 AS col2 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT + 40 AS col2 FROM tab0 AS cor0
----
40
40
40
query I rowsort
SELECT + + 28 AS col0 FROM tab2 AS cor0
----
28
28
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-6211
SELECT ALL - 63 DIV + col0 + - col2 FROM tab1 cor0
----
-57
-75
-96
skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL - 63 / + col0 + - col2 FROM tab1 cor0
----
-57
-75
-96
query I rowsort
SELECT + - ( col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - + col1 * cor0.col1 + cor0.col0 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT col1 * + 59 * col1 AS col0 FROM tab2 AS cor0
----
17051
205379
56699
onlyif mysql # use DIV operator for integer division
query I rowsort label-6215
SELECT ( 55 ) DIV + col0 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-6215
SELECT ( 55 ) / + col0 FROM tab0 AS cor0
----
0
1
2
query I rowsort
SELECT - + 71 + + col2 AS col0 FROM tab0 AS cor0
----
-38
-70
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-6217
SELECT ALL col1 DIV - tab0.col1 AS col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6217
SELECT ALL col1 / - tab0.col1 AS col2 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT ALL - + col0 + + ( + col0 ) * + cor0.col1 FROM tab1 cor0
----
576
75
960
query I rowsort
SELECT DISTINCT 35 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
245
2730
2765
query I rowsort
SELECT ALL + ( - col2 ) + - col1 * ( - 6 ) * + col2 FROM tab2 AS cor0
----
3838
4995
9178
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) + cor0.col0 * - col1 col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT - - ( + col1 ) * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-6223
SELECT ALL + col2 + col1 - - col1 DIV 92 FROM tab1 AS cor0
----
109
67
80
skipif mysql # not compatible
query I rowsort label-6223
SELECT ALL + col2 + col1 - - col1 / 92 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + cor0.col2 col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + + cor0.col0 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6226
SELECT ALL - - col0 + - col1 * - CAST( + col0 AS SIGNED ) FROM tab2 cor0
----
1422
224
4680
skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL - - col0 + - col1 * - CAST ( + col0 AS INTEGER ) FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT + - cor0.col2 - + col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT col1 + col2 * + col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-6229
SELECT DISTINCT + 83 + col1 DIV col2 AS col1 FROM tab1 AS cor0
----
83
skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT + 83 + col1 / col2 AS col1 FROM tab1 AS cor0
----
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6230
SELECT 47 DIV col0 + + col1 + 70 * col1 FROM tab1 AS cor0
----
1861
710
923
skipif mysql # not compatible
query I rowsort label-6230
SELECT 47 / col0 + + col1 + 70 * col1 FROM tab1 AS cor0
----
1861
710
923
query I rowsort
SELECT ALL + + col1 * col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-6232
SELECT DISTINCT - col1 * cor0.col0 DIV ( + col0 ) AS col0 FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-6232
SELECT DISTINCT - col1 * cor0.col0 / ( + col0 ) AS col0 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT ALL ( col2 ) + + col1 AS col0 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL - col0 + - 83 AS col1 FROM tab2 AS cor0
----
-161
-162
-90
query I rowsort
SELECT DISTINCT + col2 * col2 + 24 FROM tab1 AS cor0
----
2940
3273
9240
query I rowsort
SELECT + + col0 + col2 * 10 AS col2 FROM tab2 AS cor0
----
277
338
459
query I rowsort
SELECT - col0 + + 54 * col1 AS col1 FROM tab0 AS cor0
----
4620
4825
5203
query I rowsort
SELECT DISTINCT + col0 * + 7 + + ( - col2 * - 68 + + col2 ) AS col1 FROM tab1 AS cor0
----
3747
4381
7184
onlyif mysql # use DIV operator for integer division
query I rowsort label-6239
SELECT DISTINCT col1 DIV - col1 + col2 * col2 * + tab1.col2 col0 FROM tab1
----
157463
185192
884735
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6239
SELECT DISTINCT col1 / - col1 + col2 * col2 * + tab1.col2 col0 FROM tab1
----
157463
185192
884735
query I rowsort
SELECT ALL col2 * tab2.col0 + tab2.col0 AS col2 FROM tab2
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-6241
SELECT - 92 DIV col1 FROM tab1 AS cor0
----
-3
-7
-9
skipif mysql # not compatible
query I rowsort label-6241
SELECT - 92 / col1 FROM tab1 AS cor0
----
-3
-7
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6242
SELECT col1 * - col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6242
SELECT col1 * - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + col2 + 81 * + col2 AS col0 FROM tab2 cor0
----
2191
2245
3133
query I rowsort
SELECT tab2.col2 * col2 * col1 AS col0 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT DISTINCT 67 * col0 AS col2 FROM tab1
----
201
4288
5360
query I rowsort
SELECT DISTINCT ( col0 + col1 ) * - col2 FROM tab1
----
-1566
-4218
-8928
query I rowsort
SELECT ALL - cor0.col1 + 33 AS col2 FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 15ada87847177274a7167f173667b94b
query I rowsort
SELECT - ( cor0.col0 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 cor2
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4
query I rowsort
SELECT ALL + cor0.col2 + + col0 * col0 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 + + 89 AS col1 FROM tab1 cor0
----
1129
167
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-6251
SELECT - - col1 DIV - 55 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6251
SELECT - - col1 / - 55 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - col1 + - col2 + col0 FROM tab0 AS cor0
----
-63
-84
-95
query I rowsort
SELECT - col2 + ( - col2 ) * + 97 FROM tab2 cor0
----
-2548
-2646
-3724
query I rowsort
SELECT DISTINCT ( - cor0.col0 ) * col0 + col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1190
-623
216
query I rowsort
SELECT - 93 * col2 * + col1 FROM tab0
----
-263934
-693966
-9021
onlyif mysql # use DIV operator for integer division
query I rowsort label-6256
SELECT + + ( col2 ) DIV + col0 + + 25 DIV + col2 FROM tab0 AS cor0
----
0
1
25
skipif mysql # not compatible
query I rowsort label-6256
SELECT + + ( col2 ) / + col0 + + 25 / + col2 FROM tab0 AS cor0
----
0
1
25
query I rowsort
SELECT - 31 + col0 FROM tab0 AS cor0
----
-7
4
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - cor0.col0 col2 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT - ( - col1 ) * col0 + col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1178
1632
8083
query I rowsort
SELECT + + 91 FROM tab2 AS cor0
----
91
91
91
query I rowsort
SELECT + - 46 + col1 AS col1 FROM tab0 AS cor0
----
40
45
51
query I rowsort
SELECT ( + col1 ) + + col0 * cor0.col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT cor0.col1 + col1 + col1 FROM tab2 AS cor0
----
177
51
93
query I rowsort
SELECT col0 + + col0 * + col0 * - col2 + + col0 FROM tab0 AS cor0
----
-1155
-18960
-649344
query I rowsort
SELECT DISTINCT 63 * - col1 * col2 + + 91 FROM tab2 AS cor0
----
-40607
-52640
-96551
onlyif mysql # use DIV operator for integer division
query I rowsort label-6266
SELECT - - cor0.col2 DIV cor0.col0 + col2 AS col2 FROM tab0 AS cor0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-6266
SELECT - - cor0.col2 / cor0.col0 + col2 AS col2 FROM tab0 AS cor0
----
1
34
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 + col1 - + col0 * col2 col1 FROM tab0 cor0
----
1358
3457
892
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6268
SELECT DISTINCT + - col2 * - cor0.col0 + CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6268
SELECT DISTINCT + - col2 * - cor0.col0 + CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col0 + + col2 * cor0.col2 * + ( + col0 ) FROM tab2 AS cor0
----
114155
5110
52806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * - cor0.col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6271
SELECT + - tab2.col1 + - CAST( NULL AS SIGNED ) FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-6271
SELECT + - tab2.col1 + - CAST ( NULL AS INTEGER ) FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL 39 + 46 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT DISTINCT - 73 AS col2 FROM tab0, tab1 AS cor0
----
-73
query I rowsort
SELECT DISTINCT col0 * 18 * + col0 FROM tab2 AS cor0
----
109512
112338
882
query I rowsort
SELECT ALL + col0 * 1 + - col0 + ( cor0.col0 * - col0 ) FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT + - ( col1 ) * col0 - ( - cor0.col0 ) FROM tab2 AS cor0
----
-1264
-210
-4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 - col1 * cor0.col2 col1 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-6278
SELECT DISTINCT - col2 + + ( - col2 ) DIV + tab0.col2 FROM tab0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-6278
SELECT DISTINCT - col2 + + ( - col2 ) / + tab0.col2 FROM tab0
----
-2
-34
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6279
SELECT - - 95 DIV col1 + + col2 AS col2 FROM tab0 AS cor0
----
1
34
83
skipif mysql # not compatible
query I rowsort label-6279
SELECT - - 95 / col1 + + col2 AS col2 FROM tab0 AS cor0
----
1
34
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6280
SELECT + - col0 + cor0.col2 DIV cor0.col0 FROM tab2 AS cor0
----
-4
-78
-79
skipif mysql # not compatible
query I rowsort label-6280
SELECT + - col0 + cor0.col2 / cor0.col0 FROM tab2 AS cor0
----
-4
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + col1 col1 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT 76 + tab2.col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to cace3a4fc009363dbccc9c069aafcd82
query I rowsort
SELECT col0 * + ( - col2 ) FROM tab1
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6284
SELECT - col0 DIV + col1 + tab0.col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-6284
SELECT - col0 / + col1 + tab0.col0 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL + col2 + - col1 + - col1 AS col1 FROM tab0 AS cor0
----
-100
-139
-193
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 - col2 col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT 69 + col1 FROM tab2 cor0
----
100
128
86
query I rowsort
SELECT ALL + 8 * - col2 + col1 FROM tab0 AS cor0
----
-178
-565
89
query I rowsort
SELECT col0 + col0 * col0 * col2 AS col2 FROM tab2 AS cor0
----
1330
158262
237237
query I rowsort
SELECT ALL + col0 * col1 + cor0.col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL + + col1 + col0 * - col2 AS col2 FROM tab0 cor0
----
-706
-7207
62
query I rowsort
SELECT ALL col2 * col2 + + col0 * - col1 * - col1 FROM tab2 AS cor0
----
24275
272194
7456
query I rowsort
SELECT ALL + + col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT col1 + - cor0.col2 * + col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT - 92 * col1 + + col2 AS col2 FROM tab2 AS cor0
----
-1526
-2825
-5402
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6296
SELECT ALL + CAST( + 2 AS SIGNED ) * 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-6296
SELECT ALL + CAST ( + 2 AS INTEGER ) * col2 col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT DISTINCT ( cor0.col0 ) * + col2 + + col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
15360
324
7296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 col2 FROM tab2 AS cor0
----
36
query I rowsort
SELECT + 83 * - cor0.col1 + col0 FROM tab0 cor0
----
-7114
-7464
-8016
query I rowsort
SELECT - 46 + - col2 FROM tab1 AS cor0
----
-100
-103
-142
onlyif mysql # use DIV operator for integer division
query I rowsort label-6301
SELECT DISTINCT - CAST( 19 AS SIGNED ) * col1 DIV col1 FROM tab0 AS cor0
----
-19
skipif mysql # not compatible
query I rowsort label-6301
SELECT DISTINCT - CAST ( 19 AS INTEGER ) * col1 / col1 FROM tab0 AS cor0
----
-19
query I rowsort
SELECT + + 38 + 29 FROM tab2 cor0
----
67
67
67
query I rowsort
SELECT DISTINCT 91 + + 47 FROM tab1
----
138
query I rowsort
SELECT DISTINCT + 21 + col2 FROM tab2
----
47
48
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-6305
SELECT ALL 47 DIV col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
13
78
79
skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL 47 / col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
13
78
79
query I rowsort
SELECT - 46 + + col2 FROM tab2 AS cor0
----
-19
-20
-8
query I rowsort
SELECT ALL cor0.col1 * - col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6308
SELECT - - col0 + + col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-6308
SELECT - - col0 + + col1 / + col2 AS col0 FROM tab0 AS cor0
----
132
26
90
query I rowsort
SELECT DISTINCT + ( - col1 ) + col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) * - col2 + col2 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT ALL - cor0.col2 - - col0 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT 87 * - col2 FROM tab1 cor0
----
-4698
-4959
-8352
query I rowsort
SELECT ALL - col2 + - col0 + col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL + 67 + + col1 FROM tab2
----
126
84
98
query I rowsort
SELECT DISTINCT 6 + + col0 AS col0 FROM tab1
----
70
86
9
query I rowsort
SELECT ALL col1 - + col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - col0 * col1 + cor0.col0 * - col0 AS col0 FROM tab2 cor0
----
-10686
-266
-7584
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1 + - col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6319
SELECT + col1 DIV col2 + - tab0.col2 FROM tab0
----
-31
-81
96
skipif mysql # not compatible
query I rowsort label-6319
SELECT + col1 / col2 + - tab0.col2 FROM tab0
----
-31
-81
96
query I rowsort
SELECT col1 + - col2 * - tab0.col2 FROM tab0
----
1175
6815
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-6321
SELECT + col1 + - col1 DIV + col2 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-6321
SELECT + col1 + - col1 / + col2 FROM tab1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-6322
SELECT ALL col1 DIV - col1 + + col0 AS col1 FROM tab2
----
6
77
78
skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL col1 / - col1 + + col0 AS col1 FROM tab2
----
6
77
78
query I rowsort
SELECT DISTINCT - tab2.col2 + + col1 * - col0 AS col0 FROM tab2
----
-1381
-244
-4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col0 FROM tab2, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL - 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 DISTINCT + col2 + col2 col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL col0 + col0 * + col0 + col0 AS col1 FROM tab0 AS cor0
----
1295
624
8099
query I rowsort
SELECT col0 + + col0 * + col2 FROM tab0
----
70
7387
816
query I rowsort
SELECT DISTINCT - col0 * col2 + col2 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT col1 * col0 + + col1 + col1 FROM tab0
----
2236
3589
8281
query I rowsort
SELECT + col0 + + col0 - + col2 FROM tab1 AS cor0
----
-48
64
71
query I rowsort
SELECT + + col0 + cor0.col1 * col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT tab0.col1 - tab0.col0 * - col0 * col1 AS col0 FROM tab0
----
118922
49622
720902
onlyif mysql # use DIV operator for integer division
query I rowsort label-6334
SELECT col0 * tab1.col0 DIV col2 FROM tab1
----
0
66
71
skipif mysql # not compatible
query I rowsort label-6334
SELECT col0 * tab1.col0 / col2 FROM tab1
----
0
66
71
query I rowsort
SELECT - col0 + col1 * + col2 FROM tab0
----
2814
62
7373
query I rowsort
SELECT ALL + col0 + col0 * col0 * - col1 FROM tab1
----
-231
-40896
-83120
onlyif mysql # use DIV operator for integer division
query I rowsort label-6337
SELECT DISTINCT - - col0 + + col0 DIV col2 FROM tab1 cor0
----
3
65
80
skipif mysql # not compatible
query I rowsort label-6337
SELECT DISTINCT - - col0 + + col0 / col2 FROM tab1 cor0
----
3
65
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * col1 col0 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-6339
SELECT - - col1 DIV + col0 AS col2 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-6339
SELECT - - col1 / + col0 AS col2 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT DISTINCT + col0 + + col2 * + col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT cor0.col1 * + col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + col2 + cor0.col1 * - col1 AS col2 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT + col0 * - ( col0 * col1 ) AS col1 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT + col1 + 65 AS col2 FROM tab0 AS cor0
----
151
156
162
query I rowsort
SELECT + col1 + cor0.col2 * col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT + col2 + - col0 * - col0 FROM tab1 AS cor0
----
4153
63
6496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * 24 col0 FROM tab0 cor0
----
-1968
-24
-792
query I rowsort
SELECT + - col2 + + ( col2 ) AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + ( ( cor0.col1 ) ) FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 71 ) * col1 col0 FROM tab1 cor0
----
1846
710
923
query I rowsort
SELECT + col0 * + col2 * - 63 FROM tab2
----
-11907
-127764
-189126
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col1 col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT tab0.col1 * col0 * - 95 FROM tab0
----
-196080
-322525
-769405
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col2 * + col2 col1 FROM tab1 AS cor0
----
2919
3313
9296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL + 30 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT - + 11 * - col1 AS col2 FROM tab2 AS cor0
----
187
341
649
query I rowsort
SELECT 36 + + col0 FROM tab2 cor0
----
114
115
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-6359
SELECT - - col2 DIV - col2 - + col1 * 15 FROM tab0 AS cor0
----
-1291
-1366
-1456
skipif mysql # not compatible
query I rowsort label-6359
SELECT - - col2 / - col2 - + col1 * 15 FROM tab0 AS cor0
----
-1291
-1366
-1456
query I rowsort
SELECT + - ( + col0 ) + 64 FROM tab2 AS cor0
----
-14
-15
57
query I rowsort
SELECT 12 AS col0 FROM tab0 AS cor0
----
12
12
12
query I rowsort
SELECT + 45 * col1 FROM tab0 AS cor0
----
3870
4095
4365
query I rowsort
SELECT DISTINCT - 91 AS col2 FROM tab1, tab1 AS cor0
----
-91
query I rowsort
SELECT + 54 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col0 col0 FROM tab1
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 col1 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-6367
SELECT DISTINCT + tab1.col0 DIV col1 + - 34 AS col2 FROM tab1
----
-28
-34
skipif mysql # not compatible
query I rowsort label-6367
SELECT DISTINCT + tab1.col0 / col1 + - 34 AS col2 FROM tab1
----
-28
-34
query I rowsort
SELECT + cor0.col0 - col0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * col2 + ( col0 * + col0 ) FROM tab2 AS cor0
----
6887
7618
886
query I rowsort
SELECT ALL - col2 + col2 * col0 FROM tab0 AS cor0
----
34
7216
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-6371
SELECT ALL + col1 * col2 DIV + col0 FROM tab1 AS cor0
----
15
468
8
skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL + col1 * col2 / + col0 FROM tab1 AS cor0
----
15
468
8
query I rowsort
SELECT - col0 * 72 + col0 FROM tab0 AS cor0
----
-1704
-2485
-6319
query I rowsort
SELECT + col1 * - col0 - + col0 * col2 AS col2 FROM tab0 AS cor0
----
-15397
-2856
-3430
query I rowsort
SELECT ALL - col0 + - ( + 71 ) FROM tab2 AS cor0
----
-149
-150
-78
query I rowsort
SELECT col2 * - col1 + + 13 FROM tab1 AS cor0
----
-1235
-1391
-557
query I rowsort
SELECT ALL - col2 * - 28 FROM tab1 cor0
----
1512
1596
2688
query I rowsort
SELECT DISTINCT - cor0.col0 * ( col1 ) * col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6378
SELECT col0 * + CAST( NULL AS SIGNED ) - + 97 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6378
SELECT col0 * + CAST ( NULL AS INTEGER ) - + 97 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 97 * + tab1.col0 AS col0 FROM tab1
----
291
6208
7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - ( col2 ) col0 FROM tab1
----
0
0
0
query I rowsort
SELECT + col2 + 29 - cor0.col0 AS col2 FROM tab1 AS cor0
----
22
45
80
query I rowsort
SELECT + col0 - col1 * + 26 FROM tab0 AS cor0
----
-2212
-2277
-2487
query I rowsort
SELECT - col1 * - col0 + col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL + - col2 * - cor0.col1 + - cor0.col1 * - col1 FROM tab0 cor0
----
10234
15743
9506
query I rowsort
SELECT DISTINCT col0 - 27 * col1 * + col2 AS col1 FROM tab1 AS cor0
----
-15326
-33616
-37905
onlyif mysql # use DIV operator for integer division
query I rowsort label-6386
SELECT + col1 DIV 91 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6386
SELECT + col1 / 91 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - cor0.col2 * - col0 + col0 - + col1 AS col0 FROM tab2 AS cor0
----
165
2047
3064
query I rowsort
SELECT DISTINCT col0 * 17 AS col1 FROM tab2
----
119
1326
1343
query I rowsort
SELECT - col2 * cor0.col0 + - col2 AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT + ( + col1 ) + + tab0.col1 AS col2 FROM tab0
----
172
182
194
query I rowsort
SELECT ALL + - col2 * col2 * cor0.col1 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT ALL col1 + col2 * col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT - 66 + cor0.col2 * + cor0.col1 AS col0 FROM tab1 cor0
----
1182
1338
504
query I rowsort
SELECT ALL + col1 * cor0.col1 AS col2 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT 38 + 2 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
query I rowsort
SELECT - 52 FROM tab2, tab2 cor0 CROSS JOIN tab1
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74
query I rowsort
SELECT ALL ( - 59 ) + + col2 FROM tab1
----
-2
-5
37
query I rowsort
SELECT - + 12 + col1 + col0 AS col2 FROM tab0 cor0
----
120
168
98
query I rowsort
SELECT ALL - + ( 40 ) + col2 FROM tab1 AS cor0
----
14
17
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-6400
SELECT + 7 DIV - ( col0 ) + - col0 + col2 AS col1 FROM tab0 cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-6400
SELECT + 7 / - ( col0 ) + - col0 + col2 AS col1 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT + 99 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-5346
-5643
-9504
query I rowsort
SELECT + ( - 17 ) * col0 FROM tab2 AS cor0
----
-119
-1326
-1343
query I rowsort
SELECT ALL + col2 + col1 * ( - 35 ) FROM tab1 cor0
----
-293
-359
-856
query I rowsort
SELECT - + cor0.col1 * col2 * + ( 13 ) AS col1 FROM tab1 AS cor0
----
-16224
-18252
-7410
query I rowsort
SELECT DISTINCT - 45 + - col1 FROM tab2 AS cor0
----
-104
-62
-76
query I rowsort
SELECT - col2 + col0 * ( cor0.col2 + col2 ) AS col2 FROM tab0 AS cor0
----
14514
1551
69
query I rowsort
SELECT - col0 + tab1.col1 AS col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT DISTINCT 37 * col0 FROM tab0
----
1295
3293
888
onlyif mysql # use DIV operator for integer division
query I rowsort label-6409
SELECT DISTINCT - 41 DIV + col2 FROM tab0
----
-1
-41
0
skipif mysql # not compatible
query I rowsort label-6409
SELECT DISTINCT - 41 / + col2 FROM tab0
----
-1
-41
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6410
SELECT ALL - col1 DIV + cor0.col0 AS col2 FROM tab1 cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-6410
SELECT ALL - col1 / + cor0.col0 AS col2 FROM tab1 cor0
----
-8
0
0
query I rowsort
SELECT DISTINCT - col1 + + col1 * 5 FROM tab2 AS cor0
----
124
236
68
query I rowsort
SELECT DISTINCT 46 * + col0 + cor0.col2 FROM tab1 AS cor0
----
192
3001
3776
query I rowsort
SELECT col0 + col1 - - 47 FROM tab0
----
157
179
227
query I rowsort
SELECT col2 * 31 + 88 * - tab1.col1 FROM tab1
----
-614
1832
887
query I rowsort
SELECT + col2 * - col2 + col2 AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT - col1 + 64 AS col0 FROM tab1 cor0
----
38
51
54
query I rowsort
SELECT ALL col1 + col1 * col1 + + 9 FROM tab0 AS cor0
----
7491
8381
9515
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 col0 FROM tab2 cor0
----
-25
-25
-25
query I rowsort
SELECT DISTINCT 26 AS col2 FROM tab1 AS cor0
----
26
query I rowsort
SELECT ALL - - 39 + - ( col2 ) + col2 FROM tab2 AS cor0
----
39
39
39
query I rowsort
SELECT DISTINCT col0 * col0 + - col1 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT - cor0.col0 + - col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL + - cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - col2 + + col1 + col1 FROM tab2 AS cor0
----
-4
35
92
query I rowsort
SELECT ALL - + 16 * - col1 + col2 + - col2 AS col0 FROM tab0 AS cor0
----
1376
1456
1552
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + ( - col1 ) AS REAL ) + CAST ( + col1 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT + col0 * col1 + + 31 FROM tab0
----
2095
3426
8130
query I rowsort
SELECT col1 + 0 AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT tab0.col1 * col1 * + col1 AS col2 FROM tab0
----
636056
753571
912673
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( + col2 ) + - col2 col0 FROM tab0
----
24
35
89
query I rowsort
SELECT + col1 + tab2.col2 * col0 FROM tab2
----
2087
220
3019
query I rowsort
SELECT ALL 61 AS col1 FROM tab0 cor0
----
61
61
61
query I rowsort
SELECT DISTINCT + - col2 * 55 + - col1 FROM tab0 AS cor0
----
-152
-1901
-4601
query I rowsort
SELECT tab0.col2 * 4 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f05afd9473a849c2dc980325118b8c8e
query I rowsort
SELECT 63 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 29cdb8d01f1c3eb072511674b1c6d5fd
query I rowsort
SELECT DISTINCT - ( - col1 ) * + col0 + + col0 * col0 * col2 AS col0 FROM tab1 AS cor0
----
234112
564
615440
query I rowsort
SELECT - ( - 11 ) + - col1 AS col1 FROM tab1 AS cor0
----
-15
-2
1
query I rowsort
SELECT DISTINCT + + 57 * + col2 + col1 FROM tab2 cor0
----
1541
1570
2183
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 53 col2 FROM tab2 AS cor0
----
-53
-53
-53
query I rowsort
SELECT ALL + cor0.col2 + 33 FROM tab2 AS cor0
----
59
60
71
query I rowsort
SELECT - 14 + col0 + cor0.col1 * 30 AS col0 FROM tab2 AS cor0
----
1834
575
923
query I rowsort
SELECT - + col2 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-6443
SELECT + col2 * + col0 + tab0.col1 DIV col2 + col1 * tab0.col0 AS col0 FROM tab0
----
15398
2858
3527
skipif mysql # not compatible
query I rowsort label-6443
SELECT + col2 * + col0 + tab0.col1 / col2 + col1 * tab0.col0 AS col0 FROM tab0
----
15398
2858
3527
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6444
SELECT + 95 + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6444
SELECT + 95 + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6445
SELECT + - 42 + - col2 * cor0.col2 DIV - col0 FROM tab2 AS cor0
----
-24
-34
62
skipif mysql # not compatible
query I rowsort label-6445
SELECT + - 42 + - col2 * cor0.col2 / - col0 FROM tab2 AS cor0
----
-24
-34
62
query I rowsort
SELECT DISTINCT 12 * + tab1.col1 AS col0 FROM tab1, tab0 cor0
----
120
156
312
query I rowsort
SELECT + + col1 * 74 FROM tab2 AS cor0
----
1258
2294
4366
query I rowsort
SELECT + col1 * + ( col2 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + 72 AS col0 FROM tab1
----
72
query I rowsort
SELECT ALL - col2 * 99 AS col0 FROM tab1 cor0
----
-5346
-5643
-9504
query I rowsort
SELECT + col0 + col2 * - col1 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL + col2 + col2 * ( + col2 ) FROM tab2 AS cor0
----
1482
702
756
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6453
SELECT + col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6453
SELECT + col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + col0 * - col0 * - 59 AS col2 FROM tab0
----
34017
467421
72276
onlyif mysql # use DIV operator for integer division
query I rowsort label-6455
SELECT ALL + col2 DIV col0 col0 FROM tab0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6455
SELECT ALL + col2 / col0 col0 FROM tab0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6456
SELECT ALL + + col1 + - ( + cor0.col1 ) DIV col1 AS col2 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL + + col1 + - ( + cor0.col1 ) / col1 AS col2 FROM tab1 AS cor0
----
12
25
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6457
SELECT DISTINCT + col2 * CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT + col2 * CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + col0 + + ( 96 ) FROM tab1 cor0
----
160
176
99
query I rowsort
SELECT ALL - + col1 + col2 * cor0.col0 FROM tab2 AS cor0
----
158
1969
2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-6460
SELECT DISTINCT - - col0 DIV col1 - col0 col1 FROM tab2 AS cor0
----
-7
-75
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT - - col0 / col1 - col0 col1 FROM tab2 AS cor0
----
-7
-75
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-6461
SELECT - col1 + cor0.col2 DIV + col1 FROM tab1 AS cor0
----
-24
-5
-6
skipif mysql # not compatible
query I rowsort label-6461
SELECT - col1 + cor0.col2 / + col1 FROM tab1 AS cor0
----
-24
-5
-6
query I rowsort
SELECT DISTINCT - 90 AS col2 FROM tab2, tab2 cor0
----
-90
query I rowsort
SELECT + tab2.col0 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ( + col2 ) - + col2 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + + 97 FROM tab1 cor0
----
97
97
97
query I rowsort
SELECT + col1 + - 60 AS col1 FROM tab0 AS cor0
----
26
31
37
query I rowsort
SELECT - col0 * - ( + col1 ) + col1 FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6468
SELECT ALL col0 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL col0 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6469
SELECT - col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6469
SELECT - col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6470
SELECT - - col2 DIV - col2 + col1 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-6470
SELECT - - col2 / - col2 + col1 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT DISTINCT - - col1 + - 80 * - col1 AS col1 FROM tab1 AS cor0
----
1053
2106
810
query I rowsort
SELECT DISTINCT col1 + + col1 + tab0.col1 AS col0 FROM tab0
----
258
273
291
query I rowsort
SELECT + - col2 + + 92 AS col1 FROM tab1 cor0
----
-4
35
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6474
SELECT - col0 DIV tab0.col1 + - col2 + - col1 FROM tab0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort label-6474
SELECT - col0 / tab0.col1 + - col2 + - col1 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col1 AND ( + col0 * + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6476
SELECT DISTINCT - col0 - - tab0.col2 DIV + col1 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-6476
SELECT DISTINCT - col0 - - tab0.col2 / + col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT tab1.col2 - col2 * - col0 FROM tab1
----
216
3705
7776
query I rowsort
SELECT - col1 * tab2.col1 + + col1 + - col2 * + col2 * + col1 FROM tab2
----
-23529
-24820
-43306
query I rowsort
SELECT col1 + col1 - tab2.col0 FROM tab2
----
-45
40
55
query I rowsort
SELECT col1 FROM tab1 WHERE col1 IN ( + col0 )
----
query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - tab2.col2 * + col2 )
----
query I rowsort
SELECT ALL - tab1.col0 * - col0 + col1 AS col0 FROM tab1
----
35
4106
6413
query I rowsort
SELECT - col0 + + col1 * + 30 AS col2 FROM tab2 AS cor0
----
1692
431
923
query I rowsort
SELECT DISTINCT 57 * - col1 * + 73 FROM tab1 AS cor0
----
-108186
-41610
-54093
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b
query I rowsort
SELECT ALL + ( - cor0.col2 ) * 85 * col0 AS col0 FROM tab2 AS cor0
----
-16065
-172380
-255170
query I rowsort
SELECT DISTINCT - 83 + col0 AS col0 FROM tab2 AS cor0
----
-4
-5
-76
query I rowsort
SELECT - 6 AS col2 FROM tab0
----
-6
-6
-6
query I rowsort
SELECT ( 35 ) * cor0.col1 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 04fa8aa97a6e2e14eade6aa358239d6b
query I rowsort
SELECT DISTINCT + - col1 + + ( 45 ) FROM tab0 AS cor0
----
-41
-46
-52
query I rowsort
SELECT ALL + + cor0.col1 * col2 + col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT - + ( 74 ) * - cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d7efb2e82d6773b176f2308875ba5b65
query I rowsort
SELECT + cor0.col1 * 7 AS col0 FROM tab1 AS cor0
----
182
70
91
query I rowsort
SELECT col1 * - col2 + col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT 36 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c
query I rowsort
SELECT - ( - 84 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT ALL + col1 + col1 * col0 AS col2 FROM tab1
----
104
1053
650
query I rowsort
SELECT ALL col2 * + col1 + - col0 AS col0 FROM tab1
----
1168
1401
506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6499
SELECT CAST( NULL AS SIGNED ) * col0 * col1 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6499
SELECT CAST ( NULL AS INTEGER ) * col0 * col1 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL tab0.col2 * - col0 AS col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - 66 + col2 * + col0 FROM tab0
----
-31
7232
726
query I rowsort
SELECT + col0 * 9 FROM tab1 AS cor0
----
27
576
720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 + - 85 col1 FROM tab0 cor0
----
12
2753
7377
query I rowsort
SELECT DISTINCT col0 + 16 AS col2 FROM tab0 AS cor0
----
105
40
51
query I rowsort
SELECT DISTINCT - + col0 * - ( ( col2 ) * - col0 ) FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT DISTINCT col2 * 93 - col2 FROM tab2 AS cor0
----
2392
2484
3496
query I rowsort
SELECT + col2 * - col1 + + col2 * col2 FROM tab0 AS cor0
----
-1749
-738
-96
query I rowsort
SELECT DISTINCT + - cor0.col2 * + col1 + col0 * - col1 FROM tab1 AS cor0
----
-1210
-1482
-2288
query I rowsort
SELECT DISTINCT - + col2 + col0 * col2 AS col1 FROM tab0 cor0
----
34
7216
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-6510
SELECT + + col2 + ( - col2 ) DIV col2 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-6510
SELECT + + col2 + ( - col2 ) / col2 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT col2 + - col0 * 50 AS col1 FROM tab0 AS cor0
----
-1167
-1749
-4368
onlyif mysql # use DIV operator for integer division
query I rowsort label-6512
SELECT DISTINCT - col0 DIV col1 + - 95 AS col2 FROM tab1 AS cor0
----
-101
-95
skipif mysql # not compatible
query I rowsort label-6512
SELECT DISTINCT - col0 / col1 + - 95 AS col2 FROM tab1 AS cor0
----
-101
-95
query I rowsort
SELECT ALL - - cor0.col2 * - col2 + + col2 - - col1 AS col2 FROM tab2 AS cor0
----
-1389
-591
-671
query I rowsort
SELECT - 52 + - col2 FROM tab2
----
-78
-79
-90
query I rowsort
SELECT - col2 * col0 - col2 AS col0 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT col2 + + col0 * - ( - 54 ) + col2 * - col1 AS col2 FROM tab2
----
-432
2704
3658
query I rowsort
SELECT DISTINCT + col2 * + col2 + - col2 * col0 AS col0 FROM tab2
----
-1352
-1558
540
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6518
SELECT + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-6518
SELECT + + CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL tab0.col2 + col2 * + col0 * col1 AS col0 FROM tab0
----
3396
664200
68145
query I rowsort
SELECT - 27 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6521
SELECT ALL - col0 / + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL - col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col1 * ( - col2 ) + col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT tab0.col0 + 36 * col1 FROM tab0
----
3120
3365
3527
query I rowsort
SELECT 98 * col2 AS col1 FROM tab2 AS cor0
----
2548
2646
3724
query I rowsort
SELECT ALL col1 * - col2 * - col2 FROM tab1 cor0
----
119808
32490
75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-6526
SELECT DISTINCT CAST( col2 AS SIGNED ) DIV col0 FROM tab2
----
0
3
skipif mysql # not compatible
query I rowsort label-6526
SELECT DISTINCT CAST ( col2 AS INTEGER ) / col0 FROM tab2
----
0
3
query I rowsort
SELECT - 65 * col2 AS col2 FROM tab1 cor0
----
-3510
-3705
-6240
query I rowsort
SELECT + col1 - col2 AS col1 FROM tab0 AS cor0
----
53
9
96
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab0 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 90e25bbdedfdeba1119139dab203aeea
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6530
SELECT ALL CAST( NULL AS SIGNED ) * + cor1.col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL CAST ( NULL AS INTEGER ) * + cor1.col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + ( 17 ) + - cor1.col0 * 45 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 39b6f8ff9badd34e06db25af6d28d4d4
query I rowsort
SELECT DISTINCT - - cor0.col2 * + col2 + cor0.col0 AS col0 FROM tab2 AS cor0
----
1523
736
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-6533
SELECT ALL 57 DIV cor0.col1 + + col1 + + col2 AS col2 FROM tab2 AS cor0
----
58
59
85
skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL 57 / cor0.col1 + + col1 + + col2 AS col2 FROM tab2 AS cor0
----
58
59
85
query I rowsort
SELECT ALL + 24 + + col2 FROM tab1 AS cor0
----
120
78
81
query I rowsort
SELECT + + col2 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 col1 FROM tab2
----
97
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab0, tab0 cor1
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0
query I rowsort
SELECT + ( + col1 ) + col2 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + col0 + - 87 AS col0 FROM tab2 AS cor0
----
-8
-80
-9
query I rowsort
SELECT cor0.col1 * col1 + col1 FROM tab1 cor0
----
110
182
702
query I rowsort
SELECT DISTINCT - col1 * col0 + - 77 FROM tab1 AS cor0
----
-1117
-155
-717
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6542
SELECT + cor0.col2 - CAST( NULL AS SIGNED ) * 21 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6542
SELECT + cor0.col2 - CAST ( NULL AS INTEGER ) * 21 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col1 + + 13 FROM tab2 AS cor0
----
30
44
72
query I rowsort
SELECT + cor0.col0 + - ( 25 ) FROM tab1 cor0
----
-22
39
55
query I rowsort
SELECT DISTINCT - + 34 * - 83 + col0 AS col2 FROM tab1 AS cor0
----
2825
2886
2902
query I rowsort
SELECT ALL ( col2 ) + + col1 * col1 * col2 AS col2 FROM tab0 cor0
----
244101
679124
9410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 60 + col1 col2 FROM tab2 AS cor0
----
451
4739
4757
query I rowsort
SELECT ALL + col2 + + 47 AS col1 FROM tab1 AS cor0
----
101
104
143
query I rowsort
SELECT DISTINCT 5 AS col2 FROM tab0
----
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6550
SELECT DISTINCT CAST( - 22 AS SIGNED ) AS col1 FROM tab2
----
-22
skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT CAST ( - 22 AS INTEGER ) AS col1 FROM tab2
----
-22
query I rowsort
SELECT + col0 + col0 * + cor0.col0 * col2 FROM tab0 AS cor0
----
1260
19032
649611
query I rowsort
SELECT cor0.col2 + - col0 AS col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL + - ( col2 ) + + cor0.col0 AS col0 FROM tab0 cor0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6554
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * + cor0.col0 - 37 * ( col0 ) AS col0 FROM tab2 AS cor0
----
-1580
-42
1716
skipif mysql # not compatible
query I rowsort label-6554
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * + cor0.col0 - 37 * ( col0 ) AS col0 FROM tab2 AS cor0
----
-1580
-42
1716
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col0 AS REAL ) * col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6556
SELECT DISTINCT 80 * + col2 + + col2 / + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT 80 * + col2 + + col2 / + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
query I rowsort
SELECT + col1 + 49 AS col2 FROM tab1 AS cor0
----
59
62
75
query I rowsort
SELECT - col2 * col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-6559
SELECT - - col0 + + col2 DIV + col1 FROM tab2 AS cor0
----
7
78
81
skipif mysql # not compatible
query I rowsort label-6559
SELECT - - col0 + + col2 / + col1 FROM tab2 AS cor0
----
7
78
81
query I rowsort
SELECT ALL - ( 74 * - col2 ) FROM tab1
----
3996
4218
7104
query I rowsort
SELECT ALL + 79 AS col2 FROM tab1
----
79
79
79
query I rowsort
SELECT - 94 * - col2 AS col2 FROM tab2 AS cor0
----
2444
2538
3572
query I rowsort
SELECT - col0 * - 73 FROM tab0 AS cor0
----
1752
2555
6497
query I rowsort
SELECT ALL + + 61 * - col1 AS col0 FROM tab0 AS cor0
----
-5246
-5551
-5917
query I rowsort
SELECT col0 * col2 * col2 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT - + 61 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c91d7b51e91f33d302e697913fb438b6
query I rowsort
SELECT + ( + col0 ) - - col1 FROM tab2
----
137
38
96
query I rowsort
SELECT 43 * - 17 FROM tab0 cor0
----
-731
-731
-731
query I rowsort
SELECT + col0 * 42 FROM tab0 cor0
----
1008
1470
3738
query I rowsort
SELECT DISTINCT - 74 AS col1 FROM tab0
----
-74
query I rowsort
SELECT + 26 - 10 * col2 AS col2 FROM tab2
----
-234
-244
-354
query I rowsort
SELECT ALL + col0 * + col1 * col2 AS col1 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT - cor0.col2 + 5 * 44 * - col1 FROM tab2 AS cor0
----
-13006
-3778
-6847
query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab0, tab1, tab0 cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + - cor0.col2 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to c1eca5ea8dadf5efbc400ae6094b52e3
query I rowsort
SELECT + + cor0.col0 * 47 FROM tab0 AS cor0
----
1128
1645
4183
query I rowsort
SELECT + col0 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT - col1 * 40 FROM tab2 AS cor0
----
-1240
-2360
-680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col0 * - 82 col2 FROM tab0 AS cor0
----
-100450
-47232
-649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-6580
SELECT DISTINCT col1 DIV - 12 + + col0 AS col1 FROM tab0
----
17
27
82
skipif mysql # not compatible
query I rowsort label-6580
SELECT DISTINCT col1 / - 12 + + col0 AS col1 FROM tab0
----
17
27
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6581
SELECT ALL col0 * CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6581
SELECT ALL col0 * CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + ( col2 ) * tab1.col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT 12 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
onlyif mysql # use DIV operator for integer division
query I rowsort label-6584
SELECT DISTINCT col0 DIV + col0 + 58 col0 FROM tab1
----
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6584
SELECT DISTINCT col0 / + col0 + 58 col0 FROM tab1
----
59
query I rowsort
SELECT + col1 + 34 AS col1 FROM tab2
----
51
65
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( col0 * + col1 ) col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT - col1 + 28 FROM tab1 AS cor0
----
15
18
2
query I rowsort
SELECT ALL - col2 * + 42 - col2 * - col1 AS col1 FROM tab0 AS cor0
----
1452
4018
55
query I rowsort
SELECT ALL + - col1 + 68 AS col1 FROM tab1 AS cor0
----
42
55
58
query I rowsort
SELECT DISTINCT + 6 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-20
-4
-7
query I rowsort
SELECT DISTINCT - col2 * + col0 + + col0 AS col1 FROM tab2 cor0
----
-182
-1950
-2923
query I rowsort
SELECT - col0 * 38 AS col1 FROM tab1 AS cor0
----
-114
-2432
-3040
query I rowsort
SELECT ALL - ( col1 ) + col1 AS col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + - ( 53 ) + - col1 FROM tab2 AS cor0
----
-112
-70
-84
query I rowsort
SELECT - col2 * + 97 FROM tab2
----
-2522
-2619
-3686
query I rowsort
SELECT - ( - 14 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT DISTINCT col1 + 19 * + cor0.col1 FROM tab1 AS cor0
----
200
260
520
query I rowsort
SELECT col1 * 50 FROM tab2 AS cor0
----
1550
2950
850
query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col0 + + col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL + col0 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - + 87 FROM tab0 AS cor0
----
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 4 * col0 col0 FROM tab1 AS cor0
----
-14
246
307
query I rowsort
SELECT - 62 AS col1 FROM tab0 AS cor0
----
-62
-62
-62
query I rowsort
SELECT - 47 - + cor0.col1 FROM tab0 AS cor0
----
-133
-138
-144
query I rowsort
SELECT col2 + col1 * - col2 AS col0 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT - - col0 + + col1 * - 14 AS col1 FROM tab0 cor0
----
-1180
-1185
-1323
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * - col0 col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT col1 * + col2 + 10 FROM tab1 AS cor0
----
1258
1414
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-6609
SELECT - 21 DIV - col2 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6609
SELECT - 21 / - col2 AS col1 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 21 col1 FROM tab2
----
-21
query I rowsort
SELECT ALL col1 * 24 FROM tab0
----
2064
2184
2328
query I rowsort
SELECT - + 19 + + col0 FROM tab1 AS cor0
----
-16
45
61
query I rowsort
SELECT col1 * - cor0.col1 - col2 AS col1 FROM tab0 AS cor0
----
-7429
-8363
-9410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 + col1 col2 FROM tab2 AS cor0
----
102
60
74
query I rowsort
SELECT DISTINCT - + col0 * - col1 - + col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ALL + cor0.col1 - + col2 AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - 28 + + col1 FROM tab1 cor0
----
-15
-18
-2
query I rowsort
SELECT DISTINCT - 41 * col0 + ( + col2 * - col1 ) AS col0 FROM tab1 AS cor0
----
-1527
-3194
-4528
onlyif mysql # use DIV operator for integer division
query I rowsort label-6619
SELECT DISTINCT + + 80 * col1 + 0 DIV col0 + + col1 AS col1 FROM tab0 AS cor0
----
6966
7371
7857
skipif mysql # not compatible
query I rowsort label-6619
SELECT DISTINCT + + 80 * col1 + 0 / col0 + + col1 AS col1 FROM tab0 AS cor0
----
6966
7371
7857
query I rowsort
SELECT ALL - col2 + ( - col0 * col0 ) AS col0 FROM tab1 AS cor0
----
-4153
-63
-6496
query I rowsort
SELECT DISTINCT - cor0.col1 + + 86 AS col0 FROM tab0 cor0
----
-11
-5
0
query I rowsort
SELECT - col2 * - col1 + + col1 + + col1 * - cor0.col2 * - 54 FROM tab1 AS cor0
----
31360
68653
77246
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 17 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4
query I rowsort
SELECT ALL - cor0.col1 * col2 + - col0 + col0 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL col2 * + col1 + - col1 * col1 FROM tab1
----
1079
470
728
query I rowsort
SELECT + - 23 * + col1 FROM tab0 AS cor0
----
-1978
-2093
-2231
query I rowsort
SELECT DISTINCT + + col0 - cor0.col0 * + col0 FROM tab1 AS cor0
----
-4032
-6
-6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6628
SELECT ALL - + CAST( NULL AS SIGNED ) + col0 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL - + CAST ( NULL AS INTEGER ) + col0 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 95 AS col0 FROM tab1 cor0
----
95
95
95
query I rowsort
SELECT DISTINCT + + 14 * ( - col0 ) + + col0 FROM tab0 AS cor0
----
-1157
-312
-455
query I rowsort
SELECT DISTINCT - cor0.col0 * col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL ( 10 ) + col0 AS col2 FROM tab2 AS cor0
----
17
88
89
query I rowsort
SELECT - col2 * 12 AS col0 FROM tab0 AS cor0
----
-12
-396
-984
onlyif mysql # use DIV operator for integer division
query I rowsort label-6634
SELECT DISTINCT - + col2 * col2 - + col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
-2917
-3250
-9217
skipif mysql # not compatible
query I rowsort label-6634
SELECT DISTINCT - + col2 * col2 - + col0 / + col0 AS col1 FROM tab1 AS cor0
----
-2917
-3250
-9217
query I rowsort
SELECT ALL 43 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT + col0 * ( cor0.col0 ) + col1 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT ALL - + 62 + - 74 AS col1 FROM tab0 AS cor0
----
-136
-136
-136
query I rowsort
SELECT DISTINCT 45 FROM tab0 cor0
----
45
query I rowsort
SELECT - 78 * col2 AS col2 FROM tab0 AS cor0
----
-2574
-6396
-78
query I rowsort
SELECT DISTINCT + + 18 * + col0 * col1 AS col0 FROM tab0 AS cor0
----
145782
37152
61110
query I rowsort
SELECT 45 + col0 * + col0 AS col1 FROM tab1 AS cor0
----
4141
54
6445
query I rowsort
SELECT - + col0 + - cor0.col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT + + col2 * 40 AS col0 FROM tab1 cor0
----
2160
2280
3840
query I rowsort
SELECT ALL col1 - + 88 AS col0 FROM tab0 AS cor0
----
-2
3
9
query I rowsort
SELECT DISTINCT + + col1 * 30 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
19200
2340
31200
query I rowsort
SELECT ALL + - ( 93 ) * col1 FROM tab0 AS cor0
----
-7998
-8463
-9021
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6647
SELECT DISTINCT + CAST( col0 AS SIGNED ) * col2 + + col0 FROM tab1 AS cor0
----
165
3712
7760
skipif mysql # not compatible
query I rowsort label-6647
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * col2 + + col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL col1 + col0 - - col1 FROM tab2 AS cor0
----
113
196
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6649
SELECT ALL CAST( col2 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL CAST ( col2 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col2 * - 81 AS col0 FROM tab2 AS cor0
----
2106
2187
3078
query I rowsort
SELECT DISTINCT 93 + col0 * + col1 FROM tab0 AS cor0
----
2157
3488
8192
query I rowsort
SELECT DISTINCT - - 75 * col1 FROM tab0 AS cor0
----
6450
6825
7275
query I rowsort
SELECT - col2 * col2 + ( cor0.col0 ) FROM tab2 AS cor0
----
-1365
-598
-722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 * col2 + cor0.col1 * cor0.col1 + + col2 * 20 col0 FROM tab1 AS cor0
----
-117719
-31250
-74060
query I rowsort
SELECT DISTINCT col2 - 46 FROM tab0
----
-13
-45
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) + + col0 col2 FROM tab2
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6657
SELECT DISTINCT - - col2 DIV - cor0.col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6657
SELECT DISTINCT - - col2 / - cor0.col1 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + ( - 93 ) + - col1 col0 FROM tab1 AS cor0
----
253
5942
7427
query I rowsort
SELECT ALL + col2 + col0 - col0 * col0 * col1 AS col1 FROM tab2 AS cor0
----
-105980
-1485
-358852
query I rowsort
SELECT + cor0.col1 + 30 * - col1 AS col2 FROM tab2 AS cor0
----
-1711
-493
-899
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 tab1.col1 - tab1.col0 col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT DISTINCT tab0.col1 * col0 * col0 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT ALL col2 + - 10 * col0 AS col0 FROM tab2 AS cor0
----
-43
-752
-754
onlyif mysql # use DIV operator for integer division
query I rowsort label-6665
SELECT + - col2 DIV + col0 col0 FROM tab2 AS cor0
----
-3
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6665
SELECT + - col2 / + col0 col0 FROM tab2 AS cor0
----
-3
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6666
SELECT ALL + col1 * - CAST( cor0.col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL + col1 * - CAST ( cor0.col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - col0 + + ( + col1 ) AS col2 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6668
SELECT DISTINCT - cor0.col2 + col0 DIV col2 AS col2 FROM tab0 AS cor0
----
-33
-81
34
skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT - cor0.col2 + col0 / col2 AS col2 FROM tab0 AS cor0
----
-33
-81
34
query I rowsort
SELECT ALL col2 * 62 FROM tab0 cor0
----
2046
5084
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col1 col1 FROM tab1, tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - col2 * 86 FROM tab0
----
-2838
-7052
-86
query I rowsort
SELECT + col0 + 85 FROM tab2
----
163
164
92
query I rowsort
SELECT col2 + ( col2 ) AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - + col0 * col0 * col0 FROM tab1 AS cor0
----
-262144
-27
-512000
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6675
SELECT DISTINCT + CAST( - col2 AS SIGNED ) * - col2 FROM tab0 cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) * - col2 FROM tab0 cor0
----
1
1089
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6676
SELECT - - CAST( NULL AS SIGNED ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6676
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-6677
SELECT DISTINCT - CAST( + col1 AS SIGNED ) * + col0 AS col1 FROM tab0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-6677
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) * + col0 AS col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT - + 66 * 83 AS col2 FROM tab2 AS cor0
----
-5478
-5478
-5478
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 79 col2 FROM tab2 AS cor0
----
105
106
117
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6680
SELECT DISTINCT - + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-6680
SELECT DISTINCT - + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - ( cor0.col0 ) + col1 AS col2 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT ALL + - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT - cor0.col1 + - cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 679222606429bc7195f6dbd388ba1980
onlyif mysql # use DIV operator for integer division
query I rowsort label-6684
SELECT ALL 43 DIV col2 + col2 + - 43 AS col0 FROM tab1
----
11
14
53
skipif mysql # not compatible
query I rowsort label-6684
SELECT ALL 43 / col2 + col2 + - 43 AS col0 FROM tab1
----
11
14
53
query I rowsort
SELECT ALL - 34 AS col0 FROM tab1
----
-34
-34
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6686
SELECT DISTINCT - ( tab0.col0 ) + + tab0.col1 DIV + col1 + - col1 * + col0 * 10 col1 FROM tab0
----
-20663
-33984
-81078
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT - ( tab0.col0 ) + + tab0.col1 / + col1 + - col1 * + col0 * 10 col1 FROM tab0
----
-20663
-33984
-81078
query I rowsort
SELECT ALL - - col2 + + col2 + - col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT 8 + + col2 AS col1 FROM tab1 AS cor0
----
104
62
65
query I rowsort
SELECT - cor0.col1 * - cor0.col0 + - 91 + + col2 AS col1 FROM tab1 AS cor0
----
1045
41
606
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab2 cor1, tab2, tab2 AS cor2
----
3645 values hashing to f23c9ebf4a57b11b108cf933fe3c62aa
query I rowsort
SELECT ALL col1 * + cor0.col1 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-205379
-29791
-4913
onlyif mysql # use DIV operator for integer division
query I rowsort label-6692
SELECT DISTINCT - col2 DIV - 5 AS col2 FROM tab0 cor0
----
0
16
6
skipif mysql # not compatible
query I rowsort label-6692
SELECT DISTINCT - col2 / - 5 AS col2 FROM tab0 cor0
----
0
16
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6693
SELECT ALL + + col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL + + 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-6694
SELECT col0 + CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6694
SELECT col0 + CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 * col0 * + 73 AS col1 FROM tab1 AS cor0
----
299008
467200
657
onlyif mysql # use DIV operator for integer division
query I rowsort label-6696
SELECT ALL col2 + + col2 * + col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
108
114
192
skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL col2 + + col2 * + col1 / + col1 AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT + 40 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6698
SELECT - col1 * ( col2 ) + + cor0.col2 * - CAST( cor0.col0 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
-121186
-51680
-6696
skipif mysql # not compatible
query I rowsort label-6698
SELECT - col1 * ( col2 ) + + cor0.col2 * - CAST ( cor0.col0 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
-121186
-51680
-6696
onlyif mysql # use DIV operator for integer division
query I rowsort label-6699
SELECT + - col1 DIV - 22 + 15 AS col1 FROM tab2 AS cor0
----
15
16
17
skipif mysql # not compatible
query I rowsort label-6699
SELECT + - col1 / - 22 + 15 AS col1 FROM tab2 AS cor0
----
15
16
17
query I rowsort
SELECT - cor0.col0 AS col1 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT col0 + + cor0.col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL + - ( - col2 ) FROM tab1 AS cor0
----
54
57
96
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to 93ed44f621cc970f32b0cc9543b45262
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col0 col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT 36 * 19 + cor0.col2 FROM tab0, tab1 AS cor0
----
738
741
780
query I rowsort
SELECT DISTINCT + col1 * col2 + - col2 FROM tab0 cor0
----
2805
7380
96
query I rowsort
SELECT - - col2 + + 75 FROM tab1 AS cor0
----
129
132
171
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - ( col0 + cor0.col0 ) col0 FROM tab1 AS cor0
----
-118
-147
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-6709
SELECT DISTINCT + col1 + 69 * - 3 + + col1 DIV col0 FROM tab0 cor0
----
-108
-115
-118
skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT + col1 + 69 * - 3 + + col1 / col0 FROM tab0 cor0
----
-108
-115
-118
query I rowsort
SELECT DISTINCT 2 * tab2.col2 FROM tab2
----
52
54
76
query I rowsort
SELECT ALL ( - 97 ) AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 12bd12d33f03250bee508c5641e140d5
query I rowsort
SELECT - cor0.col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT col0 * ( - col2 ) FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT - col0 * - 5 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
330
41
413
query I rowsort
SELECT ALL - col2 * ( - col2 ) AS col2 FROM tab1
----
2916
3249
9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6716
SELECT DISTINCT + + cor0.col0 * - CAST( NULL AS SIGNED ) + cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT + + cor0.col0 * - CAST ( NULL AS INTEGER ) + cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
query I rowsort
SELECT - col1 + 83 * + col2 FROM tab0 AS cor0
----
-14
2653
6715
query I rowsort
SELECT - ( ( col2 ) ) + + 88 * + 9 AS col1 FROM tab2 AS cor0
----
754
765
766
query I rowsort
SELECT + col1 * + 36 FROM tab2 AS cor0
----
1116
2124
612
query I rowsort
SELECT col0 * + ( + col1 ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col1 col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT - 25 * col2 + col2 + - col1 AS col2 FROM tab2
----
-679
-683
-929
query I rowsort
SELECT + col1 * + col1 + col2 * - col2 FROM tab1
----
-2240
-3149
-9047
query I rowsort
SELECT ALL - ( - ( + col0 ) ) * 82 + - col2 AS col0 FROM tab0
----
1935
2869
7216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6725
SELECT col0 + col0 + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6725
SELECT col0 + col0 + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( + 87 ) + col0 + - col1 FROM tab0
----
25
85
query I rowsort
SELECT - 46 * col2 * col1 FROM tab2
----
-29716
-38502
-70564
query I rowsort
SELECT + 7 + - col1 + tab1.col1 FROM tab1
----
7
7
7
query I rowsort
SELECT - col0 + - col2 + 46 AS col0 FROM tab1 AS cor0
----
-11
-130
-75
query I rowsort
SELECT - ( col0 ) * col1 + col2 * - col0 FROM tab2 AS cor0
----
-406
-4345
-6630
query I rowsort
SELECT DISTINCT + 48 + + cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
210
3696
7728
query I rowsort
SELECT ALL + col2 + + col1 AS col0 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL - 52 * - col1 AS col0 FROM tab2 AS cor0
----
1612
3068
884
query I rowsort
SELECT - + 55 + cor0.col0 FROM tab1 AS cor0
----
-52
25
9
query I rowsort
SELECT DISTINCT ( - cor0.col2 ) AS col2 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT + + col0 * col2 + col2 + ( + col2 ) FROM tab1 AS cor0
----
270
3762
7872
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 + col1 * col2 col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL col1 * - col1 * 95 AS col1 FROM tab2 AS cor0
----
-27455
-330695
-91295
query I rowsort
SELECT ALL + + col0 + cor0.col2 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6741
SELECT col2 + - col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
57
72
97
skipif mysql # not compatible
query I rowsort label-6741
SELECT col2 + - col2 / - col0 AS col0 FROM tab1 AS cor0
----
57
72
97
query I rowsort
SELECT col0 + + ( col2 ) * col2 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT DISTINCT - + col2 * - 43 AS col2 FROM tab0 AS cor0
----
1419
3526
43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6744
SELECT ALL CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 60 + + 7 * col2 FROM tab2 AS cor0
----
242
249
326
onlyif mysql # use DIV operator for integer division
query I rowsort label-6746
SELECT col1 + cor0.col2 DIV col1 FROM tab1 AS cor0
----
15
20
28
skipif mysql # not compatible
query I rowsort label-6746
SELECT col1 + cor0.col2 / col1 FROM tab1 AS cor0
----
15
20
28
query I rowsort
SELECT DISTINCT + - cor0.col1 FROM tab1, tab0 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6748
SELECT - CAST( ( col2 ) AS SIGNED ) DIV col0 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6748
SELECT - CAST ( ( col2 ) AS INTEGER ) / col0 FROM tab0 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6749
SELECT col1 * col1 DIV 47 FROM tab1
----
14
2
3
skipif mysql # not compatible
query I rowsort label-6749
SELECT col1 * col1 / 47 FROM tab1
----
14
2
3
query I rowsort
SELECT ALL - col1 + - col2 * - col2 * col0 FROM tab0 AS cor0
----
-62
26050
598345
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL col0 * cor0.col2 + - 40 FROM tab2 AS cor0
----
149
1988
2962
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 col1 FROM tab0, tab2 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6754
SELECT DISTINCT tab0.col2 * + CAST( + 32 AS SIGNED ) FROM tab0, tab1, tab1 AS cor0
----
1056
2624
32
skipif mysql # not compatible
query I rowsort label-6754
SELECT DISTINCT tab0.col2 * + CAST ( + 32 AS INTEGER ) FROM tab0, tab1, tab1 AS cor0
----
1056
2624
32
query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT DISTINCT - - col2 * 62 FROM tab2 cor0
----
1612
1674
2356
query I rowsort
SELECT ALL col0 * col1 * + col0 AS col2 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT ALL - ( ( - col2 ) ) + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + col2 * 95 FROM tab0 cor0
----
3135
7790
95
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 DISTINCT - ( 34 ) * col1 col2 FROM tab2 cor0
----
-1054
-2006
-578
query I rowsort
SELECT - 43 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 2f72bd9cab68c8d8c38874510a290a3c
query I rowsort
SELECT + 95 + - col1 FROM tab0 cor0
----
-2
4
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6764
SELECT + 50 * col0 DIV col0 FROM tab2 AS cor0
----
50
50
50
skipif mysql # not compatible
query I rowsort label-6764
SELECT + 50 * col0 / col0 FROM tab2 AS cor0
----
50
50
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-6765
SELECT + cor0.col0 DIV - ( col0 ) FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6765
SELECT + cor0.col0 / - ( col0 ) FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 48 col1 FROM tab2 AS cor0
----
107
65
79
query I rowsort
SELECT DISTINCT col2 + 35 AS col2 FROM tab2 AS cor0
----
61
62
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6768
SELECT ALL cor0.col0 * col0 + + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
4153
63
6496
skipif mysql # not compatible
query I rowsort label-6768
SELECT ALL cor0.col0 * col0 + + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT ALL - + ( - col0 ) * + ( 55 ) AS col1 FROM tab2 AS cor0
----
385
4290
4345
query I rowsort
SELECT DISTINCT + + ( + col1 ) + col2 + 52 * col1 FROM tab0 AS cor0
----
4591
4905
5142
query I rowsort
SELECT ALL - 25 + + col2 * 72 - 68 * col0 FROM tab2 AS cor0
----
-2661
-3457
1443
onlyif mysql # use DIV operator for integer division
query I rowsort label-6772
SELECT ALL - 71 DIV + col0 - 99 FROM tab1 cor0
----
-100
-122
-99
skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL - 71 / + col0 - 99 FROM tab1 cor0
----
-100
-122
-99
query I rowsort
SELECT DISTINCT + col2 + cor0.col1 + + ( + col0 + cor0.col2 ) * col1 FROM tab0 AS cor0
----
15734
3590
5021
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6774
SELECT DISTINCT col2 + col0 + CAST( NULL AS SIGNED ) * + ( col1 ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT col2 + col0 + CAST ( NULL AS INTEGER ) * + ( col1 ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT 60 + + col2 FROM tab2 AS cor0
----
86
87
98
query I rowsort
SELECT - + col2 + col0 * 68 AS col2 FROM tab2 AS cor0
----
449
5278
5334
query I rowsort
SELECT DISTINCT + + 55 * col1 + - col0 + col1 FROM tab1 cor0
----
1453
496
648
query I rowsort
SELECT + col1 * col0 + - ( 90 * col0 ) FROM tab1 AS cor0
----
-192
-5120
-6160
query I rowsort
SELECT ALL + cor0.col2 + - col0 * + col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL - - ( col1 ) - col2 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-6781
SELECT col0 DIV 86 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6781
SELECT col0 / 86 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 56 * col2 col0 FROM tab2 cor0
----
36176
46872
85904
query I rowsort
SELECT 62 + + col2 AS col1 FROM tab1
----
116
119
158
query I rowsort
SELECT ALL tab0.col1 + col2 * + ( + ( + col0 ) ) * col2 FROM tab0
----
132
26222
598527
query I rowsort
SELECT - 26 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6786
SELECT + CAST( NULL AS SIGNED ) col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6786
SELECT + CAST ( NULL AS INTEGER ) col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-6787
SELECT ALL col0 * col1 DIV + col1 FROM tab0 cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL col0 * col1 / + col1 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT + col0 * col0 + cor0.col2 FROM tab0 AS cor0
----
1226
609
8003
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6789
SELECT + col2 * CAST( ( col0 ) AS SIGNED ) + + col1 * 25 AS col1 FROM tab1 AS cor0
----
3898
8005
812
skipif mysql # not compatible
query I rowsort label-6789
SELECT + col2 * CAST ( ( col0 ) AS INTEGER ) + + col1 * 25 AS col1 FROM tab1 AS cor0
----
3898
8005
812
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 75 * col2 col1 FROM tab2 AS cor0
----
-2028
-2032
-2929
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 66 col1 FROM tab1 AS cor0
----
-2
-63
14
query I rowsort
SELECT - col2 * - col2 + + col2 AS col1 FROM tab2 cor0
----
1482
702
756
query I rowsort
SELECT - 57 + - cor0.col2 FROM tab2 AS cor0
----
-83
-84
-95
query I rowsort
SELECT cor0.col1 AS col0 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 57708840c4ff70ecdca82ffd05259432
query I rowsort
SELECT 6 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 44f233d1b3804e00d9436c0a41d1e2c8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
query I rowsort
SELECT - - col2 * cor0.col0 + col2 AS col1 FROM tab1 cor0
----
216
3705
7776
query I rowsort
SELECT - col1 * + col0 + + 95 FROM tab0 AS cor0
----
-1969
-3300
-8004
query I rowsort
SELECT ALL + - ( 17 ) AS col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab0, tab0 AS cor1
----
243 values hashing to 4f2a844c3e928e820ab0a0de19d35c2a
onlyif mysql # use DIV operator for integer division
query I rowsort label-6801
SELECT 27 DIV col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6801
SELECT 27 / col2 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6802
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 34 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-6802
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 34 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
NULL
query I rowsort
SELECT DISTINCT 14 AS col2 FROM tab1, tab0, tab2 AS cor0
----
14
query I rowsort
SELECT - 17 + col0 AS col1 FROM tab1 AS cor0
----
-14
47
63
query I rowsort
SELECT DISTINCT + col2 + col0 * - 90 * col1 AS col2 FROM tab1 AS cor0
----
-57543
-6966
-93504
query I rowsort
SELECT + + ( - col0 ) + + col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT + tab2.col1 * col1 * + col2 IN ( + col2 )
----
26
27
38
query I rowsort
SELECT + col2 * - col0 * + col1 AS col1 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT + col1 * - col0 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND col1 * col2
----
query I rowsort
SELECT tab1.col0 * tab1.col2 + col1 + - col2 AS col2 FROM tab1
----
134
3601
7597
query I rowsort
SELECT ALL - col0 * - col1 - + col0 FROM tab1
----
576
75
960
query I rowsort
SELECT tab2.col2 / col2 AS col1 FROM tab2 WHERE NOT NULL > col0 + - col0
----
query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT + col1 * col1 NOT IN ( col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 col2 FROM tab2
----
1444
676
729
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) = ( NULL )
----
query I rowsort
SELECT tab1.col1 + + col0 + + col0 * + tab1.col1 AS col1 FROM tab1
----
107
1133
714
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN ( + col2 + + col1 ) AND NULL
----
query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND col2 + col1 * + col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6819
SELECT col0 DIV - col1 + + tab2.col0 AS col0 FROM tab2
----
7
75
77
skipif mysql # not compatible
query I rowsort label-6819
SELECT col0 / - col1 + + tab2.col0 AS col0 FROM tab2
----
7
75
77
query I rowsort
SELECT - col0 * + col1 * col0 FROM tab1
----
-234
-40960
-83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 col0 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT col1 * + tab1.col2 + - tab1.col0 * col1 - - col1 FROM tab1
----
-60
1352
221
query I rowsort
SELECT tab2.col1 * col1 * - col2 - + col0 FROM tab2
----
-11061
-25954
-90584
query I rowsort
SELECT - 24 * - col1 + - cor0.col0 + 22 * col0 FROM tab0 AS cor0
----
2568
3063
4053
query I rowsort
SELECT + col1 + cor0.col1 + 94 FROM tab2 AS cor0
----
128
156
212
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 + - col2 col1 FROM tab0 AS cor0
----
-80
29
61
query I rowsort
SELECT ALL - + cor0.col1 + col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL + col1 + col2 + col0 * + ( - col0 + col2 ) FROM tab2 AS cor0
----
-3184
-3971
198
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 = ( col2 * - col1 )
----
query I rowsort
SELECT DISTINCT + col0 * - col2 + - col0 + col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL col2 + - col0 * col1 + col1 * - col0 AS col0 FROM tab0
----
-16116
-4095
-6789
query I rowsort
SELECT col1 + + col2 * + cor0.col1 - col0 FROM tab2 AS cor0
----
1515
584
861
query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN col0 * col2 + col1 AND ( col2 * - col1 )
----
query I rowsort
SELECT DISTINCT col1 + + col2 FROM tab1 AS cor0 WHERE NOT NULL <> col0 * col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6835
SELECT col0 DIV + col1 + + col0 FROM tab1
----
3
70
86
skipif mysql # not compatible
query I rowsort label-6835
SELECT col0 / + col1 + + col0 FROM tab1
----
3
70
86
query I rowsort
SELECT ALL + tab2.col0 * col1 - - col2 AS col0 FROM tab2
----
1381
244
4628
query I rowsort
SELECT DISTINCT col2 + + col2 AS col2 FROM tab1 WHERE ( NULL ) > ( NULL )
----
query I rowsort
SELECT ALL - col2 + col1 * tab0.col2 FROM tab0
----
2805
7380
96
query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT NULL <> col1 * + col0 * + tab0.col2
----
query I rowsort
SELECT - col0 * - tab1.col0 - tab1.col0 FROM tab1
----
4032
6
6320
query I rowsort
SELECT + col1 + - tab2.col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT ALL - ( col0 ) * - col2 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6843
SELECT ALL + 67 * - col0 / - col2 + - CAST( NULL AS SIGNED ) + col1 / - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL + 67 * - col0 / - col2 + - CAST ( NULL AS INTEGER ) + col1 / - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 92 * - col2 + + col0 FROM tab0 AS cor0
----
127
3060
7633
query I rowsort
SELECT DISTINCT col2 + + col2 * col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-6846
SELECT col0 - - col1 DIV + 32 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-6846
SELECT col0 - - col1 / + 32 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL 72 * col1 AS col0 FROM tab1 AS cor0
----
1872
720
936
query I rowsort
SELECT DISTINCT 94 - col2 FROM tab0
----
12
61
93
query I rowsort
SELECT + tab2.col0 AS col2 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT + tab2.col2 * col0 + col0 + tab2.col1 * tab2.col2 AS col1 FROM tab2
----
1033
3640
3727
query I rowsort
SELECT DISTINCT ( - tab2.col1 ) + + col0 * - ( col0 ) AS col2 FROM tab2
----
-6143
-6258
-80
query I rowsort
SELECT + 40 * + col1 FROM tab1
----
1040
400
520
query I rowsort
SELECT DISTINCT tab2.col1 * + col2 + tab2.col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT + col2 * col0 + tab2.col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT ALL + col0 * - 76 + col0 - - col2 FROM tab1 AS cor0
----
-171
-4743
-5904
query I rowsort
SELECT DISTINCT col2 * - 54 + 57 FROM tab0 AS cor0
----
-1725
-4371
3
query I rowsort
SELECT ALL + col1 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL col1 - cor0.col1 * + col0 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT col2 + - tab1.col1 * 7 FROM tab1
----
-128
-13
5
query I rowsort
SELECT + 80 + 79 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to df87f7a2e96de37e0c7e9c86fae8840b
query I rowsort
SELECT 54 + col1 * + col2 FROM tab0
----
151
2892
7516
query I rowsort
SELECT DISTINCT col2 * 29 AS col1 FROM tab1 AS cor0
----
1566
1653
2784
query I rowsort
SELECT + + cor0.col1 * + col1 AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL + - col2 + + ( col1 ) AS col2 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6865
SELECT + col1 / + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6865
SELECT + col1 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6866
SELECT DISTINCT - CAST( 73 AS SIGNED ) + tab1.col1 FROM tab1
----
-47
-60
-63
skipif mysql # not compatible
query I rowsort label-6866
SELECT DISTINCT - CAST ( 73 AS INTEGER ) + tab1.col1 FROM tab1
----
-47
-60
-63
onlyif mysql # use DIV operator for integer division
query I rowsort label-6867
SELECT DISTINCT col0 * - 98 + - col1 DIV 15 FROM tab2
----
-688
-7647
-7743
skipif mysql # not compatible
query I rowsort label-6867
SELECT DISTINCT col0 * - 98 + - col1 / 15 FROM tab2
----
-688
-7647
-7743
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 31 col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
query I rowsort
SELECT ALL - - 41 + - col1 + col0 FROM tab0 AS cor0
----
-21
-21
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + col0 col2 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-6871
SELECT col2 DIV col0 + - col2 DIV 49 AS col0 FROM tab2 cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-6871
SELECT col2 / col0 + - col2 / 49 AS col0 FROM tab2 cor0
----
0
0
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6872
SELECT ALL CAST( NULL AS SIGNED ) / - col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL CAST ( NULL AS INTEGER ) / - col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * - 54 * - col0 FROM tab0
----
1890
394092
42768
query I rowsort
SELECT - col0 * 1 AS col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL tab2.col1 + + 0 * col1 * + ( + col1 ) AS col1 FROM tab2
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-6876
SELECT + ( col2 ) DIV col0 + + ( col2 ) AS col2 FROM tab0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-6876
SELECT + ( col2 ) / col0 + + ( col2 ) AS col2 FROM tab0
----
1
34
82
query I rowsort
SELECT ALL 69 * + col1 AS col0 FROM tab0
----
5934
6279
6693
query I rowsort
SELECT + col2 * - cor0.col0 + + col0 + + col1 AS col2 FROM tab0 AS cor0
----
-682
-7118
97
query I rowsort
SELECT ALL - 57 * col0 FROM tab0 AS cor0
----
-1368
-1995
-5073
query I rowsort
SELECT - + col1 + - col2 * + 30 FROM tab2 AS cor0
----
-1157
-839
-841
query I rowsort
SELECT ALL 60 * col0 AS col2 FROM tab0 AS cor0
----
1440
2100
5340
query I rowsort
SELECT DISTINCT 92 * - col2 * - cor0.col0 FROM tab2 AS cor0
----
17388
186576
276184
query I rowsort
SELECT ALL - ( col2 ) AS col1 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT ALL - cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT ALL - tab2.col0 + - col1 AS col0 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT + col1 + - col2 + + col2 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL - col1 * 94 + col1 FROM tab2 AS cor0
----
-1581
-2883
-5487
query I rowsort
SELECT DISTINCT + col2 + 45 FROM tab1 cor0
----
102
141
99
query I rowsort
SELECT - - col1 * col0 - 99 * - col1 AS col0 FROM tab2 AS cor0
----
10443
3026
3286
query I rowsort
SELECT ALL - - col1 * + col0 + col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT - + col0 + ( col0 * - col0 ) FROM tab0 cor0
----
-1260
-600
-8010
query I rowsort
SELECT - - col0 - 9 AS col0 FROM tab1 AS cor0
----
-6
55
71
query I rowsort
SELECT DISTINCT - col2 * - ( + col1 * col2 ) FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT ALL + col0 + + col1 * col2 AS col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT ( 2 ) FROM tab2 cor0
----
2
query I rowsort
SELECT + 49 + col1 * col2 + + 72 FROM tab2 AS cor0
----
1655
767
958
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6897
SELECT DISTINCT CAST( NULL AS SIGNED ) + - cor0.col2 col1 FROM tab2 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6897
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - cor0.col2 col1 FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL 26 + + 65 AS col2 FROM tab0 cor0
----
91
91
91
query I rowsort
SELECT - ( - 67 ) * - col0 - + ( - col2 ) * - col0 FROM tab1 cor0
----
-13040
-363
-7936
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6900
SELECT - CAST( NULL AS DECIMAL ) + col2 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6900
SELECT - CAST ( NULL AS REAL ) + col2 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * + 60 AS col0 FROM tab2 AS cor0
----
1560
1620
2280
query I rowsort
SELECT ALL - 81 + col2 AS col0 FROM tab1 AS cor0
----
-24
-27
15
query I rowsort
SELECT col1 * - col2 - - col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT + 49 + col2 AS col1 FROM tab0 AS cor0
----
131
50
82
query I rowsort
SELECT ( col2 ) - col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT + ( - col1 ) + - col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT - 80 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-158
-159
-87
query I rowsort
SELECT - 72 FROM tab1 cor0
----
-72
-72
-72
query I rowsort
SELECT col2 * + col0 + col1 FROM tab0 cor0
----
132
7389
878
query I rowsort
SELECT + cor0.col0 * + col2 + - 91 + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-91
-91
-91
query I rowsort
SELECT + + cor0.col0 * col1 + - col0 FROM tab0 cor0
----
2040
3360
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-6912
SELECT + + 89 DIV col1 + + cor0.col0 FROM tab0 AS cor0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-6912
SELECT + + 89 / col1 + + cor0.col0 FROM tab0 AS cor0
----
25
35
89
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab1 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 2563d2f4127fd757b80c46400c5511cb
query I rowsort
SELECT 35 * + cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd286347e3bad5d3c51746ac48e83627
query I rowsort
SELECT - 75 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547
query I rowsort
SELECT ALL col1 + - col2 * ( + col0 + col1 ) FROM tab1 AS cor0
----
-1540
-4208
-8915
query I rowsort
SELECT DISTINCT + - col2 * col0 * col1 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT col1 + cor0.col2 + + col0 FROM tab1 AS cor0
----
131
189
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - 56 + col1 FROM tab2 AS cor0
----
-25
-39
3
query I rowsort
SELECT - col1 - col1 * + col1 * + col0 AS col2 FROM tab0 AS cor0
----
-177590
-329412
-737100
query I rowsort
SELECT ALL col2 * - col0 + 55 AS col2 FROM tab2 AS cor0
----
-134
-1973
-2947
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + col0 col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT col2 - + ( - col0 ) FROM tab0
----
171
36
57
query I rowsort
SELECT col2 * - ( col0 ) + + tab1.col0 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT - col2 + - 31 FROM tab1
----
-127
-85
-88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6927
SELECT + col1 * + ( + col2 * col1 ) + + CAST( + 56 AS SIGNED ) * cor0.col0 AS col0 FROM tab0 cor0
----
11369
245412
684026
skipif mysql # not compatible
query I rowsort label-6927
SELECT + col1 * + ( + col2 * col1 ) + + CAST ( + 56 AS INTEGER ) * cor0.col0 AS col0 FROM tab0 cor0
----
11369
245412
684026
query I rowsort
SELECT ALL - col1 * - col1 * - col1 AS col1 FROM tab1
----
-1000
-17576
-2197
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + ( col1 ) AS REAL ) AS col0 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL + tab2.col1 * col1 * col0 AS col0 FROM tab2
----
22831
271518
6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 col0 FROM tab2, tab0 AS cor0
----
-74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - ( + col2 ) ) col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT col1 + - 26 * cor0.col2 FROM tab1 AS cor0
----
-1378
-1472
-2483
query I rowsort
SELECT col2 * - col0 * - col1 AS col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT + + 35 * col2 AS col0 FROM tab2 AS cor0
----
1330
910
945
query I rowsort
SELECT - - cor0.col1 * - col0 * + col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT - 21 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to b6019fd8f0ff78caeaf4b2de3226eb65
query I rowsort
SELECT ( col0 * + col0 + ( 42 ) ) AS col2 FROM tab2
----
6126
6283
91
query I rowsort
SELECT ALL col0 * - col2 * ( col0 ) AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT + col0 + - col0 * + cor0.col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL + col1 * col2 + col1 FROM tab1 AS cor0
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 col0 FROM tab0
----
91
91
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-6943
SELECT ALL - col1 * col2 + col1 DIV + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1247
-1403
-569
skipif mysql # not compatible
query I rowsort label-6943
SELECT ALL - col1 * col2 + col1 / + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1247
-1403
-569
onlyif mysql # use DIV operator for integer division
query I rowsort label-6944
SELECT ALL - ( - col1 ) DIV - col2 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL - ( - col1 ) / - col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT + 58 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT ALL - cor0.col1 * + cor0.col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + - 8 + col1 AS col0 FROM tab0 AS cor0
----
78
83
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6948
SELECT ALL - cor0.col2 + cor0.col1 * + CAST( - col1 AS SIGNED ) + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-214
-361
-784
skipif mysql # not compatible
query I rowsort label-6948
SELECT ALL - cor0.col2 + cor0.col1 * + CAST ( - col1 AS INTEGER ) + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-214
-361
-784
query I rowsort
SELECT DISTINCT + + 57 * - col0 AS col2 FROM tab2 AS cor0
----
-399
-4446
-4503
query I rowsort
SELECT ALL + col2 + + col2 AS col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT col1 + col2 * - col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT - col0 * - col0 + + 95 * col1 * - 57 FROM tab2 AS cor0
----
-167816
-313401
-85814
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - col1 col0 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT - col2 * ( - 82 ) * + col1 + + ( 79 * + cor0.col0 ) FROM tab1 AS cor0
----
108656
115365
51796
query I rowsort
SELECT DISTINCT - cor0.col0 * 62 FROM tab1 AS cor0
----
-186
-3968
-4960
onlyif mysql # use DIV operator for integer division
query I rowsort label-6956
SELECT DISTINCT - + col1 + col1 DIV 23 AS col0 FROM tab1 AS cor0
----
-10
-13
-25
skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT - + col1 + col1 / 23 AS col0 FROM tab1 AS cor0
----
-10
-13
-25
query I rowsort
SELECT ALL - - col0 + + 37 * 62 * + col2 FROM tab2 cor0
----
59722
61945
87251
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 + col2 col1 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-6959
SELECT + col2 * tab1.col2 DIV col0 + col2 * col2 FROM tab1
----
3299
3888
9331
skipif mysql # not compatible
query I rowsort label-6959
SELECT + col2 * tab1.col2 / col0 + col2 * col2 FROM tab1
----
3299
3888
9331
query I rowsort
SELECT - - 36 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 4d1892e880125dc90345721151acb22c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6961
SELECT CAST( - 7 AS SIGNED ) * col0 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-18
-384
-480
skipif mysql # not compatible
query I rowsort label-6961
SELECT CAST ( - 7 AS INTEGER ) * col0 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-18
-384
-480
query I rowsort
SELECT DISTINCT 39 + + 83 + + col2 AS col1 FROM tab0 AS cor0
----
123
155
204
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6963
SELECT ALL + CAST( NULL AS DECIMAL ) - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL + CAST ( NULL AS REAL ) - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + 63 FROM tab0 AS cor0
----
152
87
98
query I rowsort
SELECT - cor0.col2 * 52 FROM tab1 cor0
----
-2808
-2964
-4992
query I rowsort
SELECT ALL + col1 * col2 - + col2 AS col0 FROM tab0 AS cor0
----
2805
7380
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6967
SELECT DISTINCT col2 DIV col2 + + col2 AS col2 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-6967
SELECT DISTINCT col2 / col2 + + col2 AS col2 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT ALL - 57 * 16 - cor0.col0 * 47 FROM tab1 AS cor0
----
-1053
-3920
-4672
query I rowsort
SELECT - - 82 * col1 + col2 AS col0 FROM tab0 AS cor0
----
7085
7544
7955
query I rowsort
SELECT ALL - col1 * 19 FROM tab1 AS cor0
----
-190
-247
-494
onlyif mysql # use DIV operator for integer division
query I rowsort label-6971
SELECT DISTINCT col0 DIV + col1 - col2 DIV + ( col2 ) AS col2 FROM tab1 AS cor0
----
-1
5
skipif mysql # not compatible
query I rowsort label-6971
SELECT DISTINCT col0 / + col1 - col2 / + ( col2 ) AS col2 FROM tab1 AS cor0
----
-1
5
query I rowsort
SELECT DISTINCT + ( col1 ) * col2 * col0 + 71 AS col0 FROM tab0 AS cor0
----
3466
664189
68183
query I rowsort
SELECT tab2.col2 * ( col0 ) AS col0 FROM tab2
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6974
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 42 * col2 FROM tab1 AS cor0
----
2268
2394
4032
query I rowsort
SELECT DISTINCT + col0 * tab2.col1 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT 27 AS col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to 092918b9163061e291041d594b1a402a
query I rowsort
SELECT + tab1.col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT - 49 * col0 AS col1 FROM tab1 AS cor0
----
-147
-3136
-3920
query I rowsort
SELECT tab0.col0 * + tab0.col1 - + tab0.col1 * col1 FROM tab0
----
-182
-5332
-6014
query I rowsort
SELECT - 27 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 0259a67676b131a4843853be4811b775
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6982
SELECT - col2 + CAST( col1 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
24
583
944
skipif mysql # not compatible
query I rowsort label-6982
SELECT - col2 + CAST ( col1 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT - col1 + 2 AS col0 FROM tab2 AS cor0
----
-15
-29
-57
query I rowsort
SELECT + tab0.col1 * col1 + col0 + col2 AS col0 FROM tab0
----
7453
8452
9445
query I rowsort
SELECT - - col0 + + col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT + col2 + - cor0.col0 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT col0 * + ( - 68 + - col0 ) * - 16 AS col0 FROM tab2
----
182208
185808
8400
query I rowsort
SELECT + 4 + 19 FROM tab1 cor0
----
23
23
23
query I rowsort
SELECT 83 FROM tab0, tab1 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
query I rowsort
SELECT + cor0.col0 + - cor0.col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to a6800e768401748ae504acf0ffb720a7
query I rowsort
SELECT + 90 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT DISTINCT col2 * - col1 * + 35 FROM tab0 AS cor0
----
-261170
-3395
-99330
query I rowsort
SELECT ALL + ( + col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - - col2 + cor0.col1 * - 43 * + col0 AS col1 FROM tab1 AS cor0
----
-27463
-3300
-44624
query I rowsort
SELECT ALL + col2 + - col2 * + 35 FROM tab0 AS cor0
----
-1122
-2788
-34
query I rowsort
SELECT + col0 + col1 * - col2 * + col0 AS col1 FROM tab1
----
-36416
-4209
-99760
query I rowsort
SELECT DISTINCT - 94 AS col2 FROM tab0, tab1, tab0 cor0
----
-94
query I rowsort
SELECT ALL + col1 * col1 + + col0 AS col2 FROM tab2
----
3559
368
968
query I rowsort
SELECT ALL col2 + - col0 * 56 AS col0 FROM tab1 AS cor0
----
-114
-3527
-4384
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col2 * - col0 col1 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT ALL col1 * - col1 + ( col1 ) AS col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT - - 95 * col1 FROM tab1 AS cor0
----
1235
2470
950
query I rowsort
SELECT - 59 * + col2 AS col2 FROM tab2 AS cor0
----
-1534
-1593
-2242
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 * + col1 col2 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT - - 96 FROM tab2 cor0
----
96
96
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 col0 FROM tab0
----
41
41
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - tab2.col1 col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT ALL + 70 FROM tab2
----
70
70
70
query I rowsort
SELECT DISTINCT + tab2.col1 * col0 * 9 FROM tab2
----
12087
1953
41418
query I rowsort
SELECT ALL - tab0.col2 * - col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT + col1 * - 9 FROM tab0 AS cor0
----
-774
-819
-873
query I rowsort
SELECT - + col0 * + cor0.col1 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7013
SELECT - col1 - CAST( - 99 AS SIGNED ) col1 FROM tab1 AS cor0
----
73
86
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7013
SELECT - col1 - CAST ( - 99 AS INTEGER ) col1 FROM tab1 AS cor0
----
73
86
89
query I rowsort
SELECT + - cor0.col0 + col0 - - col2 * col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + tab0.col0 AS col2 FROM tab0, tab1 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994
query I rowsort
SELECT - - 39 + + col0 * + col2 FROM tab2 AS cor0
----
2067
228
3041
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7017
SELECT + CAST( - ( + col2 ) AS SIGNED ) FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-7017
SELECT + CAST ( - ( + col2 ) AS INTEGER ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL + col2 * 12 FROM tab1
----
1152
648
684
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7019
SELECT ALL + ( - col1 ) + - col1 * CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7019
SELECT ALL + ( - col1 ) + - col1 * CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 56 + + 24 * + col1 + + 80 FROM tab0 cor0
----
2200
2320
2464
query I rowsort
SELECT DISTINCT - 83 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-7138
-7553
-8051
query I rowsort
SELECT - 82 * col2 AS col2 FROM tab2 AS cor0
----
-2132
-2214
-3116
query I rowsort
SELECT + + 33 * col0 FROM tab0 AS cor0
----
1155
2937
792
query I rowsort
SELECT col2 + - col1 * col1 * col1 FROM tab2 AS cor0
----
-205353
-29764
-4875
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 * col2 col2 FROM tab1 AS cor0
----
3942
4161
7008
query I rowsort
SELECT + 70 + - col0 FROM tab0
----
-19
35
46
query I rowsort
SELECT - 63 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2
query I rowsort
SELECT - 77 + col0 * col0 FROM tab2 AS cor0
----
-28
6007
6164
query I rowsort
SELECT DISTINCT - - cor0.col2 + - col1 + + col1 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL 12 * + col2 + col1 FROM tab2 AS cor0
----
355
371
473
query I rowsort
SELECT - col1 * 32 AS col1 FROM tab1 AS cor0
----
-320
-416
-832
query I rowsort
SELECT DISTINCT + 33 * + 4 AS col0 FROM tab2 AS cor0
----
132
query I rowsort
SELECT DISTINCT 34 + + cor0.col2 AS col0 FROM tab1 cor0
----
130
88
91
query I rowsort
SELECT ALL - - cor0.col1 + 5 - + col2 AS col1 FROM tab1 AS cor0
----
-23
-42
-78
query I rowsort
SELECT - cor0.col0 + + col2 * col1 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL 74 * col2 + + cor0.col1 + + col2 FROM tab2 AS cor0
----
2009
2056
2867
query I rowsort
SELECT DISTINCT + - ( - col2 ) * - cor0.col2 * col0 + col1 * - ( col2 ) AS col2 FROM tab0 cor0
----
-132
-28974
-605898
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7039
SELECT DISTINCT - CAST( 72 AS SIGNED ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-72
skipif mysql # not compatible
query I rowsort label-7039
SELECT DISTINCT - CAST ( 72 AS INTEGER ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-72
query I rowsort
SELECT + - col1 * + col0 - + col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT col1 * cor0.col0 + - ( - col0 * + col2 ) FROM tab2 AS cor0
----
406
4345
6630
onlyif mysql # use DIV operator for integer division
query I rowsort label-7042
SELECT 95 * - col1 - col2 DIV col0 AS col0 FROM tab0
----
-8171
-8645
-9215
skipif mysql # not compatible
query I rowsort label-7042
SELECT 95 * - col1 - col2 / col0 AS col0 FROM tab0
----
-8171
-8645
-9215
query I rowsort
SELECT ALL + col1 * 65 * col0 AS col2 FROM tab0 AS cor0
----
134160
220675
526435
query I rowsort
SELECT ALL 64 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT ALL + col1 + 66 AS col1 FROM tab1 AS cor0
----
76
79
92
query I rowsort
SELECT DISTINCT - + col0 * + col0 - + col2 AS col2 FROM tab1 cor0
----
-4153
-63
-6496
query I rowsort
SELECT + cor0.col0 + ( col0 + col0 * 90 ) FROM tab1 AS cor0
----
276
5888
7360
query I rowsort
SELECT + - cor0.col2 * + col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - col1 + + 51 AS col2 FROM tab2 AS cor0
----
-8
20
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-7050
SELECT + col0 + 92 DIV + col0 AS col2 FROM tab0 AS cor0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-7050
SELECT + col0 + 92 / + col0 AS col2 FROM tab0 AS cor0
----
27
37
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-7051
SELECT DISTINCT CAST( 82 AS SIGNED ) DIV cor0.col0 - - col1 AS col1 FROM tab1 AS cor0
----
11
14
53
skipif mysql # not compatible
query I rowsort label-7051
SELECT DISTINCT CAST ( 82 AS INTEGER ) / cor0.col0 - - col1 AS col1 FROM tab1 AS cor0
----
11
14
53
query I rowsort
SELECT DISTINCT - - ( 32 ) + col1 * 98 - - cor0.col0 AS col1 FROM tab0 AS cor0
----
8484
9039
9573
query I rowsort
SELECT ALL col2 * - ( + col1 + - col2 ) FROM tab1
----
1512
2679
7968
query I rowsort
SELECT DISTINCT 76 AS col0 FROM tab2, tab0 AS cor0
----
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 34 ) col2 FROM tab2 AS cor0
----
-34
-34
-34
query I rowsort
SELECT 81 * + 30 AS col2 FROM tab0 cor0
----
2430
2430
2430
query I rowsort
SELECT - cor0.col1 + + cor0.col1 * 45 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c0db56f81a57ff927cda1556444e3617
onlyif mysql # use DIV operator for integer division
query I rowsort label-7058
SELECT DISTINCT - col0 + col2 + - ( + tab1.col0 ) DIV - col2 FROM tab1
----
-6
16
51
skipif mysql # not compatible
query I rowsort label-7058
SELECT DISTINCT - col0 + col2 + - ( + tab1.col0 ) / - col2 FROM tab1
----
-6
16
51
query I rowsort
SELECT DISTINCT + 87 + - col2 FROM tab1
----
-9
30
33
query I rowsort
SELECT col2 + + col2 - 36 AS col0 FROM tab2
----
16
18
40
query I rowsort
SELECT 70 + col0 FROM tab0
----
105
159
94
query I rowsort
SELECT ALL 18 + + col1 AS col2 FROM tab2
----
35
49
77
query I rowsort
SELECT + 22 + + col2 FROM tab0 AS cor0
----
104
23
55
query I rowsort
SELECT DISTINCT + ( 10 ) AS col1 FROM tab1, tab2 AS cor0
----
10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7065
SELECT ALL + 87 * col0 + - CAST( 81 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
180
5487
6879
skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL + 87 * col0 + - CAST ( 81 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
180
5487
6879
query I rowsort
SELECT ALL + 77 * - col2 AS col0 FROM tab2 AS cor0
----
-2002
-2079
-2926
onlyif mysql # use DIV operator for integer division
query I rowsort label-7067
SELECT - col2 + cor0.col1 DIV - col1 + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4154
-64
-6497
skipif mysql # not compatible
query I rowsort label-7067
SELECT - col2 + cor0.col1 / - col1 + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4154
-64
-6497
query I rowsort
SELECT - col0 * - col0 * + col0 + - col2 FROM tab0 AS cor0
----
13791
42874
704887
query I rowsort
SELECT + - 46 FROM tab1 AS cor0
----
-46
-46
-46
onlyif mysql # use DIV operator for integer division
query I rowsort label-7070
SELECT cor0.col0 * - col0 + col2 + col1 DIV - col0 col0 FROM tab0 cor0
----
-1226
-546
-7840
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7070
SELECT cor0.col0 * - col0 + col2 + col1 / - col0 col0 FROM tab0 cor0
----
-1226
-546
-7840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7071
SELECT DISTINCT col0 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7071
SELECT DISTINCT col0 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + col2 * - col2 + ( - col0 ) * - 1 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT col1 + + col1 * - 24 + - col2 FROM tab0 cor0
----
-2011
-2175
-2232
query I rowsort
SELECT DISTINCT - col2 * + ( - col0 ) + + col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT + col0 * 78 FROM tab0 AS cor0
----
1872
2730
6942
query I rowsort
SELECT ALL - col2 * cor0.col2 * - cor0.col1 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT DISTINCT + cor0.col1 + - ( col2 ) AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT - 7 * tab0.col0 + + col1 - + col0 FROM tab0
----
-106
-183
-621
query I rowsort
SELECT DISTINCT - 20 - + col0 FROM tab1
----
-100
-23
-84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 + col0 + col2 col0 FROM tab2
----
182
196
41
query I rowsort
SELECT - + col2 * - ( - col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 + col1 ) col1 FROM tab1
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7083
SELECT ALL + CAST( col1 AS SIGNED ) + col0 * col0 + - col0 FROM tab2 AS cor0
----
6065
6179
73
skipif mysql # not compatible
query I rowsort label-7083
SELECT ALL + CAST ( col1 AS INTEGER ) + col0 * col0 + - col0 FROM tab2 AS cor0
----
6065
6179
73
query I rowsort
SELECT DISTINCT + tab1.col0 + 58 FROM tab1
----
122
138
61
query I rowsort
SELECT ( 46 ) FROM tab2 AS cor0
----
46
46
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7086
SELECT DISTINCT CAST( - col2 AS SIGNED ) FROM tab1 cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-7086
SELECT DISTINCT CAST ( - col2 AS INTEGER ) FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT + ( - col1 ) + + col0 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT - ( 48 ) AS col0 FROM tab2 cor0
----
-48
-48
-48
query I rowsort
SELECT + col0 * + col1 * col0 + col1 AS col2 FROM tab0 cor0
----
118922
49622
720902
query I rowsort
SELECT + col0 * + col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT ALL + ( - col2 ) * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT - col1 * + col0 + - col1 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-7093
SELECT + - col0 DIV - col2 + col0 * + col0 AS col2 FROM tab0 AS cor0
----
1260
576
7922
skipif mysql # not compatible
query I rowsort label-7093
SELECT + - col0 / - col2 + col0 * + col0 AS col2 FROM tab0 AS cor0
----
1260
576
7922
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 - + col2 col1 FROM tab0 cor0
----
34
7216
759
query I rowsort
SELECT DISTINCT ( + tab1.col1 ) * - col0 + col0 FROM tab1
----
-576
-75
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-7096
SELECT - ( 53 ) DIV col0 col0 FROM tab2
----
-7
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7096
SELECT - ( 53 ) / col0 col0 FROM tab2
----
-7
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7097
SELECT ALL + 78 + col0 DIV - col0 - + col1 AS col1 FROM tab0
----
-14
-20
-9
skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL + 78 + col0 / - col0 - + col1 AS col1 FROM tab0
----
-14
-20
-9
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( ( + col2 ) AS REAL ) AS col1 FROM tab0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + + col1 + col2 col0 FROM tab2
----
144
72
89
query I rowsort
SELECT ALL - col0 * - col1 + col1 * col1 AS col0 FROM tab1 AS cor0
----
1209
740
754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - 13 col2 FROM tab2 AS cor0
----
-221
-403
-767
onlyif mysql # use DIV operator for integer division
query I rowsort label-7102
SELECT DISTINCT + cor0.col1 DIV - col2 + cor0.col0 * col1 + col1 DIV - col1 FROM tab1 AS cor0
----
1039
639
77
skipif mysql # not compatible
query I rowsort label-7102
SELECT DISTINCT + cor0.col1 / - col2 + cor0.col0 * col1 + col1 / - col1 FROM tab1 AS cor0
----
1039
639
77
query I rowsort
SELECT DISTINCT + col2 * 33 AS col0 FROM tab2 AS cor0
----
1254
858
891
query I rowsort
SELECT ALL + col1 * col1 + col1 * col1 * col2 FROM tab1 AS cor0
----
16393
37180
5800
query I rowsort
SELECT DISTINCT - + col2 * col2 + - 56 FROM tab1 AS cor0
----
-2972
-3305
-9272
query I rowsort
SELECT col1 * col0 * + cor0.col2 + + col2 AS col1 FROM tab1 AS cor0
----
36537
4266
99936
query I rowsort
SELECT DISTINCT 49 + col0 FROM tab0
----
138
73
84
query I rowsort
SELECT DISTINCT tab1.col2 + tab1.col1 * col1 FROM tab1
----
157
265
730
query I rowsort
SELECT ALL - - col0 - 92 AS col1 FROM tab2 AS cor0
----
-13
-14
-85
query I rowsort
SELECT DISTINCT + col1 * ( - ( cor0.col0 ) ) * - col1 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT col1 * 98 + + ( + col1 ) AS col0 FROM tab0
----
8514
9009
9603
query I rowsort
SELECT DISTINCT 73 FROM tab2, tab2 AS cor0
----
73
query I rowsort
SELECT col1 * cor0.col0 + - col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * cor0.col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * tab1.col1 col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL col0 * - col1 * col0 AS col2 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT - tab2.col1 * + cor0.col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to d25bbc3be8b7534a255ca7e00cb9edeb
query I rowsort
SELECT cor0.col0 * col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT ALL - col0 * col1 + col0 FROM tab0 WHERE NOT col1 / - col1 <> NULL
----
query I rowsort
SELECT ALL + 64 + col2 FROM tab0
----
146
65
97
query I rowsort
SELECT 84 * - col2 + col0 FROM tab0
----
-2748
-49
-6799
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * cor0.col1 col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + tab0.col2 * col2 * col1 FROM tab0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7124
SELECT + - col2 * + cor0.col0 DIV col0 + cor0.col1 * col1 * col2 FROM tab1 AS cor0
----
16128
36450
5643
skipif mysql # not compatible
query I rowsort label-7124
SELECT + - col2 * + cor0.col0 / col0 + cor0.col1 * col1 * col2 FROM tab1 AS cor0
----
16128
36450
5643
onlyif mysql # use DIV operator for integer division
query I rowsort label-7125
SELECT + col2 + + col1 DIV + col0 AS col1 FROM tab1 AS cor0
----
57
62
96
skipif mysql # not compatible
query I rowsort label-7125
SELECT + col2 + + col1 / + col0 AS col1 FROM tab1 AS cor0
----
57
62
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7126
SELECT DISTINCT - CAST( 55 AS SIGNED ) + cor0.col0 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-48
23
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7126
SELECT DISTINCT - CAST ( 55 AS INTEGER ) + cor0.col0 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-48
23
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-7128
SELECT + col2 * + col2 + - col2 DIV col0 AS col1 FROM tab2 AS cor0
----
1444
676
726
skipif mysql # not compatible
query I rowsort label-7128
SELECT + col2 * + col2 + - col2 / col0 AS col1 FROM tab2 AS cor0
----
1444
676
726
query I rowsort
SELECT DISTINCT - col0 * col0 + ( + col2 ) AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT ALL - - col2 * + col2 + - 84 + cor0.col0 AS col0 FROM tab1 AS cor0
----
2835
3229
9212
query I rowsort
SELECT DISTINCT - 75 * col1 FROM tab2 AS cor0
----
-1275
-2325
-4425
onlyif mysql # use DIV operator for integer division
query I rowsort label-7132
SELECT + col2 DIV col0 + - col2 * col2 * - col1 AS col2 FROM tab2 AS cor0
----
22602
24548
39884
skipif mysql # not compatible
query I rowsort label-7132
SELECT + col2 / col0 + - col2 * col2 * - col1 AS col2 FROM tab2 AS cor0
----
22602
24548
39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-7133
SELECT DISTINCT - col2 + 34 DIV cor0.col2 FROM tab0 AS cor0
----
-32
-82
33
skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT - col2 + 34 / cor0.col2 FROM tab0 AS cor0
----
-32
-82
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-7134
SELECT - col0 DIV + col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-7134
SELECT - col0 / + col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT + + col0 * - 43 AS col0 FROM tab0 AS cor0
----
-1032
-1505
-3827
query I rowsort
SELECT ALL col2 * ( - col1 ) AS col0 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT - ( - col2 ) * - col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + + cor0.col2 * - 82 FROM tab1, tab0 AS cor0
----
9 values hashing to 13c480322d6694ba12f2eb926dfd3e4f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 98 ) col2 FROM tab2 cor0
----
98
98
98
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 91 FROM tab1, tab0 AS cor0
----
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 16 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34
onlyif mysql # use DIV operator for integer division
query I rowsort label-7143
SELECT + tab1.col1 DIV - 48 col0 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7143
SELECT + tab1.col1 / - 48 col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL 22 + - col0 AS col1 FROM tab2 AS cor0
----
-56
-57
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-7145
SELECT col1 DIV 13 col1 FROM tab0
----
6
7
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7145
SELECT col1 / 13 col1 FROM tab0
----
6
7
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 36 + - cor0.col0 ) col0 FROM tab0, tab2 AS cor0
----
9 values hashing to a4b4a4db22e9d0edc92bbfeeeb514f3d
query I rowsort
SELECT DISTINCT - ( + col0 * + col1 + col1 ) FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT DISTINCT - + 8 + cor0.col0 FROM tab0 AS cor0
----
16
27
81
query I rowsort
SELECT ALL - 0 * + 26 AS col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 * col1 col0 FROM tab2
----
1085
2065
595
onlyif mysql # use DIV operator for integer division
query I rowsort label-7151
SELECT DISTINCT ( - 18 ) DIV + col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-7151
SELECT DISTINCT ( - 18 ) / + col0 FROM tab0
----
0
query I rowsort
SELECT - - col1 * + 39 + + col1 * 40 FROM tab2 AS cor0
----
1343
2449
4661
query I rowsort
SELECT tab0.col2 + 48 AS col0 FROM tab0
----
130
49
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-7154
SELECT - tab1.col2 DIV - 90 + - col1 col1 FROM tab1
----
-10
-12
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7154
SELECT - tab1.col2 / - 90 + - col1 col1 FROM tab1
----
-10
-12
-26
query I rowsort
SELECT DISTINCT + col2 - + col0 * - col2 FROM tab1 cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-7156
SELECT DISTINCT col2 * col0 + + col1 DIV - col2 FROM tab0 AS cor0
----
-62
7297
790
skipif mysql # not compatible
query I rowsort label-7156
SELECT DISTINCT col2 * col0 + + col1 / - col2 FROM tab0 AS cor0
----
-62
7297
790
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 * + col2 col0 FROM tab0 AS cor0
----
1452
3608
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-7158
SELECT - col0 + + col2 DIV - col0 AS col2 FROM tab1 AS cor0
----
-21
-64
-81
skipif mysql # not compatible
query I rowsort label-7158
SELECT - col0 + + col2 / - col0 AS col2 FROM tab1 AS cor0
----
-21
-64
-81
query I rowsort
SELECT DISTINCT + - cor0.col0 * cor0.col1 + - col1 * + 64 FROM tab0 AS cor0
----
-13923
-7568
-9603
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 * + col1 * 3 + 8 * + col2 col2 FROM tab1 cor0
----
2286
3147
5190
query I rowsort
SELECT + 53 * + col2 + 23 AS col1 FROM tab0 cor0
----
1772
4369
76
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-86
-91
-97
query I rowsort
SELECT ALL + col1 - + col1 * col2 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT + ( + col1 ) * col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT 53 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
53
query I rowsort
SELECT col1 + - col0 * - 44 FROM tab2
----
339
3491
3493
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7167
SELECT DISTINCT 99 / col0 + + CAST( NULL AS SIGNED ) * + col2 * - tab0.col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-7167
SELECT DISTINCT 99 / col0 + + CAST ( NULL AS INTEGER ) * + col2 * - tab0.col1 FROM tab0
----
NULL
query I rowsort
SELECT ALL + tab2.col0 FROM tab2, tab0 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT DISTINCT col0 + - col2 AS col1 FROM tab0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7170
SELECT ALL 2 * - col2 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL 2 * - col2 + - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7171
SELECT 91 * + col0 + + ( - 1 ) DIV col2 AS col2 FROM tab0 AS cor0
----
2184
3184
8099
skipif mysql # not compatible
query I rowsort label-7171
SELECT 91 * + col0 + + ( - 1 ) / col2 AS col2 FROM tab0 AS cor0
----
2184
3184
8099
query I rowsort
SELECT - ( col0 ) * - cor0.col0 + + col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT ALL + col1 + + col0 * + 45 FROM tab1 cor0
----
161
2890
3613
query I rowsort
SELECT - - col2 * 93 AS col2 FROM tab0 AS cor0
----
3069
7626
93
query I rowsort
SELECT + 31 * col0 + - col0 FROM tab2 AS cor0
----
210
2340
2370
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7176
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - ( + col0 ) col0 FROM tab1 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7176
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - ( + col0 ) col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT ALL col0 + col0 * col1 AS col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT + - ( + 19 ) + col0 + - col0 AS col1 FROM tab1 AS cor0
----
-19
-19
-19
query I rowsort
SELECT DISTINCT ( col0 ) * + col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + col0 + col2 - col2 * ( 52 ) FROM tab0 AS cor0
----
-16
-1659
-4093
query I rowsort
SELECT DISTINCT col0 + + 4 AS col1 FROM tab1 cor0
----
68
7
84
query I rowsort
SELECT - cor0.col2 * - cor0.col1 * - col2 + col2 * col0 - col0 FROM tab0 cor0
----
-604675
-92886
-97
query I rowsort
SELECT - col0 + + col0 - + col0 * ( col1 * col1 ) FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT + ( - 28 ) AS col0 FROM tab2 AS cor0
----
-28
-28
-28
query I rowsort
SELECT - + col0 * col1 + cor0.col0 * 63 * - col0 - - col2 FROM tab0 cor0
----
-38319
-507040
-80569
query I rowsort
SELECT ALL - ( + ( col0 ) ) * + 70 AS col2 FROM tab2 AS cor0
----
-490
-5460
-5530
query I rowsort
SELECT - 52 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to e5255b2277726ba4514ff55622dec830
query I rowsort
SELECT + + cor0.col1 * - cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 601c129c54e49286b9ededa8928121fc
query I rowsort
SELECT ALL - + 58 + 34 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f
query I rowsort
SELECT + 78 * - col1 FROM tab0 AS cor0
----
-6708
-7098
-7566
query I rowsort
SELECT + + ( - col2 ) + - col0 * col0 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT 51 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT - col2 * - 64 FROM tab0 AS cor0
----
2112
5248
64
query I rowsort
SELECT DISTINCT + + col0 + 85 AS col0 FROM tab0 AS cor0
----
109
120
174
query I rowsort
SELECT ALL - col2 + - 94 - col1 FROM tab2 AS cor0
----
-149
-152
-179
query I rowsort
SELECT + + 41 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
query I rowsort
SELECT DISTINCT - 52 + col1 + tab0.col1 AS col1 FROM tab0
----
120
130
142
query I rowsort
SELECT ALL 66 + col2 + col0 AS col2 FROM tab1
----
123
187
242
query I rowsort
SELECT + col1 * + col2 + 86 FROM tab2
----
1620
732
923
query I rowsort
SELECT DISTINCT + + ( + cor0.col0 ) * - col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + - col1 + col0 * - col0 FROM tab0 AS cor0
----
-1322
-662
-8012
query I rowsort
SELECT ALL + ( - col1 ) * + 26 FROM tab1 AS cor0
----
-260
-338
-676
query I rowsort
SELECT ALL - 36 * - tab0.col1 * 62 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 51028cc50bb6e0dfa971c4b3f114dd4f
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 ) AS col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - col0 - 62 FROM tab1 AS cor0
----
-126
-142
-65
query I rowsort
SELECT - - cor0.col2 * col1 + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 * col0 col0 FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-7210
SELECT DISTINCT col2 DIV + col1 AS col2 FROM tab2 AS cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-7210
SELECT DISTINCT col2 / + col1 AS col2 FROM tab2 AS cor0
----
0
2
query I rowsort
SELECT - cor0.col0 * + ( cor0.col2 * + col0 ) FROM tab1 cor0
----
-233472
-486
-614400
query I rowsort
SELECT DISTINCT - + cor0.col1 + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-35
-4106
-6413
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7213
SELECT - col2 * CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-7213
SELECT - col2 * CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT + col2 * - col2 + ( 55 + col1 ) FROM tab0
----
-6578
-948
151
onlyif mysql # use DIV operator for integer division
query I rowsort label-7215
SELECT col0 - + col2 DIV + ( col1 ) AS col2 FROM tab2
----
7
77
78
skipif mysql # not compatible
query I rowsort label-7215
SELECT col0 - + col2 / + ( col1 ) AS col2 FROM tab2
----
7
77
78
query I rowsort
SELECT col0 + + tab1.col1 * 15 + 13 FROM tab1
----
227
288
406
query I rowsort
SELECT col2 * - col0 + col0 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT - col2 + + col0 + - 21 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
217
257
495
query I rowsort
SELECT + col2 * + cor0.col2 * col0 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT + col1 * + 37 - col0 AS col1 FROM tab1
----
306
401
959
onlyif mysql # use DIV operator for integer division
query I rowsort label-7221
SELECT DISTINCT - tab1.col0 + + 37 DIV + col0 + col2 FROM tab1
----
-7
16
63
skipif mysql # not compatible
query I rowsort label-7221
SELECT DISTINCT - tab1.col0 + + 37 / + col0 + col2 FROM tab1
----
-7
16
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + + 5 + - col2 col0 FROM tab2 AS cor0
----
5
5
5
query I rowsort
SELECT DISTINCT + cor1.col0 AS col2 FROM tab1, tab2 AS cor0, tab1 cor1
----
3
64
80
query I rowsort
SELECT - col1 * + ( col2 ) + col1 * col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
-7
-78
-79
query I rowsort
SELECT - col1 * col2 * - col1 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT + col0 + + col2 * + 34 + col0 AS col2 FROM tab1 AS cor0
----
1842
2066
3424
query I rowsort
SELECT col2 * + 16 + col2 + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-486
384
399
query I rowsort
SELECT + - cor0.col0 + + col2 + col1 FROM tab1 AS cor0
----
29
3
77
query I rowsort
SELECT DISTINCT + ( col1 ) + col1 AS col2 FROM tab2 AS cor0
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7231
SELECT - + 1 * 66 DIV col1 FROM tab1 cor0
----
-2
-5
-6
skipif mysql # not compatible
query I rowsort label-7231
SELECT - + 1 * 66 / col1 FROM tab1 cor0
----
-2
-5
-6
query I rowsort
SELECT - 46 + col1 FROM tab0 AS cor0
----
40
45
51
query I rowsort
SELECT 79 FROM tab1, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT ALL + tab1.col2 * + col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + 29 AS col1 FROM tab0, tab0 AS cor0
----
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 38 * + cor0.col1 col2 FROM tab0 AS cor0
----
3268
3458
3686
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT - 76 * col0 + ( 51 ) FROM tab0 AS cor0
----
-1773
-2609
-6713
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7239
SELECT ALL + CAST( col1 AS SIGNED ) col1 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL + CAST ( col1 AS INTEGER ) col1 FROM tab0
----
86
91
97
query I rowsort
SELECT + 79 - col0 FROM tab1 AS cor0
----
-1
15
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT - 40 AS col2 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 01aad4539198a6509248e086869f90a6
query I rowsort
SELECT DISTINCT + - col2 + 9 * + col0 AS col1 FROM tab2 AS cor0
----
36
673
676
query I rowsort
SELECT col0 - + 64 FROM tab0 AS cor0
----
-29
-40
25
query I rowsort
SELECT cor0.col2 - + col1 FROM tab2 AS cor0
----
-33
-4
21
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + 99 AS REAL ) * + col0 FROM tab1
----
297
6336
7920
query I rowsort
SELECT DISTINCT - tab2.col1 * - 47 + - col0 * + col0 FROM tab2
----
-3311
-5442
1408
query I rowsort
SELECT DISTINCT - - cor0.col1 * col2 + + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + + col2 + + col1 * + cor0.col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT 36 + col0 * col0 AS col0 FROM tab2
----
6120
6277
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7252
SELECT CAST( NULL AS SIGNED ) * 36 + + tab1.col0 col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7252
SELECT CAST ( NULL AS INTEGER ) * 36 + + tab1.col0 col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7253
SELECT DISTINCT CAST( + col2 AS SIGNED ) + + col2 AS col0 FROM tab2
----
52
54
76
skipif mysql # not compatible
query I rowsort label-7253
SELECT DISTINCT CAST ( + col2 AS INTEGER ) + + col2 AS col0 FROM tab2
----
52
54
76
query I rowsort
SELECT DISTINCT 93 * - 16 + tab0.col1 FROM tab0
----
-1391
-1397
-1402
query I rowsort
SELECT DISTINCT - col1 + col1 * col0 AS col2 FROM tab0
----
1978
3298
8008
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7256
SELECT + CAST( NULL AS SIGNED ) + - col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7256
SELECT + CAST ( NULL AS INTEGER ) + - col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + - col1 * - 33 FROM tab0
----
2871
3085
3202
query I rowsort
SELECT 82 + + col2 * col0 * + col2 AS col1 FROM tab2 AS cor0
----
114158
5185
52810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 * col2 + col1 * col2 col0 FROM tab0 AS cor0
----
2050
31
660
query I rowsort
SELECT - - 57 AS col0 FROM tab2 AS cor0
----
57
57
57
query I rowsort
SELECT ALL + 92 - col1 AS col2 FROM tab1 AS cor0
----
66
79
82
query I rowsort
SELECT DISTINCT + - cor0.col0 * col1 + - col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT - col1 * - col1 + 50 * col1 AS col2 FROM tab2 AS cor0
----
1139
2511
6431
query I rowsort
SELECT + - ( - cor0.col2 ) + + 36 * - col1 AS col0 FROM tab2 AS cor0
----
-1089
-2098
-574
query I rowsort
SELECT ALL 33 * col1 AS col1 FROM tab2 cor0
----
1023
1947
561
query I rowsort
SELECT ( - col0 ) * ( col1 ) + - col0 * + col1 AS col1 FROM tab1 AS cor0
----
-1280
-156
-2080
query I rowsort
SELECT ALL - - col1 + + col2 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + 95 + + col1 FROM tab2 AS cor0
----
112
126
154
query I rowsort
SELECT ALL + cor0.col1 - col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + col0 + col1 + 67 FROM tab0 cor0
----
177
199
247
onlyif mysql # use DIV operator for integer division
query I rowsort label-7271
SELECT - col2 DIV + 11 col0 FROM tab1
----
-4
-5
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7271
SELECT - col2 / + 11 col0 FROM tab1
----
-4
-5
-8
query I rowsort
SELECT + col0 + 30 * col0 FROM tab2 AS cor0
----
217
2418
2449
query I rowsort
SELECT ALL - - 28 AS col2 FROM tab1 AS cor0
----
28
28
28
query I rowsort
SELECT - 92 * cor0.col2 * col0 + - ( 10 ) AS col2 FROM tab2 cor0
----
-17398
-186586
-276194
query I rowsort
SELECT ALL - ( + col2 ) AS col1 FROM tab2 cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7276
SELECT - col2 DIV ( col1 ) AS col0 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-7276
SELECT - col2 / ( col1 ) AS col0 FROM tab2
----
-2
0
0
query I rowsort
SELECT - 41 FROM tab0, tab2 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70
query I rowsort
SELECT DISTINCT - + ( - col1 ) + col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT DISTINCT + - 76 + cor0.col1 + - col0 * col0 AS col1 FROM tab2 AS cor0
----
-6101
-6300
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-7280
SELECT + + col0 * - ( col2 ) + col2 DIV col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-791
skipif mysql # not compatible
query I rowsort label-7280
SELECT + + col0 * - ( col2 ) + col2 / col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-791
query I rowsort
SELECT DISTINCT + col0 + 16 * col2 FROM tab1 AS cor0
----
1616
867
976
query I rowsort
SELECT DISTINCT 90 AS col2 FROM tab0 cor0
----
90
query I rowsort
SELECT ALL - - col0 * col0 * col2 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT ALL - + ( 88 ) FROM tab0 AS cor0
----
-88
-88
-88
query I rowsort
SELECT ALL - + col1 + - col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 * col2 * col0 + 51 col2 FROM tab0 AS cor0
----
-1629
-350253
-37965
query I rowsort
SELECT DISTINCT - col0 + + cor0.col2 * + col2 FROM tab0 AS cor0
----
-34
1065
6635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 13 col2 FROM tab0 cor0
----
1118
1183
1261
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7289
SELECT ALL + CAST( NULL AS SIGNED ) + 63 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL + CAST ( NULL AS INTEGER ) + 63 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7290
SELECT - CAST( col0 AS SIGNED ) + col0 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7290
SELECT - CAST ( col0 AS INTEGER ) + col0 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col0 ) + cor0.col1 col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT - 35 + - col1 * + col1 AS col1 FROM tab1 AS cor0
----
-135
-204
-711
query I rowsort
SELECT ALL + col0 + col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL 66 * col0 FROM tab0 AS cor0
----
1584
2310
5874
query I rowsort
SELECT ALL 15 + 81 * col1 + + 98 AS col0 FROM tab0 AS cor0
----
7079
7484
7970
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - 60 ) col2 FROM tab0 cor0
----
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7297
SELECT - CAST( - 77 AS SIGNED ) * col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7297
SELECT - CAST ( - 77 AS INTEGER ) * col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 42 + + col1 FROM tab2 AS cor0
----
-11
-25
17
query I rowsort
SELECT + + ( - 74 ) AS col0 FROM tab0 AS cor0
----
-74
-74
-74
query I rowsort
SELECT + cor0.col0 - - col0 AS col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT + + col1 * + col0 + col2 * col1 FROM tab1 AS cor0
----
1210
1482
2288
onlyif mysql # use DIV operator for integer division
query I rowsort label-7302
SELECT - - col2 DIV + col1 + - col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-7302
SELECT - - col2 / + col1 + - col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - + col0 + + col0 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 53 FROM tab2, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT - 48 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 2558735eaa258a08592aef9d33020c18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7306
SELECT ALL + + cor0.col1 + - CAST( + ( + cor0.col1 ) * - 11 AS SIGNED ) AS col2 FROM tab0 cor0
----
1032
1092
1164
skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL + + cor0.col1 + - CAST ( + ( + cor0.col1 ) * - 11 AS INTEGER ) AS col2 FROM tab0 cor0
----
1032
1092
1164
query I rowsort
SELECT DISTINCT 29 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
29
query I rowsort
SELECT DISTINCT + + col1 * col2 + + 27 * + col1 - + ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
1067
1647
3101
query I rowsort
SELECT ALL col1 * 5 AS col2 FROM tab1 AS cor0
----
130
50
65
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab1 AS cor0, tab1 cor1
----
54
57
96
query I rowsort
SELECT ALL + tab0.col0 * col0 * - col0 FROM tab0
----
-13824
-42875
-704969
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7312
SELECT DISTINCT - col2 + + CAST( + col2 AS SIGNED ) * - col1 - 26 * col1 FROM tab0 AS cor0
----
-2620
-5107
-9910
skipif mysql # not compatible
query I rowsort label-7312
SELECT DISTINCT - col2 + + CAST ( + col2 AS INTEGER ) * - col1 - 26 * col1 FROM tab0 AS cor0
----
-2620
-5107
-9910
query I rowsort
SELECT ALL col0 * ( + col1 ) + - col0 * + ( + col1 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 - - col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT - + col1 + + ( col1 ) FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + cor0.col0 * col0 col0 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT + col2 + - col0 * 56 FROM tab0 AS cor0
----
-1311
-1959
-4902
query I rowsort
SELECT ALL cor1.col1 * 40 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f690cfc113fcbc4e8309efe2dd405161
query I rowsort
SELECT + - cor0.col2 + - col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT + 8 + tab0.col1 * - ( + 91 ) FROM tab0, tab2 AS cor0
----
-7818
-8273
-8819
query I rowsort
SELECT - ( + tab1.col2 ) + col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT 0 - + cor0.col1 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT ALL + 34 * - col0 + 54 * col2 + col0 FROM tab1 AS cor0
----
2544
2817
966
query I rowsort
SELECT + 80 * - col1 AS col0 FROM tab0 AS cor0
----
-6880
-7280
-7760
query I rowsort
SELECT - col2 * cor0.col0 + - 30 * + 0 * + col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + col0 * + col2 + - 87 * + col2 AS col1 FROM tab2 AS cor0
----
-2160
-234
-304
query I rowsort
SELECT ALL + - 53 - col2 AS col1 FROM tab0 AS cor0
----
-135
-54
-86
query I rowsort
SELECT col0 + + col0 * col1 FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT col1 * - 62 FROM tab1
----
-1612
-620
-806
query I rowsort
SELECT + col0 + col0 * - col0 * - col2 + - col1 FROM tab1
----
233526
463
614467
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7331
SELECT + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7331
SELECT + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + ( cor0.col0 ) FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT tab2.col1 + + col1 + col0 AS col2 FROM tab2
----
113
196
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7334
SELECT DISTINCT - col0 + CAST( 39 AS SIGNED ) + + col0 * col1 FROM tab2
----
1303
249
4563
skipif mysql # not compatible
query I rowsort label-7334
SELECT DISTINCT - col0 + CAST ( 39 AS INTEGER ) + + col0 * col1 FROM tab2
----
1303
249
4563
query I rowsort
SELECT DISTINCT col1 * - ( tab0.col0 ) + + tab0.col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT - col1 + + 26 * col1 FROM tab0 AS cor0
----
2150
2275
2425
query I rowsort
SELECT DISTINCT - + 11 FROM tab0 AS cor0
----
-11
query I rowsort
SELECT DISTINCT - + 51 FROM tab2 AS cor0
----
-51
query I rowsort
SELECT ALL col0 * ( col1 ) + col2 FROM tab2 AS cor0
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col1 FROM tab1, tab1 AS cor0, tab2, tab2 AS cor1
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7341
SELECT CAST( ( + col2 ) * col1 AS SIGNED ) AS col1 FROM tab2
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-7341
SELECT CAST ( ( + col2 ) * col1 AS INTEGER ) AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT + ( ( col1 ) ) * col1 + - cor0.col2 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT ALL col0 * + col2 * col1 + ( - col1 ) * col2 FROM tab1 AS cor0
----
2808
35910
98592
query I rowsort
SELECT DISTINCT + + 81 FROM tab2 AS cor0
----
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7345
SELECT CAST( NULL AS SIGNED ) + 16 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7345
SELECT CAST ( NULL AS INTEGER ) + 16 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 + 69 FROM tab2 AS cor0
----
-10
-9
62
query I rowsort
SELECT DISTINCT + 57 * col0 + col2 - + cor0.col1 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
12617
2093
4239
query I rowsort
SELECT ALL - - col0 * + ( - cor0.col0 ) FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL - ( col1 * + col2 ) AS col2 FROM tab1
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-7350
SELECT DISTINCT + 11 DIV col1 AS col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-7350
SELECT DISTINCT + 11 / col1 AS col2 FROM tab0
----
0
query I rowsort
SELECT ALL - cor0.col1 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT + tab2.col2 - + 99 AS col2 FROM tab2
----
-61
-72
-73
query I rowsort
SELECT 34 * col0 + - col1 FROM tab0 AS cor0
----
1093
2935
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-7354
SELECT - ( - col0 ) + + col2 DIV 9 FROM tab1 AS cor0
----
70
9
90
skipif mysql # not compatible
query I rowsort label-7354
SELECT - ( - col0 ) + + col2 / 9 FROM tab1 AS cor0
----
70
9
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-7355
SELECT DISTINCT - - 74 + + col0 DIV + col1 FROM tab0 AS cor0
----
74
skipif mysql # not compatible
query I rowsort label-7355
SELECT DISTINCT - - 74 + + col0 / + col1 FROM tab0 AS cor0
----
74
query I rowsort
SELECT DISTINCT + + 7 * + col0 FROM tab0 AS cor0
----
168
245
623
query I rowsort
SELECT ALL + + 90 FROM tab1 cor0
----
90
90
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-7358
SELECT + ( col0 ) * col2 DIV - 64 FROM tab1
----
-120
-2
-57
skipif mysql # not compatible
query I rowsort label-7358
SELECT + ( col0 ) * col2 / - 64 FROM tab1
----
-120
-2
-57
query I rowsort
SELECT + 44 * col2 FROM tab1 AS cor0
----
2376
2508
4224
query I rowsort
SELECT ALL + + col0 + + col1 * 23 FROM tab0 AS cor0
----
2002
2182
2266
query I rowsort
SELECT DISTINCT - - col0 * 46 AS col1 FROM tab0 AS cor0
----
1104
1610
4094
onlyif mysql # use DIV operator for integer division
query I rowsort label-7362
SELECT DISTINCT + col0 DIV - ( + 29 + col1 ) FROM tab1 cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-7362
SELECT DISTINCT + col0 / - ( + 29 + col1 ) FROM tab1 cor0
----
-1
0
query I rowsort
SELECT + col0 * - col1 * + col2 AS col1 FROM tab0 cor0
----
-3395
-664118
-68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7364
SELECT cor0.col0 * + CAST( NULL AS DECIMAL ) / col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7364
SELECT cor0.col0 * + CAST ( NULL AS REAL ) / col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + + col0 * col2 AS col1 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT + col1 * 63 FROM tab2 cor0
----
1071
1953
3717
query I rowsort
SELECT 34 * cor0.col2 FROM tab1 AS cor0
----
1836
1938
3264
query I rowsort
SELECT DISTINCT + cor2.col1 + cor0.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
9 values hashing to b8b62762005dc0d7237145d0538edb34
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab0, tab0 cor1
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163
query I rowsort
SELECT ALL - cor0.col1 + 1 * col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - - col2 + + col0 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL col0 * 44 * - col2 + - col0 FROM tab1 AS cor0
----
-160576
-338000
-7131
query I rowsort
SELECT - col0 + + col2 AS col2 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT - col1 + 23 FROM tab1 AS cor0
----
-3
10
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-7375
SELECT - - cor0.col1 * - cor0.col0 + + 80 * - col2 + - col2 DIV col2 FROM tab1 cor0
----
-4399
-5201
-8721
skipif mysql # not compatible
query I rowsort label-7375
SELECT - - cor0.col1 * - cor0.col0 + + 80 * - col2 + - col2 / col2 FROM tab1 cor0
----
-4399
-5201
-8721
onlyif mysql # use DIV operator for integer division
query I rowsort label-7376
SELECT col0 + col1 DIV 70 + col0 FROM tab2
----
14
156
158
skipif mysql # not compatible
query I rowsort label-7376
SELECT col0 + col1 / 70 + col0 FROM tab2
----
14
156
158
query I rowsort
SELECT DISTINCT tab2.col0 FROM tab2, tab0, tab1 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + 65 * col2 AS col0 FROM tab1
----
3510
3705
6240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col2 * - col1 col1 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT - - col0 * ( - col1 ) + col0 * - ( 20 + col2 ) AS col2 FROM tab1 AS cor0
----
-10320
-300
-5568
query I rowsort
SELECT - cor0.col0 + - 30 * + col2 FROM tab2 AS cor0
----
-1219
-817
-858
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + cor0.col0 col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - col2 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-108
-114
-192
onlyif mysql # use DIV operator for integer division
query I rowsort label-7384
SELECT + col0 DIV + ( 75 ) + - col0 FROM tab1 AS cor0
----
-3
-64
-79
skipif mysql # not compatible
query I rowsort label-7384
SELECT + col0 / + ( 75 ) + - col0 FROM tab1 AS cor0
----
-3
-64
-79
query I rowsort
SELECT ALL ( 66 ) * tab0.col2 FROM tab0
----
2178
5412
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-7386
SELECT - 65 DIV col1 FROM tab1 cor0
----
-2
-5
-6
skipif mysql # not compatible
query I rowsort label-7386
SELECT - 65 / col1 FROM tab1 cor0
----
-2
-5
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 + col1 col2 FROM tab0 AS cor0
----
148
159
93
query I rowsort
SELECT + col2 + col0 * col1 FROM tab1
----
1136
132
697
query I rowsort
SELECT - - 67 FROM tab1 AS cor0
----
67
67
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-7390
SELECT col0 + cor0.col0 DIV col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-7390
SELECT col0 + cor0.col0 / col0 FROM tab1 AS cor0
----
4
65
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 col1 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7392
SELECT - - ( col2 ) DIV 99 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7392
SELECT - - ( col2 ) / 99 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 30 + + col0 * ( + col1 + col1 ) AS col2 FROM tab2 AS cor0
----
2716
464
9234
query I rowsort
SELECT DISTINCT 18 + col1 * col2 FROM tab1 AS cor0
----
1266
1422
588
query I rowsort
SELECT DISTINCT - cor0.col0 + col1 * + col1 AS col2 FROM tab0 cor0
----
7372
8192
9374
query I rowsort
SELECT DISTINCT col2 + - cor0.col1 * + 27 FROM tab1 AS cor0
----
-213
-255
-648
query I rowsort
SELECT + col1 + - col2 AS col0 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT - - 12 * cor0.col1 AS col0 FROM tab1 AS cor0
----
120
156
312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 * - col0 col1 FROM tab0 AS cor0
----
-192
-280
-712
query I rowsort
SELECT DISTINCT cor0.col2 + col2 * + 82 AS col1 FROM tab1 AS cor0
----
4482
4731
7968
query I rowsort
SELECT + - col0 + - 59 FROM tab0 AS cor0
----
-148
-83
-94
query I rowsort
SELECT DISTINCT - - col2 * col1 + col0 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-7403
SELECT DISTINCT - col0 + - col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-7403
SELECT DISTINCT - col0 + - col2 / + col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + 94 * ( + cor1.col2 ) * - 95 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fd88c1465e37f76c73252d6be805275d
query I rowsort
SELECT - cor0.col2 - 62 FROM tab0, tab0 AS cor0
----
9 values hashing to ef712136b3b748cc3848fbe37c87a36a
onlyif mysql # use DIV operator for integer division
query I rowsort label-7406
SELECT 91 DIV col1 + - col2 FROM tab2
----
-25
-25
-33
skipif mysql # not compatible
query I rowsort label-7406
SELECT 91 / col1 + - col2 FROM tab2
----
-25
-25
-33
query I rowsort
SELECT + 69 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT ALL - col0 + - col2 + - col1 * col1 AS col2 FROM tab2 AS cor0
----
-3585
-406
-995
query I rowsort
SELECT ALL - 31 + - col1 * cor0.col2 FROM tab0 AS cor0
----
-128
-2869
-7493
query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
7
78
79
query I rowsort
SELECT ALL ( - col1 ) * col0 + + 91 * 64 FROM tab0 AS cor0
----
-2275
2429
3760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7412
SELECT ALL + CAST( NULL AS SIGNED ) * + col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL + CAST ( NULL AS INTEGER ) * + col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - cor0.col2 + + ( col1 ) AS col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT col0 * - col2 * - 48 AS col1 FROM tab2
----
144096
9072
97344
query I rowsort
SELECT DISTINCT + col2 * col0 * + col1 AS col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT + - 85 + - col2 FROM tab0 AS cor0
----
-118
-167
-86
query I rowsort
SELECT DISTINCT - col0 + col1 + col0 * + col1 FROM tab0 AS cor0
----
2126
3457
8101
query I rowsort
SELECT DISTINCT col1 * + 34 * col2 + col0 AS col2 FROM tab2 AS cor0
----
22043
28465
52234
query I rowsort
SELECT ALL - col0 - - col1 * + col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT col0 - 90 AS col0 FROM tab0
----
-1
-55
-66
query I rowsort
SELECT ALL ( - 77 * col2 ) + col2 + - col0 FROM tab2
----
-2054
-2059
-2967
query I rowsort
SELECT ALL + col0 * col1 + - col2 * + col2 AS col2 FROM tab0 AS cor0
----
1375
3394
975
query I rowsort
SELECT DISTINCT ( cor0.col1 ) * col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + - 49 AS col2 FROM tab1 AS cor0
----
-49
query I rowsort
SELECT ALL - 84 + col1 FROM tab1 AS cor0
----
-58
-71
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-7426
SELECT ALL + ( - cor0.col1 ) DIV col1 + + col0 * col1 FROM tab0 AS cor0
----
2063
3394
8098
skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL + ( - cor0.col1 ) / col1 + + col0 * col1 FROM tab0 AS cor0
----
2063
3394
8098
query I rowsort
SELECT ALL + ( - col2 ) + + col1 AS col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT ALL - 22 AS col1 FROM tab0
----
-22
-22
-22
query I rowsort
SELECT + ( col0 ) - col0 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 * - col2 + - col0 * + 89 FROM tab2
----
-1460
-7677
-8476
query I rowsort
SELECT ALL col0 * - col2 * col0 + - 71 + + 14 FROM tab0
----
-1282
-19065
-649579
query I rowsort
SELECT DISTINCT - col0 * - 94 AS col2 FROM tab2 AS cor0
----
658
7332
7426
query I rowsort
SELECT - col1 + 9 * col0 FROM tab1 AS cor0
----
1
566
707
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col0 col1 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT col2 * - 21 - - col0 * + col1 AS col0 FROM tab1 cor0
----
-1056
-557
-976
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col0 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col2 + 19 * - col0 FROM tab2 AS cor0
----
-106
-1456
-1463
query I rowsort
SELECT - col0 * + 52 AS col1 FROM tab2 AS cor0
----
-364
-4056
-4108
query I rowsort
SELECT 0 * + cor0.col2 + col0 AS col1 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7440
SELECT - CAST( NULL AS SIGNED ) * + col1 + col0 * col2 + - col2 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7440
SELECT - CAST ( NULL AS INTEGER ) * + col1 + col0 * col2 + - col2 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( 36 ) AS col0 FROM tab0, tab0 cor0
----
-36
query I rowsort
SELECT + 80 * + col1 FROM tab0 AS cor0
----
6880
7280
7760
query I rowsort
SELECT + col0 + col0 * + col0 AS col2 FROM tab0
----
1260
600
8010
query I rowsort
SELECT DISTINCT - tab2.col2 + + tab2.col1 + + col0 AS col2 FROM tab2
----
11
111
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-7445
SELECT + col2 DIV col0 col2 FROM tab0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7445
SELECT + col2 / col0 col2 FROM tab0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * tab2.col1 * 24 + col0 col0 FROM tab2
----
110526
32311
5215
onlyif mysql # use DIV operator for integer division
query I rowsort label-7447
SELECT ALL + col1 DIV + cor0.col1 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL + col1 / + cor0.col1 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT ALL - cor0.col1 * - col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab1 AS cor0 WHERE ( NULL ) <= NULL
----
query I rowsort
SELECT ALL - col2 * + col2 + col0 - - col2 * + col1 FROM tab0
----
131
1773
827
onlyif mysql # use DIV operator for integer division
query I rowsort label-7451
SELECT + col0 DIV - col1 - col2 AS col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-7451
SELECT + col0 / - col1 - col2 AS col2 FROM tab0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7452
SELECT - tab1.col0 DIV tab1.col1 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-7452
SELECT - tab1.col0 / tab1.col1 FROM tab1
----
-6
-6
0
query I rowsort
SELECT ALL - col0 - - col1 AS col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT ALL - tab2.col0 - + col1 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT DISTINCT tab2.col2 - - col2 * col0 FROM tab2
----
2054
216
3040
query I rowsort
SELECT ALL - tab0.col0 * + col2 - - col1 AS col0 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT ALL - col0 * 10 AS col2 FROM tab2
----
-70
-780
-790
query I rowsort
SELECT ALL 1 * 38 * col1 AS col1 FROM tab2
----
1178
2242
646
query I rowsort
SELECT ALL ( - col0 + col1 ) AS col1 FROM tab2
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7460
SELECT ALL CAST( - col1 AS SIGNED ) * col2 * - col0 AS col2 FROM tab1
----
36480
4212
99840
skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL CAST ( - col1 AS INTEGER ) * col2 * - col0 AS col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT + cor0.col1 + - tab0.col2 * - tab0.col0 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 5948f7ddbded269c13236d6cb87af5b3
query I rowsort
SELECT + ( tab2.col0 ) - - tab2.col2 * + col0 AS col2 FROM tab2
----
196
2106
3081
query I rowsort
SELECT col2 * + col2 + col2 FROM tab0
----
1122
2
6806
query I rowsort
SELECT ( - col1 * col1 ) AS col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT - 56 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
query I rowsort
SELECT DISTINCT - col1 * 26 FROM tab1
----
-260
-338
-676
query I rowsort
SELECT - ( col0 ) * col0 AS col2 FROM tab2 cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 * col1 * col0 col0 FROM tab1
----
-102960
-63360
-7722
query I rowsort
SELECT - 40 + col2 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
152
68
74
query I rowsort
SELECT DISTINCT - col2 + - col1 * col0 * ( + cor0.col2 ) FROM tab1 AS cor0
----
-36537
-4266
-99936
query I rowsort
SELECT 7 + col0 AS col1 FROM tab0 AS cor0
----
31
42
96
query I rowsort
SELECT 11 + - col1 * col1 AS col2 FROM tab2 AS cor0
----
-278
-3470
-950
query I rowsort
SELECT ALL + ( col0 ) * - col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + 40 * col2 + col2 AS col1 FROM tab2 AS cor0
----
1066
1107
1558
query I rowsort
SELECT DISTINCT + 42 * col2 AS col0 FROM tab1 AS cor0
----
2268
2394
4032
query I rowsort
SELECT ALL - - col0 * + 52 FROM tab0 AS cor0
----
1248
1820
4628
query I rowsort
SELECT 16 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT DISTINCT - col0 + col0 * + col2 AS col1 FROM tab1 AS cor0
----
159
3584
7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col0 + + col2 col2 FROM tab1 AS cor0
----
-4039
-6304
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7480
SELECT CAST( 11 AS SIGNED ) * - col2 col1 FROM tab1 AS cor0
----
-1056
-594
-627
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7480
SELECT CAST ( 11 AS INTEGER ) * - col2 col1 FROM tab1 AS cor0
----
-1056
-594
-627
query I rowsort
SELECT ALL - + cor0.col0 * col0 + + ( + col1 ) AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7482
SELECT - CAST( NULL AS SIGNED ) + + ( col1 * col2 ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7482
SELECT - CAST ( NULL AS INTEGER ) + + ( col1 * col2 ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * col0 + + 54 FROM tab2 AS cor0
----
-1289
-163
-4548
query I rowsort
SELECT ALL - + 85 + - col0 * - 11 FROM tab0 AS cor0
----
179
300
894
query I rowsort
SELECT ALL + + col0 + + cor0.col1 + col2 * + col1 FROM tab2 cor0
----
1671
742
875
query I rowsort
SELECT - 57 + + col2 FROM tab1 AS cor0
----
-3
0
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-7487
SELECT DISTINCT + col0 DIV - col1 + CAST( col2 AS SIGNED ) * + col0 + col0 * + col2 * + col1 col1 FROM tab1 AS cor0
----
107514
40122
4374
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7487
SELECT DISTINCT + col0 / - col1 + CAST ( col2 AS INTEGER ) * + col0 + col0 * + col2 * + col1 col1 FROM tab1 AS cor0
----
107514
40122
4374
query I rowsort
SELECT ALL tab2.col0 * + col0 AS col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT - col2 * col1 + - col1 AS col1 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT ALL 39 - - cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 02eda61897ba61d13db8edce0ccd4b29
query I rowsort
SELECT + 70 - + col1 * + col2 AS col2 FROM tab2
----
-1464
-576
-767
query I rowsort
SELECT col2 * 34 + + col1 * 99 * col1 FROM tab1
----
11838
19995
68760
query I rowsort
SELECT - 46 + tab1.col0 + tab1.col0 FROM tab1, tab0 cor0
----
9 values hashing to ba0d1746d5fa9866b31cd3630a2ce8ca
skipif mysql # not compatible
query I rowsort
SELECT col2 + CAST ( col0 AS REAL ) AS col2 FROM tab0 cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 50 + 55 * - cor0.col1 col2 FROM tab1 AS cor0
----
-130
-50
-65
query I rowsort
SELECT col1 + - ( ( + col2 ) ) * - col2 AS col2 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT DISTINCT col2 * - col2 - col1 FROM tab2 cor0
----
-1461
-735
-760
query I rowsort
SELECT + col1 + col0 * 4 * col0 AS col1 FROM tab1 AS cor0
----
16394
25613
62
query I rowsort
SELECT ALL cor0.col0 + + ( + col1 ) * - col0 AS col2 FROM tab0 cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL - col0 + - 1 AS col0 FROM tab1 AS cor0
----
-4
-65
-81
query I rowsort
SELECT + cor0.col2 + col2 * + 64 AS col1 FROM tab0 cor0
----
2145
5330
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7502
SELECT DISTINCT + col1 - 97 * - ( col1 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7502
SELECT DISTINCT + col1 - 97 * - ( col1 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
query I rowsort
SELECT DISTINCT col0 + + col1 * - col2 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL - 29 AS col1 FROM tab0
----
-29
-29
-29
query I rowsort
SELECT DISTINCT - cor0.col0 + 38 * 13 AS col0 FROM tab2 AS cor0
----
415
416
487
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7506
SELECT - CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7506
SELECT - CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col1 + 98 FROM tab0 AS cor0
----
184
189
195
query I rowsort
SELECT + ( + cor0.col1 ) * - col0 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT col0 + ( - col2 ) FROM tab1
----
-16
-51
7
query I rowsort
SELECT ALL - col2 + ( - 42 ) * col2 FROM tab2
----
-1118
-1161
-1634
query I rowsort
SELECT ALL - + col2 - col2 * col2 AS col1 FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT + col0 * 67 FROM tab1
----
201
4288
5360
query I rowsort
SELECT col1 + ( col1 ) FROM tab0
----
172
182
194
query I rowsort
SELECT cor1.col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2, tab2 AS cor1
----
243 values hashing to 42b04a30acb32fcd35bf97afdee87fe6
query I rowsort
SELECT ALL + 62 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7516
SELECT DISTINCT + col0 DIV col1 + cor0.col0 * 42 FROM tab0 AS cor0
----
1008
1470
3738
skipif mysql # not compatible
query I rowsort label-7516
SELECT DISTINCT + col0 / col1 + cor0.col0 * 42 FROM tab0 AS cor0
----
1008
1470
3738
query I rowsort
SELECT DISTINCT + col2 * - 7 - col0 AS col2 FROM tab2 cor0
----
-196
-260
-345
query I rowsort
SELECT 70 + ( + cor0.col1 + + cor0.col1 ) FROM tab0 cor0
----
242
252
264
query I rowsort
SELECT ALL - 10 * - 19 + col2 + ( + 44 ) FROM tab1 AS cor0
----
288
291
330
query I rowsort
SELECT DISTINCT + + cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - 82 AS col2 FROM tab1 cor0
----
-82
-82
-82
query I rowsort
SELECT ALL - - col1 * + col1 + col0 * + col0 FROM tab1 AS cor0
----
4196
6569
685
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + tab1.col0 + 45 col1 FROM tab1
----
1085
123
685
query I rowsort
SELECT DISTINCT 50 + + col1 AS col2 FROM tab1
----
60
63
76
query I rowsort
SELECT ALL - col2 * col1 + cor0.col1 * + col0 FROM tab2 cor0
----
-620
3068
697
query I rowsort
SELECT - col2 * - cor0.col2 + col0 - col2 FROM tab1 AS cor0
----
2865
3256
9200
query I rowsort
SELECT DISTINCT + + col2 * + col1 * + 25 AS col2 FROM tab0 AS cor0
----
186550
2425
70950
query I rowsort
SELECT + + col0 + - col1 - + col2 AS col1 FROM tab2 AS cor0
----
-51
-7
24
query I rowsort
SELECT col2 + + col0 * + ( col2 ) + cor0.col0 * 28 FROM tab1 AS cor0
----
10016
300
5497
onlyif mysql # use DIV operator for integer division
query I rowsort label-7530
SELECT ALL + 69 DIV - col1 AS col2 FROM tab2 cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-7530
SELECT ALL + 69 / - col1 AS col2 FROM tab2 cor0
----
-1
-2
-4
query I rowsort
SELECT DISTINCT + col0 * + col0 * 71 + cor0.col0 FROM tab1 AS cor0
----
290880
454480
642
query I rowsort
SELECT DISTINCT + col1 + - cor0.col0 * col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL + col0 * + 17 AS col1 FROM tab2 AS cor0
----
119
1326
1343
query I rowsort
SELECT - - col1 - cor0.col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT col2 * col1 + - 80 AS col2 FROM tab0 AS cor0
----
17
2758
7382
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
query I rowsort
SELECT ALL - col2 * cor0.col1 * + col2 + - cor0.col2 FROM tab2 cor0
----
-22626
-24586
-39910
query I rowsort
SELECT DISTINCT - - cor1.col2 + 96 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
150
153
192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + cor0.col2 ) col1 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7540
SELECT + col2 + + 87 DIV col0 FROM tab2 AS cor0
----
27
39
39
skipif mysql # not compatible
query I rowsort label-7540
SELECT + col2 + + 87 / col0 FROM tab2 AS cor0
----
27
39
39
query I rowsort
SELECT ALL + col1 * ( + col0 ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT - cor0.col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
skipif mysql # not compatible
query I rowsort
SELECT - col0 * CAST ( col2 AS REAL ) + - col2 AS col0 FROM tab2 AS cor0
----
-2054
-216
-3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - col0 col0 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT 68 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 7ff6433dda3248dce73040b2c590f3da
query I rowsort
SELECT DISTINCT - 36 * - 90 AS col0 FROM tab1 AS cor0
----
3240
query I rowsort
SELECT ALL - 64 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to 11a0bc70e08dac4e49bd0140a49d04fb
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7548
SELECT DISTINCT CAST( 63 AS SIGNED ) FROM tab1, tab2 AS cor0, tab0 cor1, tab0 AS cor2
----
63
skipif mysql # not compatible
query I rowsort label-7548
SELECT DISTINCT CAST ( 63 AS INTEGER ) FROM tab1, tab2 AS cor0, tab0 cor1, tab0 AS cor2
----
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-7549
SELECT + cor0.col0 + col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-7549
SELECT + cor0.col0 + col2 / + col2 AS col2 FROM tab0 AS cor0
----
25
36
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7550
SELECT - CAST( NULL AS DECIMAL ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7550
SELECT - CAST ( NULL AS REAL ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 90 * ( col2 ) FROM tab1 cor0
----
4860
5130
8640
query I rowsort
SELECT DISTINCT 67 + + col0 AS col1 FROM tab0 cor0
----
102
156
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7553
SELECT DISTINCT CAST( NULL AS SIGNED ) + cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT CAST ( NULL AS INTEGER ) + cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL 76 AS col0 FROM tab1 AS cor0
----
76
76
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 col2 FROM tab1, tab2 AS cor0
----
-69
query I rowsort
SELECT - + col0 * + col0 * col2 AS col0 FROM tab1 cor0
----
-233472
-486
-614400
query I rowsort
SELECT + - 37 * - col2 AS col2 FROM tab2 AS cor0
----
1406
962
999
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7558
SELECT ALL CAST( NULL AS SIGNED ) * ( col2 * CAST( + 74 AS DECIMAL ) ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL CAST ( NULL AS INTEGER ) * ( col2 * CAST ( + 74 AS REAL ) ) FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7559
SELECT DISTINCT - col2 DIV - 14 FROM tab2
----
1
2
skipif mysql # not compatible
query I rowsort label-7559
SELECT DISTINCT - col2 / - 14 FROM tab2
----
1
2
query I rowsort
SELECT + col1 + ( - col1 ) FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 8 col2 FROM tab2, tab0 AS cor0
----
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7562
SELECT DISTINCT + col2 DIV - col1 + - 27 col1 FROM tab2 AS cor0
----
-27
-29
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7562
SELECT DISTINCT + col2 / - col1 + - 27 col1 FROM tab2 AS cor0
----
-27
-29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + col0 * + col2 col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT + + 80 + col1 FROM tab2 AS cor0
----
111
139
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7565
SELECT DISTINCT - - col2 + + CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-7565
SELECT DISTINCT - - col2 + + CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ( + col2 ) + + tab1.col2 AS col0 FROM tab1
----
108
114
192
query I rowsort
SELECT - 52 AS col1 FROM tab0
----
-52
-52
-52
query I rowsort
SELECT DISTINCT + col1 * col0 * + col0 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT + 61 FROM tab2, tab1, tab1 cor0, tab0 AS cor1
----
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7570
SELECT + CAST( col1 AS SIGNED ) * + cor0.col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-7570
SELECT + CAST ( col1 AS INTEGER ) * + cor0.col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7571
SELECT + CAST( NULL AS SIGNED ) * + cor0.col1 - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7571
SELECT + CAST ( NULL AS INTEGER ) * + cor0.col1 - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * ( - col2 + + col2 ) col0 FROM tab2
----
0
query I rowsort
SELECT + ( col1 ) + + col0 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT col2 + col1 * - col2 FROM tab0
----
-2805
-7380
-96
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - col2 + - col2 * + col1 )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + col0 )
----
query I rowsort
SELECT + col1 + - col2 * col2 * col1 - - tab2.col1 * + col1 FROM tab2
----
-21607
-24242
-36344
query I rowsort
SELECT DISTINCT + col0 + tab2.col2 * - tab2.col2 * col2 AS col0 FROM tab2
----
-17498
-19676
-54793
query III rowsort
SELECT * FROM tab1 WHERE - col0 <> + col0 + col1 - col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT tab2.col0 * col2 * - col1 + + col0 FROM tab2 WHERE NULL NOT IN ( col0 * + col2 / - col1 )
----
query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NULL NOT BETWEEN ( - col2 ) AND NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( col2 * - col0 / + col0 )
----
query I rowsort
SELECT ALL - col0 + + col0 * col1 + - col1 FROM tab1 AS cor0
----
49
566
947
query I rowsort
SELECT + col0 + - col0 + + col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL col1 * + col2 * col2 AS col0 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT DISTINCT cor0.col2 + - col2 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + col1 + col0 AS col1 FROM tab2 WHERE tab2.col2 * + col0 IN ( col0 + - tab2.col1 )
----
query I rowsort
SELECT col1 + col0 + col2 AS col0 FROM tab0 AS cor0
----
133
143
262
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col1 AND NULL
----
query I rowsort
SELECT ALL tab2.col1 * col1 * tab2.col1 AS col0 FROM tab2
----
205379
29791
4913
query III rowsort
SELECT * FROM tab0 WHERE - col0 + col0 BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7592
SELECT + col0 DIV col2 + - col2 AS col0 FROM tab1 AS cor0
----
-54
-56
-96
skipif mysql # not compatible
query I rowsort label-7592
SELECT + col0 / col2 + - col2 AS col0 FROM tab1 AS cor0
----
-54
-56
-96
query I rowsort
SELECT - + col1 * col1 + - cor0.col0 * + col0 AS col0 FROM tab1 AS cor0
----
-4196
-6569
-685
query I rowsort
SELECT + col0 * cor0.col2 - + col2 * - col2 * + col1 FROM tab1 AS cor0
----
127488
36138
75978
query I rowsort
SELECT - col0 * + col0 + + cor0.col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT ALL col0 + cor0.col0 * + col2 FROM tab1 AS cor0
----
165
3712
7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * col2 * + col1 col2 FROM tab1 AS cor0
----
16224
36504
5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-7598
SELECT ALL + + col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL + + col2 / + col0 AS col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + + cor0.col0 + - col1 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT - col2 + col2 + - cor0.col2 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT cor0.col0 * cor0.col2 + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-7602
SELECT DISTINCT col0 DIV - col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-7602
SELECT DISTINCT col0 / - col2 FROM tab0 AS cor0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * + col0 + col2 col0 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-7604
SELECT col2 DIV col0 + col0 + col1 FROM tab0 AS cor0
----
111
132
180
skipif mysql # not compatible
query I rowsort label-7604
SELECT col2 / col0 + col0 + col1 FROM tab0 AS cor0
----
111
132
180
query I rowsort
SELECT - col1 + - col2 + + col2 * - col0 * col0 AS col2 FROM tab2 AS cor0
----
-1381
-158269
-237213
query I rowsort
SELECT DISTINCT col2 * - cor0.col1 * col0 + + col1 AS col2 FROM tab1 AS cor0
----
-36470
-4186
-99827
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col0 + col1 col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL - col1 + - col2 * - col0 AS col0 FROM tab1
----
136
3638
7667
query I rowsort
SELECT ALL col1 + tab1.col1 * + col2 FROM tab1
----
1261
1430
580
query I rowsort
SELECT DISTINCT - col0 + 64 - - 83 AS col0 FROM tab0 AS cor0
----
112
123
58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7611
SELECT - col0 + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7611
SELECT - col0 + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col2 - + col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL - col1 + 4 FROM tab0 AS cor0
----
-82
-87
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * - ( col1 ) col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + - col2 + + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + - col0 + + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT - + cor0.col2 * col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - - cor0.col1 - - 46 AS col2 FROM tab1 AS cor0
----
56
59
72
query I rowsort
SELECT ALL - - cor0.col2 * cor0.col2 + + col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT ALL 1 + col2 * 78 AS col0 FROM tab2
----
2029
2107
2965
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 * col2 + + col1 * col1 col1 FROM tab2
----
-1117
259
2831
query I rowsort
SELECT + cor0.col1 * col0 + - col1 AS col0 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT + + col0 - 70 FROM tab0 AS cor0
----
-35
-46
19
query I rowsort
SELECT + 30 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 6c98840ed134c765d56389f4150075f0
query I rowsort
SELECT ALL col1 + 15 AS col0 FROM tab1
----
25
28
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + + col1 col2 FROM tab0 AS cor0
----
2
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7627
SELECT ALL col0 * 46 DIV col1 + + cor0.col2 col0 FROM tab0 AS cor0
----
126
17
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL col0 * 46 / col1 + + cor0.col2 col0 FROM tab0 AS cor0
----
126
17
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col1 col2 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT ALL + col0 + 44 - + 27 FROM tab1 AS cor0
----
20
81
97
query I rowsort
SELECT ALL tab1.col2 * ( col1 * col1 ) AS col2 FROM tab1
----
16224
36504
5700
query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) >= - col1 + col0 * col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7632
SELECT - col1 DIV - col1 AS col2 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7632
SELECT - col1 / - col1 AS col2 FROM tab2
----
1
1
1
query I rowsort
SELECT DISTINCT - col1 * col1 FROM tab2 WHERE NOT + col0 IN ( + col2 )
----
-289
-3481
-961
query I rowsort
SELECT + 61 + - col1 * + col1 FROM tab2 AS cor0
----
-228
-3420
-900
query I rowsort
SELECT ALL 40 AS col2 FROM tab2 cor0
----
40
40
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col2 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to faf91d5263c18db4877a3c30c47e2487
query I rowsort
SELECT ALL - col1 * col1 FROM tab2 WHERE NOT + col1 > NULL
----
query I rowsort
SELECT ALL - col2 - - tab0.col2 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT col0 + + col0 * - tab0.col2 FROM tab0 WHERE ( - col2 ) IN ( + col1 + col1 * - col0 )
----
query I rowsort
SELECT + col1 + + col0 + + col2 * - col2 AS col0 FROM tab0
----
-6544
-979
131
query I rowsort
SELECT + col2 + - tab0.col2 + tab0.col2 FROM tab0
----
1
33
82
query I rowsort
SELECT + + tab2.col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT + tab0.col0 * col1 + col2 AS col1 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT ALL + col0 + + col1 * - tab2.col1 AS col0 FROM tab2
----
-210
-3403
-954
query I rowsort
SELECT DISTINCT - - col1 * col1 + col1 * 88 * + col0 AS col1 FROM tab0 AS cor0
----
189028
308169
720993
query I rowsort
SELECT DISTINCT col2 * col1 - col2 AS col0 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT DISTINCT col1 + + col1 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
196
229
271
query I rowsort
SELECT ALL + 99 * - col2 FROM tab0 AS cor0
----
-3267
-8118
-99
query I rowsort
SELECT ALL - 2 + + col0 AS col0 FROM tab2 AS cor0
----
5
76
77
query I rowsort
SELECT - + ( + 20 ) FROM tab0 AS cor0
----
-20
-20
-20
query I rowsort
SELECT - ( col1 ) * - col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT + ( 82 ) FROM tab0, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT ALL + 6 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7654
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
NULL
query I rowsort
SELECT + - 5 FROM tab2, tab1 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to ede490c59604723c000449e027e5cf18
query I rowsort
SELECT + + ( + col1 ) + col0 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL col0 * - tab1.col1 + + 79 AS col2 FROM tab1
----
-561
-961
1
query I rowsort
SELECT ALL 93 * - col2 AS col0 FROM tab1 AS cor0
----
-5022
-5301
-8928
query I rowsort
SELECT + 59 + col0 AS col1 FROM tab0 cor0
----
148
83
94
query I rowsort
SELECT ALL - - col0 + cor0.col2 AS col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT - tab2.col1 * + col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - 93 + cor0.col2 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
-55
-66
-67
query I rowsort
SELECT ALL - col1 * col2 + - tab2.col1 AS col1 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT + + col1 * - 44 FROM tab0 cor0
----
-3784
-4004
-4268
query I rowsort
SELECT + col1 * + 25 AS col0 FROM tab2 AS cor0
----
1475
425
775
query I rowsort
SELECT - - col2 + col2 * col0 AS col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT 67 AS col2 FROM tab0, tab1 AS cor0
----
67
query I rowsort
SELECT + 51 + + col0 FROM tab0 AS cor0
----
140
75
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 18 col1 FROM tab0 AS cor0
----
-1602
-432
-630
query I rowsort
SELECT DISTINCT - cor0.col1 + col2 * col2 FROM tab1 AS cor0
----
2890
3239
9203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 col2 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 cor2
----
26
query I rowsort
SELECT DISTINCT + - 4 * ( - col1 ) FROM tab1 AS cor0
----
104
40
52
query I rowsort
SELECT 34 + col1 FROM tab2 AS cor0
----
51
65
93
query I rowsort
SELECT ALL + col0 - - col0 * col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT - 62 + - col0 AS col1 FROM tab1 cor0
----
-126
-142
-65
query I rowsort
SELECT ALL + col1 - - col1 * - col1 AS col0 FROM tab1
----
-156
-650
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-7677
SELECT ALL + col1 - + col0 DIV - col1 AS col0 FROM tab1
----
16
19
26
skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL + col1 - + col0 / - col1 AS col0 FROM tab1
----
16
19
26
query I rowsort
SELECT - col1 * col1 + + 31 AS col0 FROM tab1 AS cor0
----
-138
-645
-69
query I rowsort
SELECT + + 65 * + col0 AS col0 FROM tab2 AS cor0
----
455
5070
5135
onlyif mysql # use DIV operator for integer division
query I rowsort label-7680
SELECT - - col2 * col1 DIV ( col2 ) FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7680
SELECT - - col2 * col1 / ( col2 ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + + col0 * + col1 + cor0.col2 FROM tab0 cor0
----
2097
3396
8181
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7682
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - ( tab0.col0 + + col1 ) AS col1 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT + col2 + + col1 AS col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT - col2 * col0 + + col1 AS col2 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT col0 + - col0 * col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT ALL cor0.col2 * - 15 * + col1 AS col2 FROM tab1 cor0
----
-18720
-21060
-8550
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 + - col2 - col2 * cor0.col1 col1 FROM tab0 AS cor0
----
-2079
-246
-63
query I rowsort
SELECT - 43 + col1 FROM tab1 AS cor0
----
-17
-30
-33
query I rowsort
SELECT + - cor0.col0 - - col2 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT ALL - col1 + + col0 - col1 * - 23 AS col2 FROM tab1 AS cor0
----
284
366
575
onlyif mysql # use DIV operator for integer division
query I rowsort label-7692
SELECT ALL + 7 + + col2 DIV + ( 41 ) FROM tab2 AS cor0
----
7
7
7
skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL + 7 + + col2 / + ( 41 ) FROM tab2 AS cor0
----
7
7
7
query I rowsort
SELECT DISTINCT - + col0 - + col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT 31 + ( + col2 ) * - col0 AS col1 FROM tab0
----
-4
-7267
-761
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT tab0.col1 AS col2 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 * + ( 3 ) ) + + col1 * - col2 col1 FROM tab2
----
-1768
-858
-883
query I rowsort
SELECT - col1 * col0 * + tab2.col0 + + col1 FROM tab2
----
-106080
-1488
-358897
query I rowsort
SELECT DISTINCT + 53 AS col0 FROM tab2
----
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-7700
SELECT DISTINCT - col2 + + col2 DIV col0 FROM tab1 cor0
----
-36
-57
-95
skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT - col2 + + col2 / col0 FROM tab1 cor0
----
-36
-57
-95
query I rowsort
SELECT - col0 * - col0 + + 41 AS col2 FROM tab0 cor0
----
1266
617
7962
query I rowsort
SELECT ALL - tab0.col1 * - 78 * col1 FROM tab0
----
576888
645918
733902
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col1 col0 FROM tab0
----
119
173
98
query I rowsort
SELECT + cor0.col0 + 77 * col2 AS col0 FROM tab1 AS cor0
----
4161
4453
7472
query I rowsort
SELECT col0 - 8 * + ( + col2 ) AS col2 FROM tab0
----
-240
-567
27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7707
SELECT ALL + CAST( + col2 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL + CAST ( + col2 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + 59 AS col1 FROM tab1 cor0
----
59
query I rowsort
SELECT + + col2 + + col2 - cor0.col2 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + - col1 + col1 * + col1 FROM tab0 cor0
----
7310
8190
9312
query I rowsort
SELECT 70 * + col1 * col2 + - ( + col0 ) FROM tab2 AS cor0
----
107302
45141
58583
query I rowsort
SELECT ALL + 31 AS col0 FROM tab0 AS cor0
----
31
31
31
query I rowsort
SELECT DISTINCT + 96 * + cor1.col0 FROM tab2, tab1 AS cor0, tab1, tab1 AS cor1
----
288
6144
7680
query I rowsort
SELECT ( ( - col0 ) ) - col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT DISTINCT ( col1 ) + col1 AS col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL - 65 * - 9 * - col1 - col0 FROM tab1 AS cor0
----
-15213
-5914
-7685
query I rowsort
SELECT col1 * - col0 + cor0.col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ( 65 ) + - col2 AS col0 FROM tab1 AS cor0
----
-31
11
8
query I rowsort
SELECT + ( col2 ) + - col0 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7720
SELECT DISTINCT + CAST( col0 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7720
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + + col0 * 47 - + col0 * ( col1 ) FROM tab1 AS cor0
----
2368
2720
63
query I rowsort
SELECT - 59 + col0 AS col1 FROM tab0 AS cor0
----
-24
-35
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 82 col1 FROM tab0 AS cor0
----
-82
-82
-82
query I rowsort
SELECT col0 - + col0 * - col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT - 60 + cor0.col2 FROM tab1 AS cor0
----
-3
-6
36
query I rowsort
SELECT + + col2 + + cor0.col1 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL - + col0 + + col2 * + col1 AS col2 FROM tab2 cor0
----
1456
567
830
query I rowsort
SELECT DISTINCT + + 36 + cor0.col2 * - col1 + + cor0.col1 FROM tab0 AS cor0
----
-2716
-7335
36
query I rowsort
SELECT col0 - + ( + col2 ) FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT + + 37 * + col2 + col1 + col0 FROM tab0 AS cor0
----
1331
169
3214
query I rowsort
SELECT DISTINCT + col1 + col1 + - col2 AS col0 FROM tab1
----
-2
-37
-70
query I rowsort
SELECT 25 * col0 * tab0.col2 FROM tab0
----
182450
19800
875
query I rowsort
SELECT ALL + + 15 + col2 AS col1 FROM tab2 cor0
----
41
42
53
query I rowsort
SELECT 88 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT - cor0.col0 * 67 AS col0 FROM tab2 cor0
----
-469
-5226
-5293
query I rowsort
SELECT - - 3 AS col0 FROM tab0 AS cor0
----
3
3
3
query I rowsort
SELECT ALL + - 44 * cor0.col2 FROM tab2 cor0
----
-1144
-1188
-1672
query I rowsort
SELECT + + col1 + col2 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL + 75 * - col0 AS col0 FROM tab0 AS cor0
----
-1800
-2625
-6675
query I rowsort
SELECT ALL - 74 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-2442
-6068
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-7741
SELECT ALL ( + col0 ) DIV col1 AS col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-7741
SELECT ALL ( + col0 ) / col1 AS col1 FROM tab1 AS cor0
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col0 col1 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT DISTINCT col2 + - col0 * - tab1.col2 * - col2 AS col0 FROM tab1
----
-207879
-737184
-8694
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7744
SELECT ALL CAST( tab0.col0 AS SIGNED ) + tab0.col0 * + ( - col2 ) FROM tab0
----
-7209
-768
0
skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL CAST ( tab0.col0 AS INTEGER ) + tab0.col0 * + ( - col2 ) FROM tab0
----
-7209
-768
0
query I rowsort
SELECT ALL + col2 * ( + col0 ) + col1 AS col2 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT col2 + + col2 * + ( - col0 ) FROM tab1 AS cor0
----
-108
-3591
-7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - cor0.col2 col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + - col1 * 96 FROM tab2 AS cor0
----
-1632
-2976
-5664
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * ( col1 ) + + col0 col0 FROM tab1 AS cor0
----
-36
-673
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + 11 col2 FROM tab2 cor0
----
28
42
70
query I rowsort
SELECT DISTINCT - col2 * 97 AS col1 FROM tab2 AS cor0
----
-2522
-2619
-3686
query I rowsort
SELECT ALL + col0 + col1 * 37 AS col1 FROM tab2 AS cor0
----
1154
2261
708
query I rowsort
SELECT DISTINCT col1 + + col1 * ( col1 * tab2.col2 ) FROM tab2
----
10999
25978
90565
query I rowsort
SELECT 85 + - col1 FROM tab1
----
59
72
75
query I rowsort
SELECT 30 - col0 AS col1 FROM tab2
----
-48
-49
23
query I rowsort
SELECT DISTINCT col0 * ( ( col0 ) ) FROM tab1 AS cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + col2 col2 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7758
SELECT - col0 + col0 DIV col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-7758
SELECT - col0 + col0 / col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT col0 * + col0 - + col1 AS col0 FROM tab2
----
18
6025
6224
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2 cor1, tab0 cor2
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9
query I rowsort
SELECT ALL 20 + - 51 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa
onlyif mysql # use DIV operator for integer division
query I rowsort label-7762
SELECT + + col0 DIV - cor0.col1 + - 9 FROM tab0 AS cor0
----
-9
-9
-9
skipif mysql # not compatible
query I rowsort label-7762
SELECT + + col0 / - cor0.col1 + - 9 FROM tab0 AS cor0
----
-9
-9
-9
query I rowsort
SELECT col1 * col2 + - cor0.col2 FROM tab1 AS cor0
----
1152
1350
513
onlyif mysql # use DIV operator for integer division
query I rowsort label-7764
SELECT col2 + col2 DIV - 96 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-7764
SELECT col2 + col2 / - 96 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL 63 + - col1 * + col1 AS col2 FROM tab0
----
-7333
-8218
-9346
onlyif mysql # use DIV operator for integer division
query I rowsort label-7766
SELECT - - cor0.col0 * col1 + + col2 DIV - col2 + - col2 FROM tab1 AS cor0
----
23
582
943
skipif mysql # not compatible
query I rowsort label-7766
SELECT - - cor0.col0 * col1 + + col2 / - col2 + - col2 FROM tab1 AS cor0
----
23
582
943
onlyif mysql # use DIV operator for integer division
query I rowsort label-7767
SELECT col0 * col1 + + col0 DIV + col1 + - cor0.col0 FROM tab2 AS cor0
----
1268
210
4525
skipif mysql # not compatible
query I rowsort label-7767
SELECT col0 * col1 + + col0 / + col1 + - cor0.col0 FROM tab2 AS cor0
----
1268
210
4525
query I rowsort
SELECT + 83 + - col1 + - col2 FROM tab1 AS cor0
----
-26
16
3
query I rowsort
SELECT ALL + cor0.col0 + - ( cor0.col1 ) * col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT 38 * - 17 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 8c577c68dda8d19f55516574abacb4ee
query I rowsort
SELECT + col0 * col0 * + 4 FROM tab1 AS cor0
----
16384
25600
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 * + col0 col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT + ( - col2 ) + cor0.col0 * - col0 FROM tab0 AS cor0
----
-1226
-609
-8003
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7774
SELECT - CAST( NULL AS DECIMAL ) + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7774
SELECT - CAST ( NULL AS REAL ) + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7775
SELECT CAST( + col1 AS SIGNED ) * col2 + 31 AS col2 FROM tab0 AS cor0
----
128
2869
7493
skipif mysql # not compatible
query I rowsort label-7775
SELECT CAST ( + col1 AS INTEGER ) * col2 + 31 AS col2 FROM tab0 AS cor0
----
128
2869
7493
query I rowsort
SELECT - - cor1.col2 * + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aeb56f097f17f262600266df7fcf8652
query I rowsort
SELECT + 54 FROM tab0, tab1 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT + 56 FROM tab0, tab2 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 * col1 col0 FROM tab0
----
6794
7189
7663
query I rowsort
SELECT 49 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT + ( - 24 ) * + col1 * - ( col0 * + tab2.col0 + col2 ) AS col1 FROM tab2
----
2561832
56544
8651760
query I rowsort
SELECT ALL + ( tab1.col1 * tab1.col0 ) FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT + - cor0.col1 + + 11 * + col0 AS col2 FROM tab0 AS cor0
----
178
288
888
query I rowsort
SELECT + ( + 78 ) * col0 + + ( - 29 + - cor0.col1 ) * col2 AS col1 FROM tab2 AS cor0
----
-1074
3796
4414
query I rowsort
SELECT - ( + col2 ) * - col2 + - col1 AS col0 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT DISTINCT + ( + 91 * col1 ) FROM tab1
----
1183
2366
910
query I rowsort
SELECT 67 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT - 84 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4
query I rowsort
SELECT ALL + ( + col1 ) * - col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - 67 AS col0 FROM tab1 AS cor0
----
-67
query I rowsort
SELECT + cor0.col1 * col2 + - cor0.col1 - col1 * col0 AS col2 FROM tab1 AS cor0
----
-80
1300
195
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - col1 col2 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT - 75 + - 48 FROM tab2
----
-123
-123
-123
query I rowsort
SELECT + - 69 AS col0 FROM tab2 cor0
----
-69
-69
-69
onlyif mysql # use DIV operator for integer division
query I rowsort label-7795
SELECT + 92 DIV - col1 - - col2 col2 FROM tab2
----
25
25
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7795
SELECT + 92 / - col1 - - col2 col2 FROM tab2
----
25
25
33
query I rowsort
SELECT DISTINCT + 71 + col2 FROM tab2
----
109
97
98
query I rowsort
SELECT ALL col2 + col2 * 65 AS col1 FROM tab0
----
2178
5412
66
query I rowsort
SELECT DISTINCT - cor0.col2 + col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL cor0.col0 * cor0.col0 - col2 AS col0 FROM tab0 AS cor0
----
1224
543
7839
onlyif mysql # use DIV operator for integer division
query I rowsort label-7800
SELECT ALL col1 DIV + col1 col0 FROM tab1
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL col1 / + col1 col0 FROM tab1
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7801
SELECT + 75 DIV cor0.col1 col1 FROM tab1, tab2 cor0
----
9 values hashing to 36d00a2b29852f88ac26d257535464fb
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7801
SELECT + 75 / cor0.col1 col1 FROM tab1, tab2 cor0
----
9 values hashing to 36d00a2b29852f88ac26d257535464fb
query I rowsort
SELECT DISTINCT col0 * - 50 * - tab0.col2 FROM tab0
----
1750
364900
39600
onlyif mysql # use DIV operator for integer division
query I rowsort label-7803
SELECT + 13 + + 58 DIV col0 FROM tab1 AS cor0
----
13
13
32
skipif mysql # not compatible
query I rowsort label-7803
SELECT + 13 + + 58 / col0 FROM tab1 AS cor0
----
13
13
32
query I rowsort
SELECT DISTINCT col2 * + col0 * + col0 AS col2 FROM tab1
----
233472
486
614400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7805
SELECT + CAST( NULL AS SIGNED ) + cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7805
SELECT + CAST ( NULL AS INTEGER ) + cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 + 49 * + col1 AS col0 FROM tab1 AS cor0
----
1328
547
733
query I rowsort
SELECT col1 * 8 * col1 AS col2 FROM tab0 AS cor0
----
59168
66248
75272
query I rowsort
SELECT ALL - + col1 + + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + 96 + + ( col2 ) FROM tab1 cor0
----
150
153
192
query I rowsort
SELECT ALL - 48 * + col2 * + col2 AS col1 FROM tab1 AS cor0
----
-139968
-155952
-442368
query I rowsort
SELECT + col2 * col2 * - cor0.col0 + + col2 AS col1 FROM tab0 AS cor0
----
-26103
-34
-598354
query I rowsort
SELECT DISTINCT + col2 * - 34 * cor0.col2 + + col1 AS col0 FROM tab1 AS cor0
----
-110456
-313331
-99118
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 32 * cor0.col0 col2 FROM tab2 AS cor0
----
251
2522
2566
query I rowsort
SELECT DISTINCT - col0 * 59 * - cor0.col2 FROM tab0 AS cor0
----
2065
430582
46728
query I rowsort
SELECT + col1 - ( + cor0.col2 ) FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + 54 + - 12 FROM tab2, tab1 cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7817
SELECT ALL col2 * CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL col2 * CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 54 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211
query I rowsort
SELECT - col1 * col1 + col1 - + col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT - col2 * 73 AS col0 FROM tab1
----
-3942
-4161
-7008
query I rowsort
SELECT - col2 + + 38 FROM tab1 AS cor0
----
-16
-19
-58
query I rowsort
SELECT - 23 AS col1 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to c8c4f0bd925413f7f95df1d166aef9dd
query I rowsort
SELECT DISTINCT - col0 * ( ( col1 ) * cor0.col2 ) FROM tab1 AS cor0
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-7824
SELECT ALL + + col1 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL + + col1 / - col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + 66 + - col2 FROM tab1
----
-17
19
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7826
SELECT DISTINCT + - 83 DIV col1 - cor0.col1 * 30 FROM tab1 cor0
----
-308
-396
-783
skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT + - 83 / col1 - cor0.col1 * 30 FROM tab1 cor0
----
-308
-396
-783
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col1 AS REAL ) + - tab1.col0 col0 FROM tab1
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7828
SELECT ALL CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7829
SELECT col0 - + col0 DIV - col0 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-7829
SELECT col0 - + col0 / - col0 FROM tab1
----
4
65
81
query I rowsort
SELECT DISTINCT - ( col2 ) + cor0.col1 - 76 FROM tab1 cor0
----
-104
-123
-159
query I rowsort
SELECT ALL + col1 + col2 + ( - col0 ) FROM tab2 cor0
----
-24
51
7
query I rowsort
SELECT DISTINCT + col1 * col1 - - 33 AS col1 FROM tab0 AS cor0
----
7429
8314
9442
query I rowsort
SELECT ALL + col0 * col1 + - 18 AS col0 FROM tab0 AS cor0
----
2046
3377
8081
query I rowsort
SELECT + - 68 * - col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
1794
1863
2622
query I rowsort
SELECT DISTINCT - + col2 + + col1 * - cor0.col1 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT - ( col2 ) AS col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT ALL cor0.col2 + - col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT tab0.col1 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT col1 * tab1.col1 AS col1 FROM tab1
----
100
169
676
query I rowsort
SELECT ALL - - col1 * col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-7841
SELECT DISTINCT + - col2 DIV col1 col0 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7841
SELECT DISTINCT + - col2 / col1 col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - + col2 + col1 * cor0.col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT ALL + col1 + - 35 FROM tab1 AS cor0
----
-22
-25
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7844
SELECT DISTINCT + + col1 DIV + col2 + + cor0.col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7844
SELECT DISTINCT + + col1 / + col2 + + cor0.col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - - col0 * ( + 16 ) AS col0 FROM tab0 cor0
----
1424
384
560
query I rowsort
SELECT ALL 47 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2, tab0 AS cor3
----
243 values hashing to 79962577c0add9c47b55da7472585e96
query I rowsort
SELECT ALL col0 + ( - 30 ) AS col1 FROM tab0 cor0
----
-6
5
59
query I rowsort
SELECT DISTINCT + + col1 * col0 + - col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT ALL cor0.col0 * 95 FROM tab0 AS cor0
----
2280
3325
8455
query I rowsort
SELECT col0 * + 5 AS col1 FROM tab0 cor0
----
120
175
445
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7851
SELECT DISTINCT - CAST( col1 AS SIGNED ) + col1 + + ( - ( cor0.col0 ) + 38 * ( - col0 ) ) FROM tab1 AS cor0
----
-117
-2496
-3120
skipif mysql # not compatible
query I rowsort label-7851
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + col1 + + ( - ( cor0.col0 ) + 38 * ( - col0 ) ) FROM tab1 AS cor0
----
-117
-2496
-3120
query I rowsort
SELECT - 48 FROM tab2 cor0
----
-48
-48
-48
query I rowsort
SELECT DISTINCT + col0 + + col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 * col1 + - col1 + 7 col1 FROM tab2 AS cor0
----
1673
3045
5789
query I rowsort
SELECT ALL + - col0 * - 57 FROM tab1 AS cor0
----
171
3648
4560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7856
SELECT - CAST( - cor0.col2 AS SIGNED ) * col0 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-7856
SELECT - CAST ( - cor0.col2 AS INTEGER ) * col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT 90 * col0 + + col1 AS col0 FROM tab1 AS cor0
----
296
5770
7213
query I rowsort
SELECT - 97 * - ( col0 ) * - ( col1 + + col2 ) AS col0 FROM tab1 AS cor0
----
-23280
-415936
-845840
query I rowsort
SELECT DISTINCT + - col0 * - col0 + col2 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7860
SELECT - CAST( NULL AS DECIMAL ) * col0 + - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7860
SELECT - CAST ( NULL AS REAL ) * col0 + - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 42 * col2 AS col2 FROM tab1 AS cor0
----
-2268
-2394
-4032
query I rowsort
SELECT col2 * - 8 AS col1 FROM tab1 AS cor0
----
-432
-456
-768
query I rowsort
SELECT ALL - ( 27 ) AS col0 FROM tab1 AS cor0
----
-27
-27
-27
query I rowsort
SELECT - 21 + col1 + col0 AS col1 FROM tab2 AS cor0
----
116
17
75
query I rowsort
SELECT ALL col2 * col2 * col2 FROM tab2 cor0
----
17576
19683
54872
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7866
SELECT + + CAST( + col2 AS SIGNED ) * cor0.col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-7866
SELECT + + CAST ( + col2 AS INTEGER ) * cor0.col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - 89 * col2 AS col2 FROM tab0 AS cor0
----
-2937
-7298
-89
query I rowsort
SELECT 23 * col2 * + 49 FROM tab2 AS cor0
----
29302
30429
42826
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 91 * + col2 col2 FROM tab0 AS cor0
----
-3003
-7462
-91
query I rowsort
SELECT ALL - 93 AS col0 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 + + col1 + ( - col1 + ( - 1 ) ) col1 FROM tab0 AS cor0
----
-2065
-3396
-8100
query I rowsort
SELECT ALL col2 + tab2.col0 * + col2 AS col1 FROM tab2
----
2054
216
3040
query I rowsort
SELECT ALL 48 AS col1 FROM tab0
----
48
48
48
query I rowsort
SELECT ALL ( - tab0.col1 + - col0 ) * - col0 FROM tab0
----
16020
2640
4620
query I rowsort
SELECT + 1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT 4 * + col0 AS col0 FROM tab1
----
12
256
320
query I rowsort
SELECT + 98 + col2 AS col1 FROM tab2 AS cor0
----
124
125
136
query I rowsort
SELECT ALL 64 FROM tab2, tab0 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT + cor0.col2 * - col2 + cor0.col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7880
SELECT - - col0 + - col0 * + CAST( col2 + + col2 AS SIGNED ) FROM tab0 AS cor0
----
-14507
-1560
-35
skipif mysql # not compatible
query I rowsort label-7880
SELECT - - col0 + - col0 * + CAST ( col2 + + col2 AS INTEGER ) FROM tab0 AS cor0
----
-14507
-1560
-35
query I rowsort
SELECT - 51 + + col0 AS col0 FROM tab0 AS cor0
----
-16
-27
38
query I rowsort
SELECT - ( - col0 ) * col1 FROM tab1 cor0
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7883
SELECT + cor0.col0 * col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7883
SELECT + cor0.col0 * col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + 96 + - col1 * + col2 * 76 FROM tab0 AS cor0
----
-215592
-567016
-7276
query I rowsort
SELECT DISTINCT - col0 * col2 - col1 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 54 col0 FROM tab1
----
-162
-3456
-4320
query I rowsort
SELECT - 59 + col2 FROM tab2 AS cor0
----
-21
-32
-33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7888
SELECT + CAST( 6 * + col2 AS SIGNED ) AS col2 FROM tab2
----
156
162
228
skipif mysql # not compatible
query I rowsort label-7888
SELECT + CAST ( 6 * + col2 AS INTEGER ) AS col2 FROM tab2
----
156
162
228
query I rowsort
SELECT 99 * - cor0.col1 - col2 AS col2 FROM tab1 AS cor0
----
-1047
-1383
-2628
query I rowsort
SELECT DISTINCT col2 * - col2 + 72 FROM tab1 AS cor0
----
-2844
-3177
-9144
query I rowsort
SELECT + + col0 + - cor0.col2 * + ( 17 ) FROM tab2 AS cor0
----
-364
-452
-567
query I rowsort
SELECT ALL + + col1 * col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT col2 * 60 AS col1 FROM tab0 AS cor0
----
1980
4920
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7894
SELECT + + cor0.col0 * CAST( col0 AS SIGNED ) + + col2 FROM tab2 AS cor0
----
6110
6279
76
skipif mysql # not compatible
query I rowsort label-7894
SELECT + + cor0.col0 * CAST ( col0 AS INTEGER ) + + col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT + col2 + 59 FROM tab0 AS cor0
----
141
60
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7896
SELECT - CAST( NULL AS DECIMAL ) * - 37 + - col2 * - cor0.col2 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7896
SELECT - CAST ( NULL AS REAL ) * - 37 + - col2 * - cor0.col2 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 3 + 39 col2 FROM tab2 AS cor0
----
42
42
42
query I rowsort
SELECT 29 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT ALL + col0 * + tab0.col0 * - tab0.col0 AS col1 FROM tab0
----
-13824
-42875
-704969
query I rowsort
SELECT - cor1.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7901
SELECT ALL - CAST( NULL AS SIGNED ) + - 50 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL - CAST ( NULL AS INTEGER ) + - 50 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 71 * col1 * - col0 AS col1 FROM tab2 AS cor0
----
-15407
-326742
-95353
query I rowsort
SELECT ALL - 96 * - col0 FROM tab2 AS cor0
----
672
7488
7584
query I rowsort
SELECT ALL + col1 * - 49 FROM tab2
----
-1519
-2891
-833
query I rowsort
SELECT - col0 * + 45 AS col0 FROM tab0 AS cor0
----
-1080
-1575
-4005
query I rowsort
SELECT DISTINCT + 48 AS col0 FROM tab2 cor0
----
48
query I rowsort
SELECT + + ( cor0.col0 ) * + col0 * cor0.col1 AS col0 FROM tab2 cor0
----
106097
1519
358956
query I rowsort
SELECT - 72 * col1 + + 11 AS col2 FROM tab0 AS cor0
----
-6181
-6541
-6973
onlyif mysql # use DIV operator for integer division
query I rowsort label-7909
SELECT + 59 * col0 DIV - col0 + - 4 * col0 FROM tab2 AS cor0
----
-371
-375
-87
skipif mysql # not compatible
query I rowsort label-7909
SELECT + 59 * col0 / - col0 + - 4 * col0 FROM tab2 AS cor0
----
-371
-375
-87
query I rowsort
SELECT DISTINCT ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + ( col2 ) * cor0.col0 + col1 FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7912
SELECT DISTINCT + col0 * - CAST( - cor0.col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT + col0 * - CAST ( - cor0.col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - + 82 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7914
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) + + 39 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7914
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) + + 39 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - col1 + + col2 * + col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT - + cor0.col1 AS col0 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - cor0.col0 - 80 * + 23 AS col0 FROM tab1 AS cor0
----
-1843
-1904
-1920
onlyif mysql # use DIV operator for integer division
query I rowsort label-7918
SELECT - col1 - col2 DIV + 81 AS col0 FROM tab1
----
-10
-14
-26
skipif mysql # not compatible
query I rowsort label-7918
SELECT - col1 - col2 / + 81 AS col0 FROM tab1
----
-10
-14
-26
query I rowsort
SELECT - 27 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a
query I rowsort
SELECT col1 * col0 + + 51 AS col1 FROM tab2 cor0
----
1394
268
4653
query I rowsort
SELECT + - col2 * 36 * + col1 FROM tab2 AS cor0
----
-23256
-30132
-55224
query I rowsort
SELECT col2 + + 72 * - col2 * col1 FROM tab2 cor0
----
-110422
-46474
-60237
query I rowsort
SELECT + col1 * + col2 + + col1 * col1 FROM tab0 WHERE NOT ( NULL ) IN ( + col1 + - col2 )
----
query I rowsort
SELECT - col2 + - col1 * tab1.col1 FROM tab1
----
-157
-265
-730
query I rowsort
SELECT col1 + cor0.col2 * + col1 * - col0 FROM tab0 AS cor0
----
-3298
-664027
-68026
query I rowsort
SELECT ALL + - col2 * + col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-7927
SELECT DISTINCT + - cor0.col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT + - cor0.col0 / + col0 AS col2 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT ALL + cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7929
SELECT ALL - + col0 DIV col2 FROM tab1 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL - + col0 / col2 FROM tab1 cor0
----
-1
0
0
query I rowsort
SELECT col2 * + col2 + + col1 * col0 / + col2 FROM tab2 AS cor0 WHERE cor0.col1 IN ( - col2 + col0 )
----
query I rowsort
SELECT DISTINCT + cor0.col2 * col2 * col2 + + col1 * + col1 AS col2 FROM tab2 AS cor0 WHERE NULL = ( + col1 )
----
query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 + - cor0.col0 IN ( cor0.col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT tab0.col1 + col2 * col2 FROM tab0
----
1175
6815
98
query I rowsort
SELECT ALL + tab2.col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT cor0.col2 * + col2 * col2 FROM tab0 AS cor0
----
1
35937
551368
query I rowsort
SELECT DISTINCT col0 * col0 + cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
1261
633
8092
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 + - col1 col2 FROM tab2 AS cor0
----
100
3
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-7940
SELECT ALL col0 DIV col0 col2 FROM tab0 cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL col0 / col0 col2 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT ALL + col1 * col0 + cor0.col2 * cor0.col0 FROM tab2 AS cor0
----
406
4345
6630
query I rowsort
SELECT ALL - col0 * cor0.col1 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT ALL + cor0.col0 * - col2 AS col0 FROM tab0 cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col2 * col2 + cor0.col1 * col2 col1 FROM tab2 AS cor0
----
1535
2073
2151
onlyif mysql # use DIV operator for integer division
query I rowsort label-7945
SELECT tab0.col2 DIV tab0.col2 + col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-7945
SELECT tab0.col2 / tab0.col2 + col1 FROM tab0
----
87
92
98
query I rowsort
SELECT DISTINCT - tab2.col2 + - col1 + col2 * + col0 AS col0 FROM tab2
----
131
1943
2947
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 + + col2 * col2 col1 FROM tab2
----
1465
643
725
query I rowsort
SELECT + - col1 + + col0 * - col1 * + col0 AS col0 FROM tab2 AS cor0
----
-106114
-1550
-359015
query I rowsort
SELECT cor0.col1 * + col0 * col0 FROM tab1 cor0
----
234
40960
83200
query I rowsort
SELECT ALL + - cor0.col1 + col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7951
SELECT ALL - col0 + cor0.col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL - col0 + cor0.col2 / - col2 AS col0 FROM tab1 AS cor0
----
-4
-65
-81
query I rowsort
SELECT + tab0.col2 + col0 * tab0.col2 AS col0 FROM tab0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-7953
SELECT DISTINCT - cor0.col2 DIV cor0.col2 FROM tab0, tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-7953
SELECT DISTINCT - cor0.col2 / cor0.col2 FROM tab0, tab1 AS cor0
----
-1
query I rowsort
SELECT + tab0.col0 * + tab0.col1 * tab0.col1 + - tab0.col2 AS col1 FROM tab0
----
177471
329314
736927
query I rowsort
SELECT + tab2.col0 + tab2.col0 * col0 FROM tab2
----
56
6162
6320
query I rowsort
SELECT 65 * col1 + 42 * + col2 FROM tab0 AS cor0
----
6347
6976
9359
query I rowsort
SELECT col1 * col0 + 69 FROM tab2 AS cor0
----
1412
286
4671
onlyif mysql # use DIV operator for integer division
query I rowsort label-7958
SELECT ALL + cor0.col1 DIV + col0 + - col2 FROM tab0 AS cor0
----
-30
-81
1
skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL + cor0.col1 / + col0 + - col2 FROM tab0 AS cor0
----
-30
-81
1
query I rowsort
SELECT ALL + col0 + cor0.col2 AS col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT - col0 + + col0 - + col2 FROM tab2 WHERE NOT NULL NOT IN ( - tab2.col2 + tab2.col2 * tab2.col0 )
----
query I rowsort
SELECT + col2 * - col0 + col2 * col1 FROM tab0
----
164
2046
62
query I rowsort
SELECT DISTINCT col1 - col0 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( col0 )
----
query III rowsort
SELECT * FROM tab0 WHERE + col1 + + col2 BETWEEN NULL AND NULL
----
query I rowsort
SELECT + col2 + tab1.col1 + + col0 FROM tab1
----
131
189
83
query I rowsort
SELECT DISTINCT - 68 * - 51 AS col1 FROM tab0, tab1 cor0, tab1 AS cor1
----
3468
query I rowsort
SELECT ALL 46 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602
query I rowsort
SELECT - tab0.col0 * tab0.col1 - col0 AS col1 FROM tab0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT + col0 * tab0.col2 AS col0 FROM tab0
----
35
7298
792
query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7970
SELECT DISTINCT - col2 DIV - tab2.col1 FROM tab2
----
0
2
skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT - col2 / - tab2.col1 FROM tab2
----
0
2
query I rowsort
SELECT col0 + col1 - col2 FROM tab0
----
131
77
98
query I rowsort
SELECT DISTINCT col1 * - col0 * + tab2.col0 AS col1 FROM tab2
----
-106097
-1519
-358956
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( - col2 + col0 * + col1 ) AND ( NULL )
----
query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT ( col0 + col2 ) IN ( col2 * col0 * + col1 )
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 * + col1 + col1 col2 FROM tab0
----
177590
329412
737100
query I rowsort
SELECT col0 + cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT col1 * - tab2.col0 + - col2 AS col2 FROM tab2
----
-1381
-244
-4628
query I rowsort
SELECT tab0.col2 * col1 + col0 FROM tab0
----
132
2862
7551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 * + col2 + + col2 col1 FROM tab0
----
2871
7544
98
query I rowsort
SELECT ALL col1 * - col1 * col2 AS col1 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND + tab0.col1
----
query I rowsort
SELECT DISTINCT + col1 * + col1 - - col0 FROM tab0
----
7420
8370
9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-7983
SELECT tab1.col1 DIV tab1.col1 + col0 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-7983
SELECT tab1.col1 / tab1.col1 + col0 FROM tab1
----
4
65
81
query I rowsort
SELECT + col2 * + tab0.col0 * col2 - + col2 AS col0 FROM tab0
----
26103
34
598354
query I rowsort
SELECT ALL + tab2.col0 AS col0 FROM tab2 WHERE ( col1 ) BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL col2 * col2 / col1 FROM tab0 WHERE NOT ( col1 ) NOT IN ( tab0.col2 )
----
query I rowsort
SELECT ALL col0 + col0 FROM tab1 WHERE NULL NOT IN ( col1 * + tab1.col1 + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7988
SELECT ALL - col0 * col2 DIV col1 AS col0 FROM tab2
----
-176
-34
-6
skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL - col0 * col2 / col1 AS col0 FROM tab2
----
-176
-34
-6
query I rowsort
SELECT - tab0.col0 * + col0 + - col1 + + col1 FROM tab0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-7990
SELECT ALL col2 * col2 DIV col1 FROM tab1
----
112
324
708
skipif mysql # not compatible
query I rowsort label-7990
SELECT ALL col2 * col2 / col1 FROM tab1
----
112
324
708
query I rowsort
SELECT DISTINCT + + col1 * + 0 - + col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL 65 * tab0.col0 FROM tab0
----
1560
2275
5785
query I rowsort
SELECT DISTINCT 5 FROM tab2, tab0, tab1 AS cor0
----
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( - col1 ) col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7995
SELECT + + col2 * CAST( cor0.col1 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
1328
1407
634
skipif mysql # not compatible
query I rowsort label-7995
SELECT + + col2 * CAST ( cor0.col1 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL + ( + col0 ) * + col1 FROM tab0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 94 col1 FROM tab1 AS cor0
----
-94
-94
-94
query I rowsort
SELECT 19 * + col0 AS col0 FROM tab2 AS cor0
----
133
1482
1501
query I rowsort
SELECT DISTINCT + 33 + col2 * - col2 FROM tab0 AS cor0
----
-1056
-6691
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-8000
SELECT ALL + - 32 DIV + 57 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL + - 32 / + 57 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + - ( ( + col0 ) ) AS col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT 39 * - cor0.col2 FROM tab0 AS cor0
----
-1287
-3198
-39
query I rowsort
SELECT 6 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
query I rowsort
SELECT DISTINCT 61 AS col0 FROM tab2
----
61
query I rowsort
SELECT + 14 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT - 77 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - col0 + col2 + - ( - ( + col0 ) + ( col0 ) ) FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT + + 66 * + col1 FROM tab2 AS cor0
----
1122
2046
3894
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * 83 * col0 col0 FROM tab0 AS cor0
----
-101675
-47808
-657443
query I rowsort
SELECT col0 + + cor0.col0 * col1 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-8012
SELECT ALL - col1 + col1 DIV col0 FROM tab2 AS cor0
----
-17
-27
-59
skipif mysql # not compatible
query I rowsort label-8012
SELECT ALL - col1 + col1 / col0 FROM tab2 AS cor0
----
-17
-27
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 + - cor0.col0 col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT col2 * + ( + cor0.col1 ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT col0 + 45 * 93 AS col0 FROM tab0 AS cor0
----
4209
4220
4274
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col2 FROM tab2, tab2 cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT - col0 + 30 * col2 AS col0 FROM tab2 cor0
----
1061
702
803
query I rowsort
SELECT ALL - ( - cor0.col1 ) - col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + ( + cor0.col0 ) + col0 AS col0 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT ( col1 ) * + col2 FROM tab2
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 * col0 + - 79 * - col1 col2 FROM tab1 AS cor0
----
2242
4448
8720
query I rowsort
SELECT DISTINCT + col0 * + 56 * + col0 + col2 FROM tab0
----
32289
443658
68601
query I rowsort
SELECT DISTINCT 39 + 62 + tab1.col2 FROM tab1
----
155
158
197
query I rowsort
SELECT + ( + col1 ) * col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT + ( - col1 ) * col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT - 21 + + col0 FROM tab0
----
14
3
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8027
SELECT CAST( - col2 AS SIGNED ) + tab1.col1 * - col1 FROM tab1
----
-157
-265
-730
skipif mysql # not compatible
query I rowsort label-8027
SELECT CAST ( - col2 AS INTEGER ) + tab1.col1 * - col1 FROM tab1
----
-157
-265
-730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 + col1 * + col0 col2 FROM tab2
----
1425
299
4684
query I rowsort
SELECT ALL 19 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498
query I rowsort
SELECT DISTINCT - 47 AS col2 FROM tab1, tab2 AS cor0
----
-47
query I rowsort
SELECT DISTINCT + col1 * col0 - col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT + cor0.col0 * + cor0.col1 + 95 AS col1 FROM tab0 cor0
----
2159
3490
8194
query I rowsort
SELECT col0 + - ( - 89 * col0 ) AS col2 FROM tab0 AS cor0
----
2160
3150
8010
query I rowsort
SELECT ALL - col2 + 41 AS col2 FROM tab1 cor0
----
-13
-16
-55
query I rowsort
SELECT DISTINCT - + col2 + - 37 AS col0 FROM tab0 AS cor0
----
-119
-38
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8036
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0, tab2, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-8036
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0, tab2, tab0 AS cor1
----
NULL
query I rowsort
SELECT ALL col2 - + col0 * + col1 AS col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT DISTINCT 25 - + 10 AS col1 FROM tab1 cor0
----
15
query I rowsort
SELECT DISTINCT - - ( - col0 ) + col1 AS col2 FROM tab1 cor0
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + col2 ) col1 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8041
SELECT ALL - ( 73 ) * + col1 + - cor0.col2 DIV col0 + col0 * col1 FROM tab1 AS cor0
----
-1838
-90
90
skipif mysql # not compatible
query I rowsort label-8041
SELECT ALL - ( 73 ) * + col1 + - cor0.col2 / col0 + col0 * col1 FROM tab1 AS cor0
----
-1838
-90
90
query I rowsort
SELECT DISTINCT + - ( + col0 ) + col2 * + 86 AS col1 FROM tab1 cor0
----
4641
4838
8176
onlyif mysql # use DIV operator for integer division
query I rowsort label-8043
SELECT ALL - ( 65 ) * col1 + + col1 DIV col1 FROM tab0 AS cor0
----
-5589
-5914
-6304
skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL - ( 65 ) * col1 + + col1 / col1 FROM tab0 AS cor0
----
-5589
-5914
-6304
query I rowsort
SELECT - col2 + tab1.col0 * ( - col0 ) + + col0 FROM tab1
----
-4089
-60
-6416
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 - 0 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT - col0 * tab0.col0 + + ( + col1 ) FROM tab0
----
-1128
-490
-7830
query I rowsort
SELECT DISTINCT col1 * col1 + + col1 * - tab2.col1 FROM tab2
----
0
query I rowsort
SELECT - col0 * col2 * ( - 91 ) FROM tab1 AS cor0
----
14742
331968
698880
query I rowsort
SELECT ALL + 23 * col0 AS col0 FROM tab0 AS cor0
----
2047
552
805
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * col1 col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT col0 + ( col0 ) * col0 FROM tab1 AS cor0
----
12
4160
6480
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8052
SELECT col1 * - CAST( NULL AS DECIMAL ) + 44 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8052
SELECT col1 * - CAST ( NULL AS REAL ) + 44 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * - 50 FROM tab0 AS cor0
----
-1200
-1750
-4450
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * - col0 col1 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-8055
SELECT - col1 + - ( col0 + cor0.col1 ) DIV + 64 AS col0 FROM tab0 AS cor0
----
-87
-93
-99
skipif mysql # not compatible
query I rowsort label-8055
SELECT - col1 + - ( col0 + cor0.col1 ) / + 64 AS col0 FROM tab0 AS cor0
----
-87
-93
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * 85 col0 FROM tab1 cor0
----
-4590
-4845
-8160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + ( + col1 ) * - col2 col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL + 67 + - col1 FROM tab1
----
41
54
57
query I rowsort
SELECT col2 * col0 + cor0.col1 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT ALL - col1 * col1 + col0 FROM tab0 AS cor0
----
-7372
-8192
-9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-8061
SELECT ALL + col0 DIV 97 + - cor0.col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-8061
SELECT ALL + col0 / 97 + - cor0.col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + - cor0.col2 + col2 * col2 AS col0 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT 60 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8064
SELECT ALL - col1 * CAST( 31 AS SIGNED ) AS col2 FROM tab2
----
-1829
-527
-961
skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL - col1 * CAST ( 31 AS INTEGER ) AS col2 FROM tab2
----
-1829
-527
-961
query I rowsort
SELECT - col1 + col1 + + ( - col2 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT col2 * - ( col0 ) * + col2 + 74 * + col2 AS col1 FROM tab0 AS cor0
----
-23694
-592368
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8067
SELECT + cor0.col1 + CAST( 43 AS SIGNED ) * col0 * - col2 AS col2 FROM tab1 AS cor0
----
-156854
-330227
-6940
skipif mysql # not compatible
query I rowsort label-8067
SELECT + cor0.col1 + CAST ( 43 AS INTEGER ) * col0 * - col2 AS col2 FROM tab1 AS cor0
----
-156854
-330227
-6940
query I rowsort
SELECT + col1 * - col2 * col2 AS col0 FROM tab2 cor0
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT + col1 + col2 * + col2 * col0 AS col1 FROM tab1
----
207946
737293
8774
query I rowsort
SELECT 99 * col0 + + col1 * ( col2 ) FROM tab0 AS cor0
----
16273
3562
5214
onlyif mysql # use DIV operator for integer division
query I rowsort label-8071
SELECT - col1 + col0 DIV col1 + - ( - col2 + col2 ) AS col0 FROM tab2 cor0
----
-13
-31
-58
skipif mysql # not compatible
query I rowsort label-8071
SELECT - col1 + col0 / col1 + - ( - col2 + col2 ) AS col0 FROM tab2 cor0
----
-13
-31
-58
query I rowsort
SELECT - cor0.col1 + + col2 + - col0 AS col1 FROM tab0 AS cor0
----
-131
-77
-98
query I rowsort
SELECT col0 * ( col2 ) AS col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT - - ( col0 ) * ( - col0 ) + col1 + 9 FROM tab0 AS cor0
----
-1119
-481
-7821
query I rowsort
SELECT DISTINCT - - col0 * cor0.col2 * 2 + + col2 * col0 * + 73 FROM tab1 AS cor0
----
12150
273600
576000
query I rowsort
SELECT ALL 84 + + tab2.col1 AS col2 FROM tab2
----
101
115
143
query I rowsort
SELECT ALL 7 * col2 + - 77 AS col0 FROM tab1
----
301
322
595
onlyif mysql # use DIV operator for integer division
query I rowsort label-8078
SELECT 26 DIV col1 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8078
SELECT 26 / col1 FROM tab2
----
0
0
1
query I rowsort
SELECT ALL - ( + col1 ) + col0 * 80 AS col1 FROM tab2 AS cor0
----
529
6181
6303
query I rowsort
SELECT + ( col1 ) + + col2 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - 84 * col0 + + col1 FROM tab1 AS cor0
----
-226
-5366
-6707
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 * - cor0.col1 col2 FROM tab1 AS cor0
----
-130
-169
-338
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to b2cff03af5bc7306c5e3322cc78563c1
query I rowsort
SELECT ALL - 15 FROM tab1, tab0 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2
query I rowsort
SELECT ( col2 ) * + col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8086
SELECT ALL ( + col1 ) * col2 DIV - ( + col2 ) FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-8086
SELECT ALL ( + col1 ) * col2 / - ( + col2 ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT col0 + + col2 * cor0.col1 * ( col2 + col0 ) AS col0 FROM tab2 cor0
----
159614
28465
75661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * ( - col1 ) col0 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8089
SELECT - col1 DIV - col1 + + col2 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-8089
SELECT - col1 / - col1 + + col2 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT - 79 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c9cc9510604e093bd158ca33928acaed
query I rowsort
SELECT ALL + - cor0.col1 * cor0.col2 + 24 * + ( + col1 ) FROM tab0 AS cor0
----
-5278
-774
2231
query I rowsort
SELECT ( - col1 ) + 78 FROM tab0 AS cor0
----
-13
-19
-8
query I rowsort
SELECT DISTINCT 54 * col0 AS col1 FROM tab0 AS cor0
----
1296
1890
4806
onlyif mysql # use DIV operator for integer division
query I rowsort label-8094
SELECT ALL col2 DIV col0 FROM tab2 cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL col2 / col0 FROM tab2 cor0
----
0
0
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-8095
SELECT tab1.col2 * + tab1.col1 * col2 + - 21 DIV - col2 col2 FROM tab1
----
119808
32490
75816
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8095
SELECT tab1.col2 * + tab1.col1 * col2 + - 21 / - col2 col2 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT - - col1 + - col0 AS col0 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + - col1 * - col1 * - col1 + col1 * + 93 FROM tab2 AS cor0
----
-199892
-26908
-3332
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + ( col2 ) col2 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-8099
SELECT col1 + + 78 * col1 DIV + col2 FROM tab1 cor0
----
23
23
63
skipif mysql # not compatible
query I rowsort label-8099
SELECT col1 + + 78 * col1 / + col2 FROM tab1 cor0
----
23
23
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col1 col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT 45 + 96 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
141
query I rowsort
SELECT ALL - ( - 23 ) AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658
query I rowsort
SELECT - ( - tab2.col0 ) * col2 * col1 AS col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT - - col2 * col0 * ( + col1 ) AS col2 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8105
SELECT + col1 / - CAST( NULL AS SIGNED ) + + 29 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8105
SELECT + col1 / - CAST ( NULL AS INTEGER ) + + 29 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + ( col2 ) * col0 * - 59 + + col1 AS col0 FROM tab2 cor0
----
-11089
-119534
-177084
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8107
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT - + col2 + + 14 * + col1 AS col0 FROM tab0 AS cor0
----
1171
1192
1357
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 61 ) * cor0.col1 + - col0 * col2 col0 FROM tab1 AS cor0
----
-3038
-6887
1424
query I rowsort
SELECT ALL - + 31 - + col1 FROM tab1 AS cor0
----
-41
-44
-57
query I rowsort
SELECT col1 + + 76 + - 33 AS col0 FROM tab1
----
53
56
69
query I rowsort
SELECT - + col2 + col0 * + col2 AS col1 FROM tab1 cor0
----
108
3591
7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-8113
SELECT col2 + - col1 DIV - 11 + - col2 col0 FROM tab0
----
7
8
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8113
SELECT col2 + - col1 / - 11 + - col2 col0 FROM tab0
----
7
8
8
query I rowsort
SELECT - col2 + 23 * col2 FROM tab1
----
1188
1254
2112
onlyif mysql # use DIV operator for integer division
query I rowsort label-8115
SELECT col0 + col0 DIV + col0 - col2 * + col2 col0 FROM tab2
----
-1364
-597
-721
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8115
SELECT col0 + col0 / + col0 - col2 * + col2 col0 FROM tab2
----
-1364
-597
-721
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8116
SELECT DISTINCT tab0.col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-8116
SELECT DISTINCT tab0.col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
query I rowsort
SELECT + ( col1 ) + + cor0.col1 AS col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL 80 * + 47 FROM tab0 AS cor0
----
3760
3760
3760
onlyif mysql # use DIV operator for integer division
query I rowsort label-8119
SELECT + - ( col0 ) * + col2 + ( + col1 ) DIV col1 AS col1 FROM tab2 AS cor0
----
-188
-2027
-3001
skipif mysql # not compatible
query I rowsort label-8119
SELECT + - ( col0 ) * + col2 + ( + col1 ) / col1 AS col1 FROM tab2 AS cor0
----
-188
-2027
-3001
query I rowsort
SELECT DISTINCT + col0 + 60 FROM tab1 AS cor0
----
124
140
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8121
SELECT CAST( NULL AS SIGNED ) + - col2 * col0 * - col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8121
SELECT CAST ( NULL AS INTEGER ) + - col2 * col0 * - col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( + ( col1 ) ) * - ( 83 ) FROM tab2 AS cor0
----
-1411
-2573
-4897
onlyif mysql # use DIV operator for integer division
query I rowsort label-8123
SELECT + + col0 + - col1 * - col2 DIV col2 AS col0 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-8123
SELECT + + col0 + - col1 * - col2 / col2 AS col0 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8124
SELECT DISTINCT + cor0.col1 * ( col1 ) + CAST( col2 AS SIGNED ) * + cor0.col1 FROM tab2 AS cor0
----
1798
5015
935
skipif mysql # not compatible
query I rowsort label-8124
SELECT DISTINCT + cor0.col1 * ( col1 ) + CAST ( col2 AS INTEGER ) * + cor0.col1 FROM tab2 AS cor0
----
1798
5015
935
query I rowsort
SELECT DISTINCT + - 94 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-111
-125
-153
query I rowsort
SELECT 43 + col2 AS col2 FROM tab1 AS cor0
----
100
139
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8127
SELECT ALL 56 DIV - cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL 56 / - cor0.col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( 38 ) + + cor0.col0 AS col1 FROM tab1 cor0
----
-35
26
42
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8129
SELECT ALL + ( + cor0.col2 ) * - col2 + - CAST( NULL AS SIGNED ) * col2 / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL + ( + cor0.col2 ) * - col2 + - CAST ( NULL AS INTEGER ) * col2 / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col1 + col1 AS col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL - cor0.col2 - 37 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
1120
2157
591
query I rowsort
SELECT - - col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL ( + col2 ) * col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + col2 + + cor0.col0 * - col0 + col0 AS col2 FROM tab1 AS cor0
----
-3975
-6224
48
query I rowsort
SELECT ALL 86 * + col0 AS col0 FROM tab1 AS cor0
----
258
5504
6880
query I rowsort
SELECT - col1 + 4 * - col0 AS col2 FROM tab2 cor0
----
-333
-371
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-8137
SELECT + 41 DIV col0 FROM tab2 AS cor0
----
0
0
5
skipif mysql # not compatible
query I rowsort label-8137
SELECT + 41 / col0 FROM tab2 AS cor0
----
0
0
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8138
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0, tab2 cor0, tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-8138
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0, tab2 cor0, tab1 AS cor1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8139
SELECT 7 DIV + col2 AS col1 FROM tab0
----
0
0
7
skipif mysql # not compatible
query I rowsort label-8139
SELECT 7 / + col2 AS col1 FROM tab0
----
0
0
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8140
SELECT DISTINCT + 20 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT + 20 / - col2 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - - col2 * + cor0.col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL col1 * - ( + cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-8143
SELECT + col1 * + cor0.col0 + col2 * col0 DIV col1 - col1 FROM tab1 cor0
----
1617
58
994
skipif mysql # not compatible
query I rowsort label-8143
SELECT + col1 * + cor0.col0 + col2 * col0 / col1 - col1 FROM tab1 cor0
----
1617
58
994
query I rowsort
SELECT ALL - ( - cor1.col1 ) + - 0 * + 15 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT + col0 + ( 76 + cor0.col1 ) FROM tab1 cor0
----
105
150
169
query I rowsort
SELECT ALL + + col1 + cor0.col0 * - 60 * + col1 FROM tab1 AS cor0
----
-38390
-4654
-62387
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 col2 FROM tab1
----
57
57
57
query I rowsort
SELECT col0 + ( 9 ) AS col0 FROM tab2 AS cor0
----
16
87
88
query I rowsort
SELECT col1 + - 54 + + col1 AS col1 FROM tab1 cor0
----
-2
-28
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-8150
SELECT col0 DIV + col1 + + 3 AS col2 FROM tab2 AS cor0
----
3
4
7
skipif mysql # not compatible
query I rowsort label-8150
SELECT col0 / + col1 + + 3 AS col2 FROM tab2 AS cor0
----
3
4
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 * col2 + 17 + + col1 col1 FROM tab1 AS cor0
----
3175
3333
5598
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col0 FROM tab0 AS cor0
----
78
78
78
query I rowsort
SELECT DISTINCT + 96 + + col0 FROM tab2 AS cor0
----
103
174
175
query I rowsort
SELECT - + col2 * + col2 + - ( col1 ) * + col1 FROM tab0 AS cor0
----
-15005
-8485
-9410
query I rowsort
SELECT + col2 + col0 + - col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1430
-529
-803
query I rowsort
SELECT + cor0.col0 * + col0 + col1 + + cor0.col2 FROM tab0 AS cor0
----
1323
695
8094
onlyif mysql # use DIV operator for integer division
query I rowsort label-8157
SELECT ALL 75 + col1 DIV - col1 AS col0 FROM tab0
----
74
74
74
skipif mysql # not compatible
query I rowsort label-8157
SELECT ALL 75 + col1 / - col1 AS col0 FROM tab0
----
74
74
74
query I rowsort
SELECT ALL + 63 * 24 + + col0 FROM tab1
----
1515
1576
1592
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col1 col0 FROM tab1
----
0
query I rowsort
SELECT ALL ( col0 ) + tab0.col1 AS col1 FROM tab0
----
110
132
180
query I rowsort
SELECT - col0 + col2 + - col1 * col0 FROM tab2 AS cor0
----
-1384
-197
-4654
query I rowsort
SELECT + col2 * col2 * + 50 AS col2 FROM tab2
----
33800
36450
72200
query I rowsort
SELECT ALL + 79 * - col2 * + 29 FROM tab2 AS cor0
----
-59566
-61857
-87058
query I rowsort
SELECT + + 63 * - col2 + + col2 FROM tab2 AS cor0
----
-1612
-1674
-2356
query I rowsort
SELECT ALL + 92 * col0 AS col0 FROM tab0 AS cor0
----
2208
3220
8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8166
SELECT DISTINCT 12 * col1 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-8166
SELECT DISTINCT 12 * col1 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT 49 AS col0 FROM tab2, tab2 cor0
----
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-8168
SELECT ALL - + 19 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL - + 19 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT tab2.col1 * col1 + col0 AS col0 FROM tab2
----
3559
368
968
query I rowsort
SELECT DISTINCT + cor1.col2 AS col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
1
33
82
query I rowsort
SELECT ALL - 72 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888
query I rowsort
SELECT 85 + + tab2.col1 AS col2 FROM tab2
----
102
116
144
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8173
SELECT - 84 * cor0.col2 + - CAST( NULL AS SIGNED ) col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8173
SELECT - 84 * cor0.col2 + - CAST ( NULL AS INTEGER ) col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-8174
SELECT ( - tab2.col2 ) DIV tab2.col1 AS col1 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-8174
SELECT ( - tab2.col2 ) / tab2.col1 AS col1 FROM tab2
----
-2
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8175
SELECT col0 DIV + 96 col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8175
SELECT col0 / + 96 col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + 26 + 78 FROM tab0 AS cor0
----
104
104
104
query I rowsort
SELECT - col2 + 8 AS col1 FROM tab0 cor0
----
-25
-74
7
query I rowsort
SELECT ALL col1 * col0 + col1 + col1 * col0 AS col2 FROM tab0 AS cor0
----
16289
4214
6887
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 col0 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8180
SELECT + col2 DIV 52 + cor0.col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-8180
SELECT + col2 / 52 + cor0.col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT col0 * 13 AS col1 FROM tab0 AS cor0
----
1157
312
455
query I rowsort
SELECT 98 + col2 + col2 FROM tab2
----
150
152
174
query I rowsort
SELECT + 17 FROM tab1, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 + col2 * col2 col1 FROM tab1
----
2941
3274
9241
query I rowsort
SELECT DISTINCT + - 36 * + 34 * col0 AS col2 FROM tab1 AS cor0
----
-3672
-78336
-97920
query I rowsort
SELECT DISTINCT - - col1 * col1 + col2 FROM tab1 cor0
----
157
265
730
query I rowsort
SELECT ALL col1 - - ( col2 ) AS col2 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 col2 FROM tab0 AS cor0
----
11
11
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 34 + + 30 col0 FROM tab2 AS cor0
----
64
64
64
query I rowsort
SELECT ALL - - col0 + + col0 * - col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT + - 33 + + col2 * ( col0 + col1 ) FROM tab0 cor0
----
14727
3597
99
query I rowsort
SELECT ALL - + 44 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
query I rowsort
SELECT + cor0.col0 * cor0.col2 + - col1 * - col1 FROM tab1 AS cor0
----
3748
7849
838
query I rowsort
SELECT + cor0.col1 * - 2 FROM tab1 cor0
----
-20
-26
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-8195
SELECT ALL + col2 + col0 DIV col0 AS col1 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL + col2 + col0 / col0 AS col1 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT ALL + 35 FROM tab2, tab2 cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT + col0 + cor0.col0 FROM tab1 cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-8198
SELECT DISTINCT col0 DIV + col1 + col0 + col2 AS col0 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-8198
SELECT DISTINCT col0 / + col1 + col0 + col2 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + 11 * + col1 AS col2 FROM tab2 AS cor0
----
187
341
649
onlyif mysql # use DIV operator for integer division
query I rowsort label-8200
SELECT 88 DIV - col0 col0 FROM tab1 AS cor0
----
-1
-1
-29
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8200
SELECT 88 / - col0 col0 FROM tab1 AS cor0
----
-1
-1
-29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 45 col1 FROM tab1 cor0
----
2430
2565
4320
query I rowsort
SELECT - + ( - 16 ) FROM tab2 AS cor0
----
16
16
16
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 col1 FROM tab1, tab2 AS cor0
----
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-8204
SELECT ALL col0 DIV ( + tab1.col2 * - col2 ) FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL col0 / ( + tab1.col2 * - col2 ) FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * 69 FROM tab2
----
483
5382
5451
query I rowsort
SELECT - tab1.col2 * + tab1.col1 * ( 59 + col2 ) FROM tab1
----
-158652
-193440
-66120
onlyif mysql # use DIV operator for integer division
query I rowsort label-8207
SELECT DISTINCT + col0 DIV + col2 + - col1 * - tab1.col2 AS col2 FROM tab1
----
1248
1404
571
skipif mysql # not compatible
query I rowsort label-8207
SELECT DISTINCT + col0 / + col2 + - col1 * - tab1.col2 AS col2 FROM tab1
----
1248
1404
571
query I rowsort
SELECT cor0.col0 * cor0.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to d2e5241c58e367013a1a203910e000c0
query I rowsort
SELECT - - col2 + col0 * ( 55 ) FROM tab1 AS cor0
----
219
3577
4496
query I rowsort
SELECT col0 * col1 + col1 AS col1 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT ALL - col0 * + col2 * col0 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT col0 * 88 FROM tab0 AS cor0
----
2112
3080
7832
query I rowsort
SELECT DISTINCT - col2 + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT ALL + cor0.col1 * - cor0.col1 FROM tab0 cor0
----
-7396
-8281
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8215
SELECT + + col2 * - CAST( NULL AS SIGNED ) + cor0.col0 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8215
SELECT + + col2 * - CAST ( NULL AS INTEGER ) + cor0.col0 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 * - col0 + col2 AS col0 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - col0 * - col1 + col1 * 65 FROM tab0 AS cor0
----
14014
7654
9700
onlyif mysql # use DIV operator for integer division
query I rowsort label-8218
SELECT + + col1 DIV + 88 + - col1 FROM tab1 cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-8218
SELECT + + col1 / + 88 + - col1 FROM tab1 cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8219
SELECT + + col2 * + col1 - - col0 DIV + 86 FROM tab0 AS cor0
----
2838
7463
97
skipif mysql # not compatible
query I rowsort label-8219
SELECT + + col2 * + col1 - - col0 / + 86 FROM tab0 AS cor0
----
2838
7463
97
query I rowsort
SELECT - col0 + cor0.col1 AS col0 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT + col2 * + 54 + tab1.col0 + - col2 * + col0 * - col2 FROM tab1
----
11667
211078
742544
onlyif mysql # use DIV operator for integer division
query I rowsort label-8222
SELECT - col2 + 96 DIV tab2.col0 FROM tab2
----
-14
-25
-37
skipif mysql # not compatible
query I rowsort label-8222
SELECT - col2 + 96 / tab2.col0 FROM tab2
----
-14
-25
-37
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 * FROM tab0, tab0 cor0 CROSS JOIN tab0 cor1
----
243 values hashing to 3e8bd9634a3f5947d8becd5f5799bb7f
query I rowsort
SELECT 63 * + col2 * - col1 + col0 + col0 AS col0 FROM tab1 AS cor0
----
-35782
-78464
-88446
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col1 ) * ( - col1 ) * col2 + col1 * col2 * col2 col0 FROM tab2 cor0
----
130390
35530
48546
onlyif mysql # use DIV operator for integer division
query I rowsort label-8227
SELECT + 76 DIV + col0 + col0 FROM tab0 AS cor0
----
27
37
89
skipif mysql # not compatible
query I rowsort label-8227
SELECT + 76 / + col0 + col0 FROM tab0 AS cor0
----
27
37
89
query I rowsort
SELECT + tab0.col0 * - col1 * col2 AS col1 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT - cor0.col1 * + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c6f4b0b1d1f7796b05493e23d40b0b75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) * col0 col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT ( + col0 ) * col2 + + cor0.col2 + col0 AS col0 FROM tab0 AS cor0
----
71
7469
849
query I rowsort
SELECT ALL col1 - cor0.col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 63 * + col2 + col2 col0 FROM tab2 AS cor0
----
1664
1728
2432
query I rowsort
SELECT DISTINCT col2 * col2 * - col0 + - col1 FROM tab2 AS cor0
----
-114093
-5134
-52787
query I rowsort
SELECT - - 57 * + col1 FROM tab1 AS cor0
----
1482
570
741
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col0 - col2 col1 FROM tab2 cor0
----
-6110
-6279
-76
query I rowsort
SELECT col1 * - 9 * - col1 FROM tab0
----
66564
74529
84681
query I rowsort
SELECT DISTINCT - col1 * col1 + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-1150
-3291
-5509
query I rowsort
SELECT DISTINCT + cor0.col1 + col1 AS col0 FROM tab1 cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-8240
SELECT + col0 + - col1 * col1 DIV col0 AS col1 FROM tab2 AS cor0
----
-130
34
76
skipif mysql # not compatible
query I rowsort label-8240
SELECT + col0 + - col1 * col1 / col0 AS col1 FROM tab2 AS cor0
----
-130
34
76
query I rowsort
SELECT DISTINCT + + col1 * + col0 + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT col1 * + col2 + cor0.col2 * col0 FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT ALL 61 - - col1 * - col1 * - col2 AS col0 FROM tab1
----
16285
36565
5761
query I rowsort
SELECT ALL ( col1 ) - + col1 * + col2 AS col0 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT - ( + ( + col1 ) ) + - col2 + + col2 AS col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT ALL - ( + col0 ) + col2 * + col0 FROM tab2
----
182
1950
2923
query I rowsort
SELECT ALL + 91 + col2 AS col0 FROM tab0 AS cor0
----
124
173
92
query I rowsort
SELECT DISTINCT - - ( + col2 ) * - col2 AS col2 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + col1 - - cor0.col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL - cor0.col0 * cor0.col2 AS col1 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL col1 * col1 * + tab2.col2 + - col0 AS col2 FROM tab2
----
10903
25940
90428
query I rowsort
SELECT col1 * col2 + - col1 + - col2 * - col0 FROM tab1 AS cor0
----
1540
4208
8915
query I rowsort
SELECT ALL 66 + col0 * col1 FROM tab0 AS cor0
----
2130
3461
8165
query I rowsort
SELECT DISTINCT tab2.col1 * col2 * 90 FROM tab2
----
138060
58140
75330
onlyif mysql # use DIV operator for integer division
query I rowsort label-8255
SELECT + col0 + + ( + 6 ) DIV - col1 col0 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8255
SELECT + col0 + + ( + 6 ) / - col1 col0 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
86
91
97
query I rowsort
SELECT col1 * 20 AS col0 FROM tab2 AS cor0
----
1180
340
620
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8258
SELECT + CAST( tab0.col2 AS SIGNED ) FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-8258
SELECT + CAST ( tab0.col2 AS INTEGER ) FROM tab0
----
1
33
82
query I rowsort
SELECT - - 30 FROM tab1 AS cor0
----
30
30
30
query I rowsort
SELECT DISTINCT col0 * - col0 * col0 AS col2 FROM tab2 AS cor0
----
-343
-474552
-493039
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col0 FROM tab0, tab0 AS cor0
----
65
query I rowsort
SELECT ALL 0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL 13 + col0 * col0 FROM tab2 AS cor0
----
6097
62
6254
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT - ( col2 ) * - col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col2 * 88 FROM tab0 AS cor0
----
2904
7216
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8267
SELECT DISTINCT col2 * + CAST( NULL AS DECIMAL ) + 46 / col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8267
SELECT DISTINCT col2 * + CAST ( NULL AS REAL ) + 46 / col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * col2 + col1 col2 FROM tab1 AS cor0
----
-136
-3638
-7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + 80 - 46 col1 FROM tab0 AS cor0
----
-52
-57
-63
query I rowsort
SELECT ALL + col1 + - 94 * col2 AS col2 FROM tab1
----
-5050
-5348
-9011
query I rowsort
SELECT col0 * - col0 + - col0 AS col0 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT DISTINCT + cor0.col0 * - col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT - col0 * col0 * - col2 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT DISTINCT col1 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - - col1 + ( col1 ) * col2 * col2 + + cor0.col0 * col1 AS col0 FROM tab0 AS cor0
----
3589
620074
95804
query I rowsort
SELECT - col0 * 48 + + cor0.col0 * + col1 * ( col1 ) FROM tab2 AS cor0
----
19039
267774
6391
query I rowsort
SELECT cor0.col2 - ( + cor0.col1 * col1 ) AS col0 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT + + col0 * 11 * + col1 FROM tab2 AS cor0
----
14773
2387
50622
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8279
SELECT col2 + + CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8279
SELECT col2 + + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col0 + - 16 AS col0 FROM tab2 AS cor0
----
-23
-94
-95
query I rowsort
SELECT ( - 61 ) - cor0.col1 FROM tab0 AS cor0
----
-147
-152
-158
query I rowsort
SELECT ( 31 ) - + col2 * 8 FROM tab1 AS cor0
----
-401
-425
-737
query I rowsort
SELECT - col2 * + tab0.col2 + - col2 + + col0 * col0 AS col1 FROM tab0
----
-546
1115
1223
query I rowsort
SELECT col2 * - col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT - + col0 + col2 * - col1 AS col1 FROM tab1 cor0
----
-1328
-1407
-634
query I rowsort
SELECT ALL col2 * - ( col2 ) + - col2 * - col1 AS col1 FROM tab1
----
-1512
-2679
-7968
query I rowsort
SELECT ALL col0 * - col0 + col2 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT 83 * col2 FROM tab1 AS cor0
----
4482
4731
7968
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8289
SELECT ALL - - ( col1 ) + - CAST( NULL AS SIGNED ) col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8289
SELECT ALL - - ( col1 ) + - CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0
----
NULL
NULL
NULL
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to 71180f9f3efadf0ee3a7fec9678208ad
query I rowsort
SELECT ALL 75 * col1 + + ( - ( col1 ) ) + - 57 AS col1 FROM tab1 AS cor0
----
1867
683
905
onlyif mysql # use DIV operator for integer division
query I rowsort label-8292
SELECT ALL - 97 DIV - col2 AS col1 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL - 97 / - col2 AS col1 FROM tab0
----
1
2
97
query I rowsort
SELECT - col2 + tab1.col0 * tab1.col0 FROM tab1
----
-45
4039
6304
query I rowsort
SELECT ALL + - col2 + col0 * cor0.col0 FROM tab1 cor0
----
-45
4039
6304
query I rowsort
SELECT ALL + + 59 AS col1 FROM tab0 cor0
----
59
59
59
query I rowsort
SELECT - ( - tab2.col1 ) AS col0 FROM tab2
----
17
31
59
query I rowsort
SELECT - + col0 + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT + - col1 * + ( col1 ) AS col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT 54 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT - + cor0.col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT DISTINCT 43 - - 69 FROM tab2, tab1 AS cor0
----
112
query I rowsort
SELECT - cor2.col2 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8
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 cor0.col0 * ( col1 ) + col1 AS col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT + cor0.col0 + - col0 * - col2 AS col1 FROM tab0 cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-8306
SELECT - col2 DIV 6 FROM tab2 AS cor0
----
-4
-4
-6
skipif mysql # not compatible
query I rowsort label-8306
SELECT - col2 / 6 FROM tab2 AS cor0
----
-4
-4
-6
query I rowsort
SELECT col0 * 68 FROM tab1
----
204
4352
5440
query I rowsort
SELECT ALL - 60 AS col2 FROM tab1
----
-60
-60
-60
query I rowsort
SELECT 78 FROM tab2, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT ALL cor0.col2 * col0 + - cor0.col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT - cor0.col1 + col2 * col0 AS col0 FROM tab1 AS cor0
----
136
3638
7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-8312
SELECT ALL CAST( - col1 AS SIGNED ) * + cor0.col0 + col0 * - col0 + + col0 DIV + col1 col0 FROM tab0 AS cor0
----
-16020
-2640
-4620
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8312
SELECT ALL CAST ( - col1 AS INTEGER ) * + cor0.col0 + col0 * - col0 + + col0 / + col1 col0 FROM tab0 AS cor0
----
-16020
-2640
-4620
query I rowsort
SELECT ALL + - col2 + + col0 AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL + col0 - - col2 AS col1 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT col2 * col2 + 56 * + 36 * col2 FROM tab2 AS cor0
----
53092
55161
78052
query I rowsort
SELECT DISTINCT 81 * col1 + 97 AS col1 FROM tab2 AS cor0
----
1474
2608
4876
query I rowsort
SELECT DISTINCT - 59 * - cor0.col0 + 11 * col1 * col0 AS col0 FROM tab1 AS cor0
----
1035
10816
16160
query I rowsort
SELECT col1 * col1 + + col2 * + 93 FROM tab1
----
5401
5698
9097
query I rowsort
SELECT 70 FROM tab0, tab1 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
query I rowsort
SELECT DISTINCT 81 + - 79 AS col1 FROM tab0
----
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8321
SELECT - CAST( col0 AS SIGNED ) + col1 AS col2 FROM tab2
----
-19
-62
24
skipif mysql # not compatible
query I rowsort label-8321
SELECT - CAST ( col0 AS INTEGER ) + col1 AS col2 FROM tab2
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8322
SELECT + col1 * - col1 + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8322
SELECT + col1 * - col1 + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 14 AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc
query I rowsort
SELECT + 57 * col2 + - col1 * + 54 AS col0 FROM tab0
----
-240
-2763
-5181
query I rowsort
SELECT DISTINCT col1 + - col1 * tab0.col1 FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT col1 * col2 + 11 * col2 AS col2 FROM tab2
----
1064
1134
1820
onlyif mysql # use DIV operator for integer division
query I rowsort label-8327
SELECT + col1 * col0 * CAST( col1 * col1 AS SIGNED ) + ( cor0.col1 ) DIV + col0 FROM tab0 AS cor0
----
15265347
31943557
67067820
skipif mysql # not compatible
query I rowsort label-8327
SELECT + col1 * col0 * CAST ( col1 * col1 AS INTEGER ) + ( cor0.col1 ) / + col0 FROM tab0 AS cor0
----
15265347
31943557
67067820
query I rowsort
SELECT 82 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
query I rowsort
SELECT 61 AS col1 FROM tab1
----
61
61
61
query I rowsort
SELECT ALL + ( - col2 ) + col2 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT col1 + - col1 * ( col1 ) FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT + cor0.col1 + col2 + col2 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT ALL + ( cor0.col1 ) + - col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 76 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
76
query I rowsort
SELECT DISTINCT - tab2.col2 * 93 FROM tab2
----
-2418
-2511
-3534
query I rowsort
SELECT + + col2 + - 92 * + 70 FROM tab1 AS cor0
----
-6344
-6383
-6386
query I rowsort
SELECT + + cor0.col0 * ( ( col2 ) ) FROM tab1 cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8338
SELECT CAST( NULL AS SIGNED ) + - col0 * col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8338
SELECT CAST ( NULL AS INTEGER ) + - col0 * col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( 81 ) - col2 FROM tab0 AS cor0
----
-1
48
80
query I rowsort
SELECT 93 - col1 FROM tab2 AS cor0
----
34
62
76
query I rowsort
SELECT ALL - ( 48 ) FROM tab2 AS cor0
----
-48
-48
-48
query I rowsort
SELECT + - 14 * + 47 AS col0 FROM tab2 AS cor0
----
-658
-658
-658
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 * - 29 col1 FROM tab2 cor0
----
1943
query I rowsort
SELECT DISTINCT + + ( 0 ) AS col0 FROM tab2 cor0
----
0
query I rowsort
SELECT ALL - ( - col0 ) * + col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT - 39 AS col1 FROM tab0
----
-39
-39
-39
query I rowsort
SELECT + 62 FROM tab2, tab2 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT - 22 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8349
SELECT DISTINCT CAST( - col2 AS SIGNED ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-8349
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * - 34 col1 FROM tab2 AS cor0
----
-1054
-2006
-578
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8351
SELECT DISTINCT + ( - 10 ) * col1 + CAST( col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
-774
-819
-873
skipif mysql # not compatible
query I rowsort label-8351
SELECT DISTINCT + ( - 10 ) * col1 + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
-774
-819
-873
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8352
SELECT CAST( NULL AS SIGNED ) * col2 * col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8352
SELECT CAST ( NULL AS INTEGER ) * col2 * col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - 28 * col2 FROM tab0 AS cor0
----
2296
28
924
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 * - 87 col1 FROM tab0 AS cor0
----
2523
2523
2523
query I rowsort
SELECT DISTINCT ( + 11 ) * col2 AS col1 FROM tab1 AS cor0
----
1056
594
627
query I rowsort
SELECT + 31 * - cor0.col2 FROM tab2 AS cor0
----
-1178
-806
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8357
SELECT + col1 + cor0.col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-8357
SELECT + col1 + cor0.col2 / - col2 AS col0 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT ALL + col2 + ( + col0 ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - col0 + cor0.col0 - - col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + col2 + cor0.col0 * + 82 AS col1 FROM tab2 AS cor0
----
601
6422
6516
onlyif mysql # use DIV operator for integer division
query I rowsort label-8361
SELECT DISTINCT - - 3 + col2 DIV - ( col0 + + col0 ) FROM tab2 AS cor0
----
2
3
skipif mysql # not compatible
query I rowsort label-8361
SELECT DISTINCT - - 3 + col2 / - ( col0 + + col0 ) FROM tab2 AS cor0
----
2
3
query I rowsort
SELECT - + col1 * col0 + col1 + col1 AS col1 FROM tab2 AS cor0
----
-1309
-155
-4484
onlyif mysql # use DIV operator for integer division
query I rowsort label-8363
SELECT - cor0.col0 - col0 DIV - ( - col1 ) FROM tab2 AS cor0
----
-7
-79
-83
skipif mysql # not compatible
query I rowsort label-8363
SELECT - cor0.col0 - col0 / - ( - col1 ) FROM tab2 AS cor0
----
-7
-79
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 * + col1 + 1 * 94 col1 FROM tab1 cor0
----
-1154
-2402
-866
query I rowsort
SELECT ALL + - 5 * - col2 * - col2 + - ( col1 ) - - col2 FROM tab1 AS cor0
----
-14552
-16198
-45997
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8366
SELECT ALL col1 + cor0.col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL col1 + cor0.col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col1 * - col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT 93 * tab0.col2 - tab0.col2 FROM tab0
----
3036
7544
92
query I rowsort
SELECT - col2 + + col2 * + cor0.col1 + - col0 FROM tab1 AS cor0
----
1072
1347
449
query I rowsort
SELECT ALL + + cor0.col0 * - col1 + - ( + col2 ) AS col0 FROM tab1 AS cor0
----
-1136
-132
-697
onlyif mysql # use DIV operator for integer division
query I rowsort label-8371
SELECT + col0 DIV + col0 + col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-8371
SELECT + col0 / + col0 + col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT DISTINCT - - col2 + + cor0.col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL + cor0.col1 + + ( + col2 * - col1 ) + - col0 AS col1 FROM tab0 AS cor0
----
-2776
-35
-7460
query I rowsort
SELECT DISTINCT - col1 * + ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col1 * 47 + - col0 + col0 FROM tab1 AS cor0
----
1222
470
611
query I rowsort
SELECT DISTINCT - cor0.col0 + ( - 87 ) * + col2 FROM tab1 AS cor0
----
-4701
-5023
-8432
onlyif mysql # use DIV operator for integer division
query I rowsort label-8377
SELECT col1 + cor0.col0 DIV - cor0.col0 AS col0 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-8377
SELECT col1 + cor0.col0 / - cor0.col0 AS col0 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT DISTINCT + - col0 * + 94 FROM tab2 cor0
----
-658
-7332
-7426
onlyif mysql # use DIV operator for integer division
query I rowsort label-8379
SELECT ALL - col0 DIV - col2 AS col2 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL - col0 / - col2 AS col2 FROM tab1
----
0
0
1
query I rowsort
SELECT - 43 * col0 FROM tab0
----
-1032
-1505
-3827
query I rowsort
SELECT ALL + col1 * col1 + - col2 + + tab0.col1 FROM tab0
----
7449
8290
9505
onlyif mysql # use DIV operator for integer division
query I rowsort label-8382
SELECT ALL + col2 + - col2 DIV col0 + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-42
-583
-945
skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL + col2 + - col2 / col0 + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-42
-583
-945
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 * - ( - col2 ) col0 FROM tab0 cor0
----
0
7209
768
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + - col2 * 19 col0 FROM tab0 AS cor0
----
-1476
-18
-594
query I rowsort
SELECT ALL col1 * - ( col2 ) AS col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + 48 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT col0 * col1 + + col2 AS col2 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT + 57 * tab0.col0 FROM tab0, tab2, tab0 AS cor0
----
1368
1995
5073
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT DISTINCT 25 AS col0 FROM tab0
----
25
query I rowsort
SELECT ( 25 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8393
SELECT ALL col0 DIV - col1 + col0 * - 51 AS col0 FROM tab0 AS cor0
----
-1224
-1785
-4539
skipif mysql # not compatible
query I rowsort label-8393
SELECT ALL col0 / - col1 + col0 * - 51 AS col0 FROM tab0 AS cor0
----
-1224
-1785
-4539
query I rowsort
SELECT DISTINCT - + 35 AS col1 FROM tab2, tab1, tab1 AS cor0
----
-35
query I rowsort
SELECT + col0 * ( - cor0.col1 ) FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8396
SELECT DISTINCT - col0 + - CAST( col2 AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
-1113
-36
-6813
skipif mysql # not compatible
query I rowsort label-8396
SELECT DISTINCT - col0 + - CAST ( col2 AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
-1113
-36
-6813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + ( - col1 ) col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL + - col2 * cor0.col1 + + col2 - - col2 FROM tab1 AS cor0
----
-1056
-1296
-456
query I rowsort
SELECT DISTINCT col0 + 95 FROM tab2 cor0
----
102
173
174
query I rowsort
SELECT ALL ( + cor0.col0 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8401
SELECT ALL CAST( NULL AS SIGNED ) * - 10 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL CAST ( NULL AS INTEGER ) * - 10 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + cor0.col2 + - col2 AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8403
SELECT CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8403
SELECT CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + 82 + col2 FROM tab1 AS cor0
----
136
139
178
query I rowsort
SELECT DISTINCT 41 AS col2 FROM tab1, tab0 AS cor0
----
41
query I rowsort
SELECT ( + col1 + col0 ) AS col2 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL + cor0.col1 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL + 39 + col2 AS col2 FROM tab0 cor0
----
121
40
72
query I rowsort
SELECT DISTINCT - 40 * + col2 AS col1 FROM tab1 AS cor0
----
-2160
-2280
-3840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8410
SELECT ALL - CAST( ( + col0 ) AS SIGNED ) + - CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8410
SELECT ALL - CAST ( ( + col0 ) AS INTEGER ) + - CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + ( col2 ) AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - 16 + - col0 * + col0 FROM tab2 AS cor0
----
-33
-6068
-6225
query I rowsort
SELECT + col2 * + ( - col0 ) + - ( - col1 ) FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT cor0.col1 + cor0.col1 * col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT + cor0.col2 * col2 + - col0 AS col2 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT ALL - 33 * col0 AS col1 FROM tab1 AS cor0
----
-2112
-2640
-99
query I rowsort
SELECT col2 + - 59 * - col0 FROM tab2 AS cor0
----
440
4628
4699
onlyif mysql # use DIV operator for integer division
query I rowsort label-8418
SELECT + + 11 * + 21 * col0 + col0 * 36 DIV col1 AS col2 FROM tab0 AS cor0
----
20594
5554
8097
skipif mysql # not compatible
query I rowsort label-8418
SELECT + + 11 * + 21 * col0 + col0 * 36 / col1 AS col2 FROM tab0 AS cor0
----
20594
5554
8097
onlyif mysql # use DIV operator for integer division
query I rowsort label-8419
SELECT 38 DIV + ( + col1 ) FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-8419
SELECT 38 / + ( + col1 ) FROM tab2 AS cor0
----
0
1
2
query I rowsort
SELECT + ( col1 ) * col0 + 82 AS col0 FROM tab1 AS cor0
----
1122
160
722
query I rowsort
SELECT + - 34 * col2 + - cor0.col2 FROM tab2 AS cor0
----
-1330
-910
-945
query I rowsort
SELECT DISTINCT + - col1 + - col2 + col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + col1 * + col2 - 6 AS col2 FROM tab1 AS cor0
----
1242
1398
564
query I rowsort
SELECT ALL ( ( col1 ) ) + + col0 FROM tab2
----
137
38
96
query I rowsort
SELECT + 49 + + col1 * - cor0.col0 FROM tab1 AS cor0
----
-29
-591
-991
query I rowsort
SELECT 55 * - col1 FROM tab2 AS cor0
----
-1705
-3245
-935
query I rowsort
SELECT DISTINCT + 96 AS col2 FROM tab2
----
96
query I rowsort
SELECT ALL cor1.col2 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT + col0 * 33 * - col1 AS col0 FROM tab2 AS cor0
----
-151866
-44319
-7161
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8430
SELECT col0 * + ( - col0 ) * - CAST( col2 AS SIGNED ) + - cor0.col0 AS col2 FROM tab0 cor0
----
1190
18984
649433
skipif mysql # not compatible
query I rowsort label-8430
SELECT col0 * + ( - col0 ) * - CAST ( col2 AS INTEGER ) + - cor0.col0 AS col2 FROM tab0 cor0
----
1190
18984
649433
query I rowsort
SELECT ALL - 98 FROM tab0, tab2 cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638
query I rowsort
SELECT + 57 * 81 * + tab0.col1 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 5839a4d3ec002340d0c99d54812387d7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8433
SELECT + 92 DIV - col2 - col1 DIV ( col1 ) AS col1 FROM tab0 AS cor0
----
-2
-3
-93
skipif mysql # not compatible
query I rowsort label-8433
SELECT + 92 / - col2 - col1 / ( col1 ) AS col1 FROM tab0 AS cor0
----
-2
-3
-93
query I rowsort
SELECT ALL + col2 * - col1 + col1 + - col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT 86 AS col2 FROM tab0, tab0 AS cor0
----
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-8436
SELECT ALL col1 DIV - 78 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL col1 / - 78 FROM tab1
----
0
0
0
query I rowsort
SELECT + cor1.col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 col1 FROM tab0
----
10
query I rowsort
SELECT 95 * col2 + + col1 FROM tab1
----
5156
5425
9133
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 2 ) * - col2 col1 FROM tab1
----
-108
-114
-192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 * + 37 col1 FROM tab0 AS cor0
----
1198
3202
802
query I rowsort
SELECT col1 * + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT ALL - col2 * - col1 * col2 AS col1 FROM tab0
----
611884
93654
97
query I rowsort
SELECT 80 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
onlyif mysql # use DIV operator for integer division
query I rowsort label-8446
SELECT ALL + col1 DIV 17 AS col1 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL + col1 / 17 AS col1 FROM tab1
----
0
0
1
query I rowsort
SELECT cor1.col0 AS col1 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL col0 - + ( tab2.col1 ) AS col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT - 88 AS col0 FROM tab1, tab0 AS cor0
----
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - 41 * 13 col2 FROM tab0 AS cor0
----
-557
-568
-622
query I rowsort
SELECT col0 * col2 + col0 - col1 FROM tab1 cor0
----
139
3702
7747
query I rowsort
SELECT DISTINCT + 14 FROM tab1, tab1 AS cor0
----
14
query I rowsort
SELECT DISTINCT - col2 * - col1 + + 38 AS col2 FROM tab0 AS cor0
----
135
2876
7500
query I rowsort
SELECT - 12 * col2 FROM tab2 AS cor0
----
-312
-324
-456
query I rowsort
SELECT - col2 * - ( col0 ) + ( col2 ) AS col1 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT 36 AS col1 FROM tab1, tab0, tab2 AS cor0
----
36
query I rowsort
SELECT ALL + 92 * 14 AS col0 FROM tab2
----
1288
1288
1288
query I rowsort
SELECT + + col2 * col0 + - col2 AS col1 FROM tab0 cor0
----
34
7216
759
query I rowsort
SELECT DISTINCT 98 * - col1 + + ( col2 ) * col1 AS col1 FROM tab2 AS cor0
----
-1020
-2201
-4248
query I rowsort
SELECT tab1.col1 * - tab1.col1 + col0 * 62 * - col1 FROM tab1
----
-39780
-5512
-64649
query I rowsort
SELECT col2 * - col0 + + col2 * + 48 * - col0 AS col1 FROM tab2
----
-147098
-9261
-99372
onlyif mysql # use DIV operator for integer division
query I rowsort label-8462
SELECT 46 DIV col1 + - col2 FROM tab2
----
-26
-26
-36
skipif mysql # not compatible
query I rowsort label-8462
SELECT 46 / col1 + - col2 FROM tab2
----
-26
-26
-36
query I rowsort
SELECT DISTINCT - col1 * tab0.col0 * ( + col0 ) FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT + ( - col2 + ( col0 ) ) FROM tab1
----
-16
-51
7
query I rowsort
SELECT - 88 AS col0 FROM tab1
----
-88
-88
-88
query I rowsort
SELECT 20 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4
query I rowsort
SELECT DISTINCT + - col0 * cor0.col0 - cor0.col0 FROM tab0 cor0
----
-1260
-600
-8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8468
SELECT 87 + + col1 * CAST( + 39 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1296
2388
750
skipif mysql # not compatible
query I rowsort label-8468
SELECT 87 + + col1 * CAST ( + 39 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1296
2388
750
onlyif mysql # use DIV operator for integer division
query I rowsort label-8469
SELECT DISTINCT + col1 DIV col2 - + 46 AS col2 FROM tab1 AS cor0
----
-46
skipif mysql # not compatible
query I rowsort label-8469
SELECT DISTINCT + col1 / col2 - + 46 AS col2 FROM tab1 AS cor0
----
-46
query I rowsort
SELECT DISTINCT - 27 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-27
query I rowsort
SELECT ALL + cor0.col0 * ( ( col2 ) ) * - cor0.col2 - - 42 AS col1 FROM tab0 AS cor0
----
-26094
-598394
7
query I rowsort
SELECT DISTINCT col2 + col0 * + col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL - - col1 * + ( - col2 ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + cor0.col1 + + 67 * - col2 AS col0 FROM tab2 AS cor0
----
-1683
-1778
-2529
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8475
SELECT DISTINCT - + col1 * CAST( col0 * + col1 AS SIGNED ) + cor0.col0 col1 FROM tab2 AS cor0
----
-22752
-271440
-6720
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT - + col1 * CAST ( col0 * + col1 AS INTEGER ) + cor0.col0 col1 FROM tab2 AS cor0
----
-22752
-271440
-6720
query I rowsort
SELECT ALL + col1 * 28 - 84 AS col1 FROM tab0 AS cor0
----
2324
2464
2632
query I rowsort
SELECT ALL + col2 * col1 + + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL col0 * 19 FROM tab0 AS cor0
----
1691
456
665
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 99 col0 FROM tab0 AS cor0
----
2376
3465
8811
query I rowsort
SELECT DISTINCT - col1 + - 71 FROM tab2 AS cor0
----
-102
-130
-88
query I rowsort
SELECT + + col0 + 73 * col1 AS col1 FROM tab1 AS cor0
----
1029
1901
794
query I rowsort
SELECT ALL + col2 + + 84 FROM tab2 AS cor0
----
110
111
122
query I rowsort
SELECT - - ( cor0.col0 ) * - col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8484
SELECT + CAST( NULL AS SIGNED ) + col1 * + col1 + ( cor0.col2 * col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8484
SELECT + CAST ( NULL AS INTEGER ) + col1 * + col1 + ( cor0.col2 * col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8485
SELECT - col0 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8485
SELECT - col0 / + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - + cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8487
SELECT DISTINCT + CAST( col2 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-8487
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col2 + ( + col1 ) AS col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT + + col1 * + col0 * + col2 AS col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL col0 * 61 AS col1 FROM tab2
----
427
4758
4819
query I rowsort
SELECT DISTINCT - + cor0.col2 * cor0.col1 * col1 + 41 FROM tab0 AS cor0
----
-244027
-679001
-9368
query I rowsort
SELECT DISTINCT + 27 * col1 FROM tab2 AS cor0
----
1593
459
837
query I rowsort
SELECT ALL + col0 * col2 * col0 AS col1 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT 78 * 67 * col0 FROM tab1 AS cor0
----
15678
334464
418080
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 18 * col1 + - col0 col0 FROM tab0 cor0
----
1524
1549
1711
query I rowsort
SELECT ALL - + 45 FROM tab0 AS cor0
----
-45
-45
-45
query I rowsort
SELECT - - 86 * - col0 * - col2 - + cor0.col0 AS col0 FROM tab1 AS cor0
----
13929
313664
660400
query I rowsort
SELECT DISTINCT ( 90 ) * col0 FROM tab2 AS cor0
----
630
7020
7110
query I rowsort
SELECT ALL + 24 AS col0 FROM tab0
----
24
24
24
query I rowsort
SELECT DISTINCT col0 + - cor0.col1 * - cor0.col0 AS col2 FROM tab0 cor0
----
2088
3430
8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 * - col0 * - 28 + col1 col1 FROM tab1 cor0
----
159498
199373
7502
query I rowsort
SELECT - col0 + 34 FROM tab0 cor0
----
-1
-55
10
query I rowsort
SELECT DISTINCT - col0 * ( col2 ) * col1 + 77 FROM tab1
----
-36403
-4135
-99763
query I rowsort
SELECT + tab2.col0 + - col0 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT - 18 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de
query I rowsort
SELECT - col1 + + ( 99 ) AS col1 FROM tab2
----
40
68
82
query I rowsort
SELECT ALL ( - 84 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col2 AS REAL ) * - col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - - ( 50 ) AS col0 FROM tab0 cor0
----
50
query I rowsort
SELECT ALL - cor0.col0 + + cor0.col1 AS col0 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT ALL 99 + col0 FROM tab2 AS cor0
----
106
177
178
query I rowsort
SELECT - 64 + - col0 FROM tab0 AS cor0
----
-153
-88
-99
query I rowsort
SELECT ALL - 3 * + col1 FROM tab0 AS cor0
----
-258
-273
-291
query I rowsort
SELECT ALL ( + col1 ) - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * col0 + - col2 * col1 col2 FROM tab2 cor0
----
-788
4550
5595
query I rowsort
SELECT - 38 AS col2 FROM tab2
----
-38
-38
-38
query I rowsort
SELECT 22 - - cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
311
3503
983
onlyif mysql # use DIV operator for integer division
query I rowsort label-8518
SELECT DISTINCT - col0 DIV col2 + 24 FROM tab1 AS cor0
----
23
24
skipif mysql # not compatible
query I rowsort label-8518
SELECT DISTINCT - col0 / col2 + 24 FROM tab1 AS cor0
----
23
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-8519
SELECT + + col0 + col0 DIV + ( + col0 * col2 ) AS col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-8519
SELECT + + col0 + col0 / + ( + col0 * col2 ) AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL 94 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1598
2914
5546
query I rowsort
SELECT DISTINCT col0 * + col2 + ( + col0 ) * cor0.col0 * col1 + + 45 FROM tab2 cor0
----
109144
1753
361029
query I rowsort
SELECT ALL - - 65 * col2 * cor0.col1 + col1 - col2 AS col1 FROM tab2 AS cor0
----
41969
54409
99743
query I rowsort
SELECT - col2 + + col0 * - col1 * - 54 AS col0 FROM tab2 AS cor0
----
11691
248482
72484
query I rowsort
SELECT + 66 FROM tab1, tab2 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT DISTINCT ( + 54 ) AS col0 FROM tab1, tab1 AS cor0
----
54
query I rowsort
SELECT + + col0 * cor0.col0 + col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-8527
SELECT - - col2 + - cor0.col1 DIV 19 FROM tab1 cor0
----
53
57
96
skipif mysql # not compatible
query I rowsort label-8527
SELECT - - col2 + - cor0.col1 / 19 FROM tab1 cor0
----
53
57
96
query I rowsort
SELECT + col1 * - ( 64 ) AS col2 FROM tab1
----
-1664
-640
-832
onlyif mysql # use DIV operator for integer division
query I rowsort label-8529
SELECT + col0 * - cor0.col1 + ( cor0.col1 ) DIV + CAST( + col1 AS SIGNED ) col1 FROM tab1 AS cor0
----
-1039
-639
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8529
SELECT + col0 * - cor0.col1 + ( cor0.col1 ) / + CAST ( + col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
-1039
-639
-77
query I rowsort
SELECT col1 - col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT cor0.col0 * + ( 88 ) + + col0 AS col0 FROM tab1 AS cor0
----
267
5696
7120
query I rowsort
SELECT - col0 * ( col0 ) + col2 * col2 FROM tab2 AS cor0
----
-4797
-5408
680
query I rowsort
SELECT - col1 + - ( - col2 ) AS col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - col2 * - 77 FROM tab0 AS cor0
----
2541
6314
77
query I rowsort
SELECT col2 * + col2 + + col0 * 19 AS col0 FROM tab2 AS cor0
----
2158
2945
862
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 91 + - 28 col1 FROM tab1 AS cor0
----
63
63
63
query I rowsort
SELECT - col0 + col1 * + col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT - col2 * cor0.col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT + cor0.col1 + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1322
662
8012
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8540
SELECT col0 + ( - col1 + CAST( + col1 AS SIGNED ) * - col1 ) AS col2 FROM tab0
----
-7458
-8283
-9471
skipif mysql # not compatible
query I rowsort label-8540
SELECT col0 + ( - col1 + CAST ( + col1 AS INTEGER ) * - col1 ) AS col2 FROM tab0
----
-7458
-8283
-9471
query I rowsort
SELECT ALL cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
onlyif mysql # use DIV operator for integer division
query I rowsort label-8542
SELECT cor0.col2 DIV - 52 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-8542
SELECT cor0.col2 / - 52 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL + 81 + + tab2.col0 AS col1 FROM tab2
----
159
160
88
query I rowsort
SELECT - cor0.col1 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT DISTINCT - 29 + - col0 FROM tab1
----
-109
-32
-93
query I rowsort
SELECT col1 * cor0.col2 + col2 AS col0 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT - 62 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
-62
query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT 40 * - tab1.col0 FROM tab1
----
-120
-2560
-3200
query I rowsort
SELECT DISTINCT ( + tab2.col2 ) + - tab2.col2 + col1 * + col0 FROM tab2
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-8551
SELECT - col2 DIV - col2 AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8551
SELECT - col2 / - col2 AS col2 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT ( - col0 * - col2 ) FROM tab1
----
162
3648
7680
query I rowsort
SELECT col1 * tab1.col2 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - 44 AS col2 FROM tab0
----
-44
-44
-44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT col2 + + ( col1 ) * cor0.col0 FROM tab2 AS cor0
----
1381
244
4628
skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( col2 AS REAL ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8558
SELECT DISTINCT CAST( - col2 AS SIGNED ) + col0 FROM tab2 AS cor0
----
-20
41
52
skipif mysql # not compatible
query I rowsort label-8558
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + col0 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-8559
SELECT ALL CAST( - col1 AS SIGNED ) DIV + col1 + - col2 AS col2 FROM tab2 AS cor0
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL CAST ( - col1 AS INTEGER ) / + col1 + - col2 AS col2 FROM tab2 AS cor0
----
-27
-28
-39
query I rowsort
SELECT - 7 * col2 + - col1 * col2 * + col0 FROM tab2 AS cor0
----
-119834
-51300
-6048
query I rowsort
SELECT ALL - cor0.col0 * + 28 * col0 + + 42 FROM tab1 AS cor0
----
-114646
-179158
-210
onlyif mysql # use DIV operator for integer division
query I rowsort label-8562
SELECT - col0 DIV 35 FROM tab2 AS cor0
----
-2
-2
0
skipif mysql # not compatible
query I rowsort label-8562
SELECT - col0 / 35 FROM tab2 AS cor0
----
-2
-2
0
query I rowsort
SELECT - + cor0.col2 + col0 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8564
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - 34 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8564
SELECT DISTINCT + CAST ( NULL AS REAL ) * - 34 FROM tab1 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8565
SELECT - + ( - cor0.col1 ) + - cor0.col1 + + 18 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8565
SELECT - + ( - cor0.col1 ) + - cor0.col1 + + 18 / - col1 AS col1 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT + - cor0.col2 + cor0.col1 * + col2 AS col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT col0 * - col1 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT col2 * cor0.col1 * + col0 AS col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT + + col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - 87 * + col2 FROM tab1
----
-4698
-4959
-8352
onlyif mysql # use DIV operator for integer division
query I rowsort label-8571
SELECT col0 * - ( col0 ) + + col1 DIV col2 + + col0 FROM tab1 AS cor0
----
-4032
-6
-6320
skipif mysql # not compatible
query I rowsort label-8571
SELECT col0 * - ( col0 ) + + col1 / col2 + + col0 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT DISTINCT - col0 + ( col2 ) * - col0 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT - + col2 - - col1 AS col1 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT ALL + col0 * ( + col0 ) + - col2 AS col1 FROM tab1 cor0
----
-45
4039
6304
query I rowsort
SELECT + col2 * + ( col1 ) * col2 + + 35 FROM tab1 AS cor0
----
119843
32525
75851
query I rowsort
SELECT + col0 + - cor0.col2 + col1 * + col2 FROM tab2 AS cor0
----
1586
687
817
onlyif mysql # use DIV operator for integer division
query I rowsort label-8577
SELECT + col0 + ( - col2 ) + col1 DIV - ( + col0 ) FROM tab1 AS cor0
----
-16
-59
7
skipif mysql # not compatible
query I rowsort label-8577
SELECT + col0 + ( - col2 ) + col1 / - ( + col0 ) FROM tab1 AS cor0
----
-16
-59
7
query I rowsort
SELECT DISTINCT col0 * col1 + + cor0.col0 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT - cor1.col1 + - cor0.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c21794f3d700d971bb6d267d0530f63
query I rowsort
SELECT - col0 * 68 FROM tab1 cor0
----
-204
-4352
-5440
query I rowsort
SELECT DISTINCT + 51 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8582
SELECT ALL col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT tab1.col0 * col1 + + ( col0 + col1 ) FROM tab1
----
107
1133
714
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col1 * col1 + col1 + - col0 col2 FROM tab2
----
227
3462
985
query I rowsort
SELECT DISTINCT + col2 + - 66 + col2 AS col0 FROM tab2
----
-12
-14
10
query I rowsort
SELECT DISTINCT + col1 + col0 * + tab1.col1 FROM tab1
----
104
1053
650
query I rowsort
SELECT + col2 + - col0 * col0 AS col2 FROM tab1
----
-4039
-6304
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-8588
SELECT + col0 DIV + 51 + col0 AS col0 FROM tab2
----
7
79
80
skipif mysql # not compatible
query I rowsort label-8588
SELECT + col0 / + 51 + col0 AS col0 FROM tab2
----
7
79
80
query I rowsort
SELECT DISTINCT + - 65 * col1 + + col0 * col1 + - col2 AS col0 FROM tab1 AS cor0
----
-1666
-67
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-8590
SELECT ALL - col0 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL - col0 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + + col0 + 33 + - col1 * - col2 AS col1 FROM tab2 AS cor0
----
1645
758
877
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col0 FROM tab1 AS cor0
----
83
83
83
query I rowsort
SELECT DISTINCT 21 * + 87 * cor0.col2 FROM tab0 AS cor0
----
149814
1827
60291
query I rowsort
SELECT - col0 + + 50 + + col0 FROM tab1 AS cor0
----
50
50
50
query I rowsort
SELECT col0 + - 78 AS col1 FROM tab1
----
-14
-75
2
query I rowsort
SELECT ALL col1 + 29 AS col1 FROM tab0
----
115
120
126
skipif mysql # not compatible
query I rowsort
SELECT CAST ( 17 AS REAL ) FROM tab2, tab0 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
onlyif mysql # use DIV operator for integer division
query I rowsort label-8598
SELECT + 76 DIV col0 + tab0.col2 AS col2 FROM tab0
----
3
36
82
skipif mysql # not compatible
query I rowsort label-8598
SELECT + 76 / col0 + tab0.col2 AS col2 FROM tab0
----
3
36
82
query I rowsort
SELECT - cor0.col0 * tab2.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to a73bbc3fd0415c60774b01c5f952caf8
query I rowsort
SELECT + 25 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 * col1 col2 FROM tab1
----
1196
2392
920
query I rowsort
SELECT - tab0.col0 * col2 AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT - col0 + + 38 FROM tab2
----
-40
-41
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-8604
SELECT DISTINCT cor0.col0 * cor0.col2 + + col0 + cor0.col0 DIV col0 FROM tab1 AS cor0
----
166
3713
7761
skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT cor0.col0 * cor0.col2 + + col0 + cor0.col0 / col0 FROM tab1 AS cor0
----
166
3713
7761
query I rowsort
SELECT ALL + + 9 + 97 * + col0 * col1 FROM tab1 AS cor0
----
100889
62089
7575
query I rowsort
SELECT DISTINCT col0 * 29 FROM tab0
----
1015
2581
696
query I rowsort
SELECT ALL + ( - col0 ) * + col1 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL 19 - col2 FROM tab0
----
-14
-63
18
query I rowsort
SELECT ALL + col1 - - col2 AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT - tab1.col0 * tab1.col1 * - ( - 39 ) FROM tab1
----
-24960
-3042
-40560
query I rowsort
SELECT - 62 + - col1 * + ( col1 ) - col1 FROM tab1
----
-172
-244
-764
query I rowsort
SELECT DISTINCT - 14 * - col2 FROM tab2 cor0
----
364
378
532
query I rowsort
SELECT DISTINCT - - col0 * col1 + cor0.col1 * + col0 * + col1 FROM tab2 AS cor0
----
24174
276120
6944
query I rowsort
SELECT + col1 * 27 + col1 FROM tab1 AS cor0
----
280
364
728
query I rowsort
SELECT + - col0 + + ( col0 + + col2 * col2 ) FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - col1 * + 30 AS col1 FROM tab1 AS cor0
----
-300
-390
-780
onlyif mysql # use DIV operator for integer division
query I rowsort label-8617
SELECT ALL + col1 + 31 DIV + 2 col1 FROM tab1 AS cor0
----
25
28
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL + col1 + 31 / + 2 col1 FROM tab1 AS cor0
----
25
28
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-8618
SELECT ALL col0 DIV - ( + cor0.col1 ) - - col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL col0 / - ( + cor0.col1 ) - - col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL col0 * - 37 + - col0 * col1 FROM tab0
----
-11392
-2952
-4690
query I rowsort
SELECT + col0 * 2 + + 63 FROM tab0 AS cor0
----
111
133
241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + ( + col0 ) col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT + + col0 + col1 + - col1 FROM tab1 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8623
SELECT DISTINCT - col1 DIV - col0 - col1 FROM tab2 AS cor0
----
-17
-27
-59
skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT - col1 / - col0 - col1 FROM tab2 AS cor0
----
-17
-27
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 44 * col2 + col0 * + col1 col1 FROM tab1 AS cor0
----
-128226
-142316
-404464
onlyif mysql # use DIV operator for integer division
query I rowsort label-8625
SELECT ALL - col0 + + 74 DIV col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL - col0 + + 74 / col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 10 col2 FROM tab1 cor0
----
13
74
90
query I rowsort
SELECT ALL - + col2 * + col2 - 99 FROM tab0 AS cor0
----
-100
-1188
-6823
query I rowsort
SELECT ALL + cor0.col2 + ( - col0 ) * - col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT cor0.col0 + 84 * - cor0.col0 FROM tab1 AS cor0
----
-249
-5312
-6640
query I rowsort
SELECT col0 - + ( 9 ) FROM tab0 AS cor0
----
15
26
80
query I rowsort
SELECT ALL col2 + - 68 + col2 * col2 FROM tab1 AS cor0
----
2902
3238
9244
onlyif mysql # use DIV operator for integer division
query I rowsort label-8632
SELECT DISTINCT 34 * cor0.col2 DIV - 46 FROM tab1 AS cor0
----
-39
-42
-70
skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT 34 * cor0.col2 / - 46 FROM tab1 AS cor0
----
-39
-42
-70
query I rowsort
SELECT - 32 + col0 AS col0 FROM tab1 AS cor0
----
-29
32
48
query I rowsort
SELECT DISTINCT + 77 + + col1 * - col2 FROM tab0
----
-20
-2761
-7385
query I rowsort
SELECT - - ( col2 ) + + ( ( col2 ) ) AS col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT cor0.col2 * + cor0.col1 + - col0 AS col0 FROM tab0 AS cor0
----
2814
62
7373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8637
SELECT col1 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8637
SELECT col1 * + 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-8638
SELECT + col2 + - CAST( col0 AS SIGNED ) * - col1 AS col2 FROM tab2 AS cor0
----
1381
244
4628
skipif mysql # not compatible
query I rowsort label-8638
SELECT + col2 + - CAST ( col0 AS INTEGER ) * - col1 AS col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT col1 + - ( 66 ) FROM tab2 AS cor0
----
-35
-49
-7
query I rowsort
SELECT + - col0 + 83 FROM tab2 AS cor0
----
4
5
76
query I rowsort
SELECT 37 * + col0 FROM tab0
----
1295
3293
888
onlyif mysql # use DIV operator for integer division
query I rowsort label-8642
SELECT col1 * + col2 + col1 DIV ( col0 ) FROM tab2
----
1534
646
841
skipif mysql # not compatible
query I rowsort label-8642
SELECT col1 * + col2 + col1 / ( col0 ) FROM tab2
----
1534
646
841
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 * col1 col0 FROM tab2
----
1147
2183
629
onlyif mysql # use DIV operator for integer division
query I rowsort label-8644
SELECT ( - col2 ) DIV - col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-8644
SELECT ( - col2 ) / - col1 FROM tab1 AS cor0
----
2
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8645
SELECT - - col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8645
SELECT - - col0 / + col0 AS col2 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - 61 * col1 FROM tab1 AS cor0
----
-1586
-610
-793
query I rowsort
SELECT + col1 * col1 * - col2 AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT ALL - - 42 AS col1 FROM tab2 AS cor0
----
42
42
42
query I rowsort
SELECT col2 * col1 + - col1 AS col0 FROM tab1 cor0
----
1235
1378
560
onlyif mysql # use DIV operator for integer division
query I rowsort label-8650
SELECT col2 + col1 DIV - col0 AS col0 FROM tab2
----
23
26
38
skipif mysql # not compatible
query I rowsort label-8650
SELECT col2 + col1 / - col0 AS col0 FROM tab2
----
23
26
38
query I rowsort
SELECT col2 * col0 + + 81 FROM tab2
----
2109
270
3083
onlyif mysql # use DIV operator for integer division
query I rowsort label-8652
SELECT ALL - + cor0.col1 DIV col0 AS col0 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-8652
SELECT ALL - + cor0.col1 / col0 AS col0 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT ALL 61 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1586
-610
-793
query I rowsort
SELECT ALL + - col1 * - col1 + col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT + col1 * 52 + + col0 AS col1 FROM tab1 cor0
----
1355
584
756
query I rowsort
SELECT - cor0.col1 * - 72 + + col1 AS col2 FROM tab1 AS cor0
----
1898
730
949
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) * col2 col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT - ( - 1 ) AS col0 FROM tab0
----
1
1
1
query I rowsort
SELECT - 95 - + col1 * col2 AS col1 FROM tab2 AS cor0
----
-1629
-741
-932
query I rowsort
SELECT + col2 * col2 + - 69 - col0 AS col2 FROM tab1 AS cor0
----
2844
3116
9067
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 + col1 col0 FROM tab0 AS cor0
----
156
161
167
query I rowsort
SELECT DISTINCT - cor0.col1 * col1 + + col2 FROM tab1 cor0
----
-43
-622
-73
query I rowsort
SELECT 76 * + tab0.col0 + + tab0.col2 * - ( + col0 ) FROM tab0
----
-534
1032
2625
query I rowsort
SELECT DISTINCT + col0 - + col0 FROM tab1
----
0
query I rowsort
SELECT DISTINCT - 28 AS col2 FROM tab2
----
-28
onlyif mysql # use DIV operator for integer division
query I rowsort label-8666
SELECT col2 DIV + col2 - - col2 * col0 FROM tab0 AS cor0
----
36
7299
793
skipif mysql # not compatible
query I rowsort label-8666
SELECT col2 / + col2 - - col2 * col0 FROM tab0 AS cor0
----
36
7299
793
query I rowsort
SELECT 40 + col0 AS col1 FROM tab1 AS cor0
----
104
120
43
query I rowsort
SELECT + col1 - - col0 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + + ( + col0 ) + col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT + 29 + + col2 FROM tab1 AS cor0
----
125
83
86
query I rowsort
SELECT + col0 * 71 AS col1 FROM tab0 AS cor0
----
1704
2485
6319
query I rowsort
SELECT - col2 * - col0 + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT + cor0.col2 * - ( ( + col1 ) ) + 31 FROM tab0 cor0
----
-2807
-66
-7431
query I rowsort
SELECT - col0 * 66 FROM tab0 cor0
----
-1584
-2310
-5874
query I rowsort
SELECT + - cor0.col1 + + cor0.col1 AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - - cor0.col0 + + col0 FROM tab0 cor0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + tab0.col0 col2 FROM tab0
----
0
0
0
query I rowsort
SELECT + - cor1.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT DISTINCT col2 + ( col0 ) * col2 AS col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT ALL + + ( ( col2 ) ) + col0 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL + - 37 * + 75 AS col0 FROM tab2 AS cor0
----
-2775
-2775
-2775
query I rowsort
SELECT + ( - 50 ) * col0 + col0 * ( - col2 ) FROM tab0 cor0
----
-11748
-1785
-1992
query I rowsort
SELECT - ( - tab0.col2 ) FROM tab0, tab0 AS cor0, tab1, tab0 cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
query I rowsort
SELECT + - ( + col0 ) + + col2 * + ( col0 ) AS col2 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT + + col2 * + col2 - col2 * col1 AS col0 FROM tab2 AS cor0
----
-108
-858
798
query I rowsort
SELECT ALL col1 - - col0 * - 76 * col0 FROM tab1
----
-311286
-486387
-658
query I rowsort
SELECT ( + col1 ) * ( ( col0 ) ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - 5 + col1 * - cor0.col1 * col1 FROM tab0 AS cor0
----
-636061
-753576
-912678
query I rowsort
SELECT + + col0 * + col1 * col1 AS col2 FROM tab0 AS cor0
----
177504
329315
737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + col2 + 36 col2 FROM tab0 AS cor0
----
1125
37
6760
query I rowsort
SELECT + + 50 * - col1 + col1 * - col1 + col2 FROM tab2 cor0
----
-1101
-2484
-6405
onlyif mysql # use DIV operator for integer division
query I rowsort label-8692
SELECT + col1 * 42 - - col0 DIV col0 FROM tab1 cor0
----
1093
421
547
skipif mysql # not compatible
query I rowsort label-8692
SELECT + col1 * 42 - - col0 / col0 FROM tab1 cor0
----
1093
421
547
onlyif mysql # use DIV operator for integer division
query I rowsort label-8693
SELECT DISTINCT + col0 DIV col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8693
SELECT DISTINCT + col0 / col1 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8694
SELECT ALL - col2 DIV cor0.col0 AS col1 FROM tab2 cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL - col2 / cor0.col0 AS col1 FROM tab2 cor0
----
-3
0
0
query I rowsort
SELECT ALL + - col1 + - col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT - 80 * col2 AS col2 FROM tab0
----
-2640
-6560
-80
query I rowsort
SELECT DISTINCT - - 63 AS col1 FROM tab1, tab0, tab0 AS cor0
----
63
query I rowsort
SELECT - 27 * tab0.col1 FROM tab0
----
-2322
-2457
-2619
query I rowsort
SELECT ALL - cor0.col1 + + 25 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to c0f04e95c1b2283255ff025af18b76f3
query I rowsort
SELECT + + col2 * - col0 + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT ALL col1 * - cor0.col2 AS col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT + col1 + - ( + col0 ) FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT ALL - 12 * - cor0.col2 + + 63 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 64912fad75367db0bf153ebb4d87490a
query I rowsort
SELECT DISTINCT + - 9 AS col2 FROM tab0, tab0 AS cor0
----
-9
query I rowsort
SELECT - col2 + col1 + + col0 FROM tab1
----
-25
-3
17
query I rowsort
SELECT ALL + col2 * + 3 AS col1 FROM tab1 AS cor0
----
162
171
288
query I rowsort
SELECT DISTINCT - col2 * + col2 + + col1 FROM tab1 cor0
----
-2890
-3239
-9203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col0 + - col1 * 5 + + col1 * ( 72 ) col2 FROM tab1
----
1745
734
951
query I rowsort
SELECT + + 58 * col0 * col2 + cor0.col2 * col0 FROM tab0 cor0
----
2065
430582
46728
query I rowsort
SELECT - - ( - ( col2 ) ) * 31 + col2 * - col0 FROM tab1 cor0
----
-10656
-1836
-5415
query I rowsort
SELECT DISTINCT + col0 * col1 + col1 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT - tab1.col2 * col1 + + col1 FROM tab1
----
-1235
-1378
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * + col2 col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT col1 * + col2 + - col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT - - tab0.col1 + - tab0.col2 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 36ab59c6b23903b005e63f870ff8014d
query I rowsort
SELECT DISTINCT col0 * + col1 * tab0.col2 + col1 * 11 FROM tab0
----
4462
665119
69058
query I rowsort
SELECT + col1 * col1 + col1 + col1 FROM tab0
----
7568
8463
9603
query I rowsort
SELECT + col0 + 83 * + 75 * + col1 FROM tab1
----
161853
62314
81005
onlyif mysql # use DIV operator for integer division
query I rowsort label-8719
SELECT + col1 DIV col0 + ( col2 ) * CAST( + col1 AS SIGNED ) FROM tab0
----
2841
7463
99
skipif mysql # not compatible
query I rowsort label-8719
SELECT + col1 / col0 + ( col2 ) * CAST ( + col1 AS INTEGER ) FROM tab0
----
2841
7463
99
query I rowsort
SELECT ALL cor0.col2 * - col0 * + ( - col2 ) AS col1 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT DISTINCT + - 90 AS col1 FROM tab1 AS cor0
----
-90
query I rowsort
SELECT DISTINCT - 65 * + col0 * col2 AS col0 FROM tab0 AS cor0
----
-2275
-474370
-51480
query I rowsort
SELECT ALL - col1 + + col1 * - col1 * col1 AS col2 FROM tab1 AS cor0
----
-1010
-17602
-2210
onlyif mysql # use DIV operator for integer division
query I rowsort label-8724
SELECT - 95 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-8724
SELECT - 95 / col0 col2 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT ALL - col2 * - col0 * 99 + 66 * + col0 AS col1 FROM tab0 AS cor0
----
5775
728376
79992
onlyif mysql # use DIV operator for integer division
query I rowsort label-8726
SELECT 6 * tab1.col1 DIV - col0 + col0 AS col0 FROM tab1
----
-49
64
80
skipif mysql # not compatible
query I rowsort label-8726
SELECT 6 * tab1.col1 / - col0 + col0 AS col0 FROM tab1
----
-49
64
80
query I rowsort
SELECT ALL + 73 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT + ( - tab0.col1 ) + - col0 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT 52 + 36 * col2 AS col0 FROM tab1
----
1996
2104
3508
query I rowsort
SELECT DISTINCT + + 39 * - col0 FROM tab1 cor0
----
-117
-2496
-3120
query I rowsort
SELECT ALL 49 * col2 AS col1 FROM tab0 cor0
----
1617
4018
49
query I rowsort
SELECT DISTINCT + + 17 * - col1 + col2 AS col2 FROM tab1 AS cor0
----
-113
-125
-388
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col2 + col1 * ( - col0 ) col1 FROM tab0 AS cor0
----
-2073
-3361
-8092
query I rowsort
SELECT col2 + - cor0.col0 * - 91 AS col1 FROM tab1 AS cor0
----
327
5881
7376
query I rowsort
SELECT - 8 * col2 AS col1 FROM tab1 AS cor0
----
-432
-456
-768
query I rowsort
SELECT DISTINCT - col2 * + col2 + + cor0.col2 + + 69 FROM tab1 AS cor0
----
-2793
-3123
-9051
query I rowsort
SELECT ALL + + cor0.col0 - col1 AS col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT - col0 * + tab1.col1 * + col0 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT ALL - col1 * - col1 + + col0 * col2 AS col1 FROM tab1
----
3748
7849
838
query I rowsort
SELECT tab2.col0 + + col1 + col0 FROM tab2
----
175
215
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-8741
SELECT DISTINCT + col1 + + tab0.col1 DIV - col0 FROM tab0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-8741
SELECT DISTINCT + col1 + + tab0.col1 / - col0 FROM tab0
----
83
90
95
query I rowsort
SELECT DISTINCT + - col1 * col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - col2 * + col1 * cor0.col1 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT - col0 * - col1 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - col0 col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8746
SELECT col2 - + col2 DIV col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-8746
SELECT col2 - + col2 / col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - col0 * col2 + - col0 FROM tab2 AS cor0
----
-196
-2106
-3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 + + cor0.col0 col1 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT ALL - cor0.col2 * - cor0.col1 + col1 * col2 FROM tab0 AS cor0
----
14924
194
5676
query I rowsort
SELECT DISTINCT tab1.col0 + + col2 AS col1 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT tab1.col0 + + col0 * tab1.col2 * col1 FROM tab1
----
36544
4215
99920
onlyif mysql # use DIV operator for integer division
query I rowsort label-8752
SELECT - col1 + - col2 DIV - col0 AS col2 FROM tab2
----
-17
-28
-59
skipif mysql # not compatible
query I rowsort label-8752
SELECT - col1 + - col2 / - col0 AS col2 FROM tab2
----
-17
-28
-59
query I rowsort
SELECT ALL + col1 + + col2 * + col1 AS col2 FROM tab0
----
194
2924
7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + col2 col1 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8755
SELECT ALL col0 DIV col0 + col0 * tab0.col1 FROM tab0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL col0 / col0 + col0 * tab0.col1 FROM tab0
----
2065
3396
8100
query I rowsort
SELECT ALL col1 * col0 + tab0.col2 AS col0 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT - + 79 * col2 * col1 AS col0 FROM tab0 AS cor0
----
-224202
-589498
-7663
query I rowsort
SELECT ALL - + ( + col0 ) * - col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL - 42 AS col1 FROM tab0 AS cor0
----
-42
-42
-42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col2 FROM tab2
----
6
6
6
query I rowsort
SELECT DISTINCT ( - col2 ) * + col0 * col2 FROM tab2 cor0
----
-114076
-5103
-52728
query I rowsort
SELECT ALL 65 AS col1 FROM tab2 AS cor0
----
65
65
65
query I rowsort
SELECT 68 + - ( - col0 * - col2 ) FROM tab2
----
-121
-1960
-2934
onlyif mysql # use DIV operator for integer division
query I rowsort label-8764
SELECT 64 + - col0 * col1 DIV col0 AS col2 FROM tab0 AS cor0
----
-22
-27
-33
skipif mysql # not compatible
query I rowsort label-8764
SELECT 64 + - col0 * col1 / col0 AS col2 FROM tab0 AS cor0
----
-22
-27
-33
query I rowsort
SELECT ALL - 6 + - col0 AS col0 FROM tab2 AS cor0
----
-13
-84
-85
query I rowsort
SELECT col2 + - col2 * col0 + - col2 AS col0 FROM tab1
----
-162
-3648
-7680
query III rowsort
SELECT * FROM tab1 WHERE ( col2 * - col1 ) NOT IN ( col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT col0 / tab0.col2 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT col2 * - tab1.col2 AS col1 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT - tab0.col2 + col1 AS col1 FROM tab0 WHERE NOT NULL = NULL
----
query I rowsort
SELECT DISTINCT - col1 + + col0 * - col1 * col1 FROM tab2
----
-22848
-271577
-6758
query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 IN ( + col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT col1 * col0 AS col0 FROM tab1 WHERE NULL < NULL
----
query I rowsort
SELECT DISTINCT - col1 - tab2.col0 AS col2 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT ALL + col0 FROM tab2 WHERE - col2 * col0 IN ( tab2.col0 * col1 )
----
query I rowsort
SELECT ALL + tab2.col0 AS col1 FROM tab2 WHERE NOT NULL < NULL
----
query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT NULL = NULL
----
query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT ( NULL ) IN ( tab1.col1 )
----
query I rowsort
SELECT col0 + col0 AS col2 FROM tab2 WHERE NOT - col1 IN ( col1 - - col0 )
----
14
156
158
query I rowsort
SELECT ALL + col0 - + col2 AS col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT ALL + tab2.col2 - col1 AS col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT + col0 FROM tab1 WHERE NOT col0 NOT IN ( + col1 * - col0 * - col2 )
----
query I rowsort
SELECT ALL + - cor0.col1 + + cor0.col1 * + col1 AS col0 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT - cor0.col1 FROM tab1, tab0 cor0 CROSS JOIN tab0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT ALL - col2 + col2 * col2 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
2836
3182
9107
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > + col2 * col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8787
SELECT col2 * cor0.col2 + + cor0.col1 DIV col1 FROM tab0 AS cor0
----
1090
2
6725
skipif mysql # not compatible
query I rowsort label-8787
SELECT col2 * cor0.col2 + + cor0.col1 / col1 FROM tab0 AS cor0
----
1090
2
6725
query I rowsort
SELECT + col0 * col2 + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT col0 * cor0.col2 + 69 AS col2 FROM tab1 AS cor0
----
231
3717
7749
query I rowsort
SELECT DISTINCT - col1 * - col1 AS col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT ALL cor0.col2 * + col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-8792
SELECT - 48 DIV col0 AS col1 FROM tab2 cor0
----
-6
0
0
skipif mysql # not compatible
query I rowsort label-8792
SELECT - 48 / col0 AS col1 FROM tab2 cor0
----
-6
0
0
query I rowsort
SELECT ALL + col0 * + col1 + + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT - col1 * 28 AS col0 FROM tab2
----
-1652
-476
-868
query I rowsort
SELECT DISTINCT + 70 * + col0 * - col1 FROM tab2 AS cor0
----
-15190
-322140
-94010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 - col1 * cor0.col1 * - cor0.col1 col2 FROM tab2 AS cor0
----
203845
28954
4267
onlyif mysql # use DIV operator for integer division
query I rowsort label-8797
SELECT DISTINCT - 29 + + col0 * - col0 DIV col0 AS col0 FROM tab0 cor0
----
-118
-53
-64
skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT - 29 + + col0 * - col0 / col0 AS col0 FROM tab0 cor0
----
-118
-53
-64
query I rowsort
SELECT col0 * + col1 + col2 + ( col0 ) FROM tab2 cor0
----
1460
251
4706
query I rowsort
SELECT DISTINCT + col2 - col2 * col1 FROM tab1
----
-1152
-1350
-513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 * 61 col0 FROM tab1
----
3297
3541
5936
query I rowsort
SELECT + col0 + + tab1.col0 FROM tab1
----
128
160
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8802
SELECT DISTINCT cor0.col2 + - CAST( 92 AS SIGNED ) FROM tab2, tab2 cor0
----
-54
-65
-66
skipif mysql # not compatible
query I rowsort label-8802
SELECT DISTINCT cor0.col2 + - CAST ( 92 AS INTEGER ) FROM tab2, tab2 cor0
----
-54
-65
-66
query I rowsort
SELECT - col1 + col0 + cor0.col2 * col2 * + cor0.col0 FROM tab2 AS cor0
----
114138
5079
52747
query I rowsort
SELECT ALL - + col0 * - col2 + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL - + col1 * cor0.col0 + ( 84 ) AS col1 FROM tab0 AS cor0
----
-1980
-3311
-8015
query I rowsort
SELECT DISTINCT - 51 + col1 * + col0 FROM tab1 AS cor0
----
27
589
989
query I rowsort
SELECT DISTINCT 64 FROM tab1, tab2 AS cor0
----
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 col1 FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8809
SELECT CAST( NULL AS DECIMAL ) + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8809
SELECT CAST ( NULL AS REAL ) + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8810
SELECT ALL + CAST( NULL AS SIGNED ) - + col0 * - tab2.col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL + CAST ( NULL AS INTEGER ) - + col0 * - tab2.col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8811
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 65 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8811
SELECT DISTINCT CAST ( NULL AS REAL ) + 65 FROM tab2 cor0
----
NULL
query I rowsort
SELECT DISTINCT + 1 AS col0 FROM tab1 AS cor0
----
1
query I rowsort
SELECT DISTINCT + 98 * + col2 * + col1 + - col1 * ( + col0 * ( - col2 ) ) FROM tab1 AS cor0
----
141804
222144
92340
query I rowsort
SELECT DISTINCT 70 * - col1 + col1 FROM tab2 cor0
----
-1173
-2139
-4071
query I rowsort
SELECT ALL - + 33 * - col2 FROM tab1 AS cor0
----
1782
1881
3168
query I rowsort
SELECT ALL tab2.col1 + tab2.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 882fef197e3b41358c58e24f2db2f2e1
query I rowsort
SELECT DISTINCT - - col2 + - col2 AS col1 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL - - col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - 66 * - ( col0 ) FROM tab0 AS cor0
----
1584
2310
5874
query I rowsort
SELECT ALL - + cor0.col1 + - col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - col0 col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - 25 - col0 * + col1 * col1 FROM tab1 AS cor0
----
-13545
-2053
-6425
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 * col2 col1 FROM tab1 AS cor0
----
3240
3420
5760
query I rowsort
SELECT 57 * col2 FROM tab0 AS cor0
----
1881
4674
57
query I rowsort
SELECT ALL + + 46 * cor0.col1 AS col2 FROM tab0 cor0
----
3956
4186
4462
onlyif mysql # use DIV operator for integer division
query I rowsort label-8826
SELECT DISTINCT - + col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT - + col2 / + col0 AS col0 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT + - col1 * cor0.col1 + col1 FROM tab0 cor0
----
-7310
-8190
-9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8828
SELECT DISTINCT - col0 * col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8828
SELECT DISTINCT - col0 * col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - ( col1 ) + 19 AS col1 FROM tab1 AS cor0
----
-7
6
9
query I rowsort
SELECT + 74 * - col1 AS col0 FROM tab1 AS cor0
----
-1924
-740
-962
query I rowsort
SELECT ALL - 22 * - col2 AS col1 FROM tab1 AS cor0
----
1188
1254
2112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8832
SELECT ALL - - cor1.col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL - - cor1.col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - col1 + - 47 AS col0 FROM tab2 AS cor0
----
-106
-64
-78
query I rowsort
SELECT ALL - cor0.col1 * ( + 63 ) FROM tab1 AS cor0
----
-1638
-630
-819
query I rowsort
SELECT col0 + 88 * - cor0.col1 FROM tab0 cor0
----
-7544
-7919
-8501
query I rowsort
SELECT ALL + col0 + - 85 FROM tab0 cor0
----
-50
-61
4
query I rowsort
SELECT - col0 + cor0.col1 * - 4 FROM tab2 AS cor0
----
-131
-147
-314
query I rowsort
SELECT ALL + col0 + - col1 * - col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT - + col2 * - col0 + - col0 AS col1 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT col2 * - 35 * 65 FROM tab1
----
-122850
-129675
-218400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8841
SELECT ALL CAST( NULL AS DECIMAL ) + + 70 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL CAST ( NULL AS REAL ) + + 70 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col2 + col0 AS col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - 94 + col0 * - col0 FROM tab0 AS cor0
----
-1319
-670
-8015
query I rowsort
SELECT ALL col2 * ( ( col0 ) ) FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT ( 79 ) FROM tab1, tab1 AS cor0
----
79
query I rowsort
SELECT col2 * 3 + col0 AS col0 FROM tab0
----
123
335
38
query I rowsort
SELECT tab1.col1 + ( + col1 ) FROM tab1
----
20
26
52
query I rowsort
SELECT + col0 + 46 * ( col2 ) FROM tab0
----
1542
3861
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * 97 col2 FROM tab1 AS cor0
----
-1261
-2522
-970
query I rowsort
SELECT - col2 * + col2 * col2 + - col2 FROM tab0
----
-2
-35970
-551450
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8851
SELECT ALL + cor0.col0 * CAST( NULL AS SIGNED ) FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL + cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL col2 * + col0 * col2 FROM tab0
----
26136
35
598436
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 col2 FROM tab2
----
-6
-6
-6
query I rowsort
SELECT col2 * 43 FROM tab1 AS cor0
----
2322
2451
4128
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8855
SELECT + CAST( NULL AS SIGNED ) * + cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8855
SELECT + CAST ( NULL AS INTEGER ) * + cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 * - 73 * - tab2.col2 col1 FROM tab2
----
-105491
-49426
-53224
query I rowsort
SELECT ( + 66 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8858
SELECT DISTINCT + CAST( + col0 AS SIGNED ) FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) FROM tab0
----
24
35
89
query I rowsort
SELECT - col2 + + col0 * col1 AS col0 FROM tab1
----
24
583
944
query I rowsort
SELECT + 45 * + col0 AS col1 FROM tab2
----
315
3510
3555
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8861
SELECT DISTINCT CAST( NULL AS SIGNED ) + - cor0.col1 * cor0.col0 * - CAST( 71 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8861
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - cor0.col1 * cor0.col0 * - CAST ( 71 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + - cor0.col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - + 93 * col1 AS col2 FROM tab1 AS cor0
----
-1209
-2418
-930
query I rowsort
SELECT DISTINCT + 90 * - col1 + col1 * col0 AS col0 FROM tab0 cor0
----
-5335
-5676
-91
query I rowsort
SELECT ALL + 30 - 64 FROM tab0 AS cor0
----
-34
-34
-34
query I rowsort
SELECT DISTINCT + col0 + - col1 AS col0 FROM tab1 cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL - + cor0.col1 * col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 + - 82 * + 42 col2 FROM tab1 AS cor0
----
-2040
-2196
-2874
query I rowsort
SELECT - + 76 * col2 FROM tab1 AS cor0
----
-4104
-4332
-7296
query I rowsort
SELECT DISTINCT 78 * ( - tab1.col1 ) FROM tab1, tab2, tab1 AS cor0
----
-1014
-2028
-780
query I rowsort
SELECT tab1.col0 * - col1 + + col1 AS col0 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT 56 - - col2 * ( col2 ) * - col2 AS col0 FROM tab0
----
-35881
-551312
55
query I rowsort
SELECT - col1 + - cor0.col2 FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8875
SELECT - - CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8875
SELECT - - CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT 10 AS col0 FROM tab0, tab2 AS cor0
----
10
query I rowsort
SELECT - + 26 * cor0.col2 * + col2 FROM tab2 AS cor0
----
-17576
-18954
-37544
query I rowsort
SELECT ALL col2 + + col0 * col0 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT ALL + + col1 + 93 AS col2 FROM tab1 cor0
----
103
106
119
query I rowsort
SELECT ALL - cor0.col2 * - cor0.col2 + 98 * col1 AS col2 FROM tab1 AS cor0
----
10490
4229
5464
query I rowsort
SELECT DISTINCT - col0 + - 18 AS col1 FROM tab1 AS cor0
----
-21
-82
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 75 col2 FROM tab1 AS cor0
----
4050
4275
7200
query I rowsort
SELECT ALL - + cor0.col0 * + cor0.col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - - col0 * + 96 + col1 FROM tab2 AS cor0
----
703
7547
7601
onlyif mysql # use DIV operator for integer division
query I rowsort label-8885
SELECT DISTINCT - - col2 - CAST( 27 AS SIGNED ) DIV + col0 AS col0 FROM tab0 AS cor0
----
1
32
82
skipif mysql # not compatible
query I rowsort label-8885
SELECT DISTINCT - - col2 - CAST ( 27 AS INTEGER ) / + col0 AS col0 FROM tab0 AS cor0
----
1
32
82
query I rowsort
SELECT - cor0.col0 + + 85 * col1 FROM tab2 AS cor0
----
1366
2628
4937
query I rowsort
SELECT ALL + col1 * + 18 AS col2 FROM tab1 AS cor0
----
180
234
468
query I rowsort
SELECT col0 * 94 FROM tab1 AS cor0
----
282
6016
7520
query I rowsort
SELECT - col2 * col0 - - col2 AS col0 FROM tab2 cor0
----
-162
-2002
-2964
query I rowsort
SELECT col0 + - col1 * - col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT 31 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-310
-403
-806
query I rowsort
SELECT - + col0 + - 76 FROM tab0 AS cor0
----
-100
-111
-165
query I rowsort
SELECT DISTINCT col1 * - 70 + - col0 * col2 FROM tab0
----
-13668
-6812
-6825
onlyif mysql # use DIV operator for integer division
query I rowsort label-8894
SELECT + col1 DIV 78 + col0 - 70 FROM tab1 AS cor0
----
-6
-67
10
skipif mysql # not compatible
query I rowsort label-8894
SELECT + col1 / 78 + col0 - 70 FROM tab1 AS cor0
----
-6
-67
10
query I rowsort
SELECT ALL - + ( col1 ) * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-8896
SELECT col1 DIV + 57 + col0 AS col2 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-8896
SELECT col1 / + 57 + col0 AS col2 FROM tab0
----
25
36
90
query I rowsort
SELECT DISTINCT - cor0.col1 * ( + 58 ) FROM tab1 cor0
----
-1508
-580
-754
query I rowsort
SELECT ALL col0 + 92 * + col1 AS col2 FROM tab2 AS cor0
----
1643
2859
5506
query I rowsort
SELECT + + col2 * + ( 98 ) FROM tab1 AS cor0
----
5292
5586
9408
query I rowsort
SELECT ALL col0 + cor0.col2 * - 11 AS col0 FROM tab0 AS cor0
----
-339
-813
24
query I rowsort
SELECT ALL - col1 + 33 AS col0 FROM tab2 AS cor0
----
-26
16
2
query I rowsort
SELECT DISTINCT cor0.col1 * 70 AS col2 FROM tab0 cor0
----
6020
6370
6790
query I rowsort
SELECT - col1 * - col0 * col1 AS col1 FROM tab1 AS cor0
----
13520
2028
6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * + 60 col0 FROM tab2 AS cor0
----
-420
-4680
-4740
query I rowsort
SELECT ALL + col1 - - 28 AS col2 FROM tab0
----
114
119
125
query I rowsort
SELECT ALL 7 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT ALL col2 * - col2 + - col1 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT + 61 * col2 + cor0.col1 FROM tab0 cor0
----
158
2099
5093
query I rowsort
SELECT DISTINCT - + 85 * col0 + - col1 FROM tab0 AS cor0
----
-2126
-3072
-7656
query I rowsort
SELECT DISTINCT col2 - col1 * tab0.col1 AS col2 FROM tab0
----
-7363
-8199
-9408
query I rowsort
SELECT ALL + 30 * - col0 * 12 FROM tab1 AS cor0
----
-1080
-23040
-28800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 * col0 * 73 col2 FROM tab1 AS cor0
----
21681
462528
578160
query I rowsort
SELECT DISTINCT - 49 * col1 AS col2 FROM tab2 AS cor0
----
-1519
-2891
-833
query I rowsort
SELECT + col0 * + col1 + col0 * + col2 * col2 FROM tab1 AS cor0
----
208576
738320
8826
onlyif mysql # use DIV operator for integer division
query I rowsort label-8915
SELECT ALL + + 3 + - col2 DIV col2 AS col2 FROM tab1 AS cor0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL + + 3 + - col2 / col2 AS col2 FROM tab1 AS cor0
----
2
2
2
query I rowsort
SELECT ALL ( col2 ) + col0 AS col1 FROM tab0
----
171
36
57
query I rowsort
SELECT + 55 + - col2 * - 73 FROM tab1
----
3997
4216
7063
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col0 * + tab1.col2 col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT - col1 - + col1 * - 98 FROM tab2
----
1649
3007
5723
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 + col1 * 51 col1 FROM tab1
----
1329
513
666
query I rowsort
SELECT DISTINCT + 78 * - col0 FROM tab0
----
-1872
-2730
-6942
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 * col2 col1 FROM tab1
----
207936
737280
8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-8923
SELECT DISTINCT tab1.col0 DIV col2 AS col2 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT tab1.col0 / col2 AS col2 FROM tab1
----
0
1
query I rowsort
SELECT DISTINCT + + 22 * - col1 AS col0 FROM tab1 AS cor0
----
-220
-286
-572
query I rowsort
SELECT ALL + col0 * - col2 AS col1 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + col1 * col0 * + ( col0 ) FROM tab1 cor0
----
234
40960
83200
query I rowsort
SELECT DISTINCT 87 + - col2 AS col0 FROM tab1 AS cor0
----
-9
30
33
query I rowsort
SELECT DISTINCT + 63 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
63
query I rowsort
SELECT ALL col0 * - col2 * 88 AS col2 FROM tab1
----
-14256
-321024
-675840
query I rowsort
SELECT + + col0 + - ( 85 ) AS col0 FROM tab1 AS cor0
----
-21
-5
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8931
SELECT DISTINCT - col1 + ( col2 ) DIV col1 AS col1 FROM tab2 AS cor0
----
-15
-31
-59
skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT - col1 + ( col2 ) / col1 AS col1 FROM tab2 AS cor0
----
-15
-31
-59
query I rowsort
SELECT ALL col1 - + 3 * + col2 FROM tab1 AS cor0
----
-136
-161
-275
query I rowsort
SELECT tab2.col0 + - tab2.col0 + col0 FROM tab2
----
7
78
79
query I rowsort
SELECT ( + col2 ) + col1 * col0 + col2 AS col0 FROM tab0
----
2130
3397
8263
query I rowsort
SELECT DISTINCT + ( col0 ) + col1 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL + 55 * - col0 + col2 AS col0 FROM tab2
----
-358
-4264
-4307
query I rowsort
SELECT + ( col1 ) * + col0 AS col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT 38 + - col0 FROM tab1
----
-26
-42
35
query I rowsort
SELECT ALL + - ( + cor0.col0 ) FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8940
SELECT - ( tab0.col2 ) DIV col0 + 98 FROM tab0
----
97
98
98
skipif mysql # not compatible
query I rowsort label-8940
SELECT - ( tab0.col2 ) / col0 + 98 FROM tab0
----
97
98
98
query I rowsort
SELECT DISTINCT ( 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-8942
SELECT - - CAST( + col0 AS SIGNED ) + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-8942
SELECT - - CAST ( + col0 AS INTEGER ) + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT + - 37 + col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1306
180
4565
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 86 + + col2 col0 FROM tab0 AS cor0
----
119
168
87
query I rowsort
SELECT ALL - 7 * + col2 + col2 FROM tab1 AS cor0
----
-324
-342
-576
query I rowsort
SELECT DISTINCT + + 39 FROM tab2 AS cor0
----
39
query I rowsort
SELECT ALL - col2 * ( - col1 + col1 ) AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - ( - 83 ) * - col2 FROM tab2 AS cor0
----
-2158
-2241
-3154
query I rowsort
SELECT ALL 34 FROM tab1, tab0 cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 6cda47a564e8ee9e9e7915815a3a7769
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 91 * - 34 + col0 * - col0 col2 FROM tab1 AS cor0
----
-1002
-3306
3085
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8951
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col2 * col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8951
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col2 * col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col2 * col1 * + 43 FROM tab1 AS cor0
----
24510
53664
60372
onlyif mysql # use DIV operator for integer division
query I rowsort label-8953
SELECT DISTINCT col2 DIV col0 - col2 AS col0 FROM tab0 AS cor0
----
-1
-32
-82
skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT col2 / col0 - col2 AS col0 FROM tab0 AS cor0
----
-1
-32
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8954
SELECT col0 * cor0.col0 + col1 DIV col1 AS col2 FROM tab1 AS cor0
----
10
4097
6401
skipif mysql # not compatible
query I rowsort label-8954
SELECT col0 * cor0.col0 + col1 / col1 AS col2 FROM tab1 AS cor0
----
10
4097
6401
query I rowsort
SELECT ALL 29 + + col2 FROM tab0 AS cor0
----
111
30
62
query I rowsort
SELECT ALL - ( col1 ) * ( col1 ) FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8957
SELECT + 0 * col1 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8957
SELECT + 0 * col1 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 + col0 * + col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT + 32 * col0 + - 48 FROM tab1 AS cor0
----
2000
2512
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-8960
SELECT DISTINCT + 17 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT + 17 / - col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - 18 + col1 FROM tab0 AS cor0
----
68
73
79
query I rowsort
SELECT ALL - col0 + + col0 * - col2 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT - 33 + col2 * + 89 AS col2 FROM tab1 AS cor0
----
4773
5040
8511
query I rowsort
SELECT ALL col2 + col2 * + 30 FROM tab0 AS cor0
----
1023
2542
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + tab2.col2 * col0 + - ( - 49 ) * + col2 col1 FROM tab2
----
1485
3276
4826
query I rowsort
SELECT + - 2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 20c9213316527d507e26425041e08387
query I rowsort
SELECT ALL - 6 + tab0.col1 FROM tab0
----
80
85
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8968
SELECT CAST( NULL AS SIGNED ) + col2 * + col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8968
SELECT CAST ( NULL AS INTEGER ) + col2 * + col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * col2 * - col0 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT cor0.col0 + + col0 AS col1 FROM tab1 AS cor0
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * - cor0.col1 + 41 col0 FROM tab0 AS cor0
----
7437
8322
9450
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) + col2 col2 FROM tab1
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + col1 * - col0 + cor0.col0 col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT col2 + + 45 * + col2 * 21 FROM tab2 AS cor0
----
24596
25542
35948
query I rowsort
SELECT DISTINCT + 80 * cor0.col2 FROM tab1, tab1 AS cor0
----
4320
4560
7680
query I rowsort
SELECT - cor0.col2 * - cor0.col0 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to e1120e7b687b32270ef70393236e7341
onlyif mysql # use DIV operator for integer division
query I rowsort label-8977
SELECT - 45 DIV - col0 + col0 + col1 AS col1 FROM tab2 AS cor0
----
137
44
96
skipif mysql # not compatible
query I rowsort label-8977
SELECT - 45 / - col0 + col0 + col1 AS col1 FROM tab2 AS cor0
----
137
44
96
query I rowsort
SELECT ALL + ( - 34 ) FROM tab2
----
-34
-34
-34
query I rowsort
SELECT DISTINCT - 16 AS col1 FROM tab1, tab0 cor0
----
-16
query I rowsort
SELECT DISTINCT ( + col1 ) * col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT 32 * - tab1.col0 AS col2 FROM tab1
----
-2048
-2560
-96
query I rowsort
SELECT DISTINCT 36 FROM tab2, tab2 cor0
----
36
query I rowsort
SELECT ALL + col2 * - 52 AS col0 FROM tab2
----
-1352
-1404
-1976
query I rowsort
SELECT DISTINCT + ( - col0 ) + col0 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ( + col1 ) + + col1 + + col2 FROM tab0 AS cor0
----
195
205
264
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - - col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
query I rowsort
SELECT ALL + 51 + tab2.col0 * col2 FROM tab2
----
2079
240
3053
query I rowsort
SELECT cor0.col1 * col1 - col2 FROM tab0 cor0
----
7363
8199
9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-8991
SELECT - - col1 + col0 + - 39 DIV col0 AS col0 FROM tab1 AS cor0
----
16
74
93
skipif mysql # not compatible
query I rowsort label-8991
SELECT - - col1 + col0 + - 39 / col0 AS col0 FROM tab1 AS cor0
----
16
74
93
query I rowsort
SELECT ALL + 66 + col1 AS col1 FROM tab1
----
76
79
92
query I rowsort
SELECT DISTINCT - col2 + - col0 AS col0 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT col2 * ( - col0 ) * + col0 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT ALL + - col0 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab1, tab0 cor0
----
0
query I rowsort
SELECT + + col2 + 98 * + ( col1 ) AS col2 FROM tab1 AS cor0
----
1037
1370
2602
query I rowsort
SELECT + col0 + + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL + col1 + - cor0.col2 * + col0 + col2 FROM tab1 AS cor0
----
-3581
-7571
-82
query I rowsort
SELECT ALL - + col2 * ( 90 ) AS col1 FROM tab2 AS cor0
----
-2340
-2430
-3420
query I rowsort
SELECT DISTINCT + + col0 + 51 FROM tab2 AS cor0
----
129
130
58
query I rowsort
SELECT + col2 * cor0.col2 - 68 AS col1 FROM tab2 AS cor0
----
1376
608
661
onlyif mysql # use DIV operator for integer division
query I rowsort label-9003
SELECT ALL col0 DIV + col0 + col2 AS col1 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL col0 / + col0 + col2 AS col1 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT + col1 * col2 * col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT - 69 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9006
SELECT col2 DIV + ( col0 + col2 ) AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9006
SELECT col2 / + ( col0 + col2 ) AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL tab0.col0 * col2 - col2 AS col2 FROM tab0
----
34
7216
759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9008
SELECT ALL - tab0.col2 - + CAST( 39 AS SIGNED ) AS col1 FROM tab0
----
-121
-40
-72
skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL - tab0.col2 - + CAST ( 39 AS INTEGER ) AS col1 FROM tab0
----
-121
-40
-72
query I rowsort
SELECT - col0 * + cor0.col0 + col1 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT 96 * col0 + + col0 * + 14 AS col1 FROM tab1 AS cor0
----
330
7040
8800
query I rowsort
SELECT ALL - cor0.col0 + ( col0 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + col2 * col2 - col1 AS col1 FROM tab0 cor0
----
-96
1003
6633
query I rowsort
SELECT ALL + col1 + 32 AS col0 FROM tab1 AS cor0
----
42
45
58
query I rowsort
SELECT DISTINCT - + ( col1 ) - - col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - + cor0.col1 + - col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 + tab0.col2 col0 FROM tab0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9017
SELECT + - col2 DIV + 2 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1
-18
-35
skipif mysql # not compatible
query I rowsort label-9017
SELECT + - col2 / + 2 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1
-18
-35
onlyif mysql # use DIV operator for integer division
query I rowsort label-9018
SELECT DISTINCT 45 * col1 DIV col2 FROM tab1 AS cor0
----
21
6
7
skipif mysql # not compatible
query I rowsort label-9018
SELECT DISTINCT 45 * col1 / col2 FROM tab1 AS cor0
----
21
6
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9019
SELECT DISTINCT ( + cor0.col1 ) * col2 + + CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9019
SELECT DISTINCT ( + cor0.col1 ) * col2 + + CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL 14 * col2 FROM tab0
----
1148
14
462
query I rowsort
SELECT DISTINCT - - 77 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
77
query I rowsort
SELECT + 33 * + col2 AS col1 FROM tab0 AS cor0
----
1089
2706
33
query I rowsort
SELECT + ( col0 ) * + col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT cor0.col0 * cor0.col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT - 94 * - col2 * - col0 AS col1 FROM tab2 cor0
----
-17766
-190632
-282188
query I rowsort
SELECT cor0.col1 * 20 + col2 AS col0 FROM tab0 AS cor0
----
1753
1902
1941
query I rowsort
SELECT ALL - 50 AS col0 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to faf91d5263c18db4877a3c30c47e2487
query I rowsort
SELECT - - cor0.col1 * col1 - - col2 AS col2 FROM tab0 AS cor0
----
7429
8363
9410
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9029
SELECT + col2 * CAST( cor0.col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-9029
SELECT + col2 * CAST ( cor0.col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL 88 + tab0.col2 + col2 AS col1 FROM tab0
----
154
252
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # use DIV operator for integer division
query I rowsort label-9032
SELECT ALL + - col0 - - col1 DIV col0 col1 FROM tab2 AS cor0
----
-3
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9032
SELECT ALL + - col0 - - col1 / col0 col1 FROM tab2 AS cor0
----
-3
-78
-79
query I rowsort
SELECT - 47 + - col2 FROM tab1 AS cor0
----
-101
-104
-143
query I rowsort
SELECT DISTINCT col0 * col0 + 18 AS col2 FROM tab1 AS cor0
----
27
4114
6418
query I rowsort
SELECT ALL - col2 + 8 * col2 * - col0 FROM tab2 AS cor0
----
-1539
-16250
-24054
query I rowsort
SELECT ALL + col1 + + 47 + - col2 AS col0 FROM tab1 AS cor0
----
-36
0
19
onlyif mysql # use DIV operator for integer division
query I rowsort label-9037
SELECT ALL col2 + - ( col0 ) DIV col1 + + 23 AS col1 FROM tab2 AS cor0
----
48
50
57
skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL col2 + - ( col0 ) / col1 + + 23 AS col1 FROM tab2 AS cor0
----
48
50
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9038
SELECT ALL + col1 + CAST( 77 AS SIGNED ) * col2 FROM tab2 cor0
----
2061
2110
2943
skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL + col1 + CAST ( 77 AS INTEGER ) * col2 FROM tab2 cor0
----
2061
2110
2943
query I rowsort
SELECT DISTINCT - col0 + - ( col0 ) AS col0 FROM tab1 cor0
----
-128
-160
-6
query I rowsort
SELECT - cor0.col2 * - 65 FROM tab1 AS cor0
----
3510
3705
6240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - col2 col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL - col1 + 13 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-124
-25
-83
query I rowsort
SELECT DISTINCT + col1 * - 52 AS col0 FROM tab0 AS cor0
----
-4472
-4732
-5044
query I rowsort
SELECT DISTINCT - cor0.col1 + 61 + 73 * col2 FROM tab1 AS cor0
----
3977
4212
7056
query I rowsort
SELECT ALL - col2 - col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT - 75 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59
query I rowsort
SELECT DISTINCT + col2 + + col0 AS col1 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT - + cor0.col0 * - col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + col0 * + ( 84 ) + + col0 + 10 * + col1 FROM tab2 cor0
----
6885
7220
905
query I rowsort
SELECT DISTINCT col2 * + col2 * + tab0.col2 FROM tab0
----
1
35937
551368
query I rowsort
SELECT col2 * tab2.col2 * - tab2.col1 AS col2 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT tab0.col0 FROM tab0 WHERE NOT + col2 + col2 < NULL
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( - col0 + col0 * + col1 - col1 * col1 ) AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 * tab0.col1 col2 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT col0 * + tab2.col1 * tab2.col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT tab1.col2 * col0 + col1 AS col1 FROM tab1
----
188
3658
7693
query I rowsort
SELECT - tab2.col1 * tab2.col1 FROM tab2 WHERE + col0 + col0 = NULL
----
query I rowsort
SELECT ALL col2 * + col0 FROM tab1 WHERE NOT - col1 * + col2 + col2 IN ( col2 )
----
162
3648
7680
query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE ( NULL ) > col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 * col0 + tab2.col2 * - col1 col0 FROM tab2
----
-6887
-7618
-886
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col1 ) < col0
----
query I rowsort
SELECT 10 * col0 AS col2 FROM tab0 AS cor0
----
240
350
890
query I rowsort
SELECT + col0 + col1 - + col0 AS col2 FROM tab0 WHERE ( col1 ) IN ( + col2 + + col1 * col2 )
----
query I rowsort
SELECT + col1 + + col2 * + col1 * - col1 AS col2 FROM tab2
----
-10965
-25916
-90447
query I rowsort
SELECT ALL ( - cor0.col1 ) + - col1 FROM tab1 cor0
----
-20
-26
-52
query I rowsort
SELECT + 3 * cor0.col1 FROM tab0 AS cor0
----
258
273
291
query I rowsort
SELECT ALL col2 * - col2 * - col1 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT ALL col2 * + col0 + - tab1.col0 - col1 AS col1 FROM tab1
----
133
3574
7587
query I rowsort
SELECT - col0 * col0 - + col2 FROM tab2
----
-6110
-6279
-76
query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 + + col1 * - col2 ) IN ( + col1 + - col2 * - col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col0 - col2 col1 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT - tab0.col1 + - col2 - col1 AS col0 FROM tab0
----
-195
-205
-264
query I rowsort
SELECT + col0 + col0 * 41 + + cor0.col2 FROM tab0 AS cor0
----
1041
1471
3820
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 * col1 col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT - col0 * col1 * col1 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT DISTINCT 16 + cor0.col0 * - col1 FROM tab0 AS cor0
----
-2048
-3379
-8083
query I rowsort
SELECT col2 * col0 * + 67 AS col2 FROM tab0 AS cor0
----
2345
488966
53064
onlyif mysql # use DIV operator for integer division
query I rowsort label-9078
SELECT - 80 * + col2 + col1 + 77 DIV + col0 AS col2 FROM tab0 AS cor0
----
-2551
-6469
19
skipif mysql # not compatible
query I rowsort label-9078
SELECT - 80 * + col2 + col1 + 77 / + col0 AS col2 FROM tab0 AS cor0
----
-2551
-6469
19
query I rowsort
SELECT DISTINCT + ( col0 ) * - col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 - col1 AS col0 FROM tab1 AS cor0
----
-35
-4106
-6413
query I rowsort
SELECT ALL + 70 + col0 + - ( 54 ) * col0 AS col1 FROM tab1 AS cor0
----
-3322
-4170
-89
query I rowsort
SELECT - col0 + - col2 * - col1 AS col1 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT DISTINCT - - col2 + + col0 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT col0 - - col1 * - ( col0 ) FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT + 44 * cor0.col2 AS col2 FROM tab1 AS cor0
----
2376
2508
4224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9086
SELECT ALL + - 44 + + col2 * CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL + - 44 + + col2 * CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 col1 FROM tab0
----
1
1089
6724
query I rowsort
SELECT 61 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT - cor0.col0 + col1 * col2 AS col2 FROM tab0 AS cor0
----
2814
62
7373
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab0 cor2, tab0 AS cor3
----
3645 values hashing to d24b34b0673c90715a7101e7e630fa94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + cor0.col2 ) col2 FROM tab0, tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 col1 FROM tab2, tab2 AS cor0
----
9
query I rowsort
SELECT col1 + ( + tab0.col1 + col0 ) FROM tab0
----
196
229
271
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9094
SELECT DISTINCT CAST( NULL AS DECIMAL ) + ( - col0 ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT CAST ( NULL AS REAL ) + ( - col0 ) FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT - col2 + 7 * col1 * + 36 AS col2 FROM tab0 cor0
----
21639
22850
24443
query I rowsort
SELECT DISTINCT - col1 * - tab1.col1 + col2 AS col1 FROM tab1
----
157
265
730
query I rowsort
SELECT ALL - col1 + 32 AS col0 FROM tab0
----
-54
-59
-65
query I rowsort
SELECT + 98 * tab2.col1 FROM tab2
----
1666
3038
5782
query I rowsort
SELECT DISTINCT col0 + 29 * + col0 FROM tab0
----
1050
2670
720
query I rowsort
SELECT 97 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
query I rowsort
SELECT col1 * - cor0.col0 + + col1 * col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col0 + - col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL - 74 FROM tab0, tab0 cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130
onlyif mysql # use DIV operator for integer division
query I rowsort label-9104
SELECT DISTINCT + col2 * col1 DIV col0 FROM tab2 AS cor0
----
119
19
8
skipif mysql # not compatible
query I rowsort label-9104
SELECT DISTINCT + col2 * col1 / col0 FROM tab2 AS cor0
----
119
19
8
query I rowsort
SELECT ALL 94 FROM tab0 AS cor0
----
94
94
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-9106
SELECT + + col2 DIV col1 + cor0.col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-9106
SELECT + + col2 / col1 + cor0.col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - 62 * - col2 AS col1 FROM tab2 AS cor0
----
1612
1674
2356
query I rowsort
SELECT - - cor0.col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT ( - col0 ) + + col1 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT - col1 + - col1 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT + cor0.col1 + cor0.col2 * + col1 * - col1 FROM tab0 AS cor0
----
-243982
-678951
-9312
query I rowsort
SELECT col1 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + - col0 * + cor0.col1 + - col0 AS col2 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT - + cor0.col2 + cor0.col0 * - col0 * col2 AS col2 FROM tab2 AS cor0
----
-1350
-158210
-237196
query I rowsort
SELECT ALL + col0 - + col2 AS col0 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT 16 * 4 * col0 AS col1 FROM tab0 AS cor0
----
1536
2240
5696
query I rowsort
SELECT + ( - col2 + + col2 ) AS col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9119
SELECT DISTINCT + CAST( col2 AS SIGNED ) + - col2 AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9119
SELECT DISTINCT + CAST ( col2 AS INTEGER ) + - col2 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + col1 * - 75 AS col0 FROM tab1 AS cor0
----
-1950
-750
-975
query I rowsort
SELECT DISTINCT tab1.col2 * tab1.col0 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-9122
SELECT 44 DIV col2 AS col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9122
SELECT 44 / col2 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - 76 + + col2 AS col2 FROM tab1
----
-19
-22
20
query I rowsort
SELECT col2 * + cor0.col0 + + col1 * col2 - col0 FROM tab2 AS cor0
----
1019
3484
3569
query I rowsort
SELECT DISTINCT - 36 * + col1 FROM tab1
----
-360
-468
-936
onlyif mysql # use DIV operator for integer division
query I rowsort label-9126
SELECT DISTINCT tab1.col2 DIV tab1.col2 + col0 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-9126
SELECT DISTINCT tab1.col2 / tab1.col2 + col0 FROM tab1
----
4
65
81
query I rowsort
SELECT ALL 13 + + col1 * col0 AS col0 FROM tab1
----
1053
653
91
query I rowsort
SELECT ALL + col2 * + col2 * col1 AS col0 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE + col0 IN ( col2 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 ) <= ( NULL )
----
query I rowsort
SELECT tab0.col0 AS col2 FROM tab1 cor0 CROSS JOIN tab0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT tab0.col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9133
SELECT ALL - col0 * col1 DIV col0 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL - col0 * col1 / col0 FROM tab2
----
-17
-31
-59
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT + tab2.col2 * - col2 * - col1 AS col2 FROM tab2
----
22599
24548
39884
query III rowsort
SELECT * FROM tab0 WHERE NOT col0 / - col2 + col2 * + col0 NOT IN ( + col2 )
----
query I rowsort
SELECT col2 + + col2 + + col2 FROM tab2
----
114
78
81
query I rowsort
SELECT - col1 * - col1 * col2 AS col2 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT tab0.col0 * col2 * + col1 AS col1 FROM tab0 WHERE NULL IN ( col0 )
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + col2 * - tab1.col1 )
----
query I rowsort
SELECT DISTINCT - col2 * + col0 + - col0 + - col1 FROM tab1
----
-191
-3722
-7773
onlyif mysql # use DIV operator for integer division
query I rowsort label-9142
SELECT DISTINCT - col0 + + col1 DIV col1 + col1 * + col2 AS col0 FROM tab0
----
2815
63
7374
skipif mysql # not compatible
query I rowsort label-9142
SELECT DISTINCT - col0 + + col1 / col1 + col1 * + col2 AS col0 FROM tab0
----
2815
63
7374
query I rowsort
SELECT - col2 + tab2.col0 * col1 + col1 FROM tab2
----
1322
221
4635
query I rowsort
SELECT ALL - col2 * col1 + - col1 + - col0 AS col2 FROM tab0
----
-229
-2948
-7642
onlyif mysql # use DIV operator for integer division
query I rowsort label-9145
SELECT ALL col1 DIV + tab2.col1 AS col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL col1 / + tab2.col1 AS col0 FROM tab2
----
1
1
1
query I rowsort
SELECT ALL + col0 * - col1 + col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT cor0.col2 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT - tab0.col2 - col1 * - col1 FROM tab0
----
7363
8199
9408
query I rowsort
SELECT ALL col2 + - cor0.col2 * - cor0.col2 * col1 + + col1 FROM tab2 AS cor0
----
22657
24603
39969
query I rowsort
SELECT ALL col0 + - col2 * - col2 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT - + col1 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + cor0.col0 col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - col2 + - 88 * tab0.col0 FROM tab0
----
-2145
-3081
-7914
query I rowsort
SELECT ALL col2 + - col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT + + 21 FROM tab0 cor0
----
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9156
SELECT DISTINCT + - CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-9156
SELECT DISTINCT + - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT cor0.col1 + - cor0.col1 + - col2 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + ( - col2 ) + - cor0.col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT col1 + + col1 + - col0 FROM tab2
----
-45
40
55
query I rowsort
SELECT col2 * + ( + col0 ) + col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT tab1.col1 + + 82 * + col0 AS col0 FROM tab1
----
272
5258
6573
query I rowsort
SELECT ALL tab2.col1 + - col0 FROM tab2
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-9163
SELECT DISTINCT - col0 DIV 46 + 11 FROM tab0
----
10
11
skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT - col0 / 46 + 11 FROM tab0
----
10
11
query I rowsort
SELECT + - ( 14 ) AS col2 FROM tab0 AS cor0
----
-14
-14
-14
query I rowsort
SELECT - 76 * - cor0.col1 + cor0.col1 AS col1 FROM tab1 AS cor0
----
1001
2002
770
query I rowsort
SELECT DISTINCT + ( + col1 ) + cor0.col0 * col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT ALL - 50 * cor0.col2 + + col0 AS col1 FROM tab0 AS cor0
----
-15
-1626
-4011
query I rowsort
SELECT col0 + ( + col2 ) * - cor0.col1 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL - ( col0 ) * - cor0.col2 + col0 * ( - col0 ) AS col0 FROM tab2 AS cor0
----
-3239
-4056
140
query I rowsort
SELECT DISTINCT + 11 + + cor0.col1 * cor0.col2 FROM tab1 AS cor0
----
1259
1415
581
query I rowsort
SELECT ALL - cor0.col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 58 + col1 + + col0 * col0 FROM tab2 AS cor0
----
138
6201
6316
query I rowsort
SELECT + + ( 56 ) FROM tab2 cor0
----
56
56
56
query I rowsort
SELECT ALL - ( col0 ) * + col1 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9175
SELECT DISTINCT CAST( NULL AS SIGNED ) * 25 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 25 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - + 55 + 20 AS col0 FROM tab2 AS cor0
----
-35
query I rowsort
SELECT + ( 74 ) + - col2 * - col2 AS col0 FROM tab0 AS cor0
----
1163
6798
75
query I rowsort
SELECT ALL + - ( col1 ) * cor0.col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + col0 + - col0 + - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + - ( - col2 ) + - col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-9181
SELECT tab0.col2 + col2 DIV col2 AS col0 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-9181
SELECT tab0.col2 + col2 / col2 AS col0 FROM tab0
----
2
34
83
query I rowsort
SELECT DISTINCT + col2 + col0 + 86 * - col1 FROM tab1 AS cor0
----
-2179
-739
-942
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9183
SELECT DISTINCT col0 + + CAST( - 29 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
-2492
-672
-980
skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT col0 + + CAST ( - 29 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
-2492
-672
-980
query I rowsort
SELECT - - col2 + + 51 * + col0 AS col1 FROM tab1 AS cor0
----
207
3321
4176
query I rowsort
SELECT - - cor0.col1 * col2 + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT + col2 * 43 + - col0 FROM tab2 AS cor0
----
1040
1154
1555
query I rowsort
SELECT + 23 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658
query I rowsort
SELECT - col2 + + ( 94 ) FROM tab1 AS cor0
----
-2
37
40
query I rowsort
SELECT ALL col1 + 96 FROM tab1 AS cor0
----
106
109
122
query I rowsort
SELECT + col0 * - 84 AS col1 FROM tab1 AS cor0
----
-252
-5376
-6720
onlyif mysql # use DIV operator for integer division
query I rowsort label-9191
SELECT ALL + col2 * - ( - col0 ) + cor0.col0 DIV ( + col2 ) FROM tab1 AS cor0
----
162
3649
7680
skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL + col2 * - ( - col0 ) + cor0.col0 / ( + col2 ) FROM tab1 AS cor0
----
162
3649
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 48 + - cor0.col0 * - cor0.col0 * ( col0 ) col0 FROM tab0 AS cor0
----
38219
700601
9696
query I rowsort
SELECT - col1 * - 0 - col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + - col1 * 3 FROM tab0 AS cor0
----
-258
-273
-291
query I rowsort
SELECT + + col0 * cor0.col2 - 19 AS col0 FROM tab0 AS cor0
----
16
7279
773
onlyif mysql # use DIV operator for integer division
query I rowsort label-9196
SELECT DISTINCT + - cor0.col1 DIV 64 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9196
SELECT DISTINCT + - cor0.col1 / 64 FROM tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9197
SELECT col2 * CAST( 44 AS SIGNED ) * col0 + - col2 - + col2 * - col1 FROM tab0 AS cor0
----
1636
328492
37653
skipif mysql # not compatible
query I rowsort label-9197
SELECT col2 * CAST ( 44 AS INTEGER ) * col0 + - col2 - + col2 * - col1 FROM tab0 AS cor0
----
1636
328492
37653
query I rowsort
SELECT DISTINCT - + col0 * 63 AS col1 FROM tab1 AS cor0
----
-189
-4032
-5040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9199
SELECT + - col2 + - CAST( + col0 + col1 AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
-10712
-293
-7622
skipif mysql # not compatible
query I rowsort label-9199
SELECT + - col2 + - CAST ( + col0 + col1 AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
-10712
-293
-7622
query I rowsort
SELECT ALL - col1 * 57 AS col1 FROM tab1 AS cor0
----
-1482
-570
-741
query I rowsort
SELECT - col1 * 16 + + col1 * - col2 * + 92 FROM tab0 AS cor0
----
-10476
-262472
-687960
query I rowsort
SELECT - 44 + 86 * cor0.col0 * col1 FROM tab2 AS cor0
----
115454
18618
395728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9203
SELECT ALL - CAST( col0 AS SIGNED ) * + col2 + col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584
skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL - CAST ( col0 AS INTEGER ) * + col2 + col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT - 12 + - col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-47
-7310
-804
query I rowsort
SELECT ALL 34 * - col0 AS col2 FROM tab2 AS cor0
----
-238
-2652
-2686
query I rowsort
SELECT DISTINCT + col0 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT 4 * + col2 FROM tab2 AS cor0
----
104
108
152
query I rowsort
SELECT DISTINCT + 54 * + col1 FROM tab0 cor0
----
4644
4914
5238
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9209
SELECT - CAST( 4 AS SIGNED ) + col2 AS col2 FROM tab2
----
22
23
34
skipif mysql # not compatible
query I rowsort label-9209
SELECT - CAST ( 4 AS INTEGER ) + col2 AS col2 FROM tab2
----
22
23
34
query I rowsort
SELECT ALL ( + col2 ) * - 0 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT - cor0.col1 + + col0 * - 77 AS col2 FROM tab0 AS cor0
----
-1934
-2792
-6944
onlyif mysql # use DIV operator for integer division
query I rowsort label-9212
SELECT DISTINCT - col0 + - cor0.col1 DIV - col2 AS col1 FROM tab0 AS cor0
----
-22
-88
62
skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT - col0 + - cor0.col1 / - col2 AS col1 FROM tab0 AS cor0
----
-22
-88
62
query I rowsort
SELECT ALL - 76 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317
query I rowsort
SELECT ALL - col0 * ( + col0 ) AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT ( + col0 ) - - col0 * ( col2 * - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-36416
-4209
-99760
query I rowsort
SELECT DISTINCT col2 * col0 + - col2 AS col0 FROM tab2 AS cor0
----
162
2002
2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9217
SELECT ALL + CAST( NULL AS SIGNED ) * - col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 64 * 42 + + col0 * + ( 52 * - col2 ) AS col1 FROM tab0 AS cor0
----
-382184
-43872
-4508
query I rowsort
SELECT - + ( 62 ) * - col0 + ( col0 ) FROM tab2 AS cor0
----
441
4914
4977
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 * col1 + - tab1.col2 ) col0 FROM tab1
----
1136
132
697
query I rowsort
SELECT - + 4 * col2 + col2 + col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT - 60 * cor0.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 9d1ec646eddd8700b4176e4186309188
query I rowsort
SELECT ALL - 98 AS col0 FROM tab2
----
-98
-98
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col2 col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + 49 + + col2 FROM tab1 AS cor0
----
103
106
145
query I rowsort
SELECT - + 1 - col2 FROM tab0 AS cor0
----
-2
-34
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 + + col2 col0 FROM tab1 cor0
----
-108
-3591
-7584
query I rowsort
SELECT ALL + cor0.col2 * + col2 + col2 - - col2 AS col1 FROM tab0 AS cor0
----
1155
3
6888
query I rowsort
SELECT + col0 * + col0 * 75 + col0 * col1 + - col1 AS col0 FROM tab1 AS cor0
----
307830
481027
727
query I rowsort
SELECT col1 * ( + ( col1 ) ) AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT + 49 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col1 FROM tab1 AS cor0
----
5
5
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 col0 FROM tab1 AS cor0
----
12
12
12
query I rowsort
SELECT col2 * - ( - col2 ) FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - - ( + 15 ) + col1 FROM tab1 AS cor0
----
25
28
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
onlyif mysql # use DIV operator for integer division
query I rowsort label-9237
SELECT - col2 DIV + col0 + 3 * col2 * ( col2 ) FROM tab1
----
27647
8730
9747
skipif mysql # not compatible
query I rowsort label-9237
SELECT - col2 / + col0 + 3 * col2 * ( col2 ) FROM tab1
----
27647
8730
9747
query I rowsort
SELECT + + 26 FROM tab0 AS cor0
----
26
26
26
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-9240
SELECT DISTINCT + + CAST( ( col2 ) AS SIGNED ) DIV + cor0.col2 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-9240
SELECT DISTINCT + + CAST ( ( col2 ) AS INTEGER ) / + cor0.col2 FROM tab0 AS cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9241
SELECT - + ( - 45 ) DIV - col2 FROM tab0 AS cor0
----
-1
-45
0
skipif mysql # not compatible
query I rowsort label-9241
SELECT - + ( - 45 ) / - col2 FROM tab0 AS cor0
----
-1
-45
0
query I rowsort
SELECT DISTINCT + + col0 * + col0 - - ( - col0 ) * col0 AS col1 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL 11 * col0 FROM tab0 cor0
----
264
385
979
query I rowsort
SELECT ALL + col1 * cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
22599
24548
39884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9245
SELECT ALL - + ( col2 ) * - CAST( col2 AS SIGNED ) + - cor0.col2 * - col1 FROM tab1 AS cor0
----
10464
3819
4320
skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL - + ( col2 ) * - CAST ( col2 AS INTEGER ) + - cor0.col2 * - col1 FROM tab1 AS cor0
----
10464
3819
4320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9246
SELECT DISTINCT 7 + col1 * + CAST( + col0 + col2 AS SIGNED ) FROM tab1 AS cor0
----
1217
1489
2295
skipif mysql # not compatible
query I rowsort label-9246
SELECT DISTINCT 7 + col1 * + CAST ( + col0 + col2 AS INTEGER ) FROM tab1 AS cor0
----
1217
1489
2295
query I rowsort
SELECT - + tab0.col1 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8
query I rowsort
SELECT DISTINCT col0 * 10 AS col1 FROM tab0
----
240
350
890
query I rowsort
SELECT DISTINCT - ( 23 ) FROM tab1
----
-23
onlyif mysql # use DIV operator for integer division
query I rowsort label-9250
SELECT - + cor0.col2 * + col1 + 68 + + col2 DIV + ( col1 ) AS col2 FROM tab2 AS cor0
----
-1466
-576
-769
skipif mysql # not compatible
query I rowsort label-9250
SELECT - + cor0.col2 * + col1 + 68 + + col2 / + ( col1 ) AS col2 FROM tab2 AS cor0
----
-1466
-576
-769
query I rowsort
SELECT ALL - + col0 * + 55 FROM tab2 AS cor0
----
-385
-4290
-4345
query I rowsort
SELECT - col0 + - 98 + col0 AS col1 FROM tab0 AS cor0
----
-98
-98
-98
query I rowsort
SELECT + cor0.col0 + cor0.col0 * - 25 + cor0.col1 FROM tab0 AS cor0
----
-2045
-490
-743
query I rowsort
SELECT 33 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9255
SELECT DISTINCT + tab0.col1 * - col1 * CAST( col0 * - col2 AS SIGNED ) FROM tab0
----
329315
5857632
60434738
skipif mysql # not compatible
query I rowsort label-9255
SELECT DISTINCT + tab0.col1 * - col1 * CAST ( col0 * - col2 AS INTEGER ) FROM tab0
----
329315
5857632
60434738
query I rowsort
SELECT ALL col1 * - 24 + tab1.col2 + + tab1.col1 AS col1 FROM tab1
----
-173
-203
-544
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 64 col1 FROM tab2
----
142
143
71
query I rowsort
SELECT - + col0 + col2 * - col0 + col2 AS col0 FROM tab0 AS cor0
----
-69
-7305
-783
query I rowsort
SELECT col2 * - 18 * + col1 + + col0 FROM tab2 AS cor0
----
-11549
-15059
-27534
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-9261
SELECT + col2 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9261
SELECT + col2 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 85 * cor0.col2 FROM tab1, tab0 cor0
----
9 values hashing to 103148d8b5fd23508b2d9e1680287d72
query I rowsort
SELECT ALL + + 64 + - col2 FROM tab1 AS cor0
----
-32
10
7
query I rowsort
SELECT ALL - ( - col2 ) * + 59 AS col1 FROM tab2 cor0
----
1534
1593
2242
query I rowsort
SELECT DISTINCT - cor0.col1 * - col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + - col0 * col1 + col2 * col0 * - col0 AS col1 FROM tab1 AS cor0
----
-234112
-564
-615440
query I rowsort
SELECT - 47 AS col1 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * col2 col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + - 8 - cor0.col2 FROM tab2 AS cor0
----
-34
-35
-46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 col2 FROM tab1 AS cor0
----
2
query I rowsort
SELECT 3 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
query I rowsort
SELECT - col0 * col1 + 70 * 70 FROM tab1 AS cor0
----
3860
4260
4822
query I rowsort
SELECT ( 76 ) AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
onlyif mysql # use DIV operator for integer division
query I rowsort label-9274
SELECT col1 + col0 DIV tab1.col1 AS col2 FROM tab1
----
16
19
26
skipif mysql # not compatible
query I rowsort label-9274
SELECT col1 + col0 / tab1.col1 AS col2 FROM tab1
----
16
19
26
query I rowsort
SELECT ALL 7 + - col0 FROM tab2
----
-71
-72
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9276
SELECT + col2 DIV - col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9276
SELECT + col2 / - col1 FROM tab0 cor0
----
0
0
0
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab2 cor0, tab0 AS cor1
----
972 values hashing to 86dbd337f00ab84c613ad03d6fc06e28
query I rowsort
SELECT + 43 + - col0 AS col1 FROM tab2
----
-35
-36
36
query I rowsort
SELECT ALL tab0.col1 - 13 FROM tab0, tab0 cor0
----
9 values hashing to c1b00775411f410c5309cc275ba378c2
query I rowsort
SELECT DISTINCT - col0 + - cor0.col0 * - col1 FROM tab1 AS cor0
----
576
75
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-9281
SELECT ALL col1 DIV 66 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL col1 / 66 FROM tab1
----
0
0
0
query I rowsort
SELECT col2 * + col1 + + 47 AS col1 FROM tab0
----
144
2885
7509
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9283
SELECT ALL CAST( NULL AS SIGNED ) * + 98 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-9283
SELECT ALL CAST ( NULL AS INTEGER ) * + 98 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - ( + ( + col1 ) ) * col0 AS col2 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT cor0.col2 + - 19 * col2 FROM tab0 AS cor0
----
-1476
-18
-594
query I rowsort
SELECT DISTINCT + - cor0.col2 + + col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - + 15 * - col1 FROM tab1 AS cor0
----
150
195
390
query I rowsort
SELECT DISTINCT + col1 * + 93 AS col2 FROM tab2 cor0
----
1581
2883
5487
query I rowsort
SELECT - 83 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843
query I rowsort
SELECT + col0 + + tab0.col1 * + tab0.col2 FROM tab0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-9291
SELECT + col0 * col1 + - col0 DIV - tab0.col0 FROM tab0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort label-9291
SELECT + col0 * col1 + - col0 / - tab0.col0 FROM tab0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - tab2.col1 * + CAST ( + col2 AS REAL ) * + col0 AS col1 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT + 75 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query I rowsort
SELECT DISTINCT 2 + col1 * + col1 - ( col2 ) FROM tab0
----
7365
8201
9410
query I rowsort
SELECT ALL - + ( col1 ) + + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + cor0.col1 * 18 * col1 AS col0 FROM tab1 AS cor0
----
12168
1800
3042
query I rowsort
SELECT DISTINCT col2 * 24 + col2 AS col0 FROM tab0 AS cor0
----
2050
25
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 ) + + cor0.col2 col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT 97 * - cor0.col2 FROM tab0 AS cor0
----
-3201
-7954
-97
query I rowsort
SELECT DISTINCT 64 * - 83 AS col0 FROM tab0, tab2, tab0 cor0
----
-5312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 25 ) * col0 col2 FROM tab0
----
-2225
-600
-875
query I rowsort
SELECT - - ( col0 ) * - 52 FROM tab0 cor0
----
-1248
-1820
-4628
query I rowsort
SELECT - cor0.col1 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT DISTINCT - 94 AS col0 FROM tab0
----
-94
query I rowsort
SELECT ALL + 27 + col1 FROM tab0 AS cor0
----
113
118
124
query I rowsort
SELECT ALL - 76 * col0 + col1 AS col1 FROM tab2 cor0
----
-501
-5869
-5987
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 + col0 col1 FROM tab2 AS cor0
----
102
103
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( cor0.col2 ) * col1 + col0 col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT 97 AS col2 FROM tab0 AS cor0
----
97
query I rowsort
SELECT 96 * + col2 FROM tab2 AS cor0
----
2496
2592
3648
onlyif mysql # use DIV operator for integer division
query I rowsort label-9311
SELECT DISTINCT col1 DIV + cor0.col1 AS col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-9311
SELECT DISTINCT col1 / + cor0.col1 AS col1 FROM tab0 AS cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9312
SELECT 76 * col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
104
2
70
skipif mysql # not compatible
query I rowsort label-9312
SELECT 76 * col2 / + col0 AS col1 FROM tab0 AS cor0
----
104
2
70
query I rowsort
SELECT DISTINCT + 71 AS col0 FROM tab1
----
71
query I rowsort
SELECT ALL - 28 + col1 FROM tab2 cor0
----
-11
3
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 * - col0 col1 FROM tab0 cor0
----
-1200
-1750
-4450
query I rowsort
SELECT ALL + col1 + cor0.col1 + 17 FROM tab1 AS cor0
----
37
43
69
query I rowsort
SELECT DISTINCT col0 * + 20 + 7 AS col2 FROM tab1 AS cor0
----
1287
1607
67
query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT ALL + col1 * - col2 - - col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT col2 * - col1 * + col1 AS col0 FROM tab2 cor0
----
-10982
-25947
-90506
skipif mysql # not compatible
query I rowsort
SELECT ALL col2 * CAST ( - col0 AS REAL ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9322
SELECT DISTINCT - - col1 - + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9322
SELECT DISTINCT - - col1 - + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9323
SELECT + - col0 + CAST( + col2 AS SIGNED ) * col0 FROM tab1 cor0
----
159
3584
7600
skipif mysql # not compatible
query I rowsort label-9323
SELECT + - col0 + CAST ( + col2 AS INTEGER ) * col0 FROM tab1 cor0
----
159
3584
7600
query I rowsort
SELECT DISTINCT - + cor0.col0 + + cor0.col0 * 48 * col0 AS col0 FROM tab2 AS cor0
----
2345
291954
299489
query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( ( col0 ) ) + + cor0.col2 col1 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL + cor0.col2 * cor0.col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + col0 + - ( cor0.col1 ) * + col2 * col2 AS col0 FROM tab1 AS cor0
----
-119728
-32426
-75813
query I rowsort
SELECT DISTINCT + col1 + + cor0.col1 + - col0 AS col1 FROM tab2 cor0
----
-45
40
55
query I rowsort
SELECT + col2 * ( - 5 ) FROM tab0 AS cor0
----
-165
-410
-5
query I rowsort
SELECT + 60 + - 23 FROM tab2 AS cor0
----
37
37
37
query I rowsort
SELECT cor0.col1 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 - col1 col2 FROM tab0 AS cor0
----
-119
-124
-130
query I rowsort
SELECT DISTINCT ( - 48 ) * + col1 AS col0 FROM tab1 AS cor0
----
-1248
-480
-624
query I rowsort
SELECT ALL - - 91 AS col0 FROM tab2 AS cor0
----
91
91
91
query I rowsort
SELECT - 57 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b
query I rowsort
SELECT col2 + + 84 FROM tab0 AS cor0
----
117
166
85
query I rowsort
SELECT + + col1 * - col2 + 83 FROM tab1 AS cor0
----
-1165
-1321
-487
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT ALL - col2 * ( col0 ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + - col1 * - 89 + + col0 AS col2 FROM tab1 AS cor0
----
1237
2317
954
query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) * - col2 FROM tab2 AS cor0
----
-1444
-676
-729
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + ( + col0 ) AS REAL ) * + col0 * - col1 + col2 + - col2 * cor0.col0 * - col1 AS col1 FROM tab2 AS cor0
----
-239278
-55025
4367
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9344
SELECT + cor0.col2 / col1 + + col2 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9344
SELECT + cor0.col2 / col1 + + col2 * + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 75 * + col1 AS col2 FROM tab0
----
6450
6825
7275
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab0 AS cor0 WHERE NOT NULL < ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9347
SELECT + col0 * cor0.col2 DIV - col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-9347
SELECT + col0 * cor0.col2 / - col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - ( - col2 ) + + 16 + + 10 AS col0 FROM tab0 cor0
----
108
27
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-9349
SELECT - - col2 * - col1 * - col1 + cor0.col0 DIV - col2 FROM tab1 AS cor0
----
16224
36504
5699
skipif mysql # not compatible
query I rowsort label-9349
SELECT - - col2 * - col1 * - col1 + cor0.col0 / - col2 FROM tab1 AS cor0
----
16224
36504
5699
query I rowsort
SELECT - tab1.col0 - col0 AS col1 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT - cor0.col1 + cor0.col0 AS col1 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT + cor0.col1 * - col0 + + col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 * col0 col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT col1 * 62 + col2 AS col2 FROM tab0 cor0
----
5365
5724
6015
query I rowsort
SELECT ALL + col0 + 68 FROM tab2 AS cor0
----
146
147
75
query I rowsort
SELECT ALL col0 + ( ( col2 ) * - 65 ) AS col2 FROM tab0 AS cor0
----
-2121
-30
-5241
query I rowsort
SELECT col0 * col0 + 73 * - col2 FROM tab1 AS cor0
----
-3933
-608
-65
query I rowsort
SELECT - 64 + - col0 AS col1 FROM tab2 AS cor0
----
-142
-143
-71
query I rowsort
SELECT DISTINCT + col1 - - 15 FROM tab0
----
101
106
112
query I rowsort
SELECT DISTINCT - ( col1 ) * + col0 * col0 AS col2 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT ALL + + ( - 79 ) AS col2 FROM tab0 AS cor0
----
-79
-79
-79
query I rowsort
SELECT ALL + 32 FROM tab1, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b
query I rowsort
SELECT 28 + - col2 AS col2 FROM tab1 AS cor0
----
-26
-29
-68
onlyif mysql # use DIV operator for integer division
query I rowsort label-9364
SELECT + + 28 - cor0.col0 DIV 9 FROM tab2 AS cor0
----
20
20
28
skipif mysql # not compatible
query I rowsort label-9364
SELECT + + 28 - cor0.col0 / 9 FROM tab2 AS cor0
----
20
20
28
query I rowsort
SELECT ALL + col2 * - col0 + col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT - 58 AS col1 FROM tab2 AS cor0
----
-58
query I rowsort
SELECT col0 * + col1 + - col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT DISTINCT + + 33 * col2 * ( - cor0.col1 ) + col0 * ( col1 * cor0.col1 ) FROM tab0 AS cor0
----
326114
490763
83850
query I rowsort
SELECT ALL - 21 + col0 * col1 FROM tab2 AS cor0
----
1322
196
4581
query I rowsort
SELECT DISTINCT + col2 - cor0.col2 * col0 FROM tab2 AS cor0
----
-162
-2002
-2964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + cor0.col2 * + 56 col2 FROM tab2 AS cor0
----
1397
1481
2111
onlyif mysql # use DIV operator for integer division
query I rowsort label-9372
SELECT ALL - - col2 DIV col1 AS col2 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL - - col2 / col1 AS col2 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT DISTINCT - 24 * - col1 AS col0 FROM tab0 AS cor0
----
2064
2184
2328
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9374
SELECT + col0 + + col2 * - CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9374
SELECT + col0 + + col2 * - CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - col0 AS REAL ) * tab2.col2 AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL tab1.col1 * - col1 - col2 FROM tab1
----
-157
-265
-730
query I rowsort
SELECT col1 * - 99 * + col2 AS col1 FROM tab2
----
-151866
-63954
-82863
query I rowsort
SELECT - 76 * col1 FROM tab2
----
-1292
-2356
-4484
query I rowsort
SELECT DISTINCT - - col2 - + 58 FROM tab1 AS cor0
----
-1
-4
38
query I rowsort
SELECT ALL + col2 + + 72 * col1 FROM tab1 AS cor0
----
1032
1926
777
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9381
SELECT ALL col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 * col2 col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT cor1.col1 FROM tab1, tab1 AS cor0, tab0 cor1
----
86
91
97
query I rowsort
SELECT ALL - - col2 + ( - col1 ) FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL - + col1 * + 13 * + 92 AS col2 FROM tab2 AS cor0
----
-20332
-37076
-70564
query I rowsort
SELECT col2 + + 80 * - ( - col0 ) FROM tab1 AS cor0
----
294
5177
6496
query I rowsort
SELECT DISTINCT + + 20 AS col1 FROM tab2 AS cor0
----
20
query I rowsort
SELECT + col2 + + 65 * col2 FROM tab2 AS cor0
----
1716
1782
2508
onlyif mysql # use DIV operator for integer division
query I rowsort label-9389
SELECT ALL + cor0.col0 DIV - col1 AS col0 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL + cor0.col0 / - col1 AS col0 FROM tab0 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9390
SELECT DISTINCT - CAST( - 23 AS SIGNED ) + col1 AS col2 FROM tab1 AS cor0
----
33
36
49
skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT - CAST ( - 23 AS INTEGER ) + col1 AS col2 FROM tab1 AS cor0
----
33
36
49
query I rowsort
SELECT - col1 * + col1 + col2 FROM tab1 cor0
----
-43
-622
-73
query I rowsort
SELECT DISTINCT + 30 - - col2 FROM tab2 AS cor0
----
56
57
68
query I rowsort
SELECT + 59 - col2 AS col1 FROM tab2 AS cor0
----
21
32
33
query I rowsort
SELECT DISTINCT - col2 * cor0.col1 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506
onlyif mysql # use DIV operator for integer division
query I rowsort label-9395
SELECT DISTINCT 81 DIV - ( col0 ) + + 65 * - col2 AS col2 FROM tab1 AS cor0
----
-3537
-3706
-6241
skipif mysql # not compatible
query I rowsort label-9395
SELECT DISTINCT 81 / - ( col0 ) + + 65 * - col2 AS col2 FROM tab1 AS cor0
----
-3537
-3706
-6241
query I rowsort
SELECT - 44 - - col1 FROM tab2 AS cor0
----
-13
-27
15
query I rowsort
SELECT DISTINCT - + col2 * col2 + col0 + + 79 * col0 FROM tab2 AS cor0
----
-169
4876
5564
query I rowsort
SELECT DISTINCT + col1 - - 98 AS col0 FROM tab0
----
184
189
195
query I rowsort
SELECT - col2 * - col0 + + col1 FROM tab0
----
132
7389
878
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9400
SELECT DISTINCT + tab0.col0 - CAST( - col0 AS SIGNED ) * col0 AS col0 FROM tab0
----
1260
600
8010
skipif mysql # not compatible
query I rowsort label-9400
SELECT DISTINCT + tab0.col0 - CAST ( - col0 AS INTEGER ) * col0 AS col0 FROM tab0
----
1260
600
8010
query I rowsort
SELECT - 31 + - col2 FROM tab0 AS cor0
----
-113
-32
-64
onlyif mysql # use DIV operator for integer division
query I rowsort label-9402
SELECT ALL + ( col1 ) DIV + col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL + ( col1 ) / + col0 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT ALL + - 76 AS col1 FROM tab0 AS cor0
----
-76
-76
-76
query I rowsort
SELECT ALL 30 AS col1 FROM tab2 AS cor0
----
30
30
30
query I rowsort
SELECT - + 39 * - col0 FROM tab2 AS cor0
----
273
3042
3081
query I rowsort
SELECT + 30 * - col1 FROM tab0 AS cor0
----
-2580
-2730
-2910
query I rowsort
SELECT ALL 66 * - col1 + col1 AS col1 FROM tab2 AS cor0
----
-1105
-2015
-3835
query I rowsort
SELECT DISTINCT 35 - - col2 AS col2 FROM tab1 AS cor0
----
131
89
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-9409
SELECT ALL 17 DIV - col0 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL 17 / - col0 FROM tab2
----
-2
0
0
query I rowsort
SELECT DISTINCT + 68 + col0 * - col0 + 75 * - col1 FROM tab1
----
-1891
-4778
-7307
query I rowsort
SELECT - 62 * col1 FROM tab0 AS cor0
----
-5332
-5642
-6014
query I rowsort
SELECT ALL + col1 + + cor0.col1 * ( col0 + + cor0.col2 ) FROM tab1 AS cor0
----
1220
1508
2301
query I rowsort
SELECT ALL ( + col1 ) * - col0 AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL 76 AS col0 FROM tab1
----
76
76
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-9415
SELECT ALL cor0.col0 DIV 14 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 6d6f20ea7939b104733ddee362cfe775
skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL cor0.col0 / 14 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 6d6f20ea7939b104733ddee362cfe775
query I rowsort
SELECT + + col0 * col2 * col1 + col2 * col0 AS col1 FROM tab2 AS cor0
----
121680
54036
6048
query I rowsort
SELECT - col0 * - ( + col2 ) AS col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9418
SELECT DISTINCT ( tab1.col0 ) * - CAST( + col0 AS SIGNED ) AS col2 FROM tab1
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-9418
SELECT DISTINCT ( tab1.col0 ) * - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT - 64 + - col1 AS col0 FROM tab0
----
-150
-155
-161
query I rowsort
SELECT + col2 * ( col0 ) AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - col1 + col1 AS col2 FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9422
SELECT 90 + col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9422
SELECT 90 + col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - tab0.col0 AS col2 FROM tab0, tab2, tab1 cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9424
SELECT DISTINCT + col0 DIV - ( + 1 ) AS col1 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-9424
SELECT DISTINCT + col0 / - ( + 1 ) AS col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT col2 * + ( + 48 ) AS col1 FROM tab2
----
1248
1296
1824
query I rowsort
SELECT DISTINCT col1 * - 9 * - col2 AS col0 FROM tab2 AS cor0
----
13806
5814
7533
query I rowsort
SELECT + col0 * + 28 AS col1 FROM tab0 cor0
----
2492
672
980
onlyif mysql # use DIV operator for integer division
query I rowsort label-9428
SELECT DISTINCT - cor0.col1 DIV 82 AS col1 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT - cor0.col1 / 82 AS col1 FROM tab0 AS cor0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9429
SELECT - - col2 + - cor0.col0 DIV + col2 AS col0 FROM tab0 AS cor0
----
-34
33
81
skipif mysql # not compatible
query I rowsort label-9429
SELECT - - col2 + - cor0.col0 / + col2 AS col0 FROM tab0 AS cor0
----
-34
33
81
query I rowsort
SELECT DISTINCT cor0.col2 + - col0 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT - cor0.col1 * ( col0 ) * col0 AS col0 FROM tab0 cor0
----
-118825
-49536
-720811
query I rowsort
SELECT - - col0 * 29 FROM tab1 AS cor0
----
1856
2320
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL col1 + 54 AS col2 FROM tab1
----
64
67
80
query I rowsort
SELECT DISTINCT col2 + + 83 FROM tab0
----
116
165
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9436
SELECT - CAST( NULL AS DECIMAL ) - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9436
SELECT - CAST ( NULL AS REAL ) - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col2 + cor0.col1 col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT - col0 * + col0 - - col2 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT DISTINCT - ( + 97 ) * + col0 * col0 + col0 + col0 AS col1 FROM tab1 AS cor0
----
-397184
-620640
-867
query I rowsort
SELECT DISTINCT + + col0 - - ( + col0 * + col0 ) FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT ALL + + col1 + + 8 AS col0 FROM tab1 AS cor0
----
18
21
34
query I rowsort
SELECT - col2 + - col1 + - ( - 71 ) FROM tab0 AS cor0
----
-102
-27
-48
query I rowsort
SELECT ALL - ( col1 ) * cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col1 + col2 col2 FROM tab1 AS cor0
----
124
134
205
query I rowsort
SELECT ALL - - col2 * cor0.col0 + - 72 FROM tab1 AS cor0
----
3576
7608
90
query I rowsort
SELECT ALL col2 * - col0 * 41 AS col0 FROM tab2 AS cor0
----
-123082
-7749
-83148
query I rowsort
SELECT + + 32 * - col1 * col1 + col0 * col0 FROM tab2 AS cor0
----
-105308
-3007
-30703
query I rowsort
SELECT col0 * col2 + 23 FROM tab2 AS cor0
----
2051
212
3025
query I rowsort
SELECT - 27 * col2 + col0 FROM tab0 AS cor0
----
-2125
-867
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9450
SELECT DISTINCT - - col2 * cor0.col1 + CAST( col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
1560
684
864
skipif mysql # not compatible
query I rowsort label-9450
SELECT DISTINCT - - col2 * cor0.col1 + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
1560
684
864
query I rowsort
SELECT 28 * col2 AS col1 FROM tab2 AS cor0
----
1064
728
756
query I rowsort
SELECT - - col0 * 73 AS col0 FROM tab1 cor0
----
219
4672
5840
onlyif mysql # use DIV operator for integer division
query I rowsort label-9453
SELECT ALL 47 + + col2 + col0 DIV col0 FROM tab1
----
102
105
144
skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL 47 + + col2 + col0 / col0 FROM tab1
----
102
105
144
query I rowsort
SELECT - + 91 + col2 + - col2 AS col1 FROM tab1 cor0
----
-91
-91
-91
query I rowsort
SELECT DISTINCT tab2.col0 * col2 * tab2.col2 AS col1 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT - col1 * col0 * col2 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT - ( tab1.col1 ) + tab1.col0 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 318a6997409c5decbbc3333c9d493ad3
query I rowsort
SELECT - col2 * + cor0.col2 + col2 * + col0 AS col1 FROM tab2 AS cor0
----
-540
1352
1558
query I rowsort
SELECT - col1 * - col0 * col2 + col1 * col0 FROM tab1 AS cor0
----
100880
37120
4290
query I rowsort
SELECT + - col0 * 7 * - col2 FROM tab1 AS cor0
----
1134
25536
53760
query I rowsort
SELECT + - 39 AS col2 FROM tab1 AS cor0
----
-39
-39
-39
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1, tab0 AS cor1
----
3645 values hashing to 2566f3fa788816c8bfc482e730aaed74
query I rowsort
SELECT ALL - - cor1.col2 + - ( cor1.col0 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 48730a4f3ae72ef34da4083404b84d99
query I rowsort
SELECT - col2 * + ( ( col1 ) ) - col0 FROM tab2 AS cor0
----
-1612
-725
-844
onlyif mysql # use DIV operator for integer division
query I rowsort label-9465
SELECT - col1 DIV + 91 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9465
SELECT - col1 / + 91 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - + cor0.col1 + cor0.col0 FROM tab0 AS cor0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-9467
SELECT ALL + cor0.col1 DIV - 67 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL + cor0.col1 / - 67 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT - col2 * + 31 FROM tab2
----
-1178
-806
-837
query I rowsort
SELECT col1 * - 2 FROM tab1
----
-20
-26
-52
query I rowsort
SELECT - col2 * col2 * col1 + - col1 * + col2 + + col1 * col0 * - col2 AS col1 FROM tab1
----
-220896
-69540
-81432
query I rowsort
SELECT cor0.col2 * + col1 * col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
16237
36530
5710
onlyif mysql # use DIV operator for integer division
query I rowsort label-9472
SELECT + col2 * col2 + cor0.col1 DIV + col0 FROM tab0 cor0
----
1092
3
6725
skipif mysql # not compatible
query I rowsort label-9472
SELECT + col2 * col2 + cor0.col1 / + col0 FROM tab0 cor0
----
1092
3
6725
onlyif mysql # use DIV operator for integer division
query I rowsort label-9473
SELECT ALL + 61 + col0 * col1 DIV col1 FROM tab2 cor0
----
139
140
68
skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL + 61 + col0 * col1 / col1 FROM tab2 cor0
----
139
140
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-9474
SELECT cor1.col2 DIV 6 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e89d871638c9f2a9247621845f85374d
skipif mysql # not compatible
query I rowsort label-9474
SELECT cor1.col2 / 6 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e89d871638c9f2a9247621845f85374d
onlyif mysql # use DIV operator for integer division
query I rowsort label-9475
SELECT ALL + + col0 + - ( - col0 ) * + ( col2 ) + + col1 DIV 92 FROM tab0 AS cor0
----
71
7387
816
skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL + + col0 + - ( - col0 ) * + ( col2 ) + + col1 / 92 FROM tab0 AS cor0
----
71
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-9476
SELECT + col2 DIV col0 - + col2 FROM tab0 AS cor0
----
-1
-32
-82
skipif mysql # not compatible
query I rowsort label-9476
SELECT + col2 / col0 - + col2 FROM tab0 AS cor0
----
-1
-32
-82
query I rowsort
SELECT DISTINCT col0 + + 75 AS col1 FROM tab2
----
153
154
82
query I rowsort
SELECT DISTINCT + tab1.col0 * ( tab1.col1 ) + + 90 FROM tab1
----
1130
168
730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - tab0.col0 * + col0 col2 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT col2 - - 30 FROM tab2
----
56
57
68
query I rowsort
SELECT DISTINCT - col2 + + cor0.col1 * col1 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT ALL + col1 * 78 AS col1 FROM tab0 AS cor0
----
6708
7098
7566
query I rowsort
SELECT DISTINCT + + col2 + col2 + - col1 AS col1 FROM tab1 AS cor0
----
104
179
82
query I rowsort
SELECT + + cor0.col0 * + col1 + col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT - + 6 + + 65 AS col2 FROM tab0 AS cor0
----
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-9486
SELECT - ( ( - col2 ) ) DIV - col2 + + col0 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-9486
SELECT - ( ( - col2 ) ) / - col2 + + col0 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT ALL 66 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
query I rowsort
SELECT + tab1.col1 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT 31 AS col0 FROM tab2, tab1 cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 0bb6d1445d82a11417f7bb2ec248ca9c
query I rowsort
SELECT 73 * col0 AS col2 FROM tab1 AS cor0
----
219
4672
5840
onlyif mysql # use DIV operator for integer division
query I rowsort label-9491
SELECT - col0 DIV - col2 col0 FROM tab1 cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9491
SELECT - col0 / - col2 col0 FROM tab1 cor0
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9492
SELECT cor0.col2 * + CAST( ( - col0 ) AS SIGNED ) + col2 FROM tab0 AS cor0
----
-34
-7216
-759
skipif mysql # not compatible
query I rowsort label-9492
SELECT cor0.col2 * + CAST ( ( - col0 ) AS INTEGER ) + col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL - col0 + ( - col0 ) FROM tab2 cor0
----
-14
-156
-158
onlyif mysql # use DIV operator for integer division
query I rowsort label-9494
SELECT - - col0 + - 39 DIV + col1 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9494
SELECT - - col0 + - 39 / + col1 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + cor0.col1 * + col2 + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT + - col2 * - col2 + col0 AS col1 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT + + col0 * - ( ( col0 ) ) + col0 * - col1 FROM tab2 AS cor0
----
-10686
-266
-7584
query I rowsort
SELECT col1 + + 41 FROM tab1 cor0
----
51
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - ( col2 * - col2 ) col1 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT cor0.col1 + 20 * cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to e7ef30f55091f0c374b8f9c2223ad4c8
onlyif mysql # use DIV operator for integer division
query I rowsort label-9501
SELECT col1 - 44 DIV - col1 AS col0 FROM tab2 AS cor0
----
19
32
59
skipif mysql # not compatible
query I rowsort label-9501
SELECT col1 - 44 / - col1 AS col0 FROM tab2 AS cor0
----
19
32
59
query I rowsort
SELECT ALL + - col2 * + cor0.col1 + cor0.col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT + - col2 * col1 + - ( col2 ) AS col2 FROM tab2 cor0
----
-1560
-684
-864
query I rowsort
SELECT ALL - col2 + - 33 AS col0 FROM tab2 cor0
----
-59
-60
-71
query I rowsort
SELECT ( - tab1.col0 ) + + 99 FROM tab1
----
19
35
96
query I rowsort
SELECT DISTINCT 6 + + col0 AS col0 FROM tab1 AS cor0
----
70
86
9
query I rowsort
SELECT + - col0 * col2 + 79 * col0 AS col1 FROM tab2 AS cor0
----
3239
364
4134
query I rowsort
SELECT DISTINCT 38 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
38
query I rowsort
SELECT DISTINCT + col2 * + 8 AS col0 FROM tab1 AS cor0
----
432
456
768
onlyif mysql # use DIV operator for integer division
query I rowsort label-9510
SELECT ALL - col1 DIV 10 FROM tab2 AS cor0
----
-1
-3
-5
skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL - col1 / 10 FROM tab2 AS cor0
----
-1
-3
-5
query I rowsort
SELECT + - col0 + 15 * + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-112019
-1490
-42594
query I rowsort
SELECT ALL - col1 + 49 * - col1 FROM tab1 cor0
----
-1300
-500
-650
query I rowsort
SELECT col0 + - 11 * + col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-44992
-70320
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9514
SELECT + col2 + + 31 + col1 DIV + col1 AS col2 FROM tab0
----
114
33
65
skipif mysql # not compatible
query I rowsort label-9514
SELECT + col2 + + 31 + col1 / + col1 AS col2 FROM tab0
----
114
33
65
query I rowsort
SELECT DISTINCT - ( col2 ) + + col0 FROM tab1
----
-16
-51
7
query I rowsort
SELECT - col2 * col0 * col2 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT ALL - 86 + + col1 FROM tab0
----
0
11
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-9518
SELECT ALL col1 DIV col1 + + tab1.col1 * col0 AS col1 FROM tab1
----
1041
641
79
skipif mysql # not compatible
query I rowsort label-9518
SELECT ALL col1 / col1 + + tab1.col1 * col0 AS col1 FROM tab1
----
1041
641
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + ( col1 ) ) col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + col1 * + col0 + + col1 FROM tab0 AS cor0
----
2150
3492
8190
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col1 AS REAL ) * - col0 + cor0.col0 * 13 FROM tab1 AS cor0
----
-39
0
192
query I rowsort
SELECT ALL - 92 * col2 + col1 * 93 + - col0 FROM tab1 AS cor0
----
-2553
-4378
-7703
query I rowsort
SELECT DISTINCT + - 71 + - col1 FROM tab2 AS cor0
----
-102
-130
-88
query I rowsort
SELECT - cor0.col2 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9525
SELECT - col0 DIV col0 + col2 AS col1 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-9525
SELECT - col0 / col0 + col2 AS col1 FROM tab1 AS cor0
----
53
56
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 + 45 col2 FROM tab2 cor0
----
-35
query I rowsort
SELECT + ( ( col1 ) ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - - col0 * col1 + + col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL - 83 * + cor0.col2 FROM tab1 cor0
----
-4482
-4731
-7968
query I rowsort
SELECT + 47 + + col2 FROM tab0 AS cor0
----
129
48
80
query I rowsort
SELECT DISTINCT - ( - col0 ) * cor0.col1 + - ( col2 ) AS col0 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT col1 * + col1 + - col1 AS col1 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT DISTINCT ( + col0 ) * + col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT cor0.col0 * col0 * + col0 + - 47 + col0 AS col0 FROM tab1 AS cor0
----
-17
262161
512033
query I rowsort
SELECT ALL + col1 + col2 * 60 FROM tab2 AS cor0
----
1619
1651
2297
query I rowsort
SELECT DISTINCT 87 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
120
169
88
query I rowsort
SELECT ALL + col2 - cor0.col2 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - 28 * cor0.col2 FROM tab1 AS cor0
----
-1512
-1596
-2688
query I rowsort
SELECT ALL 79 + col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1613
725
916
query I rowsort
SELECT 21 * 58 AS col1 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to d3a8c3b3016b0d00f1d5813b3b8a845e
query I rowsort
SELECT DISTINCT - - ( col2 ) + 75 FROM tab2 AS cor0
----
101
102
113
query I rowsort
SELECT col0 * - cor0.col0 * 75 AS col1 FROM tab2 AS cor0
----
-3675
-456300
-468075
onlyif mysql # use DIV operator for integer division
query I rowsort label-9543
SELECT col0 + col2 DIV 42 AS col0 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-9543
SELECT col0 + col2 / 42 AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + + cor0.col1 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT col1 + col1 * + ( cor0.col0 * cor0.col1 + 28 ) AS col2 FROM tab0 AS cor0
----
179998
332128
739648
query I rowsort
SELECT + col0 * col0 + col1 * cor0.col2 FROM tab0 AS cor0
----
1322
15383
3414
query I rowsort
SELECT - ( - 93 ) * cor0.col1 + tab1.col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0fd8e7ff958eb3e69f9857e10d210a6d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 + col2 + - ( col1 ) col1 FROM tab0
----
1
33
82
query I rowsort
SELECT - ( - col1 ) * col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9550
SELECT + CAST( NULL AS SIGNED ) * - col1 * + col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9550
SELECT + CAST ( NULL AS INTEGER ) * - col1 * + col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( + col0 ) * col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - 68 * cor0.col0 FROM tab2 AS cor0
----
-476
-5304
-5372
query I rowsort
SELECT + col2 + ( col2 ) * ( col0 * cor0.col0 ) - ( + col0 ) FROM tab2 cor0
----
1343
158132
237117
query I rowsort
SELECT - 70 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073
query I rowsort
SELECT DISTINCT - + ( col0 ) * - col0 + + col2 * col0 AS col0 FROM tab2 cor0
----
238
8112
9243
query I rowsort
SELECT ALL + cor0.col0 * cor0.col0 + col2 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9557
SELECT CAST( NULL AS SIGNED ) + - 81 * col2 - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9557
SELECT CAST ( NULL AS INTEGER ) + - 81 * col2 - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col2 * 30 FROM tab2 AS cor0
----
1140
780
810
onlyif mysql # use DIV operator for integer division
query I rowsort label-9559
SELECT DISTINCT + 90 + col2 DIV col1 AS col2 FROM tab2 AS cor0
----
90
92
skipif mysql # not compatible
query I rowsort label-9559
SELECT DISTINCT + 90 + col2 / col1 AS col2 FROM tab2 AS cor0
----
90
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9560
SELECT ALL + CAST( 19 * + col1 AS SIGNED ) col0 FROM tab2
----
1121
323
589
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL + CAST ( 19 * + col1 AS INTEGER ) col0 FROM tab2
----
1121
323
589
query I rowsort
SELECT ALL col1 * + tab1.col1 * - col2 AS col2 FROM tab1
----
-16224
-36504
-5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-9562
SELECT ALL col0 DIV - 58 FROM tab2
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL col0 / - 58 FROM tab2
----
-1
-1
0
query I rowsort
SELECT ALL + 67 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9564
SELECT - col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9564
SELECT - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9565
SELECT ALL col2 DIV - col0 - ( col1 * col0 ) FROM tab0
----
-2065
-3395
-8099
skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL col2 / - col0 - ( col1 * col0 ) FROM tab0
----
-2065
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9566
SELECT + - col0 DIV + ( + col1 ) + - col1 + col0 * col2 AS col1 FROM tab0 cor0
----
-62
706
7207
skipif mysql # not compatible
query I rowsort label-9566
SELECT + - col0 / + ( + col1 ) + - col1 + col0 * col2 AS col1 FROM tab0 cor0
----
-62
706
7207
query I rowsort
SELECT + col2 * 96 * col1 AS col1 FROM tab1 AS cor0
----
119808
134784
54720
query I rowsort
SELECT - + col0 + col1 * col0 + col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT col2 * col2 + col1 + cor0.col1 FROM tab0 AS cor0
----
1261
195
6906
query I rowsort
SELECT - - ( ( col1 ) ) * ( - cor0.col2 * col1 ) + + 86 FROM tab2 cor0
----
-10896
-25861
-90420
query I rowsort
SELECT DISTINCT - col1 + + ( col0 ) + - 70 FROM tab1 AS cor0
----
-16
-3
-93
query I rowsort
SELECT ALL 27 AS col1 FROM tab1 AS cor0
----
27
27
27
query I rowsort
SELECT + col2 * col0 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
34
7216
759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9574
SELECT ALL + CAST( cor0.col2 AS SIGNED ) AS col1 FROM tab1 cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL + CAST ( cor0.col2 AS INTEGER ) AS col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT + col0 * 27 FROM tab0 cor0
----
2403
648
945
query I rowsort
SELECT DISTINCT - 52 AS col2 FROM tab1 AS cor0
----
-52
query I rowsort
SELECT - 22 AS col2 FROM tab1 AS cor0
----
-22
-22
-22
query I rowsort
SELECT - cor0.col2 + + col1 + col2 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - col0 * + 21 * - col1 + col0 FROM tab1 AS cor0
----
13504
1641
21920
query I rowsort
SELECT - col1 + ( col2 ) AS col2 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9581
SELECT + - col1 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9581
SELECT + - col1 + - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * col2 + col0 AS col2 FROM tab2 cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT - - cor0.col1 * col2 - 53 AS col1 FROM tab1 AS cor0
----
1195
1351
517
query I rowsort
SELECT DISTINCT + - col2 + col2 * col1 AS col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL col0 + 18 AS col2 FROM tab0 AS cor0
----
107
42
53
query I rowsort
SELECT + cor0.col1 + + col1 + 98 * + col1 FROM tab2 cor0
----
1700
3100
5900
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9588
SELECT - - col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9588
SELECT - - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * ( col2 ) AS col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT col1 * 58 + + col1 FROM tab2 AS cor0
----
1003
1829
3481
query I rowsort
SELECT ALL - 23 * col0 FROM tab2
----
-161
-1794
-1817
query I rowsort
SELECT DISTINCT + - col0 + + col1 + col2 * + col0 * col2 FROM tab0 AS cor0
----
26198
598438
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9593
SELECT DISTINCT - - col1 * + col2 + + col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
1535
650
837
skipif mysql # not compatible
query I rowsort label-9593
SELECT DISTINCT - - col1 * + col2 + + col0 / + col1 AS col2 FROM tab2 AS cor0
----
1535
650
837
query I rowsort
SELECT ALL col2 * - col0 - + col1 AS col0 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT tab2.col1 + + col1 + - 40 AS col2 FROM tab2
----
-6
22
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9596
SELECT DISTINCT - 15 DIV 41 + - col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-9596
SELECT DISTINCT - 15 / 41 + - col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - 99 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-10
-64
-75
query I rowsort
SELECT DISTINCT + + ( - cor0.col2 ) * col2 - - col1 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT - 19 * col1 + - col1 AS col2 FROM tab2 AS cor0
----
-1180
-340
-620
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9600
SELECT ALL - + CAST( col0 AS SIGNED ) + col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24
skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL - + CAST ( col0 AS INTEGER ) + col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-9601
SELECT + - 9 DIV - col1 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9601
SELECT + - 9 / - col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL + col0 * col2 * col2 AS col0 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT ALL 20 + col0 FROM tab0 AS cor0
----
109
44
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-9604
SELECT ALL - + col0 + col2 DIV + col0 FROM tab0 AS cor0
----
-23
-35
-89
skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL - + col0 + col2 / + col0 FROM tab0 AS cor0
----
-23
-35
-89
query I rowsort
SELECT + 36 FROM tab2, tab2 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT 85 - col0 AS col2 FROM tab2
----
6
7
78
query I rowsort
SELECT + ( - tab1.col1 * + 38 ) + col1 FROM tab1
----
-370
-481
-962
query I rowsort
SELECT ALL + cor0.col0 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL - - 42 * col1 AS col1 FROM tab1 AS cor0
----
1092
420
546
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9611
SELECT + ( - col2 ) * + CAST( col2 AS SIGNED ) * - col1 AS col2 FROM tab2 cor0
----
22599
24548
39884
skipif mysql # not compatible
query I rowsort label-9611
SELECT + ( - col2 ) * + CAST ( col2 AS INTEGER ) * - col1 AS col2 FROM tab2 cor0
----
22599
24548
39884
query I rowsort
SELECT + + ( - col0 ) + col0 * ( + col1 ) AS col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT tab1.col1 - - col2 AS col2 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 cor1
----
1
33
82
skipif mysql # not compatible
query I rowsort
SELECT + 92 * - col1 + + col0 + + CAST ( ( col2 ) AS REAL ) AS col0 FROM tab0 AS cor0
----
-7855
-8201
-8888
query I rowsort
SELECT DISTINCT + + 48 * 97 AS col0 FROM tab1 cor0
----
4656
query I rowsort
SELECT - ( + 54 ) + col1 AS col0 FROM tab2 cor0
----
-23
-37
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9618
SELECT ALL + ( col0 ) + col1 * CAST( NULL AS SIGNED ) + 87 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL + ( col0 ) + col1 * CAST ( NULL AS INTEGER ) + 87 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9619
SELECT + col1 * + 63 + + tab1.col2 DIV col0 AS col1 FROM tab1
----
1656
630
820
skipif mysql # not compatible
query I rowsort label-9619
SELECT + col1 * + 63 + + tab1.col2 / col0 AS col1 FROM tab1
----
1656
630
820
query I rowsort
SELECT ALL ( - col2 + tab0.col0 ) AS col1 FROM tab0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 * col0 col0 FROM tab2
----
-22
-6058
-6203
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9622
SELECT DISTINCT CAST( col2 AS SIGNED ) AS col2 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-9622
SELECT DISTINCT CAST ( col2 AS INTEGER ) AS col2 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT - col2 * - cor0.col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT col0 + - col0 * col1 + + col0 AS col2 FROM tab0 AS cor0
----
-2016
-3325
-7921
query I rowsort
SELECT ALL + 84 + - 50 * + col0 AS col2 FROM tab2 AS cor0
----
-266
-3816
-3866
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 1 col1 FROM tab0, tab2 AS cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to f3aaea07874d9328a91c424c0907a688
query I rowsort
SELECT DISTINCT col1 * col0 + + 4 * col2 - col2 * + col1 FROM tab2
----
-512
3172
849
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * tab1.col2 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 844087611670bb7fd62286733e4f81ac
onlyif mysql # use DIV operator for integer division
query I rowsort label-9629
SELECT ALL + tab0.col0 DIV col1 - - 69 AS col2 FROM tab0
----
69
69
69
skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL + tab0.col0 / col1 - - 69 AS col2 FROM tab0
----
69
69
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-9630
SELECT ALL col1 DIV col0 + - col2 - col1 FROM tab0
----
-116
-172
-96
skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL col1 / col0 + - col2 - col1 FROM tab0
----
-116
-172
-96
query I rowsort
SELECT DISTINCT + tab2.col0 - + tab2.col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT col1 + col1 - + col0 AS col2 FROM tab0
----
148
159
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9633
SELECT - col2 * col1 + - CAST( NULL AS SIGNED ) * + ( + col1 ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9633
SELECT - col2 * col1 + - CAST ( NULL AS INTEGER ) * + ( + col1 ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - cor0.col0 FROM tab1, tab0 cor0, tab0 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL ( - col1 * col2 ) FROM tab0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - cor0.col2 + + ( + col1 ) col2 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-9638
SELECT DISTINCT col0 + col2 DIV col1 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT col0 + col2 / col1 AS col2 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9639
SELECT + col0 * 36 + + 24 DIV col1 + - 47 FROM tab2 AS cor0
----
205
2761
2798
skipif mysql # not compatible
query I rowsort label-9639
SELECT + col0 * 36 + + 24 / col1 + - 47 FROM tab2 AS cor0
----
205
2761
2798
query I rowsort
SELECT - col1 + + ( col0 ) + + col1 AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT col2 * col0 * + 95 AS col2 FROM tab0 AS cor0
----
3325
693310
75240
query I rowsort
SELECT ALL - col2 * 3 + - col1 * col1 FROM tab2 AS cor0
----
-1042
-3559
-403
query I rowsort
SELECT + col0 * 84 + col0 FROM tab0 AS cor0
----
2040
2975
7565
onlyif mysql # use DIV operator for integer division
query I rowsort label-9644
SELECT + - col1 DIV col2 - col1 * - col1 FROM tab0 AS cor0
----
7394
8280
9312
skipif mysql # not compatible
query I rowsort label-9644
SELECT + - col1 / col2 - col1 * - col1 FROM tab0 AS cor0
----
7394
8280
9312
query I rowsort
SELECT DISTINCT - col1 * 41 + col2 FROM tab1 AS cor0
----
-1012
-353
-437
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9646
SELECT ALL - - col0 + + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL - - col0 + + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + + 89 AS col2 FROM tab1 AS cor0
----
-7
32
35
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * - CAST ( col1 AS REAL ) / - col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + col2 * 77 + col0 AS col0 FROM tab0 AS cor0
----
112
2565
6403
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9650
SELECT - col2 + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-9650
SELECT - col2 + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL - col1 * 58 FROM tab1 AS cor0
----
-1508
-580
-754
query I rowsort
SELECT + col2 * 87 AS col1 FROM tab2 AS cor0
----
2262
2349
3306
query I rowsort
SELECT col2 * 21 FROM tab0 AS cor0
----
1722
21
693
query I rowsort
SELECT col2 * 78 * + 14 - - col0 AS col0 FROM tab1 AS cor0
----
104912
58971
62308
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9655
SELECT ALL - + col1 + CAST( ( col2 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL - + col1 + CAST ( ( col2 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + tab2.col0 * 66 FROM tab2
----
462
5148
5214
query I rowsort
SELECT + col0 * 2 AS col1 FROM tab2
----
14
156
158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9658
SELECT + CAST( cor0.col1 AS SIGNED ) + cor0.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to bd4e64b4654b9e3f8122f4e1bada2bd0
skipif mysql # not compatible
query I rowsort label-9658
SELECT + CAST ( cor0.col1 AS INTEGER ) + cor0.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to bd4e64b4654b9e3f8122f4e1bada2bd0
query I rowsort
SELECT DISTINCT tab0.col1 * col1 + + 27 FROM tab0
----
7423
8308
9436
query I rowsort
SELECT DISTINCT cor0.col0 * ( col2 ) AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL - + col0 * - 36 + - col1 + + col0 FROM tab2 cor0
----
228
2827
2906
query I rowsort
SELECT - + col0 + - ( ( - cor0.col0 ) ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col2 + - col0 * col1 + col2 FROM tab0 AS cor0
----
-1998
-3393
-7935
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( - col2 ) + ( + col0 ) * col0 + + col0 * + col2 col0 FROM tab2 AS cor0
----
1075
9646
9889
query I rowsort
SELECT ( col0 ) * col1 + col2 + col1 FROM tab0 AS cor0
----
2183
3493
8272
query I rowsort
SELECT DISTINCT + 3 + col0 + - col0 FROM tab0 AS cor0
----
3
query I rowsort
SELECT ALL - 35 - + col1 AS col1 FROM tab0 AS cor0
----
-121
-126
-132
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9668
SELECT - + 18 * + cor0.col2 * col1 + + CAST( col1 + - col2 AS SIGNED ) FROM tab0 AS cor0
----
-134307
-1650
-51031
skipif mysql # not compatible
query I rowsort label-9668
SELECT - + 18 * + cor0.col2 * col1 + + CAST ( col1 + - col2 AS INTEGER ) FROM tab0 AS cor0
----
-134307
-1650
-51031
query I rowsort
SELECT + - cor0.col0 * - 36 FROM tab1 AS cor0
----
108
2304
2880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT - - 56 - col0 FROM tab1 AS cor0
----
-24
-8
53
query I rowsort
SELECT ALL - col0 + col0 - - 12 AS col1 FROM tab2 AS cor0
----
12
12
12
query I rowsort
SELECT 94 AS col0 FROM tab1 cor0
----
94
94
94
query I rowsort
SELECT DISTINCT + + col1 * + col2 + + col0 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-9675
SELECT DISTINCT cor0.col2 DIV - col0 + - ( + cor0.col0 ) FROM tab0 AS cor0
----
-25
-35
-89
skipif mysql # not compatible
query I rowsort label-9675
SELECT DISTINCT cor0.col2 / - col0 + - ( + cor0.col0 ) FROM tab0 AS cor0
----
-25
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - col1 col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9677
SELECT DISTINCT + - col0 * - cor0.col0 * 37 + col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
151552
236800
325
skipif mysql # not compatible
query I rowsort label-9677
SELECT DISTINCT + - col0 * - cor0.col0 * 37 + col1 / - col0 AS col2 FROM tab1 AS cor0
----
151552
236800
325
query I rowsort
SELECT DISTINCT - - col1 + cor0.col0 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL 18 * col1 - col2 AS col0 FROM tab2 AS cor0
----
1036
268
531
query I rowsort
SELECT - + 20 * col1 AS col1 FROM tab1 AS cor0
----
-200
-260
-520
query I rowsort
SELECT DISTINCT col1 * - col0 * col1 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL - + 34 + + col1 - col1 FROM tab1 AS cor0
----
-34
-34
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 * + col2 col0 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT - col0 * + col2 * col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT 67 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 * + 58 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to af386fdd423e5cb6a51133a34e7fb39b
onlyif mysql # use DIV operator for integer division
query I rowsort label-9687
SELECT col2 DIV + 64 AS col1 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9687
SELECT col2 / + 64 AS col1 FROM tab1
----
0
0
1
query I rowsort
SELECT DISTINCT - + col2 + - col2 * ( + col0 ) * col2 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
-26083
-598427
61
query I rowsort
SELECT col0 - + col1 * col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL + + col0 + + col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL ( + col2 ) * cor0.col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - 49 AS col0 FROM tab1
----
-49
-49
-49
query I rowsort
SELECT + 72 * col2 - - 65 FROM tab0 AS cor0
----
137
2441
5969
query I rowsort
SELECT ALL + ( - tab2.col2 * + col2 ) AS col2 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT - col0 * - col0 + col2 AS col0 FROM tab1
----
4153
63
6496
onlyif mysql # use DIV operator for integer division
query I rowsort label-9696
SELECT + + col2 DIV - col0 AS col2 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-9696
SELECT + + col2 / - col0 AS col2 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT + ( + col1 ) * - 47 + - 59 AS col2 FROM tab0 AS cor0
----
-4101
-4336
-4618
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9698
SELECT DISTINCT - CAST( 56 AS SIGNED ) FROM tab1, tab0 AS cor0, tab0, tab2 AS cor1
----
-56
skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT - CAST ( 56 AS INTEGER ) FROM tab1, tab0 AS cor0, tab0, tab2 AS cor1
----
-56
query I rowsort
SELECT DISTINCT + cor0.col0 + - ( 20 ) * col1 FROM tab0 AS cor0
----
-1696
-1731
-1905
query I rowsort
SELECT cor0.col2 + + col1 * col1 AS col0 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT + 81 FROM tab0 cor0
----
81
81
81
query I rowsort
SELECT + - 88 * cor0.col2 FROM tab2 cor0
----
-2288
-2376
-3344
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 72 col1 FROM tab2 AS cor0
----
72
72
72
query I rowsort
SELECT - ( + cor0.col0 ) * col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL 48 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT - + 41 AS col1 FROM tab0 cor0
----
-41
-41
-41
query I rowsort
SELECT - - ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - 15 * col1 - - col1 * - 82 FROM tab2 AS cor0
----
-1649
-3007
-5723
query I rowsort
SELECT DISTINCT + + col1 * - cor0.col1 + - col0 FROM tab0 cor0
----
-7420
-8370
-9444
query I rowsort
SELECT ALL + 0 * cor0.col0 * col1 - ( - col0 * - col0 ) FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9711
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col0 + - col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9711
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col0 + - col2 FROM tab2 cor0
----
NULL
query I rowsort
SELECT DISTINCT ( - col2 ) * cor0.col1 - col1 AS col2 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT + 82 * col0 AS col2 FROM tab1 cor0
----
246
5248
6560
query I rowsort
SELECT - 46 * cor0.col1 FROM tab0 cor0
----
-3956
-4186
-4462
onlyif mysql # use DIV operator for integer division
query I rowsort label-9715
SELECT DISTINCT - - cor0.col2 + - col1 DIV + cor0.col0 AS col0 FROM tab2 AS cor0
----
23
26
38
skipif mysql # not compatible
query I rowsort label-9715
SELECT DISTINCT - - cor0.col2 + - col1 / + cor0.col0 AS col0 FROM tab2 AS cor0
----
23
26
38
query I rowsort
SELECT - ( + cor0.col1 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 col1 FROM tab1, tab1 AS cor0
----
42
query I rowsort
SELECT - col2 * col2 + + ( col2 ) AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT - cor0.col2 * + col0 + - ( col0 ) FROM tab2 cor0
----
-196
-2106
-3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + cor0.col1 * col2 col1 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT ALL col2 * - col0 * + col1 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT 2 * - col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9723
SELECT DISTINCT CAST( - col1 AS SIGNED ) + col0 AS col2 FROM tab0 AS cor0
----
-2
-62
skipif mysql # not compatible
query I rowsort label-9723
SELECT DISTINCT CAST ( - col1 AS INTEGER ) + col0 AS col2 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT ALL - + ( + col2 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + col0 * - cor0.col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT - 97 FROM tab1, tab2 cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b
query I rowsort
SELECT DISTINCT col0 * - 58 FROM tab1
----
-174
-3712
-4640
query I rowsort
SELECT DISTINCT col0 + col0 * - 98 AS col1 FROM tab0
----
-2328
-3395
-8633
query I rowsort
SELECT col0 * - ( + 99 ) + - col0 FROM tab2
----
-700
-7800
-7900
onlyif mysql # use DIV operator for integer division
query I rowsort label-9730
SELECT ALL - 34 * cor0.col1 DIV - 33 - + col0 * + cor0.col1 FROM tab1 AS cor0
----
-1027
-52
-630
skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL - 34 * cor0.col1 / - 33 - + col0 * + cor0.col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT - - 75 * + col1 AS col1 FROM tab1 AS cor0
----
1950
750
975
onlyif mysql # use DIV operator for integer division
query I rowsort label-9732
SELECT ALL 86 DIV - col1 FROM tab2 AS cor0
----
-1
-2
-5
skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL 86 / - col1 FROM tab2 AS cor0
----
-1
-2
-5
query I rowsort
SELECT - + col2 * - col2 + 46 * col1 AS col1 FROM tab0 AS cor0
----
10910
4463
5045
query I rowsort
SELECT ALL + 52 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c
query I rowsort
SELECT - 24 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
query I rowsort
SELECT ALL - col0 + - col2 + - cor0.col2 FROM tab1 AS cor0
----
-111
-178
-272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * col2 - col1 col1 FROM tab1 AS cor0
----
136
3638
7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 + col0 col1 FROM tab0 AS cor0
----
-63
-74
-9
query I rowsort
SELECT ALL col2 * col1 + + ( + col2 ) AS col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT + 51 * col1 AS col0 FROM tab1 AS cor0
----
1326
510
663
onlyif mysql # use DIV operator for integer division
query I rowsort label-9741
SELECT DISTINCT + col1 + - col0 DIV + ( col2 * col0 ) FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-9741
SELECT DISTINCT + col1 + - col0 / + ( col2 * col0 ) FROM tab1 cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9742
SELECT ALL - + 92 + col0 + ( - 72 ) DIV + col1 FROM tab0 cor0
----
-3
-57
-68
skipif mysql # not compatible
query I rowsort label-9742
SELECT ALL - + 92 + col0 + ( - 72 ) / + col1 FROM tab0 cor0
----
-3
-57
-68
query I rowsort
SELECT + - 5 + - col0 * ( cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-54
-6089
-6246
query I rowsort
SELECT - col1 + - col0 AS col0 FROM tab1 cor0
----
-29
-74
-93
query I rowsort
SELECT ALL 75 + - col0 FROM tab2
----
-3
-4
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-9746
SELECT - col2 DIV 30 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9746
SELECT - col2 / 30 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT + + 63 * col2 + col2 AS col1 FROM tab2 AS cor0
----
1664
1728
2432
query I rowsort
SELECT ALL + 23 + - col0 * col0 FROM tab0 AS cor0
----
-1202
-553
-7898
query I rowsort
SELECT DISTINCT + col1 * 75 AS col2 FROM tab0 AS cor0
----
6450
6825
7275
query I rowsort
SELECT 42 + + col2 FROM tab0
----
124
43
75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9751
SELECT + + ( - col0 ) - - CAST( NULL AS SIGNED ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9751
SELECT + + ( - col0 ) - - CAST ( NULL AS INTEGER ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( col2 ) + - tab0.col1 - col0 AS col2 FROM tab0
----
-131
-77
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9753
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-9753
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab1
----
NULL
query I rowsort
SELECT + - 92 AS col2 FROM tab2, tab1, tab1 AS cor0, tab0
----
81 values hashing to 95b4f8d1f8c6430076327dcc6092a86c
query I rowsort
SELECT DISTINCT - col1 + + ( + col2 ) FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - - 1 + - col1 AS col0 FROM tab0 cor0
----
-85
-90
-96
query I rowsort
SELECT DISTINCT + 79 * + 48 AS col0 FROM tab0
----
3792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9758
SELECT ALL + cor0.col0 + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL + cor0.col0 + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ( col1 * + col2 ) FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-9760
SELECT cor0.col1 + - col1 DIV - cor0.col1 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-9760
SELECT cor0.col1 + - col1 / - cor0.col1 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT + 36 AS col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 * col0 col0 FROM tab2
----
1014
1027
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 * col0 col1 FROM tab0
----
13824
42875
704969
query I rowsort
SELECT - 44 * + col1 AS col2 FROM tab2 AS cor0
----
-1364
-2596
-748
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 col1 FROM tab1
----
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9766
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-9766
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
NULL
query I rowsort
SELECT + cor0.col2 * - 12 FROM tab0, tab2 AS cor0
----
9 values hashing to 4c760ec864c9744435480accaf0bd3c2
query I rowsort
SELECT DISTINCT - col1 * - 86 + + col2 AS col0 FROM tab0 cor0
----
7429
7908
8343
query I rowsort
SELECT DISTINCT col0 * ( + col0 ) FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL col1 * + 19 FROM tab1 AS cor0
----
190
247
494
onlyif mysql # use DIV operator for integer division
query I rowsort label-9771
SELECT DISTINCT col0 + ( col1 ) DIV col1 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-9771
SELECT DISTINCT col0 + ( col1 ) / col1 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT ALL col2 + + 95 * col0 FROM tab2 cor0
----
692
7436
7543
onlyif mysql # use DIV operator for integer division
query I rowsort label-9773
SELECT DISTINCT - + 29 DIV 26 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT - + 29 / 26 FROM tab0 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 46 * col0 col2 FROM tab0 AS cor0
----
-1104
-1610
-4094
query I rowsort
SELECT ( col1 ) * - col0 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9776
SELECT DISTINCT - col1 * + CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
-7396
-8281
-9409
skipif mysql # not compatible
query I rowsort label-9776
SELECT DISTINCT - col1 * + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT + col2 + - 34 FROM tab1
----
20
23
62
query I rowsort
SELECT - + 42 AS col0 FROM tab2 cor0
----
-42
-42
-42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * 30 col2 FROM tab2 AS cor0
----
-210
-2340
-2370
query I rowsort
SELECT cor0.col1 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9781
SELECT DISTINCT - col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
query I rowsort
SELECT ALL - + 8 + + cor0.col1 FROM tab1 AS cor0
----
18
2
5
query I rowsort
SELECT DISTINCT - 60 * - ( tab0.col0 ) FROM tab0, tab0 AS cor0
----
1440
2100
5340
query I rowsort
SELECT DISTINCT + cor0.col1 + ( col0 + + ( 74 ) ) AS col0 FROM tab2 cor0
----
112
170
211
onlyif mysql # use DIV operator for integer division
query I rowsort label-9785
SELECT DISTINCT - + ( - col1 ) + + col0 DIV col0 AS col1 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-9785
SELECT DISTINCT - + ( - col1 ) + + col0 / col0 AS col1 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT ALL - 89 - - cor0.col2 FROM tab0 AS cor0
----
-56
-7
-88
query I rowsort
SELECT + - 27 AS col0 FROM tab2 AS cor0
----
-27
-27
-27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col2 * col2 * + 52 col1 FROM tab2 cor0
----
-35093
-37877
-75071
query I rowsort
SELECT col2 * col0 + - 22 * col0 AS col2 FROM tab0
----
-735
264
5340
query I rowsort
SELECT DISTINCT - 59 AS col2 FROM tab1 AS cor0
----
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-9791
SELECT col2 * col1 DIV - 53 + - col0 DIV + col1 AS col2 FROM tab0 cor0
----
-1
-140
-53
skipif mysql # not compatible
query I rowsort label-9791
SELECT col2 * col1 / - 53 + - col0 / + col1 AS col2 FROM tab0 cor0
----
-1
-140
-53
query I rowsort
SELECT ALL - + col2 + cor0.col0 AS col1 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT - col0 * - ( tab1.col1 * 90 ) FROM tab1
----
57600
7020
93600
query I rowsort
SELECT + - col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT cor0.col1 * - col1 + col2 * col0 AS col1 FROM tab0 cor0
----
-6604
-9374
-983
query I rowsort
SELECT DISTINCT ( - 52 ) * - col0 FROM tab1
----
156
3328
4160
query I rowsort
SELECT DISTINCT - col2 + + col0 * col2 AS col1 FROM tab2
----
162
2002
2964
query I rowsort
SELECT DISTINCT + 58 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
58
query I rowsort
SELECT - + col0 + - col0 * - col1 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT + ( col2 ) + + 45 * + col1 AS col1 FROM tab0 AS cor0
----
3903
4177
4366
query I rowsort
SELECT ALL + + col1 * - col2 AS col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + col1 * - 77 FROM tab1 AS cor0
----
-1001
-2002
-770
query I rowsort
SELECT ALL + cor0.col0 + cor0.col0 * + ( col0 ) + col1 AS col0 FROM tab1 AS cor0
----
38
4170
6493
query I rowsort
SELECT DISTINCT + + col2 * + cor0.col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - col0 + col1 + col1 FROM tab1
----
-44
-54
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9806
SELECT ALL + 37 + tab0.col0 + CAST( col0 AS SIGNED ) FROM tab0
----
107
215
85
skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL + 37 + tab0.col0 + CAST ( col0 AS INTEGER ) FROM tab0
----
107
215
85
query I rowsort
SELECT - col1 * col0 + + 10 FROM tab1
----
-1030
-630
-68
onlyif mysql # use DIV operator for integer division
query I rowsort label-9808
SELECT 58 + - col2 * cor0.col0 + - ( col1 ) DIV - col2 FROM tab1 AS cor0
----
-104
-3590
-7622
skipif mysql # not compatible
query I rowsort label-9808
SELECT 58 + - col2 * cor0.col0 + - ( col1 ) / - col2 FROM tab1 AS cor0
----
-104
-3590
-7622
query I rowsort
SELECT ALL - col2 * tab1.col0 + - col0 AS col2 FROM tab1
----
-165
-3712
-7760
query I rowsort
SELECT + col2 * col1 + - ( + col1 * - col1 ) + ( col0 + tab1.col2 ) FROM tab1
----
1593
2137
791
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9811
SELECT DISTINCT + ( + col0 ) * - 4 + - ( col2 ) * - CAST( NULL AS SIGNED ) + - col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT + ( + col0 ) * - 4 + - ( col2 ) * - CAST ( NULL AS INTEGER ) + - col0 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT - col2 + - tab0.col0 + col0 * - col1 AS col2 FROM tab0
----
-2121
-3431
-8270
onlyif mysql # use DIV operator for integer division
query I rowsort label-9813
SELECT ALL - col2 DIV 17 FROM tab0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL - col2 / 17 FROM tab0
----
-1
-4
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9814
SELECT + col0 DIV + ( - cor0.col0 ) AS col2 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9814
SELECT + col0 / + ( - cor0.col0 ) AS col2 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + col1 * + cor0.col2 + 93 * + col2 * + col2 + col1 AS col2 FROM tab2 AS cor0
----
134955
64461
68665
query I rowsort
SELECT DISTINCT col2 * + col2 + col0 AS col1 FROM tab1 AS cor0
----
2919
3313
9296
onlyif mysql # use DIV operator for integer division
query I rowsort label-9817
SELECT DISTINCT cor0.col1 DIV col0 + - col1 * col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-833
skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT cor0.col1 / col0 + - col1 * col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-833
query I rowsort
SELECT ALL + col2 - - col2 * 97 FROM tab2 AS cor0
----
2548
2646
3724
query I rowsort
SELECT - col1 + ( + col0 ) + col0 * - col2 FROM tab0 AS cor0
----
-7300
-854
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9820
SELECT DISTINCT - col1 DIV + ( + col0 ) AS col1 FROM tab2 AS cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT - col1 / + ( + col0 ) AS col1 FROM tab2 AS cor0
----
-4
0
query I rowsort
SELECT - + col0 * - col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT + col2 * - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col1 + - col2 * - col2 + + col2 AS col1 FROM tab0 AS cor0
----
1208
6897
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-9824
SELECT ALL col0 DIV ( + 35 * + col0 ) AS col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL col0 / ( + 35 * + col0 ) AS col2 FROM tab1 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9825
SELECT DISTINCT col2 * CAST( col2 + col0 AS SIGNED ) FROM tab1 cor0
----
16896
3078
6897
skipif mysql # not compatible
query I rowsort label-9825
SELECT DISTINCT col2 * CAST ( col2 + col0 AS INTEGER ) FROM tab1 cor0
----
16896
3078
6897
query I rowsort
SELECT tab1.col1 * - col2 + + col2 AS col0 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT - ( - col2 ) - cor0.col2 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 53 * col2 * - col0 + col0 col1 FROM tab2 AS cor0
----
10024
107562
159185
query I rowsort
SELECT col0 + - 47 AS col2 FROM tab1 AS cor0
----
-44
17
33
query I rowsort
SELECT ALL - col2 * + 1 AS col0 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT + 91 * 31 - + cor0.col0 FROM tab1 cor0
----
2741
2757
2818
onlyif mysql # use DIV operator for integer division
query I rowsort label-9832
SELECT DISTINCT - col0 * 35 DIV col1 + - cor0.col0 FROM tab0 AS cor0
----
-123
-33
-47
skipif mysql # not compatible
query I rowsort label-9832
SELECT DISTINCT - col0 * 35 / col1 + - cor0.col0 FROM tab0 AS cor0
----
-123
-33
-47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9833
SELECT ALL + - CAST( NULL AS SIGNED ) + cor0.col1 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL + - CAST ( NULL AS INTEGER ) + cor0.col1 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) + - col1 col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - 18 * col1 AS col2 FROM tab1 AS cor0
----
-180
-234
-468
query I rowsort
SELECT - col1 * + col2 - - col2 FROM tab0 AS cor0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9837
SELECT ( + col1 ) DIV + col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-9837
SELECT ( + col1 ) / + col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT col2 * - col0 - - col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-9839
SELECT ALL col0 + col2 + col2 DIV - 23 FROM tab2 AS cor0
----
103
116
33
skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL col0 + col2 + col2 / - 23 FROM tab2 AS cor0
----
103
116
33
query I rowsort
SELECT DISTINCT - cor0.col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT col2 * col1 + col1 + + col0 FROM tab2 cor0
----
1671
742
875
query I rowsort
SELECT ALL + 32 FROM tab1 cor0
----
32
32
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-9843
SELECT + 30 DIV + col0 + + col2 + col1 FROM tab0 AS cor0
----
120
173
98
skipif mysql # not compatible
query I rowsort label-9843
SELECT + 30 / + col0 + + col2 + col1 FROM tab0 AS cor0
----
120
173
98
query I rowsort
SELECT col0 * col2 + - ( cor0.col2 ) FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT DISTINCT + + 78 + col1 FROM tab2 AS cor0
----
109
137
95
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= - col1
----
query I rowsort
SELECT col1 + tab1.col1 * + col1 FROM tab1
----
110
182
702
query I rowsort
SELECT - col0 + col2 * + col2 FROM tab1
----
2913
3185
9136
query I rowsort
SELECT ALL - tab2.col1 - - col2 * + col1 AS col0 FROM tab2
----
1475
629
806
query I rowsort
SELECT - col2 + col1 + col0 FROM tab0
----
131
77
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9851
SELECT + col2 + - col2 DIV + tab1.col1 FROM tab1
----
52
52
89
skipif mysql # not compatible
query I rowsort label-9851
SELECT + col2 + - col2 / + tab1.col1 FROM tab1
----
52
52
89
query I rowsort
SELECT - tab0.col0 + col0 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + + 98 FROM tab1 AS cor0
----
98
98
98
query I rowsort
SELECT DISTINCT - + 98 * - cor0.col2 FROM tab1 AS cor0
----
5292
5586
9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 col2 FROM tab1 AS cor0
----
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * - col0 col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9857
SELECT CAST( NULL AS SIGNED ) * 73 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9857
SELECT CAST ( NULL AS INTEGER ) * 73 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-9858
SELECT - 29 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9858
SELECT - 29 / cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9859
SELECT + col1 + col2 * CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9859
SELECT + col1 + col2 * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col0 + cor0.col2 * - cor0.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to deeebcedc1a0c5a470f89fb36853d172
query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 NOT IN ( - col2 * + col1 - col2 )
----
query I rowsort
SELECT ALL col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL col0 + col1 * cor0.col0 FROM tab1 AS cor0
----
1120
704
81
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( - col2 + col1 + - col0 )
----
query I rowsort
SELECT col1 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL + col2 - + cor0.col2 FROM tab0 cor0
----
0
0
0
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * - col0 > col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT - col2 - tab2.col0 AS col0 FROM tab2
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-9869
SELECT DISTINCT col2 DIV + col2 - + col1 AS col2 FROM tab0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT col2 / + col2 - + col1 AS col2 FROM tab0
----
-85
-90
-96
query I rowsort
SELECT col0 + + col2 + tab0.col0 FROM tab0
----
260
71
81
query I rowsort
SELECT DISTINCT col1 * + col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col0 )
----
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9873
SELECT DISTINCT + col1 * col0 DIV + col2 - col0 * col1 AS col1 FROM tab1
----
-1030
-629
-77
skipif mysql # not compatible
query I rowsort label-9873
SELECT DISTINCT + col1 * col0 / + col2 - col0 * col1 AS col1 FROM tab1
----
-1030
-629
-77
query I rowsort
SELECT - col2 - - tab0.col2 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT - col0 + - tab1.col1 FROM tab1
----
-29
-74
-93
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( col0 + col0 * col2 + col0 * col0 * - col2 )
----
query I rowsort
SELECT col2 * - tab1.col2 + + col0 * col0 + col1 * + col2 FROM tab1
----
-1503
-1568
1417
query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( + col2 )
----
query III rowsort
SELECT * FROM tab1 WHERE col2 BETWEEN col1 * + col0 * - col0 - + col0 AND col0 * - col1
----
query I rowsort
SELECT - cor1.col0 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT DISTINCT + 70 AS col1 FROM tab0, tab2 cor0
----
70
query I rowsort
SELECT + - col2 + + 25 + col2 FROM tab2 AS cor0
----
25
25
25
query I rowsort
SELECT ALL 21 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
query I rowsort
SELECT + + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT col2 * 33 + col0 FROM tab1 AS cor0
----
1785
1945
3248
query I rowsort
SELECT ALL + 14 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 col0 FROM tab1, tab2 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9888
SELECT ALL CAST( NULL AS SIGNED ) * col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9888
SELECT ALL CAST ( NULL AS INTEGER ) * col0 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col0 FROM tab0 AS cor0
----
33
33
33
query I rowsort
SELECT DISTINCT - col2 + col0 * cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
114038
5076
52702
query I rowsort
SELECT ALL + col0 + col0 * 79 AS col0 FROM tab2
----
560
6240
6320
query I rowsort
SELECT DISTINCT - 84 AS col2 FROM tab0
----
-84
query I rowsort
SELECT ALL - col1 * + col1 + ( + tab1.col1 ) * col0 FROM tab1
----
-598
540
871
query I rowsort
SELECT ALL - col2 + - col0 * col1 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT ALL + col2 * 25 FROM tab1
----
1350
1425
2400
query I rowsort
SELECT col2 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + col1 * 48 + + 61 FROM tab1 AS cor0
----
1309
541
685
onlyif mysql # use DIV operator for integer division
query I rowsort label-9898
SELECT - col0 + - col2 DIV col1 + col0 FROM tab2 cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-9898
SELECT - col0 + - col2 / col1 + col0 FROM tab2 cor0
----
-2
0
0
query I rowsort
SELECT ALL - col0 * 65 FROM tab2 AS cor0
----
-455
-5070
-5135
query I rowsort
SELECT cor0.col0 * col1 + col1 * + col2 FROM tab2 AS cor0
----
1054
1989
6136
query I rowsort
SELECT ALL - col1 * ( col2 ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * ( + 26 ) col1 FROM tab2 AS cor0
----
676
702
988
query I rowsort
SELECT col1 - - 76 * + col1 AS col0 FROM tab2
----
1309
2387
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-9904
SELECT - col1 DIV + col1 - + col2 FROM tab0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-9904
SELECT - col1 / + col1 - + col2 FROM tab0
----
-2
-34
-83
query I rowsort
SELECT 11 + 91 AS col0 FROM tab2
----
102
102
102
query I rowsort
SELECT - col2 * 50 FROM tab0 cor0
----
-1650
-4100
-50
query I rowsort
SELECT ALL ( - col1 ) AS col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT tab1.col2 + + col0 FROM tab1
----
121
176
57
query I rowsort
SELECT col0 + + cor0.col2 * + col1 AS col1 FROM tab0 AS cor0
----
132
2862
7551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 + col1 col2 FROM tab0 AS cor0
----
104
93
98
query I rowsort
SELECT ALL col0 * - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT DISTINCT + - 93 AS col0 FROM tab0 AS cor0
----
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-9913
SELECT ALL - col2 DIV col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL - col2 / col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT DISTINCT - cor0.col1 * col2 * + cor0.col0 + cor0.col0 * cor0.col0 FROM tab1 cor0
----
-32384
-4203
-93440
query I rowsort
SELECT + + cor0.col0 + col0 AS col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - ( - cor0.col2 ) * col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL tab2.col2 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL - 79 + col2 AS col1 FROM tab0 AS cor0
----
-46
-78
3
query I rowsort
SELECT DISTINCT - tab0.col1 * + tab0.col0 FROM tab0, tab2, tab1 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + ( - cor0.col2 ) * col1 + - cor0.col2 col2 FROM tab0 AS cor0
----
-244101
-679124
-9410
query I rowsort
SELECT + col1 + - 98 * - 10 * col2 AS col2 FROM tab0 AS cor0
----
1077
32426
80451
query I rowsort
SELECT + col0 * col0 - + cor0.col1 * col2 FROM tab0 AS cor0
----
-2262
1128
459
query I rowsort
SELECT col1 * 42 + - col2 FROM tab2 AS cor0
----
1275
2452
676
query I rowsort
SELECT + cor0.col0 + col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT - col2 - - ( col2 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 + - 46 - - 34 FROM tab2 AS cor0
----
-38
-39
-50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col2 * 62 col0 FROM tab0
----
-2022
-27
-4995
query I rowsort
SELECT ALL + tab1.col2 * col0 * + 92 AS col1 FROM tab1
----
14904
335616
706560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9929
SELECT + cor0.col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9929
SELECT + cor0.col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 * ( + 56 ) + + col1 FROM tab2 AS cor0
----
423
4427
4441
query I rowsort
SELECT ALL col0 * col2 - ( col0 ) * - col1 AS col1 FROM tab2 AS cor0
----
406
4345
6630
query I rowsort
SELECT DISTINCT + cor0.col1 * - ( + col1 ) + - col0 * col0 FROM tab2 AS cor0
----
-1010
-6530
-9565
query I rowsort
SELECT + cor0.col0 * ( cor0.col2 ) AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + + 10 - 43 * col0 AS col2 FROM tab2 AS cor0
----
-291
-3344
-3387
query I rowsort
SELECT DISTINCT + 84 * + col2 AS col0 FROM tab1 AS cor0
----
4536
4788
8064
query I rowsort
SELECT - col0 + - ( + tab0.col0 ) AS col1 FROM tab0
----
-178
-48
-70
query I rowsort
SELECT ALL + 46 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT ALL + col2 * col0 + + col2 AS col1 FROM tab2 cor0
----
2054
216
3040
query I rowsort
SELECT ALL - col1 * - col0 - + cor0.col1 FROM tab1 cor0
----
1027
52
630
query I rowsort
SELECT col0 * col2 - + col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1242
3078
6432
query I rowsort
SELECT - col0 * col0 * col0 AS col1 FROM tab2 cor0
----
-343
-474552
-493039
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - + col1 col2 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT DISTINCT col0 - - tab0.col0 AS col0 FROM tab0
----
178
48
70
query I rowsort
SELECT DISTINCT col1 * + tab0.col0 AS col2 FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9945
SELECT DISTINCT - col2 + - col1 - col1 DIV + col2 FROM tab0
----
-121
-174
-195
skipif mysql # not compatible
query I rowsort label-9945
SELECT DISTINCT - col2 + - col1 - col1 / + col2 FROM tab0
----
-121
-174
-195
query I rowsort
SELECT DISTINCT col0 * - tab1.col1 + + col0 * col2 * col0 FROM tab1
----
232832
408
613360
onlyif mysql # use DIV operator for integer division
query I rowsort label-9947
SELECT DISTINCT + col1 + + col2 DIV - col2 FROM tab1
----
12
25
9
skipif mysql # not compatible
query I rowsort label-9947
SELECT DISTINCT + col1 + + col2 / - col2 FROM tab1
----
12
25
9
query I rowsort
SELECT DISTINCT + col0 * col1 + + col0 AS col2 FROM tab1
----
1120
704
81
query I rowsort
SELECT + col0 * tab2.col2 * col0 - + col2 * tab2.col0 AS col1 FROM tab2
----
1134
156156
234156
query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NULL <> NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 * + col2 col1 FROM tab2 cor0
----
189
2028
3002
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT IN ( col2 * - col2 ) OR ( NULL ) IN ( cor0.col0 * cor0.col0 )
----
query I rowsort
SELECT DISTINCT - - col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-9954
SELECT DISTINCT - col0 DIV col1 AS col2 FROM tab1 cor0
----
-6
0
skipif mysql # not compatible
query I rowsort label-9954
SELECT DISTINCT - col0 / col1 AS col2 FROM tab1 cor0
----
-6
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9955
SELECT DISTINCT + tab1.col2 * col2 DIV + col1 + col2 * + tab1.col1 AS col2 FROM tab1
----
1516
1956
894
skipif mysql # not compatible
query I rowsort label-9955
SELECT DISTINCT + tab1.col2 * col2 / + col1 + col2 * + tab1.col1 AS col2 FROM tab1
----
1516
1956
894
query I rowsort
SELECT + cor0.col1 + cor0.col1 FROM tab0 AS cor0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor1.col2 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT - col2 + - col1 * - col1 AS col0 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT - 51 * - cor0.col2 FROM tab1 AS cor0
----
2754
2907
4896
onlyif mysql # use DIV operator for integer division
query I rowsort label-9960
SELECT ALL ( - col0 ) * + tab1.col1 DIV - col1 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9960
SELECT ALL ( - col0 ) * + tab1.col1 / - col1 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9961
SELECT ALL cor0.col0 DIV cor0.col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL cor0.col0 / cor0.col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
query I rowsort
SELECT ALL col2 + + col0 - col0 * - col1 FROM tab1
----
1216
135
761
query I rowsort
SELECT ALL col2 - tab1.col1 AS col1 FROM tab1
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col1 col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + col2 * col2 * - col1 AS col2 FROM tab0 AS cor0
----
-611884
-93654
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9966
SELECT + - col1 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9966
SELECT + - col1 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - 68 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
query I rowsort
SELECT + - cor0.col2 + cor0.col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9969
SELECT - col1 + - col2 DIV - col1 AS col0 FROM tab2
----
-15
-31
-59
skipif mysql # not compatible
query I rowsort label-9969
SELECT - col1 + - col2 / - col1 AS col0 FROM tab2
----
-15
-31
-59
query I rowsort
SELECT col0 * col1 + - ( - 17 * col2 ) FROM tab0
----
2625
3412
9493
query I rowsort
SELECT + tab1.col1 * + tab1.col1 * - col2 AS col1 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT DISTINCT 34 AS col2 FROM tab2
----
34
query I rowsort
SELECT ALL 67 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9974
SELECT DISTINCT col0 - + CAST( NULL AS SIGNED ) * - cor0.col1 * col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT col0 - + CAST ( NULL AS INTEGER ) * - cor0.col1 * col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + col2 + - 29 FROM tab0 AS cor0
----
-28
4
53
query I rowsort
SELECT - + cor0.col1 + + ( 59 ) * + col0 AS col0 FROM tab0 AS cor0
----
1330
1968
5160
query I rowsort
SELECT ALL - - col2 - ( + 43 ) AS col0 FROM tab1 AS cor0
----
11
14
53
query I rowsort
SELECT ALL - col0 + - cor0.col2 FROM tab0 cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT - col1 + col1 - 73 * col1 FROM tab0 AS cor0
----
-6278
-6643
-7081
query I rowsort
SELECT DISTINCT + ( - col2 ) * col0 + 76 FROM tab1
----
-3572
-7604
-86
query I rowsort
SELECT DISTINCT - ( tab2.col0 ) * - col2 + col0 AS col1 FROM tab2
----
196
2106
3081
query I rowsort
SELECT tab2.col0 + + ( + col1 ) * col1 FROM tab2
----
3559
368
968
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9983
SELECT ALL + CAST( NULL AS DECIMAL ) + - 20 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL + CAST ( NULL AS REAL ) + - 20 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 98 * - 8 + col2 AS col2 FROM tab2 AS cor0
----
-746
-757
-758
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9985
SELECT - ( - col2 ) * - cor0.col1 + 92 * col2 * col1 + + CAST( NULL AS SIGNED ) * - 93 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9985
SELECT - ( - col2 ) * - cor0.col1 + 92 * col2 * col1 + + CAST ( NULL AS INTEGER ) * - 93 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - 98 + col0 FROM tab2 AS cor0
----
-19
-20
-91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9987
SELECT + - cor0.col0 * + 48 - col0 * CAST( + 18 + col2 AS SIGNED ) FROM tab1 AS cor0
----
-12960
-360
-7872
skipif mysql # not compatible
query I rowsort label-9987
SELECT + - cor0.col0 * + 48 - col0 * CAST ( + 18 + col2 AS INTEGER ) FROM tab1 AS cor0
----
-12960
-360
-7872
query I rowsort
SELECT DISTINCT + ( + 24 ) AS col2 FROM tab2 cor0
----
24
query I rowsort
SELECT DISTINCT + col2 + - col2 * col0 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT - 33 * col0 + - col1 AS col0 FROM tab2 AS cor0
----
-262
-2624
-2633
query I rowsort
SELECT DISTINCT - - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
3
64
80
query I rowsort
SELECT ALL + col1 * col0 AS col2 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-9993
SELECT DISTINCT col0 + - col0 DIV 12 + - col0 FROM tab0 AS cor0
----
-2
-7
skipif mysql # not compatible
query I rowsort label-9993
SELECT DISTINCT col0 + - col0 / 12 + - col0 FROM tab0 AS cor0
----
-2
-7
query I rowsort
SELECT + - col0 * col0 + col0 * col2 * + col1 FROM tab1 AS cor0
----
32384
4203
93440
onlyif mysql # use DIV operator for integer division
query I rowsort label-9995
SELECT + col1 + cor0.col1 * cor0.col2 DIV - 37 + col0 AS col1 FROM tab2 cor0
----
16
79
96
skipif mysql # not compatible
query I rowsort label-9995
SELECT + col1 + cor0.col1 * cor0.col2 / - 37 + col0 AS col1 FROM tab2 cor0
----
16
79
96
query I rowsort
SELECT ( - col0 ) + ( col1 ) AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT col0 + col2 * col0 + col2 FROM tab1 cor0
----
219
3769
7856
onlyif mysql # use DIV operator for integer division
query I rowsort label-9998
SELECT ALL - 31 + col2 DIV col0 AS col1 FROM tab0 AS cor0
----
-30
-31
-31
skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL - 31 + col2 / col0 AS col1 FROM tab0 AS cor0
----
-30
-31
-31
onlyif mysql # use DIV operator for integer division
query I rowsort label-9999
SELECT - + col1 DIV - col1 + - col2 * - col2 FROM tab1 AS cor0
----
2917
3250
9217
skipif mysql # not compatible
query I rowsort label-9999
SELECT - + col1 / - col1 + - col2 * - col2 FROM tab1 AS cor0
----
2917
3250
9217