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 + cor0.col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - col0 * - 34 AS col2 FROM tab1 cor0
----
102
2176
2720
query I rowsort
SELECT + + col0 + 15 FROM tab1 AS cor0
----
18
79
95
query I rowsort
SELECT + col0 * - col1 * col0 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT col1 + - 87 + col1 AS col2 FROM tab1 AS cor0
----
-35
-61
-67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col1 col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + col1 * + col2 + + ( + col2 ) + - 44 AS col2 FROM tab2 AS cor0
----
1516
640
820
query I rowsort
SELECT ALL + cor0.col2 * + 1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - col1 * - col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + col2 + 49 FROM tab1 AS cor0
----
103
106
145
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-10
SELECT + + col1 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-10
SELECT + + col1 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * col1 - - 6 FROM tab1 AS cor0
----
106
175
682
query I rowsort
SELECT ALL - + col1 + col0 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT + col1 * col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT ( 76 ) AS col2 FROM tab2 AS cor0
----
76
76
76
query I rowsort
SELECT - - col0 * - col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - - col1 - + col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT - col0 * col0 * + col0 - - ( cor0.col0 ) FROM tab0 cor0
----
-13800
-42840
-704880
query I rowsort
SELECT ALL + cor0.col1 * + 17 FROM tab2 AS cor0
----
1003
289
527
query I rowsort
SELECT cor1.col1 * 57 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4543f5d23f937bd6d0f1cec42bf06e3e
query I rowsort
SELECT + ( + col1 ) * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + ( - 67 ) AS col0 FROM tab1 AS cor0
----
-67
-67
-67
onlyif mysql # use DIV operator for integer division
query I rowsort label-22
SELECT + + col0 * + col0 DIV col0 AS col2 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-22
SELECT + + col0 * + col0 / col0 AS col2 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-23
SELECT + CAST( 36 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
-1944
-2052
-3456
skipif mysql # not compatible
query I rowsort label-23
SELECT + CAST ( 36 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
-1944
-2052
-3456
query I rowsort
SELECT + 59 FROM tab0 cor0
----
59
59
59
query I rowsort
SELECT ALL - cor0.col2 + col1 * - 32 * col1 FROM tab2 AS cor0
----
-111418
-30779
-9286
query I rowsort
SELECT + 70 AS col2 FROM tab2
----
70
70
70
query I rowsort
SELECT DISTINCT col0 * col1 * tab0.col1 AS col2 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT + 9 AS col2 FROM tab1
----
9
query I rowsort
SELECT col2 + + 43 FROM tab0 AS cor0
----
125
44
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-30
SELECT - col0 + CAST( col0 AS SIGNED ) DIV col2 FROM tab0 AS cor0
----
-24
-88
0
skipif mysql # not compatible
query I rowsort label-30
SELECT - col0 + CAST ( col0 AS INTEGER ) / col2 FROM tab0 AS cor0
----
-24
-88
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-31
SELECT + - cor0.col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-31
SELECT + - cor0.col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 + - col1 + + col2 AS col1 FROM tab0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 + col2 + - col0 col1 FROM tab0
----
-21
22
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-34
SELECT - 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-34
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - 94 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f
query I rowsort
SELECT - 44 FROM tab2
----
-44
-44
-44
query I rowsort
SELECT - cor0.col2 * col2 * + col1 + col1 * col1 * - col2 AS col2 FROM tab1 AS cor0
----
-112320
-136032
-38190
query I rowsort
SELECT - col2 + col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1508
608
810
onlyif mysql # use DIV operator for integer division
query I rowsort label-39
SELECT cor0.col0 + cor0.col0 DIV col2 col2 FROM tab1 AS cor0
----
3
65
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-39
SELECT cor0.col0 + cor0.col0 / col2 col2 FROM tab1 AS cor0
----
3
65
80
query I rowsort
SELECT col0 * + col1 + + ( - ( - col0 ) ) FROM tab2
----
1422
224
4680
query I rowsort
SELECT + 14 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 - - ( 3 * - col2 ) col0 FROM tab2 AS cor0
----
-19
-50
-97
query I rowsort
SELECT ALL - + col1 + 24 * cor0.col0 AS col1 FROM tab1 AS cor0
----
1526
1907
46
query I rowsort
SELECT DISTINCT + - col1 + col2 * - col1 FROM tab1 AS cor0
----
-1261
-1430
-580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-45
SELECT DISTINCT + + col1 * - CAST( + col2 AS SIGNED ) FROM tab1 cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-45
SELECT DISTINCT + + col1 * - CAST ( + col2 AS INTEGER ) FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT + + col2 + - 81 * col1 FROM tab0 AS cor0
----
-6933
-7289
-7856
query I rowsort
SELECT DISTINCT + + col1 * + col1 FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-48
SELECT DISTINCT - col2 + - CAST( col0 AS SIGNED ) + cor0.col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-48
SELECT DISTINCT - col2 + - CAST ( col0 AS INTEGER ) + cor0.col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL tab1.col0 * tab1.col1 + - col0 AS col0 FROM tab1
----
576
75
960
query I rowsort
SELECT - col0 * cor0.col1 * + col2 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL col1 - col1 * col0 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT ALL - 58 + col2 - col1 FROM tab2
----
-37
-62
-91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-53
SELECT - CAST( NULL AS SIGNED ) + - col0 + - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-53
SELECT - CAST ( NULL AS INTEGER ) + - col0 + - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * + cor0.col2 col0 FROM tab0 cor0
----
36
7380
825
query I rowsort
SELECT - - cor0.col0 * col2 + + col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT - + col2 * col1 * ( 82 ) AS col0 FROM tab1 AS cor0
----
-102336
-115128
-46740
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-57
SELECT + col2 + - col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-57
SELECT + col2 + - col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col1 col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - col1 + col2 * + 87 AS col0 FROM tab0 AS cor0
----
-10
2785
7043
query I rowsort
SELECT ALL - ( col2 ) * + 38 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-114076
-7182
-77064
query I rowsort
SELECT + + col1 * col2 + - col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT - + 42 FROM tab0 AS cor0
----
-42
-42
-42
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-63
SELECT ALL + + 82 * col0 * CAST( ( + col0 ) AS SIGNED ) FROM tab2 AS cor0
----
4018
498888
511762
skipif mysql # not compatible
query I rowsort label-63
SELECT ALL + + 82 * col0 * CAST ( ( + col0 ) AS INTEGER ) FROM tab2 AS cor0
----
4018
498888
511762
query I rowsort
SELECT - col2 * col0 * - col2 AS col0 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT ALL + + 10 + col2 FROM tab1 cor0
----
106
64
67
query I rowsort
SELECT - 86 FROM tab0, tab0 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da
query I rowsort
SELECT DISTINCT + - 47 * - col0 AS col1 FROM tab2 AS cor0
----
329
3666
3713
query I rowsort
SELECT 13 * col0 + ( - 93 ) + - col1 FROM tab1 cor0
----
-80
729
934
query I rowsort
SELECT + 77 * col0 FROM tab2
----
539
6006
6083
query I rowsort
SELECT DISTINCT 22 * + col0 FROM tab0 AS cor0
----
1958
528
770
query I rowsort
SELECT ALL - col1 + - col0 AS col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT ALL + ( cor0.col0 ) + 0 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - - col1 + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT col0 + col0 + + 92 AS col2 FROM tab1 AS cor0
----
220
252
98
query I rowsort
SELECT ALL + 76 FROM tab1 cor0
----
76
76
76
query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + 19 FROM tab1, tab1 AS cor0
----
19
query I rowsort
SELECT ALL - cor1.col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
onlyif mysql # use DIV operator for integer division
query I rowsort label-79
SELECT ALL - 21 DIV - col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-79
SELECT ALL - 21 / - col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - + 92 + col2 * col1 AS col0 FROM tab1 AS cor0
----
1156
1312
478
query I rowsort
SELECT DISTINCT ( - cor0.col1 ) AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - col0 + col0 * col2 * - col1 AS col0 FROM tab1
----
-36544
-4215
-99920
query I rowsort
SELECT ALL 91 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-84
SELECT + - col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-84
SELECT + - col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 11 AS col1 FROM tab1
----
-11
-11
-11
query I rowsort
SELECT cor0.col0 AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT col0 + + col0 * 42 FROM tab2
----
301
3354
3397
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 + - col1 + - col1 col2 FROM tab1
----
2
37
70
query I rowsort
SELECT DISTINCT + tab2.col0 * 90 FROM tab0, tab1, tab1 AS cor0, tab2
----
630
7020
7110
query I rowsort
SELECT DISTINCT + col2 + + col0 * 1 AS col0 FROM tab2
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595
query I rowsort
SELECT - col0 * + col0 * - col2 AS col1 FROM tab1
----
233472
486
614400
query I rowsort
SELECT DISTINCT - - col0 + + ( - col0 ) FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 41 col1 FROM tab0 AS cor0
----
130
65
76
query I rowsort
SELECT ALL + + 52 + - 86 FROM tab2 AS cor0
----
-34
-34
-34
query I rowsort
SELECT ALL + col1 * - col1 - - col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT - 18 + 85 AS col0 FROM tab0 cor0
----
67
query I rowsort
SELECT - + 78 FROM tab0 AS cor0
----
-78
-78
-78
query I rowsort
SELECT ALL + 12 * col1 + - col0 AS col2 FROM tab0 cor0
----
1003
1008
1129
query I rowsort
SELECT ALL - + col2 * 30 AS col1 FROM tab0 AS cor0
----
-2460
-30
-990
query I rowsort
SELECT DISTINCT ( col2 ) * - col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT 90 AS col2 FROM tab2 AS cor0
----
90
90
90
query I rowsort
SELECT + col0 - + 35 FROM tab0
----
-11
0
54
query I rowsort
SELECT col2 + - 45 FROM tab1
----
12
51
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * - col1 col1 FROM tab0
----
-1978
-3298
-8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-106
SELECT DISTINCT col0 DIV col1 AS col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-106
SELECT DISTINCT col0 / col1 AS col1 FROM tab2
----
0
1
4
query I rowsort
SELECT DISTINCT + tab2.col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
7
78
79
query I rowsort
SELECT DISTINCT col0 - - 88 AS col0 FROM tab2
----
166
167
95
query I rowsort
SELECT + cor0.col1 * + 39 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2ca358342f4f0c0c0373eb6d63e4d54b
onlyif mysql # use DIV operator for integer division
query I rowsort label-110
SELECT ALL + col1 + col0 * col2 DIV col1 - - 21 FROM tab1
----
395
53
624
skipif mysql # not compatible
query I rowsort label-110
SELECT ALL + col1 + col0 * col2 / col1 - - 21 FROM tab1
----
395
53
624
onlyif mysql # use DIV operator for integer division
query I rowsort label-111
SELECT col1 + 5 + - col0 DIV col0 FROM tab1
----
14
17
30
skipif mysql # not compatible
query I rowsort label-111
SELECT col1 + 5 + - col0 / col0 FROM tab1
----
14
17
30
query I rowsort
SELECT ALL ( + col0 ) * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + 63 * + ( col2 ) FROM tab1 AS cor0
----
3402
3591
6048
query I rowsort
SELECT ALL 79 FROM tab0 AS cor0
----
79
79
79
query I rowsort
SELECT DISTINCT col0 * col0 + col1 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT DISTINCT + col1 + + cor0.col1 * col1 AS col0 FROM tab1 cor0
----
110
182
702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-117
SELECT CAST( NULL AS SIGNED ) * - col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-117
SELECT CAST ( NULL AS INTEGER ) * - col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( - col1 ) * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - - ( col1 ) + col2 * 69 AS col0 FROM tab1 AS cor0
----
3752
3943
6637
query I rowsort
SELECT + ( 62 ) * + cor0.col1 AS col1 FROM tab0 cor0
----
5332
5642
6014
query I rowsort
SELECT DISTINCT + - 99 * - col2 + - col1 FROM tab2 AS cor0
----
2515
2642
3745
query I rowsort
SELECT DISTINCT - + col1 * col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT + col2 + + tab0.col2 AS col1 FROM tab0
----
164
2
66
query I rowsort
SELECT col0 * col2 + 75 FROM tab0
----
110
7373
867
query I rowsort
SELECT DISTINCT 81 AS col2 FROM tab1
----
81
query I rowsort
SELECT ALL - 24 * + cor0.col1 * 41 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2, tab2 cor3
----
243 values hashing to 14a998ca00eff6cf92a5690e429c4aa0
query I rowsort
SELECT + + col1 * + 19 FROM tab0 AS cor0
----
1634
1729
1843
query I rowsort
SELECT DISTINCT + col2 + 34 FROM tab1 AS cor0
----
130
88
91
query I rowsort
SELECT DISTINCT - col2 + - 17 * col2 FROM tab2 cor0
----
-468
-486
-684
query I rowsort
SELECT DISTINCT col1 * col2 + 53 * cor0.col1 AS col0 FROM tab0 AS cor0
----
12285
5238
7396
query I rowsort
SELECT DISTINCT col1 + ( col2 ) FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-132
SELECT col2 DIV 16 FROM tab2 AS cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-132
SELECT col2 / 16 FROM tab2 AS cor0
----
1
1
2
query I rowsort
SELECT ALL + - cor0.col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT ALL - col1 * + 64 * col0 + + ( - 29 ) * col2 AS col1 FROM tab1
----
-42613
-6558
-69344
query I rowsort
SELECT + col2 * 80 AS col1 FROM tab2
----
2080
2160
3040
query I rowsort
SELECT ALL - col0 * + col2 + + col0 AS col0 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT ALL + cor0.col1 - col2 * col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT + 17 * - 17 + col2 * + 96 * col2 FROM tab0 AS cor0
----
-193
104255
645215
query I rowsort
SELECT ALL 43 + col0 FROM tab2 AS cor0
----
121
122
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-140
SELECT ALL CAST( - col2 AS SIGNED ) * col1 - 52 AS col0 FROM tab0 AS cor0
----
-149
-2890
-7514
skipif mysql # not compatible
query I rowsort label-140
SELECT ALL CAST ( - col2 AS INTEGER ) * col1 - 52 AS col0 FROM tab0 AS cor0
----
-149
-2890
-7514
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + CAST ( + ( cor0.col1 ) AS REAL ) / - col1 - cor0.col2 FROM tab1 AS cor0
----
-53
-56
-95
query I rowsort
SELECT ALL 50 AS col2 FROM tab0, tab2 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 6932c991110d256d3f92f3e9538f8040
query I rowsort
SELECT ALL col2 - col1 * col1 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT - col0 + col0 * ( - col1 ) FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT - tab2.col1 * col2 * + col1 AS col1 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT col0 * col1 + - col1 AS col0 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-147
SELECT ALL col0 + col0 DIV col0 + - col0 AS col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-147
SELECT ALL col0 + col0 / col0 + - col0 AS col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + 88 + col2 FROM tab1 AS cor0
----
142
145
184
query I rowsort
SELECT DISTINCT - cor0.col1 + 54 FROM tab2, tab1 AS cor0
----
28
41
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + cor0.col1 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - ( + 90 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5
query I rowsort
SELECT ( col2 ) - - ( + 19 * cor0.col1 ) FROM tab1 AS cor0
----
247
343
548
query I rowsort
SELECT cor0.col0 * cor0.col0 + 43 * + col2 + + col1 AS col2 FROM tab1 AS cor0
----
10541
2357
6557
onlyif mysql # use DIV operator for integer division
query I rowsort label-154
SELECT - col1 DIV + cor0.col2 + col2 AS col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-154
SELECT - col1 / + cor0.col2 + col2 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - 75 + col1 + col2 FROM tab1 AS cor0
----
-8
34
5
query I rowsort
SELECT DISTINCT + + cor0.col1 + - col1 + - cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + - col0 * col0 + + col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT - - col2 * col0 + + col2 + + col2 FROM tab2 AS cor0
----
2080
243
3078
onlyif mysql # use DIV operator for integer division
query I rowsort label-159
SELECT + + col1 + + 80 DIV col0 + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1426
-616
-687
skipif mysql # not compatible
query I rowsort label-159
SELECT + + col1 + + 80 / col0 + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1426
-616
-687
query I rowsort
SELECT ALL - 13 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792
query I rowsort
SELECT - col0 * 50 + + cor0.col2 FROM tab1 AS cor0
----
-3143
-3904
-96
query I rowsort
SELECT - col2 * + col0 - col2 * - col0 AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-163
SELECT DISTINCT + col1 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-163
SELECT DISTINCT + col1 / - col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-164
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - tab0.col1 FROM tab0, tab2, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-164
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - tab0.col1 FROM tab0, tab2, tab1 AS cor0
----
NULL
query I rowsort
SELECT - col0 * 32 AS col0 FROM tab1 AS cor0
----
-2048
-2560
-96
query I rowsort
SELECT DISTINCT + 54 AS col2 FROM tab0
----
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-167
SELECT - cor0.col0 + - 8 DIV - col2 FROM tab0 AS cor0
----
-24
-27
-89
skipif mysql # not compatible
query I rowsort label-167
SELECT - cor0.col0 + - 8 / - col2 FROM tab0 AS cor0
----
-24
-27
-89
query I rowsort
SELECT ALL col0 * + col0 + + col0 FROM tab1 AS cor0
----
12
4160
6480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 col0 FROM tab0 AS cor0
----
80
80
80
query I rowsort
SELECT + 5 + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-1035
-635
-73
query I rowsort
SELECT - + cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-172
SELECT - col2 DIV + col1 + + col1 * col2 * col0 + col2 FROM tab0
----
3396
664200
68145
skipif mysql # not compatible
query I rowsort label-172
SELECT - col2 / + col1 + + col1 * col2 * col0 + col2 FROM tab0
----
3396
664200
68145
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) + col1 * - col0 * - 7 col2 FROM tab1
----
4544
549
7360
onlyif mysql # use DIV operator for integer division
query I rowsort label-174
SELECT DISTINCT + 57 DIV + tab2.col0 AS col0 FROM tab2, tab1, tab2 AS cor0, tab0
----
0
8
skipif mysql # not compatible
query I rowsort label-174
SELECT DISTINCT + 57 / + tab2.col0 AS col0 FROM tab2, tab1, tab2 AS cor0, tab0
----
0
8
query I rowsort
SELECT cor0.col1 * col0 + + col2 * + col1 + - col0 AS col0 FROM tab0 AS cor0
----
15472
3457
4878
query I rowsort
SELECT + col0 * col1 + col0 * - col0 AS col1 FROM tab0
----
1488
178
2170
onlyif mysql # use DIV operator for integer division
query I rowsort label-177
SELECT - 81 DIV col1 AS col0 FROM tab1
----
-3
-6
-8
skipif mysql # not compatible
query I rowsort label-177
SELECT - 81 / col1 AS col0 FROM tab1
----
-3
-6
-8
query I rowsort
SELECT DISTINCT - tab1.col2 * + 64 AS col2 FROM tab1
----
-3456
-3648
-6144
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT DISTINCT col1 - col2 * col0 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT col1 * - col2 + + cor0.col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL - - cor0.col0 * + col2 + col2 AS col1 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT + 68 * - 39 + - cor0.col0 FROM tab2 cor0
----
-2659
-2730
-2731
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to bce5cbf48f4a41569415c085ae91ae7c
query I rowsort
SELECT ALL - 43 * - tab1.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to ca3b5386786f44a3c284894966f3d484
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd
query I rowsort
SELECT + col0 * 41 + - col2 AS col1 FROM tab2
----
260
3172
3201
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 35 col2 FROM tab0
----
-3010
-3185
-3395
query I rowsort
SELECT + col0 + 94 FROM tab2
----
101
172
173
query I rowsort
SELECT - cor0.col1 * - 23 FROM tab0 AS cor0
----
1978
2093
2231
query I rowsort
SELECT 79 - + col0 FROM tab0
----
-10
44
55
query I rowsort
SELECT DISTINCT ( 99 * tab1.col1 ) + 7 AS col2 FROM tab1
----
1294
2581
997
query I rowsort
SELECT ALL col2 * tab0.col1 + - col0 FROM tab0
----
2814
62
7373
query I rowsort
SELECT + - 33 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to bbc05afe7eb6fed16e9d75f7f74d1948
onlyif mysql # use DIV operator for integer division
query I rowsort label-195
SELECT DISTINCT + col1 DIV + col1 + + col2 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-195
SELECT DISTINCT + col1 / + col1 + + col2 FROM tab1
----
55
58
97
query I rowsort
SELECT - 49 - - ( col2 * - tab0.col1 ) AS col2 FROM tab0
----
-146
-2887
-7511
query I rowsort
SELECT col1 * - col1 + - col2 FROM tab2
----
-327
-3507
-988
query I rowsort
SELECT ALL - 71 + + ( + col2 ) * col0 FROM tab1
----
3577
7609
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-199
SELECT ALL - CAST( + 64 AS SIGNED ) * + col1 * 67 + 14 FROM tab1 AS cor0
----
-111474
-42866
-55730
skipif mysql # not compatible
query I rowsort label-199
SELECT ALL - CAST ( + 64 AS INTEGER ) * + col1 * 67 + 14 FROM tab1 AS cor0
----
-111474
-42866
-55730
onlyif mysql # use DIV operator for integer division
query I rowsort label-200
SELECT - 28 * col0 + + col2 DIV cor0.col2 FROM tab0 cor0
----
-2491
-671
-979
skipif mysql # not compatible
query I rowsort label-200
SELECT - 28 * col0 + + col2 / cor0.col2 FROM tab0 cor0
----
-2491
-671
-979
query I rowsort
SELECT + 31 + col0 * col0 * 94 AS col0 FROM tab2 AS cor0
----
4637
571927
586685
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-202
SELECT - - CAST( - col0 AS SIGNED ) * - col0 AS col1 FROM tab0 cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-202
SELECT - - CAST ( - col0 AS INTEGER ) * - col0 AS col1 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT - + col1 * - col1 FROM tab1 cor0
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-204
SELECT + cor0.col1 * - CAST( NULL AS SIGNED ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-204
SELECT + cor0.col1 * - CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - cor0.col2 * 78 AS col0 FROM tab2 AS cor0
----
-2028
-2106
-2964
query I rowsort
SELECT DISTINCT cor0.col1 * col1 + + col1 AS col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT - 32 * col0 FROM tab2
----
-224
-2496
-2528
query I rowsort
SELECT ALL + col1 + cor0.col1 - - col2 AS col0 FROM tab2 AS cor0
----
144
72
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-209
SELECT DISTINCT - col1 + CAST( + col0 AS SIGNED ) + - col2 AS col0 FROM tab0 AS cor0
----
-63
-84
-95
skipif mysql # not compatible
query I rowsort label-209
SELECT DISTINCT - col1 + CAST ( + col0 AS INTEGER ) + - col2 AS col0 FROM tab0 AS cor0
----
-63
-84
-95
skipif mysql # not compatible
query I rowsort
SELECT - col1 * + CAST ( col2 AS REAL ) * + col2 + col2 FROM tab2 AS cor0
----
-22572
-24510
-39858
onlyif mysql # use DIV operator for integer division
query I rowsort label-211
SELECT + col0 * + col2 + col0 * cor0.col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
7209
768
skipif mysql # not compatible
query I rowsort label-211
SELECT + col0 * + col2 + col0 * cor0.col1 / - col1 AS col1 FROM tab0 AS cor0
----
0
7209
768
onlyif mysql # use DIV operator for integer division
query I rowsort label-212
SELECT DISTINCT + cor0.col1 + col2 DIV 98 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-212
SELECT DISTINCT + cor0.col1 + col2 / 98 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT col0 + 80 AS col0 FROM tab2 AS cor0
----
158
159
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-214
SELECT ALL CAST( 22 AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
skipif mysql # not compatible
query I rowsort label-214
SELECT ALL CAST ( 22 AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
onlyif mysql # use DIV operator for integer division
query I rowsort label-215
SELECT ALL col0 DIV - tab1.col0 + - col1 + + tab1.col1 DIV col1 AS col1 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-215
SELECT ALL col0 / - tab1.col0 + - col1 + + tab1.col1 / col1 AS col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT + 3 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT ALL + col2 * + 51 * + 14 FROM tab1 AS cor0
----
38556
40698
68544
onlyif mysql # use DIV operator for integer division
query I rowsort label-218
SELECT ALL + cor0.col1 * 26 DIV + 34 AS col2 FROM tab2 AS cor0
----
13
23
45
skipif mysql # not compatible
query I rowsort label-218
SELECT ALL + cor0.col1 * 26 / + 34 AS col2 FROM tab2 AS cor0
----
13
23
45
query I rowsort
SELECT ALL col1 * - ( - col0 ) + col2 + col1 AS col1 FROM tab1
----
1149
158
707
query I rowsort
SELECT - col1 * + cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + + cor0.col0 + - ( - col1 ) FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT col2 * 77 FROM tab2 AS cor0
----
2002
2079
2926
query I rowsort
SELECT ALL 91 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-224
SELECT DISTINCT col0 + - CAST( col1 AS SIGNED ) FROM tab1 cor0
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-224
SELECT DISTINCT col0 + - CAST ( col1 AS INTEGER ) FROM tab1 cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-225
SELECT ALL col1 * + col0 DIV - cor0.col0 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-225
SELECT ALL col1 * + col0 / - cor0.col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + cor0.col2 + col1 * col1 FROM tab1 cor0
----
157
265
730
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-228
SELECT DISTINCT - CAST( + col1 AS SIGNED ) * + col1 AS col1 FROM tab1 cor0
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-228
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) * + col1 AS col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT + + col1 + cor0.col1 * + col1 AS col2 FROM tab2 cor0
----
306
3540
992
query I rowsort
SELECT DISTINCT + ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-231
SELECT col0 DIV + col0 - + col0 * + cor0.col2 FROM tab1 AS cor0
----
-161
-3647
-7679
skipif mysql # not compatible
query I rowsort label-231
SELECT col0 / + col0 - + col0 * + cor0.col2 FROM tab1 AS cor0
----
-161
-3647
-7679
query I rowsort
SELECT ALL - - 95 FROM tab0 AS cor0
----
95
95
95
query I rowsort
SELECT - 81 + cor0.col0 AS col2 FROM tab2 cor0
----
-2
-3
-74
query I rowsort
SELECT ALL - cor0.col0 * - col0 * col1 FROM tab1 AS cor0
----
234
40960
83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-235
SELECT DISTINCT - cor0.col1 DIV - col0 FROM tab2 AS cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-235
SELECT DISTINCT - cor0.col1 / - col0 FROM tab2 AS cor0
----
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 * col0 * - col1 col0 FROM tab0 cor0
----
156864
258020
615524
query I rowsort
SELECT DISTINCT 50 + + col0 * col0 FROM tab2 AS cor0
----
6134
6291
99
query I rowsort
SELECT + 0 - - 56 * + col2 AS col0 FROM tab1 AS cor0
----
3024
3192
5376
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-239
SELECT ALL CAST( tab2.col0 AS SIGNED ) * - tab2.col0 * + cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 4f0d4f32ca6c2e90e992c4c695f42e45
skipif mysql # not compatible
query I rowsort label-239
SELECT ALL CAST ( tab2.col0 AS INTEGER ) * - tab2.col0 * + cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 4f0d4f32ca6c2e90e992c4c695f42e45
onlyif mysql # use DIV operator for integer division
query I rowsort label-240
SELECT + - 53 + + col0 DIV + col0 FROM tab1 AS cor0
----
-52
-52
-52
skipif mysql # not compatible
query I rowsort label-240
SELECT + - 53 + + col0 / + col0 FROM tab1 AS cor0
----
-52
-52
-52
query I rowsort
SELECT - col1 * - ( col0 ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT col2 - + col2 AS col1 FROM tab1
----
0
query I rowsort
SELECT DISTINCT - + col2 * + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT ALL + 25 + col1 * col1 AS col0 FROM tab1 AS cor0
----
125
194
701
onlyif mysql # use DIV operator for integer division
query I rowsort label-245
SELECT DISTINCT col1 + col2 DIV 85 + - col0 FROM tab1 AS cor0
----
-54
-66
23
skipif mysql # not compatible
query I rowsort label-245
SELECT DISTINCT col1 + col2 / 85 + - col0 FROM tab1 AS cor0
----
-54
-66
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT 21 + - cor0.col2 FROM tab0 AS cor0
----
-12
-61
20
query I rowsort
SELECT + ( col2 ) + ( + col1 ) * + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT - 1 FROM tab2, tab0 cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 col0 FROM tab0 AS cor0
----
91
91
91
query I rowsort
SELECT DISTINCT + col0 * col2 * + col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL - 42 * - col1 + - 49 * col1 AS col2 FROM tab2 AS cor0
----
-119
-217
-413
query I rowsort
SELECT DISTINCT + 16 + col2 FROM tab1 cor0
----
112
70
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-254
SELECT + 38 * + col2 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-254
SELECT + 38 * + col2 + + CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 19 * - col1 AS col1 FROM tab0 AS cor0
----
-1634
-1729
-1843
query I rowsort
SELECT ALL + col2 * col0 + + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-257
SELECT DISTINCT + + col0 * CAST( - col1 AS SIGNED ) col1 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-257
SELECT DISTINCT + + col0 * CAST ( - col1 AS INTEGER ) col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - cor0.col2 * - ( + col0 ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - + col2 * 51 FROM tab0 AS cor0
----
-1683
-4182
-51
query I rowsort
SELECT ALL + - col0 * - col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT col0 * tab1.col2 * + 58 AS col1 FROM tab1
----
211584
445440
9396
query I rowsort
SELECT ALL + - 92 + col2 FROM tab2 cor0
----
-54
-65
-66
query I rowsort
SELECT - - 95 + col2 + + 6 FROM tab2 cor0
----
127
128
139
query I rowsort
SELECT - col2 * col0 + col1 + - col1 * col0 * + 57 FROM tab1 AS cor0
----
-40118
-4582
-66947
query I rowsort
SELECT + - col2 * 20 * 45 AS col2 FROM tab2 AS cor0
----
-23400
-24300
-34200
query I rowsort
SELECT col1 * + col2 + col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT + 29 + col1 FROM tab0
----
115
120
126
query I rowsort
SELECT - ( col0 ) + + col1 * - col2 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT DISTINCT - 68 AS col0 FROM tab1 AS cor0
----
-68
onlyif mysql # use DIV operator for integer division
query I rowsort label-270
SELECT + col1 * col2 * + cor0.col2 + + col0 DIV - col0 + col2 FROM tab0 AS cor0
----
611965
93686
97
skipif mysql # not compatible
query I rowsort label-270
SELECT + col1 * col2 * + cor0.col2 + + col0 / - col0 + col2 FROM tab0 AS cor0
----
611965
93686
97
query I rowsort
SELECT ALL ( col0 ) + col2 * ( + 89 ) FROM tab0 AS cor0
----
124
2961
7387
query I rowsort
SELECT col0 + col0 + + col2 AS col0 FROM tab1 cor0
----
185
256
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-273
SELECT + - CAST( NULL AS SIGNED ) * col0 + col1 * - col0 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-273
SELECT + - CAST ( NULL AS INTEGER ) * col0 + col1 * - col0 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 28 * - 44 AS col1 FROM tab1 AS cor0
----
1232
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 * tab1.col2 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT + ( ( cor0.col2 ) ) * - col1 - + col1 FROM tab1 cor0
----
-1261
-1430
-580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-277
SELECT - - CAST( col2 AS SIGNED ) + + col2 * - 11 AS col1 FROM tab2 AS cor0
----
-260
-270
-380
skipif mysql # not compatible
query I rowsort label-277
SELECT - - CAST ( col2 AS INTEGER ) + + col2 * - 11 AS col1 FROM tab2 AS cor0
----
-260
-270
-380
onlyif mysql # use DIV operator for integer division
query I rowsort label-278
SELECT - col2 DIV - 78 AS col0 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-278
SELECT - col2 / - 78 AS col0 FROM tab1
----
0
0
1
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab0 cor1
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163
query I rowsort
SELECT + col1 + 63 + + col1 AS col2 FROM tab0
----
235
245
257
query I rowsort
SELECT col0 * col2 + + ( + col0 ) * - col2 + col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + ( - col2 ) AS col1 FROM tab1 cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-283
SELECT ( col0 ) * col2 DIV - col0 - 36 FROM tab1 AS cor0
----
-132
-90
-93
skipif mysql # not compatible
query I rowsort label-283
SELECT ( col0 ) * col2 / - col0 - 36 FROM tab1 AS cor0
----
-132
-90
-93
query I rowsort
SELECT DISTINCT + + cor0.col0 * + 51 AS col0 FROM tab2 AS cor0
----
357
3978
4029
query I rowsort
SELECT ALL - ( - 39 ) * + col0 FROM tab2 AS cor0
----
273
3042
3081
query I rowsort
SELECT ALL 2 AS col1 FROM tab1
----
2
2
2
query I rowsort
SELECT ALL - 87 AS col0 FROM tab2, tab0 cor0, tab1, tab1 AS cor1
----
81 values hashing to edb5a8bbcb3204ac8254e54507073328
query I rowsort
SELECT ALL - 16 + cor0.col1 * ( col2 ) FROM tab0 cor0
----
2822
7446
81
query I rowsort
SELECT - col1 * col2 + cor0.col1 AS col0 FROM tab1 cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL - 61 AS col2 FROM tab0 AS cor0
----
-61
-61
-61
query I rowsort
SELECT ALL col0 + 68 AS col0 FROM tab2
----
146
147
75
query I rowsort
SELECT + - 63 + col0 FROM tab0 AS cor0
----
-28
-39
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 + col1 * 47 col2 FROM tab1 AS cor0
----
1235
483
624
query I rowsort
SELECT ALL + cor0.col0 + - tab0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to a0a4c231133cfd36c763126477bbb464
query I rowsort
SELECT DISTINCT 31 FROM tab0, tab1 AS cor0
----
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-296
SELECT - 47 DIV - col2 + col1 * - cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-296
SELECT - 47 / - col2 + col1 * - cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col1 - col2 * 5 AS col1 FROM tab1 AS cor0
----
-244
-275
-467
query I rowsort
SELECT - cor0.col2 - col0 AS col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT 59 FROM tab2 cor0
----
59
59
59
query I rowsort
SELECT ALL - - cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT col2 * col1 + col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - 69 * - ( col0 ) * col1 - + 67 AS col2 FROM tab0
----
142349
234188
558764
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 - cor0.col2 * + col0 col1 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT + col1 + - 56 * col0 AS col2 FROM tab0 AS cor0
----
-1258
-1863
-4893
query I rowsort
SELECT DISTINCT col2 + + col2 * 59 FROM tab1 AS cor0
----
3240
3420
5760
onlyif mysql # use DIV operator for integer division
query I rowsort label-306
SELECT ALL col0 * col2 + - col2 DIV tab1.col0 AS col0 FROM tab1
----
144
3648
7679
skipif mysql # not compatible
query I rowsort label-306
SELECT ALL col0 * col2 + - col2 / tab1.col0 AS col0 FROM tab1
----
144
3648
7679
query I rowsort
SELECT + cor0.col1 + - 95 + - col0 FROM tab0 AS cor0
----
-33
-33
-93
query I rowsort
SELECT - - cor0.col2 * col1 AS col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT col0 + - 15 * col2 AS col1 FROM tab1 cor0
----
-1360
-791
-807
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 67 - + col1 col0 FROM tab1 AS cor0
----
-3644
-3829
-6445
query I rowsort
SELECT - - cor0.col1 * - col0 + + 62 * col1 FROM tab2 AS cor0
----
-289
-944
1705
query I rowsort
SELECT ALL - col2 * + 31 * cor0.col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-19947
-25940
-47476
query I rowsort
SELECT 73 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT ALL - 98 AS col0 FROM tab2 AS cor0
----
-98
-98
-98
query I rowsort
SELECT - 29 * 31 FROM tab0 AS cor0
----
-899
-899
-899
query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NULL IN ( cor0.col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-317
SELECT DISTINCT - col1 DIV + 86 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-317
SELECT DISTINCT - col1 / + 86 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - col1 * + ( + col1 * 88 ) + col1 * - col1 + + col0 AS col2 FROM tab2 AS cor0
----
-25642
-309731
-85522
query I rowsort
SELECT ALL - 57 * + col1 FROM tab2 AS cor0
----
-1767
-3363
-969
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 cor1, tab0, tab2 AS cor2
----
3645 values hashing to b9fc7433316cc7891b52d2a23a135419
query I rowsort
SELECT DISTINCT + col1 - ( col1 ) AS col2 FROM tab1
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) + col2 col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL + tab1.col0 + - col1 AS col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT + col1 + col2 * - tab0.col1 FROM tab0 WHERE NULL IN ( - col0 + - col2 )
----
query I rowsort
SELECT ALL - col2 + + col0 * - col1 AS col0 FROM tab2
----
-1381
-244
-4628
query I rowsort
SELECT ALL + col2 * - col2 + - tab1.col0 * tab1.col2 AS col0 FROM tab1
----
-16896
-3078
-6897
onlyif mysql # use DIV operator for integer division
query I rowsort label-327
SELECT col0 + tab0.col1 DIV - col1 FROM tab0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-327
SELECT col0 + tab0.col1 / - col1 FROM tab0
----
23
34
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-328
SELECT ALL - tab1.col2 + col1 DIV col2 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-328
SELECT ALL - tab1.col2 + col1 / col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT 7 * - col0 AS col1 FROM tab0
----
-168
-245
-623
query I rowsort
SELECT DISTINCT + 67 FROM tab0, tab2, tab0 AS cor0
----
67
query I rowsort
SELECT ( + col1 ) * 20 * col0 + - col2 * - 12 FROM tab1
----
13484
21952
2208
query I rowsort
SELECT col2 * - col1 * col2 + col0 AS col0 FROM tab1
----
-119728
-32426
-75813
query I rowsort
SELECT - col2 + col0 * - col0 * col1 FROM tab1 AS cor0
----
-288
-41017
-83296
query I rowsort
SELECT + - col0 * col1 * ( - col1 ) FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT - + 19 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662
query I rowsort
SELECT + + col2 + col0 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + 55 + + col0 FROM tab0
----
144
79
90
query I rowsort
SELECT ALL - 21 AS col1 FROM tab1 AS cor0
----
-21
-21
-21
query I rowsort
SELECT DISTINCT - + col1 + 43 * col1 FROM tab1 AS cor0
----
1092
420
546
query I rowsort
SELECT DISTINCT - col1 * - col0 * - 39 FROM tab0 AS cor0
----
-132405
-315861
-80496
query I rowsort
SELECT DISTINCT - 94 AS col2 FROM tab0, tab0 AS cor0
----
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-342
SELECT - cor0.col0 + - cor0.col0 DIV col0 col1 FROM tab2 AS cor0
----
-79
-8
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-342
SELECT - cor0.col0 + - cor0.col0 / col0 col1 FROM tab2 AS cor0
----
-79
-8
-80
query I rowsort
SELECT DISTINCT - col0 * 0 + cor0.col2 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + col2 * + col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col1 + cor0.col0 * - 54 FROM tab1 AS cor0
----
-188
-3466
-4333
query I rowsort
SELECT DISTINCT cor0.col2 * col1 + 19 FROM tab1 AS cor0
----
1267
1423
589
onlyif mysql # use DIV operator for integer division
query I rowsort label-347
SELECT - col2 DIV 64 AS col1 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-347
SELECT - col2 / 64 AS col1 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT col0 + + 26 * col0 FROM tab0 AS cor0
----
2403
648
945
query I rowsort
SELECT + col2 * - col0 * + tab0.col1 + + 56 FROM tab0
----
-3339
-664062
-68056
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-350
SELECT DISTINCT - CAST( - col2 AS SIGNED ) + col2 AS col0 FROM tab1
----
108
114
192
skipif mysql # not compatible
query I rowsort label-350
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + col2 AS col0 FROM tab1
----
108
114
192
query I rowsort
SELECT - col1 * 94 AS col2 FROM tab0
----
-8084
-8554
-9118
query I rowsort
SELECT - ( + col0 + + col2 ) FROM tab0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT - col1 * + col2 + col1 AS col1 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT 52 * - 87 + - col2 AS col1 FROM tab1
----
-4578
-4581
-4620
query I rowsort
SELECT ALL - col0 + col1 + col0 * + 58 AS col1 FROM tab0 cor0
----
1454
2092
5164
onlyif mysql # use DIV operator for integer division
query I rowsort label-356
SELECT - + CAST( col1 AS SIGNED ) DIV - col0 + 18 AS col0 FROM tab0 AS cor0
----
19
20
21
skipif mysql # not compatible
query I rowsort label-356
SELECT - + CAST ( col1 AS INTEGER ) / - col0 + 18 AS col0 FROM tab0 AS cor0
----
19
20
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 * col1 col2 FROM tab2 AS cor0
----
-22831
-271518
-6727
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab2 cor2
----
3645 values hashing to b6efe6f7ec1a3daa3cc6ea9dd7d13455
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-359
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + 61 col1 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-359
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + 61 col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + 37 + + 49 + col0 FROM tab0 AS cor0
----
110
121
175
query I rowsort
SELECT - cor0.col0 * - cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 458b4c13e6825f9686b15a38663930f4
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
query I rowsort
SELECT ALL - 88 + - col1 * 53 * - col0 AS col2 FROM tab1 AS cor0
----
33832
4046
55032
query I rowsort
SELECT ALL + col2 - - col1 AS col1 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-365
SELECT col1 * + col2 + 85 DIV cor0.col1 col0 FROM tab1 AS cor0
----
1254
1407
578
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-365
SELECT col1 * + col2 + 85 / cor0.col1 col0 FROM tab1 AS cor0
----
1254
1407
578
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 38 col0 FROM tab0 cor0
----
38
38
38
query I rowsort
SELECT ALL - + col2 * col2 + + col2 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT 67 FROM tab1 cor0
----
67
67
67
query I rowsort
SELECT DISTINCT - col2 + - col2 * ( 49 ) - - col2 AS col1 FROM tab0 AS cor0
----
-1617
-4018
-49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + + col1 col1 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-371
SELECT DISTINCT ( col2 ) * CAST( - col2 AS SIGNED ) + col0 FROM tab2 AS cor0
----
-1365
-598
-722
skipif mysql # not compatible
query I rowsort label-371
SELECT DISTINCT ( col2 ) * CAST ( - col2 AS INTEGER ) + col0 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT - col0 * col2 * - ( - 65 ) AS col2 FROM tab0 AS cor0
----
-2275
-474370
-51480
query I rowsort
SELECT + cor0.col2 * + col0 + ( - col1 ) + col0 FROM tab0 AS cor0
----
-27
7296
730
query I rowsort
SELECT - 82 + col2 AS col2 FROM tab1 AS cor0
----
-25
-28
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-375
SELECT DISTINCT + col2 DIV col0 + col1 FROM tab1 AS cor0
----
10
14
44
skipif mysql # not compatible
query I rowsort label-375
SELECT DISTINCT + col2 / col0 + col1 FROM tab1 AS cor0
----
10
14
44
query I rowsort
SELECT ALL - + cor0.col0 + - col1 - ( - col0 + col0 ) AS col2 FROM tab1 AS cor0
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col0 FROM tab0 AS cor0
----
82
82
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-378
SELECT DISTINCT - + ( col0 ) - + ( + col0 ) DIV col0 AS col0 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-378
SELECT DISTINCT - + ( col0 ) - + ( + col0 ) / col0 AS col0 FROM tab0 AS cor0
----
-25
-36
-90
query I rowsort
SELECT DISTINCT + - col0 * - col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT ALL 87 * col0 + 43 * + col1 FROM tab0 cor0
----
11656
5786
7216
query I rowsort
SELECT ALL col1 * - tab0.col2 + - col1 AS col2 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT - + 89 * - col1 + + 85 + - 89 AS col0 FROM tab0 AS cor0
----
7650
8095
8629
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * - col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL ( ( col1 ) ) + 79 AS col0 FROM tab0
----
165
170
176
query I rowsort
SELECT col0 * + 89 FROM tab0
----
2136
3115
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-386
SELECT ALL + 97 DIV tab1.col0 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to da1ea41a6dc33de7ea521730073a7eee
skipif mysql # not compatible
query I rowsort label-386
SELECT ALL + 97 / tab1.col0 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to da1ea41a6dc33de7ea521730073a7eee
query I rowsort
SELECT DISTINCT - col2 + + ( + col0 ) * tab0.col2 * col1 FROM tab0
----
3394
664036
68079
query I rowsort
SELECT + tab1.col1 + + col2 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT col0 + ( - 97 * col2 + col0 ) AS col1 FROM tab1
----
-5232
-5401
-9152
onlyif mysql # use DIV operator for integer division
query I rowsort label-390
SELECT ALL + col0 DIV 64 AS col2 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-390
SELECT ALL + col0 / 64 AS col2 FROM tab2 AS cor0
----
0
1
1
query I rowsort
SELECT DISTINCT + col0 + 64 * + cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
12103
129870
192207
onlyif mysql # use DIV operator for integer division
query I rowsort label-392
SELECT - col0 DIV - col2 + - col1 AS col1 FROM tab1 AS cor0
----
-13
-26
-9
skipif mysql # not compatible
query I rowsort label-392
SELECT - col0 / - col2 + - col1 AS col1 FROM tab1 AS cor0
----
-13
-26
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + ( + 59 ) col1 FROM tab0 AS cor0
----
5074
5369
5723
query I rowsort
SELECT ALL - + col0 * cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT col0 * - col0 + + col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT - col0 * col1 + + col1 FROM tab2 AS cor0
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + cor0.col0 ) col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - 90 - 63 * cor0.col2 FROM tab2 AS cor0
----
-1728
-1791
-2484
query I rowsort
SELECT ALL + ( + col2 ) * - col0 + ( + col2 ) * + col1 + ( + col0 ) AS col2 FROM tab0 cor0
----
2070
253
97
query I rowsort
SELECT DISTINCT - 95 * col2 FROM tab1 AS cor0
----
-5130
-5415
-9120
query I rowsort
SELECT ALL + + col1 + + 48 + + col0 FROM tab2 AS cor0
----
144
185
86
query I rowsort
SELECT ( - col2 ) * col2 * - cor0.col0 FROM tab0 AS cor0
----
26136
35
598436
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-403
SELECT + ( + col2 ) * cor0.col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-403
SELECT + ( + col2 ) * cor0.col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 61 + + 0 col1 FROM tab2 AS cor0
----
-61
-61
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-405
SELECT - - cor0.col0 DIV col1 + col0 * 4 col2 FROM tab2 AS cor0
----
28
313
320
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-405
SELECT - - cor0.col0 / col1 + col0 * 4 col2 FROM tab2 AS cor0
----
28
313
320
query I rowsort
SELECT ALL - + 43 AS col0 FROM tab1 AS cor0
----
-43
-43
-43
query I rowsort
SELECT + 8 + col2 AS col2 FROM tab2 AS cor0
----
34
35
46
query I rowsort
SELECT DISTINCT + - 77 + col2 FROM tab1 cor0
----
-20
-23
19
query I rowsort
SELECT ALL - col1 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort
SELECT - col0 * col1 / - CAST ( ( col0 ) AS REAL ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - col1 + col1 * ( ( + col2 ) ) FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT - + 69 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9
query I rowsort
SELECT DISTINCT - 53 * col1 FROM tab1 cor0
----
-1378
-530
-689
onlyif mysql # use DIV operator for integer division
query I rowsort label-415
SELECT + col2 DIV - col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-415
SELECT + col2 / - col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT ALL 11 * col2 * col0 FROM tab2 AS cor0
----
2079
22308
33022
query I rowsort
SELECT + ( col1 ) + cor0.col0 * 87 FROM tab1 AS cor0
----
287
5578
6973
query I rowsort
SELECT ALL - cor0.col0 + - col2 + - 45 FROM tab1 AS cor0
----
-102
-166
-221
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + col0 col0 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-420
SELECT ALL - - 15 * col0 DIV col1 + - col2 AS col1 FROM tab0 AS cor0
----
-29
-68
4
skipif mysql # not compatible
query I rowsort label-420
SELECT ALL - - 15 * col0 / col1 + - col2 AS col1 FROM tab0 AS cor0
----
-29
-68
4
query I rowsort
SELECT col1 + + col2 * + tab2.col2 AS col2 FROM tab2
----
1461
735
760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 * - col0 col1 FROM tab1
----
-237
-5056
-6320
query I rowsort
SELECT DISTINCT + 70 * col0 AS col0 FROM tab2
----
490
5460
5530
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-424
SELECT DISTINCT col2 * CAST( 95 AS SIGNED ) * col2 AS col0 FROM tab2 AS cor0
----
137180
64220
69255
skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT col2 * CAST ( 95 AS INTEGER ) * col2 AS col0 FROM tab2 AS cor0
----
137180
64220
69255
query I rowsort
SELECT col2 * + col0 * 44 FROM tab1 AS cor0
----
160512
337920
7128
query I rowsort
SELECT ALL + + col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - 79 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c9cc9510604e093bd158ca33928acaed
query I rowsort
SELECT ALL + tab0.col2 * 9 FROM tab0
----
297
738
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-429
SELECT + cor0.col0 DIV col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-429
SELECT + cor0.col0 / col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT 84 + col2 AS col1 FROM tab0
----
117
166
85
query I rowsort
SELECT 75 * + col1 AS col0 FROM tab2 AS cor0
----
1275
2325
4425
query I rowsort
SELECT ALL 34 + + cor0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 6cc954a4feb629cbf113eafb4297ab2a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-434
SELECT + CAST( - 86 AS SIGNED ) FROM tab0
----
-86
-86
-86
skipif mysql # not compatible
query I rowsort label-434
SELECT + CAST ( - 86 AS INTEGER ) FROM tab0
----
-86
-86
-86
query I rowsort
SELECT ALL - 61 FROM tab1, tab2 AS cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1
query I rowsort
SELECT DISTINCT 39 + cor0.col2 FROM tab0, tab0 AS cor0
----
121
40
72
query I rowsort
SELECT ( + tab2.col0 ) AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL - 60 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab0 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 97b43fbe79eecd0bc6921392403b666d
query I rowsort
SELECT 90 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab0, tab0 cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8
onlyif mysql # use DIV operator for integer division
query I rowsort label-442
SELECT + + cor0.col2 + - col2 DIV + ( col1 + col1 ) AS col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-442
SELECT + + cor0.col2 + - 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 ALL ( - col0 ) * col2 col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT 98 + - ( col0 ) + 10 AS col1 FROM tab0 AS cor0
----
19
73
84
query I rowsort
SELECT ALL + 8 AS col1 FROM tab1 cor0
----
8
8
8
query I rowsort
SELECT - 47 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1457
-2773
-799
query I rowsort
SELECT + cor0.col1 + - 49 AS col2 FROM tab1 AS cor0
----
-23
-36
-39
query I rowsort
SELECT ALL - - 25 + - col0 AS col2 FROM tab2 AS cor0
----
-53
-54
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 + - cor0.col0 * - col2 * - 72 col1 FROM tab2 AS cor0
----
-13540
-145948
-216076
query I rowsort
SELECT - 41 * col2 FROM tab2 AS cor0
----
-1066
-1107
-1558
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 * col1 - - col2 col0 FROM tab2 AS cor0
----
1174
2209
667
query I rowsort
SELECT ALL + 28 AS col0 FROM tab2 AS cor0
----
28
28
28
query I rowsort
SELECT DISTINCT 26 * + col1 FROM tab2 AS cor0
----
1534
442
806
query I rowsort
SELECT - 12 * col1 FROM tab2 cor0
----
-204
-372
-708
query I rowsort
SELECT + + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col0 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - 84 + col2 * - col1 FROM tab0 AS cor0
----
-181
-2922
-7546
query I rowsort
SELECT + - col2 * + col2 AS col0 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL col1 + ( + col1 ) AS col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT + 71 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
query I rowsort
SELECT 94 AS col0 FROM tab1
----
94
94
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-462
SELECT DISTINCT + + col0 DIV - 10 + cor0.col2 FROM tab1 AS cor0
----
51
54
88
skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT + + col0 / - 10 + cor0.col2 FROM tab1 AS cor0
----
51
54
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-463
SELECT ALL + - cor0.col1 + 64 DIV + col1 FROM tab1 AS cor0
----
-24
-4
-9
skipif mysql # not compatible
query I rowsort label-463
SELECT ALL + - cor0.col1 + 64 / + col1 FROM tab1 AS cor0
----
-24
-4
-9
query I rowsort
SELECT DISTINCT 57 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 col0 FROM tab0 AS cor0
----
-8
-8
-8
query I rowsort
SELECT ALL + + 35 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1330
910
945
query I rowsort
SELECT DISTINCT + ( - col2 ) * col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT cor0.col0 + col2 * col1 AS col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT + ( + 74 ) FROM tab1 AS cor0
----
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-470
SELECT 4 + - col2 DIV + cor0.col1 FROM tab2 AS cor0
----
2
4
4
skipif mysql # not compatible
query I rowsort label-470
SELECT 4 + - col2 / + cor0.col1 FROM tab2 AS cor0
----
2
4
4
query I rowsort
SELECT ALL - col0 + + 78 * col0 AS col2 FROM tab2
----
539
6006
6083
query I rowsort
SELECT - col0 + col0 * tab1.col1 * - col1 FROM tab1
----
-13600
-2031
-6464
query I rowsort
SELECT col2 - tab2.col1 AS col0 FROM tab2
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 col1 FROM tab1
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 78 + - col2 * col0 col1 FROM tab0 AS cor0
----
-714
-7220
43
query I rowsort
SELECT ALL col0 * + col2 + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT + ( cor0.col0 ) + cor0.col2 FROM tab0 AS cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 + cor0.col1 col0 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT - cor0.col0 + + 66 AS col0 FROM tab1 cor0
----
-14
2
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 24 + - col1 col0 FROM tab2 AS cor0
----
-35
-7
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-481
SELECT DISTINCT - - CAST( 27 AS SIGNED ) DIV col0 + col0 FROM tab1 AS cor0
----
12
64
80
skipif mysql # not compatible
query I rowsort label-481
SELECT DISTINCT - - CAST ( 27 AS INTEGER ) / col0 + col0 FROM tab1 AS cor0
----
12
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT ALL ( tab0.col0 ) FROM tab0
----
24
35
89
query I rowsort
SELECT ALL cor0.col1 - - cor1.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 2f77cea6077a88e4a9b3780ac7a48644
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT 61 * + 68 - col1 AS col1 FROM tab1
----
4122
4135
4138
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-487
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-487
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT 76 + + cor0.col2 * - col1 FROM tab1 AS cor0
----
-1172
-1328
-494
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-489
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-489
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - 67 - - col0 AS col0 FROM tab0
----
-32
-43
22
query I rowsort
SELECT tab0.col1 + col1 + - ( tab0.col1 + col1 ) FROM tab0
----
0
0
0
query I rowsort
SELECT - col1 * col1 - - 2 * - col0 FROM tab0 AS cor0
----
-7444
-8459
-9479
onlyif mysql # use DIV operator for integer division
query I rowsort label-493
SELECT ALL - + cor0.col0 DIV - col0 + col0 AS col2 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-493
SELECT ALL - + cor0.col0 / - col0 + col0 AS col2 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT ALL 36 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c
query I rowsort
SELECT - col2 + col2 * ( col1 ) + col0 AS col2 FROM tab0
----
131
2829
7469
query I rowsort
SELECT DISTINCT 61 + + col2 FROM tab0
----
143
62
94
query I rowsort
SELECT + 43 FROM tab1 AS cor0
----
43
43
43
query I rowsort
SELECT - + col1 - + col2 * ( + 57 ) AS col0 FROM tab0 AS cor0
----
-154
-1967
-4765
query I rowsort
SELECT tab0.col2 + + col0 * + 40 AS col2 FROM tab0
----
1401
3642
993
query I rowsort
SELECT + 82 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-501
SELECT ALL + col0 - CAST( cor0.col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-501
SELECT ALL + col0 - CAST ( cor0.col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 + 40 AS col2 FROM tab0 AS cor0
----
129
64
75
query I rowsort
SELECT - - col2 * + col1 + col0 * + cor0.col1 FROM tab2 AS cor0
----
1054
1989
6136
query I rowsort
SELECT - col1 * - ( col1 ) AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
7
78
79
query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col1 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
1248
1404
570
query I rowsort
SELECT ALL - + col1 * + 24 + + col1 FROM tab1 AS cor0
----
-230
-299
-598
query I rowsort
SELECT ALL + col0 * - col1 * - 22 + col2 AS col0 FROM tab2 AS cor0
----
101270
29584
4801
query I rowsort
SELECT col1 * + ( - cor0.col2 ) + col1 FROM tab2 AS cor0
----
-1475
-629
-806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + 77 col0 FROM tab0 AS cor0
----
-5
44
76
query I rowsort
SELECT DISTINCT + col2 + col2 * col1 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-512
SELECT ALL + - col1 DIV - 42 + 48 + - col1 FROM tab1 AS cor0
----
22
35
38
skipif mysql # not compatible
query I rowsort label-512
SELECT ALL + - col1 / - 42 + 48 + - col1 FROM tab1 AS cor0
----
22
35
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-513
SELECT DISTINCT col1 + + CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-513
SELECT DISTINCT col1 + + CAST ( NULL AS INTEGER ) * + col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col0 + cor0.col1 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-515
SELECT DISTINCT - col1 * + 64 + cor0.col0 DIV col0 col0 FROM tab2 AS cor0
----
-1087
-1983
-3775
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT - col1 * + 64 + cor0.col0 / col0 col0 FROM tab2 AS cor0
----
-1087
-1983
-3775
query I rowsort
SELECT + col1 + 26 FROM tab0 AS cor0
----
112
117
123
onlyif mysql # use DIV operator for integer division
query I rowsort label-517
SELECT ALL - cor0.col1 DIV - col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-517
SELECT ALL - cor0.col1 / - col0 FROM tab0 AS cor0
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-518
SELECT + 66 DIV - col0 AS col2 FROM tab2 AS cor0
----
-9
0
0
skipif mysql # not compatible
query I rowsort label-518
SELECT + 66 / - col0 AS col2 FROM tab2 AS cor0
----
-9
0
0
query I rowsort
SELECT DISTINCT + 59 AS col0 FROM tab1, tab2 cor0
----
59
query I rowsort
SELECT - 33 + tab2.col2 AS col1 FROM tab2
----
-6
-7
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 col2 FROM tab1
----
-23
54
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-522
SELECT col2 * + col2 * - CAST( col1 AS SIGNED ) AS col1 FROM tab1
----
-119808
-32490
-75816
skipif mysql # not compatible
query I rowsort label-522
SELECT col2 * + col2 * - CAST ( col1 AS INTEGER ) AS col1 FROM tab1
----
-119808
-32490
-75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-523
SELECT DISTINCT - col2 DIV + tab1.col2 AS col2 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-523
SELECT DISTINCT - col2 / + tab1.col2 AS col2 FROM tab1
----
-1
query I rowsort
SELECT DISTINCT 60 AS col2 FROM tab1
----
60
query I rowsort
SELECT DISTINCT 63 * tab0.col0 * - col0 AS col1 FROM tab0
----
-36288
-499023
-77175
onlyif mysql # use DIV operator for integer division
query I rowsort label-526
SELECT ( col2 ) * col2 DIV - col2 - + col2 DIV col1 FROM tab0 cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-526
SELECT ( col2 ) * col2 / - col2 - + col2 / col1 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT 35 FROM tab0
----
35
query I rowsort
SELECT ALL - col2 + col0 AS col2 FROM tab2 cor0
----
-20
41
52
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to b8435223668db186a5012e4112253f28
query I rowsort
SELECT - col0 * col2 * col1 + + col2 FROM tab2
----
-119626
-50996
-5832
query I rowsort
SELECT col0 + 58 AS col1 FROM tab1
----
122
138
61
query I rowsort
SELECT - col2 + 23 AS col0 FROM tab1
----
-31
-34
-73
query I rowsort
SELECT DISTINCT + + col1 * - 93 + - 17 + + col0 AS col2 FROM tab0 AS cor0
----
-7991
-8391
-9003
query I rowsort
SELECT DISTINCT + - col1 * - 93 FROM tab0 AS cor0
----
7998
8463
9021
query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-26
-27
-38
query I rowsort
SELECT ALL - + ( + 73 ) + - col2 FROM tab1 AS cor0
----
-127
-130
-169
query I rowsort
SELECT DISTINCT + ( col2 ) - + cor0.col0 * col1 FROM tab2 cor0
----
-1305
-190
-4576
query I rowsort
SELECT - ( 69 ) * col0 AS col0 FROM tab1 cor0
----
-207
-4416
-5520
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-539
SELECT ALL + CAST( col1 AS SIGNED ) + + col2 FROM tab2 AS cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort label-539
SELECT ALL + CAST ( col1 AS INTEGER ) + + col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + tab2.col0 * - col0 * 98 FROM tab2
----
-4802
-596232
-611618
query I rowsort
SELECT - ( col2 ) * col2 AS col0 FROM tab0 cor0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-542
SELECT + col2 + - 56 * - col2 DIV col2 AS col0 FROM tab0
----
138
57
89
skipif mysql # not compatible
query I rowsort label-542
SELECT + col2 + - 56 * - col2 / col2 AS col0 FROM tab0
----
138
57
89
query I rowsort
SELECT ALL 38 + 99 FROM tab0
----
137
137
137
query I rowsort
SELECT ALL - ( - ( + tab0.col2 ) ) AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT ( col2 ) * col1 * - tab0.col2 + - col0 FROM tab0
----
-132
-611973
-93678
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-546
SELECT + CAST( NULL AS SIGNED ) * 60 + col1 * - col1 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-546
SELECT + CAST ( NULL AS INTEGER ) * 60 + col1 * - col1 AS col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-547
SELECT + CAST( col2 AS SIGNED ) DIV col2 + - 3 * col0 * col0 FROM tab1 AS cor0
----
-12287
-19199
-26
skipif mysql # not compatible
query I rowsort label-547
SELECT + CAST ( col2 AS INTEGER ) / col2 + - 3 * col0 * col0 FROM tab1 AS cor0
----
-12287
-19199
-26
query I rowsort
SELECT + + 87 + + 45 * - col1 AS col0 FROM tab0 AS cor0
----
-3783
-4008
-4278
query I rowsort
SELECT + col1 + + col0 * col2 AS col2 FROM tab0 cor0
----
132
7389
878
query I rowsort
SELECT - cor0.col0 * 56 + + col2 + ( col1 ) FROM tab2 AS cor0
----
-334
-4283
-4369
query I rowsort
SELECT col0 + - col1 * - col2 * - ( + col1 ) AS col1 FROM tab0 cor0
----
-244044
-678953
-9374
query I rowsort
SELECT DISTINCT 38 * - col0 AS col1 FROM tab0 AS cor0
----
-1330
-3382
-912
query I rowsort
SELECT - col0 * + col0 * col0 AS col0 FROM tab1 cor0
----
-262144
-27
-512000
query I rowsort
SELECT ALL 56 * - col2 - + col1 * col1 FROM tab1 AS cor0
----
-3292
-3700
-5545
query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) * + col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT - 74 * col1 FROM tab1 AS cor0
----
-1924
-740
-962
onlyif mysql # use DIV operator for integer division
query I rowsort label-557
SELECT ALL + 99 DIV col2 + + col2 * ( - col2 * 46 ) FROM tab1 AS cor0
----
-134135
-149453
-423935
skipif mysql # not compatible
query I rowsort label-557
SELECT ALL + 99 / col2 + + col2 * ( - col2 * 46 ) FROM tab1 AS cor0
----
-134135
-149453
-423935
query I rowsort
SELECT + col1 + col2 * + 38 FROM tab0 cor0
----
1340
135
3207
query I rowsort
SELECT ALL + + 99 AS col1 FROM tab0 AS cor0
----
99
99
99
query I rowsort
SELECT ALL - 87 * col2 AS col1 FROM tab1 AS cor0
----
-4698
-4959
-8352
query I rowsort
SELECT cor0.col0 * - col0 - - col2 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT col0 * 40 * - col0 AS col2 FROM tab2 AS cor0
----
-1960
-243360
-249640
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-563
SELECT cor0.col0 + - CAST( 10 AS SIGNED ) + col2 * + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
1318
1397
624
skipif mysql # not compatible
query I rowsort label-563
SELECT cor0.col0 + - CAST ( 10 AS INTEGER ) + col2 * + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
1318
1397
624
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 + + col0 col2 FROM tab0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-565
SELECT DISTINCT tab0.col0 * + tab0.col2 + ( - ( col1 ) ) DIV col2 + + 62 AS col0 FROM tab0
----
0
7359
852
skipif mysql # not compatible
query I rowsort label-565
SELECT DISTINCT tab0.col0 * + tab0.col2 + ( - ( col1 ) ) / col2 + + 62 AS col0 FROM tab0
----
0
7359
852
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-566
SELECT + cor0.col1 * - ( - 53 ) + + col2 + + CAST( col2 AS SIGNED ) * + col0 FROM tab0 cor0
----
12203
5177
5383
skipif mysql # not compatible
query I rowsort label-566
SELECT + cor0.col1 * - ( - 53 ) + + col2 + + CAST ( col2 AS INTEGER ) * + col0 FROM tab0 cor0
----
12203
5177
5383
query I rowsort
SELECT col1 * 90 + col2 AS col2 FROM tab2 AS cor0
----
1568
2817
5336
query I rowsort
SELECT DISTINCT - 4 FROM tab0 AS cor0
----
-4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-569
SELECT col0 * - col0 + - col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-569
SELECT col0 * - col0 + - col0 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - 25 FROM tab1 AS cor0
----
-25
-25
-25
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-571
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-571
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col0 + - col1 col2 FROM tab1
----
-23
54
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-573
SELECT + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-573
SELECT + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 + + col0 * col0 AS col1 FROM tab2 cor0
----
56
6162
6320
query I rowsort
SELECT ALL + col1 * + ( + cor0.col2 ) AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - + col2 * + 40 * 71 AS col1 FROM tab2 cor0
----
-107920
-73840
-76680
query I rowsort
SELECT DISTINCT col2 * - col1 + col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT ALL - 79 + + col2 AS col0 FROM tab1
----
-22
-25
17
query I rowsort
SELECT DISTINCT col0 * - col1 * + col1 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT DISTINCT - - col2 + + col1 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL col2 + col0 + 95 FROM tab2 AS cor0
----
129
199
212
query I rowsort
SELECT DISTINCT + - col2 * - 67 AS col1 FROM tab2 AS cor0
----
1742
1809
2546
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 * col2 col2 FROM tab0 AS cor0
----
26136
35
598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-584
SELECT ALL cor0.col2 DIV + col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-584
SELECT ALL cor0.col2 / + col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT - - col1 * - 72 FROM tab2 AS cor0
----
-1224
-2232
-4248
query I rowsort
SELECT DISTINCT - col0 + - 73 * + col2 + + col0 AS col0 FROM tab1 AS cor0
----
-3942
-4161
-7008
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 + + cor0.col1 + - col1 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + - col1 * col0 + - col2 + col1 AS col1 FROM tab1 AS cor0
----
-106
-1123
-687
query I rowsort
SELECT col2 * tab1.col2 * col2 + col0 AS col1 FROM tab1
----
157467
185257
884816
query I rowsort
SELECT 21 + 22 + col2 FROM tab0
----
125
44
76
query I rowsort
SELECT col0 + - 92 - tab0.col0 FROM tab0
----
-92
-92
-92
query I rowsort
SELECT DISTINCT tab2.col1 AS col0 FROM tab2, tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT col2 * - col2 + - col0 AS col1 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT - - col0 + col1 * + col1 * + col1 FROM tab1 AS cor0
----
1064
17579
2277
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 col1 FROM tab0 AS cor0
----
-66
-66
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + - col1 - + col1 col2 FROM tab1 AS cor0
----
2
37
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-598
SELECT + col1 + + col1 DIV + col0 - + cor0.col1 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-598
SELECT + col1 + + col1 / + col0 - + cor0.col1 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT - 44 * col2 FROM tab0 cor0
----
-1452
-3608
-44
query I rowsort
SELECT + col1 * col2 + - cor0.col0 FROM tab0 AS cor0
----
2814
62
7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-601
SELECT col0 + + col1 DIV col2 AS col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-601
SELECT col0 + + col1 / col2 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL 9 * - col1 AS col2 FROM tab2 AS cor0
----
-153
-279
-531
query I rowsort
SELECT DISTINCT - col0 * col2 + + 97 FROM tab2 AS cor0
----
-1931
-2905
-92
onlyif mysql # use DIV operator for integer division
query I rowsort label-604
SELECT DISTINCT - col0 DIV col2 + - ( col0 ) * col0 + col2 FROM tab1 AS cor0
----
-4040
-6304
45
skipif mysql # not compatible
query I rowsort label-604
SELECT DISTINCT - col0 / col2 + - ( col0 ) * col0 + col2 FROM tab1 AS cor0
----
-4040
-6304
45
query I rowsort
SELECT + + col1 * - col2 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT + - col2 * col1 + - ( + 54 ) AS col2 FROM tab2 AS cor0
----
-1588
-700
-891
query I rowsort
SELECT 53 * + col2 + col1 AS col1 FROM tab0
----
150
1835
4437
query I rowsort
SELECT - col2 + + cor0.col2 FROM tab2 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-609
SELECT DISTINCT + 78 * col0 + col1 DIV + 95 FROM tab2 AS cor0
----
546
6084
6162
skipif mysql # not compatible
query I rowsort label-609
SELECT DISTINCT + 78 * col0 + col1 / + 95 FROM tab2 AS cor0
----
546
6084
6162
query I rowsort
SELECT + + col0 * + col1 + - 88 FROM tab1 AS cor0
----
-10
552
952
query I rowsort
SELECT ALL 37 * cor0.col1 + - col2 * col0 FROM tab1 AS cor0
----
-3278
-7199
800
query I rowsort
SELECT DISTINCT + ( + col2 ) * ( + col2 ) AS col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - col2 * col0 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-614
SELECT ALL - 54 DIV cor0.col2 FROM tab0 AS cor0
----
-1
-54
0
skipif mysql # not compatible
query I rowsort label-614
SELECT ALL - 54 / cor0.col2 FROM tab0 AS cor0
----
-1
-54
0
query I rowsort
SELECT DISTINCT - col0 - + col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT 14 + cor0.col0 * col0 FROM tab0 AS cor0
----
1239
590
7935
query I rowsort
SELECT ALL + + 27 AS col2 FROM tab0 AS cor0
----
27
27
27
query I rowsort
SELECT col2 + - col1 AS col0 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT - - col2 + - col2 + + col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-620
SELECT + 92 DIV cor0.col1 + + col1 AS col2 FROM tab0 AS cor0
----
87
92
97
skipif mysql # not compatible
query I rowsort label-620
SELECT + 92 / cor0.col1 + + col1 AS col2 FROM tab0 AS cor0
----
87
92
97
query I rowsort
SELECT DISTINCT + col2 * - col1 + + 85 FROM tab2 AS cor0
----
-1449
-561
-752
query I rowsort
SELECT 6 * col2 + 39 * - 5 * col1 FROM tab0 AS cor0
----
-16572
-17253
-18909
query I rowsort
SELECT ALL + + 47 AS col2 FROM tab2 cor0
----
47
47
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-624
SELECT - col2 + - col2 * ( - col2 ) DIV + col1 + - col1 FROM tab0 AS cor0
----
-100
-107
-98
skipif mysql # not compatible
query I rowsort label-624
SELECT - col2 + - col2 * ( - col2 ) / + col1 + - col1 FROM tab0 AS cor0
----
-100
-107
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-625
SELECT ALL 16 + - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-625
SELECT ALL 16 + - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-626
SELECT DISTINCT col2 DIV col0 AS col1 FROM tab2 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-626
SELECT DISTINCT col2 / col0 AS col1 FROM tab2 AS cor0
----
0
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-627
SELECT col1 DIV + col0 + - col1 FROM tab1 AS cor0
----
-10
-13
-18
skipif mysql # not compatible
query I rowsort label-627
SELECT col1 / + col0 + - col1 FROM tab1 AS cor0
----
-10
-13
-18
onlyif mysql # use DIV operator for integer division
query I rowsort label-628
SELECT + col1 + 90 DIV + col0 FROM tab0 AS cor0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-628
SELECT + col1 + 90 / + col0 FROM tab0 AS cor0
----
89
92
99
query I rowsort
SELECT - - col2 + - col2 + - ( col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT cor0.col1 * col0 + + 6 * - col2 FROM tab1 AS cor0
----
-246
298
464
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - ( col2 ) col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - col2 * col0 + col0 + - col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT - - cor0.col2 + cor0.col1 * + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 564dfe9f90d68715248af08e36c5b0c2
query I rowsort
SELECT - col0 * - tab1.col2 AS col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT + col0 * + 11 * col0 AS col0 FROM tab2 cor0
----
539
66924
68651
query I rowsort
SELECT DISTINCT + 92 AS col1 FROM tab2 cor0
----
92
query I rowsort
SELECT DISTINCT + - col0 + + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL + col0 * col0 * + cor0.col1 FROM tab1 AS cor0
----
234
40960
83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 * + col2 col0 FROM tab2
----
-1534
-646
-837
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to deaaa983f771be544ffdc26f04a18657
query I rowsort
SELECT ALL - ( 43 ) AS col2 FROM tab0 AS cor0
----
-43
-43
-43
query I rowsort
SELECT ALL + 90 + ( tab0.col1 ) + col2 AS col2 FROM tab0
----
188
209
263
query I rowsort
SELECT + 19 + col0 * 65 FROM tab2 AS cor0
----
474
5089
5154
query I rowsort
SELECT ALL + col1 * ( col1 ) - col0 AS col2 FROM tab2
----
210
3403
954
query I rowsort
SELECT ALL + 96 - + col2 FROM tab2
----
58
69
70
query I rowsort
SELECT ALL - 74 AS col1 FROM tab2 AS cor0
----
-74
-74
-74
query I rowsort
SELECT ALL + - cor1.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT - - cor0.col0 + - col0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col1 * - tab2.col2 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT + col1 * col2 + + col2 AS col2 FROM tab2 cor0
----
1560
684
864
query I rowsort
SELECT ALL col1 * + col2 * col1 FROM tab1
----
16224
36504
5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 * col0 col1 FROM tab1
----
4096
6400
9
query I rowsort
SELECT DISTINCT - col1 * col1 * col1 FROM tab0
----
-636056
-753571
-912673
query I rowsort
SELECT ALL + + col2 * + col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + tab1.col0 AS col1 FROM tab1, tab0, tab2 cor0
----
3
64
80
query I rowsort
SELECT ALL - ( + tab2.col0 * col1 ) + col2 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT ALL 71 FROM tab1, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
onlyif mysql # use DIV operator for integer division
query I rowsort label-658
SELECT - + col2 + col1 DIV col2 col2 FROM tab0 AS cor0
----
-31
-81
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-658
SELECT - + col2 + col1 / col2 col2 FROM tab0 AS cor0
----
-31
-81
96
query I rowsort
SELECT 2 * col2 AS col0 FROM tab0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-660
SELECT 47 DIV col1 AS col1 FROM tab1
----
1
3
4
skipif mysql # not compatible
query I rowsort label-660
SELECT 47 / col1 AS col1 FROM tab1
----
1
3
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 * ( + col0 * + col0 + col1 ) col2 FROM tab0
----
-126912
-63552
-769152
query I rowsort
SELECT DISTINCT ( col0 + - col0 ) AS col1 FROM tab2
----
0
query I rowsort
SELECT - 3 + + col2 * col2 + tab0.col0 * col0 AS col0 FROM tab0
----
1223
14642
1662
query I rowsort
SELECT - 55 + 46 FROM tab1
----
-9
-9
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-665
SELECT ALL - tab1.col0 + + 26 DIV - col2 AS col0 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-665
SELECT ALL - tab1.col0 + + 26 / - col2 AS col0 FROM tab1
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-666
SELECT DISTINCT CAST( 40 AS SIGNED ) + col0 * col1 * col0 col1 FROM tab2
----
106137
1559
358996
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-666
SELECT DISTINCT CAST ( 40 AS INTEGER ) + col0 * col1 * col0 col1 FROM tab2
----
106137
1559
358996
query I rowsort
SELECT DISTINCT 3 + - ( col2 ) FROM tab0
----
-30
-79
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-668
SELECT - col1 + - col1 DIV cor0.col1 + - col0 AS col1 FROM tab0 AS cor0
----
-111
-133
-181
skipif mysql # not compatible
query I rowsort label-668
SELECT - col1 + - col1 / cor0.col1 + - col0 AS col1 FROM tab0 AS cor0
----
-111
-133
-181
query I rowsort
SELECT ALL - 27 + col0 FROM tab1 AS cor0
----
-24
37
53
query I rowsort
SELECT 76 AS col2 FROM tab2 AS cor0
----
76
76
76
query I rowsort
SELECT ALL - + col0 + - cor0.col1 * col0 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT - - col0 * col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT ( + cor0.col2 ) + - cor0.col1 FROM tab1 AS cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 + + col0 * col0 col0 FROM tab1 AS cor0
----
4134
47
6438
query I rowsort
SELECT DISTINCT + col0 - - col0 * col2 AS col1 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL ( col2 ) + cor0.col0 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - tab1.col0 * col0 - - col2 * + col2 FROM tab1
----
-847
2816
2907
query I rowsort
SELECT ALL + col1 + col2 * col0 FROM tab1
----
188
3658
7693
query I rowsort
SELECT + tab2.col1 + col0 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT + tab1.col2 * tab1.col1 - + col0 FROM tab1
----
1168
1401
506
query I rowsort
SELECT + tab0.col1 + + tab0.col0 FROM tab0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-682
SELECT ALL - col1 DIV - col0 - - col2 AS col1 FROM tab2
----
26
31
38
skipif mysql # not compatible
query I rowsort label-682
SELECT ALL - col1 / - col0 - - col2 AS col1 FROM tab2
----
26
31
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-683
SELECT col0 DIV col0 + col1 * - col0 * tab2.col0 FROM tab2
----
-106096
-1518
-358955
skipif mysql # not compatible
query I rowsort label-683
SELECT col0 / col0 + col1 * - col0 * tab2.col0 FROM tab2
----
-106096
-1518
-358955
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col1
----
query I rowsort
SELECT ALL - tab1.col1 + + col1 * + col1 * col1 AS col2 FROM tab1
----
17550
2184
990
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 col0 FROM tab0
----
1
1089
6724
query I rowsort
SELECT DISTINCT col0 + col0 + col1 AS col2 FROM tab2
----
175
215
45
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col2 * col1 + col1 AND ( NULL )
----
query I rowsort
SELECT tab2.col2 + col0 * - col1 + col1 AS col1 FROM tab2
----
-1288
-159
-4517
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 col0 FROM tab1
----
162
3648
7680
query III rowsort
SELECT * FROM tab1 WHERE - col1 * + col1 + col0 BETWEEN col1 AND ( - col2 )
----
query I rowsort
SELECT ALL tab2.col0 FROM tab2 WHERE NOT NULL <> - col2 * + col1
----
query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE NOT ( col2 ) <> ( NULL )
----
query I rowsort
SELECT ALL + col0 + - col2 * col1 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT + col1 * col2 + col2 AS col2 FROM tab2
----
1560
684
864
query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT BETWEEN + col0 AND - col2 * col1
----
query I rowsort
SELECT ALL + col1 * + tab0.col0 * + col0 + col0 AS col2 FROM tab0
----
118860
49560
720900
query I rowsort
SELECT DISTINCT - tab2.col2 + + col0 FROM tab2
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-699
SELECT ALL - col0 * col2 + col2 DIV + col0 col0 FROM tab1
----
-144
-3648
-7679
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-699
SELECT ALL - col0 * col2 + col2 / + col0 col0 FROM tab1
----
-144
-3648
-7679
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 / - col0 IN ( + col1 + - col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col0 * + col2 ) BETWEEN NULL AND NULL
----
query I rowsort
SELECT col0 * + cor0.col1 + + col2 * - col0 FROM tab2 AS cor0
----
-1659
2574
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-703
SELECT col1 DIV - col1 + + col1 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-703
SELECT col1 / - col1 + + col1 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT + col1 + - col2 AS col1 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT + col0 / + col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col1 + cor0.col2 )
----
query I rowsort
SELECT ALL + col1 * + tab1.col1 AS col2 FROM tab1
----
100
169
676
query I rowsort
SELECT DISTINCT col2 * - tab1.col1 + - col1 AS col0 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT - 58 * - 58 + + col1 AS col2 FROM tab1 AS cor0
----
3374
3377
3390
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-709
SELECT ALL CAST( ( col1 ) AS SIGNED ) + col1 AS col0 FROM tab2 AS cor0
----
118
34
62
skipif mysql # not compatible
query I rowsort label-709
SELECT ALL CAST ( ( col1 ) AS INTEGER ) + col1 AS col0 FROM tab2 AS cor0
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col2 FROM tab2 AS cor0
----
65
65
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-711
SELECT ALL + - ( - col2 ) + + cor0.col2 * + col1 + - col1 DIV + col0 FROM tab1 AS cor0
----
1344
1450
627
skipif mysql # not compatible
query I rowsort label-711
SELECT ALL + - ( - col2 ) + + cor0.col2 * + col1 + - col1 / + col0 FROM tab1 AS cor0
----
1344
1450
627
query I rowsort
SELECT + - ( col0 ) * + col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - cor0.col1 * ( col2 ) AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - + 96 * col1 + + cor0.col2 + + 98 * + col2 FROM tab2 AS cor0
----
-303
-3090
2130
query I rowsort
SELECT DISTINCT 71 * ( - col0 ) FROM tab0 AS cor0
----
-1704
-2485
-6319
query I rowsort
SELECT DISTINCT 32 * + 7 + + col2 + 18 AS col1 FROM tab2 AS cor0
----
268
269
280
query I rowsort
SELECT + 16 + col0 * - col0 FROM tab1 AS cor0
----
-4080
-6384
7
query I rowsort
SELECT DISTINCT - 76 FROM tab0 AS cor0
----
-76
query I rowsort
SELECT - + cor0.col1 + 87 AS col1 FROM tab2 AS cor0
----
28
56
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-720
SELECT + CAST( + col0 AS SIGNED ) + col0 + col2 FROM tab2 AS cor0
----
182
196
41
skipif mysql # not compatible
query I rowsort label-720
SELECT + CAST ( + col0 AS INTEGER ) + col0 + col2 FROM tab2 AS cor0
----
182
196
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-721
SELECT DISTINCT col2 * - 23 - col0 DIV - tab0.col0 FROM tab0
----
-1885
-22
-758
skipif mysql # not compatible
query I rowsort label-721
SELECT DISTINCT col2 * - 23 - col0 / - tab0.col0 FROM tab0
----
-1885
-22
-758
onlyif mysql # use DIV operator for integer division
query I rowsort label-722
SELECT ALL + col1 + + col2 DIV + col2 - + tab1.col2 AS col2 FROM tab1
----
-27
-46
-82
skipif mysql # not compatible
query I rowsort label-722
SELECT ALL + col1 + + col2 / + col2 - + tab1.col2 AS col2 FROM tab1
----
-27
-46
-82
query I rowsort
SELECT ALL tab2.col2 + col1 - - 59 AS col1 FROM tab2
----
114
117
144
query I rowsort
SELECT - tab2.col2 * - col2 - col0 * + col2 FROM tab2
----
-1352
-1558
540
query I rowsort
SELECT DISTINCT + 28 + 49 FROM tab1 AS cor0
----
77
query I rowsort
SELECT - col0 * + col1 * ( + col1 * - ( + tab1.col1 ) ) FROM tab1
----
175760
52728
64000
query I rowsort
SELECT DISTINCT + ( - col2 ) + col0 FROM tab1
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 88 - - col1 * + col1 col0 FROM tab0
----
14964
16289
17945
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-729
SELECT + CAST( NULL AS DECIMAL ) + 81 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-729
SELECT + CAST ( NULL AS REAL ) + 81 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 79 * + tab0.col2 * ( 29 ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 9b96a35acb923d7754def28a41035236
onlyif mysql # use DIV operator for integer division
query I rowsort label-731
SELECT + ( 86 ) * col0 + cor0.col1 DIV cor0.col2 FROM tab1 AS cor0
----
258
5504
6880
skipif mysql # not compatible
query I rowsort label-731
SELECT + ( 86 ) * col0 + cor0.col1 / cor0.col2 FROM tab1 AS cor0
----
258
5504
6880
query I rowsort
SELECT ALL col1 + - cor0.col0 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT col1 + - 53 FROM tab2
----
-22
-36
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-734
SELECT + col2 * 82 * col2 + + col1 + CAST( NULL AS SIGNED ) / + col2 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-734
SELECT + col2 * 82 * col2 + + col1 + CAST ( NULL AS INTEGER ) / + col2 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * 0 + - col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL + 62 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
query I rowsort
SELECT ALL + tab1.col2 + col2 AS col0 FROM tab1
----
108
114
192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col1 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - col1 + 24 * col2 FROM tab2 AS cor0
----
565
617
895
query I rowsort
SELECT DISTINCT - col1 * + 48 + col2 FROM tab1 cor0
----
-1194
-423
-528
query I rowsort
SELECT ALL - cor0.col2 * + 42 AS col2 FROM tab1 AS cor0
----
-2268
-2394
-4032
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * - col2 col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + + cor0.col1 - 98 AS col2 FROM tab1 AS cor0
----
-72
-85
-88
query I rowsort
SELECT ALL + col1 * + cor0.col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + col1 * 34 * 85 + - col2 AS col2 FROM tab0
----
248507
262908
280329
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 3eea7cef970c8ff51d71b8a23ee129bf
query I rowsort
SELECT ALL + cor0.col0 * tab0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 7bf5e0e3ec1be8bea20f7ba84b6c99c3
query I rowsort
SELECT ALL - 32 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6
onlyif mysql # use DIV operator for integer division
query I rowsort label-749
SELECT - col0 DIV ( col1 ) AS col1 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-749
SELECT - col0 / ( col1 ) AS col1 FROM tab1
----
-6
-6
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-750
SELECT DISTINCT col2 DIV + col1 + - col0 * + tab2.col1 * col1 FROM tab2
----
-22829
-271518
-6727
skipif mysql # not compatible
query I rowsort label-750
SELECT DISTINCT col2 / + col1 + - col0 * + tab2.col1 * col1 FROM tab2
----
-22829
-271518
-6727
query I rowsort
SELECT DISTINCT col0 * col1 + cor0.col2 AS col1 FROM tab0 cor0
----
2097
3396
8181
query I rowsort
SELECT + col1 * 72 FROM tab1 AS cor0
----
1872
720
936
query I rowsort
SELECT ALL + col0 + 84 FROM tab1 AS cor0
----
148
164
87
query I rowsort
SELECT DISTINCT - - col1 - 27 AS col0 FROM tab2 AS cor0
----
-10
32
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col2 * + col1 col1 FROM tab0 cor0
----
-194
-2924
-7553
query I rowsort
SELECT ALL - col1 * + ( + col1 ) AS col2 FROM tab0
----
-7396
-8281
-9409
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 750b3c1b743e18f68d402d034647fcf2
query I rowsort
SELECT + - col2 * 73 * + col2 AS col2 FROM tab1 AS cor0
----
-212868
-237177
-672768
query I rowsort
SELECT DISTINCT - + col1 * - 37 + col0 AS col0 FROM tab1 AS cor0
----
434
561
965
query I rowsort
SELECT + 10 * + col0 + - col1 AS col1 FROM tab2 AS cor0
----
39
721
773
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-761
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 + col0 * col1 * cor0.col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-761
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 + col0 * col1 * cor0.col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - - ( + 53 ) * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1378
-1431
-2014
query I rowsort
SELECT ALL - 78 AS col0 FROM tab0 cor0
----
-78
-78
-78
query I rowsort
SELECT + 30 + - col1 FROM tab0 AS cor0
----
-56
-61
-67
query I rowsort
SELECT - + col2 * col2 + col0 AS col2 FROM tab1 cor0
----
-2913
-3185
-9136
query I rowsort
SELECT - 47 * col2 + - col0 * - col0 AS col0 FROM tab1 AS cor0
----
-2529
1417
1888
query I rowsort
SELECT DISTINCT - ( + col1 ) * col0 FROM tab2 cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 * col2 col2 FROM tab2
----
-416
-432
-608
query I rowsort
SELECT DISTINCT + - col1 + cor0.col1 * - ( col1 + col1 ) * - col1 FROM tab2 AS cor0
----
410699
59551
9809
query I rowsort
SELECT - cor0.col1 * - cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - col2 * + col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT + col2 * col2 + - 59 AS col2 FROM tab0 AS cor0
----
-58
1030
6665
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) + col0 col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + col1 + + col1 AS col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT + + col0 * + col2 + cor0.col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT + col0 * 73 AS col1 FROM tab0 AS cor0
----
1752
2555
6497
query I rowsort
SELECT DISTINCT - col1 * + 65 - col0 FROM tab2 AS cor0
----
-1184
-2022
-3913
query I rowsort
SELECT DISTINCT - col1 + - 28 FROM tab0 AS cor0
----
-114
-119
-125
query I rowsort
SELECT DISTINCT + cor0.col1 - 40 AS col0 FROM tab0 cor0
----
46
51
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * ( cor0.col1 * + col0 ) col0 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-781
SELECT + 81 * + col0 + - CAST( NULL AS SIGNED ) / - 13 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-781
SELECT + 81 * + col0 + - CAST ( NULL AS INTEGER ) / - 13 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT 42 + col2 AS col1 FROM tab0
----
124
43
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-784
SELECT - col1 DIV col0 + + col1 AS col1 FROM tab0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-784
SELECT - col1 / col0 + + col1 AS col1 FROM tab0
----
83
90
95
query I rowsort
SELECT DISTINCT 4 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
4
query I rowsort
SELECT col0 * + cor0.col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT 81 AS col0 FROM tab0 cor0
----
81
81
81
query I rowsort
SELECT - 51 * - col2 + + 2 FROM tab0 AS cor0
----
1685
4184
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-789
SELECT cor0.col0 + - col1 DIV 57 AS col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-789
SELECT cor0.col0 + - col1 / 57 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT 91 * - cor0.col0 FROM tab1 AS cor0
----
-273
-5824
-7280
query I rowsort
SELECT - col0 + - 41 * + col1 FROM tab1 AS cor0
----
-1069
-474
-613
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + ( + col1 ) + col2 col1 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT col2 * - col0 + col2 * cor0.col0 * col1 AS col0 FROM tab2 cor0
----
117624
48032
5670
query I rowsort
SELECT + 49 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197
query I rowsort
SELECT - ( - cor0.col0 ) * col0 - - col2 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT - ( col1 ) * cor0.col1 * cor0.col2 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT DISTINCT + ( + col2 + - col2 ) AS col1 FROM tab2
----
0
query I rowsort
SELECT DISTINCT ( - col2 ) * col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + - ( - col0 ) + col0 * + col1 AS col2 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT + 18 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1062
306
558
query I rowsort
SELECT - + 76 FROM tab0 AS cor0
----
-76
-76
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col1 FROM tab0, tab1 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT + 2 + + col2 * col0 FROM tab0 AS cor0
----
37
7300
794
onlyif mysql # use DIV operator for integer division
query I rowsort label-804
SELECT + - 88 DIV + col1 AS col2 FROM tab2 AS cor0
----
-1
-2
-5
skipif mysql # not compatible
query I rowsort label-804
SELECT + - 88 / + col1 AS col2 FROM tab2 AS cor0
----
-1
-2
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) + - col0 + 30 col1 FROM tab1
----
-44
-63
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-806
SELECT ALL - ( - col1 ) DIV - tab1.col2 + 19 + + col1 * col1 AS col2 FROM tab1
----
119
188
695
skipif mysql # not compatible
query I rowsort label-806
SELECT ALL - ( - col1 ) / - tab1.col2 + 19 + + col1 * col1 AS col2 FROM tab1
----
119
188
695
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 * col2 + col2 * ( 68 * + col1 ) col1 FROM tab1
----
41610
89664
98172
onlyif mysql # use DIV operator for integer division
query I rowsort label-808
SELECT DISTINCT - - tab0.col0 DIV - 17 AS col0 FROM tab0, tab1, tab1 cor0
----
-1
-2
-5
skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT - - tab0.col0 / - 17 AS col0 FROM tab0, tab1, tab1 cor0
----
-1
-2
-5
query I rowsort
SELECT + ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT 8 * + col2 FROM tab0
----
264
656
8
query I rowsort
SELECT ALL col1 + - 8 AS col2 FROM tab1
----
18
2
5
query I rowsort
SELECT DISTINCT + 56 * 25 FROM tab2
----
1400
query I rowsort
SELECT 18 * ( + col1 ) AS col2 FROM tab1
----
180
234
468
query I rowsort
SELECT DISTINCT ( col0 ) * + 87 AS col2 FROM tab0 AS cor0
----
2088
3045
7743
query I rowsort
SELECT cor0.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # use DIV operator for integer division
query I rowsort label-816
SELECT + col2 + col0 * + ( cor0.col2 ) + + col0 DIV + ( col0 + + col0 ) AS col1 FROM tab0 AS cor0
----
36
7380
825
skipif mysql # not compatible
query I rowsort label-816
SELECT + col2 + col0 * + ( cor0.col2 ) + + col0 / + ( col0 + + col0 ) AS col1 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT + + 52 * + col2 AS col0 FROM tab1 AS cor0
----
2808
2964
4992
query I rowsort
SELECT + + col2 + col0 + + col0 AS col0 FROM tab0 AS cor0
----
260
71
81
query I rowsort
SELECT DISTINCT + 6 * col1 AS col1 FROM tab2 AS cor0
----
102
186
354
query I rowsort
SELECT ALL + cor0.col0 FROM tab2, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
onlyif mysql # use DIV operator for integer division
query I rowsort label-821
SELECT ALL - col0 DIV + col2 FROM tab1 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-821
SELECT ALL - col0 / + col2 FROM tab1 cor0
----
-1
0
0
query I rowsort
SELECT - col0 * tab0.col0 AS col1 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT ALL col0 * col2 * 22 - col0 AS col1 FROM tab0
----
160467
17400
735
query I rowsort
SELECT DISTINCT 86 * + col0 * + col1 + col0 - col2 FROM tab0
----
177495
292004
696521
query I rowsort
SELECT DISTINCT + 62 * - col1 AS col2 FROM tab2
----
-1054
-1922
-3658
query I rowsort
SELECT ALL + + col1 - + 19 FROM tab0 AS cor0
----
67
72
78
query I rowsort
SELECT - cor0.col2 + - 24 * + col1 FROM tab2 AS cor0
----
-1442
-446
-771
query I rowsort
SELECT ALL - - col2 * col1 + col0 * + col2 FROM tab0 AS cor0
----
132
14760
3630
query I rowsort
SELECT DISTINCT + + cor0.col0 FROM tab0, tab2, tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - tab1.col2 * - col1 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-831
SELECT - 5 DIV + cor0.col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to a46f44f30b2183508f32c16a79479cd9
skipif mysql # not compatible
query I rowsort label-831
SELECT - 5 / + cor0.col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to a46f44f30b2183508f32c16a79479cd9
query I rowsort
SELECT DISTINCT + 89 * col1 AS col2 FROM tab2
----
1513
2759
5251
query I rowsort
SELECT ALL tab2.col1 + + col2 - - 81 FROM tab2
----
136
139
166
query I rowsort
SELECT 5 AS col0 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7
query I rowsort
SELECT - 48 AS col2 FROM tab2 AS cor0
----
-48
-48
-48
query I rowsort
SELECT ALL + ( cor0.col2 ) * col2 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-837
SELECT DISTINCT + CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-838
SELECT ( col2 ) * col0 DIV 94 FROM tab2 AS cor0
----
2
21
31
skipif mysql # not compatible
query I rowsort label-838
SELECT ( col2 ) * col0 / 94 FROM tab2 AS cor0
----
2
21
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 35 * - 14 * - col0 + + col0 + - 15 col1 FROM tab2 AS cor0
----
-3438
-38157
-38646
query I rowsort
SELECT DISTINCT 40 * + col2 FROM tab2 AS cor0
----
1040
1080
1520
query I rowsort
SELECT - 54 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342
query I rowsort
SELECT ALL 98 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
query I rowsort
SELECT - 58 * 90 AS col0 FROM tab2 AS cor0
----
-5220
-5220
-5220
query I rowsort
SELECT + cor0.col1 FROM tab1, tab0 cor0 CROSS JOIN tab2
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT + 77 FROM tab2 cor0
----
77
77
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-846
SELECT CAST( - 39 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-39
-39
-39
skipif mysql # not compatible
query I rowsort label-846
SELECT CAST ( - 39 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-39
-39
-39
query I rowsort
SELECT DISTINCT 10 + cor0.col0 FROM tab2 AS cor0
----
17
88
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col0 AS REAL ) + + cor0.col0 col0 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT 63 * + 18 AS col2 FROM tab0 AS cor0
----
1134
1134
1134
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL col0 + tab0.col0 FROM tab0
----
178
48
70
query I rowsort
SELECT col1 + + col2 + col1 FROM tab1
----
106
122
77
query I rowsort
SELECT ALL - col2 + - col2 * col1 FROM tab1
----
-1344
-1458
-627
query I rowsort
SELECT ALL col0 + + 57 - 52 AS col1 FROM tab2 AS cor0
----
12
83
84
query I rowsort
SELECT 48 + tab0.col1 + tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 61260738adb65402c89de7b60d7af5d1
query I rowsort
SELECT ALL col0 + 95 * col0 FROM tab1
----
288
6144
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col0 + + col0 col2 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-858
SELECT DISTINCT col2 * - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-858
SELECT DISTINCT col2 * - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 9 col0 FROM tab0 AS cor0
----
216
315
801
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-860
SELECT DISTINCT col2 / - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-860
SELECT DISTINCT col2 / - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 89 * + col1 + + col1 col2 FROM tab1 cor0
----
111085
124982
50740
query I rowsort
SELECT DISTINCT - col2 + col2 * - col0 * + col2 FROM tab1 AS cor0
----
-207993
-737376
-8802
query I rowsort
SELECT ALL + cor0.col2 * 42 * cor0.col0 FROM tab1 AS cor0
----
153216
322560
6804
query I rowsort
SELECT - col2 * 73 + - col0 AS col1 FROM tab1 AS cor0
----
-3945
-4225
-7088
query I rowsort
SELECT + - col1 * + cor0.col2 + col1 AS col2 FROM tab2 cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT ( cor0.col1 ) + + col0 * + col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
106114
1550
359015
query I rowsort
SELECT ALL + + ( col1 ) AS col1 FROM tab2 cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-868
SELECT ALL + col0 DIV + 87 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-868
SELECT ALL + col0 / + 87 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - 83 - + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-34
6001
6158
query I rowsort
SELECT ALL - 48 + 55 * col1 FROM tab1 cor0
----
1382
502
667
query I rowsort
SELECT DISTINCT - - 68 AS col2 FROM tab2 AS cor0
----
68
query I rowsort
SELECT - - col2 * 19 + col2 AS col0 FROM tab1 AS cor0
----
1080
1140
1920
onlyif mysql # use DIV operator for integer division
query I rowsort label-873
SELECT ALL + col0 - 7 DIV col1 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-873
SELECT ALL + col0 - 7 / col1 FROM tab2
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-874
SELECT + col1 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-874
SELECT + col1 * CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * tab1.col1 - + 74 * col1 FROM tab1
----
-1248
-640
-793
query I rowsort
SELECT col0 + + col1 * cor0.col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL + - 64 * + col0 * - cor0.col0 FROM tab0 AS cor0
----
36864
506944
78400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 60 + - col0 col0 FROM tab1 AS cor0
----
-124
-140
-63
query I rowsort
SELECT ALL + 76 AS col0 FROM tab0 AS cor0
----
76
76
76
query I rowsort
SELECT DISTINCT - col1 + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT ALL + 3 + - col2 FROM tab0 AS cor0
----
-30
-79
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - col2 col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - 79 + + col2 AS col1 FROM tab0 cor0
----
-46
-78
3
query I rowsort
SELECT ALL - col2 + + col2 * + col1 + - 39 FROM tab0
----
2766
57
7341
query I rowsort
SELECT DISTINCT + cor0.col1 + col0 * cor0.col1 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT + - cor0.col0 * cor0.col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-887
SELECT + 81 DIV + col0 FROM tab2 cor0
----
1
1
11
skipif mysql # not compatible
query I rowsort label-887
SELECT + 81 / + col0 FROM tab2 cor0
----
1
1
11
query I rowsort
SELECT DISTINCT col2 * + cor0.col2 + + col2 * 81 AS col2 FROM tab0 AS cor0
----
13366
3762
82
query I rowsort
SELECT DISTINCT + ( + col0 ) * ( + col2 ) FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-890
SELECT ALL + col1 + + 92 + col2 DIV - col0 FROM tab1 AS cor0
----
100
102
104
skipif mysql # not compatible
query I rowsort label-890
SELECT ALL + col1 + + 92 + col2 / - col0 FROM tab1 AS cor0
----
100
102
104
query I rowsort
SELECT 90 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
154
170
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-892
SELECT cor0.col2 DIV - col0 AS col2 FROM tab1 cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-892
SELECT cor0.col2 / - col0 AS col2 FROM tab1 cor0
----
-1
-18
0
query I rowsort
SELECT ALL 39 * col2 AS col2 FROM tab1
----
2106
2223
3744
query I rowsort
SELECT + 12 * + col1 + col2 FROM tab2
----
242
399
734
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-895
SELECT ALL + col0 + - ( ( + col2 ) ) * CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1365
-598
-722
skipif mysql # not compatible
query I rowsort label-895
SELECT ALL + col0 + - ( ( + col2 ) ) * CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT ALL - col0 + 85 FROM tab0 AS cor0
----
-4
50
61
query I rowsort
SELECT ALL + - col2 * - col2 AS col0 FROM tab1 cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-898
SELECT ALL + col0 + col0 DIV - col0 + cor0.col0 FROM tab0 cor0
----
177
47
69
skipif mysql # not compatible
query I rowsort label-898
SELECT ALL + col0 + col0 / - col0 + cor0.col0 FROM tab0 cor0
----
177
47
69
query I rowsort
SELECT DISTINCT + 95 FROM tab1, tab2 AS cor0
----
95
query I rowsort
SELECT tab2.col1 + + col1 AS col2 FROM tab2
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-901
SELECT DISTINCT - ( - tab0.col1 ) + + col0 DIV - ( + col1 ) FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-901
SELECT DISTINCT - ( - tab0.col1 ) + + col0 / - ( + col1 ) FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-902
SELECT DISTINCT cor0.col0 - - col0 DIV cor0.col0 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-902
SELECT DISTINCT cor0.col0 - - col0 / cor0.col0 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT ALL + - col2 + + col0 AS col1 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT - col1 - - col0 * cor0.col0 AS col0 FROM tab2 cor0
----
18
6025
6224
query I rowsort
SELECT DISTINCT - ( 52 ) * + col2 FROM tab1 AS cor0
----
-2808
-2964
-4992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-906
SELECT + CAST( - col1 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-906
SELECT + CAST ( - col1 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-907
SELECT ALL - 22 * col0 DIV col1 AS col2 FROM tab2 AS cor0
----
-102
-29
-4
skipif mysql # not compatible
query I rowsort label-907
SELECT ALL - 22 * col0 / col1 AS col2 FROM tab2 AS cor0
----
-102
-29
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 79 * - col2 col1 FROM tab1 AS cor0
----
-4266
-4503
-7584
query I rowsort
SELECT DISTINCT 38 * col0 + ( + 97 * col1 ) AS col2 FROM tab2 cor0
----
3273
4651
8687
query I rowsort
SELECT DISTINCT - + col0 + col1 * 57 FROM tab2 AS cor0
----
1760
3285
890
query I rowsort
SELECT 39 * - col0 AS col2 FROM tab2 AS cor0
----
-273
-3042
-3081
query I rowsort
SELECT + - ( - cor0.col2 ) + col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL + + 42 * + col1 + 91 FROM tab0 AS cor0
----
3703
3913
4165
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 - - col0 col2 FROM tab2 AS cor0
----
-15
-16
-87
query I rowsort
SELECT + col0 * + col2 + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT + 70 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + col0 + + 84 * - ( - col2 * col0 + col2 ) FROM tab2 AS cor0
----
13615
168246
249055
query I rowsort
SELECT col2 * - col2 - - 36 * col2 AS col0 FROM tab1 AS cor0
----
-1197
-5760
-972
query I rowsort
SELECT ALL 58 + - 96 FROM tab2
----
-38
-38
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT 19 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 44 col1 FROM tab2 AS cor0
----
70
71
82
query I rowsort
SELECT + col2 + - cor0.col2 * col2 FROM tab0 cor0
----
-1056
-6642
0
query I rowsort
SELECT + ( cor0.col1 ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT 61 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55
query I rowsort
SELECT 93 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab0, tab2, tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 * - col0 col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT + - cor0.col2 + cor0.col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT ALL + cor0.col2 * + cor0.col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - + 60 * - col2 FROM tab0 AS cor0
----
1980
4920
60
query I rowsort
SELECT + 62 FROM tab2 cor0
----
62
62
62
query I rowsort
SELECT - 43 * cor0.col1 FROM tab0 AS cor0
----
-3698
-3913
-4171
query I rowsort
SELECT + col2 * - 68 + - col0 AS col2 FROM tab1 AS cor0
----
-3675
-3940
-6608
query I rowsort
SELECT col0 * 13 AS col0 FROM tab0 cor0
----
1157
312
455
query I rowsort
SELECT col0 * 16 - - cor0.col0 FROM tab1 AS cor0
----
1088
1360
51
query I rowsort
SELECT - col1 + 19 * + col2 FROM tab1 AS cor0
----
1000
1073
1811
query I rowsort
SELECT col2 * + col2 + col0 AS col0 FROM tab0 AS cor0
----
1113
36
6813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-940
SELECT DISTINCT col2 * CAST( - col1 AS SIGNED ) * col1 FROM tab1
----
-16224
-36504
-5700
skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT col2 * CAST ( - col1 AS INTEGER ) * col1 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT + + cor0.col0 * + cor0.col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + col0 * 77 AS col0 FROM tab0 AS cor0
----
1848
2695
6853
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 1 * col1 col2 FROM tab1 AS cor0
----
-20
-26
-52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-944
SELECT ALL + col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-944
SELECT ALL + col1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 + col2 - cor0.col1 * col0 FROM tab0 AS cor0
----
-1998
-3393
-7935
query I rowsort
SELECT - + cor0.col0 - + cor0.col1 FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-947
SELECT - + col0 DIV col2 - cor0.col0 AS col1 FROM tab0 cor0
----
-24
-70
-90
skipif mysql # not compatible
query I rowsort label-947
SELECT - + col0 / col2 - cor0.col0 AS col1 FROM tab0 cor0
----
-24
-70
-90
query I rowsort
SELECT DISTINCT + cor1.col1 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-949
SELECT ALL CAST( - col0 AS SIGNED ) * col1 DIV col1 + 36 AS col1 FROM tab0 AS cor0
----
-53
1
12
skipif mysql # not compatible
query I rowsort label-949
SELECT ALL CAST ( - col0 AS INTEGER ) * col1 / col1 + 36 AS col1 FROM tab0 AS cor0
----
-53
1
12
query I rowsort
SELECT - - col1 + + 6 * - col1 * + col1 FROM tab2 AS cor0
----
-1717
-20827
-5735
query I rowsort
SELECT ALL - - col1 * col0 + col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT + 44 - - 65 FROM tab1 AS cor0
----
109
query I rowsort
SELECT ALL + ( + col2 ) * col1 * col0 + col2 FROM tab2 AS cor0
----
119678
51072
5886
query I rowsort
SELECT ALL - 15 * col1 + col2 AS col2 FROM tab2 AS cor0
----
-217
-438
-859
onlyif mysql # use DIV operator for integer division
query I rowsort label-955
SELECT DISTINCT col0 DIV ( col0 ) FROM tab2
----
1
skipif mysql # not compatible
query I rowsort label-955
SELECT DISTINCT col0 / ( col0 ) FROM tab2
----
1
query I rowsort
SELECT DISTINCT - col1 * - 15 FROM tab1
----
150
195
390
query I rowsort
SELECT col1 + + col0 * + cor0.col2 FROM tab2 AS cor0
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col1 ) col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + col0 * col2 + cor0.col2 FROM tab0 AS cor0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - cor0.col1 col0 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT - 60 AS col2 FROM tab0 AS cor0
----
-60
-60
-60
query I rowsort
SELECT DISTINCT 68 * 38 AS col0 FROM tab1
----
2584
query I rowsort
SELECT - ( + col1 ) * - col0 FROM tab0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 * 88 col2 FROM tab2
----
616
6864
6952
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 * ( 1 ) col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT + - ( - 51 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT + - col2 * + col1 * col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT ( - col2 * - tab1.col1 ) + - col0 AS col1 FROM tab1
----
1168
1401
506
query I rowsort
SELECT - 72 * ( col2 ) + + 76 * + 22 FROM tab2
----
-1064
-200
-272
query I rowsort
SELECT - 88 + + 88 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - - 52 * col2 AS col1 FROM tab2 AS cor0
----
1352
1404
1976
onlyif mysql # use DIV operator for integer division
query I rowsort label-973
SELECT DISTINCT + col0 DIV col0 + cor0.col0 col0 FROM tab0 cor0
----
25
36
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-973
SELECT DISTINCT + col0 / col0 + cor0.col0 col0 FROM tab0 cor0
----
25
36
90
query I rowsort
SELECT + ( - col2 ) * + col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + ( col1 ) + col1 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-976
SELECT ALL + CAST( tab1.col0 * + col0 AS SIGNED ) AS col1 FROM tab1
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-976
SELECT ALL + CAST ( tab1.col0 * + col0 AS INTEGER ) AS col1 FROM tab1
----
4096
6400
9
query I rowsort
SELECT ALL ( - col1 + - col1 ) * col2 FROM tab1
----
-1140
-2496
-2808
query I rowsort
SELECT - 86 FROM tab2, tab1 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da
query I rowsort
SELECT ALL - + col1 + - col1 * 25 FROM tab1 AS cor0
----
-260
-338
-676
query I rowsort
SELECT DISTINCT - ( + col1 ) + col0 * col0 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT ALL + - 15 + - col2 FROM tab1 AS cor0
----
-111
-69
-72
query I rowsort
SELECT ALL + + ( col0 ) * - col0 + 77 AS col0 FROM tab0 AS cor0
----
-1148
-499
-7844
query I rowsort
SELECT DISTINCT 59 * col1 - col0 AS col2 FROM tab2 AS cor0
----
1822
3403
924
query I rowsort
SELECT DISTINCT + 74 * - col2 FROM tab2 AS cor0
----
-1924
-1998
-2812
query I rowsort
SELECT - 8 AS col2 FROM tab0 AS cor0
----
-8
-8
-8
query I rowsort
SELECT ALL + - col0 + + col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL - + 23 + - col0 FROM tab0 AS cor0
----
-112
-47
-58
query I rowsort
SELECT DISTINCT + - ( col2 ) * + col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + 96 + - col1 FROM tab1 AS cor0
----
70
83
86
query I rowsort
SELECT ALL + ( - cor0.col1 ) * 16 - col0 * col2 FROM tab1 AS cor0
----
-3808
-578
-7888
query I rowsort
SELECT DISTINCT + 58 * - cor0.col2 + - 5 AS col1 FROM tab1 AS cor0
----
-3137
-3311
-5573
query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - + col0 - - col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL ( - 66 ) FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112
query I rowsort
SELECT DISTINCT col0 * - cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - + 52 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
-14
-25
-26
query I rowsort
SELECT + + col0 + + col1 AS col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT col1 + + ( cor0.col1 ) + col1 FROM tab1 AS cor0
----
30
39
78
query I rowsort
SELECT ALL col1 * 1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - col0 * col0 * - cor0.col2 - col0 AS col1 FROM tab1 AS cor0
----
233408
483
614320
onlyif mysql # use DIV operator for integer division
query I rowsort label-1001
SELECT + col1 DIV col2 + col0 * col1 * 98 AS col0 FROM tab0 AS cor0
----
202274
332807
793703
skipif mysql # not compatible
query I rowsort label-1001
SELECT + col1 / col2 + col0 * col1 * 98 AS col0 FROM tab0 AS cor0
----
202274
332807
793703
query I rowsort
SELECT + col0 + ( - col2 ) + col1 AS col1 FROM tab1 AS cor0
----
-25
-3
17
query I rowsort
SELECT DISTINCT - col0 * 44 FROM tab0 AS cor0
----
-1056
-1540
-3916
query I rowsort
SELECT + - col1 + + ( - col1 ) AS col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT ALL - - col2 * + 57 + - cor0.col2 FROM tab1 AS cor0
----
3024
3192
5376
query I rowsort
SELECT DISTINCT + + col0 * col0 * - col0 FROM tab0 AS cor0
----
-13824
-42875
-704969
query I rowsort
SELECT + cor0.col2 * col0 * col2 FROM tab0 AS cor0
----
26136
35
598436
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 - 74 * + col0 col0 FROM tab0 AS cor0
----
-1748
-2562
-6558
query I rowsort
SELECT - - 91 FROM tab1 cor0
----
91
91
91
query I rowsort
SELECT ALL - + 42 * col2 FROM tab0 AS cor0
----
-1386
-3444
-42
onlyif mysql # use DIV operator for integer division
query I rowsort label-1011
SELECT ALL + 71 DIV - 34 - - col2 DIV col1 AS col2 FROM tab1 AS cor0
----
0
3
5
skipif mysql # not compatible
query I rowsort label-1011
SELECT ALL + 71 / - 34 - - col2 / col1 AS col2 FROM tab1 AS cor0
----
0
3
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1012
SELECT - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1012
SELECT - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - - 34 + cor0.col0 FROM tab2 cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 86b492a48734f78e4721f596d8c0aa2b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * - col2 + 17 col2 FROM tab0 cor0
----
114
2855
7479
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 89 ) col1 FROM tab1 AS cor0
----
89
89
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1016
SELECT 78 DIV + col2 AS col1 FROM tab0 AS cor0
----
0
2
78
skipif mysql # not compatible
query I rowsort label-1016
SELECT 78 / + col2 AS col1 FROM tab0 AS cor0
----
0
2
78
query I rowsort
SELECT - 68 + - col2 FROM tab2 AS cor0
----
-106
-94
-95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1018
SELECT + CAST( NULL AS SIGNED ) * + col2 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1018
SELECT + CAST ( NULL AS INTEGER ) * + col2 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 * 25 + + col1 AS col0 FROM tab0 AS cor0
----
122
2141
911
query I rowsort
SELECT ALL + - col2 AS col2 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT ALL col1 * col1 * - col2 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT DISTINCT ( 68 ) + col2 * col1 AS col2 FROM tab0 AS cor0
----
165
2906
7530
query I rowsort
SELECT ALL col0 + - col1 * + col0 * + col2 AS col0 FROM tab0
----
-3360
-664029
-68088
query I rowsort
SELECT - col2 + col2 + col0 * 2 * col2 AS col1 FROM tab2 AS cor0
----
378
4056
6004
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1025
SELECT - CAST( col1 AS SIGNED ) + col0 FROM tab1 AS cor0
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-1025
SELECT - CAST ( col1 AS INTEGER ) + col0 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-1026
SELECT + + col0 * 83 + col1 + col0 DIV - col1 FROM tab0 AS cor0
----
2078
3002
7478
skipif mysql # not compatible
query I rowsort label-1026
SELECT + + col0 * 83 + col1 + col0 / - col1 FROM tab0 AS cor0
----
2078
3002
7478
query I rowsort
SELECT + cor0.col1 + col1 * col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT DISTINCT + 55 FROM tab1, tab0 AS cor0
----
55
query I rowsort
SELECT cor0.col0 * col1 + col0 * - ( col1 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab1, tab1 cor0
----
-54
-57
-96
query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT DISTINCT + col0 * 57 AS col2 FROM tab0 cor0
----
1368
1995
5073
query I rowsort
SELECT ALL + 88 * + tab2.col2 AS col1 FROM tab2
----
2288
2376
3344
query I rowsort
SELECT + col0 * - col1 + 5 * - col2 + + col0 FROM tab2 AS cor0
----
-1454
-345
-4654
query I rowsort
SELECT - col1 * - col1 + tab2.col2 + 58 * - col1 AS col2 FROM tab2
----
-659
-810
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-1036
SELECT - col2 * 27 + - 99 DIV - col2 + + col2 AS col0 FROM tab0 cor0
----
-2131
-855
73
skipif mysql # not compatible
query I rowsort label-1036
SELECT - col2 * 27 + - 99 / - col2 + + col2 AS col0 FROM tab0 cor0
----
-2131
-855
73
query I rowsort
SELECT ALL - + cor0.col1 + 59 * col2 FROM tab0 AS cor0
----
-38
1861
4747
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 17 + col0 col2 FROM tab0 cor0
----
188
53
74
query I rowsort
SELECT DISTINCT + col1 - - col1 * 70 AS col2 FROM tab0
----
6106
6461
6887
query I rowsort
SELECT 14 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + - col2 col0 FROM tab0
----
34
7216
759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( + col2 ) col2 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL - col0 + ( 31 ) AS col1 FROM tab2
----
-47
-48
24
query I rowsort
SELECT col0 + - 4 * + 44 + + col2 FROM tab2
----
-142
-59
-72
query I rowsort
SELECT DISTINCT col2 * - col1 + 81 AS col1 FROM tab0
----
-16
-2757
-7381
query I rowsort
SELECT ALL + col2 + - ( 81 ) AS col1 FROM tab0
----
-48
-80
1
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to 958533d1a7bf61199ed7c03eadf37f9a
query I rowsort
SELECT ALL + col0 * - 94 FROM tab1 AS cor0
----
-282
-6016
-7520
query I rowsort
SELECT - - col2 * + col1 * + col2 AS col0 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT - + 92 * + col2 * col2 FROM tab1 AS cor0
----
-268272
-298908
-847872
query I rowsort
SELECT DISTINCT - + 46 FROM tab0 cor0
----
-46
query I rowsort
SELECT DISTINCT + + 86 FROM tab2 AS cor0
----
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1053
SELECT + CAST( col1 AS SIGNED ) AS col0 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-1053
SELECT + CAST ( col1 AS INTEGER ) AS col0 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL 6 FROM tab0
----
6
6
6
query I rowsort
SELECT ALL - col0 + + cor0.col2 * - col2 * col0 FROM tab1 AS cor0
----
-208000
-737360
-8751
query I rowsort
SELECT tab2.col2 * tab2.col1 AS col2 FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1057
SELECT 90 DIV + cor0.col1 FROM tab2 AS cor0
----
1
2
5
skipif mysql # not compatible
query I rowsort label-1057
SELECT 90 / + cor0.col1 FROM tab2 AS cor0
----
1
2
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-1058
SELECT ALL - 70 DIV col1 AS col2 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-1058
SELECT ALL - 70 / col1 AS col2 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT - - 9 * - 9 FROM tab2 AS cor0
----
-81
-81
-81
query I rowsort
SELECT 41 * - col0 AS col1 FROM tab0 AS cor0
----
-1435
-3649
-984
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 14 * col1 col2 FROM tab1 AS cor0
----
-140
-182
-364
query I rowsort
SELECT ALL + ( tab2.col2 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col1 * - tab2.col0 col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT - 33 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03
query I rowsort
SELECT DISTINCT 64 AS col1 FROM tab1, tab0 AS cor0
----
64
query I rowsort
SELECT ALL - 59 * 88 FROM tab0
----
-5192
-5192
-5192
query I rowsort
SELECT 79 AS col2 FROM tab2
----
79
79
79
query I rowsort
SELECT + col0 + + 28 AS col2 FROM tab1 AS cor0
----
108
31
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col1 * col2 col1 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT ALL col2 + cor0.col1 AS col2 FROM tab1 AS cor0 WHERE + col1 * - col2 IN ( - cor0.col2 )
----
query I rowsort
SELECT col2 * col0 FROM tab1 AS cor0 WHERE NULL BETWEEN - col0 AND NULL
----
query I rowsort
SELECT ALL + col2 + + cor0.col1 * col2 - - col1 FROM tab2 AS cor0
----
1619
701
895
query I rowsort
SELECT DISTINCT + tab1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1
----
10
13
26
query I rowsort
SELECT DISTINCT + tab1.col2 - + tab1.col2 AS col2 FROM tab1
----
0
query I rowsort
SELECT DISTINCT - col1 + - tab0.col2 FROM tab0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 + + tab1.col2 col2 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT col2 * + col2 * - col1 + col0 AS col2 FROM tab2
----
-22592
-24469
-39806
query I rowsort
SELECT + tab2.col2 * + col2 + col0 + col1 AS col2 FROM tab2
----
1540
767
813
query I rowsort
SELECT + + col1 + - col0 * col1 * col0 AS col2 FROM tab0 cor0
----
-118728
-49450
-720720
query I rowsort
SELECT + col1 + + col2 * - cor0.col1 * + col1 FROM tab1 AS cor0
----
-16211
-36478
-5690
query I rowsort
SELECT + + cor0.col1 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT ALL - col2 * col0 * - col1 + - col1 AS col0 FROM tab1 AS cor0
----
36470
4186
99827
query I rowsort
SELECT DISTINCT - col2 * col0 - col1 * - col1 AS col2 FROM tab1 AS cor0
----
-3548
-7511
514
query I rowsort
SELECT - cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1086
SELECT DISTINCT - col0 * + col1 - col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-1041
-641
-79
skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT - col0 * + col1 - col1 / col1 AS col1 FROM tab1 AS cor0
----
-1041
-641
-79
query I rowsort
SELECT ALL - - col2 + col0 * col0 FROM tab0 cor0
----
1226
609
8003
query I rowsort
SELECT DISTINCT col2 * - col0 + - col0 * col0 + - col1 FROM tab1 AS cor0
----
-14093
-197
-7754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 + - cor0.col0 * col0 col2 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT - col2 * + col1 AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT col1 * col1 * col1 AS col0 FROM tab2
----
205379
29791
4913
query I rowsort
SELECT - col0 * + cor0.col1 + col2 * col1 AS col0 FROM tab0 AS cor0
----
-3298
-637
774
query I rowsort
SELECT ALL + - col1 * - col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT col2 + col0 * col0 AS col0 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT DISTINCT - + cor0.col2 * - col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - col0 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + - col1 * + cor0.col2 * col2 FROM tab2 cor0
----
-22599
-24548
-39884
query I rowsort
SELECT ALL - - 1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT col1 + ( + col2 ) AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT col2 * 74 + - col2 AS col2 FROM tab1
----
3942
4161
7008
query I rowsort
SELECT DISTINCT - col0 + + 3 FROM tab0 cor0
----
-21
-32
-86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1102
SELECT + cor0.col0 + - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-1102
SELECT + cor0.col0 + - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + col1 + ( - col2 ) FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT + 31 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
31
query I rowsort
SELECT DISTINCT col2 * + tab0.col1 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - ( col0 ) * col1 - - col1 * 64 FROM tab1
----
-208
0
1586
query I rowsort
SELECT DISTINCT - + col2 * + col0 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-1108
SELECT 97 + + col2 DIV - 80 - - 88 FROM tab0 AS cor0
----
184
185
185
skipif mysql # not compatible
query I rowsort label-1108
SELECT 97 + + col2 / - 80 - - 88 FROM tab0 AS cor0
----
184
185
185
onlyif mysql # use DIV operator for integer division
query I rowsort label-1109
SELECT + ( col1 ) + - col1 * 53 DIV tab0.col1 FROM tab0
----
33
38
44
skipif mysql # not compatible
query I rowsort label-1109
SELECT + ( col1 ) + - col1 * 53 / tab0.col1 FROM tab0
----
33
38
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-1110
SELECT - col1 DIV 65 + col0 + - col1 AS col0 FROM tab1
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-1110
SELECT - col1 / 65 + col0 + - col1 AS col0 FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL - 40 * + 25 + col0 AS col1 FROM tab2
----
-921
-922
-993
query I rowsort
SELECT DISTINCT col0 * + col0 * + col1 AS col2 FROM tab0 cor0
----
118825
49536
720811
query I rowsort
SELECT ALL 33 + col0 AS col0 FROM tab2
----
111
112
40
query I rowsort
SELECT + 99 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
onlyif mysql # use DIV operator for integer division
query I rowsort label-1115
SELECT ALL - - cor0.col0 * col0 DIV col1 + 36 FROM tab1 AS cor0
----
36
445
528
skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL - - cor0.col0 * col0 / col1 + 36 FROM tab1 AS cor0
----
36
445
528
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 col1 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1117
SELECT DISTINCT - ( + cor0.col2 ) * col0 + - col1 DIV col0 AS col1 FROM tab1 AS cor0
----
-170
-3648
-7680
skipif mysql # not compatible
query I rowsort label-1117
SELECT DISTINCT - ( + cor0.col2 ) * col0 + - col1 / col0 AS col1 FROM tab1 AS cor0
----
-170
-3648
-7680
query I rowsort
SELECT DISTINCT - + 99 + col2 * - ( col2 ) + cor0.col2 FROM tab2 AS cor0
----
-1505
-749
-801
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 col1 FROM tab0 AS cor0
----
19
19
19
onlyif mysql # use DIV operator for integer division
query I rowsort label-1120
SELECT DISTINCT - + cor0.col1 + - col1 DIV - ( col2 ) AS col0 FROM tab0 cor0
----
-84
-90
0
skipif mysql # not compatible
query I rowsort label-1120
SELECT DISTINCT - + cor0.col1 + - col1 / - ( col2 ) AS col0 FROM tab0 cor0
----
-84
-90
0
query I rowsort
SELECT + col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL + ( - col0 ) + col1 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-1123
SELECT DISTINCT + + cor0.col2 DIV + cor0.col0 + col0 FROM tab1 AS cor0
----
21
64
81
skipif mysql # not compatible
query I rowsort label-1123
SELECT DISTINCT + + cor0.col2 / + cor0.col0 + col0 FROM tab1 AS cor0
----
21
64
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-1124
SELECT DISTINCT + col1 DIV - cor0.col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-1124
SELECT DISTINCT + col1 / - cor0.col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT - col1 + cor0.col0 + col0 * 42 * - col0 FROM tab1 AS cor0
----
-171978
-268733
-401
query I rowsort
SELECT - + col0 + col1 * + col1 AS col1 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT ALL + 81 + + col2 FROM tab1 AS cor0
----
135
138
177
query I rowsort
SELECT 43 + - col2 FROM tab1 AS cor0
----
-11
-14
-53
onlyif mysql # use DIV operator for integer division
query I rowsort label-1129
SELECT DISTINCT - + col1 DIV + col0 + 67 AS col0 FROM tab0 cor0
----
64
65
66
skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT - + col1 / + col0 + 67 AS col0 FROM tab0 cor0
----
64
65
66
query I rowsort
SELECT ALL + 14 + - col1 * - 79 FROM tab0
----
6808
7203
7677
query I rowsort
SELECT ALL - col1 + - col1 * - tab1.col1 FROM tab1
----
156
650
90
query I rowsort
SELECT ( + col1 ) * 6 FROM tab0
----
516
546
582
query I rowsort
SELECT - ( - cor0.col1 ) AS col2 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + + ( cor0.col0 ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + col2 + - 52 AS col2 FROM tab0 cor0
----
-19
-51
30
query I rowsort
SELECT DISTINCT + - cor0.col2 + col1 * + 45 AS col2 FROM tab2 cor0
----
1368
2629
727
onlyif mysql # use DIV operator for integer division
query I rowsort label-1137
SELECT - col1 + - col2 DIV + col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-1137
SELECT - col1 + - col2 / + col1 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1138
SELECT - + col1 + cor0.col2 DIV - 16 col0 FROM tab1 AS cor0
----
-13
-19
-29
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1138
SELECT - + col1 + cor0.col2 / - 16 col0 FROM tab1 AS cor0
----
-13
-19
-29
query I rowsort
SELECT - col0 + ( 17 ) * col2 AS col2 FROM tab2 AS cor0
----
364
452
567
query I rowsort
SELECT - + col1 * + ( 92 ) + col0 FROM tab0 AS cor0
----
-7888
-8283
-8889
query I rowsort
SELECT ALL + 43 + col2 * - col2 FROM tab2
----
-1401
-633
-686
onlyif mysql # use DIV operator for integer division
query I rowsort label-1142
SELECT + col0 DIV + col0 AS col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1142
SELECT + col0 / + col0 AS col0 FROM tab1
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1143
SELECT - col1 * - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-1143
SELECT - col1 * - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 + col2 * col1 col2 FROM tab2 AS cor0
----
-4550
-5595
788
query I rowsort
SELECT + - col0 * - 19 FROM tab2 AS cor0
----
133
1482
1501
query I rowsort
SELECT DISTINCT - ( + col1 ) + - cor0.col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL ( + col1 ) - col0 AS col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT + + ( 41 ) * + col1 + + col2 FROM tab0 AS cor0
----
3559
3813
3978
query I rowsort
SELECT col1 * ( - col2 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + col1 + cor0.col0 * + col0 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT DISTINCT + cor0.col2 + 8 - col1 AS col1 FROM tab1 AS cor0
----
36
55
91
query I rowsort
SELECT ALL - 71 AS col2 FROM tab2 AS cor0
----
-71
-71
-71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1153
SELECT ALL CAST( - col2 AS SIGNED ) + - col2 * col0 AS col2 FROM tab1 cor0
----
-216
-3705
-7776
skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL CAST ( - col2 AS INTEGER ) + - col2 * col0 AS col2 FROM tab1 cor0
----
-216
-3705
-7776
query I rowsort
SELECT + - col1 * col1 + - col1 AS col1 FROM tab1 AS cor0
----
-110
-182
-702
onlyif mysql # use DIV operator for integer division
query I rowsort label-1155
SELECT - 64 DIV - col0 AS col2 FROM tab2 AS cor0
----
0
0
9
skipif mysql # not compatible
query I rowsort label-1155
SELECT - 64 / - col0 AS col2 FROM tab2 AS cor0
----
0
0
9
query I rowsort
SELECT + ( + col0 ) * col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - 63 + - cor0.col0 FROM tab0 AS cor0
----
-152
-87
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 + col1 col1 FROM tab1
----
102
105
118
query I rowsort
SELECT - tab2.col0 * - col0 + tab2.col1 + + col0 AS col2 FROM tab2
----
6221
6337
87
query I rowsort
SELECT DISTINCT col0 * + ( + col1 ) * col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT - ( + col0 ) * - col1 AS col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT - ( 47 ) AS col2 FROM tab1
----
-47
-47
-47
query I rowsort
SELECT - + cor0.col1 * 61 AS col2 FROM tab2 cor0
----
-1037
-1891
-3599
query I rowsort
SELECT - + 95 + - 90 FROM tab1 AS cor0
----
-185
-185
-185
query I rowsort
SELECT - ( col0 ) * col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT cor0.col1 + ( col0 ) * col1 AS col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT - ( - col1 ) * + col1 * ( col2 ) FROM tab1 AS cor0
----
16224
36504
5700
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1168
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1168
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 13 * - col2 * - cor0.col2 FROM tab2 cor0
----
-18772
-8788
-9477
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1170
SELECT + CAST( NULL AS SIGNED ) * col2 + - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1170
SELECT + CAST ( NULL AS INTEGER ) * col2 + - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1171
SELECT DISTINCT - - col1 * + col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1171
SELECT DISTINCT - - col1 * + col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1172
SELECT DISTINCT + 42 + - col2 DIV col2 FROM tab0 AS cor0
----
41
skipif mysql # not compatible
query I rowsort label-1172
SELECT DISTINCT + 42 + - col2 / col2 FROM tab0 AS cor0
----
41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1173
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0, tab2 cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-1173
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0, tab2 cor1
----
NULL
query I rowsort
SELECT - 95 AS col0 FROM tab1
----
-95
-95
-95
query I rowsort
SELECT ( ( col1 ) ) AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT - cor1.col1 AS col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT col2 * + col2 + cor0.col2 * - col0 AS col1 FROM tab1 AS cor0
----
-399
1536
2754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT 41 * cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
2214
2337
3936
query I rowsort
SELECT 39 * + 45 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31d0dff9c059d529b9fa1bec61c01795
query I rowsort
SELECT DISTINCT - col0 + col1 * col2 + - ( - col1 ) FROM tab2
----
1515
584
861
query I rowsort
SELECT - tab1.col1 * - 13 FROM tab1
----
130
169
338
query I rowsort
SELECT - col1 * tab1.col2 * + col2 + + col1 FROM tab1
----
-119795
-32480
-75790
query I rowsort
SELECT ALL 12 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6
query I rowsort
SELECT col1 + - 68 * - col0 AS col1 FROM tab1 cor0
----
230
4362
5453
query I rowsort
SELECT 74 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82
query I rowsort
SELECT DISTINCT tab2.col1 * + 68 FROM tab2
----
1156
2108
4012
query I rowsort
SELECT + + col1 * + col2 + - col0 * + col1 AS col2 FROM tab1 AS cor0
----
-70
1326
208
query I rowsort
SELECT + col0 + col1 + col0 AS col1 FROM tab0 AS cor0
----
134
167
269
query I rowsort
SELECT DISTINCT - 4 * col1 + col1 + ( col1 + col1 ) * col0 FROM tab2 AS cor0
----
2635
341
9027
query I rowsort
SELECT + col1 + - 52 AS col2 FROM tab1 AS cor0
----
-26
-39
-42
query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1193
SELECT ALL - + CAST( NULL AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1193
SELECT ALL - + CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 * + col0 + - col0 * + col2 col0 FROM tab2
----
-1422
-468
-49
query I rowsort
SELECT tab2.col1 + + col0 AS col2 FROM tab2
----
137
38
96
query I rowsort
SELECT tab1.col0 * + 16 + - col0 AS col0 FROM tab1
----
1200
45
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-1197
SELECT col2 DIV col1 + - col2 FROM tab2
----
-26
-27
-36
skipif mysql # not compatible
query I rowsort label-1197
SELECT col2 / col1 + - col2 FROM tab2
----
-26
-27
-36
query I rowsort
SELECT col0 * 8 - - col2 FROM tab0
----
225
281
794
query I rowsort
SELECT DISTINCT + 0 * col0 + + col1 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT - col0 * - col1 + - col2 FROM tab0 AS cor0
----
2031
3394
8017
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d
query I rowsort
SELECT - ( + col1 ) + - col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT DISTINCT + cor0.col0 * + cor0.col1 * + 36 + 58 FROM tab2, tab2 AS cor0
----
165730
48406
7870
query I rowsort
SELECT DISTINCT - col2 * 14 + col2 FROM tab2 AS cor0
----
-338
-351
-494
onlyif mysql # use DIV operator for integer division
query I rowsort label-1206
SELECT ( - 24 ) * col0 DIV - 52 AS col0 FROM tab0 AS cor0
----
11
16
41
skipif mysql # not compatible
query I rowsort label-1206
SELECT ( - 24 ) * col0 / - 52 AS col0 FROM tab0 AS cor0
----
11
16
41
query I rowsort
SELECT ALL + 95 FROM tab0, tab1 cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 9896fbc7c98abe84cb585e6f5f25b58a
query I rowsort
SELECT col2 * col0 + - col2 AS col0 FROM tab0 cor0
----
34
7216
759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1209
SELECT ALL + CAST( 58 AS SIGNED ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL + CAST ( 58 AS INTEGER ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT 92 + col0 FROM tab2
----
170
171
99
query I rowsort
SELECT DISTINCT - 37 AS col2 FROM tab0
----
-37
query I rowsort
SELECT col2 + + ( - col0 ) + - col1 AS col1 FROM tab1 AS cor0
----
-17
25
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-1213
SELECT col1 + 96 DIV + cor0.col2 FROM tab0 cor0
----
193
88
92
skipif mysql # not compatible
query I rowsort label-1213
SELECT col1 + 96 / + cor0.col2 FROM tab0 cor0
----
193
88
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + col1 col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - cor0.col1 * + 36 FROM tab2 AS cor0
----
-1116
-2124
-612
query I rowsort
SELECT + - col1 - col2 * - cor0.col2 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT DISTINCT + col0 * - 37 + 44 AS col0 FROM tab2 AS cor0
----
-215
-2842
-2879
query I rowsort
SELECT DISTINCT - col1 + 68 * + col1 - col1 AS col1 FROM tab2 AS cor0
----
1122
2046
3894
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + col1 col1 FROM tab1 AS cor0
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - ( + ( col2 ) ) * - 28 col2 FROM tab1 AS cor0
----
1458
1539
2592
query I rowsort
SELECT ALL - col1 * + 62 + + col1 * - col0 * + cor0.col0 FROM tab0 cor0
----
-124839
-54868
-726453
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 col1 FROM tab1 AS cor0
----
54
57
96
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to 95920403df268a272c4e933cd0bbe0be
query I rowsort
SELECT ALL - + col2 * - col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + 17 * - col1 FROM tab2 AS cor0
----
-1003
-289
-527
query I rowsort
SELECT 14 * - col2 FROM tab1
----
-1344
-756
-798
onlyif mysql # use DIV operator for integer division
query I rowsort label-1227
SELECT ALL - - col0 DIV col0 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL - - col0 / col0 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT ALL - col0 + + col2 * col1 + col1 * col0 FROM tab0
----
15472
3457
4878
query I rowsort
SELECT DISTINCT + col2 * - col2 AS col2 FROM tab0 WHERE col2 - + col0 BETWEEN col2 * col1 AND col1 * - col0
----
query I rowsort
SELECT DISTINCT tab0.col0 + - tab0.col1 * + col2 FROM tab0 WHERE NOT NULL IN ( + col1 - - col0 )
----
query I rowsort
SELECT DISTINCT + - ( cor0.col2 ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT col2 + - col2 * - 17 * - 61 AS col0 FROM tab1 AS cor0
----
-55944
-59052
-99456
query I rowsort
SELECT - col2 + - tab1.col0 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab1, tab2, tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + + cor0.col0 * + col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + - col2 + - ( ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 0 + + col2 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT + col1 + tab2.col1 AS col2 FROM tab2
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-1239
SELECT ALL col1 - + col2 DIV - col0 FROM tab0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL col1 - + col2 / - col0 FROM tab0
----
87
91
97
query I rowsort
SELECT - col2 FROM tab2 WHERE ( - col0 * col2 ) NOT IN ( col0 - + col0 )
----
-26
-27
-38
query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * + col1 IN ( col0 / col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * + col1 NOT IN ( col0 )
----
query I rowsort
SELECT ALL col2 + tab2.col2 * + col1 AS col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT tab0.col0 FROM tab0 WHERE NOT NULL < col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 + + tab1.col0 col0 FROM tab1 WHERE ( NULL ) >= NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 IN ( + col1 + col1 * col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT ALL - col0 * tab2.col0 + col1 * col1 AS col0 FROM tab2
----
-2603
-5952
912
onlyif mysql # use DIV operator for integer division
query I rowsort label-1248
SELECT ALL + tab2.col2 * - col2 + + col2 DIV tab2.col0 FROM tab2
----
-1444
-676
-726
skipif mysql # not compatible
query I rowsort label-1248
SELECT ALL + tab2.col2 * - col2 + + col2 / tab2.col0 FROM tab2
----
-1444
-676
-726
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 * col2 col0 FROM tab2
----
-17576
-19683
-54872
query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + - col1 / col0 BETWEEN ( col1 ) AND NULL
----
query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NULL NOT IN ( + col1 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 + - tab2.col2 ) NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT ALL + col2 * col0 * - col0 AS col2 FROM tab2
----
-1323
-158184
-237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 - col2 col0 FROM tab0
----
-1226
-609
-8003
query I rowsort
SELECT DISTINCT - col0 * - col2 + col0 * col1 + col2 AS col1 FROM tab0
----
15479
2889
3431
query I rowsort
SELECT col2 * col1 * col0 AS col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT - col2 + tab0.col1 + col2 AS col1 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 * col2 col1 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT + col1 + col0 * + col2 AS col2 FROM tab1
----
188
3658
7693
query I rowsort
SELECT ALL col1 + col2 * + col2 FROM tab1
----
2942
3259
9229
query I rowsort
SELECT col1 + col0 * tab1.col0 - - col1 AS col2 FROM tab1 WHERE NULL <= NULL
----
query I rowsort
SELECT + col0 * - tab0.col1 AS col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL tab1.col0 + col1 * col2 + - col2 FROM tab1
----
1232
1353
577
query III rowsort
SELECT ALL * FROM tab1 WHERE col2 + col2 NOT IN ( - col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT - col1 * col2 * col0 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT col2 * col0 + + col0 * col2 AS col0 FROM tab1
----
15360
324
7296
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col1 AS REAL ) AS col0 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT + ( - col1 ) * - col2 + col2 + col1 * ( - cor0.col2 ) AS col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT col0 * col2 - cor0.col0 * col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 98 AS col2 FROM tab0, tab1 AS cor0
----
98
query I rowsort
SELECT DISTINCT + 16 * - col2 + col1 FROM tab0 AS cor0
----
-1221
-442
81
query I rowsort
SELECT DISTINCT + 77 FROM tab2, tab2 AS cor0
----
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1274
SELECT DISTINCT - col2 / col2 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1274
SELECT DISTINCT - col2 / col2 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 53 * + col0 FROM tab0 AS cor0
----
1272
1855
4717
query I rowsort
SELECT - 18 - cor0.col0 FROM tab2 AS cor0
----
-25
-96
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1277
SELECT ALL col1 DIV - col2 AS col0 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-1277
SELECT ALL col1 / - col2 AS col0 FROM tab0
----
-1
-2
-97
query I rowsort
SELECT - + col2 + - col0 AS col1 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT - col2 - col1 * + 22 FROM tab2 AS cor0
----
-1324
-412
-709
query I rowsort
SELECT + col1 * - col0 - + 35 FROM tab0 AS cor0
----
-2099
-3430
-8134
query I rowsort
SELECT + col0 * - col1 * + col0 + - col0 FROM tab0 AS cor0
----
-118860
-49560
-720900
query I rowsort
SELECT ALL + col0 * + ( 53 + col1 ) * col2 AS col1 FROM tab1 AS cor0
----
12798
229824
506880
onlyif mysql # use DIV operator for integer division
query I rowsort label-1283
SELECT DISTINCT - - col0 * - 55 + + col1 * - col1 + cor0.col0 DIV col0 FROM tab2 AS cor0
----
-1345
-4633
-7770
skipif mysql # not compatible
query I rowsort label-1283
SELECT DISTINCT - - col0 * - 55 + + col1 * - col1 + cor0.col0 / col0 FROM tab2 AS cor0
----
-1345
-4633
-7770
query I rowsort
SELECT ALL - + col0 + ( + col1 ) * col2 AS col2 FROM tab2 AS cor0
----
1456
567
830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1285
SELECT DISTINCT col1 * - CAST( col0 AS SIGNED ) + col0 - ( + col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT col1 * - CAST ( col0 AS INTEGER ) + col0 - ( + col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - col0 * 17 FROM tab2 AS cor0
----
-119
-1326
-1343
query I rowsort
SELECT ALL + - col0 * - 3 + col0 FROM tab2 AS cor0
----
28
312
316
query I rowsort
SELECT ALL + - col1 * cor0.col1 + col1 + - col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ( tab0.col0 ) + + tab0.col1 * - 71 FROM tab0, tab1 AS cor0
----
9 values hashing to b6e58ad6d63f018eb973680b3f3c0ea2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 * col2 col1 FROM tab0
----
2442
6068
74
query I rowsort
SELECT ALL cor0.col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1292
SELECT DISTINCT + + col1 + 57 + cor0.col0 DIV col2 AS col2 FROM tab0 cor0
----
143
149
189
skipif mysql # not compatible
query I rowsort label-1292
SELECT DISTINCT + + col1 + 57 + cor0.col0 / col2 AS col2 FROM tab0 cor0
----
143
149
189
query I rowsort
SELECT DISTINCT 29 * - col2 AS col1 FROM tab2
----
-1102
-754
-783
query I rowsort
SELECT + 62 * col2 AS col2 FROM tab0
----
2046
5084
62
query I rowsort
SELECT ALL - 67 + col0 FROM tab0
----
-32
-43
22
query I rowsort
SELECT ALL col1 + col0 * col0 AS col2 FROM tab0
----
1322
662
8012
onlyif mysql # use DIV operator for integer division
query I rowsort label-1297
SELECT - col2 + - cor0.col2 DIV + col1 AS col0 FROM tab1 cor0
----
-103
-56
-62
skipif mysql # not compatible
query I rowsort label-1297
SELECT - col2 + - cor0.col2 / + col1 AS col0 FROM tab1 cor0
----
-103
-56
-62
query I rowsort
SELECT - 96 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798
query I rowsort
SELECT ALL + + col1 + 26 FROM tab0 AS cor0
----
112
117
123
query I rowsort
SELECT + - col1 * - col1 + col0 * cor0.col2 FROM tab1 AS cor0
----
3748
7849
838
query I rowsort
SELECT + cor0.col0 * col0 + col1 AS col0 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT ALL col0 * 54 AS col2 FROM tab1 AS cor0
----
162
3456
4320
query I rowsort
SELECT DISTINCT + cor0.col2 * - col1 * 5 + cor0.col2 * + col0 FROM tab0 cor0
----
-13398
-30012
-450
query I rowsort
SELECT + - col2 * - 84 AS col0 FROM tab2 AS cor0
----
2184
2268
3192
query I rowsort
SELECT ALL col2 * - col2 + + ( col2 * + col1 ) FROM tab1 AS cor0
----
-1512
-2679
-7968
skipif mysql # not compatible
query I rowsort
SELECT col0 + CAST ( col2 * - col2 AS REAL ) FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT ALL - cor0.col2 * + tab0.col2 AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 7bbc838944bf624aeb89c83e3012c97c
query I rowsort
SELECT DISTINCT + 53 AS col0 FROM tab1, tab0 AS cor0
----
53
query I rowsort
SELECT + ( - 68 ) * - col0 FROM tab2 AS cor0
----
476
5304
5372
query I rowsort
SELECT + ( col0 ) * - col1 * - col0 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT 74 * col0 + + cor0.col1 FROM tab2 AS cor0
----
549
5831
5863
onlyif mysql # use DIV operator for integer division
query I rowsort label-1312
SELECT - CAST( col2 AS SIGNED ) + col0 DIV - ( 28 + col0 ) FROM tab2 cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-1312
SELECT - CAST ( col2 AS INTEGER ) + col0 / - ( 28 + col0 ) FROM tab2 cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1313
SELECT + ( 22 ) * col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1313
SELECT + ( 22 ) * col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( cor0.col2 ) * + cor0.col1 + + cor0.col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT cor0.col2 * - col0 + 81 FROM tab2 AS cor0
----
-108
-1947
-2921
query I rowsort
SELECT ALL + - col1 * col0 + + cor0.col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL + col1 + col0 * + col2 FROM tab0 cor0
----
132
7389
878
query I rowsort
SELECT ALL col2 * cor0.col0 + cor0.col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT + + 9 * col2 - col0 AS col0 FROM tab1 AS cor0
----
449
483
784
query I rowsort
SELECT + - col0 * - col2 - + ( - 25 ) * col1 AS col1 FROM tab2 AS cor0
----
3427
3503
964
query I rowsort
SELECT DISTINCT - + col0 - col1 AS col2 FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-1322
SELECT - col0 DIV col0 + + ( 96 * col0 ) FROM tab2 AS cor0
----
671
7487
7583
skipif mysql # not compatible
query I rowsort label-1322
SELECT - col0 / col0 + + ( 96 * col0 ) FROM tab2 AS cor0
----
671
7487
7583
query I rowsort
SELECT ALL col1 + col1 * col2 * 37 FROM tab2 AS cor0
----
23919
31000
56817
query I rowsort
SELECT col1 + col1 * col1 AS col0 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT - + col1 + - col0 * 61 FROM tab0 AS cor0
----
-1550
-2232
-5520
query I rowsort
SELECT ALL 15 AS col2 FROM tab0 AS cor0
----
15
15
15
query I rowsort
SELECT DISTINCT - + col1 + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT ALL col0 * col2 AS col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT ( col1 ) * - 95 AS col2 FROM tab2 AS cor0
----
-1615
-2945
-5605
query I rowsort
SELECT - col0 + 36 * + cor0.col2 FROM tab0 AS cor0
----
1
1164
2863
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1331
SELECT ALL - - col1 + CAST( NULL AS DECIMAL ) * + col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1331
SELECT ALL - - col1 + CAST ( NULL AS REAL ) * + col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 53 col0 FROM tab0 cor0
----
-20
-52
29
query I rowsort
SELECT ALL - 19 * tab0.col2 - col1 AS col1 FROM tab0
----
-116
-1649
-713
query I rowsort
SELECT ALL cor0.col1 + cor0.col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + - 28 AS col2 FROM tab0 AS cor0
----
-28
-28
-28
query I rowsort
SELECT ALL 84 + + 27 AS col1 FROM tab2 AS cor0
----
111
111
111
query I rowsort
SELECT - col0 * - ( col0 ) - - col0 AS col2 FROM tab1
----
12
4160
6480
query I rowsort
SELECT col1 + + col2 * - col0 AS col1 FROM tab1
----
-136
-3638
-7667
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1339
SELECT + CAST( NULL AS SIGNED ) + - col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1339
SELECT + CAST ( NULL AS INTEGER ) + - col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( - col0 ) * col2 FROM tab0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT DISTINCT - 8 FROM tab2, tab2 AS cor0
----
-8
query I rowsort
SELECT ( col1 ) * + col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1344
SELECT CAST( - tab1.col1 AS SIGNED ) FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-1344
SELECT CAST ( - tab1.col1 AS INTEGER ) FROM tab1
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1345
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) + + col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-1345
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) + + col0 FROM tab2
----
NULL
query I rowsort
SELECT col2 + - col0 + + col2 FROM tab0
----
-33
42
75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1347
SELECT ALL col1 - CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL col1 - CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + + col2 + 48 FROM tab1 AS cor0
----
102
105
144
query I rowsort
SELECT - + col0 + - cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
-1612
-725
-844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1350
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1350
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col0 + ( col2 ) * - col1 AS col1 FROM tab0 cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL + cor0.col0 * col0 - + 32 * col0 AS col2 FROM tab1 AS cor0
----
-87
2048
3840
query I rowsort
SELECT - - col2 + col1 * + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT - col2 * - col1 + - col1 FROM tab0 cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT + 43 * - col2 AS col0 FROM tab0 AS cor0
----
-1419
-3526
-43
query I rowsort
SELECT DISTINCT - + ( - col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ( + col0 ) * - cor0.col2 + + col0 * + col1 + - col0 FROM tab0 AS cor0
----
1248
3325
712
query I rowsort
SELECT - 96 * 21 AS col2 FROM tab1
----
-2016
-2016
-2016
query I rowsort
SELECT + ( cor0.col2 ) + col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT + cor0.col2 FROM tab1, tab2 cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 74 + + col1 col2 FROM tab0 AS cor0
----
-6278
-6643
-7081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 * col2 col1 FROM tab1
----
-1512
-1596
-2688
query I rowsort
SELECT 54 + col2 FROM tab2
----
80
81
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-1364
SELECT DISTINCT ( col0 ) DIV + col0 + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1342
-216
-4601
skipif mysql # not compatible
query I rowsort label-1364
SELECT DISTINCT ( col0 ) / + col0 + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1342
-216
-4601
query I rowsort
SELECT ALL - col2 * col0 + + col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL ( col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1367
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-1367
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
NULL
query I rowsort
SELECT DISTINCT ( + col1 ) * ( - col1 ) FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT - col2 + + ( - 48 ) AS col2 FROM tab2 cor0
----
-74
-75
-86
query I rowsort
SELECT col0 * - 55 AS col2 FROM tab0 AS cor0
----
-1320
-1925
-4895
query I rowsort
SELECT DISTINCT col2 + ( + 32 ) AS col1 FROM tab2 AS cor0
----
58
59
70
query I rowsort
SELECT ALL - + col2 * col0 AS col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + + col2 + 63 * col0 AS col0 FROM tab0 AS cor0
----
1545
2206
5689
query I rowsort
SELECT + 83 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 002a717a3d902d97220759065fb107c3
onlyif mysql # use DIV operator for integer division
query I rowsort label-1375
SELECT DISTINCT cor0.col2 DIV 66 AS col0 FROM tab0, tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT cor0.col2 / 66 AS col0 FROM tab0, tab0 AS cor0
----
0
1
query I rowsort
SELECT ALL 53 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 * tab2.col1 col0 FROM tab2
----
1360
248
4661
query I rowsort
SELECT + col2 + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964
skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 * CAST ( col2 AS REAL ) + - cor0.col0 AS col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT ALL 29 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
query I rowsort
SELECT + col0 * ( - col1 + 57 ) AS col0 FROM tab2 AS cor0
----
-156
182
3160
query I rowsort
SELECT + 34 AS col1 FROM tab2 cor0
----
34
34
34
query I rowsort
SELECT ALL + col1 * 84 AS col0 FROM tab0
----
7224
7644
8148
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab0 AS cor0 WHERE NOT NULL < NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT - 79 + col2 AS col2 FROM tab1 AS cor0
----
-22
-25
17
query I rowsort
SELECT col1 * 39 * col1 FROM tab1
----
26364
3900
6591
query I rowsort
SELECT 5 * col2 + col2 FROM tab2 AS cor0
----
156
162
228
query I rowsort
SELECT ALL col0 * + col2 + tab1.col0 AS col1 FROM tab1
----
165
3712
7760
query I rowsort
SELECT ALL 47 + - col1 FROM tab1
----
21
34
37
query I rowsort
SELECT - tab1.col2 + - 11 FROM tab1, tab0 AS cor0
----
9 values hashing to 9b630042500cd20f202d4fb8dbb15e2f
query I rowsort
SELECT - 52 + - col1 FROM tab0 AS cor0
----
-138
-143
-149
query I rowsort
SELECT + col1 * col2 + col1 + ( - col0 ) * col2 FROM tab1 AS cor0
----
-3068
-6419
1268
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 col1 FROM tab2 cor0
----
26
query I rowsort
SELECT DISTINCT 56 * - col0 FROM tab1 AS cor0
----
-168
-3584
-4480
query I rowsort
SELECT ALL - + ( col0 ) + ( + col0 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 86 * - col1 FROM tab2 cor0
----
-1462
-2666
-5074
query I rowsort
SELECT ALL 33 * + col0 FROM tab1 AS cor0
----
2112
2640
99
query I rowsort
SELECT cor0.col0 + - cor0.col0 * + col1 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT + 27 AS col1 FROM tab2 AS cor0
----
27
query I rowsort
SELECT - col0 * 80 AS col2 FROM tab1 AS cor0
----
-240
-5120
-6400
query I rowsort
SELECT ALL cor0.col1 * + cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - 52 * + col0 FROM tab0 AS cor0
----
-1248
-1820
-4628
query I rowsort
SELECT - - 13 + + col2 AS col1 FROM tab0 AS cor0
----
14
46
95
query I rowsort
SELECT - + col1 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - 23 AS col1 FROM tab2 AS cor0
----
-23
query I rowsort
SELECT + cor0.col0 * - 46 + + col1 + - col1 FROM tab2 AS cor0
----
-322
-3588
-3634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1408
SELECT col2 * - CAST( col1 AS SIGNED ) FROM tab1
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-1408
SELECT col2 * - CAST ( col1 AS INTEGER ) FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + col2 * col2 * + tab0.col2 AS col1 FROM tab0
----
1
35937
551368
query I rowsort
SELECT col2 * + 7 FROM tab0
----
231
574
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1411
SELECT col0 DIV 50 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1411
SELECT col0 / 50 FROM tab0
----
0
0
1
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab2 cor1
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
query I rowsort
SELECT - 6 + col1 + col2 FROM tab2 AS cor0
----
49
52
79
query I rowsort
SELECT 37 * col1 FROM tab0 AS cor0
----
3182
3367
3589
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1415
SELECT col2 / col0 + col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1415
SELECT col2 / col0 + col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col1 + + col2 + col0 FROM tab1 cor0
----
131
189
83
query I rowsort
SELECT - ( cor0.col0 ) * - col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - 3 AS col0 FROM tab0
----
-3
-3
-3
query I rowsort
SELECT ALL - + col1 - col0 * col2 AS col0 FROM tab2 AS cor0
----
-2087
-220
-3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - col0 col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - col2 + + ( + col1 ) * col1 + ( - 49 * col2 ) AS col2 FROM tab1
----
-2024
-2750
-4631
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1422
SELECT col1 * CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1422
SELECT col1 * CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + 60 + col0 AS col0 FROM tab0
----
117
231
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1424
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-1424
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0, tab0 AS cor2
----
3645 values hashing to 48366b93fe9110d617672483a489e89c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * + 10 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to bd64178446955b7a7e2185b2e9f87b8e
query I rowsort
SELECT ALL - - cor0.col2 * - col1 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1429
SELECT ALL - col2 * - CAST( 41 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1066
1107
1558
skipif mysql # not compatible
query I rowsort label-1429
SELECT ALL - col2 * - CAST ( 41 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1066
1107
1558
query I rowsort
SELECT col1 * + col0 * col0 AS col1 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT + col0 + + col0 * + col1 AS col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT cor0.col2 * 48 FROM tab1 AS cor0
----
2592
2736
4608
query I rowsort
SELECT + + col1 * + col1 + - col2 * - col2 FROM tab1 AS cor0
----
3349
3592
9385
query I rowsort
SELECT - col2 * + col1 + - col2 AS col1 FROM tab1 AS cor0
----
-1344
-1458
-627
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col1 AS REAL ) FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT + 15 + - cor0.col0 * - col2 FROM tab2 AS cor0
----
204
2043
3017
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1437
SELECT - + CAST( col2 AS SIGNED ) + col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1437
SELECT - + CAST ( col2 AS INTEGER ) + col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 99 AS col0 FROM tab2 AS cor0
----
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1439
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - 14 AS col2 FROM tab2 cor0
----
-14
-14
-14
query I rowsort
SELECT ALL 30 * 29 AS col1 FROM tab2 AS cor0
----
870
870
870
query I rowsort
SELECT ALL + col0 * + col0 AS col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT ALL + ( col2 ) + col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL col1 + 2 + col0 FROM tab1 AS cor0
----
31
76
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col0 col2 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1446
SELECT DISTINCT - - col0 DIV - col0 FROM tab1 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT - - col0 / - col0 FROM tab1 cor0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1447
SELECT ALL + 15 DIV col1 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1447
SELECT ALL + 15 / col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 + col0 + 55 * - cor0.col1 FROM tab1 AS cor0
----
-1424
-422
-555
query I rowsort
SELECT + - col1 * - col1 * 58 + col1 + + col2 * 11 FROM tab1 AS cor0
----
10871
39828
6437
query I rowsort
SELECT DISTINCT 67 * col1 FROM tab1 cor0
----
1742
670
871
query I rowsort
SELECT 63 + col0 + + col1 AS col0 FROM tab0 AS cor0
----
173
195
243
query I rowsort
SELECT tab0.col1 * - 80 FROM tab0, tab1 AS cor0
----
9 values hashing to aecd51c8b7b5398743117a92a0a593fb
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 + - 15 col0 FROM tab1 AS cor0
----
147
3633
7665
query I rowsort
SELECT - cor0.col1 + cor0.col1 * 52 * - col1 FROM tab1 AS cor0
----
-35178
-5210
-8801
query I rowsort
SELECT DISTINCT - col1 + - col1 * - 98 * - col2 FROM tab2 AS cor0
----
-150391
-63325
-82057
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 20 col2 FROM tab2 AS cor0
----
37
51
79
query I rowsort
SELECT ALL + cor0.col0 * + 33 * - col0 AS col2 FROM tab0 AS cor0
----
-19008
-261393
-40425
query I rowsort
SELECT ALL - 96 + tab0.col1 AS col0 FROM tab0
----
-10
-5
1
query I rowsort
SELECT DISTINCT col0 * tab2.col0 + ( - tab2.col0 ) + col2 FROM tab2
----
6032
6200
69
query I rowsort
SELECT + 87 + tab1.col1 + - 57 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 48250d863918bc1d1eb4c9e45be4f07b
query I rowsort
SELECT col2 * col0 * + col0 + tab0.col1 * col0 FROM tab0
----
21072
4620
657621
query I rowsort
SELECT - col1 - col2 * tab2.col0 FROM tab2
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT col1 * col1 + - 77 FROM tab0
----
7319
8204
9332
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 col2 FROM tab1, tab2 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - col1 + - col0 AS col0 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT + col0 * col2 * - col0 + + col2 AS col1 FROM tab1
----
-233415
-432
-614304
onlyif mysql # use DIV operator for integer division
query I rowsort label-1467
SELECT + cor0.col2 + col2 DIV + ( - 51 + col2 * - col2 ) FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-1467
SELECT + cor0.col2 + col2 / + ( - 51 + col2 * - col2 ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL ( - col0 ) * tab0.col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL + 62 AS col2 FROM tab1
----
62
62
62
query I rowsort
SELECT + col2 + - col0 * + ( col0 ) FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT DISTINCT + + 74 AS col1 FROM tab1, tab0, tab0 AS cor0
----
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-1472
SELECT ALL + cor0.col2 DIV col1 AS col2 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL + cor0.col2 / col1 AS col2 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT - 1 + col1 AS col0 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT ALL cor1.col0 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT col1 + - col1 * tab0.col1 AS col1 FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT - col2 + - 68 + 90 FROM tab2
----
-16
-4
-5
query I rowsort
SELECT - col1 * 67 FROM tab2
----
-1139
-2077
-3953
query I rowsort
SELECT DISTINCT - col0 * - tab0.col0 * + col0 + col0 + + ( 98 ) AS col2 FROM tab0
----
13946
43008
705156
query I rowsort
SELECT - col1 + col2 * col0 FROM tab0
----
-62
706
7207
query I rowsort
SELECT DISTINCT - col1 + + 85 FROM tab1
----
59
72
75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1481
SELECT ALL + - cor0.col2 + CAST( NULL AS DECIMAL ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL + - cor0.col2 + CAST ( NULL AS REAL ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 + - ( ( - cor0.col0 ) ) AS col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL col2 * 46 AS col2 FROM tab0 cor0
----
1518
3772
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-1484
SELECT - cor0.col0 + col2 DIV + 99 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-1484
SELECT - cor0.col0 + col2 / + 99 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - - cor0.col0 + ( + col2 ) * + col0 + ( + ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
69
7305
783
query I rowsort
SELECT ALL col1 * - col0 * 98 + - col0 AS col2 FROM tab2 AS cor0
----
-131693
-21273
-451074
query I rowsort
SELECT DISTINCT - col0 * - ( + ( cor0.col2 ) ) + + 9 AS col0 FROM tab0 AS cor0
----
44
7307
801
query I rowsort
SELECT + col0 * - 36 AS col1 FROM tab1 cor0
----
-108
-2304
-2880
query I rowsort
SELECT ALL col1 * - 99 AS col2 FROM tab1 AS cor0
----
-1287
-2574
-990
query I rowsort
SELECT DISTINCT - 90 * 91 + - cor0.col0 + - col1 FROM tab2 AS cor0
----
-8228
-8286
-8327
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 col0 FROM tab0 AS cor0
----
50
50
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1492
SELECT - CAST( 55 AS SIGNED ) + + col1 * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1492
SELECT - CAST ( 55 AS INTEGER ) + + col1 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 + - cor0.col2 FROM tab0 cor0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 * + 34 + - col0 * + 12 col2 FROM tab0 AS cor0
----
1004
224
872
query I rowsort
SELECT - - col0 + - ( col2 ) FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL + 82 + col2 FROM tab0 AS cor0
----
115
164
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-1497
SELECT ALL + - 66 DIV - ( + col1 ) AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL + - 66 / - ( + col1 ) AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - 15 * - col0 AS col0 FROM tab1 AS cor0
----
1200
45
960
query I rowsort
SELECT - 66 + + cor0.col0 * col2 FROM tab0 cor0
----
-31
7232
726
query I rowsort
SELECT DISTINCT 32 * col2 + col1 * + col1 AS col1 FROM tab2 AS cor0
----
1505
1825
4313
query I rowsort
SELECT - col0 - 10 FROM tab1
----
-13
-74
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1502
SELECT col2 + - CAST( - col1 + col1 AS SIGNED ) FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-1502
SELECT col2 + - CAST ( - col1 + col1 AS INTEGER ) FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT + - col1 + + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( cor0.col2 ) col1 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1505
SELECT ALL + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-1505
SELECT ALL + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - col1 + 3 FROM tab0 AS cor0
----
-83
-88
-94
query I rowsort
SELECT - col2 * col0 + col0 FROM tab2 cor0
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-1508
SELECT ALL - + col0 DIV - 74 + + col0 + col1 FROM tab1 AS cor0
----
29
74
94
skipif mysql # not compatible
query I rowsort label-1508
SELECT ALL - + col0 / - 74 + + col0 + col1 FROM tab1 AS cor0
----
29
74
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1509
SELECT CAST( NULL AS DECIMAL ) * ( col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1509
SELECT CAST ( NULL AS REAL ) * ( col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( 92 ) + + col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1626
-738
-929
query I rowsort
SELECT + + cor0.col1 + col1 FROM tab1 AS cor0
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 * col1 col2 FROM tab2 cor0
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 col2 FROM tab0 cor0
----
91
91
91
query I rowsort
SELECT ALL + 14 AS col2 FROM tab1
----
14
14
14
query I rowsort
SELECT DISTINCT 11 * - tab1.col1 * col0 FROM tab1
----
-11440
-7040
-858
query I rowsort
SELECT ( 67 ) AS col2 FROM tab0
----
67
67
67
query I rowsort
SELECT DISTINCT + 45 AS col0 FROM tab2, tab1, tab1 AS cor0
----
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-1518
SELECT CAST( col0 AS SIGNED ) * - col0 + + 51 DIV col1 AS col1 FROM tab2
----
-48
-6084
-6238
skipif mysql # not compatible
query I rowsort label-1518
SELECT CAST ( col0 AS INTEGER ) * - col0 + + 51 / col1 AS col1 FROM tab2
----
-48
-6084
-6238
query I rowsort
SELECT + tab0.col0 * 10 + col0 AS col0 FROM tab0
----
264
385
979
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1521
SELECT col1 - - CAST( 65 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
151
156
162
skipif mysql # not compatible
query I rowsort label-1521
SELECT col1 - - CAST ( 65 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
151
156
162
query I rowsort
SELECT - + col1 * col0 + 44 FROM tab1 AS cor0
----
-34
-596
-996
query I rowsort
SELECT col1 * + 24 * col0 AS col1 FROM tab1 AS cor0
----
15360
1872
24960
query I rowsort
SELECT + col0 - ( col2 ) * col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT - - col1 * 5 * + col2 FROM tab1 AS cor0
----
2850
6240
7020
onlyif mysql # use DIV operator for integer division
query I rowsort label-1526
SELECT + col0 DIV col0 - - col1 * col2 FROM tab2 AS cor0
----
1535
647
838
skipif mysql # not compatible
query I rowsort label-1526
SELECT + col0 / col0 - - col1 * col2 FROM tab2 AS cor0
----
1535
647
838
query I rowsort
SELECT - - col0 * - ( col1 ) + col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT + col2 + + 15 AS col0 FROM tab1 AS cor0
----
111
69
72
query I rowsort
SELECT - - col1 * + 84 AS col1 FROM tab0 AS cor0
----
7224
7644
8148
query I rowsort
SELECT ALL col1 * + col1 - + 86 * col1 FROM tab1 cor0
----
-1560
-760
-949
query I rowsort
SELECT - col1 * + 4 FROM tab1 AS cor0
----
-104
-40
-52
query I rowsort
SELECT ALL tab1.col2 * tab1.col1 + + 44 * - tab1.col0 FROM tab1
----
-2246
-2272
1272
query I rowsort
SELECT ALL 77 + col2 * + col0 AS col0 FROM tab2
----
2105
266
3079
query I rowsort
SELECT - col0 + col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
159
3584
7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-1535
SELECT col2 + 46 DIV col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-1535
SELECT col2 + 46 / col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - - col2 + ( 33 ) * + col0 AS col1 FROM tab1 cor0
----
153
2169
2736
onlyif mysql # use DIV operator for integer division
query I rowsort label-1537
SELECT - - col0 DIV col0 - - col2 AS col2 FROM tab1 cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-1537
SELECT - - col0 / col0 - - col2 AS col2 FROM tab1 cor0
----
55
58
97
query I rowsort
SELECT col0 * col0 + - ( - col0 ) AS col0 FROM tab1 AS cor0
----
12
4160
6480
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1539
SELECT ALL col2 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1539
SELECT ALL col2 * + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 * 35 * + 45 FROM tab2 cor0
----
-26775
-48825
-92925
query I rowsort
SELECT + ( 25 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
query I rowsort
SELECT ALL 59 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
query I rowsort
SELECT DISTINCT - col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - col2 * - col1 - 83 AS col2 FROM tab2 AS cor0
----
1451
563
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-1545
SELECT DISTINCT - + cor0.col0 + - col0 DIV col2 FROM tab0 AS cor0
----
-24
-70
-90
skipif mysql # not compatible
query I rowsort label-1545
SELECT DISTINCT - + cor0.col0 + - col0 / col2 FROM tab0 AS cor0
----
-24
-70
-90
query I rowsort
SELECT ALL + 49 + - 3 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 * ( col1 ) + - col0 * 67 col1 FROM tab0 AS cor0
----
-3142
1058
662
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 + - col2 col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT - - cor0.col2 + - col0 * col2 AS col1 FROM tab2 cor0
----
-162
-2002
-2964
query I rowsort
SELECT 48 + - 15 FROM tab2 AS cor0
----
33
33
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 * ( col0 ) + + 91 * 31 col0 FROM tab1 cor0
----
-2171
-3419
2587
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1552
SELECT + + CAST( cor0.col0 AS SIGNED ) * - col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-1552
SELECT + + CAST ( cor0.col0 AS INTEGER ) * - col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 - + col0 col1 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT DISTINCT cor0.col2 * - col2 + cor0.col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT - + col1 * 0 + - col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT 90 * col2 AS col0 FROM tab1 AS cor0
----
4860
5130
8640
onlyif mysql # use DIV operator for integer division
query I rowsort label-1557
SELECT col2 + - ( 10 ) DIV col2 FROM tab0
----
-9
33
82
skipif mysql # not compatible
query I rowsort label-1557
SELECT col2 + - ( 10 ) / col2 FROM tab0
----
-9
33
82
query I rowsort
SELECT col1 - + 30 * col1 FROM tab0
----
-2494
-2639
-2813
query I rowsort
SELECT ALL - 63 * col2 AS col1 FROM tab0 AS cor0
----
-2079
-5166
-63
query I rowsort
SELECT + + 17 + col0 FROM tab1 AS cor0
----
20
81
97
query I rowsort
SELECT DISTINCT col0 + - col1 * ( cor0.col2 ) AS col1 FROM tab2 cor0
----
-1456
-567
-830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * col1 col0 FROM tab2
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 col0 FROM tab0
----
-19
-19
-19
query I rowsort
SELECT + col2 * + 98 AS col0 FROM tab2
----
2548
2646
3724
query I rowsort
SELECT ALL - col0 * + tab1.col1 AS col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL + 91 + col1 * tab2.col1 FROM tab2
----
1052
3572
380
query I rowsort
SELECT ALL 60 + col2 + + tab1.col0 FROM tab1
----
117
181
236
query I rowsort
SELECT ALL - cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - + col2 * 81 AS col2 FROM tab2 AS cor0
----
-2106
-2187
-3078
query I rowsort
SELECT ALL + cor0.col0 + + ( col2 * col2 ) FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT ALL - + col0 * + 52 FROM tab2 AS cor0
----
-364
-4056
-4108
query I rowsort
SELECT DISTINCT + 98 * - col1 + 30 AS col2 FROM tab2
----
-1636
-3008
-5752
query I rowsort
SELECT DISTINCT tab0.col1 * col1 * + 34 + - col1 AS col1 FROM tab0
----
251378
281463
319809
query I rowsort
SELECT ALL 81 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT + cor0.col2 * col0 * - col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT + col0 + 75 AS col1 FROM tab2 AS cor0
----
153
154
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1577
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) + cor0.col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1577
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + col2 + + col1 * cor0.col0 FROM tab2 cor0
----
1381
244
4628
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1579
SELECT ALL + col1 * CAST( - 2 + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1222
1352
550
skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL + col1 * CAST ( - 2 + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1222
1352
550
query I rowsort
SELECT ALL - col2 * 64 FROM tab2 AS cor0
----
-1664
-1728
-2432
query I rowsort
SELECT - col1 * - 52 + - col0 AS col0 FROM tab1 AS cor0
----
1349
456
596
query I rowsort
SELECT ALL + + col1 * col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - ( - 16 ) AS col2 FROM tab0 AS cor0
----
16
16
16
query I rowsort
SELECT - 48 + + 59 AS col2 FROM tab2 AS cor0
----
11
11
11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1585
SELECT + CAST( NULL AS DECIMAL ) - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1585
SELECT + CAST ( NULL AS REAL ) - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 87 * col2 - - col0 AS col1 FROM tab0 AS cor0
----
-2847
-52
-7045
query I rowsort
SELECT cor0.col2 * - 50 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-1357
-1378
-1979
query I rowsort
SELECT ALL 44 * col2 AS col0 FROM tab1 AS cor0
----
2376
2508
4224
query I rowsort
SELECT DISTINCT + col0 + - col0 FROM tab1 cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1590
SELECT - CAST( NULL AS SIGNED ) + 71 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1590
SELECT - CAST ( NULL AS INTEGER ) + 71 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 - ( - cor0.col0 * - col0 ) AS col0 FROM tab1 AS cor0
----
-4039
-6304
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-1592
SELECT ALL + col2 + - col0 DIV col2 AS col2 FROM tab1 AS cor0
----
54
56
96
skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL + col2 + - col0 / col2 AS col2 FROM tab1 AS cor0
----
54
56
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1593
SELECT + col1 * + col0 + + CAST( col1 + col0 AS SIGNED ) * col1 * + ( - col2 ) FROM tab1 cor0
----
-115024
-40638
-41540
skipif mysql # not compatible
query I rowsort label-1593
SELECT + col1 * + col0 + + CAST ( col1 + col0 AS INTEGER ) * col1 * + ( - col2 ) FROM tab1 cor0
----
-115024
-40638
-41540
query I rowsort
SELECT - 68 * + col0 AS col2 FROM tab1 cor0
----
-204
-4352
-5440
query I rowsort
SELECT DISTINCT + + 53 FROM tab1 AS cor0
----
53
query I rowsort
SELECT DISTINCT - 50 FROM tab2, tab1 AS cor0
----
-50
query I rowsort
SELECT + + 80 * + col0 + + col1 AS col1 FROM tab1 AS cor0
----
266
5130
6413
query I rowsort
SELECT cor0.col1 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col0 ) NOT IN ( - col1 )
----
query I rowsort
SELECT col1 * tab1.col1 * col0 + + tab1.col1 AS col1 FROM tab1
----
13533
2054
6410
query I rowsort
SELECT ALL - col2 + tab2.col1 AS col1 FROM tab2
----
-21
33
4
query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT + col0 * - col1 AS col0 FROM tab2 WHERE NOT col0 + - col2 IN ( col0 )
----
-1343
-217
-4602
query I rowsort
SELECT ALL tab1.col0 * col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT tab1.col2 - col2 * col1 AS col2 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT col2 * col0 + col0 * col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT + tab1.col1 + - col2 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT + col2 * col2 FROM tab0 WHERE ( NULL ) >= col2
----
query I rowsort
SELECT - col2 * col0 + + col1 FROM tab1
----
-136
-3638
-7667
query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * col2 * col1 + + col2 / col1 + col1 < NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 + col0 * col0 col1 FROM tab1
----
15616
2925
7345
onlyif mysql # use DIV operator for integer division
query I rowsort label-1612
SELECT DISTINCT - col1 DIV col2 + - col1 AS col2 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT - col1 / col2 + - col1 AS col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + col2 * - tab1.col1 AS col0 FROM tab1
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-1614
SELECT - tab0.col2 DIV tab0.col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1614
SELECT - tab0.col2 / tab0.col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT col1 + col0 / col0 NOT IN ( - tab0.col2 * + tab0.col2 + col1 * - col0 + col2 )
----
query I rowsort
SELECT - - col1 * + cor0.col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + cor0.col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT cor0.col1 * - col2 * col2 AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT - col2 * + col0 + col1 * + col1 AS col2 FROM tab0
----
6604
9374
983
query I rowsort
SELECT ALL + col1 + - col0 * tab1.col0 * col2 AS col0 FROM tab1
----
-233462
-460
-614387
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col1 * - col0 + - col1 col1 FROM tab1 WHERE + col2 > ( NULL )
----
query I rowsort
SELECT + col1 * - col2 - - tab2.col0 FROM tab2 WHERE NOT col0 IN ( + col1 * + tab2.col1 )
----
-1456
-567
-830
query I rowsort
SELECT - col1 + col2 * col2 AS col1 FROM tab2
----
1427
617
698
query I rowsort
SELECT ALL + col1 - col0 * + col0 AS col0 FROM tab1
----
-4086
-6387
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT cor0.col2 + - col1 AS col2 FROM tab0 cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1627
SELECT DISTINCT col2 + col1 + col1 DIV + tab0.col0 FROM tab0
----
100
122
174
skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT col2 + col1 + col1 / + tab0.col0 FROM tab0
----
100
122
174
query I rowsort
SELECT DISTINCT - col0 + - col1 * + col2 + + col2 AS col2 FROM tab0
----
-131
-2829
-7469
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 ) >= ( col0 * - col1 - col2 * col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 ) NOT IN ( tab0.col0 / + col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT - tab1.col2 * + col1 * col2 + + col2 * - col1 AS col0 FROM tab1
----
-121056
-33060
-77220
query I rowsort
SELECT + col2 + + col2 * col1 AS col2 FROM tab1 WHERE NOT ( + col0 ) >= ( NULL )
----
query I rowsort
SELECT DISTINCT + col2 * - col2 + + col0 FROM tab1
----
-2913
-3185
-9136
query I rowsort
SELECT col1 * col0 * col0 AS col2 FROM tab1
----
234
40960
83200
query I rowsort
SELECT ALL col1 * tab1.col1 AS col1 FROM tab1
----
100
169
676
query I rowsort
SELECT - col1 * - col1 * + tab2.col2 + - col1 * + col1 AS col1 FROM tab2
----
10693
24986
87025
query I rowsort
SELECT - col1 * col2 * + col0 AS col1 FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT col1 + col2 + + col2 AS col1 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT col2 + + col0 * + tab0.col1 AS col1 FROM tab0
----
2097
3396
8181
query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT IN ( col1 * + col2 )
----
query I rowsort
SELECT ALL + col2 * + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT col2 * col1 + + col0 * col1 + cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
1891
2635
7670
query I rowsort
SELECT ALL 99 AS col1 FROM tab1, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to c841a8d826151b422ecdb71db0250739
query I rowsort
SELECT ALL cor0.col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT - col2 * tab2.col1 * + col1 FROM tab2
----
-10982
-25947
-90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-1646
SELECT DISTINCT + col0 * ( - ( + col1 ) * - 84 ) + - col0 + cor0.col2 DIV col1 FROM tab2 AS cor0
----
112735
18221
386490
skipif mysql # not compatible
query I rowsort label-1646
SELECT DISTINCT + col0 * ( - ( + col1 ) * - 84 ) + - col0 + cor0.col2 / col1 FROM tab2 AS cor0
----
112735
18221
386490
query I rowsort
SELECT + col2 * 74 + col1 * + col2 FROM tab1 AS cor0
----
4788
5400
8352
query I rowsort
SELECT ALL - col2 + ( col1 ) * cor0.col1 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT + + col0 * + col1 * - cor0.col2 + 33 * - col1 FROM tab2 AS cor0
----
-121599
-51595
-6882
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 + + col1 + 30 col0 FROM tab1 AS cor0
----
218
3688
7723
query I rowsort
SELECT + 53 * 78 + + col1 + col0 AS col0 FROM tab2 AS cor0
----
4172
4230
4271
query I rowsort
SELECT - col1 + - col2 * + cor0.col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT col2 + + cor0.col1 * ( + col1 * col1 ) AS col2 FROM tab0 AS cor0
----
636089
753653
912674
query I rowsort
SELECT DISTINCT + tab1.col2 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
54
57
96
query I rowsort
SELECT cor0.col0 FROM tab1, tab0, tab1 AS cor0, tab2 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT DISTINCT - col0 * - col1 * col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT 54 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query I rowsort
SELECT + col0 + cor0.col2 + + col1 AS col2 FROM tab0 AS cor0
----
133
143
262
onlyif mysql # use DIV operator for integer division
query I rowsort label-1660
SELECT - - col0 DIV - col0 + - col0 + cor0.col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1121
-705
-82
skipif mysql # not compatible
query I rowsort label-1660
SELECT - - col0 / - col0 + - col0 + cor0.col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1121
-705
-82
query I rowsort
SELECT col2 * col2 + - col0 + col0 AS col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - col0 * - 65 - - ( + col1 ) FROM tab1 AS cor0
----
221
4170
5213
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - 66 + + col0 * - col1 FROM tab2
----
-1409
-283
-4668
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1665
SELECT ALL CAST( col0 AS SIGNED ) FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL CAST ( col0 AS INTEGER ) FROM tab0
----
24
35
89
query I rowsort
SELECT ALL ( - col2 * + col0 ) AS col0 FROM tab0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1667
SELECT - 23 / col0 + col0 * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1667
SELECT - 23 / col0 + col0 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 31 + - col1 FROM tab1 AS cor0
----
-41
-44
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1669
SELECT - cor0.col1 DIV - col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1669
SELECT - cor0.col1 / - col1 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col2 col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - + col2 * - col0 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1672
SELECT - - ( - col2 ) * CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1672
SELECT - - ( - col2 ) * CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + col2 * + col0 * - 92 FROM tab2 cor0
----
-17381
-186498
-276105
onlyif mysql # use DIV operator for integer division
query I rowsort label-1674
SELECT DISTINCT + cor0.col2 DIV col1 + + col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT + cor0.col2 / col1 + + col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + + 38 + + col1 FROM tab1 AS cor0
----
48
51
64
query I rowsort
SELECT DISTINCT + - col1 + - col2 * + col1 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + col2 col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT + col1 - + ( + cor0.col2 + + col1 * - ( col1 ) ) AS col0 FROM tab2 AS cor0
----
268
3514
965
query I rowsort
SELECT + - col1 + + ( + col0 ) FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1680
SELECT - cor0.col0 * CAST( - 57 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
399
4446
4503
skipif mysql # not compatible
query I rowsort label-1680
SELECT - cor0.col0 * CAST ( - 57 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
399
4446
4503
query I rowsort
SELECT - + col2 * - 68 FROM tab2 AS cor0
----
1768
1836
2584
query I rowsort
SELECT DISTINCT - cor0.col1 * 78 FROM tab2, tab2 AS cor0
----
-1326
-2418
-4602
query I rowsort
SELECT - col1 * col0 + - col1 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-1684
SELECT - - col2 DIV ( + ( - col0 ) ) + + 99 + col1 * col2 * + 75 AS col2 FROM tab0 AS cor0
----
212948
559749
7374
skipif mysql # not compatible
query I rowsort label-1684
SELECT - - col2 / ( + ( - col0 ) ) + + 99 + col1 * col2 * + 75 AS col2 FROM tab0 AS cor0
----
212948
559749
7374
query I rowsort
SELECT DISTINCT - cor1.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1686
SELECT + col0 + - cor0.col2 DIV + cor0.col2 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-1686
SELECT + col0 + - cor0.col2 / + cor0.col2 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT ALL - + ( + col0 ) * - col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - col0 * 44 + col2 FROM tab2 AS cor0
----
-281
-3406
-3438
query I rowsort
SELECT + col0 + - ( col2 ) FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT - 30 * cor0.col1 FROM tab2 cor0
----
-1770
-510
-930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 col2 FROM tab1 AS cor0
----
15
query I rowsort
SELECT - 32 AS col1 FROM tab2 AS cor0
----
-32
-32
-32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1693
SELECT ALL - + CAST( - col2 AS SIGNED ) * col2 FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL - + CAST ( - col2 AS INTEGER ) * col2 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-1694
SELECT + 57 + - ( - col1 ) * col1 + 85 DIV col2 FROM tab0 AS cor0
----
7455
8339
9551
skipif mysql # not compatible
query I rowsort label-1694
SELECT + 57 + - ( - col1 ) * col1 + 85 / col2 FROM tab0 AS cor0
----
7455
8339
9551
query I rowsort
SELECT ALL - cor0.col2 * + ( + col0 * ( - 15 ) ) AS col0 FROM tab2 AS cor0
----
2835
30420
45030
query I rowsort
SELECT DISTINCT col1 + col2 + cor0.col0 FROM tab2 cor0
----
134
163
65
query I rowsort
SELECT ALL 0 * 85 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - - 18 + col1 * - col2 FROM tab1 AS cor0
----
-1230
-1386
-552
query I rowsort
SELECT DISTINCT + + ( - cor0.col0 ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - 71 + + col2 FROM tab0 cor0
----
-38
-70
11
query I rowsort
SELECT ALL - + cor0.col1 + + col1 - + col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + tab0.col2 + tab0.col2 + - col2 AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL + col1 * 87 + + col2 AS col0 FROM tab2
----
1517
2724
5159
query I rowsort
SELECT DISTINCT + col0 + col0 - + col0 * col2 FROM tab1
----
-156
-3520
-7520
query I rowsort
SELECT + 48 + - col0 AS col2 FROM tab0
----
-41
13
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1706
SELECT CAST( 93 AS SIGNED ) + col2 col2 FROM tab0
----
126
175
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1706
SELECT CAST ( 93 AS INTEGER ) + col2 col2 FROM tab0
----
126
175
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1707
SELECT ALL CAST( NULL AS SIGNED ) + 43 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL CAST ( NULL AS INTEGER ) + 43 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col2 * 37 AS col0 FROM tab2 AS cor0
----
1406
962
999
query I rowsort
SELECT ALL - col0 * col0 AS col0 FROM tab2 cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 * - cor0.col0 col0 FROM tab2 AS cor0
----
-168
-1872
-1896
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to d6a6e32c6adcc8525ed3eb7827781237
onlyif mysql # use DIV operator for integer division
query I rowsort label-1712
SELECT ALL - + col2 * + col1 * + col0 + col2 * 96 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
-36384
-4116
-99744
skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL - + col2 * + col1 * + col0 + col2 * 96 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
-36384
-4116
-99744
query I rowsort
SELECT ALL - 91 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab
onlyif mysql # use DIV operator for integer division
query I rowsort label-1714
SELECT ALL col1 * + tab1.col1 + ( col1 ) DIV - col1 AS col0 FROM tab1
----
168
675
99
skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL col1 * + tab1.col1 + ( col1 ) / - col1 AS col0 FROM tab1
----
168
675
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + 8 * 25 + + tab2.col2 col2 FROM tab2
----
148
159
220
query I rowsort
SELECT + - col0 + - col2 * - cor0.col2 FROM tab2 cor0
----
1365
598
722
query I rowsort
SELECT ALL cor0.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to c6425afc100dd55de8d45dec18c469ea
query I rowsort
SELECT ALL + col1 + + col2 * col2 AS col0 FROM tab1
----
2942
3259
9229
query I rowsort
SELECT DISTINCT cor1.col1 FROM tab0, tab0 cor0, tab2 cor1
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1720
SELECT + col2 * - CAST( NULL AS SIGNED ) / 13 + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1720
SELECT + col2 * - CAST ( NULL AS INTEGER ) / 13 + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col1 + ( ( col2 ) ) FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-1722
SELECT ALL - col0 DIV CAST( + col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL - col0 / CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
-1
-4
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1723
SELECT DISTINCT col0 + + ( 93 ) DIV - col1 AS col1 FROM tab1 AS cor0
----
0
55
73
skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT col0 + + ( 93 ) / - col1 AS col1 FROM tab1 AS cor0
----
0
55
73
query I rowsort
SELECT - cor0.col2 + - col1 + + col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT col0 + - col1 AS col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT - col1 * - col1 + ( - col0 + col0 ) FROM tab1 AS cor0
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1727
SELECT ALL - col0 * + col0 + CAST( - col2 + col0 AS SIGNED ) * - 62 FROM tab0 AS cor0
----
-18
-3333
-8355
skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL - col0 * + col0 + CAST ( - col2 + col0 AS INTEGER ) * - 62 FROM tab0 AS cor0
----
-18
-3333
-8355
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1728
SELECT cor0.col0 * - col0 + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1728
SELECT cor0.col0 * - col0 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 94 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e
query I rowsort
SELECT - cor0.col1 - col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT + + col2 * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 * + col0 col1 FROM tab0 cor0
----
1296
1890
4806
query I rowsort
SELECT - - 45 * - col2 + - 90 AS col2 FROM tab0 AS cor0
----
-135
-1575
-3780
query I rowsort
SELECT ALL - col0 - - cor0.col2 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-1735
SELECT DISTINCT + col1 DIV col1 AS col1 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT + col1 / col1 AS col1 FROM tab2 AS cor0
----
1
query I rowsort
SELECT DISTINCT col0 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - - 57 * + cor0.col2 + - 29 FROM tab0 AS cor0
----
1852
28
4645
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - col2 col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1739
SELECT + cor0.col2 * ( + col0 ) + - cor0.col0 DIV ( 41 ) FROM tab0 AS cor0
----
35
7296
792
skipif mysql # not compatible
query I rowsort label-1739
SELECT + cor0.col2 * ( + col0 ) + - cor0.col0 / ( 41 ) FROM tab0 AS cor0
----
35
7296
792
query I rowsort
SELECT - col0 * - col1 + col2 FROM tab2 cor0
----
1381
244
4628
query I rowsort
SELECT 21 AS col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
query I rowsort
SELECT DISTINCT - + cor0.col0 * col2 - - col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT - - col1 + col0 * ( + col2 + cor0.col2 ) FROM tab1 AS cor0
----
15373
350
7306
query I rowsort
SELECT 53 * col2 AS col1 FROM tab0
----
1749
4346
53
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to 958533d1a7bf61199ed7c03eadf37f9a
query I rowsort
SELECT DISTINCT - 3 * - col1 + - col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT - 12 + + col1 FROM tab0 AS cor0
----
74
79
85
query I rowsort
SELECT ALL - 5 AS col0 FROM tab2 cor0
----
-5
-5
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-1749
SELECT ALL - col0 DIV - cor0.col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-1749
SELECT ALL - col0 / - cor0.col1 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT DISTINCT - + col0 * - 42 FROM tab2 AS cor0
----
294
3276
3318
query I rowsort
SELECT - col0 + col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT - col2 + 80 + + col1 FROM tab1
----
-3
33
52
query I rowsort
SELECT - - col1 - cor0.col2 AS col0 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT DISTINCT col0 - + col2 AS col2 FROM tab1
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1755
SELECT ALL - col2 - ( tab0.col2 ) DIV 23 FROM tab0
----
-1
-34
-85
skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL - col2 - ( tab0.col2 ) / 23 FROM tab0
----
-1
-34
-85
query I rowsort
SELECT ALL + 69 + + col1 AS col0 FROM tab2
----
100
128
86
query I rowsort
SELECT DISTINCT + col0 * col0 + - col1 * 42 AS col2 FROM tab0
----
-2849
-3036
4099
query I rowsort
SELECT ALL col0 + tab0.col1 AS col0 FROM tab0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1759
SELECT - 19 * + col1 - col1 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1759
SELECT - 19 * + col1 - col1 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col2 + col0 * + col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ( - 50 * - tab1.col0 ) FROM tab1
----
150
3200
4000
query I rowsort
SELECT ( - cor0.col2 ) AS col2 FROM tab1, tab0 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT ALL 92 * - col1 FROM tab2
----
-1564
-2852
-5428
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query I rowsort
SELECT + ( - 46 ) - + cor0.col2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 092dfe8afd9eb2a3031b384284051a5c
onlyif mysql # use DIV operator for integer division
query I rowsort label-1766
SELECT - - 71 + + col1 DIV + ( - ( - col2 ) ) AS col2 FROM tab1 cor0
----
71
71
71
skipif mysql # not compatible
query I rowsort label-1766
SELECT - - 71 + + col1 / + ( - ( - col2 ) ) AS col2 FROM tab1 cor0
----
71
71
71
query I rowsort
SELECT col0 + - col1 + col0 AS col2 FROM tab1 cor0
----
-20
118
147
query I rowsort
SELECT col2 + 30 * + 99 FROM tab1
----
3024
3027
3066
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col2 * 91 * col2 col0 FROM tab0
----
-611884
-91
-99099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1770
SELECT ALL - col1 DIV ( + col1 + + col2 ) FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1770
SELECT ALL - col1 / ( + col1 + + col2 ) FROM tab1
----
0
0
0
query I rowsort
SELECT + col0 * col2 + - 5 * col0 * ( col2 * col1 ) FROM tab1
----
-178752
-20898
-491520
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab0 AS cor1, tab2, tab1 cor2
----
3645 values hashing to 5e27196f2932b25a5297ddec46b8b8f1
query I rowsort
SELECT ALL col2 * 26 + cor0.col2 * - col0 FROM tab1 AS cor0
----
-2166
-5184
1242
query I rowsort
SELECT + col2 * + ( + 85 ) + col2 * col2 FROM tab2 AS cor0
----
2886
3024
4674
query I rowsort
SELECT ALL - col1 + 13 * - col2 + + col1 AS col2 FROM tab1 cor0
----
-1248
-702
-741
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1776
SELECT + CAST( NULL AS DECIMAL ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1776
SELECT + CAST ( NULL AS REAL ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-1777
SELECT DISTINCT + 82 + col1 DIV cor0.col0 col1 FROM tab2 cor0
----
82
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1777
SELECT DISTINCT + 82 + col1 / cor0.col0 col1 FROM tab2 cor0
----
82
86
query I rowsort
SELECT + ( - col0 ) * - col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + 97 AS col0 FROM tab1 AS cor0
----
97
97
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 col2 FROM tab2
----
-42
query I rowsort
SELECT - ( + 61 ) FROM tab0 AS cor0
----
-61
-61
-61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 col1 FROM tab2, tab1, tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - - col0 * - col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col2 + ( col0 ) * col0 AS col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT col0 + - 39 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-3
132
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1786
SELECT ALL - col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1787
SELECT DISTINCT col2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1787
SELECT DISTINCT col2 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
query I rowsort
SELECT - col2 - col0 * ( + col1 ) AS col2 FROM tab2
----
-1381
-244
-4628
query I rowsort
SELECT + 0 + 7 FROM tab1, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT col0 * col2 * + col1 AS col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT ALL - col0 * tab1.col1 + col2 AS col0 FROM tab1
----
-24
-583
-944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 56 + + 72 col2 FROM tab0
----
4888
5168
5504
query I rowsort
SELECT ALL col2 + + 99 AS col0 FROM tab1
----
153
156
195
query I rowsort
SELECT DISTINCT col2 * col1 + col0 + - col1 FROM tab1
----
1315
1381
624
query I rowsort
SELECT - col1 * 51 * 48 + col0 AS col1 FROM tab0 AS cor0
----
-210504
-222679
-237421
query I rowsort
SELECT DISTINCT col2 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1797
SELECT DISTINCT col1 + CAST( col2 AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
2942
3259
9229
skipif mysql # not compatible
query I rowsort label-1797
SELECT DISTINCT col1 + CAST ( col2 AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT cor1.col0 FROM tab0, tab0 cor0, tab1 AS cor1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col0 + - col0 col1 FROM tab2 AS cor0
----
1264
210
4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1800
SELECT CAST( NULL AS DECIMAL ) / col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1800
SELECT CAST ( NULL AS REAL ) / col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * tab1.col2 * col1 AS col0 FROM tab1
----
119808
32490
75816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col1 - col2 col0 FROM tab2
----
-23
-59
7
query I rowsort
SELECT + col2 * 64 AS col2 FROM tab2
----
1664
1728
2432
query I rowsort
SELECT ALL - 6 AS col2 FROM tab0
----
-6
-6
-6
query I rowsort
SELECT 80 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT col1 + - col2 * - col1 + 12 AS col0 FROM tab2
----
1605
675
880
query I rowsort
SELECT + col0 + col0 - col0 FROM tab1
----
3
64
80
query I rowsort
SELECT + cor0.col1 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
onlyif mysql # use DIV operator for integer division
query I rowsort label-1809
SELECT - col0 DIV + col2 - - 6 FROM tab1 AS cor0
----
5
6
6
skipif mysql # not compatible
query I rowsort label-1809
SELECT - col0 / + col2 - - 6 FROM tab1 AS cor0
----
5
6
6
query I rowsort
SELECT - - 4 AS col1 FROM tab1 cor0
----
4
4
4
query I rowsort
SELECT - 68 * - col0 + col2 FROM tab2 AS cor0
----
503
5330
5410
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1812
SELECT col2 - + cor0.col0 * CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1812
SELECT col2 - + cor0.col0 * CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 38 * col2 AS col1 FROM tab1 AS cor0
----
-2052
-2166
-3648
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 * + col2 + + ( cor0.col1 ) col1 FROM tab2 AS cor0
----
2243
2299
3209
query I rowsort
SELECT 91 + col2 + + col0 AS col0 FROM tab0 cor0
----
127
148
262
query I rowsort
SELECT + 39 * cor0.col0 - col0 AS col0 FROM tab2 AS cor0
----
266
2964
3002
query I rowsort
SELECT ALL - 87 AS col2 FROM tab2 cor0
----
-87
-87
-87
query I rowsort
SELECT + - col2 * + cor0.col2 + + col1 + cor0.col0 FROM tab0 AS cor0
----
-6544
-979
131
query I rowsort
SELECT + - 22 * col0 + 85 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1572
-1636
-38
query I rowsort
SELECT DISTINCT - - col0 * - col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT + col1 * + tab0.col0 + + 77 + + 88 AS col0 FROM tab0
----
2229
3560
8264
query I rowsort
SELECT ALL - ( col1 ) + col1 + 32 FROM tab0
----
32
32
32
query I rowsort
SELECT ALL + 65 * + col2 * 10 + - 95 FROM tab1
----
35005
36955
62305
query I rowsort
SELECT ALL - col2 + - col0 * col0 AS col2 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT DISTINCT + - col0 + - col1 + col2 AS col0 FROM tab1 AS cor0
----
-17
25
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + col2 * - col0 col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT - 57 AS col2 FROM tab1 cor0
----
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * cor0.col2 col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT + + col2 + ( 3 ) + - col2 FROM tab1 cor0
----
3
3
3
query I rowsort
SELECT DISTINCT + + col1 * 64 AS col0 FROM tab0 AS cor0
----
5504
5824
6208
onlyif mysql # use DIV operator for integer division
query I rowsort label-1831
SELECT ALL - + cor0.col1 DIV + 31 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL - + cor0.col1 / + 31 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + - col0 + 34 FROM tab2 AS cor0
----
-44
-45
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * cor0.col0 + + col2 * + col1 col2 FROM tab2 AS cor0
----
1054
1989
6136
query I rowsort
SELECT - cor0.col1 + 8 AS col1 FROM tab1 AS cor0
----
-18
-2
-5
query I rowsort
SELECT DISTINCT + - col0 + - col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL - col1 + - col0 * - col0 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT DISTINCT 2 + tab0.col1 FROM tab0
----
88
93
99
query I rowsort
SELECT 26 * col1 FROM tab2
----
1534
442
806
query I rowsort
SELECT + tab1.col2 - - col2 * 24 * 34 AS col2 FROM tab1
----
44118
46569
78432
query I rowsort
SELECT ALL - cor0.col0 + - 44 * col2 FROM tab0 AS cor0
----
-1476
-3697
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + - col2 col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1842
SELECT ALL - col1 - col1 DIV col1 FROM tab0 cor0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL - col1 - col1 / col1 FROM tab0 cor0
----
-87
-92
-98
query I rowsort
SELECT DISTINCT ( - 58 ) * - cor0.col2 FROM tab1 cor0
----
3132
3306
5568
onlyif mysql # use DIV operator for integer division
query I rowsort label-1844
SELECT DISTINCT + - 80 DIV col1 FROM tab1 AS cor0
----
-3
-6
-8
skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT + - 80 / col1 FROM tab1 AS cor0
----
-3
-6
-8
query I rowsort
SELECT - + 54 * - col0 AS col1 FROM tab0 AS cor0
----
1296
1890
4806
query I rowsort
SELECT ALL - ( ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - ( cor0.col1 ) * - col0 * 42 FROM tab0 AS cor0
----
142590
340158
86688
query I rowsort
SELECT DISTINCT 99 FROM tab2 cor0
----
99
query I rowsort
SELECT ALL - tab2.col1 + 78 + col0 FROM tab2
----
140
54
97
query I rowsort
SELECT ALL + col0 * 17 - col1 FROM tab0 AS cor0
----
1422
322
498
query I rowsort
SELECT + - ( col2 ) + col2 * col0 AS col0 FROM tab0 AS cor0
----
34
7216
759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1852
SELECT DISTINCT + CAST( - col0 AS SIGNED ) * col0 - + ( col1 ) AS col0 FROM tab1 cor0
----
-35
-4106
-6413
skipif mysql # not compatible
query I rowsort label-1852
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) * col0 - + ( col1 ) AS col0 FROM tab1 cor0
----
-35
-4106
-6413
query I rowsort
SELECT ALL - + ( + col1 ) * col0 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1854
SELECT DISTINCT - 78 + + col1 DIV + cor0.col0 AS col1 FROM tab0 AS cor0
----
-75
-76
-77
skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT - 78 + + col1 / + cor0.col0 AS col1 FROM tab0 AS cor0
----
-75
-76
-77
query I rowsort
SELECT ALL + col0 * + 59 * - col0 + col0 FROM tab2 cor0
----
-2884
-358878
-368140
query I rowsort
SELECT - 15 + - 77 AS col1 FROM tab2 AS cor0
----
-92
-92
-92
query I rowsort
SELECT ALL - col2 * col2 + - col2 + col0 * col1 AS col0 FROM tab0 AS cor0
----
1293
3393
942
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 col2 FROM tab0 AS cor0
----
21
21
21
query I rowsort
SELECT DISTINCT + col2 + cor0.col1 * - 15 FROM tab1 AS cor0
----
-336
-93
-99
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0 CROSS JOIN tab2, tab0 AS cor1
----
972 values hashing to 380241bbc503a31e70494611a87ffd99
query I rowsort
SELECT - ( - col2 ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + + cor0.col0 * - ( cor0.col2 ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-189
-2028
-3002
query I rowsort
SELECT + 44 FROM tab1, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT ALL + col2 + + col0 + col2 * - col0 AS col2 FROM tab2
----
-155
-1924
-2885
query I rowsort
SELECT ALL - tab2.col0 * + col2 + col0 * + col2 FROM tab2
----
0
0
0
query I rowsort
SELECT - ( col0 ) * + col0 AS col1 FROM tab0 cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 - - col1 col2 FROM tab0 AS cor0
----
1322
662
8012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 col1 FROM tab0, tab1 AS cor0
----
66
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0 CROSS JOIN tab0, tab0 AS cor1
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + col1 col2 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - - col2 * col2 + col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT + + 81 * col1 AS col0 FROM tab0 AS cor0
----
6966
7371
7857
query I rowsort
SELECT + col0 + ( col1 ) * - col2 FROM tab2 AS cor0
----
-1456
-567
-830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 col2 FROM tab2 AS cor0
----
97
97
97
query I rowsort
SELECT + col2 + col1 + - col0 * col0 AS col2 FROM tab2 AS cor0
----
-5999
-6186
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1876
SELECT + 82 + col1 DIV col1 FROM tab2 AS cor0
----
83
83
83
skipif mysql # not compatible
query I rowsort label-1876
SELECT + 82 + col1 / col1 FROM tab2 AS cor0
----
83
83
83
query I rowsort
SELECT + - 1 * + 31 AS col0 FROM tab0 AS cor0
----
-31
-31
-31
query I rowsort
SELECT + col2 * col1 + col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT 64 AS col2 FROM tab2
----
64
64
64
query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
onlyif mysql # use DIV operator for integer division
query I rowsort label-1881
SELECT ALL + - col1 DIV - col0 + - col2 DIV col2 + + col0 FROM tab0 AS cor0
----
26
36
89
skipif mysql # not compatible
query I rowsort label-1881
SELECT ALL + - col1 / - col0 + - col2 / col2 + + col0 FROM tab0 AS cor0
----
26
36
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1882
SELECT DISTINCT + cor0.col2 + cor0.col0 * ( - col1 ) * col0 + CAST( + col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
-106042
-1461
-358871
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT + cor0.col2 + cor0.col0 * ( - col1 ) * col0 + CAST ( + col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
-106042
-1461
-358871
query I rowsort
SELECT - 38 * + col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-235
-2905
-2985
query I rowsort
SELECT ALL - col0 + - col1 * ( 14 ) FROM tab1 cor0
----
-204
-262
-367
query I rowsort
SELECT ALL col1 + col2 * 50 AS col0 FROM tab0 cor0
----
147
1736
4191
query I rowsort
SELECT ALL - cor0.col0 * - col1 + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT col0 * - col0 + - col2 * col2 * col1 + + 58 AS col2 FROM tab1 AS cor0
----
-126150
-36528
-75767
query I rowsort
SELECT DISTINCT + col0 + + cor0.col2 * + 48 FROM tab2 AS cor0
----
1303
1326
1903
query I rowsort
SELECT - - 63 AS col2 FROM tab1 AS cor0
----
63
63
63
query I rowsort
SELECT DISTINCT + 67 AS col1 FROM tab1 AS cor0
----
67
query I rowsort
SELECT ALL + cor0.col1 * col1 + col1 AS col1 FROM tab1 cor0
----
110
182
702
query I rowsort
SELECT col1 * 78 FROM tab2 AS cor0
----
1326
2418
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-1893
SELECT - col1 + + 62 DIV col0 FROM tab1 AS cor0
----
-10
-13
-6
skipif mysql # not compatible
query I rowsort label-1893
SELECT - col1 + + 62 / col0 FROM tab1 AS cor0
----
-10
-13
-6
query I rowsort
SELECT + col1 * - col2 + cor0.col1 FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1895
SELECT DISTINCT + CAST( 86 AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
86
skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT + CAST ( 86 AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
86
query I rowsort
SELECT DISTINCT col2 * 21 FROM tab2
----
546
567
798
query I rowsort
SELECT + col0 * - 40 FROM tab1 AS cor0
----
-120
-2560
-3200
query I rowsort
SELECT DISTINCT col2 * 36 FROM tab1 AS cor0
----
1944
2052
3456
query I rowsort
SELECT ALL - col1 * col2 + + 52 AS col0 FROM tab1 AS cor0
----
-1196
-1352
-518
onlyif mysql # use DIV operator for integer division
query I rowsort label-1900
SELECT - 70 + - col0 DIV + col1 AS col0 FROM tab2 AS cor0
----
-70
-71
-74
skipif mysql # not compatible
query I rowsort label-1900
SELECT - 70 + - col0 / + col1 AS col0 FROM tab2 AS cor0
----
-70
-71
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-1901
SELECT ALL 32 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL 32 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT - 51 AS col1 FROM tab1 AS cor0
----
-51
-51
-51
query I rowsort
SELECT + + col1 + + col2 + - col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT 49 + + col1 + ( + col2 + col2 ) * - 54 FROM tab2 AS cor0
----
-2700
-2836
-4038
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1905
SELECT DISTINCT ( + col2 + + col0 * CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-1905
SELECT DISTINCT ( + col2 + + col0 * CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
query I rowsort
SELECT + col2 * col1 + 99 FROM tab2 AS cor0
----
1633
745
936
query I rowsort
SELECT - col0 + col2 * 94 AS col1 FROM tab0 AS cor0
----
3078
59
7619
query I rowsort
SELECT + col1 * col1 * 35 FROM tab0
----
258860
289835
329315
query I rowsort
SELECT tab1.col2 * + col0 * col2 AS col0 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT ALL + col2 - col1 AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT 13 + col2 AS col0 FROM tab1
----
109
67
70
query I rowsort
SELECT ALL cor0.col1 * - cor0.col1 + - col0 AS col2 FROM tab0 AS cor0
----
-7420
-8370
-9444
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1913
SELECT + - CAST( NULL AS SIGNED ) * 53 * col1 + - col1 * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1913
SELECT + - CAST ( NULL AS INTEGER ) * 53 * col1 + - col1 * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1914
SELECT + col1 DIV + ( - ( - col0 ) ) AS col0 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-1914
SELECT + col1 / + ( - ( - col0 ) ) AS col0 FROM tab2
----
0
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col1 ) + col0 col0 FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * + col2 * col2 + cor0.col0 col1 FROM tab1 AS cor0
----
157467
185257
884816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 1 + col2 col1 FROM tab2 AS cor0
----
27
28
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col1 col2 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT col0 * ( - col2 ) FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL col0 * + col2 - - col2 AS col0 FROM tab0
----
36
7380
825
query I rowsort
SELECT ALL + 78 + col0 * tab0.col0 * col1 FROM tab0
----
118903
49614
720889
query I rowsort
SELECT - + 0 * + col0 + col0 FROM tab0 cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 * - col0 col0 FROM tab2
----
-14
-156
-158
query I rowsort
SELECT ALL - ( - 25 ) FROM tab2
----
25
25
25
query I rowsort
SELECT ALL ( 59 * - col1 ) + - col0 FROM tab0
----
-5098
-5458
-5758
query I rowsort
SELECT DISTINCT col2 + + tab0.col2 FROM tab0
----
164
2
66
query I rowsort
SELECT ALL + col0 + - tab1.col1 AS col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL tab0.col2 + + tab0.col2 AS col0 FROM tab0
----
164
2
66
query I rowsort
SELECT ALL - col2 * - tab1.col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - col0 * + col2 * - ( + col0 * cor0.col1 ) + col2 AS col0 FROM tab1 AS cor0
----
12690
2334777
7987296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1931
SELECT ALL + cor0.col1 * CAST( 45 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3870
4095
4365
skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL + cor0.col1 * CAST ( 45 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3870
4095
4365
onlyif mysql # use DIV operator for integer division
query I rowsort label-1932
SELECT + - col0 + col2 DIV col0 FROM tab2 AS cor0
----
-4
-78
-79
skipif mysql # not compatible
query I rowsort label-1932
SELECT + - col0 + col2 / col0 FROM tab2 AS cor0
----
-4
-78
-79
query I rowsort
SELECT ALL + cor0.col2 + cor0.col2 * 90 FROM tab2 AS cor0
----
2366
2457
3458
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1934
SELECT DISTINCT - col2 * + CAST( col2 AS SIGNED ) + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96
skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT - col2 * + CAST ( col2 AS INTEGER ) + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT col2 * col1 * + tab2.col1 AS col0 FROM tab2
----
10982
25947
90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-1936
SELECT col1 DIV col0 + + col0 FROM tab2
----
11
78
79
skipif mysql # not compatible
query I rowsort label-1936
SELECT col1 / col0 + + col0 FROM tab2
----
11
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor1.col1 col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT + 25 + + cor0.col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to a6ed3281296396ad9508018a409a9e60
query I rowsort
SELECT col0 * + 66 AS col1 FROM tab1 cor0
----
198
4224
5280
query I rowsort
SELECT ALL + tab2.col0 * col0 - - col1 * - col0 * + col2 FROM tab2
----
-113568
-44793
-5810
onlyif mysql # use DIV operator for integer division
query I rowsort label-1941
SELECT - col1 DIV ( + 47 * cor0.col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1941
SELECT - col1 / ( + 47 * cor0.col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1942
SELECT + col0 DIV + ( cor0.col0 ) FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1942
SELECT + col0 / + ( cor0.col0 ) FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + col0 * 20 * - col0 FROM tab2 AS cor0
----
-121680
-124820
-980
onlyif mysql # use DIV operator for integer division
query I rowsort label-1944
SELECT DISTINCT col0 DIV ( 20 ) AS col0 FROM tab2 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT col0 / ( 20 ) AS col0 FROM tab2 AS cor0
----
0
3
query I rowsort
SELECT + - col1 * + col2 AS col1 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-1946
SELECT DISTINCT + col1 * col1 DIV - col0 AS col1 FROM tab0
----
-268
-308
-93
skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT + col1 * col1 / - col0 AS col1 FROM tab0
----
-268
-308
-93
query I rowsort
SELECT - col2 * - col2 + + col0 * col1 AS col0 FROM tab2
----
2787
5278
946
query I rowsort
SELECT tab2.col2 + - col1 * col0 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT - col1 + col2 * + col0 FROM tab2
----
158
1969
2985
query I rowsort
SELECT - col1 * col0 * tab1.col0 + + col0 * tab1.col0 AS col1 FROM tab1
----
-225
-36864
-76800
query I rowsort
SELECT + col2 * col0 + - col1 AS col0 FROM tab1
----
136
3638
7667
query I rowsort
SELECT - col2 - + col2 * - col0 AS col0 FROM tab2
----
162
2002
2964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + cor0.col2 + + cor0.col2 col0 FROM tab1 AS cor0
----
104
179
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1954
SELECT DISTINCT - col1 * + col1 DIV + col1 col2 FROM tab2
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT - col1 * + col1 / + col1 col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT - tab2.col2 + - tab2.col0 * - col2 FROM tab2
----
162
2002
2964
query I rowsort
SELECT DISTINCT col1 * - col2 * col2 AS col0 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT + + col0 + + col2 + cor0.col2 FROM tab2 AS cor0
----
130
155
61
query I rowsort
SELECT + col1 * + col2 - col1 AS col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT DISTINCT - col1 * col1 * col2 + - col1 AS col0 FROM tab1 cor0
----
-16237
-36530
-5710
query I rowsort
SELECT DISTINCT cor0.col2 * col0 + col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL - col0 * col0 + + cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
-14080
-171
-7744
query I rowsort
SELECT ALL - col1 + - col2 * + col2 FROM tab2 cor0
----
-1461
-735
-760
query I rowsort
SELECT col2 * col2 FROM tab0 cor0 WHERE NOT cor0.col2 < NULL OR NULL BETWEEN ( - col0 * - col2 ) AND - col1
----
query I rowsort
SELECT ALL + col2 + - col2 * col2 * col1 FROM tab2 cor0
----
-22572
-24510
-39858
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 * + col0 + + col0 col2 FROM tab1 cor0
----
-233408
-483
-614320
query I rowsort
SELECT DISTINCT + + col2 + col1 * col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT cor0.col2 * - col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL - + col2 - col1 * col1 FROM tab0 AS cor0
----
-7429
-8363
-9410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 - col1 col1 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT ALL + ( - col0 ) * - col0 + + col0 + - col2 FROM tab2 AS cor0
----
29
6136
6282
query I rowsort
SELECT + cor0.col0 * - cor0.col1 + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT + col2 + - col1 * col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT ALL ( + col0 ) * + col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + - cor0.col1 * + col2 + - col0 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT - + col0 * + col1 FROM tab2 cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-1976
SELECT - col1 * + col0 + + col2 DIV cor0.col2 FROM tab1 AS cor0
----
-1039
-639
-77
skipif mysql # not compatible
query I rowsort label-1976
SELECT - col1 * + col0 + + col2 / cor0.col2 FROM tab1 AS cor0
----
-1039
-639
-77
query I rowsort
SELECT + - cor0.col0 * - col0 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1978
SELECT DISTINCT - col0 DIV - cor0.col0 - col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-168
-675
-99
skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT - col0 / - cor0.col0 - col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-168
-675
-99
query I rowsort
SELECT DISTINCT + col0 + + cor0.col2 - cor0.col2 * col1 FROM tab0 AS cor0
----
-2781
-61
-7291
query I rowsort
SELECT DISTINCT + col0 + col2 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT + 61 * + col1 AS col1 FROM tab1 AS cor0
----
1586
610
793
query I rowsort
SELECT + col2 * + col1 AS col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT col0 + col1 * - col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT - + 43 * col0 FROM tab0 AS cor0
----
-1032
-1505
-3827
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 col2 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 48 AS REAL ) AS col2 FROM tab0
----
48
48
48
query I rowsort
SELECT - 84 * col0 + + col2 FROM tab2
----
-561
-6526
-6598
query I rowsort
SELECT 70 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
query I rowsort
SELECT DISTINCT - ( - 62 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 col1 FROM tab2
----
-289
-3481
-961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1991
SELECT + 13 * col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1991
SELECT + 13 * col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + + col0 * - ( - col1 ) FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-1993
SELECT DISTINCT col2 DIV - col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1993
SELECT DISTINCT col2 / - col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT col2 * - col1 + - tab2.col1 * - col0 FROM tab2
----
-620
3068
697
query I rowsort
SELECT DISTINCT + tab0.col2 * - col0 * 83 + col2 * ( - col0 ) AS col0 FROM tab0
----
-2940
-613032
-66528
query I rowsort
SELECT DISTINCT + tab1.col0 * col1 + + tab1.col1 FROM tab1
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-1997
SELECT + col2 * col2 DIV col1 + - col0 AS col1 FROM tab1 AS cor0
----
109
260
628
skipif mysql # not compatible
query I rowsort label-1997
SELECT + col2 * col2 / col1 + - col0 AS col1 FROM tab1 AS cor0
----
109
260
628
query I rowsort
SELECT ALL + col2 * - 63 FROM tab2 cor0
----
-1638
-1701
-2394
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 30 * col0 col1 FROM tab1 AS cor0
----
144
1977
2496
onlyif mysql # use DIV operator for integer division
query I rowsort label-2000
SELECT ALL - + cor0.col0 DIV cor0.col2 FROM tab1 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL - + cor0.col0 / cor0.col2 FROM tab1 cor0
----
-1
0
0
query I rowsort
SELECT ALL ( col1 ) * col2 + - col2 FROM tab1 AS cor0
----
1152
1350
513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 col1 FROM tab0, tab0 cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc
query I rowsort
SELECT DISTINCT 8 * col0 AS col2 FROM tab1
----
24
512
640
query I rowsort
SELECT DISTINCT + + 47 + + 38 AS col0 FROM tab2, tab1, tab1 AS cor0
----
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2005
SELECT - CAST( NULL AS SIGNED ) * + 8 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2005
SELECT - CAST ( NULL AS INTEGER ) * + 8 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 27 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
query I rowsort
SELECT DISTINCT - 92 AS col2 FROM tab2, tab0 AS cor0
----
-92
query I rowsort
SELECT ( + col0 ) + - col1 * 87 FROM tab0 cor0
----
-7458
-7828
-8404
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2009
SELECT ( + col2 ) * + col2 + + CAST( NULL AS SIGNED ) * col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2009
SELECT ( + col2 ) * + col2 + + CAST ( NULL AS INTEGER ) * col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col1 FROM tab1 AS cor0
----
-52
-52
-52
query I rowsort
SELECT - + ( cor0.col2 ) + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-2012
SELECT - col0 DIV - col2 AS col1 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2012
SELECT - col0 / - col2 AS col1 FROM tab1 cor0
----
0
0
1
query I rowsort
SELECT + ( + col2 ) * 5 AS col2 FROM tab2 AS cor0
----
130
135
190
query I rowsort
SELECT 87 * - col1 + - col2 AS col0 FROM tab2 AS cor0
----
-1517
-2724
-5159
query I rowsort
SELECT DISTINCT - 34 + col0 AS col2 FROM tab2 cor0
----
-27
44
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 * + ( + col1 ) col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + - col1 * + cor0.col0 + + 9 FROM tab0 AS cor0
----
-2055
-3386
-8090
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - col2 col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL 19 + - col0 FROM tab1
----
-45
-61
16
query I rowsort
SELECT - col2 * col2 * col0 + col1 FROM tab1 AS cor0
----
-207926
-737267
-8722
query I rowsort
SELECT + 71 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT + col0 + 45 FROM tab1 AS cor0
----
109
125
48
query I rowsort
SELECT DISTINCT + 77 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
77
query I rowsort
SELECT - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to c569638e8a09ff819458d62ddbde994c
query I rowsort
SELECT ALL col0 + + cor0.col2 AS col1 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT col1 + col2 * - 44 AS col2 FROM tab2 AS cor0
----
-1085
-1157
-1655
query I rowsort
SELECT DISTINCT + col1 * - 51 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1612
-3068
-884
query I rowsort
SELECT ALL + + cor0.col0 * - col1 * + col2 + col2 FROM tab2 AS cor0
----
-119626
-50996
-5832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col1 col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - col0 - - 39 FROM tab1 AS cor0
----
-25
-41
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-2031
SELECT + col1 DIV 83 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2031
SELECT + col1 / 83 AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + - col2 + + 48 * col2 FROM tab1 AS cor0
----
2538
2679
4512
query I rowsort
SELECT ALL + cor0.col0 * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + cor0.col0 * col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - col2 + + col0 AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL + - 7 * + col1 AS col1 FROM tab2 AS cor0
----
-119
-217
-413
query I rowsort
SELECT DISTINCT + - ( - cor0.col0 ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - 29 * - col2 AS col0 FROM tab0 AS cor0
----
2378
29
957
query I rowsort
SELECT ALL - col0 * + 84 AS col0 FROM tab0 AS cor0
----
-2016
-2940
-7476
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) AS col0 FROM tab0 cor0
----
-1
-33
-82
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7
query I rowsort
SELECT ALL 63 FROM tab0 AS cor0
----
63
63
63
query I rowsort
SELECT ALL - col1 * - 0 FROM tab1 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2044
SELECT ALL + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2045
SELECT ALL CAST( + 44 AS SIGNED ) FROM tab1, tab2 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL CAST ( + 44 AS INTEGER ) FROM tab1, tab2 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT + 59 + cor0.col0 AS col2 FROM tab2 cor0
----
137
138
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 7 * - col0 col0 FROM tab2 cor0
----
-49
-546
-553
onlyif mysql # use DIV operator for integer division
query I rowsort label-2048
SELECT ALL - col1 + - col0 + + col0 DIV + cor0.col1 FROM tab1 cor0
----
-29
-68
-87
skipif mysql # not compatible
query I rowsort label-2048
SELECT ALL - col1 + - col0 + + col0 / + cor0.col1 FROM tab1 cor0
----
-29
-68
-87
query I rowsort
SELECT ( - col0 ) * col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to 62086d53b7dd9376121857c3d03027d6
query I rowsort
SELECT DISTINCT - - 72 + col2 AS col2 FROM tab1 cor0
----
126
129
168
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - cor0.col1 + - col1 col0 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT + 66 + col0 AS col0 FROM tab2 AS cor0
----
144
145
73
query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT - 85 * col2 + - col1 - col2 * col1 * - 32 AS col0 FROM tab2 AS cor0
----
17425
24458
46819
query I rowsort
SELECT ALL col1 * - col2 - ( 79 ) AS col1 FROM tab1 AS cor0
----
-1327
-1483
-649
query I rowsort
SELECT ALL - - col2 * - 44 AS col2 FROM tab2 AS cor0
----
-1144
-1188
-1672
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2058
SELECT ALL - col2 * CAST( NULL AS SIGNED ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 - cor0.col0 AS col2 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2060
SELECT + col0 * + CAST( - 46 AS SIGNED ) FROM tab2 AS cor0
----
-322
-3588
-3634
skipif mysql # not compatible
query I rowsort label-2060
SELECT + col0 * + CAST ( - 46 AS INTEGER ) FROM tab2 AS cor0
----
-322
-3588
-3634
query I rowsort
SELECT ALL col0 * 8 + 13 * - col1 * 92 AS col2 FROM tab0 AS cor0
----
-102664
-108124
-115732
query I rowsort
SELECT ALL 98 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
query I rowsort
SELECT col0 + col1 * 36 AS col1 FROM tab0
----
3120
3365
3527
onlyif mysql # use DIV operator for integer division
query I rowsort label-2064
SELECT + - col1 + col0 DIV 81 FROM tab0 AS cor0
----
-86
-90
-97
skipif mysql # not compatible
query I rowsort label-2064
SELECT + - col1 + col0 / 81 FROM tab0 AS cor0
----
-86
-90
-97
query I rowsort
SELECT + col2 + + cor0.col1 * col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT col2 + ( + col2 ) * col0 * CAST ( col0 AS REAL ) col0 FROM tab0 cor0
----
1226
19041
649604
query I rowsort
SELECT + col0 - col2 * 36 FROM tab1
----
-1941
-1988
-3376
query I rowsort
SELECT + 87 + - cor0.col0 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to b9403417e8fe601010be0771afd6f723
onlyif mysql # use DIV operator for integer division
query I rowsort label-2069
SELECT col1 * ( + 17 ) * col2 + + 75 DIV col0 AS col0 FROM tab2
----
10982
14239
26078
skipif mysql # not compatible
query I rowsort label-2069
SELECT col1 * ( + 17 ) * col2 + + 75 / col0 AS col0 FROM tab2
----
10982
14239
26078
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 * - tab1.col1 col0 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT - - col2 - + col2 AS col2 FROM tab0 AS cor0
----
0
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab1 cor1, tab0 cor2
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae
query I rowsort
SELECT - col0 * + ( - col1 ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + tab1.col1 AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL 12 - + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 6d516d261b36b9c2e7c4f4adeca8cbf5
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - 75 AS REAL ) * col2 + ( col0 ) AS col0 FROM tab0
----
-2451
-40
-6061
query I rowsort
SELECT 66 + col1 + col2 AS col2 FROM tab0
----
164
185
239
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2078
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 * col0 AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2078
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 * col0 AS col2 FROM tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2079
SELECT ALL - 33 + ( col2 * - CAST( + 74 AS DECIMAL ) ) + col0 * CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL - 33 + ( col2 * - CAST ( + 74 AS REAL ) ) + col0 * CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 * - 87 col1 FROM tab2 cor0
----
-174
-174
-174
query I rowsort
SELECT + 67 + - 47 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4
query I rowsort
SELECT ALL col2 * - 59 + - col2 AS col1 FROM tab2
----
-1560
-1620
-2280
query I rowsort
SELECT ALL - 71 FROM tab2, tab0 cor0, tab1 cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a
query I rowsort
SELECT ALL + col2 * - col1 + + 33 - col2 * col0 AS col1 FROM tab0 AS cor0
----
-14727
-3597
-99
query I rowsort
SELECT ALL - col0 * - col2 + - col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT col2 * col1 + + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT - + 33 * + 76 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to db02ebde5e2bfe857b896d015dd24ffe
query I rowsort
SELECT - cor0.col1 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT DISTINCT + 44 * col2 FROM tab2 AS cor0
----
1144
1188
1672
query I rowsort
SELECT DISTINCT - 47 * cor0.col1 AS col0 FROM tab0 cor0
----
-4042
-4277
-4559
query I rowsort
SELECT col2 * - col0 AS col1 FROM tab2 cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-2092
SELECT ALL - 47 DIV col0 AS col2 FROM tab0 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL - 47 / col0 AS col2 FROM tab0 AS cor0
----
-1
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2093
SELECT + - col0 * - col0 DIV - col0 + + 88 + cor0.col0 FROM tab0 AS cor0
----
88
88
88
skipif mysql # not compatible
query I rowsort label-2093
SELECT + - col0 * - col0 / - col0 + + 88 + cor0.col0 FROM tab0 AS cor0
----
88
88
88
query I rowsort
SELECT - - cor0.col2 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL - + 78 FROM tab0 AS cor0
----
-78
-78
-78
query I rowsort
SELECT ALL + - 41 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf
query I rowsort
SELECT ALL + col1 - + col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT ( - 83 ) * - col2 + ( col1 ) * - col1 FROM tab0 AS cor0
----
-1475
-4657
-9326
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col0 AS REAL ) AS col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ( col2 * tab0.col1 ) FROM tab0
----
2838
7462
97
query I rowsort
SELECT 55 + - 27 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 423726553d33e100432ebde49ddd31b5
query I rowsort
SELECT - + 66 * - col1 + col1 AS col1 FROM tab2 AS cor0
----
1139
2077
3953
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 30 col0 FROM tab2
----
47
61
89
query I rowsort
SELECT col1 * - 20 AS col2 FROM tab0
----
-1720
-1820
-1940
query I rowsort
SELECT DISTINCT ( tab0.col1 ) * + col0 * + col0 AS col0 FROM tab0
----
118825
49536
720811
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2106
SELECT + col2 + + CAST( NULL AS SIGNED ) * + ( + cor0.col0 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2106
SELECT + col2 + + CAST ( NULL AS INTEGER ) * + ( + cor0.col0 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + cor0.col0 col0 FROM tab0 AS cor0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2108
SELECT cor0.col1 + 11 DIV col2 col1 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2108
SELECT cor0.col1 + 11 / col2 col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-2109
SELECT DISTINCT + + col0 DIV col0 - + col0 AS col2 FROM tab2 AS cor0
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-2109
SELECT DISTINCT + + col0 / col0 - + col0 AS col2 FROM tab2 AS cor0
----
-6
-77
-78
query I rowsort
SELECT - col0 + + ( - 27 ) AS col1 FROM tab1 cor0
----
-107
-30
-91
query I rowsort
SELECT ALL + + cor0.col2 * 68 FROM tab1 AS cor0
----
3672
3876
6528
query I rowsort
SELECT ALL + + col1 * 22 + + col1 * + col2 FROM tab1 AS cor0
----
1534
1976
790
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 + col2 col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT + col1 * - col1 + col0 + tab1.col0 FROM tab1
----
-670
-9
28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2115
SELECT + col2 * - CAST( - col0 AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081
skipif mysql # not compatible
query I rowsort label-2115
SELECT + col2 * - CAST ( - col0 AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL + - 43 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 2f72bd9cab68c8d8c38874510a290a3c
query I rowsort
SELECT 97 * tab2.col1 AS col0 FROM tab2
----
1649
3007
5723
query I rowsort
SELECT - col2 + - 85 AS col2 FROM tab1
----
-139
-142
-181
query I rowsort
SELECT DISTINCT cor0.col2 - 65 AS col2 FROM tab1 AS cor0
----
-11
-8
31
query I rowsort
SELECT + col1 * col2 + col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL + cor0.col1 + ( 65 ) AS col2 FROM tab1 cor0
----
75
78
91
query I rowsort
SELECT - col0 - ( col2 ) AS col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT - col0 + col1 * + col1 AS col1 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT ALL 85 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) col0 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2126
SELECT + + col2 + + col0 + col0 DIV + col0 FROM tab1 cor0
----
122
177
58
skipif mysql # not compatible
query I rowsort label-2126
SELECT + + col2 + + col0 + col0 / + col0 FROM tab1 cor0
----
122
177
58
query I rowsort
SELECT DISTINCT + ( col0 ) + cor0.col2 * ( col0 * col1 ) FROM tab0 AS cor0
----
3430
664207
68136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 37 col2 FROM tab0 AS cor0
----
-45
36
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 59 col0 FROM tab1 AS cor0
----
59
59
59
query I rowsort
SELECT - tab1.col1 * 74 AS col0 FROM tab1
----
-1924
-740
-962
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2131
SELECT - CAST( NULL AS SIGNED ) + 75 / tab1.col1 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2131
SELECT - CAST ( NULL AS INTEGER ) + 75 / tab1.col1 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2132
SELECT DISTINCT + col1 * - CAST( - col0 * + col2 AS SIGNED ) FROM tab1
----
36480
4212
99840
skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT + col1 * - CAST ( - col0 * + col2 AS INTEGER ) FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT col0 + - col1 * col0 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT + col2 + 72 * + col1 FROM tab1 AS cor0
----
1032
1926
777
query I rowsort
SELECT + - ( cor0.col1 ) AS col0 FROM tab1 cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-2136
SELECT 29 DIV + col1 - col1 col0 FROM tab1
----
-11
-25
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2136
SELECT 29 / + col1 - col1 col0 FROM tab1
----
-11
-25
-8
query I rowsort
SELECT + + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - col2 + - col2 * col0 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT 22 AS col2 FROM tab2
----
22
22
22
query I rowsort
SELECT - tab1.col0 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT col0 * col1 + 90 AS col1 FROM tab2 cor0
----
1433
307
4692
query I rowsort
SELECT + 91 * - col2 AS col0 FROM tab0 AS cor0
----
-3003
-7462
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-2143
SELECT + col0 DIV - ( ( + cor0.col0 ) ) FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2143
SELECT + col0 / - ( ( + cor0.col0 ) ) FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2144
SELECT DISTINCT col1 - col2 DIV + col1 col2 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2144
SELECT DISTINCT col1 - col2 / + col1 col2 FROM tab0
----
86
91
97
query I rowsort
SELECT + tab2.col1 * - 51 AS col0 FROM tab2
----
-1581
-3009
-867
query I rowsort
SELECT col1 * 33 * col0 + col1 + + col1 FROM tab1
----
21140
2626
34346
query I rowsort
SELECT + col2 * ( 91 ) AS col2 FROM tab0
----
3003
7462
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-2148
SELECT - col0 DIV ( col0 ) FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2148
SELECT - col0 / ( col0 ) FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + - cor0.col1 * + 60 FROM tab0 AS cor0
----
-5160
-5460
-5820
query I rowsort
SELECT - cor0.col1 * + col2 + col2 FROM tab2 cor0
----
-1508
-608
-810
query I rowsort
SELECT ( col0 ) * col2 + ( - 6 ) FROM tab2
----
183
2022
2996
query I rowsort
SELECT + ( 18 ) + - col0 AS col2 FROM tab2 AS cor0
----
-60
-61
11
query I rowsort
SELECT + 41 + - 84 FROM tab2 AS cor0
----
-43
-43
-43
query I rowsort
SELECT DISTINCT 54 FROM tab0, tab0 AS cor0
----
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-2155
SELECT + col0 + - col2 DIV 60 AS col0 FROM tab0 AS cor0
----
24
35
88
skipif mysql # not compatible
query I rowsort label-2155
SELECT + col0 + - col2 / 60 AS col0 FROM tab0 AS cor0
----
24
35
88
query I rowsort
SELECT - 17 + cor0.col2 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1517
629
820
onlyif mysql # use DIV operator for integer division
query I rowsort label-2157
SELECT ALL col2 DIV - col1 AS col0 FROM tab2 cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL col2 / - col1 AS col0 FROM tab2 cor0
----
-2
0
0
query I rowsort
SELECT - ( tab2.col1 * + col0 ) + - col1 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT ALL cor1.col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - 0 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT DISTINCT - col0 * + col0 + - cor0.col2 FROM tab0 AS cor0
----
-1226
-609
-8003
query I rowsort
SELECT - col0 + + ( + col1 ) * + cor0.col2 FROM tab0 AS cor0
----
2814
62
7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-2163
SELECT DISTINCT + tab0.col0 DIV + col0 + 99 AS col2 FROM tab0
----
100
skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT + tab0.col0 / + col0 + 99 AS col2 FROM tab0
----
100
query I rowsort
SELECT ALL col1 + tab2.col2 AS col1 FROM tab2
----
55
58
85
query I rowsort
SELECT - cor0.col1 * col1 + + col1 AS col2 FROM tab2 cor0
----
-272
-3422
-930
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2166
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2167
SELECT - col0 DIV + col1 + col2 * col1 FROM tab2 cor0
----
1533
642
837
skipif mysql # not compatible
query I rowsort label-2167
SELECT - col0 / + col1 + col2 * col1 FROM tab2 cor0
----
1533
642
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - ( - col1 ) col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT 59 + 17 FROM tab1 AS cor0
----
76
76
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-2170
SELECT CAST( - col2 AS SIGNED ) DIV col0 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2170
SELECT CAST ( - col2 AS INTEGER ) / col0 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT + + cor0.col1 * 96 + + col2 AS col0 FROM tab1 AS cor0
----
1017
1344
2550
query I rowsort
SELECT ALL - ( col0 ) + col1 AS col0 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT - col0 + col1 * col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT 26 + + 82 * col2 AS col1 FROM tab2 AS cor0
----
2158
2240
3142
query I rowsort
SELECT DISTINCT 92 * - ( - col0 * - col1 ) + + col1 AS col1 FROM tab0 AS cor0
----
-189802
-312243
-745017
query I rowsort
SELECT DISTINCT + + col2 + col1 AS col1 FROM tab1 cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2177
SELECT DISTINCT + - col0 * + col1 DIV + col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT + - col0 * + col1 / + col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - col0 + + 51 FROM tab2 AS cor0
----
-27
-28
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-2179
SELECT ALL 10 DIV - col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL 10 / - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + ( col1 ) * col0 + - col1 AS col1 FROM tab1 cor0
----
1027
52
630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 3 + - col2 col1 FROM tab0 cor0
----
191
225
290
query I rowsort
SELECT DISTINCT + cor2.col1 + 32 FROM tab2, tab0 cor0, tab0 AS cor1, tab1 AS cor2
----
42
45
58
query I rowsort
SELECT ALL col2 + + ( - col1 ) FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + 1 * col2 + - col2 + + 62 AS col0 FROM tab1 AS cor0
----
62
62
62
query I rowsort
SELECT 32 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 6bef041528d0147be26f7de162c66a5f
onlyif mysql # use DIV operator for integer division
query I rowsort label-2186
SELECT + + col0 DIV col2 + col2 col0 FROM tab1 AS cor0
----
54
58
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2186
SELECT + + col0 / col2 + col2 col0 FROM tab1 AS cor0
----
54
58
96
query I rowsort
SELECT DISTINCT + 95 FROM tab2, tab1 AS cor0
----
95
query I rowsort
SELECT col1 * 31 + - col1 AS col0 FROM tab1 AS cor0
----
300
390
780
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) + + col2 AS col1 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT DISTINCT - ( col1 ) + - col1 FROM tab1 cor0
----
-20
-26
-52
query I rowsort
SELECT - 81 + - col2 * + cor0.col1 FROM tab1 AS cor0
----
-1329
-1485
-651
query I rowsort
SELECT 47 FROM tab1, tab0 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT - 0 + cor0.col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - col2 * col1 * - cor0.col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT ALL ( 27 ) FROM tab2
----
27
27
27
query I rowsort
SELECT ALL 21 + + col1 FROM tab1
----
31
34
47
query I rowsort
SELECT + 26 * - 76 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 54c387e2420ed4f5efd3ccc0fb346cf9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2198
SELECT DISTINCT + ( col2 ) DIV + tab2.col0 + - col1 FROM tab2
----
-17
-28
-59
skipif mysql # not compatible
query I rowsort label-2198
SELECT DISTINCT + ( col2 ) / + tab2.col0 + - col1 FROM tab2
----
-17
-28
-59
query I rowsort
SELECT DISTINCT col1 + - col0 * col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col0 - 55 FROM tab1 AS cor0
----
23
585
985
onlyif mysql # use DIV operator for integer division
query I rowsort label-2201
SELECT DISTINCT - col0 DIV + col1 + + col2 AS col2 FROM tab1 cor0
----
51
54
90
skipif mysql # not compatible
query I rowsort label-2201
SELECT DISTINCT - col0 / + col1 + + col2 AS col2 FROM tab1 cor0
----
51
54
90
query I rowsort
SELECT cor0.col0 * ( col0 ) * cor0.col2 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT - 84 FROM tab0
----
-84
-84
-84
query I rowsort
SELECT DISTINCT - col1 * ( col1 ) + + cor0.col1 FROM tab0 cor0
----
-7310
-8190
-9312
query I rowsort
SELECT col0 + - ( col1 ) * col1 AS col2 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT - col1 * - col2 - - 67 FROM tab1 AS cor0
----
1315
1471
637
query I rowsort
SELECT + 86 + col1 FROM tab0
----
172
177
183
query I rowsort
SELECT 41 * + col0 + 63 FROM tab2
----
3261
3302
350
query I rowsort
SELECT DISTINCT - 6 * col1 * ( col0 ) FROM tab1
----
-3840
-468
-6240
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2210
SELECT col0 * - col0 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2210
SELECT col0 * - col0 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * tab1.col0 AS col1 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT + col1 + + col2 * col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT DISTINCT - col1 * 93 * col0 + - col2 AS col0 FROM tab0
----
-191985
-315736
-753289
query I rowsort
SELECT ALL tab1.col0 + 16 AS col2 FROM tab1
----
19
80
96
query I rowsort
SELECT - col2 + col0 + col1 FROM tab0
----
131
77
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * 8 col2 FROM tab0 AS cor0
----
264
656
8
query I rowsort
SELECT + + col1 * - ( ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort
SELECT col0 - CAST ( + col2 * col0 AS REAL ) AS col2 FROM tab0 cor0
----
-7209
-768
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2219
SELECT + col1 DIV + col2 - col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-2219
SELECT + col1 / + col2 - col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL 84 FROM tab2, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT ALL + col2 * - col0 - + col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT - cor0.col1 + + col2 * col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT cor0.col0 * - col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT col0 * - col2 * 18 AS col1 FROM tab0 AS cor0
----
-131364
-14256
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-2225
SELECT col0 * + col2 DIV + tab1.col2 AS col1 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-2225
SELECT col0 * + col2 / + tab1.col2 AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT - col1 * col2 AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + 12 * + col0 FROM tab2 AS cor0
----
84
936
948
query I rowsort
SELECT - 50 + - col1 * - col1 * + 9 FROM tab1 AS cor0
----
1471
6034
850
query I rowsort
SELECT 41 * col2 AS col1 FROM tab2
----
1066
1107
1558
query I rowsort
SELECT 44 + - col2 AS col0 FROM tab2 AS cor0
----
17
18
6
query I rowsort
SELECT ALL col1 * col0 * 54 FROM tab2 cor0
----
11718
248508
72522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col2 col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-2233
SELECT + col0 * 9 DIV - col0 + - col1 FROM tab2 AS cor0
----
-26
-40
-68
skipif mysql # not compatible
query I rowsort label-2233
SELECT + col0 * 9 / - col0 + - col1 FROM tab2 AS cor0
----
-26
-40
-68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595
query I rowsort
SELECT + 49 * - cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8414d49d57afb2d5bb13602da091697b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + cor0.col0 col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT ALL - + col1 * - col0 * + col2 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-2238
SELECT DISTINCT + col0 DIV ( + 42 * col2 ) AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2238
SELECT DISTINCT + col0 / ( + 42 * col2 ) AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + cor0.col0 * 78 FROM tab1 AS cor0
----
234
4992
6240
query I rowsort
SELECT - cor0.col0 + - 98 FROM tab2 cor0
----
-105
-176
-177
query I rowsort
SELECT DISTINCT 75 - col0 AS col1 FROM tab2 AS cor0
----
-3
-4
68
query I rowsort
SELECT + 21 * - col2 FROM tab0 AS cor0
----
-1722
-21
-693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 32 col2 FROM tab2 AS cor0
----
-32
-32
-32
query I rowsort
SELECT DISTINCT - col1 + 24 AS col1 FROM tab1 AS cor0
----
-2
11
14
query I rowsort
SELECT ALL ( - col2 ) + + col0 AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL + + col0 * - col2 + col0 * + 96 + + ( - col2 ) AS col0 FROM tab2 AS cor0
----
4544
456
5434
query I rowsort
SELECT - + 98 * cor0.col2 * + col2 AS col2 FROM tab2 AS cor0
----
-141512
-66248
-71442
query I rowsort
SELECT ALL + + col2 + col2 + + col0 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1227
642
8085
query I rowsort
SELECT - 66 * col1 AS col0 FROM tab0 AS cor0
----
-5676
-6006
-6402
onlyif mysql # use DIV operator for integer division
query I rowsort label-2250
SELECT col2 + cor0.col1 DIV 34 + + 14 AS col0 FROM tab0 AS cor0
----
17
49
98
skipif mysql # not compatible
query I rowsort label-2250
SELECT col2 + cor0.col1 / 34 + + 14 AS col0 FROM tab0 AS cor0
----
17
49
98
query I rowsort
SELECT 79 * - cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to e03b0755ee3b20784a36adc02389b791
query I rowsort
SELECT + col1 + - col1 * + ( col0 ) FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT - 34 + + col2 FROM tab0 AS cor0
----
-1
-33
48
query I rowsort
SELECT + - 22 AS col0 FROM tab1 AS cor0
----
-22
-22
-22
query I rowsort
SELECT - col0 * - col0 + - ( - 89 * col0 ) AS col0 FROM tab1 AS cor0
----
13520
276
9792
query I rowsort
SELECT DISTINCT - col0 * tab2.col1 * - tab2.col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT DISTINCT - ( + 25 ) AS col0 FROM tab0
----
-25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 84 + col1 col0 FROM tab1 AS cor0
----
110
94
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2259
SELECT - - col0 * - cor0.col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2259
SELECT - - col0 * - cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 77 * - col2 * col0 + + col1 * - col2 AS col2 FROM tab1 cor0
----
11070
280326
590112
query I rowsort
SELECT col0 + + col1 * + 46 AS col0 FROM tab1 AS cor0
----
1199
524
678
query I rowsort
SELECT ALL + col1 * col1 - + col2 * col1 AS col2 FROM tab0 AS cor0
----
4558
819
9312
query I rowsort
SELECT DISTINCT - - col2 * col0 + - cor0.col2 FROM tab1 cor0
----
108
3591
7584
query I rowsort
SELECT DISTINCT 25 * col1 * - col1 FROM tab0
----
-184900
-207025
-235225
onlyif mysql # use DIV operator for integer division
query I rowsort label-2265
SELECT ( - col0 + + 23 ) DIV - col1 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-2265
SELECT ( - col0 + + 23 ) / - col1 FROM tab2
----
0
0
3
query I rowsort
SELECT 55 * + 32 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 61e40b96c0f4bb9a5ca9ab3e803966ee
query I rowsort
SELECT - - ( - cor0.col1 ) - + col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2268
SELECT + - col0 DIV ( - col0 ) AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2268
SELECT + - col0 / ( - col0 ) AS col0 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2269
SELECT ALL + ( + col0 ) DIV + col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2269
SELECT ALL + ( + col0 ) / + col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 73 ) col1 FROM tab1
----
73
73
73
query I rowsort
SELECT 29 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2272
SELECT - CAST( - col0 AS SIGNED ) + col2 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-2272
SELECT - CAST ( - col0 AS INTEGER ) + col2 FROM tab0 AS cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * cor0.col2 + ( + col0 * col1 ) col1 FROM tab1 AS cor0
----
240
4288
8720
onlyif mysql # use DIV operator for integer division
query I rowsort label-2274
SELECT DISTINCT - + col1 DIV 45 AS col1 FROM tab2 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-2274
SELECT DISTINCT - + col1 / 45 AS col1 FROM tab2 AS cor0
----
-1
0
query I rowsort
SELECT + + col0 + cor0.col0 + col1 AS col0 FROM tab2 AS cor0
----
175
215
45
query I rowsort
SELECT DISTINCT - + cor0.col1 * + 28 FROM tab2 AS cor0
----
-1652
-476
-868
query I rowsort
SELECT - - col1 * ( - col2 ) * col1 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT DISTINCT - - cor0.col0 * ( - col2 + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT col1 - + col1 * 62 FROM tab0 AS cor0
----
-5246
-5551
-5917
query I rowsort
SELECT - col2 * - 61 FROM tab1 AS cor0
----
3294
3477
5856
query I rowsort
SELECT ALL + - col0 * - 22 FROM tab1 AS cor0
----
1408
1760
66
query I rowsort
SELECT tab1.col2 * col0 - col0 FROM tab1
----
159
3584
7600
query I rowsort
SELECT ALL ( + col1 ) + + ( ( col0 ) ) FROM tab1
----
29
74
93
query I rowsort
SELECT - 70 * col0 FROM tab2
----
-490
-5460
-5530
query I rowsort
SELECT - - col2 * col1 + + 39 FROM tab1 AS cor0
----
1287
1443
609
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 48 col1 FROM tab2 AS cor0
----
107
65
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 * col1 col1 FROM tab1
----
-1027
-52
-630
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 91c4f11552b395e0eb390f09eebaec3d
query I rowsort
SELECT 28 + - cor0.col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 3bdea8d30105012227d22597d78c2ef3
query I rowsort
SELECT ALL - + col2 - 76 FROM tab2 AS cor0
----
-102
-103
-114
query I rowsort
SELECT ALL col2 + 15 FROM tab1 AS cor0
----
111
69
72
query I rowsort
SELECT ALL 31 AS col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
query I rowsort
SELECT ALL 59 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT DISTINCT + col2 + 22 - col0 AS col2 FROM tab2
----
-19
-30
42
query I rowsort
SELECT ALL + + 30 FROM tab0 AS cor0
----
30
30
30
query I rowsort
SELECT DISTINCT col1 - - col0 AS col2 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL col2 + col0 * col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT ALL tab1.col2 + + col1 AS col2 FROM tab1
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2299
SELECT + ( cor0.col2 ) * - CAST( - col2 AS SIGNED ) * + col2 AS col2 FROM tab0 AS cor0
----
1
35937
551368
skipif mysql # not compatible
query I rowsort label-2299
SELECT + ( cor0.col2 ) * - CAST ( - col2 AS INTEGER ) * + col2 AS col2 FROM tab0 AS cor0
----
1
35937
551368
query I rowsort
SELECT DISTINCT - col0 * - col0 AS col1 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + - col0 + col0 + ( + col1 ) FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT + 54 + cor0.col2 * + col0 FROM tab0 AS cor0
----
7352
846
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2303
SELECT - - 47 * + col0 + CAST( + col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
144
3072
3840
skipif mysql # not compatible
query I rowsort label-2303
SELECT - - 47 * + col0 + CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
144
3072
3840
query I rowsort
SELECT ALL - col0 + + col2 + - col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT - col0 + - col2 + col2 AS col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL - col2 * + col2 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-2942
-3259
-9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-2307
SELECT col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2307
SELECT col1 / - col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2308
SELECT ALL + col0 DIV - col0 + col2 * - col0 FROM tab2 AS cor0
----
-190
-2029
-3003
skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL + col0 / - col0 + col2 * - col0 FROM tab2 AS cor0
----
-190
-2029
-3003
onlyif mysql # use DIV operator for integer division
query I rowsort label-2309
SELECT + col1 DIV - cor0.col0 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-2309
SELECT + col1 / - cor0.col0 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT DISTINCT - col2 * + col2 * cor0.col0 AS col0 FROM tab0 cor0
----
-26136
-35
-598436
query I rowsort
SELECT ALL - + col0 + col0 * - col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT DISTINCT - 35 AS col1 FROM tab2
----
-35
query I rowsort
SELECT - 64 * - col0 - col0 AS col0 FROM tab0 AS cor0
----
1512
2205
5607
query I rowsort
SELECT + + col1 + col1 + col1 FROM tab0 AS cor0
----
258
273
291
query I rowsort
SELECT ALL - 33 * col1 * + col1 AS col2 FROM tab2 AS cor0
----
-114873
-31713
-9537
query I rowsort
SELECT col2 * col1 + + col0 + - col2 AS col0 FROM tab0 AS cor0
----
131
2829
7469
query I rowsort
SELECT + col1 + col1 * - col2 + - cor0.col0 FROM tab1 AS cor0
----
-1315
-1381
-624
onlyif mysql # use DIV operator for integer division
query I rowsort label-2318
SELECT - col1 DIV cor0.col0 + col2 AS col0 FROM tab2 AS cor0
----
23
26
38
skipif mysql # not compatible
query I rowsort label-2318
SELECT - col1 / cor0.col0 + col2 AS col0 FROM tab2 AS cor0
----
23
26
38
query I rowsort
SELECT - col1 * tab1.col2 * + tab1.col1 AS col1 FROM tab1
----
-16224
-36504
-5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-2320
SELECT DISTINCT - col2 DIV - tab2.col0 FROM tab2
----
0
3
skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT - col2 / - tab2.col0 FROM tab2
----
0
3
query I rowsort
SELECT cor0.col2 * - col0 + - cor0.col2 + col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL 96 * + col2 + - col1 + - col2 FROM tab1
----
5104
5405
9107
query I rowsort
SELECT + col2 + + col0 + + col0 * col0 FROM tab1 cor0
----
4217
6576
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2324
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2324
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - - ( - col1 ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT col1 * col1 + - col2 * col1 * - col2 FROM tab0 AS cor0
----
101050
620165
9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965
query I rowsort
SELECT ALL - ( - col2 ) * + col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2329
SELECT ALL + CAST( 75 AS SIGNED ) FROM tab1 AS cor0
----
75
75
75
skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL + CAST ( 75 AS INTEGER ) FROM tab1 AS cor0
----
75
75
75
query I rowsort
SELECT ALL + col2 + - 13 - col2 AS col0 FROM tab0 AS cor0
----
-13
-13
-13
query I rowsort
SELECT ALL - 91 AS col0 FROM tab2
----
-91
-91
-91
query I rowsort
SELECT 36 + ( col2 ) AS col0 FROM tab0
----
118
37
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2333
SELECT CAST( NULL AS SIGNED ) * - col2 * - col1 + - tab2.col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2333
SELECT CAST ( NULL AS INTEGER ) * - col2 * - col1 + - tab2.col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 81 + 61 + col0 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
169
2008
2982
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
onlyif mysql # use DIV operator for integer division
query I rowsort label-2336
SELECT + - 15 DIV 58 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2336
SELECT + - 15 / 58 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2337
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * col2 DIV col1 + col2 + cor0.col1 DIV + col0 FROM tab0 AS cor0
----
156
3
48
skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * col2 / col1 + col2 + cor0.col1 / + col0 FROM tab0 AS cor0
----
156
3
48
query I rowsort
SELECT ALL ( col0 ) * col1 + + col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + col0 col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL 63 * - 13 FROM tab0 cor0
----
-819
-819
-819
query I rowsort
SELECT - - ( col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - - 45 FROM tab0 AS cor0
----
45
45
45
query I rowsort
SELECT DISTINCT + 15 + col0 FROM tab0 AS cor0
----
104
39
50
query I rowsort
SELECT + col0 + 43 AS col1 FROM tab2
----
121
122
50
query I rowsort
SELECT + col0 * col0 + col0 AS col1 FROM tab0
----
1260
600
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-2346
SELECT - col0 DIV col0 + + col0 * col0 FROM tab2
----
48
6083
6240
skipif mysql # not compatible
query I rowsort label-2346
SELECT - col0 / col0 + + col0 * col0 FROM tab2
----
48
6083
6240
query I rowsort
SELECT 30 * + tab0.col0 - - col0 FROM tab0
----
1085
2759
744
query I rowsort
SELECT ( 5 ) + cor0.col0 * ( + 45 ) AS col0 FROM tab1 cor0
----
140
2885
3605
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col2 col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab2 AS cor2
----
26
27
38
query I rowsort
SELECT DISTINCT - col2 * + 27 FROM tab0
----
-2214
-27
-891
query I rowsort
SELECT ALL cor0.col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL + 78 FROM tab2
----
78
78
78
query I rowsort
SELECT 2 - col2 * - tab1.col2 AS col1 FROM tab1
----
2918
3251
9218
query I rowsort
SELECT 92 AS col2 FROM tab1 cor0
----
92
92
92
query I rowsort
SELECT - cor0.col0 + + 31 FROM tab0 AS cor0
----
-4
-58
7
query I rowsort
SELECT - tab0.col0 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT ALL ( col0 ) * 25 * 0 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT col2 + - col2 * + tab1.col0 * + 3 AS col2 FROM tab1
----
-10887
-22944
-432
onlyif mysql # use DIV operator for integer division
query I rowsort label-2359
SELECT DISTINCT 71 DIV - col1 AS col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT 71 / - col1 AS col1 FROM tab0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2360
SELECT ALL - col0 DIV col1 AS col0 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL - col0 / col1 AS col0 FROM tab1
----
-6
-6
0
query I rowsort
SELECT DISTINCT 82 FROM tab1, tab0, tab2 AS cor0
----
82
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab2 cor1, tab0, tab0 AS cor2
----
3645 values hashing to f655b6f4c5b9ff73813030f2822ea1fd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 col2 FROM tab2
----
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-2364
SELECT ALL - cor0.col2 * cor0.col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL - cor0.col2 * cor0.col1 / col1 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + col2 * + 13 FROM tab1 AS cor0
----
1248
702
741
onlyif mysql # use DIV operator for integer division
query I rowsort label-2366
SELECT - - col1 DIV + col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2366
SELECT - - col1 / + col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + - col2 + + 30 AS col2 FROM tab2 AS cor0
----
-8
3
4
query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2369
SELECT + - cor0.col2 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-2369
SELECT + - cor0.col2 / - col0 AS col2 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT col1 + col2 * + col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT + col0 * - cor0.col1 + cor0.col1 * + cor0.col2 FROM tab1 AS cor0
----
-70
1326
208
query I rowsort
SELECT tab2.col2 - tab2.col1 AS col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT + + col0 * - 37 FROM tab0 AS cor0
----
-1295
-3293
-888
query I rowsort
SELECT ALL + + cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT 40 + - 13 AS col0 FROM tab1 AS cor0
----
27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2376
SELECT DISTINCT - 33 * + ( - col2 ) + + CAST( + col2 AS SIGNED ) * col2 FROM tab1 AS cor0
----
12384
4698
5130
skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT - 33 * + ( - col2 ) + + CAST ( + col2 AS INTEGER ) * col2 FROM tab1 AS cor0
----
12384
4698
5130
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2377
SELECT - CAST( NULL AS DECIMAL ) * 81 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2377
SELECT - CAST ( NULL AS REAL ) * 81 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - - ( 20 ) * + col2 FROM tab2 cor0
----
520
540
760
query I rowsort
SELECT DISTINCT + + ( col2 ) * + cor0.col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT 33 * + 24 AS col2 FROM tab0 AS cor0
----
792
792
792
query I rowsort
SELECT - 10 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1434
666
719
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 - col2 * col0 col0 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT - + col0 + - col1 * ( col1 ) AS col0 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT + - 9 * cor0.col0 FROM tab0 AS cor0
----
-216
-315
-801
query I rowsort
SELECT DISTINCT - col1 * col1 + col2 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934
onlyif mysql # use DIV operator for integer division
query I rowsort label-2387
SELECT ALL cor0.col1 + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL cor0.col1 + col2 / col2 AS col1 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT - col2 * cor0.col2 + - col2 FROM tab2 AS cor0
----
-1482
-702
-756
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2389
SELECT ALL col2 * col1 + + CAST( 53 + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1665
778
897
skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL col2 * col1 + + CAST ( 53 + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1665
778
897
query I rowsort
SELECT ALL + + 95 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT DISTINCT + col2 * 49 AS col0 FROM tab0 AS cor0
----
1617
4018
49
query I rowsort
SELECT + col2 + 10 FROM tab0 AS cor0
----
11
43
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-2393
SELECT DISTINCT - col0 DIV + 73 + cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
1342
217
4601
skipif mysql # not compatible
query I rowsort label-2393
SELECT DISTINCT - col0 / + 73 + cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
1342
217
4601
query I rowsort
SELECT DISTINCT col1 * + col2 + - cor0.col2 FROM tab0 AS cor0
----
2805
7380
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * col1 + cor0.col1 col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT - col1 * + cor0.col0 + + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT + 74 * cor0.col0 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ef1410d17b6b75ee3ab50c2a30eec58a
query I rowsort
SELECT + 45 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT 47 * 69 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a3abc89c904216c9914a6ac838e10a01
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 5 + + col2 * col0 col0 FROM tab1 AS cor0
----
157
3643
7675
query I rowsort
SELECT ALL + col1 * col1 - cor0.col1 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT DISTINCT - - col1 - + col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + col0 - cor0.col0 * + col2 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-2404
SELECT ALL - + col2 + col2 DIV 12 AS col2 FROM tab2 cor0
----
-24
-25
-35
skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL - + col2 + col2 / 12 AS col2 FROM tab2 cor0
----
-24
-25
-35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 + 18 col2 FROM tab1 AS cor0
----
-1230
-1386
-552
query I rowsort
SELECT 74 + col0 AS col1 FROM tab0
----
109
163
98
query I rowsort
SELECT - 10 + col0 FROM tab0 AS cor0
----
14
25
79
query I rowsort
SELECT ALL col2 + + col1 - 75 * - col1 FROM tab2 cor0
----
1330
2383
4510
onlyif mysql # use DIV operator for integer division
query I rowsort label-2409
SELECT - col1 * col0 - - 90 * - col1 DIV - col1 FROM tab0 AS cor0
----
-1974
-3305
-8009
skipif mysql # not compatible
query I rowsort label-2409
SELECT - col1 * col0 - - 90 * - col1 / - col1 FROM tab0 AS cor0
----
-1974
-3305
-8009
query I rowsort
SELECT DISTINCT - 24 * col0 + + 75 + + col1 FROM tab2 AS cor0
----
-1738
-1804
-62
query I rowsort
SELECT ALL - 98 AS col1 FROM tab0 AS cor0
----
-98
-98
-98
query I rowsort
SELECT - - col0 - col2 AS col1 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT - 69 * - col2 + - 15 + col1 * - col1 AS col2 FROM tab1 AS cor0
----
3035
3818
6440
query I rowsort
SELECT ALL + ( + 29 ) AS col1 FROM tab0
----
29
29
29
query I rowsort
SELECT DISTINCT + col0 + + col0 AS col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT ALL - 33 + + col1 + 19 AS col0 FROM tab1 AS cor0
----
-1
-4
12
query I rowsort
SELECT 15 + col1 AS col0 FROM tab2 AS cor0
----
32
46
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col1 col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT - - col0 * + cor0.col2 - col1 AS col0 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT ALL + + 60 + col2 + cor0.col2 FROM tab2 AS cor0
----
112
114
136
query I rowsort
SELECT ALL 52 * col0 + 84 AS col2 FROM tab1 AS cor0
----
240
3412
4244
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 32 col1 FROM tab0 cor0
----
32
32
32
query I rowsort
SELECT ALL - col0 * + 32 + col0 FROM tab0 cor0
----
-1085
-2759
-744
query I rowsort
SELECT ALL - col0 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL + - col0 + + col0 * 95 AS col2 FROM tab0 AS cor0
----
2256
3290
8366
query I rowsort
SELECT + + col1 * col1 * + col1 + col2 FROM tab2 AS cor0
----
205405
29818
4951
query I rowsort
SELECT ALL cor0.col1 * - cor0.col1 - col1 AS col2 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT col1 + + col2 * - col2 + tab1.col2 FROM tab1
----
-2836
-3182
-9107
query I rowsort
SELECT + col0 - - col1 AS col2 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL 19 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT DISTINCT - ( + col0 ) FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - + col0 + - cor0.col0 FROM tab1 cor0
----
-128
-160
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 92 col2 FROM tab1 AS cor0
----
92
92
92
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 21 AS REAL ) * col1 AS col2 FROM tab2 AS cor0
----
1239
357
651
query I rowsort
SELECT - + col0 + + 66 FROM tab2 AS cor0
----
-12
-13
59
query I rowsort
SELECT ALL cor0.col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT col0 * ( + col2 ) AS col1 FROM tab2
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col0 col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT + 8 FROM tab1, tab0 cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 col2 FROM tab0
----
54
query I rowsort
SELECT ALL col1 * - ( + col0 ) AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL - col1 + + col0 AS col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT - 88 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32
query I rowsort
SELECT DISTINCT + cor0.col0 * 58 AS col0 FROM tab2, tab1 cor0
----
174
3712
4640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + + col2 col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + col1 + tab1.col1 + - col0 * col0 FROM tab1
----
-4076
-6374
43
query I rowsort
SELECT ALL + ( col0 ) + ( col2 ) AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT col1 * - col0 + col0 * col0 FROM tab0 cor0
----
-1488
-178
-2170
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT tab2.col0 * col0 + col1 AS col2 FROM tab2
----
6143
6258
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2451
SELECT ALL tab0.col0 * CAST( NULL AS DECIMAL ) + - col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL tab0.col0 * CAST ( NULL AS REAL ) + - col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 * - 97 + + tab1.col0 * col1 FROM tab1
----
-4889
-5160
-8272
query I rowsort
SELECT + col0 * col0 + col2 AS col0 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT DISTINCT + - cor0.col0 + - col0 * - 86 AS col1 FROM tab1 AS cor0
----
255
5440
6800
query I rowsort
SELECT DISTINCT col0 * 36 AS col2 FROM tab0 AS cor0
----
1260
3204
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-2456
SELECT ALL + + col1 + + col0 DIV - col0 AS col0 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL + + col1 + + col0 / - col0 AS col0 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT ALL + - 95 + + col0 FROM tab1 AS cor0
----
-15
-31
-92
query I rowsort
SELECT DISTINCT + - col2 * 9 AS col2 FROM tab2 AS cor0
----
-234
-243
-342
query I rowsort
SELECT DISTINCT ( col1 ) + col2 * col2 FROM tab0 AS cor0
----
1175
6815
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-2460
SELECT ALL - 50 DIV 42 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL - 50 / 42 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT 61 * 4 + - cor0.col0 FROM tab0 AS cor0
----
155
209
220
query I rowsort
SELECT ALL - col1 * + cor0.col1 + + col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT ( col0 ) + cor0.col0 AS col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT - 89 + + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1159
1315
481
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2466
SELECT ALL + CAST( NULL AS SIGNED ) + 36 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL + CAST ( NULL AS INTEGER ) + 36 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( + col0 ) + + col2 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - + 85 * col0 AS col1 FROM tab2 AS cor0
----
-595
-6630
-6715
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * + cor0.col2 col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT + ( 39 ) + - col1 * + cor0.col0 FROM tab0 AS cor0
----
-2025
-3356
-8060
onlyif mysql # use DIV operator for integer division
query I rowsort label-2471
SELECT + col1 + col0 DIV col0 AS col2 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-2471
SELECT + col1 + col0 / col0 AS col2 FROM tab0
----
87
92
98
query I rowsort
SELECT - 61 * + col0 FROM tab0 AS cor0
----
-1464
-2135
-5429
onlyif mysql # use DIV operator for integer division
query I rowsort label-2473
SELECT DISTINCT + col0 DIV - 53 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-2473
SELECT DISTINCT + col0 / - 53 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT col1 * + ( col0 ) AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT + col0 + - col2 / col2 <= NULL
----
query I rowsort
SELECT ALL col1 + col1 * + cor0.col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
-10
-13
-26
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < + col1 * - col0
----
query I rowsort
SELECT tab2.col2 * - col2 FROM tab2 WHERE ( NULL ) BETWEEN ( col0 ) AND ( NULL )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( + col2 * + col1 )
----
query I rowsort
SELECT col2 + col0 * - tab1.col1 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT DISTINCT col2 + - col1 * - col2 AS col1 FROM tab2
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-2483
SELECT DISTINCT col2 DIV - col2 - col2 FROM tab0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-2483
SELECT DISTINCT col2 / - col2 - col2 FROM tab0
----
-2
-34
-83
query I rowsort
SELECT ALL + col1 + - col1 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT + col1 + + tab0.col1 FROM tab0
----
172
182
194
query I rowsort
SELECT - tab2.col1 - col0 AS col2 FROM tab2
----
-137
-38
-96
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 BETWEEN ( col1 ) AND NULL
----
query I rowsort
SELECT DISTINCT + tab1.col0 * tab1.col2 + col0 AS col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT - col2 + - col1 * - col0 FROM tab0
----
2031
3394
8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-2490
SELECT ALL + tab1.col2 + + col1 DIV col1 AS col1 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL + tab1.col2 + + col1 / col1 AS col1 FROM tab1
----
55
58
97
query I rowsort
SELECT ALL - tab2.col2 * + col1 + - col2 * + col2 FROM tab2
----
-1566
-2090
-2210
query I rowsort
SELECT ALL + tab0.col0 + - col2 AS col0 FROM tab0
----
-9
34
7
query I rowsort
SELECT ALL - col0 + col0 + + col0 AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL + col1 + col0 + col1 FROM tab1
----
106
55
84
query I rowsort
SELECT col1 + + col1 + + cor0.col0 FROM tab2 AS cor0
----
113
196
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 col2 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT ALL col0 * col0 * col1 AS col1 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT ALL + tab1.col2 + + col2 AS col1 FROM tab1
----
108
114
192
query I rowsort
SELECT DISTINCT col2 * tab1.col0 * - tab1.col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT - col0 * + col1 FROM tab1 WHERE + col1 NOT IN ( + col1 )
----
query I rowsort
SELECT + col1 + - col2 * - col0 + col2 AS col1 FROM tab2 WHERE NULL IN ( col0 * - tab2.col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2502
SELECT col2 + col0 DIV - col0 FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-2502
SELECT col2 + col0 / - col0 FROM tab2 AS cor0
----
25
26
37
query I rowsort
SELECT cor0.col0 + + col2 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT col1 - cor0.col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-2505
SELECT DISTINCT + - col0 DIV - col0 - col0 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT + - col0 / - col0 - col0 FROM tab1 AS cor0
----
-2
-63
-79
query I rowsort
SELECT DISTINCT + - col0 + + col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT col2 * - tab2.col1 * - ( col0 ) AS col0 FROM tab2
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 col1 FROM tab0
----
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col2 FROM tab1
----
-40
-40
-40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + + ( + 55 ) col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c286e49b8952ececc061f17581fba0b0
query I rowsort
SELECT DISTINCT + - col2 * + col2 + col0 AS col2 FROM tab2 AS cor0
----
-1365
-598
-722
onlyif mysql # use DIV operator for integer division
query I rowsort label-2512
SELECT DISTINCT - ( + tab0.col0 ) DIV col0 col2 FROM tab0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT - ( + tab0.col0 ) / col0 col2 FROM tab0
----
-1
query I rowsort
SELECT tab2.col0 + - cor0.col0 AS col2 FROM tab2, tab1, tab1 cor0
----
27 values hashing to a9e8a660067ce14822c0936e144e190d
query I rowsort
SELECT DISTINCT ( - 73 ) FROM tab2, tab0 AS cor0
----
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-2515
SELECT - cor0.col0 + + col0 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
-24
-88
0
skipif mysql # not compatible
query I rowsort label-2515
SELECT - cor0.col0 + + col0 / cor0.col2 AS col2 FROM tab0 AS cor0
----
-24
-88
0
query I rowsort
SELECT + 41 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
query I rowsort
SELECT ALL 24 + + col2 + 42 AS col0 FROM tab2
----
104
92
93
query I rowsort
SELECT 76 - - col0 AS col2 FROM tab1
----
140
156
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col0 col0 FROM tab2
----
0
query I rowsort
SELECT col0 * - 57 AS col2 FROM tab0 AS cor0
----
-1368
-1995
-5073
onlyif mysql # use DIV operator for integer division
query I rowsort label-2521
SELECT + col2 DIV + col1 + + cor0.col1 * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-2521
SELECT + col2 / + col1 + + cor0.col1 * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2522
SELECT col2 DIV col0 + + col2 AS col1 FROM tab1 AS cor0
----
57
72
97
skipif mysql # not compatible
query I rowsort label-2522
SELECT col2 / col0 + + col2 AS col1 FROM tab1 AS cor0
----
57
72
97
query I rowsort
SELECT ALL - - cor0.col2 * col2 * + col2 FROM tab0 cor0
----
1
35937
551368
onlyif mysql # use DIV operator for integer division
query I rowsort label-2524
SELECT ALL col0 DIV col1 AS col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL col0 / col1 AS col1 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT - col1 + cor0.col2 * 27 FROM tab0 AS cor0
----
-70
2123
805
query I rowsort
SELECT + - col0 + 40 * + 57 * + col1 FROM tab1 AS cor0
----
22736
29560
59277
query I rowsort
SELECT DISTINCT - - col1 * - col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + col0 + + ( - 0 ) * col2 * - 23 AS col1 FROM tab1 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2529
SELECT ALL + tab0.col1 DIV + col2 AS col0 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL + tab0.col1 / + col2 AS col0 FROM tab0
----
1
2
97
query I rowsort
SELECT DISTINCT + col2 + col1 + + col2 AS col2 FROM tab2
----
111
85
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-2531
SELECT ALL col0 + col2 + tab1.col1 DIV col1 FROM tab1
----
122
177
58
skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL col0 + col2 + tab1.col1 / col1 FROM tab1
----
122
177
58
query I rowsort
SELECT col2 * + col2 + + col2 - col0 FROM tab2
----
1403
624
749
query I rowsort
SELECT ALL + col0 + col2 + col2 AS col1 FROM tab1
----
111
178
272
query I rowsort
SELECT ALL + col0 + col2 * col1 AS col1 FROM tab1
----
1328
1407
634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 col0 FROM tab0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2536
SELECT DISTINCT col0 + col0 DIV + col2 AS col0 FROM tab1
----
3
65
80
skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT col0 + col0 / + col2 AS col0 FROM tab1
----
3
65
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2537
SELECT DISTINCT - col1 * col0 DIV + tab1.col1 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-2537
SELECT DISTINCT - col1 * col0 / + tab1.col1 FROM tab1
----
-3
-64
-80
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( tab1.col2 + - col0 * + col2 + col2 / col1 )
----
query I rowsort
SELECT tab0.col2 + col0 + - col1 FROM tab0 WHERE NOT ( col2 - col1 ) = ( col1 + - col0 )
----
-29
-61
80
query I rowsort
SELECT DISTINCT + col2 * tab1.col1 AS col0 FROM tab1
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col2 * + col2 col1 FROM tab1
----
-2919
-3313
-9296
query I rowsort
SELECT - tab1.col2 - + col0 * col0 FROM tab1
----
-4153
-63
-6496
query I rowsort
SELECT DISTINCT - col2 + - col0 + col2 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL - col1 + col2 * - col0 * + col2 + col2 * col2 AS col2 FROM tab1
----
-204697
-5858
-728077
query I rowsort
SELECT - - cor0.col0 + + col0 AS col0 FROM tab2 AS cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 * - col1 + col2 + 74 col0 FROM tab1 AS cor0
----
-1078
-1276
-439
onlyif mysql # use DIV operator for integer division
query I rowsort label-2547
SELECT + 97 * + col0 * ( - col0 ) + col1 * 21 DIV - col1 AS col1 FROM tab2 AS cor0
----
-4774
-590169
-605398
skipif mysql # not compatible
query I rowsort label-2547
SELECT + 97 * + col0 * ( - col0 ) + col1 * 21 / - col1 AS col1 FROM tab2 AS cor0
----
-4774
-590169
-605398
query I rowsort
SELECT + tab2.col1 FROM tab2 WHERE + col2 BETWEEN NULL AND NULL
----
query I rowsort
SELECT col0 + col0 - ( + col2 ) FROM tab0 AS cor0
----
15
69
96
query I rowsort
SELECT ALL - - ( col2 ) * col2 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-2551
SELECT DISTINCT col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT col0 / + col0 AS col1 FROM tab0 AS cor0
----
1
query I rowsort
SELECT col0 * col1 + - tab2.col2 AS col1 FROM tab2
----
1305
190
4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-2553
SELECT ALL col2 DIV ( col0 ) AS col1 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-2553
SELECT ALL col2 / ( col0 ) AS col1 FROM tab1
----
0
1
18
query I rowsort
SELECT ALL col1 * 23 FROM tab2
----
1357
391
713
onlyif mysql # use DIV operator for integer division
query I rowsort label-2555
SELECT - col2 * + tab1.col0 + - col1 DIV col1 col2 FROM tab1
----
-163
-3649
-7681
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2555
SELECT - col2 * + tab1.col0 + - col1 / col1 col2 FROM tab1
----
-163
-3649
-7681
query I rowsort
SELECT + col0 * + 6 + - tab1.col0 * + col0 AS col0 FROM tab1
----
-3712
-5920
9
query I rowsort
SELECT ALL cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-2558
SELECT DISTINCT - + col1 DIV ( + 16 ) AS col2 FROM tab2 cor0
----
-1
-3
skipif mysql # not compatible
query I rowsort label-2558
SELECT DISTINCT - + col1 / ( + 16 ) AS col2 FROM tab2 cor0
----
-1
-3
query I rowsort
SELECT ALL cor0.col2 + 41 FROM tab1, tab1 AS cor0
----
9 values hashing to 6c7ea0353add2a405c19398aeb2264ab
query I rowsort
SELECT + 37 + - col1 FROM tab2 AS cor0
----
-22
20
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-2561
SELECT ALL + col0 DIV + 99 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2561
SELECT ALL + col0 / + 99 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2562
SELECT CAST( NULL AS DECIMAL ) * 87 * + col1 + + 66 * col2 / cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2562
SELECT CAST ( NULL AS REAL ) * 87 * + col1 + + 66 * col2 / cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * - col0 + col1 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL + - col1 * + cor0.col0 AS col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + 19 * + 82 + col2 * - 12 FROM tab0
----
1162
1546
574
onlyif mysql # use DIV operator for integer division
query I rowsort label-2566
SELECT + 77 + col0 DIV - col1 FROM tab2 AS cor0
----
73
76
77
skipif mysql # not compatible
query I rowsort label-2566
SELECT + 77 + col0 / - col1 FROM tab2 AS cor0
----
73
76
77
query I rowsort
SELECT DISTINCT - 36 + - col0 AS col0 FROM tab0 AS cor0
----
-125
-60
-71
query I rowsort
SELECT - - 58 AS col0 FROM tab1 cor0
----
58
58
58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2569
SELECT 61 + ( + col1 ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2569
SELECT 61 + ( + col1 ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + - ( - 18 ) * - col1 FROM tab0
----
-1462
-1547
-1649
query I rowsort
SELECT + + cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - + 83 FROM tab2 AS cor0
----
-83
-83
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-2573
SELECT DISTINCT ( col0 ) DIV col2 AS col0 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-2573
SELECT DISTINCT ( col0 ) / col2 AS col0 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT col0 * + col2 + + col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT - col2 + - 37 AS col1 FROM tab2 AS cor0
----
-63
-64
-75
query I rowsort
SELECT + ( - cor0.col1 ) * - ( - 11 ) AS col2 FROM tab0 cor0
----
-1001
-1067
-946
query I rowsort
SELECT 18 AS col1 FROM tab0 AS cor0
----
18
18
18
query I rowsort
SELECT - col1 + + col1 * - cor0.col2 AS col1 FROM tab0 cor0
----
-194
-2924
-7553
query I rowsort
SELECT col0 * + tab1.col2 + - 3 FROM tab1
----
159
3645
7677
query I rowsort
SELECT DISTINCT - col1 * - col1 * + cor0.col0 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT - cor0.col1 * col1 + col0 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT ALL + 65 * col1 AS col2 FROM tab0 AS cor0
----
5590
5915
6305
query I rowsort
SELECT ALL cor0.col1 * col0 + col2 * - col2 * + col2 AS col0 FROM tab0 AS cor0
----
-33873
-543269
3394
query I rowsort
SELECT col0 * col1 + ( - col0 ) * - col0 * col2 FROM tab0 AS cor0
----
21072
4620
657621
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2585
SELECT ALL + - 89 * col2 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL + - 89 * col2 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col0 - col1 * + col1 AS col2 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT ALL 95 + col1 FROM tab0 cor0
----
181
186
192
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 DISTINCT col0 * + ( 3 ) col0 FROM tab1 AS cor0
----
192
240
9
query I rowsort
SELECT - col1 * 95 FROM tab0 AS cor0
----
-8170
-8645
-9215
query I rowsort
SELECT DISTINCT + col2 * - 28 FROM tab2 AS cor0
----
-1064
-728
-756
query I rowsort
SELECT ALL - - col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - cor0.col0 + + col0 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col0 * ( + col0 ) - col1 AS col2 FROM tab1 AS cor0
----
-17
4086
6387
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2595
SELECT DISTINCT col0 + + CAST( - 37 AS SIGNED ) FROM tab0 AS cor0
----
-13
-2
52
skipif mysql # not compatible
query I rowsort label-2595
SELECT DISTINCT col0 + + CAST ( - 37 AS INTEGER ) FROM tab0 AS cor0
----
-13
-2
52
query I rowsort
SELECT ALL - col2 * - col0 + + 80 FROM tab0 AS cor0
----
115
7378
872
query I rowsort
SELECT - - col2 * ( col0 ) AS col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT col2 + + 88 + cor0.col2 FROM tab0 AS cor0
----
154
252
90
query I rowsort
SELECT - col0 + + ( 73 ) AS col0 FROM tab2 AS cor0
----
-5
-6
66
query I rowsort
SELECT DISTINCT col1 * col2 + col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL ( col2 ) + + col2 * - 36 FROM tab0
----
-1155
-2870
-35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 col1 FROM tab1, tab2 cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to c6f049334398e3533dd6996714479a2f
query I rowsort
SELECT - - col1 + col1 AS col2 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT - 20 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee
onlyif mysql # use DIV operator for integer division
query I rowsort label-2605
SELECT ALL - tab0.col2 DIV - col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL - tab0.col2 / - col2 FROM tab0
----
1
1
1
query I rowsort
SELECT 1 * col2 + col2 * - col1 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-2607
SELECT ALL - - 78 * cor0.col0 + - 20 DIV 47 FROM tab2 cor0
----
546
6084
6162
skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL - - 78 * cor0.col0 + - 20 / 47 FROM tab2 cor0
----
546
6084
6162
query I rowsort
SELECT - + col1 * + col2 * + 5 + col1 AS col0 FROM tab2 AS cor0
----
-3213
-4154
-7611
query I rowsort
SELECT + + ( - col1 ) + ( col0 ) * col0 + + 73 FROM tab0 cor0
----
1201
563
7903
query I rowsort
SELECT - col2 * - col0 + + col0 * + ( - col2 ) FROM tab0 AS cor0
----
0
0
0
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0 CROSS JOIN tab2, tab2 AS cor1
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08
query I rowsort
SELECT ( - col0 ) * + col1 AS col0 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-2613
SELECT ALL col2 DIV col0 + - col1 FROM tab0
----
-85
-91
-97
skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL col2 / col0 + - col1 FROM tab0
----
-85
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2614
SELECT - tab0.col1 * - col0 DIV - ( + col0 ) + - col0 col0 FROM tab0
----
-110
-132
-180
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2614
SELECT - tab0.col1 * - col0 / - ( + col0 ) + - col0 col0 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT ALL + col0 * col0 + + col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT DISTINCT - col1 + + col2 + ( + 73 ) * - col1 * + col0 AS col0 FROM tab2 AS cor0
----
-15845
-335979
-98018
query I rowsort
SELECT + + 77 * col0 AS col0 FROM tab2 AS cor0
----
539
6006
6083
query I rowsort
SELECT DISTINCT 6 AS col2 FROM tab0
----
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-2619
SELECT DISTINCT + - ( + col1 ) DIV + 9 + - col0 FROM tab2 AS cor0
----
-10
-80
-84
skipif mysql # not compatible
query I rowsort label-2619
SELECT DISTINCT + - ( + col1 ) / + 9 + - col0 FROM tab2 AS cor0
----
-10
-80
-84
query I rowsort
SELECT + cor0.col2 + cor0.col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - - 28 + + 32 FROM tab0 AS cor0
----
60
60
60
query I rowsort
SELECT - 52 + col2 AS col0 FROM tab1 AS cor0
----
2
44
5
query I rowsort
SELECT - - ( - col2 ) * col0 + col0 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT - - ( ( + col0 ) ) * 33 AS col1 FROM tab1 AS cor0
----
2112
2640
99
query I rowsort
SELECT - cor0.col2 * cor0.col2 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT - - col1 * - col0 * col1 AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT - - 37 * col2 AS col2 FROM tab0 AS cor0
----
1221
3034
37
query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - col0 * + col1 * - col0 + col1 FROM tab2 AS cor0
----
106114
1550
359015
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c
query I rowsort
SELECT - col2 + + cor0.col2 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + col2 * + 37 AS col0 FROM tab1
----
1998
2109
3552
query I rowsort
SELECT - col0 + 84 AS col0 FROM tab1 cor0
----
20
4
81
query I rowsort
SELECT + cor0.col0 * - ( col0 ) + + ( 42 ) AS col0 FROM tab2 cor0
----
-6042
-6199
-7
query I rowsort
SELECT - + ( col0 ) + - col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT + col2 + 0 * - col1 AS col0 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2637
SELECT DISTINCT - col1 DIV CAST( col1 AS SIGNED ) AS col1 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT - col1 / CAST ( col1 AS INTEGER ) AS col1 FROM tab1
----
-1
query I rowsort
SELECT DISTINCT + 31 + ( - cor0.col0 ) * - ( 35 ) AS col0 FROM tab0, tab1 AS cor0
----
136
2271
2831
query I rowsort
SELECT ALL col2 * 84 AS col2 FROM tab1
----
4536
4788
8064
query I rowsort
SELECT DISTINCT ( cor0.col1 ) + - cor1.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-3
2
51
56
62
67
73
8
query I rowsort
SELECT DISTINCT + + cor0.col1 + 59 FROM tab2 AS cor0
----
118
76
90
query I rowsort
SELECT - cor1.col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT ALL - col0 + 32 FROM tab0 AS cor0
----
-3
-57
8
query I rowsort
SELECT DISTINCT ( cor0.col0 ) * col0 + + cor0.col2 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2645
SELECT ALL CAST( NULL AS SIGNED ) * col1 + col2 col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL CAST ( NULL AS INTEGER ) * col1 + col2 col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col1 * 68 AS col0 FROM tab0 AS cor0
----
5848
6188
6596
query I rowsort
SELECT DISTINCT ( + 30 ) + + col1 AS col1 FROM tab0 AS cor0
----
116
121
127
query I rowsort
SELECT + - ( - col0 ) + + col1 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ( 34 ) * - col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1213
-806
-911
query I rowsort
SELECT - col2 * + col1 + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT - col2 * - 99 - col1 FROM tab0 AS cor0
----
2
3181
8027
query I rowsort
SELECT DISTINCT col1 * + 10 FROM tab2 AS cor0
----
170
310
590
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2653
SELECT + tab2.col0 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1 cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-2653
SELECT + tab2.col0 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT col1 + + 47 * col0 AS col0 FROM tab1
----
167
3018
3773
query I rowsort
SELECT DISTINCT - + col1 * col2 * 14 AS col0 FROM tab0 AS cor0
----
-104468
-1358
-39732
query I rowsort
SELECT + 51 + - col0 AS col1 FROM tab1 AS cor0
----
-13
-29
48
query I rowsort
SELECT ALL 47 * + 19 + + col2 * col2 AS col1 FROM tab2
----
1569
1622
2337
query I rowsort
SELECT ALL + 29 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT DISTINCT - col1 * tab2.col0 + col0 * - 45 FROM tab2
----
-4898
-532
-8112
query I rowsort
SELECT ALL ( + col1 ) + col0 * + col0 FROM tab2
----
6143
6258
80
query I rowsort
SELECT - 0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT ( - col1 ) * col2 FROM tab0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2663
SELECT ALL col0 DIV + tab2.col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL col0 / + tab2.col1 FROM tab2
----
0
1
4
query I rowsort
SELECT + 76 AS col2 FROM tab0
----
76
76
76
query I rowsort
SELECT DISTINCT + col1 * col0 * + col0 FROM tab1 AS cor0
----
234
40960
83200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2666
SELECT DISTINCT col0 * - CAST( - col1 + - cor0.col2 * + 97 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
18550
201318
292537
skipif mysql # not compatible
query I rowsort label-2666
SELECT DISTINCT col0 * - CAST ( - col1 + - cor0.col2 * + 97 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
18550
201318
292537
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 27 col2 FROM tab0 cor0
----
2214
27
891
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT 27 * col2 + - 85 FROM tab2
----
617
644
941
query I rowsort
SELECT ALL tab0.col0 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT + col1 * + ( - col0 * + cor0.col1 ) FROM tab0 cor0
----
-177504
-329315
-737009
query I rowsort
SELECT DISTINCT - col1 * col1 + 69 + + col2 AS col1 FROM tab1 AS cor0
----
-4
-553
26
query I rowsort
SELECT ALL col2 * + 81 FROM tab2 AS cor0
----
2106
2187
3078
query I rowsort
SELECT col0 * - ( col1 ) * col1 FROM tab0 cor0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL + col2 + 84 FROM tab2 AS cor0
----
110
111
122
query I rowsort
SELECT + col2 + col2 * - ( + col1 ) AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL - col1 + 68 * + col0 + - col2 AS col1 FROM tab1
----
124
4285
5331
query I rowsort
SELECT 66 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT DISTINCT - 87 FROM tab2 cor0
----
-87
query I rowsort
SELECT + - col0 * + col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT - col2 * - col0 * - col0 FROM tab1 AS cor0
----
-233472
-486
-614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-2682
SELECT DISTINCT + - col2 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2682
SELECT DISTINCT + - col2 / cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT - + ( col2 ) + cor0.col1 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-2097
-3396
-8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 col1 FROM tab2
----
95
95
95
query I rowsort
SELECT ALL col2 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL col1 * - cor0.col1 + + 55 AS col1 FROM tab0 AS cor0
----
-7341
-8226
-9354
query I rowsort
SELECT + 86 + cor0.col2 FROM tab2 AS cor0
----
112
113
124
query I rowsort
SELECT DISTINCT + - col1 * col0 - - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL - col2 * col2 * col2 AS col1 FROM tab2 cor0
----
-17576
-19683
-54872
query I rowsort
SELECT ALL + col0 * cor0.col2 + 63 * 31 * + col2 + col2 FROM tab2 AS cor0
----
52832
52947
77254
query I rowsort
SELECT + - cor0.col0 * col0 * 32 FROM tab2 AS cor0
----
-1568
-194688
-199712
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * cor0.col2 col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL - col1 + col2 * col0 * cor0.col0 + + col1 AS col0 FROM tab1 AS cor0
----
233472
486
614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col2 FROM tab2 AS cor0
----
70
70
70
query I rowsort
SELECT - - 68 AS col1 FROM tab0 AS cor0
----
68
68
68
query I rowsort
SELECT DISTINCT col1 * - col2 - - col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-2697
SELECT col1 * 15 DIV 91 + col2 * col0 col2 FROM tab1
----
166
3649
7682
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2697
SELECT col1 * 15 / 91 + col2 * col0 col2 FROM tab1
----
166
3649
7682
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 col0 * col0 + col1 AS col1 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT - col1 + + ( col0 ) + col2 AS col0 FROM tab0 AS cor0
----
-29
-61
80
query I rowsort
SELECT + + col1 + cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
138
173
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + - col1 col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col0 + + col1 * - col0 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2704
SELECT DISTINCT tab2.col0 + CAST( col2 + - col0 AS SIGNED ) AS col0 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-2704
SELECT DISTINCT tab2.col0 + CAST ( col2 + - col0 AS INTEGER ) AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT + col2 - - cor0.col0 * - col1 * col2 FROM tab0 AS cor0
----
-3394
-664036
-68079
query I rowsort
SELECT - col1 + col2 + - ( col0 ) * col0 FROM tab1 AS cor0
----
-4049
-6317
19
query I rowsort
SELECT cor0.col0 * + col2 * col1 + - 8 + 60 * col0 AS col0 FROM tab1 AS cor0
----
104632
40312
4384
query I rowsort
SELECT DISTINCT + cor0.col2 + + ( col0 ) * - col2 FROM tab2 AS cor0
----
-162
-2002
-2964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col0 col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - - col2 * col1 + col0 * 49 AS col1 FROM tab1 AS cor0
----
1551
3706
5168
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2711
SELECT + CAST( NULL AS SIGNED ) + + col1 + - col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2711
SELECT + CAST ( NULL AS INTEGER ) + + col1 + - col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 38 FROM tab2, tab0 cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507
query I rowsort
SELECT ALL + - 75 + ( + col0 ) FROM tab0 AS cor0
----
-40
-51
14
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 col2 FROM tab0 cor0
----
39
query I rowsort
SELECT + + 51 + col2 FROM tab0 AS cor0
----
133
52
84
query I rowsort
SELECT ALL col0 + ( - cor0.col2 ) AS col1 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT - - col2 * - 67 - col1 * col1 FROM tab0 AS cor0
----
-13775
-9476
-9607
query I rowsort
SELECT + 3 FROM tab1
----
3
3
3
query I rowsort
SELECT - - col0 * + 3 + col0 FROM tab2 AS cor0
----
28
312
316
query I rowsort
SELECT - col2 * + 74 - col2 AS col1 FROM tab1 AS cor0
----
-4050
-4275
-7200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2721
SELECT - + CAST( NULL AS SIGNED ) + - col1 * col0 * - col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2721
SELECT - + CAST ( NULL AS INTEGER ) + - col1 * col0 * - col0 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2722
SELECT ALL + cor0.col1 + col2 DIV col0 FROM tab0 cor0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL + cor0.col1 + col2 / col0 FROM tab0 cor0
----
87
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 col2 FROM tab0 AS cor0
----
36
query I rowsort
SELECT - + 56 * - cor0.col1 * - col2 + ( cor0.col1 + col0 ) * col0 FROM tab0 AS cor0
----
-156288
-401852
-812
query I rowsort
SELECT DISTINCT - - 84 AS col1 FROM tab1 AS cor0
----
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-2726
SELECT + 49 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2726
SELECT + 49 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 84 FROM tab1 AS cor0
----
84
84
84
query I rowsort
SELECT DISTINCT + + ( + cor0.col2 ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - col1 * - ( - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-2730
SELECT - 35 + col2 DIV + col1 AS col1 FROM tab0 AS cor0
----
-35
-35
-35
skipif mysql # not compatible
query I rowsort label-2730
SELECT - 35 + col2 / + col1 AS col1 FROM tab0 AS cor0
----
-35
-35
-35
query I rowsort
SELECT ALL - 30 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142
query I rowsort
SELECT + cor0.col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT 60 * + col2 AS col2 FROM tab1 cor0
----
3240
3420
5760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 col1 FROM tab1
----
36
query I rowsort
SELECT DISTINCT col0 + col0 + + col1 FROM tab0
----
134
167
269
query I rowsort
SELECT ALL + - col0 * + 58 FROM tab2 cor0
----
-406
-4524
-4582
query I rowsort
SELECT ALL + - col0 - + col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT - - col0 * + cor0.col2 + col1 * + col0 FROM tab0 AS cor0
----
15397
2856
3430
onlyif mysql # use DIV operator for integer division
query I rowsort label-2739
SELECT + col1 DIV col1 + 35 AS col2 FROM tab2
----
36
36
36
skipif mysql # not compatible
query I rowsort label-2739
SELECT + col1 / col1 + 35 AS col2 FROM tab2
----
36
36
36
query I rowsort
SELECT ALL + 84 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT cor0.col0 * col2 + + cor0.col2 FROM tab2 cor0
----
2054
216
3040
query I rowsort
SELECT col1 + col2 + + col0 * col1 * tab0.col1 AS col2 FROM tab0
----
177623
329413
737182
query I rowsort
SELECT - col0 + - 43 AS col0 FROM tab1
----
-107
-123
-46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 * - col0 + col2 col0 FROM tab2
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-2745
SELECT DISTINCT + col2 * ( - col1 ) DIV col1 + + col1 DIV col0 col2 FROM tab2
----
-23
-26
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT + col2 * ( - col1 ) / col1 + + col1 / col0 col2 FROM tab2
----
-23
-26
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2746
SELECT tab0.col2 + + ( + col2 ) * col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2746
SELECT tab0.col2 + + ( + col2 ) * col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 + 11 AS col2 FROM tab1
----
14
75
91
query I rowsort
SELECT ALL - col2 * col0 + 16 * + col1 FROM tab0
----
-5842
1517
584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + tab1.col2 col1 FROM tab1
----
109
67
80
query I rowsort
SELECT ALL - col0 * + col0 + - tab0.col1 AS col0 FROM tab0
----
-1322
-662
-8012
query I rowsort
SELECT 0 + 33 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT ALL - 15 AS col2 FROM tab2
----
-15
-15
-15
query I rowsort
SELECT - 16 * - cor0.col1 * 58 FROM tab1 AS cor0
----
12064
24128
9280
query I rowsort
SELECT - col1 * col2 + - 34 * - col1 AS col0 FROM tab0 cor0
----
-4368
3201
86
query I rowsort
SELECT - 6 FROM tab0, tab1 cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934
query I rowsort
SELECT col2 * 53 + col0 AS col1 FROM tab2 AS cor0
----
1438
1456
2093
query I rowsort
SELECT ALL 8 AS col2 FROM tab0
----
8
8
8
query I rowsort
SELECT DISTINCT + 85 AS col1 FROM tab1, tab2 AS cor0
----
85
query I rowsort
SELECT DISTINCT 20 AS col0 FROM tab2, tab0 cor0
----
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2760
SELECT ALL CAST( - 43 AS SIGNED ) * - col1 AS col0 FROM tab1
----
1118
430
559
skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL CAST ( - 43 AS INTEGER ) * - col1 AS col0 FROM tab1
----
1118
430
559
onlyif mysql # use DIV operator for integer division
query I rowsort label-2761
SELECT col2 + - col1 DIV col1 AS col2 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-2761
SELECT col2 + - col1 / col1 AS col2 FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT - + 31 * - col1 + - 13 FROM tab0 AS cor0
----
2653
2808
2994
onlyif mysql # use DIV operator for integer division
query I rowsort label-2763
SELECT + - 7 + col0 DIV - col0 FROM tab2 cor0
----
-8
-8
-8
skipif mysql # not compatible
query I rowsort label-2763
SELECT + - 7 + col0 / - col0 FROM tab2 cor0
----
-8
-8
-8
query I rowsort
SELECT + ( - col0 ) + + col1 * - col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT + - ( + col2 ) * col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + 5 - + col2 AS col1 FROM tab0 AS cor0
----
-28
-77
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2767
SELECT + col2 - col0 * + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-1224
-543
-7839
skipif mysql # not compatible
query I rowsort label-2767
SELECT + col2 - col0 * + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-1224
-543
-7839
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2768
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 col2 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 col2 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 col1 FROM tab1, tab1 AS cor0
----
-77
query I rowsort
SELECT - 31 - col2 FROM tab1 cor0
----
-127
-85
-88
query I rowsort
SELECT ( col0 ) * - cor0.col2 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT - 45 AS col2 FROM tab2, tab1 cor0, tab0 AS cor1
----
-45
query I rowsort
SELECT 69 * - col2 + + col1 AS col1 FROM tab0
----
-2191
-5567
28
query I rowsort
SELECT + ( - cor0.col2 ) * + 38 AS col0 FROM tab0 AS cor0
----
-1254
-3116
-38
query I rowsort
SELECT DISTINCT + - col0 * ( cor0.col1 * col2 ) + cor0.col2 * + 85 FROM tab0 AS cor0
----
-3310
-65307
-657148
query I rowsort
SELECT DISTINCT - col2 + + 66 AS col2 FROM tab1 AS cor0
----
-30
12
9
query I rowsort
SELECT + - col2 * 89 + + col2 + + col2 FROM tab1 AS cor0
----
-4698
-4959
-8352
query I rowsort
SELECT ALL - col0 + col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT col1 - + ( col1 ) AS col0 FROM tab0 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2780
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 * col1 + col0 - ( - tab0.col1 ) * + 59 FROM tab0
----
-2004
2260
5661
query I rowsort
SELECT DISTINCT + 77 - col0 * + col1 FROM tab2
----
-1266
-140
-4525
query I rowsort
SELECT + tab0.col1 * col1 + tab0.col0 - + col0 * + col1 FROM tab0
----
271
5356
6049
onlyif mysql # use DIV operator for integer division
query I rowsort label-2784
SELECT - col0 + col0 DIV 13 - col2 FROM tab0
----
-165
-34
-56
skipif mysql # not compatible
query I rowsort label-2784
SELECT - col0 + col0 / 13 - col2 FROM tab0
----
-165
-34
-56
query I rowsort
SELECT DISTINCT cor0.col1 * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-2786
SELECT ALL + + cor0.col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL + + cor0.col2 / + col2 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 68 col0 FROM tab2 AS cor0
----
476
5304
5372
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 * + col0 col0 FROM tab0 cor0
----
-1322
-662
-8012
query I rowsort
SELECT 85 * col2 AS col0 FROM tab0 cor0
----
2805
6970
85
query I rowsort
SELECT col1 * - ( - col0 ) * + col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT - col2 * tab2.col0 AS col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT - tab0.col0 + cor0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to dbfc6e14a516b2f4a3bad04409a815fc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2793
SELECT CAST( NULL AS SIGNED ) col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2793
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT 94 AS col0 FROM tab2 AS cor0
----
94
94
94
query I rowsort
SELECT col2 * 49 AS col1 FROM tab0
----
1617
4018
49
query I rowsort
SELECT - ( + ( col1 ) + - 8 ) FROM tab2
----
-23
-51
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL ( + cor0.col1 ) + - col0 AS col0 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2800
SELECT ALL - + CAST( - ( + col2 ) AS SIGNED ) * col2 DIV - col0 FROM tab1 AS cor0
----
-115
-50
-972
skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL - + CAST ( - ( + col2 ) AS INTEGER ) * col2 / - col0 FROM tab1 AS cor0
----
-115
-50
-972
query I rowsort
SELECT ALL - 73 + 72 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - 82 * col2 + - col2 AS col2 FROM tab2 AS cor0
----
-2158
-2241
-3154
query I rowsort
SELECT + - cor0.col2 * col1 + - col0 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634
onlyif mysql # use DIV operator for integer division
query I rowsort label-2804
SELECT DISTINCT - + 62 * col1 DIV col2 FROM tab0 AS cor0
----
-161
-6014
-68
skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT - + 62 * col1 / col2 FROM tab0 AS cor0
----
-161
-6014
-68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) + col1 col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - 66 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a
query I rowsort
SELECT - col0 + cor0.col2 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT tab2.col0 + - col2 + + 34 FROM tab2
----
14
75
86
query I rowsort
SELECT ALL + 77 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-14
-20
-9
query I rowsort
SELECT DISTINCT + cor0.col1 - - col1 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT ( + col1 ) + col0 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - 83 + - col1 FROM tab1 AS cor0
----
-109
-93
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2813
SELECT + 14 DIV col0 col2 FROM tab1 AS cor0
----
0
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2813
SELECT + 14 / col0 col2 FROM tab1 AS cor0
----
0
0
4
query I rowsort
SELECT ALL tab1.col0 * ( col1 ) AS col2 FROM tab1
----
1040
640
78
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col0 * col2 AS REAL ) AS col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT 83 + + col1 AS col0 FROM tab0
----
169
174
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2817
SELECT + CAST( NULL AS SIGNED ) * col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2817
SELECT + CAST ( NULL AS INTEGER ) * col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ( + 87 ) FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50
query I rowsort
SELECT ALL col0 * - 36 + col2 * + col1 * col2 - - 58 FROM tab1 cor0
----
116986
30244
75766
query I rowsort
SELECT ALL + col1 + 86 - + 85 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT ALL - + cor0.col0 * col2 + - col0 + col0 * + col0 * - 32 AS col1 FROM tab2 AS cor0
----
-1764
-196794
-202793
query I rowsort
SELECT col1 * col0 + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT - cor0.col2 + ( ( - col2 ) ) AS col1 FROM tab1 AS cor0
----
-108
-114
-192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + ( - 35 ) * col1 col2 FROM tab0 AS cor0
----
-2924
-3094
-3298
query I rowsort
SELECT DISTINCT - - col0 + + 39 + col2 AS col1 FROM tab0 AS cor0
----
210
75
96
query I rowsort
SELECT ALL col0 * - col2 + cor0.col2 - col1 AS col2 FROM tab0 AS cor0
----
-131
-7307
-845
query I rowsort
SELECT cor0.col0 - - col1 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT col0 * col2 * 19 + - col2 FROM tab1 AS cor0
----
145824
3024
69255
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - tab2.col0 col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT + col1 - + col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 * col2 * col1 FROM tab2
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-2832
SELECT col2 - cor0.col1 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-2832
SELECT col2 - cor0.col1 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
2
34
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-2833
SELECT ALL + col1 DIV + ( 17 * + cor0.col1 ) + col0 DIV col1 + cor0.col0 AS col2 FROM tab1 cor0
----
3
70
86
skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL + col1 / + ( 17 * + cor0.col1 ) + col0 / col1 + cor0.col0 AS col2 FROM tab1 cor0
----
3
70
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-2834
SELECT DISTINCT col2 DIV - 14 col1 FROM tab2 AS cor0
----
-1
-2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT col2 / - 14 col1 FROM tab2 AS cor0
----
-1
-2
onlyif mysql # use DIV operator for integer division
query I rowsort label-2835
SELECT DISTINCT - - col0 + 37 DIV col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-2835
SELECT DISTINCT - - col0 + 37 / col1 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2836
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) + cor0.col0 * + col2 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) + cor0.col0 * + col2 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - col1 - cor0.col1 * + col1 * col0 AS col2 FROM tab0 AS cor0
----
-177590
-329412
-737100
onlyif mysql # use DIV operator for integer division
query I rowsort label-2838
SELECT DISTINCT + tab1.col1 + + 48 * ( + col2 + + tab1.col1 ) DIV 90 FROM tab1
----
45
68
71
skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT + tab1.col1 + + 48 * ( + col2 + + tab1.col1 ) / 90 FROM tab1
----
45
68
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2839
SELECT ALL col2 + - CAST( + col2 AS SIGNED ) col1 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL col2 + - CAST ( + col2 AS INTEGER ) col1 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT col2 + 71 + col0 FROM tab2
----
105
175
188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 67 + + col1 col2 FROM tab2 AS cor0
----
126
84
98
query I rowsort
SELECT + cor0.col1 * cor0.col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - 88 + cor0.col1 FROM tab0 cor0
----
-2
3
9
query I rowsort
SELECT tab1.col2 * - col2 * col1 + - col1 + tab1.col2 * - tab1.col0 FROM tab1
----
-127501
-36148
-76004
query I rowsort
SELECT + 2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT - col1 * 11 AS col2 FROM tab2 AS cor0
----
-187
-341
-649
query I rowsort
SELECT DISTINCT - col2 * - cor0.col0 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2848
SELECT + CAST( NULL AS SIGNED ) * - ( - col1 * - ( cor0.col0 ) ) col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2848
SELECT + CAST ( NULL AS INTEGER ) * - ( - col1 * - ( cor0.col0 ) ) col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 5 * col1 AS col1 FROM tab0 AS cor0
----
430
455
485
query I rowsort
SELECT DISTINCT - - col2 + - 15 * + col0 AS col1 FROM tab1 AS cor0
----
-1104
-903
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2851
SELECT ALL + - col2 + - 71 DIV + col1 FROM tab2 AS cor0
----
-27
-29
-42
skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL + - col2 + - 71 / + col1 FROM tab2 AS cor0
----
-27
-29
-42
query I rowsort
SELECT - col1 - - col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + + col1 * col0 AS col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT + col0 * col1 - col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT - ( - col2 ) + + 57 FROM tab2
----
83
84
95
query I rowsort
SELECT - 2 * col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT ALL + 70 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-3780
-3990
-6720
onlyif mysql # use DIV operator for integer division
query I rowsort label-2858
SELECT DISTINCT + + col2 * - col2 DIV - col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-2858
SELECT DISTINCT + + col2 * - col2 / - col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + ( + cor0.col2 ) * col0 + - col2 + - col1 AS col2 FROM tab2 AS cor0
----
131
1943
2947
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + + cor0.col2 col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL - - col0 * cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT 22 AS col1 FROM tab1 AS cor0
----
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 1 col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL 43 FROM tab0 cor0
----
43
43
43
query I rowsort
SELECT DISTINCT + col1 * col2 + col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT + col2 + cor0.col1 + - cor0.col0 FROM tab1 AS cor0
----
29
3
77
query I rowsort
SELECT DISTINCT - col2 + - col0 AS col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL + + col2 - + col0 * + col1 * col1 FROM tab0 AS cor0
----
-177471
-329314
-736927
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 * - col1 * col0 col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT col2 + - cor0.col2 + + col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - cor0.col2 * col0 - + cor0.col0 * - col0 AS col1 FROM tab1 AS cor0
----
-1280
-153
448
query I rowsort
SELECT tab2.col0 + col2 FROM tab2 WHERE NOT - col2 NOT IN ( col2 * col0 )
----
query I rowsort
SELECT + col0 * col0 + - col1 + + col0 AS col1 FROM tab2 AS cor0
----
25
6103
6303
query I rowsort
SELECT ALL - col2 * col0 * cor0.col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-113997
-5096
-52650
query I rowsort
SELECT DISTINCT + col2 - - col1 * col0 * tab0.col0 AS col2 FROM tab0
----
118826
49569
720893
query I rowsort
SELECT - col2 + + col1 * - col1 * - col0 FROM tab2 AS cor0
----
22793
271492
6700
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 >= ( NULL )
----
query I rowsort
SELECT DISTINCT - col2 * col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT + cor0.col2 + cor0.col2 * cor0.col1 * - col2 FROM tab2 cor0
----
-22572
-24510
-39858
query I rowsort
SELECT ALL - tab2.col2 * cor0.col1 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 7ad65e484b98a033eea3a66598d2975c
query I rowsort
SELECT - cor0.col0 + col0 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL col1 * + tab1.col1 + col2 AS col0 FROM tab1 WHERE NOT ( - col0 * + col2 ) BETWEEN ( NULL ) AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2883
SELECT ALL + col0 + col1 DIV + col0 FROM tab2
----
11
78
79
skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL + col0 + col1 / + col0 FROM tab2
----
11
78
79
query I rowsort
SELECT - col2 + col0 * - col1 * - col2 + + col2 AS col1 FROM tab0
----
3395
664118
68112
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 > col0 * col0 + + col1 + col0 * - col2
----
35
97
1
89
91
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 col2 FROM tab0 WHERE ( - col1 ) BETWEEN col1 + col0 AND col0 + col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2887
SELECT DISTINCT tab0.col1 DIV - tab0.col2 + + col1 * + col0 AS col1 FROM tab0
----
2062
3298
8098
skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT tab0.col1 / - tab0.col2 + + col1 * + col0 AS col1 FROM tab0
----
2062
3298
8098
query I rowsort
SELECT DISTINCT col0 + + col2 FROM tab0 WHERE NOT col0 < NULL
----
query I rowsort
SELECT DISTINCT col2 + + tab0.col1 FROM tab0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-2890
SELECT col0 * col1 + + col1 DIV + col2 AS col0 FROM tab1
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-2890
SELECT col0 * col1 + + col1 / + col2 AS col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT tab0.col2 FROM tab0 WHERE NULL IN ( col1 )
----
query I rowsort
SELECT col0 * tab2.col2 AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT col0 * tab1.col1 FROM tab1 WHERE NOT ( NULL ) IN ( + col1 / - col2 + col1 )
----
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - tab0.col0 * - tab0.col0 / col0 + col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 51 col0 FROM tab2 AS cor0
----
-51
-51
-51
query I rowsort
SELECT - ( col2 ) * + col0 + col1 AS col0 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT + col1 + + col0 * col0 FROM tab0
----
1322
662
8012
query I rowsort
SELECT DISTINCT - cor0.col2 - col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT ALL + cor0.col2 * col1 * col0 + - col1 FROM tab1 AS cor0
----
36470
4186
99827
query I rowsort
SELECT 62 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - 25 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 6f83d63ca9889b3b99826987c718bda8
query I rowsort
SELECT DISTINCT col2 * col1 * + col0 AS col1 FROM tab0
----
3395
664118
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 col0 FROM tab2 cor0
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-2905
SELECT col1 * - col0 DIV col0 col0 FROM tab2
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2905
SELECT col1 * - col0 / col0 col0 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT col0 * + col2 + + col2 * col2 FROM tab1
----
16896
3078
6897
query I rowsort
SELECT ALL - col1 * tab0.col0 + tab0.col1 * + col1 - - col0 FROM tab0
----
271
5356
6049
query I rowsort
SELECT - col2 + col2 + - cor0.col2 FROM tab2 AS cor0
----
-26
-27
-38
query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NULL <= ( cor0.col2 )
----
query I rowsort
SELECT cor0.col2 + - col1 AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - col0 + + col0 * - col2 FROM tab1 cor0
----
-165
-3712
-7760
query I rowsort
SELECT tab0.col1 * + tab0.col0 + col0 * col0 FROM tab0
----
16020
2640
4620
query I rowsort
SELECT ALL + tab2.col2 + - col0 * col1 * col2 AS col2 FROM tab2
----
-119626
-50996
-5832
query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT NULL NOT IN ( + col1 * col2 )
----
query I rowsort
SELECT DISTINCT - col2 + - col0 * col2 FROM tab2
----
-2054
-216
-3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 + col2 col0 FROM tab1
----
121
176
57
query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE ( - col2 * - col0 ) NOT BETWEEN col0 AND NULL
----
query I rowsort
SELECT ALL - col1 + - col2 FROM tab1 WHERE NOT col1 * - col2 <> NULL
----
query I rowsort
SELECT DISTINCT tab1.col2 * + col0 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT col1 * + col1 + - col0 * tab1.col0 AS col0 FROM tab1
----
-3996
-6231
667
query I rowsort
SELECT ALL col0 + - col2 * - col2 AS col0 FROM tab0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-2922
SELECT ALL + col0 + + col1 DIV + col1 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL + col0 + + col1 / + col1 FROM tab1
----
4
65
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-2923
SELECT ALL + 10 + tab2.col2 * 64 DIV - col0 AS col1 FROM tab2
----
-11
-20
-236
skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL + 10 + tab2.col2 * 64 / - col0 AS col1 FROM tab2
----
-11
-20
-236
query I rowsort
SELECT tab1.col1 * col2 + - ( ( tab1.col1 ) ) * 28 AS col0 FROM tab1
----
290
676
884
query I rowsort
SELECT - col0 * - col2 + - 41 + + cor0.col1 FROM tab0 AS cor0
----
7348
837
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-2926
SELECT col1 * + col0 * ( cor0.col1 ) + col0 + col0 DIV col0 AS col1 FROM tab1 AS cor0
----
13601
2032
6465
skipif mysql # not compatible
query I rowsort label-2926
SELECT col1 * + col0 * ( cor0.col1 ) + col0 + col0 / col0 AS col1 FROM tab1 AS cor0
----
13601
2032
6465
query I rowsort
SELECT DISTINCT + - 13 * col2 AS col0 FROM tab2 AS cor0
----
-338
-351
-494
query I rowsort
SELECT DISTINCT + cor2.col2 FROM tab0, tab0 cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
1
33
82
query I rowsort
SELECT ALL - + cor0.col1 + - col0 * + col2 FROM tab1 AS cor0
----
-188
-3658
-7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-2930
SELECT + col1 DIV + 47 + - 14 + + col0 FROM tab2 AS cor0
----
-7
65
65
skipif mysql # not compatible
query I rowsort label-2930
SELECT + col1 / + 47 + - 14 + + col0 FROM tab2 AS cor0
----
-7
65
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 col1 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2932
SELECT cor0.col1 + col2 DIV cor0.col1 + + col0 AS col0 FROM tab1 AS cor0
----
100
31
79
skipif mysql # not compatible
query I rowsort label-2932
SELECT cor0.col1 + col2 / cor0.col1 + + col0 AS col0 FROM tab1 AS cor0
----
100
31
79
query I rowsort
SELECT + - col0 * 48 + - col1 - col2 AS col2 FROM tab1 AS cor0
----
-224
-3139
-3949
query I rowsort
SELECT - col0 + - 71 AS col1 FROM tab1 AS cor0
----
-135
-151
-74
query I rowsort
SELECT ALL - col1 * - ( col0 ) AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT col2 + - col2 * - cor0.col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT - - col1 * - col1 + col0 * col2 + ( + col0 ) AS col1 FROM tab2 AS cor0
----
-1375
-765
2792
onlyif mysql # use DIV operator for integer division
query I rowsort label-2938
SELECT DISTINCT - col1 * col0 DIV col0 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-2938
SELECT DISTINCT - col1 * col0 / col0 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + + col2 + - cor0.col2 * - 53 FROM tab0 cor0
----
1782
4428
54
query I rowsort
SELECT DISTINCT 72 FROM tab0, tab1, tab2 AS cor0
----
72
query I rowsort
SELECT ALL + ( col2 ) * - ( ( - col2 ) ) + 67 AS col1 FROM tab1
----
2983
3316
9283
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2942
SELECT + cor0.col2 + + CAST( - cor0.col0 AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576
skipif mysql # not compatible
query I rowsort label-2942
SELECT + cor0.col2 + + CAST ( - cor0.col0 AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2943
SELECT + col2 * - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-2943
SELECT + col2 * - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT - 90 + + col0 + 93 FROM tab1
----
6
67
83
query I rowsort
SELECT ALL - 68 * col1 FROM tab0 AS cor0
----
-5848
-6188
-6596
query I rowsort
SELECT DISTINCT cor0.col1 + col0 * col0 FROM tab0 AS cor0
----
1322
662
8012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 * + col1 - - cor0.col1 col0 FROM tab0 AS cor0
----
7138
7553
8051
query I rowsort
SELECT DISTINCT + 72 + - col0 FROM tab1 AS cor0
----
-8
69
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2949
SELECT ALL - cor0.col2 * - ( - col1 * CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL - cor0.col2 * - ( - col1 * CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + cor0.col0 * 65 FROM tab1 cor0
----
-195
-4160
-5200
query I rowsort
SELECT ALL - cor0.col1 * + col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2952
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2952
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col0 * 67 AS col0 FROM tab1 AS cor0
----
-201
-4288
-5360
query I rowsort
SELECT DISTINCT + ( col0 ) * col2 + 38 AS col1 FROM tab1 cor0
----
200
3686
7718
query I rowsort
SELECT DISTINCT col1 * 71 FROM tab0 AS cor0
----
6106
6461
6887
query I rowsort
SELECT ALL - cor0.col1 + - 95 * - col0 FROM tab0 AS cor0
----
2194
3228
8364
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2957
SELECT ALL - - CAST( NULL AS SIGNED ) + + 11 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL - - CAST ( NULL AS INTEGER ) + + 11 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2958
SELECT DISTINCT - ( - ( col1 ) ) DIV + col0 + col0 col0 FROM tab1 AS cor0
----
11
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT - ( - ( col1 ) ) / + col0 + col0 col0 FROM tab1 AS cor0
----
11
64
80
query I rowsort
SELECT ALL + + 83 FROM tab0 AS cor0
----
83
83
83
query I rowsort
SELECT ALL - + 99 - - col1 * - col1 FROM tab0 AS cor0
----
-7495
-8380
-9508
query I rowsort
SELECT - col2 * col1 * + cor0.col2 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT - col1 + - col0 * + col0 FROM tab1 AS cor0
----
-35
-4106
-6413
query I rowsort
SELECT DISTINCT col1 * col2 + cor0.col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT - col0 + - col2 * - col2 + - col2 FROM tab1 AS cor0
----
2859
3128
9040
query I rowsort
SELECT + 16 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
query I rowsort
SELECT + + col1 + - col2 AS col1 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT + cor0.col1 + cor0.col2 AS col0 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT + + cor0.col1 AS col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL + 45 AS col1 FROM tab1
----
45
45
45
query I rowsort
SELECT ALL + col1 + col2 * - col1 AS col1 FROM tab0
----
-2752
-7371
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 * col0 col0 FROM tab0 AS cor0
----
1225
3115
840
query I rowsort
SELECT DISTINCT + 38 + col1 * 33 * - col1 FROM tab2 cor0
----
-114835
-31675
-9499
onlyif mysql # use DIV operator for integer division
query I rowsort label-2973
SELECT DISTINCT col1 DIV col1 + + 42 * col0 FROM tab1 AS cor0
----
127
2689
3361
skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT col1 / col1 + + 42 * col0 FROM tab1 AS cor0
----
127
2689
3361
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 col2 FROM tab0 cor0
----
65
65
65
query I rowsort
SELECT ALL 21 * + cor0.col0 - - col1 FROM tab0 AS cor0
----
1960
590
832
query I rowsort
SELECT DISTINCT - col1 + - col2 + col1 * + 47 FROM tab0 AS cor0
----
3923
4104
4461
query I rowsort
SELECT DISTINCT cor0.col2 + ( col1 ) FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT + + col0 * cor0.col1 + cor0.col0 FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT + 36 - 89 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d
query I rowsort
SELECT + ( 23 ) + + col1 AS col1 FROM tab1 AS cor0
----
33
36
49
query I rowsort
SELECT DISTINCT ( 10 ) * col0 AS col0 FROM tab0 AS cor0
----
240
350
890
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col2 FROM tab2
----
83
83
83
query I rowsort
SELECT - ( 40 ) + + col0 FROM tab2 AS cor0
----
-33
38
39
query I rowsort
SELECT - cor0.col0 * col1 + col2 * - 82 FROM tab2 AS cor0
----
-2431
-4459
-6734
onlyif mysql # use DIV operator for integer division
query I rowsort label-2985
SELECT DISTINCT col1 + + 0 DIV - col1 + col2 FROM tab0 AS cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT col1 + + 0 / - col1 + col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + col0 * 74 + ( col0 ) AS col2 FROM tab2 AS cor0
----
525
5850
5925
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2987
SELECT + cor0.col1 + CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2987
SELECT + cor0.col1 + CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 62 ) col2 FROM tab1 AS cor0
----
62
62
62
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 4c87430a2010fee8daf6d04acf0ad703
query I rowsort
SELECT cor0.col1 * - 56 FROM tab1 AS cor0
----
-1456
-560
-728
query I rowsort
SELECT DISTINCT - - 80 AS col0 FROM tab0 AS cor0
----
80
query I rowsort
SELECT DISTINCT col1 * + 62 FROM tab0
----
5332
5642
6014
query I rowsort
SELECT + - 61 FROM tab2 AS cor0
----
-61
-61
-61
query I rowsort
SELECT col0 + - col2 * ( col2 ) FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT 0 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT + col1 * 41 + 58 + col1 AS col0 FROM tab0 AS cor0
----
3670
3880
4132
onlyif mysql # use DIV operator for integer division
query I rowsort label-2997
SELECT - col0 DIV col0 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-18
-32
-60
skipif mysql # not compatible
query I rowsort label-2997
SELECT - col0 / col0 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-18
-32
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-2998
SELECT DISTINCT - col0 DIV col1 col0 FROM tab2 AS cor0
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT - col0 / col1 col0 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT DISTINCT col1 * + col2 + - col2 - col2 * 32 AS col2 FROM tab0 AS cor0
----
1749
4756
64
query I rowsort
SELECT - cor0.col0 + + 28 FROM tab0 AS cor0
----
-61
-7
4
query I rowsort
SELECT - col2 * - 64 + col1 AS col2 FROM tab0 AS cor0
----
161
2198
5339
query I rowsort
SELECT ALL col0 + + ( col1 ) FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + - col0 + cor0.col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - 21 + cor1.col1 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c3eca2afcfed6eac44a3361cb2d16fd0
query I rowsort
SELECT ALL + 99 + col2 AS col2 FROM tab0
----
100
132
181
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3006
SELECT CAST( 31 AS SIGNED ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
skipif mysql # not compatible
query I rowsort label-3006
SELECT CAST ( 31 AS INTEGER ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
onlyif mysql # use DIV operator for integer division
query I rowsort label-3007
SELECT + col0 * - col1 * 55 + col0 * - col0 DIV col0 AS col2 FROM tab2
----
-11942
-253188
-73944
skipif mysql # not compatible
query I rowsort label-3007
SELECT + col0 * - col1 * 55 + col0 * - col0 / col0 AS col2 FROM tab2
----
-11942
-253188
-73944
query I rowsort
SELECT - 96 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539
query I rowsort
SELECT DISTINCT + + col2 + col0 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - cor0.col2 + col1 - - 44 * - col1 AS col1 FROM tab2 cor0
----
-1360
-2563
-769
onlyif mysql # use DIV operator for integer division
query I rowsort label-3011
SELECT ALL - - cor0.col2 DIV + CAST( - col1 AS SIGNED ) + + col2 * - 22 * col2 AS col2 FROM tab0 AS cor0
----
-147928
-22
-23958
skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL - - cor0.col2 / + CAST ( - col1 AS INTEGER ) + + col2 * - 22 * col2 AS col2 FROM tab0 AS cor0
----
-147928
-22
-23958
query I rowsort
SELECT ALL + col1 * col1 - col0 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT ALL + col1 * col2 * tab0.col0 AS col0 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT col1 * 41 AS col1 FROM tab0
----
3526
3731
3977
query I rowsort
SELECT DISTINCT - col0 * + ( + col1 ) + - col1 * - 64 FROM tab0 AS cor0
----
-2275
2813
3440
onlyif mysql # use DIV operator for integer division
query I rowsort label-3016
SELECT 39 DIV - 48 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3016
SELECT 39 / - 48 FROM tab1
----
0
0
0
query I rowsort
SELECT - col2 * 21 AS col1 FROM tab2
----
-546
-567
-798
query I rowsort
SELECT + ( 86 * col2 ) + - 42 * - col0 * col0 + 17 FROM tab1
----
176951
277073
5039
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3019
SELECT + - col0 * + ( + col2 ) * - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3019
SELECT + - col0 * + ( + col2 ) * - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + tab2.col1 - col2 FROM tab2
----
-23
-59
7
query I rowsort
SELECT col0 + + col0 + col1 AS col2 FROM tab1 AS cor0
----
138
173
32
query I rowsort
SELECT + col2 + col1 * ( - cor0.col1 ) * - col1 AS col0 FROM tab2 AS cor0
----
205405
29818
4951
query I rowsort
SELECT + ( col2 ) * - col2 + 91 * - col1 AS col0 FROM tab2 cor0
----
-2991
-3550
-6045
onlyif mysql # use DIV operator for integer division
query I rowsort label-3024
SELECT + + 23 * - cor0.col0 + + col1 + - col2 DIV + col2 FROM tab1 AS cor0
----
-1463
-1828
-44
skipif mysql # not compatible
query I rowsort label-3024
SELECT + + 23 * - cor0.col0 + + col1 + - col2 / + col2 FROM tab1 AS cor0
----
-1463
-1828
-44
query I rowsort
SELECT ALL - 45 AS col0 FROM tab2 AS cor0
----
-45
-45
-45
query I rowsort
SELECT + 51 + - col1 * + col2 AS col2 FROM tab1
----
-1197
-1353
-519
query I rowsort
SELECT + 46 * - col1 + col2 AS col0 FROM tab1 AS cor0
----
-1142
-403
-502
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) + - 37 * - cor0.col1 * + col2 col2 FROM tab2 AS cor0
----
23885
30938
56699
query I rowsort
SELECT DISTINCT - - 10 AS col1 FROM tab0 AS cor0
----
10
query I rowsort
SELECT - 95 * col1 AS col0 FROM tab0 cor0
----
-8170
-8645
-9215
onlyif mysql # use DIV operator for integer division
query I rowsort label-3031
SELECT ALL - col1 DIV col1 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL - col1 / col1 FROM tab0 cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3032
SELECT ALL + - col1 DIV + col1 + + col1 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL + - col1 / + col1 + + col1 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT DISTINCT - 20 AS col2 FROM tab2 cor0
----
-20
query I rowsort
SELECT + ( col0 ) * ( + 71 + - col0 ) * 43 AS col0 FROM tab1 AS cor0
----
-30960
19264
8772
query I rowsort
SELECT ALL + cor0.col1 * + col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + + col1 + cor0.col2 + col0 * 74 FROM tab2 AS cor0
----
576
5857
5901
query I rowsort
SELECT ( ( + col1 ) ) FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 48 col1 FROM tab1 AS cor0
----
48
48
48
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 cor1, tab1, tab0 AS cor2
----
3645 values hashing to b803f2d602a28da5cf35ddc7c7fa2eeb
query I rowsort
SELECT 24 FROM tab1, tab1 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 col0 FROM tab0
----
95
95
95
query I rowsort
SELECT - 42 FROM tab2, tab1 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d
query I rowsort
SELECT ALL 8 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT col0 + - col0 * - col1 + + col0 FROM tab2
----
1501
231
4758
onlyif mysql # use DIV operator for integer division
query I rowsort label-3046
SELECT DISTINCT + ( 93 ) + col0 DIV col1 FROM tab0
----
93
skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT + ( 93 ) + col0 / col1 FROM tab0
----
93
query I rowsort
SELECT DISTINCT col1 * + col2 + - col2 AS col2 FROM tab1
----
1152
1350
513
query I rowsort
SELECT ALL - - ( + ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-3049
SELECT DISTINCT - 2 DIV col2 FROM tab0
----
-2
0
skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT - 2 / col2 FROM tab0
----
-2
0
query I rowsort
SELECT ALL 58 * + col2 FROM tab2
----
1508
1566
2204
query I rowsort
SELECT + 42 * - tab0.col1 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 07c8a8fe8627bf573e78dddbd677814e
query I rowsort
SELECT ALL - 4 + - col1 AS col1 FROM tab0 AS cor0
----
-101
-90
-95
query I rowsort
SELECT DISTINCT - 57 * - cor0.col0 FROM tab0 AS cor0
----
1368
1995
5073
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3054
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + ( col2 ) + cor0.col1 * col1 * - col2 FROM tab0 cor0
----
-244035
-678960
-9408
query I rowsort
SELECT ALL cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + col1 - ( col1 * col0 ) AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT + + col2 * 38 FROM tab2 AS cor0
----
1026
1444
988
query I rowsort
SELECT DISTINCT - col0 + - col2 * col1 AS col2 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT - col0 * - col0 * 9 FROM tab0 AS cor0
----
11025
5184
71289
query I rowsort
SELECT DISTINCT + col2 + col2 * col1 AS col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT 31 + col2 AS col0 FROM tab0
----
113
32
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col1 col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL - col2 * + 10 AS col0 FROM tab1 AS cor0
----
-540
-570
-960
query I rowsort
SELECT - col0 + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT + - cor0.col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL - 45 * - cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 8c033541caf69f6347023da0ef126f74
query I rowsort
SELECT + col1 + + ( col0 * + col1 ) AS col2 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL + 21 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
query I rowsort
SELECT DISTINCT col2 * + tab1.col2 * + 36 AS col2 FROM tab1
----
104976
116964
331776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 * + col0 col1 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT - col0 * 8 FROM tab1 AS cor0
----
-24
-512
-640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - cor0.col0 * 49 col2 FROM tab2 AS cor0
----
-312
-3763
-3854
query I rowsort
SELECT + col2 * col1 + - col1 * - col1 AS col2 FROM tab1 AS cor0
----
1417
2080
670
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3075
SELECT CAST( - cor0.col2 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif mysql # not compatible
query I rowsort label-3075
SELECT CAST ( - cor0.col2 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT - - 0 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + ( ( - col0 ) ) * + col0 AS col1 FROM tab2 cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( col2 ) ) * col1 col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + + 95 + col0 * - 14 FROM tab2 AS cor0
----
-1011
-3
-997
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + col0 col1 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT + + col0 + - col0 AS col1 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3082
SELECT + 11 + + col0 DIV - CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
12
12
12
skipif mysql # not compatible
query I rowsort label-3082
SELECT + 11 + + col0 / - CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
12
12
12
query I rowsort
SELECT + + cor0.col1 + cor0.col0 * 10 AS col1 FROM tab0 AS cor0
----
326
447
981
query I rowsort
SELECT DISTINCT tab0.col1 + col2 AS col0 FROM tab0
----
119
173
98
query I rowsort
SELECT 79 AS col2 FROM tab0, tab1, tab2 AS cor0, tab1 cor1
----
81 values hashing to da0116d31b8af0da9f685c090d378baf
query I rowsort
SELECT ALL col0 * - col1 + tab0.col1 AS col2 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT - - col1 * + col0 + - col1 AS col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT - col1 * col1 * - 93 - - 80 * - col0 * - 76 AS col1 FROM tab1 AS cor0
----
398420
502117
81108
query I rowsort
SELECT col0 + - 18 * col2 + + ( + col1 + col0 ) AS col0 FROM tab1
----
-1555
-888
-940
query I rowsort
SELECT DISTINCT + tab0.col0 + - tab0.col0 FROM tab0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3091
SELECT CAST( NULL AS SIGNED ) + 99 * - col2 * col0 + + col2 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3091
SELECT CAST ( NULL AS INTEGER ) + 99 * - col2 * col0 + + col2 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 40 + - tab0.col1 * - col0 AS col0 FROM tab0
----
2104
3435
8139
query I rowsort
SELECT + - cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT col1 * + col1 + + 58 AS col1 FROM tab2
----
1019
347
3539
query I rowsort
SELECT DISTINCT 94 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
94
query I rowsort
SELECT tab2.col2 * + col2 + + col2 FROM tab2
----
1482
702
756
onlyif mysql # use DIV operator for integer division
query I rowsort label-3097
SELECT DISTINCT cor0.col0 + - col0 DIV - 89 + + col2 FROM tab1 cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT cor0.col0 + - col0 / - 89 + + col2 FROM tab1 cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-3098
SELECT ALL + ( col1 ) DIV col0 AS col2 FROM tab0 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL + ( col1 ) / col0 AS col2 FROM tab0 cor0
----
1
2
3
query I rowsort
SELECT DISTINCT 9 * 38 FROM tab0
----
342
query I rowsort
SELECT col1 * - 23 FROM tab0
----
-1978
-2093
-2231
query I rowsort
SELECT DISTINCT - 15 * cor0.col2 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-10140
-10935
-21660
query I rowsort
SELECT DISTINCT 53 + + col0 * 41 * - 42 AS col1 FROM tab1 cor0
----
-110155
-137707
-5113
onlyif mysql # use DIV operator for integer division
query I rowsort label-3103
SELECT ALL ( col0 ) DIV - ( - 66 ) - col2 col1 FROM tab1 AS cor0
----
-54
-57
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL ( col0 ) / - ( - 66 ) - col2 col1 FROM tab1 AS cor0
----
-54
-57
-95
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) * col2 + - ( col2 ) / - tab1.col0 AS col1 FROM tab1
----
1249
1422
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col0 FROM tab1
----
37
37
37
query I rowsort
SELECT - 57 * - col0 AS col0 FROM tab0
----
1368
1995
5073
onlyif mysql # use DIV operator for integer division
query I rowsort label-3107
SELECT - - col0 + cor0.col0 DIV col2 FROM tab0 AS cor0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-3107
SELECT - - col0 + cor0.col0 / col2 FROM tab0 AS cor0
----
24
70
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 35 + + col0 col0 FROM tab2 cor0
----
113
114
42
query I rowsort
SELECT DISTINCT + - cor0.col0 + - col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT + 22 * + col2 AS col2 FROM tab1 AS cor0
----
1188
1254
2112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * col2 col1 FROM tab2 cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-3112
SELECT DISTINCT - col0 + + col0 DIV - ( - 92 ) FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-3112
SELECT DISTINCT - col0 + + col0 / - ( - 92 ) FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3113
SELECT - cor0.col1 DIV 66 + cor0.col0 + col1 FROM tab0 AS cor0
----
109
131
179
skipif mysql # not compatible
query I rowsort label-3113
SELECT - cor0.col1 / 66 + cor0.col0 + col1 FROM tab0 AS cor0
----
109
131
179
query I rowsort
SELECT cor0.col0 * 75 + + 69 * + col1 + + ( - 95 + col0 ) FROM tab0 AS cor0
----
12948
7663
9258
query I rowsort
SELECT col0 + - col2 + - 58 AS col0 FROM tab2 cor0
----
-17
-6
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 * - 36 col1 FROM tab2 AS cor0
----
279
2834
2882
query I rowsort
SELECT - - 67 + + col0 + + col0 AS col1 FROM tab0 AS cor0
----
115
137
245
query I rowsort
SELECT + col0 + col2 + - cor0.col2 FROM tab1 cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3119
SELECT DISTINCT + - CAST( col2 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT + - CAST ( col2 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + ( + col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + ( + 93 ) AS col2 FROM tab2 AS cor0
----
93
query I rowsort
SELECT - col0 + - col0 - col0 FROM tab1 AS cor0
----
-192
-240
-9
query I rowsort
SELECT ALL 2 AS col1 FROM tab1 AS cor0
----
2
2
2
query I rowsort
SELECT 5 - - col2 FROM tab2 cor0
----
31
32
43
query I rowsort
SELECT ALL - col2 + ( + col2 ) * + col1 + col2 * col2 FROM tab1 AS cor0
----
10368
3762
4266
query I rowsort
SELECT DISTINCT - + col2 + col1 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-73
20
95
query I rowsort
SELECT DISTINCT - 64 * 90 + - col0 + col1 * col2 FROM tab2 AS cor0
----
-4304
-4930
-5193
query I rowsort
SELECT + col0 + - col2 AS col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT - + 5 + ( - col1 ) FROM tab2 AS cor0
----
-22
-36
-64
query I rowsort
SELECT ALL - 81 * - cor0.col0 + + col1 FROM tab2 AS cor0
----
598
6377
6416
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 + 85 col0 FROM tab2 cor0
----
162
query I rowsort
SELECT ALL - col0 * + col0 + - col1 FROM tab2 cor0
----
-6143
-6258
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3133
SELECT - CAST( NULL AS SIGNED ) + - col2 + col1 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3133
SELECT - CAST ( NULL AS INTEGER ) + - col2 + col1 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( cor0.col1 ) col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL 51 * ( col1 ) + 47 FROM tab0 AS cor0
----
4433
4688
4994
query I rowsort
SELECT ALL col1 * - ( 25 + col1 ) * - 63 AS col2 FROM tab2
----
109368
312228
44982
query I rowsort
SELECT DISTINCT cor0.col1 * col0 + - col1 AS col2 FROM tab0 cor0
----
1978
3298
8008
query I rowsort
SELECT + + cor0.col2 * + col2 + + col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-232
-2805
1155
query I rowsort
SELECT ALL - col1 + 93 FROM tab2 AS cor0
----
34
62
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3140
SELECT + CAST( - col0 AS SIGNED ) + + col2 * - col1 FROM tab1 AS cor0
----
-1328
-1407
-634
skipif mysql # not compatible
query I rowsort label-3140
SELECT + CAST ( - col0 AS INTEGER ) + + col2 * - col1 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT DISTINCT - ( - 23 ) * - col0 + - 10 + + col0 FROM tab0 AS cor0
----
-1968
-538
-780
query I rowsort
SELECT 45 AS col0 FROM tab0 AS cor0
----
45
45
45
query I rowsort
SELECT ALL + - col1 * col2 AS col0 FROM tab0 cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3144
SELECT DISTINCT + - 81 DIV col2 FROM tab0 AS cor0
----
-2
-81
0
skipif mysql # not compatible
query I rowsort label-3144
SELECT DISTINCT + - 81 / col2 FROM tab0 AS cor0
----
-2
-81
0
query I rowsort
SELECT - ( - 87 ) + col2 AS col2 FROM tab1
----
141
144
183
query I rowsort
SELECT ALL ( col0 ) + - col2 AS col1 FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT + - col1 * + 36 FROM tab1 AS cor0
----
-360
-468
-936
query I rowsort
SELECT ALL + col0 + - 0 + + col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + col1 + 80 * col1 AS col2 FROM tab1 cor0
----
1053
2106
810
query I rowsort
SELECT DISTINCT - col2 + ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-26
-27
-38
query I rowsort
SELECT + 99 + col2 * + col0 AS col2 FROM tab0
----
134
7397
891
query I rowsort
SELECT ALL 69 AS col1 FROM tab1
----
69
69
69
query I rowsort
SELECT DISTINCT + col0 - + ( - col1 * col1 ) AS col2 FROM tab2
----
3559
368
968
query I rowsort
SELECT tab1.col1 * - col0 * col0 + col0 - col0 FROM tab1
----
-234
-40960
-83200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3157
SELECT + col1 - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3157
SELECT + col1 - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3158
SELECT ALL col2 DIV CAST( + col1 AS SIGNED ) - - col0 AS col0 FROM tab1
----
5
69
87
skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL col2 / CAST ( + col1 AS INTEGER ) - - col0 AS col0 FROM tab1
----
5
69
87
query I rowsort
SELECT ALL - + col0 * - col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - 74 FROM tab0, tab1 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col0 * col1 col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT + 37 * col1 FROM tab1 AS cor0
----
370
481
962
query I rowsort
SELECT DISTINCT - col2 + - col1 + 87 * col2 AS col1 FROM tab0 AS cor0
----
-11
2752
6961
query I rowsort
SELECT - 59 FROM tab2, tab1 cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703
query I rowsort
SELECT - col0 * col0 + - col2 FROM tab0
----
-1226
-609
-8003
query I rowsort
SELECT + col0 + col2 * 38 FROM tab0 AS cor0
----
1278
3205
73
query I rowsort
SELECT ALL + ( col0 ) + col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + ( col1 ) + - col2 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT ALL 24 AS col1 FROM tab1
----
24
24
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-3170
SELECT DISTINCT col2 DIV ( + col2 ) + - col2 * - 20 + - ( col2 ) FROM tab1
----
1027
1084
1825
skipif mysql # not compatible
query I rowsort label-3170
SELECT DISTINCT col2 / ( + col2 ) + - col2 * - 20 + - ( col2 ) FROM tab1
----
1027
1084
1825
query I rowsort
SELECT ALL - col0 + - 4 FROM tab0
----
-28
-39
-93
query I rowsort
SELECT col2 * ( 95 ) FROM tab0
----
3135
7790
95
query I rowsort
SELECT - tab1.col2 * - ( 88 ) * col2 FROM tab1
----
256608
285912
811008
query I rowsort
SELECT + 87 AS col0 FROM tab0 AS cor0
----
87
87
87
query I rowsort
SELECT 33 - 73 FROM tab0 AS cor0
----
-40
-40
-40
query I rowsort
SELECT DISTINCT tab2.col2 * col0 + col2 AS col0 FROM tab2
----
2054
216
3040
query I rowsort
SELECT + - col2 * 17 AS col1 FROM tab2 AS cor0
----
-442
-459
-646
onlyif mysql # use DIV operator for integer division
query I rowsort label-3178
SELECT DISTINCT col1 * col2 - - col0 DIV col1 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT col1 * col2 - - col0 / col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - ( - col0 ) * col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT cor0.col1 + ( + col1 ) FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL - col1 + 99 FROM tab1 AS cor0
----
73
86
89
query I rowsort
SELECT + - ( - col2 ) + cor0.col2 AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT - - cor0.col1 * cor0.col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + col2 * - col1 - col1 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT ALL + + 78 + + col2 + + col1 AS col2 FROM tab0 AS cor0
----
176
197
251
query I rowsort
SELECT ALL col2 * col0 - col2 * col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 + ( - cor0.col1 ) + cor0.col2 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3188
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - cor0.col0 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3188
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - cor0.col0 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - + cor0.col1 + + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT ALL + 70 AS col2 FROM tab0 AS cor0
----
70
70
70
query I rowsort
SELECT + - 90 * col0 AS col2 FROM tab0 AS cor0
----
-2160
-3150
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 * - cor0.col1 col2 FROM tab0 AS cor0
----
-3784
-4004
-4268
query I rowsort
SELECT ALL + col1 * cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL 14 AS col2 FROM tab2
----
14
14
14
query I rowsort
SELECT DISTINCT + 42 * ( col2 ) FROM tab0
----
1386
3444
42
query I rowsort
SELECT + 15 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT cor0.col1 AS col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL 77 AS col0 FROM tab2
----
77
77
77
query I rowsort
SELECT DISTINCT - + col2 + col1 * - col2 FROM tab2 AS cor0
----
-1560
-684
-864
onlyif mysql # use DIV operator for integer division
query I rowsort label-3200
SELECT - 44 DIV 44 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3200
SELECT - 44 / 44 FROM tab0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3201
SELECT - CAST( NULL AS SIGNED ) * col1 * col2 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3201
SELECT - CAST ( NULL AS INTEGER ) * col1 * col2 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( ( col2 ) AS REAL ) col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - 15 AS col0 FROM tab2 AS cor0
----
-15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507
query I rowsort
SELECT + 16 + col0 * col0 + + col1 AS col1 FROM tab2 cor0
----
6159
6274
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3206
SELECT - 21 DIV + col0 + + col2 AS col0 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-3206
SELECT - 21 / + col0 + + col2 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + col2 * col0 + col1 AS col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT - + cor0.col0 * + col0 * + col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT - col2 * col1 + + col1 FROM tab0 cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT 87 * ( + tab2.col1 ) FROM tab2
----
1479
2697
5133
query I rowsort
SELECT - - 23 + - col0 + - col0 AS col1 FROM tab2 cor0
----
-133
-135
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col2 ) + col2 * col1 col0 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT - 45 + + col1 AS col2 FROM tab1 AS cor0
----
-19
-32
-35
query I rowsort
SELECT + + col0 * 60 AS col0 FROM tab1 AS cor0
----
180
3840
4800
query I rowsort
SELECT DISTINCT col1 * col0 + + col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT col0 * + 90 FROM tab2 AS cor0
----
630
7020
7110
onlyif mysql # use DIV operator for integer division
query I rowsort label-3217
SELECT ALL + + col0 + + ( col2 ) DIV col0 FROM tab1 AS cor0
----
21
64
81
skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL + + col0 + + ( col2 ) / col0 FROM tab1 AS cor0
----
21
64
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3218
SELECT DISTINCT - - col2 + + CAST( cor0.col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT - - col2 + + CAST ( cor0.col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - col1 * 39 + 6 * col2 AS col2 FROM tab2 AS cor0
----
-1047
-2145
-435
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col0 col2 FROM tab0 cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT - + cor0.col2 + + col1 * + 54 FROM tab1 AS cor0
----
1350
483
606
onlyif mysql # use DIV operator for integer division
query I rowsort label-3222
SELECT + - cor0.col2 DIV col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-3222
SELECT + - cor0.col2 / col0 FROM tab1 AS cor0
----
-1
-18
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3223
SELECT col2 DIV + ( col1 ) FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-3223
SELECT col2 / + ( col1 ) FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT + col2 + + ( + col0 ) * - col1 FROM tab1 AS cor0
----
-24
-583
-944
query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND cor0.col1
----
query I rowsort
SELECT - col1 * + ( - col2 ) + col2 + col0 FROM tab2 AS cor0
----
1638
763
871
query I rowsort
SELECT ALL tab0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT col0 * - ( + col2 ) + - col1 * cor0.col2 + col0 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-15328
-1575
-8314
query I rowsort
SELECT + + ( + col1 ) * + col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - 57 * col2 + col1 * - col1 FROM tab2 AS cor0
----
-2455
-2500
-4963
query I rowsort
SELECT ALL tab2.col2 + + 96 FROM tab2
----
122
123
134
query I rowsort
SELECT ALL - + cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3233
SELECT DISTINCT col0 + - col2 DIV + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT col0 + - col2 / + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-2
-5
-7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3234
SELECT ALL + col2 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL + col2 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + ( col0 ) * + col0 * + col2 FROM tab2 AS cor0
----
1330
158262
237237
onlyif mysql # use DIV operator for integer division
query I rowsort label-3236
SELECT ALL + - cor0.col0 DIV 43 - col0 AS col2 FROM tab0 cor0
----
-24
-35
-91
skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL + - cor0.col0 / 43 - col0 AS col2 FROM tab0 cor0
----
-24
-35
-91
query I rowsort
SELECT - col1 * - col2 + col2 * + col0 FROM tab1 AS cor0
----
1566
4218
8928
query I rowsort
SELECT ALL ( col2 ) * 38 FROM tab2
----
1026
1444
988
query I rowsort
SELECT 45 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca
query I rowsort
SELECT + - cor0.col1 + - 48 FROM tab1 AS cor0
----
-58
-61
-74
query I rowsort
SELECT DISTINCT - col0 - col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT - - col2 * - 87 + col1 * col2 * col2 AS col1 FROM tab0 AS cor0
----
10
604750
90783
onlyif mysql # use DIV operator for integer division
query I rowsort label-3243
SELECT DISTINCT col1 - + col0 DIV col1 FROM tab1
----
26
4
7
skipif mysql # not compatible
query I rowsort label-3243
SELECT DISTINCT col1 - + col0 / col1 FROM tab1
----
26
4
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-3244
SELECT ( col1 ) DIV - col2 + col1 - + col2 DIV - 21 col0 FROM tab0
----
0
85
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3244
SELECT ( col1 ) / - col2 + col1 - + col2 / - 21 col0 FROM tab0
----
0
85
93
query I rowsort
SELECT DISTINCT 64 * col2 FROM tab1
----
3456
3648
6144
query I rowsort
SELECT ALL col0 + + ( 53 ) FROM tab0
----
142
77
88
query I rowsort
SELECT - cor0.col2 + col2 + - cor0.col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT - col1 * col2 + + col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT + + col1 + + col0 AS col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT DISTINCT 21 AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
21
query I rowsort
SELECT - 85 * col0 AS col1 FROM tab0 AS cor0
----
-2040
-2975
-7565
query I rowsort
SELECT - 35 * 20 AS col2 FROM tab2 AS cor0
----
-700
-700
-700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 3 * col0 col1 FROM tab0 AS cor0
----
1728
23763
3675
query I rowsort
SELECT ALL + cor1.col1 FROM tab2, tab1 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query I rowsort
SELECT - col1 * + col0 + col1 AS col2 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT col1 * - cor0.col1 + + cor0.col0 * 33 AS col1 FROM tab0 AS cor0
----
-5344
-6604
-8254
query I rowsort
SELECT + - col2 + cor0.col1 * 48 * 22 FROM tab0 AS cor0
----
102431
90783
96014
query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - + 39 + - col1 FROM tab2 AS cor0
----
-56
-70
-98
query I rowsort
SELECT 73 + cor1.col1 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e123436bca42d185acc57f27881052f4
query I rowsort
SELECT ALL + ( col0 ) * ( 30 ) AS col1 FROM tab2
----
210
2340
2370
query I rowsort
SELECT DISTINCT + - 48 AS col2 FROM tab2 AS cor0
----
-48
query I rowsort
SELECT - + ( - col2 ) FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL cor0.col0 * + col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL - + col1 * cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-3266
SELECT + col1 + + col1 DIV - 97 AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-3266
SELECT + col1 + + col1 / - 97 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - 4 AS col0 FROM tab2 AS cor0
----
-4
-4
-4
onlyif mysql # use DIV operator for integer division
query I rowsort label-3268
SELECT ALL - col0 * + col2 + cor0.col1 DIV col0 FROM tab2 AS cor0
----
-185
-2028
-3002
skipif mysql # not compatible
query I rowsort label-3268
SELECT ALL - col0 * + col2 + cor0.col1 / col0 FROM tab2 AS cor0
----
-185
-2028
-3002
query I rowsort
SELECT DISTINCT + - cor0.col1 + + ( ( col0 ) ) * 13 * cor0.col0 FROM tab0 AS cor0
----
102882
15828
7402
query I rowsort
SELECT DISTINCT + - cor0.col0 + + ( - 52 ) FROM tab2 AS cor0
----
-130
-131
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-3271
SELECT - col0 DIV + 61 + + col0 FROM tab2 AS cor0
----
7
77
78
skipif mysql # not compatible
query I rowsort label-3271
SELECT - col0 / + 61 + + col0 FROM tab2 AS cor0
----
7
77
78
query I rowsort
SELECT DISTINCT col2 + 77 AS col1 FROM tab1 AS cor0
----
131
134
173
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col2 FROM tab0, tab1 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3274
SELECT ALL + + col0 * CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL + + col0 * CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + tab0.col2 * - col2 - col1 * col0 AS col2 FROM tab0
----
-14741
-3120
-3395
query I rowsort
SELECT + + 85 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
onlyif mysql # use DIV operator for integer division
query I rowsort label-3277
SELECT + col1 DIV + 25 FROM tab0 AS cor0
----
3
3
3
skipif mysql # not compatible
query I rowsort label-3277
SELECT + col1 / + 25 FROM tab0 AS cor0
----
3
3
3
query I rowsort
SELECT - 45 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3279
SELECT ALL + ( + 49 ) * cor0.col1 + CAST( NULL AS SIGNED ) * - 66 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL + ( + 49 ) * cor0.col1 + CAST ( NULL AS INTEGER ) * - 66 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( cor0.col1 ) + + col1 + col2 FROM tab2 AS cor0
----
144
72
89
query I rowsort
SELECT - col1 * 97 + + col0 AS col2 FROM tab2
----
-1570
-3000
-5645
query I rowsort
SELECT + 76 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
onlyif mysql # use DIV operator for integer division
query I rowsort label-3283
SELECT - 72 DIV col2 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-3283
SELECT - 72 / col2 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT + col2 + col0 + + col0 * + 27 AS col0 FROM tab1 AS cor0
----
138
1849
2336
query I rowsort
SELECT ALL - col1 + 68 FROM tab1 AS cor0
----
42
55
58
query I rowsort
SELECT + - 69 AS col0 FROM tab2 AS cor0
----
-69
-69
-69
query I rowsort
SELECT DISTINCT + + ( - col1 ) + - col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT - 70 AS col0 FROM tab2, tab2 AS cor0
----
-70
query I rowsort
SELECT col2 * col2 + + col2 AS col2 FROM tab2 AS cor0
----
1482
702
756
onlyif mysql # use DIV operator for integer division
query I rowsort label-3290
SELECT + col2 DIV cor0.col1 FROM tab2 cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-3290
SELECT + col2 / cor0.col1 FROM tab2 cor0
----
0
0
2
query I rowsort
SELECT ALL - - cor0.col0 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3292
SELECT - - col1 + col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3292
SELECT - - col1 + col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 29 * + cor0.col0 * + ( col0 * col1 ) AS col0 FROM tab2 AS cor0
----
-10409724
-3076813
-44051
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 + col0 + 63 col2 FROM tab1 AS cor0
----
141
202
218
query I rowsort
SELECT + - 18 * col1 AS col2 FROM tab2 cor0
----
-1062
-306
-558
onlyif mysql # use DIV operator for integer division
query I rowsort label-3296
SELECT + col1 DIV + col1 col0 FROM tab2 cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3296
SELECT + col1 / + col1 col0 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + - 93 * + col1 AS col1 FROM tab1 cor0
----
-1209
-2418
-930
query I rowsort
SELECT DISTINCT - tab2.col0 * - col1 AS col0 FROM tab2
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 * - col1 + + 59 + + col1 * col0 col0 FROM tab0 AS cor0
----
638179
761729
916127
query I rowsort
SELECT DISTINCT + 65 * ( col2 ) AS col1 FROM tab1 AS cor0
----
3510
3705
6240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( + col2 ) col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ( cor0.col1 ) FROM tab1, tab0 AS cor0, tab2, tab1 cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
query I rowsort
SELECT + col0 - - ( - col0 ) AS col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 * - col0 col2 FROM tab1 AS cor0
----
-156
-3328
-4160
query I rowsort
SELECT - col1 * - col0 + col2 + + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-717
1092
1147
query I rowsort
SELECT DISTINCT col1 * - 62 AS col1 FROM tab0 AS cor0
----
-5332
-5642
-6014
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3307
SELECT ALL + CAST( + ( - col1 ) AS SIGNED ) * - cor0.col0 + 82 * + cor0.col1 + - 89 AS col0 FROM tab1 AS cor0
----
1371
2017
2121
skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL + CAST ( + ( - col1 ) AS INTEGER ) * - cor0.col0 + 82 * + cor0.col1 + - 89 AS col0 FROM tab1 AS cor0
----
1371
2017
2121
query I rowsort
SELECT + + col0 + - cor0.col2 * cor0.col1 + + col0 FROM tab0 AS cor0
----
-27
-2790
-7284
query I rowsort
SELECT ALL cor0.col0 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - col0 * + ( - col2 + col1 ) AS col2 FROM tab1 AS cor0
----
3008
6640
84
query I rowsort
SELECT - col0 + - col0 * 36 FROM tab0 AS cor0
----
-1295
-3293
-888
query I rowsort
SELECT - + col0 + - col0 * 66 AS col0 FROM tab2 cor0
----
-469
-5226
-5293
query I rowsort
SELECT + 49 + + col1 AS col1 FROM tab1 AS cor0
----
59
62
75
query I rowsort
SELECT ALL + col0 + + 66 AS col1 FROM tab0
----
101
155
90
query I rowsort
SELECT + + cor0.col1 + cor0.col0 + - col1 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL col1 * ( 26 * col2 ) AS col0 FROM tab2 AS cor0
----
16796
21762
39884
query I rowsort
SELECT - col2 * 58 FROM tab0 AS cor0
----
-1914
-4756
-58
query I rowsort
SELECT col2 * ( - 7 ) FROM tab0 AS cor0
----
-231
-574
-7
query I rowsort
SELECT DISTINCT col1 + - 0 FROM tab1
----
10
13
26
query I rowsort
SELECT col1 + + ( col0 ) + - tab1.col2 FROM tab1
----
-25
-3
17
query I rowsort
SELECT DISTINCT col0 * col0 + 35 AS col2 FROM tab2
----
6119
6276
84
query I rowsort
SELECT - 54 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342
query I rowsort
SELECT - + col1 + 32 FROM tab2 AS cor0
----
-27
1
15
query I rowsort
SELECT ALL col0 + - col1 AS col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
10
13
26
query I rowsort
SELECT + col0 * - 96 FROM tab0
----
-2304
-3360
-8544
query I rowsort
SELECT DISTINCT + col0 + col2 AS col2 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL col2 + 10 FROM tab2
----
36
37
48
query I rowsort
SELECT ALL - cor1.col2 * cor0.col2 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f2ff5a34195597ac4b4402da8bd2643f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 col0 FROM tab2 AS cor0
----
47
47
47
query I rowsort
SELECT ALL - col0 * tab2.col0 AS col2 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * tab1.col1 col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL - 66 AS col1 FROM tab2
----
-66
-66
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3336
SELECT + CAST( NULL AS SIGNED ) + - 89 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3336
SELECT + CAST ( NULL AS INTEGER ) + - 89 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 11 * col1 FROM tab2
----
187
341
649
query I rowsort
SELECT col1 * col2 + - tab1.col2 + 16 AS col2 FROM tab1
----
1168
1366
529
query I rowsort
SELECT DISTINCT + col2 - + ( - tab1.col1 ) FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT - col2 * 4 - tab0.col2 FROM tab0
----
-165
-410
-5
query I rowsort
SELECT ALL cor0.col0 FROM tab1, tab2 cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT - 43 AS col1 FROM tab0
----
-43
-43
-43
query I rowsort
SELECT ( + col2 ) + - tab1.col2 FROM tab1
----
0
0
0
query I rowsort
SELECT + 26 AS col0 FROM tab1
----
26
26
26
query I rowsort
SELECT DISTINCT 42 - + cor0.col2 AS col0 FROM tab2 AS cor0
----
15
16
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 * col2 col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ( - col1 * ( - col0 ) ) FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL - col1 - - 24 FROM tab2 AS cor0
----
-35
-7
7
query I rowsort
SELECT DISTINCT + col1 * 89 FROM tab0 AS cor0
----
7654
8099
8633
query I rowsort
SELECT ALL + - col2 + + cor0.col0 * cor0.col1 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
1384
197
4654
query I rowsort
SELECT + cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - col1 * - 6 AS col0 FROM tab2 AS cor0
----
102
186
354
onlyif mysql # use DIV operator for integer division
query I rowsort label-3353
SELECT DISTINCT col0 DIV + col2 + CAST( + col2 AS SIGNED ) * + tab1.col1 - - 66 FROM tab1
----
1314
1470
637
skipif mysql # not compatible
query I rowsort label-3353
SELECT DISTINCT col0 / + col2 + CAST ( + col2 AS INTEGER ) * + tab1.col1 - - 66 FROM tab1
----
1314
1470
637
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col1 - + col1 * + col2 col0 FROM tab2
----
-357
124
1947
query I rowsort
SELECT ALL ( + col0 ) + - ( 0 ) FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 * - col2 col0 FROM tab2 AS cor0
----
1482
1539
2166
query I rowsort
SELECT + - col0 - col1 AS col2 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT - - col2 + 67 FROM tab1 AS cor0
----
121
124
163
query I rowsort
SELECT ALL + col2 + + cor0.col2 * - col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT - col1 - - 12 AS col2 FROM tab1 AS cor0
----
-1
-14
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3361
SELECT ALL - + col2 + CAST( NULL AS SIGNED ) / + 42 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL - + col2 + CAST ( NULL AS INTEGER ) / + 42 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + 31 FROM tab1 AS cor0
----
18
21
5
query I rowsort
SELECT DISTINCT - + col2 * - 76 FROM tab1 AS cor0
----
4104
4332
7296
query I rowsort
SELECT - - col0 + + col0 + cor0.col2 * cor0.col1 FROM tab0 AS cor0
----
167
2886
7640
query I rowsort
SELECT col2 * + col2 * col1 + + col0 AS col2 FROM tab2
----
22606
24627
39962
onlyif mysql # use DIV operator for integer division
query I rowsort label-3366
SELECT ALL - ( col2 ) DIV 61 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL - ( col2 ) / 61 FROM tab0
----
-1
0
0
query I rowsort
SELECT tab2.col1 * col1 + 75 + col1 * col2 AS col1 FROM tab2
----
1010
1873
5090
query I rowsort
SELECT + + col2 * - ( - col0 ) AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + + col0 * - 71 * cor0.col2 + 18 AS col1 FROM tab0 AS cor0
----
-2467
-518140
-56214
query I rowsort
SELECT ALL 78 + + col1 AS col0 FROM tab0 AS cor0
----
164
169
175
query I rowsort
SELECT ALL 46 + - col0 + + col0 AS col1 FROM tab2 AS cor0
----
46
46
46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col2 + + col2 * + col0 - col2 * + col0 col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + col1 * + col0 AS col2 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-3374
SELECT 46 DIV col0 FROM tab0 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-3374
SELECT 46 / col0 FROM tab0 AS cor0
----
0
1
1
query I rowsort
SELECT cor0.col0 * + 9 AS col2 FROM tab2 AS cor0
----
63
702
711
query I rowsort
SELECT + col1 * + 32 * + col2 AS col1 FROM tab0
----
238784
3104
90816
query I rowsort
SELECT DISTINCT 13 AS col1 FROM tab1 AS cor0
----
13
query I rowsort
SELECT DISTINCT + ( 16 * tab1.col1 ) AS col0 FROM tab1
----
160
208
416
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab2, tab0 AS cor1
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1
query I rowsort
SELECT - ( - col1 ) * col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT 79 + col0 AS col2 FROM tab0
----
103
114
168
query I rowsort
SELECT DISTINCT + 68 AS col1 FROM tab0
----
68
query I rowsort
SELECT DISTINCT - 52 FROM tab1
----
-52
query I rowsort
SELECT ALL + col0 * col2 + - col1 * 65 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
40698
88800
91422
onlyif mysql # use DIV operator for integer division
query I rowsort label-3385
SELECT DISTINCT - ( - col2 ) + + col2 DIV + col2 AS col0 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT - ( - col2 ) + + col2 / + col2 AS col0 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT + col0 + + col2 * - cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL - col1 * col0 * ( - col0 ) + cor0.col2 AS col1 FROM tab2 AS cor0
----
106135
1546
358982
query I rowsort
SELECT ALL - + col0 + + cor0.col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 31 AS col0 FROM tab1 AS cor0
----
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-3390
SELECT ALL + cor0.col1 DIV + 77 col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL + cor0.col1 / + 77 col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT DISTINCT ( + 5 + col1 ) AS col2 FROM tab1
----
15
18
31
query I rowsort
SELECT ALL + 68 FROM tab1, tab2 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT - cor0.col2 - + 28 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 35310a4a4df1710ac6e5cbaacf371c0f
query I rowsort
SELECT + + cor0.col0 * + col0 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-3395
SELECT ALL + cor0.col2 DIV - col0 + col0 FROM tab2 cor0
----
4
78
79
skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL + cor0.col2 / - col0 + col0 FROM tab2 cor0
----
4
78
79
query I rowsort
SELECT ALL col2 - + col2 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 * - col0 * - 85 FROM tab0 AS cor0
----
2975
620330
67320
query I rowsort
SELECT DISTINCT + - 85 AS col2 FROM tab0 AS cor0
----
-85
query I rowsort
SELECT ALL + col2 * cor0.col0 + 13 AS col2 FROM tab1 AS cor0
----
175
3661
7693
query I rowsort
SELECT ALL + + col0 - + cor0.col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT + - col2 * + col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT col2 * col1 + 88 * col2 AS col1 FROM tab2 cor0
----
3213
3822
3990
onlyif mysql # use DIV operator for integer division
query I rowsort label-3403
SELECT + col2 DIV + 62 + col2 * + col0 FROM tab1 AS cor0
----
162
3648
7681
skipif mysql # not compatible
query I rowsort label-3403
SELECT + col2 / + 62 + col2 * + col0 FROM tab1 AS cor0
----
162
3648
7681
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + - col2 * col2 col0 FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT DISTINCT - + cor0.col0 * 17 + 33 AS col1 FROM tab0 AS cor0
----
-1480
-375
-562
query I rowsort
SELECT + col2 - + 1 FROM tab1 AS cor0
----
53
56
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-3407
SELECT ALL + + cor0.col0 DIV - cor0.col1 - - ( col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3407
SELECT ALL + + cor0.col0 / - cor0.col1 - - ( col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - col0 + 89 FROM tab2
----
10
11
82
query I rowsort
SELECT + + col2 - + col0 * - cor0.col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT - ( cor0.col0 ) - col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT - + col2 * - 5 + + col0 * + ( + ( - col2 ) ) FROM tab0 AS cor0
----
-30
-627
-6888
query I rowsort
SELECT - + col2 * col0 + cor0.col2 * + 84 FROM tab1 AS cor0
----
1140
384
4374
query I rowsort
SELECT DISTINCT + 94 + col0 FROM tab2 cor0
----
101
172
173
onlyif mysql # use DIV operator for integer division
query I rowsort label-3414
SELECT ALL + 98 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-32
skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL + 98 / - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-32
query I rowsort
SELECT ALL + ( - col2 ) * - cor0.col1 + - col1 FROM tab2 cor0
----
1475
629
806
onlyif mysql # use DIV operator for integer division
query I rowsort label-3416
SELECT DISTINCT - col0 DIV - col1 AS col0 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT - col0 / - col1 AS col0 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL col0 + 16 FROM tab1
----
19
80
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3418
SELECT DISTINCT col0 + col2 DIV col1 AS col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT col0 + col2 / col1 AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT + col2 + 43 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1065
1506
3909
query I rowsort
SELECT ALL - col0 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3421
SELECT ALL - ( cor0.col0 + + CAST( cor0.col1 AS SIGNED ) ) col0 FROM tab0, tab1 cor0
----
9 values hashing to daf01be24671583522e54ae801342b76
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL - ( cor0.col0 + + CAST ( cor0.col1 AS INTEGER ) ) col0 FROM tab0, tab1 cor0
----
9 values hashing to daf01be24671583522e54ae801342b76
query I rowsort
SELECT 48 * - 38 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 720c823d98bea8b91709ff5dc1339342
query I rowsort
SELECT - 95 * + col1 + tab2.col0 * col1 + + tab2.col1 AS col1 FROM tab2
----
-255
-2697
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-3424
SELECT ALL + + col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL + + col1 / + col2 AS col1 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT + col1 * - col2 * ( - col2 ) - - cor0.col2 FROM tab1 AS cor0
----
119904
32547
75870
query I rowsort
SELECT ALL col1 * col1 - cor0.col2 AS col0 FROM tab0 cor0
----
7363
8199
9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-3427
SELECT - col1 DIV + col1 + - col2 FROM tab0 AS cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-3427
SELECT - col1 / + col1 + - col2 FROM tab0 AS cor0
----
-2
-34
-83
query I rowsort
SELECT - col1 * col0 * ( + 48 ) FROM tab0 AS cor0
----
-162960
-388752
-99072
query I rowsort
SELECT col2 + cor0.col2 * + col1 AS col0 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT - - col1 + + cor0.col1 + col2 AS col2 FROM tab0 AS cor0
----
195
205
264
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 + col0 col1 FROM tab2 AS cor0
----
3559
368
968
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3432
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3432
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab1, tab2, tab1 cor0
----
54
57
96
query I rowsort
SELECT + 31 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT DISTINCT + 8 + - ( + col2 ) * - 76 FROM tab0 AS cor0
----
2516
6240
84
query I rowsort
SELECT ALL - col1 + + col1 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - ( col1 ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + col0 * col0 * + col1 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT ALL - cor0.col2 * + col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL + ( + col1 ) * col0 + + col1 * - col2 * cor0.col0 FROM tab0 AS cor0
----
-656019
-66048
0
query I rowsort
SELECT - col1 * - cor0.col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - + ( - col0 ) + 81 FROM tab1 AS cor0
----
145
161
84
query I rowsort
SELECT tab2.col1 + col0 * + col0 FROM tab2
----
6143
6258
80
query I rowsort
SELECT - tab0.col0 * 61 + 39 * + cor1.col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7553b46bb4d17d9feb942a174cb037dd
onlyif mysql # use DIV operator for integer division
query I rowsort label-3446
SELECT 81 DIV col0 FROM tab1 AS cor0
----
1
1
27
skipif mysql # not compatible
query I rowsort label-3446
SELECT 81 / col0 FROM tab1 AS cor0
----
1
1
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-3447
SELECT - + ( + col1 ) DIV - 83 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3447
SELECT - + ( + col1 ) / - 83 AS col0 FROM tab2 AS cor0
----
0
0
0
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab2, tab1 AS cor1
----
3645 values hashing to 5e27196f2932b25a5297ddec46b8b8f1
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab1 cor1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823
query I rowsort
SELECT ( - col0 * col1 ) AS col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - col1 * + ( + cor0.col2 + - col1 ) AS col0 FROM tab0 AS cor0
----
4558
819
9312
query I rowsort
SELECT ALL + - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT - col1 * - col2 AS col0 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3454
SELECT ALL ( col1 ) DIV col0 AS col1 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL ( col1 ) / col0 AS col1 FROM tab1
----
0
0
8
query I rowsort
SELECT col2 + col1 * cor0.col2 * + col2 FROM tab1 AS cor0
----
119904
32547
75870
query I rowsort
SELECT 36 AS col1 FROM tab0 cor0
----
36
36
36
query I rowsort
SELECT ( 5 ) * - col0 * 71 + col0 FROM tab1 AS cor0
----
-1062
-22656
-28320
query I rowsort
SELECT + + 48 * - col1 + - col0 AS col2 FROM tab0 AS cor0
----
-4152
-4457
-4691
query I rowsort
SELECT DISTINCT + 18 FROM tab0, tab0 AS cor0
----
18
query I rowsort
SELECT - 9 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5
query I rowsort
SELECT DISTINCT ( - 24 ) FROM tab1, tab2 AS cor0
----
-24
query I rowsort
SELECT ALL + 63 * + cor0.col1 FROM tab1, tab1 cor0
----
9 values hashing to a73c0ca94fe889b26b3c1fa07ca34379
query I rowsort
SELECT + ( + col2 * + col0 ) FROM tab0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3464
SELECT cor0.col2 * - col0 + - col1 * + CAST( + 21 + col0 * col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-120897
-52134
-730020
skipif mysql # not compatible
query I rowsort label-3464
SELECT cor0.col2 * - col0 + - col1 * + CAST ( + 21 + col0 * col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-120897
-52134
-730020
query I rowsort
SELECT - - 51 + col0 AS col1 FROM tab2 cor0
----
129
130
58
query I rowsort
SELECT + 15 AS col0 FROM tab0 cor0
----
15
15
15
query I rowsort
SELECT - ( - col2 ) * + cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + + col1 + cor0.col0 * + cor0.col2 FROM tab1 AS cor0
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 22 - col2 col2 FROM tab1 AS cor0
----
-22
-22
-22
query I rowsort
SELECT ALL + col0 + cor0.col0 + + col1 FROM tab2 cor0
----
175
215
45
query I rowsort
SELECT - cor0.col1 + + cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT DISTINCT col2 * - cor0.col0 * col2 - col2 FROM tab2 AS cor0
----
-114114
-5130
-52754
onlyif mysql # use DIV operator for integer division
query I rowsort label-3473
SELECT + + cor0.col0 * ( col2 ) + + col2 DIV 50 FROM tab1 cor0
----
163
3649
7681
skipif mysql # not compatible
query I rowsort label-3473
SELECT + + cor0.col0 * ( col2 ) + + col2 / 50 FROM tab1 cor0
----
163
3649
7681
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3475
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * 71 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * 71 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + 94 * col0 FROM tab0 AS cor0
----
2256
3290
8366
query I rowsort
SELECT + - col1 * + cor0.col1 + + col2 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT DISTINCT col1 * 24 AS col2 FROM tab0 AS cor0
----
2064
2184
2328
query I rowsort
SELECT - 41 + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1266
-617
-7962
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3480
SELECT ALL - CAST( col0 AS SIGNED ) * col2 * 18 FROM tab2 AS cor0
----
-3402
-36504
-54036
skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL - CAST ( col0 AS INTEGER ) * col2 * 18 FROM tab2 AS cor0
----
-3402
-36504
-54036
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 * + col2 col0 FROM tab0 cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-3482
SELECT - + col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3482
SELECT - + col1 / - col1 AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - + col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-3484
SELECT + + 97 DIV col0 FROM tab2 cor0
----
1
1
13
skipif mysql # not compatible
query I rowsort label-3484
SELECT + + 97 / col0 FROM tab2 cor0
----
1
1
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-3485
SELECT col2 * col2 + - col1 * col2 * + col2 + + 69 * col2 DIV col1 FROM tab0 AS cor0
----
-605098
-92539
-96
skipif mysql # not compatible
query I rowsort label-3485
SELECT col2 * col2 + - col1 * col2 * + col2 + + 69 * col2 / col1 FROM tab0 AS cor0
----
-605098
-92539
-96
query I rowsort
SELECT + ( col0 ) * col2 + - 94 * - col1 AS col1 FROM tab0 AS cor0
----
15852
8876
9153
query I rowsort
SELECT + - col1 * + col2 * col0 + col2 * col1 * + col0 AS col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3488
SELECT - col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3488
SELECT - col0 / - col0 AS col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL 81 AS col0 FROM tab0 AS cor0
----
81
81
81
query I rowsort
SELECT ALL ( col1 ) AS col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT + col0 * - col0 * - col0 FROM tab0
----
13824
42875
704969
query I rowsort
SELECT + col1 * col1 * - col1 + - cor0.col2 FROM tab0 AS cor0
----
-636089
-753653
-912674
query I rowsort
SELECT ALL col0 + - col2 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT + col0 * col2 + + col2 AS col1 FROM tab0 cor0
----
36
7380
825
query I rowsort
SELECT 98 AS col0 FROM tab1
----
98
98
98
query I rowsort
SELECT ALL + col1 + - 37 AS col2 FROM tab0 AS cor0
----
49
54
60
query I rowsort
SELECT ALL + + col2 * - 67 FROM tab0 AS cor0
----
-2211
-5494
-67
onlyif mysql # use DIV operator for integer division
query I rowsort label-3498
SELECT DISTINCT + col2 DIV - col2 + - col0 AS col0 FROM tab0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-3498
SELECT DISTINCT + col2 / - col2 + - col0 AS col0 FROM tab0
----
-25
-36
-90
query I rowsort
SELECT - cor0.col2 + - ( 96 ) FROM tab2 AS cor0
----
-122
-123
-134
query I rowsort
SELECT ALL + col1 + + 66 AS col1 FROM tab2 AS cor0
----
125
83
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3501
SELECT DISTINCT col1 DIV col1 + + col2 AS col2 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-3501
SELECT DISTINCT col1 / col1 + + col2 AS col2 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT + col0 + col2 * + ( col2 ) FROM tab1 AS cor0
----
2919
3313
9296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col0 + + 34 col2 FROM tab1 AS cor0
----
-4062
-6366
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-3504
SELECT col0 * - ( col0 ) + cor0.col1 DIV cor0.col1 AS col0 FROM tab2 cor0
----
-48
-6083
-6240
skipif mysql # not compatible
query I rowsort label-3504
SELECT col0 * - ( col0 ) + cor0.col1 / cor0.col1 AS col0 FROM tab2 cor0
----
-48
-6083
-6240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * ( 45 ) + + col0 col0 FROM tab2 AS cor0
----
-308
-3432
-3476
query I rowsort
SELECT DISTINCT col0 * ( - ( col2 ) ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT 45 - + col2 AS col0 FROM tab2
----
18
19
7
query I rowsort
SELECT ALL - 7 * - col1 + + col2 FROM tab1
----
127
187
236
query I rowsort
SELECT cor0.col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL + - col1 + - col1 * ( - col0 + - 78 ) FROM tab2 AS cor0
----
2604
2652
9145
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3511
SELECT ALL + col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL + col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * ( + col0 ) - col2 * - col2 FROM tab1 AS cor0
----
16896
3078
6897
query I rowsort
SELECT - cor0.col1 * - cor0.col2 + - col2 AS col1 FROM tab2 AS cor0
----
1508
608
810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 * - col2 col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT - ( - col0 ) * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + 55 FROM tab0, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT ALL col2 * + 39 FROM tab1 AS cor0
----
2106
2223
3744
onlyif mysql # use DIV operator for integer division
query I rowsort label-3518
SELECT + ( col1 ) * col2 DIV + ( + 97 ) FROM tab1
----
12
14
5
skipif mysql # not compatible
query I rowsort label-3518
SELECT + ( col1 ) * col2 / + ( + 97 ) FROM tab1
----
12
14
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) * + 41 + col1 col0 FROM tab0 AS cor0
----
3612
3822
4074
query I rowsort
SELECT col2 * col2 + - 24 AS col2 FROM tab2 AS cor0
----
1420
652
705
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 85 col2 FROM tab0
----
85
query I rowsort
SELECT ALL col1 - + 90 FROM tab0
----
-4
1
7
query I rowsort
SELECT + 77 * + col0 + + col0 * tab2.col0 + col2 FROM tab2
----
12116
12362
615
query I rowsort
SELECT ALL + col0 + + tab1.col0 FROM tab1
----
128
160
6
query I rowsort
SELECT - - 48 AS col0 FROM tab1 cor0
----
48
48
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3526
SELECT + col0 * - col0 + CAST( NULL AS SIGNED ) / - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3526
SELECT + col0 * - col0 + CAST ( NULL AS INTEGER ) / - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + ( col0 ) * - col0 + cor0.col2 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT 40 * + cor0.col0 + + col2 FROM tab1 AS cor0
----
174
2617
3296
query I rowsort
SELECT ALL + ( - col1 ) * - cor0.col2 + + ( + cor0.col1 ) AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT - + 42 + col1 FROM tab0 AS cor0
----
44
49
55
query I rowsort
SELECT ALL - col2 * - col2 + col2 AS col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT - - 59 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-3186
-3363
-5664
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col1 FROM tab0 AS cor0
----
82
82
82
query I rowsort
SELECT col1 * ( col2 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + col0 + + col1 * - col1 FROM tab2
----
-210
-3403
-954
query I rowsort
SELECT DISTINCT 7 AS col1 FROM tab0, tab2 AS cor0
----
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-3538
SELECT - ( - col1 + tab2.col2 ) DIV 14 FROM tab2
----
-1
0
2
skipif mysql # not compatible
query I rowsort label-3538
SELECT - ( - col1 + tab2.col2 ) / 14 FROM tab2
----
-1
0
2
query I rowsort
SELECT DISTINCT - ( + col2 * + tab1.col2 ) + col2 * - 64 + + col1 * col1 * - col0 AS col2 FROM tab1
----
-13297
-28880
-8400
query I rowsort
SELECT DISTINCT - col1 * + 54 * + col2 FROM tab1 cor0
----
-30780
-67392
-75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-3541
SELECT ALL + col1 DIV 8 AS col1 FROM tab2 AS cor0
----
2
3
7
skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL + col1 / 8 AS col1 FROM tab2 AS cor0
----
2
3
7
query I rowsort
SELECT ALL + col1 + 52 AS col1 FROM tab2 AS cor0
----
111
69
83
query I rowsort
SELECT ( col2 ) + - col0 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-3544
SELECT + + col2 + col1 DIV + ( col1 ) AS col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-3544
SELECT + + col2 + col1 / + ( col1 ) AS col2 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT DISTINCT - + ( col0 ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT cor0.col2 + - ( col0 ) FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT + col0 * ( - cor0.col2 ) - col1 FROM tab2 cor0
----
-2087
-220
-3019
query I rowsort
SELECT ALL 17 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a
onlyif mysql # use DIV operator for integer division
query I rowsort label-3549
SELECT + col1 * col1 DIV + 52 + col0 + - 96 AS col2 FROM tab2 AS cor0
----
-12
-71
48
skipif mysql # not compatible
query I rowsort label-3549
SELECT + col1 * col1 / + 52 + col0 + - 96 AS col2 FROM tab2 AS cor0
----
-12
-71
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
57
query I rowsort
SELECT + - cor0.col0 * - 40 * col0 + + col1 FROM tab0 AS cor0
----
23126
316931
49097
onlyif mysql # use DIV operator for integer division
query I rowsort label-3552
SELECT col0 * col2 DIV + col1 FROM tab1 AS cor0
----
364
590
6
skipif mysql # not compatible
query I rowsort label-3552
SELECT col0 * col2 / + col1 FROM tab1 AS cor0
----
364
590
6
query I rowsort
SELECT col1 * col2 + + col1 * + col1 * + col1 + - cor0.col1 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
636056
753571
912673
onlyif mysql # use DIV operator for integer division
query I rowsort label-3554
SELECT col0 DIV + 51 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-3554
SELECT col0 / + 51 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT + ( ( col1 ) ) AS col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3556
SELECT CAST( col1 AS SIGNED ) + col1 * - col1 FROM tab2 AS cor0
----
-272
-3422
-930
skipif mysql # not compatible
query I rowsort label-3556
SELECT CAST ( col1 AS INTEGER ) + col1 * - col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT DISTINCT + 97 * + 5 AS col1 FROM tab1 cor0
----
485
query I rowsort
SELECT ALL - 93 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-14
-15
-86
query I rowsort
SELECT + + ( - col2 ) + ( + col2 * col2 ) + + col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL + ( + cor0.col2 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT DISTINCT + + 26 AS col2 FROM tab0, tab2 AS cor0
----
26
query I rowsort
SELECT DISTINCT - + 18 + 35 FROM tab2, tab2 AS cor0
----
17
query I rowsort
SELECT - 74 + col2 * col2 + + col1 * col1 FROM tab2 AS cor0
----
1616
1659
4083
onlyif mysql # use DIV operator for integer division
query I rowsort label-3564
SELECT cor0.col1 + + col0 * ( col0 ) + + cor0.col0 DIV + cor0.col1 FROM tab1 AS cor0
----
35
4112
6419
skipif mysql # not compatible
query I rowsort label-3564
SELECT cor0.col1 + + col0 * ( col0 ) + + cor0.col0 / + cor0.col1 FROM tab1 AS cor0
----
35
4112
6419
onlyif mysql # use DIV operator for integer division
query I rowsort label-3565
SELECT 27 DIV col1 + - col1 + + ( + col1 ) AS col2 FROM tab2 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3565
SELECT 27 / col1 + - col1 + + ( + col1 ) AS col2 FROM tab2 cor0
----
0
0
1
query I rowsort
SELECT + col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + + col0 + col2 + + col2 FROM tab0 AS cor0
----
253
37
90
query I rowsort
SELECT DISTINCT + col0 + - ( + cor0.col2 ) * - col1 AS col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT col2 * 36 AS col1 FROM tab1 cor0
----
1944
2052
3456
onlyif mysql # use DIV operator for integer division
query I rowsort label-3570
SELECT ALL - col0 * - col0 DIV tab1.col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL - col0 * - col0 / tab1.col0 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL - 33 AS col0 FROM tab1, tab2, tab1 cor0
----
27 values hashing to bbc05afe7eb6fed16e9d75f7f74d1948
query I rowsort
SELECT ALL - + cor0.col0 - - col0 FROM tab0 AS cor0
----
0
0
0
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-3574
SELECT DISTINCT - 88 DIV + col1 + col2 AS col0 FROM tab0 AS cor0
----
1
32
82
skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT - 88 / + col1 + col2 AS col0 FROM tab0 AS cor0
----
1
32
82
query I rowsort
SELECT ALL + + ( col2 ) * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + col2 * col0 + - ( 34 ) + col2 FROM tab2 cor0
----
182
2020
3006
query I rowsort
SELECT - ( - col1 * col2 ) FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-3578
SELECT col0 * + col0 + col0 DIV ( col0 ) AS col2 FROM tab0
----
1226
577
7922
skipif mysql # not compatible
query I rowsort label-3578
SELECT col0 * + col0 + col0 / ( col0 ) AS col2 FROM tab0
----
1226
577
7922
query I rowsort
SELECT 22 + col2 AS col0 FROM tab0 AS cor0
----
104
23
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 + 67 * - col1 * - col2 col0 FROM tab2 AS cor0
----
104312
43928
56916
onlyif mysql # use DIV operator for integer division
query I rowsort label-3581
SELECT DISTINCT col0 * col1 + CAST( 70 AS SIGNED ) + + col0 DIV CAST( col2 + - col1 AS SIGNED ) FROM tab0 AS cor0
----
2134
3465
8160
skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT col0 * col1 + CAST ( 70 AS INTEGER ) + + col0 / CAST ( col2 + - col1 AS INTEGER ) FROM tab0 AS cor0
----
2134
3465
8160
query I rowsort
SELECT DISTINCT + - col0 - + cor0.col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL + 21 AS col2 FROM tab1
----
21
21
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-3584
SELECT DISTINCT - col1 DIV + col0 + + col2 FROM tab0 AS cor0
----
-1
30
81
skipif mysql # not compatible
query I rowsort label-3584
SELECT DISTINCT - col1 / + col0 + + col2 FROM tab0 AS cor0
----
-1
30
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col0 col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT col2 * - col1 - - 45 FROM tab0
----
-2793
-52
-7417
query I rowsort
SELECT - col0 * 38 + 31 + col1 * - col2 FROM tab1
----
-1487
-2971
-4257
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3588
SELECT col2 / CAST( NULL AS SIGNED ) + + 83 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3588
SELECT col2 / CAST ( NULL AS INTEGER ) + + 83 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * col1 - col1 AS col0 FROM tab1
----
1235
1378
560
query I rowsort
SELECT + + col2 + 66 AS col1 FROM tab2 AS cor0
----
104
92
93
query I rowsort
SELECT ALL - + 87 * - cor0.col1 - cor0.col0 FROM tab0 AS cor0
----
7458
7828
8404
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3592
SELECT DISTINCT + CAST( col0 AS SIGNED ) + - cor0.col0 * - col1 AS col2 FROM tab2 cor0
----
1422
224
4680
skipif mysql # not compatible
query I rowsort label-3592
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + - cor0.col0 * - col1 AS col2 FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT col1 + - 73 AS col1 FROM tab2 AS cor0
----
-14
-42
-56
query I rowsort
SELECT + 71 + 92 FROM tab2
----
163
163
163
query I rowsort
SELECT DISTINCT + col0 + col2 * col2 AS col0 FROM tab0
----
1113
36
6813
query I rowsort
SELECT ALL cor0.col2 * + col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + + 53 * - 45 - - cor0.col2 AS col1 FROM tab2 AS cor0
----
-2347
-2358
-2359
query I rowsort
SELECT + + col2 + col2 * + col2 * - col1 FROM tab0 cor0
----
-611802
-93621
-96
query I rowsort
SELECT ALL - + 78 FROM tab2 AS cor0
----
-78
-78
-78
query I rowsort
SELECT ALL col2 * 60 + col2 FROM tab2 AS cor0
----
1586
1647
2318
query I rowsort
SELECT ( + col1 ) + col1 * col2 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL + ( - col1 ) + - col1 * - 55 * col2 FROM tab0 AS cor0
----
156004
410319
5238
skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( col2 AS REAL ) * - col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + 87 * 52 + + col1 * col0 * col0 FROM tab0 cor0
----
123349
54060
725335
onlyif mysql # use DIV operator for integer division
query I rowsort label-3605
SELECT ALL - ( - cor0.col2 ) DIV col1 + - col2 + 75 * col0 FROM tab2 AS cor0
----
498
5824
5889
skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL - ( - cor0.col2 ) / col1 + - col2 + 75 * col0 FROM tab2 AS cor0
----
498
5824
5889
query I rowsort
SELECT 24 * col2 FROM tab0 AS cor0
----
1968
24
792
query I rowsort
SELECT ALL 81 + col0 AS col1 FROM tab0
----
105
116
170
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) * + tab0.col1 * ( + tab0.col0 ) + - col1 col0 FROM tab0
----
-3492
-664209
-68198
query I rowsort
SELECT - col0 * + 87 + + col1 FROM tab2
----
-578
-6727
-6856
query I rowsort
SELECT DISTINCT + 33 FROM tab1, tab1 AS cor0
----
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-3611
SELECT ALL col1 + + col1 DIV col2 AS col1 FROM tab0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL col1 + + col1 / col2 AS col1 FROM tab0
----
194
88
92
query I rowsort
SELECT DISTINCT - + cor0.col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - + 18 + col2 FROM tab0 AS cor0
----
-17
15
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3614
SELECT ALL - + CAST( 55 AS SIGNED ) * + col1 * - col1 AS col2 FROM tab0 AS cor0
----
406780
455455
517495
skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL - + CAST ( 55 AS INTEGER ) * + col1 * - col1 AS col2 FROM tab0 AS cor0
----
406780
455455
517495
query I rowsort
SELECT DISTINCT - ( col1 ) * - col0 + + 43 * 17 FROM tab2 AS cor0
----
2074
5333
948
query I rowsort
SELECT ( - 18 ) * + col2 * + col1 AS col1 FROM tab1 AS cor0
----
-10260
-22464
-25272
query I rowsort
SELECT DISTINCT + ( - col1 ) + + col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL col1 * + 78 AS col0 FROM tab1 AS cor0
----
1014
2028
780
onlyif mysql # use DIV operator for integer division
query I rowsort label-3619
SELECT cor0.col2 DIV cor0.col2 FROM tab1, tab1 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
skipif mysql # not compatible
query I rowsort label-3619
SELECT cor0.col2 / cor0.col2 FROM tab1, tab1 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT DISTINCT + 80 + + col1 * col0 - 14 FROM tab2 cor0
----
1409
283
4668
query I rowsort
SELECT DISTINCT + 29 + - col0 + ( + 77 ) FROM tab2 AS cor0
----
27
28
99
query I rowsort
SELECT col2 * col0 + cor0.col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL col2 + + col2 * col2 + ( + col0 ) FROM tab0 AS cor0
----
1146
37
6895
query I rowsort
SELECT col2 * col1 + - ( - col2 ) * + cor0.col1 FROM tab1 cor0
----
1140
2496
2808
onlyif mysql # use DIV operator for integer division
query I rowsort label-3625
SELECT ALL - + col1 * col0 + 21 * + ( col1 ) DIV - col1 FROM tab0 AS cor0
----
-2085
-3416
-8120
skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL - + col1 * col0 + 21 * + ( col1 ) / - col1 FROM tab0 AS cor0
----
-2085
-3416
-8120
query I rowsort
SELECT + 69 + col0 AS col0 FROM tab2 AS cor0
----
147
148
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3627
SELECT CAST( NULL AS SIGNED ) + col1 + - col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3627
SELECT CAST ( NULL AS INTEGER ) + col1 + - col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 + - col2 col1 FROM tab2
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - + col2 * + col2 * 59 FROM tab0 AS cor0
----
-396716
-59
-64251
query I rowsort
SELECT ALL cor0.col0 * col1 + 42 + col0 AS col2 FROM tab2 cor0
----
1464
266
4722
query I rowsort
SELECT DISTINCT - col1 * col2 * + col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL + - col0 + - col2 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT ALL col2 + col0 + col0 * + cor0.col0 FROM tab1 AS cor0
----
4217
6576
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-3636
SELECT DISTINCT - cor0.col0 * + 47 + + col1 DIV - col0 FROM tab1 AS cor0
----
-149
-3008
-3760
skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT - cor0.col0 * + 47 + + col1 / - col0 FROM tab1 AS cor0
----
-149
-3008
-3760
query I rowsort
SELECT + ( + col1 ) AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT - + col2 * ( 71 ) AS col0 FROM tab0 AS cor0
----
-2343
-5822
-71
onlyif mysql # use DIV operator for integer division
query I rowsort label-3639
SELECT DISTINCT - cor0.col2 DIV cor0.col2 + col0 * - col2 + + col0 * - 23 col1 FROM tab1 cor0
----
-232
-5121
-9521
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT - cor0.col2 / cor0.col2 + col0 * - col2 + + col0 * - 23 col1 FROM tab1 cor0
----
-232
-5121
-9521
query I rowsort
SELECT ALL + col2 + + cor0.col2 AS col0 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT ALL + col2 + + 18 FROM tab0 AS cor0
----
100
19
51
query I rowsort
SELECT DISTINCT - col0 + - 31 AS col0 FROM tab0 AS cor0
----
-120
-55
-66
query I rowsort
SELECT - 74 FROM tab0, tab2 cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130
query I rowsort
SELECT - cor0.col1 * - ( + 81 ) AS col1 FROM tab0 AS cor0
----
6966
7371
7857
onlyif mysql # use DIV operator for integer division
query I rowsort label-3645
SELECT + col2 DIV + cor0.col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-3645
SELECT + col2 / + cor0.col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT - - cor0.col1 + - ( - col1 ) AS col1 FROM tab0 AS cor0
----
172
182
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-3647
SELECT + cor0.col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-3647
SELECT + cor0.col1 / + col0 AS col1 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT ALL col1 + + col0 * 83 AS col1 FROM tab2 AS cor0
----
612
6533
6574
onlyif mysql # use DIV operator for integer division
query I rowsort label-3649
SELECT + col0 DIV ( + col0 ) AS col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3649
SELECT + col0 / ( + col0 ) AS col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL 85 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7
query I rowsort
SELECT ALL 13 AS col2 FROM tab0
----
13
13
13
query I rowsort
SELECT - col1 * 47 + 2 FROM tab1 AS cor0
----
-1220
-468
-609
query I rowsort
SELECT - + cor0.col2 + col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 * col0 - + tab2.col0 FROM tab2
----
1264
210
4524
query I rowsort
SELECT ALL tab1.col2 * tab1.col1 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + 4 * - col1 * + cor0.col0 + + col1 FROM tab0 AS cor0
----
-13483
-32305
-8170
query I rowsort
SELECT + 82 * + col0 AS col2 FROM tab2 AS cor0
----
574
6396
6478
query I rowsort
SELECT - - col1 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + col0 * col0 + tab0.col1 AS col1 FROM tab0
----
1322
662
8012
query I rowsort
SELECT tab1.col0 * col0 - + col2 FROM tab1
----
-45
4039
6304
query I rowsort
SELECT ALL tab2.col2 AS col2 FROM tab2 WHERE NOT - col1 + col0 * + col0 BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT DISTINCT - col0 * - col1 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT - col2 * + col2 - col1 FROM tab1
----
-2942
-3259
-9229
query I rowsort
SELECT ALL - ( + tab0.col0 * + col2 ) AS col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT + ( col2 ) * - 36 + col0 AS col2 FROM tab0 AS cor0
----
-1
-1164
-2863
query I rowsort
SELECT + - 93 + col1 FROM tab2 AS cor0
----
-34
-62
-76
query I rowsort
SELECT DISTINCT - + col2 + + col2 * + ( col1 + col2 ) AS col0 FROM tab0 AS cor0
----
14104
3894
97
query I rowsort
SELECT - - 45 + - col1 AS col1 FROM tab2 AS cor0
----
-14
14
28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3669
SELECT ALL - + CAST( 1 AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL - + CAST ( 1 AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
query I rowsort
SELECT ALL - 22 FROM tab2
----
-22
-22
-22
query I rowsort
SELECT col2 + + col1 * - col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL 0 + - col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-3673
SELECT + cor0.col2 DIV + cor0.col0 col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3673
SELECT + cor0.col2 / + cor0.col0 col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6
query I rowsort
SELECT + col0 * col1 + - 45 FROM tab2 AS cor0
----
1298
172
4557
query I rowsort
SELECT + col0 - - cor0.col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT col1 * - 98 FROM tab2 AS cor0
----
-1666
-3038
-5782
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3677
SELECT - tab2.col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3677
SELECT - tab2.col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * 52 + col2 * col2 FROM tab0
----
-51
-627
2460
query I rowsort
SELECT + col2 * col0 * + col0 + col1 FROM tab1 AS cor0
----
233482
512
614413
query I rowsort
SELECT - - col0 + 71 + 91 FROM tab2 AS cor0
----
169
240
241
query I rowsort
SELECT ALL - 27 * col2 FROM tab0
----
-2214
-27
-891
query I rowsort
SELECT + 53 FROM tab2, tab2 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT ALL + 94 * - col0 FROM tab0
----
-2256
-3290
-8366
onlyif mysql # use DIV operator for integer division
query I rowsort label-3684
SELECT - col2 DIV - cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3684
SELECT - col2 / - cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - col1 + - cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT - 9 - + cor0.col2 FROM tab2 AS cor0
----
-35
-36
-47
query I rowsort
SELECT - 19 * cor0.col2 FROM tab1 AS cor0
----
-1026
-1083
-1824
query I rowsort
SELECT + col0 * col2 + - ( + col0 ) * cor0.col2 AS col1 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3689
SELECT col0 DIV + col0 + - 32 DIV col0 AS col1 FROM tab0 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-3689
SELECT col0 / + col0 + - 32 / col0 AS col1 FROM tab0 AS cor0
----
0
1
1
query I rowsort
SELECT 29 FROM tab1 cor0
----
29
29
29
query I rowsort
SELECT - - cor0.col0 * + col2 + + 33 AS col0 FROM tab0 AS cor0
----
68
7331
825
query I rowsort
SELECT DISTINCT + 5 FROM tab0, tab2, tab2 AS cor0
----
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 col2 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT + - 36 * col0 FROM tab1 AS cor0
----
-108
-2304
-2880
query I rowsort
SELECT ( + col1 ) - col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - ( - col0 ) * ( ( col2 ) ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + + col2 * + col0 + col1 AS col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col1 + col1 + col0 FROM tab1 AS cor0
----
174
262
705
query I rowsort
SELECT - col1 + col0 + + col2 FROM tab0
----
-29
-61
80
query I rowsort
SELECT DISTINCT + col1 + col2 * col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
244154
679133
9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col2 col0 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3702
SELECT ALL - col1 + col0 + cor0.col0 DIV col1 FROM tab2 cor0
----
-24
20
66
skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL - col1 + col0 + cor0.col0 / col1 FROM tab2 cor0
----
-24
20
66
query I rowsort
SELECT DISTINCT col1 + - tab2.col0 AS col2 FROM tab2
----
-19
-62
24
query I rowsort
SELECT DISTINCT + col2 * - tab2.col0 + col2 + + tab2.col0 * + col2 FROM tab2
----
26
27
38
query I rowsort
SELECT col0 * - tab0.col0 * col2 + col1 FROM tab0
----
-1128
-18922
-649431
onlyif mysql # use DIV operator for integer division
query I rowsort label-3706
SELECT col0 - col2 DIV + col0 AS col1 FROM tab2
----
4
78
79
skipif mysql # not compatible
query I rowsort label-3706
SELECT col0 - col2 / + col0 AS col1 FROM tab2
----
4
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 - col0 col2 FROM tab0
----
-87
27
38
query I rowsort
SELECT col2 * - col0 * + col2 + col2 FROM tab1
----
-207879
-737184
-8694
query I rowsort
SELECT DISTINCT col0 + col1 * col0 AS col1 FROM tab2
----
1422
224
4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + + col2 col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL col1 * - col2 + col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT ALL - cor0.col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT DISTINCT + tab0.col2 * + col1 + col0 + + col2 AS col2 FROM tab0
----
133
2895
7633
query I rowsort
SELECT ALL col2 * col0 * tab0.col1 + - col2 * - col0 + - col2 * col2 * col2 FROM tab0
----
120048
32967
3429
query I rowsort
SELECT ALL col1 + col2 * - tab2.col1 FROM tab2
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-3716
SELECT DISTINCT - tab2.col0 * tab2.col1 + + col0 DIV col1 FROM tab2
----
-1339
-217
-4601
skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT - tab2.col0 * tab2.col1 + + col0 / col1 FROM tab2
----
-1339
-217
-4601
query I rowsort
SELECT - ( + ( col1 ) + tab0.col2 ) FROM tab0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + tab1.col2 + col0 AS REAL ) AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL + - 95 AS col1 FROM tab2 cor0
----
-95
-95
-95
query I rowsort
SELECT ALL + + col1 * col1 + - col0 AS col2 FROM tab2 AS cor0
----
210
3403
954
onlyif mysql # use DIV operator for integer division
query I rowsort label-3721
SELECT ALL - 32 * - col0 + col1 DIV + cor0.col1 FROM tab1 AS cor0
----
2049
2561
97
skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL - 32 * - col0 + col1 / + cor0.col1 FROM tab1 AS cor0
----
2049
2561
97
query I rowsort
SELECT 36 + - col0 FROM tab1 AS cor0
----
-28
-44
33
query I rowsort
SELECT + col0 + col0 * + col1 * col1 AS col1 FROM tab1
----
13600
2031
6464
query I rowsort
SELECT ALL + ( + col0 ) * - tab2.col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL - col2 * + col0 AS col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT col2 + 18 FROM tab2
----
44
45
56
query I rowsort
SELECT ALL + 87 AS col1 FROM tab0
----
87
87
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 col1 FROM tab2 AS cor0
----
70
70
70
query I rowsort
SELECT ALL + col2 + - col2 * col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT - + cor0.col1 - - col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT 70 - col1 * + col0 FROM tab1 cor0
----
-570
-8
-970
query I rowsort
SELECT tab1.col1 * col2 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT + col2 * tab0.col0 + + col2 FROM tab0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-3734
SELECT DISTINCT col0 + + col0 DIV + col1 FROM tab1
----
3
70
86
skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT col0 + + col0 / + col1 FROM tab1
----
3
70
86
query I rowsort
SELECT tab0.col2 * col0 AS col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL - col2 * col1 + col1 FROM tab0
----
-2752
-7371
0
query III rowsort
SELECT * FROM tab1 WHERE + col0 * + col1 * + col1 = NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3738
SELECT DISTINCT + col0 - col2 DIV - col0 FROM tab1
----
21
64
81
skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT + col0 - col2 / - col0 FROM tab1
----
21
64
81
query I rowsort
SELECT ALL - col0 * col2 + col1 * tab1.col1 FROM tab1
----
-3548
-7511
514
query I rowsort
SELECT ALL - col1 * col1 FROM tab0 WHERE col2 NOT BETWEEN NULL AND ( NULL )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 * - col1 ) IN ( + col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) < ( - col2 )
----
query I rowsort
SELECT DISTINCT - tab1.col1 * col0 + - col1 FROM tab1
----
-104
-1053
-650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - tab0.col0 col2 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3745
SELECT DISTINCT - col1 DIV - tab1.col1 AS col0 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT - col1 / - tab1.col1 AS col0 FROM tab1
----
1
query I rowsort
SELECT ALL tab0.col1 + + col0 + col2 AS col0 FROM tab0
----
133
143
262
query I rowsort
SELECT tab1.col1 - tab1.col2 AS col2 FROM tab1
----
-28
-47
-83
query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + col2 + + col1 * col1 )
----
query I rowsort
SELECT - tab0.col1 * + tab0.col1 AS col0 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT + col2 + col0 - col2 FROM tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3751
SELECT col0 * col2 DIV - col0 + - col1 AS col1 FROM tab2
----
-55
-58
-85
skipif mysql # not compatible
query I rowsort label-3751
SELECT col0 * col2 / - col0 + - col1 AS col1 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT ALL - col2 + - col2 * tab0.col1 AS col2 FROM tab0
----
-2871
-7544
-98
query I rowsort
SELECT DISTINCT + tab2.col1 + + col1 AS col0 FROM tab2
----
118
34
62
query I rowsort
SELECT col1 + - col0 * col0 FROM tab1
----
-4086
-6387
17
query I rowsort
SELECT + + col2 * cor0.col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - col0 * col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-3758
SELECT col2 + - col0 DIV tab0.col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-3758
SELECT col2 + - col0 / tab0.col1 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL - + col1 + + col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - col1 * - col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-3761
SELECT ALL + col0 + col0 DIV col0 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL + col0 + col0 / col0 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT col0 * cor0.col0 + + col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT - col1 * col2 + col0 * - col1 FROM tab1 AS cor0
----
-1210
-1482
-2288
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + + col2 * - col0 NOT IN ( col1 * col0 ) OR NULL <> col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT DISTINCT + + col0 * - col2 * col0 FROM tab1 cor0
----
-233472
-486
-614400
query I rowsort
SELECT DISTINCT col0 * col1 * cor0.col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT cor0.col2 + col0 - col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL col1 * + col2 * col0 FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT - col0 * - col0 + + col1 FROM tab1
----
35
4106
6413
query I rowsort
SELECT DISTINCT - col2 * + col1 * col0 AS col0 FROM tab0
----
-3395
-664118
-68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 col1 FROM tab1
----
1248
1404
570
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3773
SELECT ALL - - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL - - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( + col1 ) + - cor0.col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT + col0 * - tab0.col2 * col1 AS col0 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT + ( + 72 ) * - col1 FROM tab0 AS cor0
----
-6192
-6552
-6984
onlyif mysql # use DIV operator for integer division
query I rowsort label-3777
SELECT ALL + + col2 * cor0.col2 DIV col0 AS col1 FROM tab1 cor0
----
115
50
972
skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL + + col2 * cor0.col2 / col0 AS col1 FROM tab1 cor0
----
115
50
972
query I rowsort
SELECT + col0 * col1 + col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT + col1 + col2 + - ( 46 + - col0 ) FROM tab0 AS cor0
----
216
87
97
query I rowsort
SELECT + 3 + col1 FROM tab2
----
20
34
62
query I rowsort
SELECT + - 86 FROM tab1 AS cor0
----
-86
-86
-86
query I rowsort
SELECT ALL + col2 * 78 FROM tab1 AS cor0
----
4212
4446
7488
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + cor0.col1 col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT - - cor0.col0 * - col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col2 * + cor0.col2 - - cor0.col2 * - col0 AS col2 FROM tab0 AS cor0
----
-34
-574
297
skipif mysql # not compatible
query I rowsort
SELECT + cor0.col0 + - CAST ( 69 AS REAL ) * col2 AS col1 FROM tab2 AS cor0
----
-1716
-1856
-2543
query I rowsort
SELECT - cor0.col1 + + 20 FROM tab2 AS cor0
----
-11
-39
3
query I rowsort
SELECT + cor0.col1 * - ( col0 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT cor0.col0 + col0 * 74 FROM tab1 AS cor0
----
225
4800
6000
query I rowsort
SELECT + 99 + - col2 * - col2 FROM tab2 AS cor0
----
1543
775
828
onlyif mysql # use DIV operator for integer division
query I rowsort label-3791
SELECT 51 + + cor0.col2 DIV + cor0.col1 FROM tab0 cor0
----
51
51
51
skipif mysql # not compatible
query I rowsort label-3791
SELECT 51 + + cor0.col2 / + cor0.col1 FROM tab0 cor0
----
51
51
51
query I rowsort
SELECT + + col2 + 75 + + col0 * + ( col2 ) FROM tab2 AS cor0
----
2129
291
3115
query I rowsort
SELECT - + col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + col0 * + col0 + - col0 FROM tab2
----
42
6006
6162
query I rowsort
SELECT - 36 - col1 FROM tab1 AS cor0
----
-46
-49
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3796
SELECT - ( col2 ) + - cor0.col0 DIV ( + col0 * - col0 ) + - 58 FROM tab0 AS cor0
----
-140
-59
-91
skipif mysql # not compatible
query I rowsort label-3796
SELECT - ( col2 ) + - cor0.col0 / ( + col0 * - col0 ) + - 58 FROM tab0 AS cor0
----
-140
-59
-91
query I rowsort
SELECT + - 64 - 19 AS col2 FROM tab2 cor0
----
-83
-83
-83
query I rowsort
SELECT + - 71 + - col0 + col2 * ( + col2 ) AS col1 FROM tab1 AS cor0
----
2842
3114
9065
query I rowsort
SELECT - col0 * - col2 - col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT + 49 + - col1 * + col2 FROM tab1 AS cor0
----
-1199
-1355
-521
query I rowsort
SELECT + - ( col1 ) - - col2 * cor0.col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT - ( + col0 ) * - col2 - ( - cor0.col0 ) AS col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL col1 * + col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - col0 * - col1 * + col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL ( + col2 ) * + cor0.col1 * - col0 + col1 AS col1 FROM tab1 cor0
----
-36470
-4186
-99827
onlyif mysql # use DIV operator for integer division
query I rowsort label-3806
SELECT - 17 DIV - col1 col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3806
SELECT - 17 / - col1 col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3807
SELECT DISTINCT + + cor0.col0 DIV + col0 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT + + cor0.col0 / + col0 FROM tab2 AS cor0
----
1
query I rowsort
SELECT ALL - - col1 + col1 AS col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT DISTINCT - 65 * - col0 AS col2 FROM tab1 AS cor0
----
195
4160
5200
query I rowsort
SELECT - col1 + - col2 * col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT - 13 * col2 FROM tab2
----
-338
-351
-494
onlyif mysql # use DIV operator for integer division
query I rowsort label-3812
SELECT - col2 DIV + col1 col1 FROM tab1
----
-2
-5
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3812
SELECT - col2 / + col1 col1 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT ALL - col2 - 72 AS col2 FROM tab1
----
-126
-129
-168
onlyif mysql # use DIV operator for integer division
query I rowsort label-3814
SELECT - + col1 DIV + col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-3814
SELECT - + col1 / + col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT + + col2 * col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ( + 49 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - col2 * - col1 + col0 * - col2 FROM tab0
----
164
2046
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL + + 16 AS col2 FROM tab1 AS cor0
----
16
16
16
query I rowsort
SELECT ALL - 62 * col1 FROM tab2 AS cor0
----
-1054
-1922
-3658
query I rowsort
SELECT - + col2 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + col2 * + col0 * 17 AS col2 FROM tab1 AS cor0
----
130560
2754
62016
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * cor0.col1 col2 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3825
SELECT col0 * CAST( NULL AS SIGNED ) * 1 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3825
SELECT col0 * CAST ( NULL AS INTEGER ) * 1 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor0.col1 + col1 * - 76 AS col2 FROM tab1 AS cor0
----
-1950
-750
-975
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - ( + cor0.col2 ) * col2 col1 FROM tab2 AS cor0
----
-1365
-598
-722
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3828
SELECT DISTINCT + - cor0.col2 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3828
SELECT DISTINCT + - cor0.col2 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - ( + 66 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a
query I rowsort
SELECT DISTINCT col1 - - col0 FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-3831
SELECT ALL + col1 DIV col0 + - col1 - - ( + col2 + + 40 * col1 ) FROM tab1
----
1076
447
603
skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL + col1 / col0 + - col1 - - ( + col2 + + 40 * col1 ) FROM tab1
----
1076
447
603
query I rowsort
SELECT + col1 - 30 * - 61 FROM tab0 AS cor0
----
1916
1921
1927
query I rowsort
SELECT ALL - - col2 + + 30 FROM tab2 AS cor0
----
56
57
68
query I rowsort
SELECT ALL - col0 - ( + col2 * col2 ) FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT ALL + - col1 * + col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + ( cor0.col2 ) * - col2 + col0 FROM tab2 AS cor0
----
-1365
-598
-722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 + col0 col0 FROM tab2
----
110
111
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 * - col0 col0 FROM tab1
----
-17
4086
6387
query I rowsort
SELECT ALL + col0 * - col2 + - col1 AS col0 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT ALL - col0 * - 52 + col0 AS col0 FROM tab0 AS cor0
----
1272
1855
4717
query I rowsort
SELECT DISTINCT - - col0 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT - 18 + - ( col2 ) FROM tab2 AS cor0
----
-44
-45
-56
query I rowsort
SELECT ALL ( - 18 ) FROM tab2 AS cor0
----
-18
-18
-18
query I rowsort
SELECT DISTINCT + col1 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT + + 37 * - col1 AS col0 FROM tab1 AS cor0
----
-370
-481
-962
query I rowsort
SELECT - ( col0 ) * - col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + 65 AS col2 FROM tab0 AS cor0
----
65
65
65
query I rowsort
SELECT ALL - col2 + cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT - col0 * cor0.col0 + col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-4550
-5595
788
query I rowsort
SELECT ALL ( + col2 ) * tab2.col0 * - 41 AS col0 FROM tab2
----
-123082
-7749
-83148
query I rowsort
SELECT tab1.col1 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT - - ( 86 ) FROM tab1, tab2, tab1 cor0
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
query I rowsort
SELECT ALL - ( + 0 ) * col2 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT - col1 * + ( col1 ) - - 29 FROM tab2
----
-260
-3452
-932
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3855
SELECT - CAST( col2 AS SIGNED ) + + col1 FROM tab2
----
-21
33
4
skipif mysql # not compatible
query I rowsort label-3855
SELECT - CAST ( col2 AS INTEGER ) + + col1 FROM tab2
----
-21
33
4
query I rowsort
SELECT DISTINCT - 22 * - 0 AS col1 FROM tab2, tab0, tab0 AS cor0
----
0
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1 cor1, tab1 cor2
----
972 values hashing to 635619591835474e6aa6acdff4ab166c
onlyif mysql # use DIV operator for integer division
query I rowsort label-3858
SELECT DISTINCT cor0.col1 DIV + col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3858
SELECT DISTINCT cor0.col1 / + col2 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3859
SELECT ALL + CAST( NULL AS DECIMAL ) + 54 col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL + CAST ( NULL AS REAL ) + 54 col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT - 31 + col0 * + col2 FROM tab0 AS cor0
----
4
7267
761
query I rowsort
SELECT - + 81 + - cor0.col0 * + col1 FROM tab1 AS cor0
----
-1121
-159
-721
onlyif mysql # use DIV operator for integer division
query I rowsort label-3862
SELECT ALL - cor0.col2 DIV col1 + col1 + col2 col0 FROM tab2 AS cor0
----
53
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL - cor0.col2 / col1 + col1 + col2 col0 FROM tab2 AS cor0
----
53
58
85
query I rowsort
SELECT ALL + 35 + + col2 FROM tab1 AS cor0
----
131
89
92
query I rowsort
SELECT DISTINCT - 67 AS col2 FROM tab2
----
-67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + tab2.col0 col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - col0 * tab0.col1 + - col2 AS col2 FROM tab0
----
-2097
-3396
-8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-3867
SELECT DISTINCT col1 * col1 DIV - 34 FROM tab0
----
-217
-243
-276
skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT col1 * col1 / - 34 FROM tab0
----
-217
-243
-276
query I rowsort
SELECT DISTINCT col0 * col2 * + 71 + tab2.col0 FROM tab2
----
13426
144066
213221
query I rowsort
SELECT + col1 * ( + 7 * col0 ) FROM tab2
----
1519
32214
9401
query I rowsort
SELECT - col2 * + 98 AS col0 FROM tab0
----
-3234
-8036
-98
query I rowsort
SELECT + 30 * 18 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 4ca1fa90c814fa6fd85aa340bdfa929a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3872
SELECT CAST( NULL AS SIGNED ) + tab0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3872
SELECT CAST ( NULL AS INTEGER ) + tab0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - col0 + + col2 AS col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT DISTINCT tab1.col1 * - col1 + + col2 FROM tab1
----
-43
-622
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-3875
SELECT DISTINCT tab1.col1 * - tab1.col0 + 73 DIV col0 AS col2 FROM tab1
----
-1040
-54
-639
skipif mysql # not compatible
query I rowsort label-3875
SELECT DISTINCT tab1.col1 * - tab1.col0 + 73 / col0 AS col2 FROM tab1
----
-1040
-54
-639
onlyif mysql # use DIV operator for integer division
query I rowsort label-3876
SELECT ALL - col0 DIV - col1 + col1 AS col0 FROM tab2
----
21
31
60
skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL - col0 / - col1 + col1 AS col0 FROM tab2
----
21
31
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3877
SELECT CAST( + 73 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
73
73
73
skipif mysql # not compatible
query I rowsort label-3877
SELECT CAST ( + 73 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
73
73
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-3878
SELECT DISTINCT - 87 DIV 84 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT - 87 / 84 FROM tab0 AS cor0
----
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3879
SELECT - ( - col0 ) * + col0 * - CAST( ( col0 ) * - 57 AS SIGNED ) + col1 AS col0 FROM tab0 AS cor0
----
2443972
40183324
788054
skipif mysql # not compatible
query I rowsort label-3879
SELECT - ( - col0 ) * + col0 * - CAST ( ( col0 ) * - 57 AS INTEGER ) + col1 AS col0 FROM tab0 AS cor0
----
2443972
40183324
788054
query I rowsort
SELECT ALL + - ( 30 ) + + col1 AS col1 FROM tab1 cor0
----
-17
-20
-4
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a
query I rowsort
SELECT 79 * col1 AS col1 FROM tab0
----
6794
7189
7663
query I rowsort
SELECT ( col0 ) * col0 + + col2 * + 58 * cor0.col2 AS col1 FROM tab2 AS cor0
----
42331
45292
89993
query I rowsort
SELECT ( col1 ) * + col2 + + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT - + col2 + 5 * cor0.col2 AS col2 FROM tab0 AS cor0
----
132
328
4
query I rowsort
SELECT col1 + 26 FROM tab0 AS cor0
----
112
117
123
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3887
SELECT - CAST( NULL AS DECIMAL ) + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3887
SELECT - CAST ( NULL AS REAL ) + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3888
SELECT ALL - col2 + + col1 DIV cor0.col2 col1 FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL - col2 + + col1 / cor0.col2 col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - 6 - col0 AS col2 FROM tab0 AS cor0
----
-30
-41
-95
query I rowsort
SELECT + + 57 * - col2 FROM tab2 AS cor0
----
-1482
-1539
-2166
query I rowsort
SELECT DISTINCT + col1 + ( + col2 ) AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT 35 * col1 + col1 FROM tab2
----
1116
2124
612
query I rowsort
SELECT - + col0 + + col2 AS col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + + cor0.col2 * col2 * - col2 AS col2 FROM tab2 cor0
----
-17576
-19683
-54872
query I rowsort
SELECT - col1 * - col0 * + cor0.col2 + col0 FROM tab2 AS cor0
----
119730
51113
5866
query I rowsort
SELECT + col2 * + col2 + + 86 AS col1 FROM tab1 AS cor0
----
3002
3335
9302
query I rowsort
SELECT col1 + col0 * col0 + col1 AS col0 FROM tab2
----
111
6202
6275
query I rowsort
SELECT ALL + col1 * - col0 * col2 AS col1 FROM tab2
----
-119652
-51034
-5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 col1 FROM tab0
----
73
73
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3900
SELECT cor0.col1 * CAST( NULL AS SIGNED ) + + 22 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3900
SELECT cor0.col1 * CAST ( NULL AS INTEGER ) + + 22 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * - ( - col1 ) + + col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT - col2 - col2 AS col1 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT + col2 + col0 * 93 * col1 AS col1 FROM tab0 AS cor0
----
191985
315736
753289
query I rowsort
SELECT DISTINCT - col1 + 43 FROM tab2 AS cor0
----
-16
12
26
query I rowsort
SELECT + 71 * col2 FROM tab1 AS cor0
----
3834
4047
6816
onlyif mysql # use DIV operator for integer division
query I rowsort label-3906
SELECT - col2 + - col2 DIV col1 AS col2 FROM tab1 AS cor0
----
-103
-56
-62
skipif mysql # not compatible
query I rowsort label-3906
SELECT - col2 + - col2 / col1 AS col2 FROM tab1 AS cor0
----
-103
-56
-62
query I rowsort
SELECT - col2 * 89 * + cor0.col0 FROM tab2 AS cor0
----
-16821
-180492
-267178
query I rowsort
SELECT ALL + + ( - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - - col1 + col1 * + col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT ALL - 98 FROM tab2 AS cor0
----
-98
-98
-98
query I rowsort
SELECT DISTINCT + 70 AS col0 FROM tab1 cor0
----
70
query I rowsort
SELECT - cor0.col2 + + col1 * col1 AS col0 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT + 65 AS col1 FROM tab0 AS cor0
----
65
65
65
query I rowsort
SELECT ALL 9 * cor0.col0 AS col1 FROM tab2 AS cor0
----
63
702
711
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + + col2 col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL + col1 * + cor0.col2 - 16 * + 41 FROM tab2 AS cor0
----
-10
181
878
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
query I rowsort
SELECT - cor0.col2 + cor0.col0 * + 72 FROM tab2 AS cor0
----
477
5590
5650
query I rowsort
SELECT ( col1 ) + tab1.col0 AS col2 FROM tab1
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3920
SELECT DISTINCT ( + col0 ) * + CAST( col2 + - col1 AS SIGNED ) FROM tab0
----
-1272
-3360
-801
skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT ( + col0 ) * + CAST ( col2 + - col1 AS INTEGER ) FROM tab0
----
-1272
-3360
-801
query I rowsort
SELECT ALL + 86 * + col0 + col1 * cor0.col2 FROM tab0 AS cor0
----
15116
3107
4902
query I rowsort
SELECT ALL + + col1 * ( col2 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + col0 + - 51 AS col1 FROM tab2 AS cor0
----
-44
27
28
query I rowsort
SELECT DISTINCT - tab2.col2 * + col0 AS col1 FROM tab2
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3925
SELECT - CAST( 88 AS SIGNED ) + - col1 AS col0 FROM tab0 AS cor0
----
-174
-179
-185
skipif mysql # not compatible
query I rowsort label-3925
SELECT - CAST ( 88 AS INTEGER ) + - col1 AS col0 FROM tab0 AS cor0
----
-174
-179
-185
query I rowsort
SELECT 32 + col2 * col2 AS col0 FROM tab0 AS cor0
----
1121
33
6756
query I rowsort
SELECT - 49 + + 22 FROM tab0 cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 0259a67676b131a4843853be4811b775
query I rowsort
SELECT DISTINCT cor0.col1 + 62 AS col2 FROM tab2, tab1 AS cor0
----
72
75
88
query I rowsort
SELECT - 64 * 69 + + col0 FROM tab2 AS cor0
----
-4337
-4338
-4409
onlyif mysql # use DIV operator for integer division
query I rowsort label-3930
SELECT - + col0 * col0 DIV - col1 + CAST( - 14 AS SIGNED ) DIV + col2 FROM tab0 cor0
----
-2
6
87
skipif mysql # not compatible
query I rowsort label-3930
SELECT - + col0 * col0 / - col1 + CAST ( - 14 AS INTEGER ) / + col2 FROM tab0 cor0
----
-2
6
87
query I rowsort
SELECT DISTINCT + col1 * + ( col0 ) * - 80 FROM tab0
----
-165120
-271600
-647920
query I rowsort
SELECT DISTINCT 78 * col1 + - col0 AS col2 FROM tab1 AS cor0
----
2025
716
934
query I rowsort
SELECT ALL + ( 54 ) AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query I rowsort
SELECT cor0.col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL - 38 + 48 AS col0 FROM tab0
----
10
10
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-3936
SELECT DISTINCT col0 + + col2 DIV + col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT col0 + + col2 / + col1 FROM tab0
----
24
35
89
query I rowsort
SELECT + + ( 41 ) * col1 + 74 AS col2 FROM tab1 AS cor0
----
1140
484
607
query I rowsort
SELECT - 81 AS col0 FROM tab2
----
-81
-81
-81
query I rowsort
SELECT + col2 - 71 FROM tab0
----
-38
-70
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + tab2.col1 col2 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT - 84 + col2 AS col0 FROM tab2 AS cor0
----
-46
-57
-58
query I rowsort
SELECT DISTINCT + + cor0.col2 AS col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL cor0.col1 * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - ( + ( + col2 ) ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + + 68 + + col1 FROM tab0 AS cor0
----
154
159
165
onlyif mysql # use DIV operator for integer division
query I rowsort label-3946
SELECT DISTINCT - 56 DIV + 13 - + col1 FROM tab1 cor0
----
-14
-17
-30
skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT - 56 / + 13 - + col1 FROM tab1 cor0
----
-14
-17
-30
query I rowsort
SELECT 20 * 34 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 8ff2bb7eb8f5f0896c097b3a7e9bd432
query I rowsort
SELECT ( col0 ) + col2 * col1 AS col0 FROM tab0
----
132
2862
7551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3949
SELECT CAST( - col1 AS SIGNED ) + col2 FROM tab0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-3949
SELECT CAST ( - col1 AS INTEGER ) + col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT + + ( + ( - col0 ) ) * + 29 FROM tab1 AS cor0
----
-1856
-2320
-87
query I rowsort
SELECT DISTINCT - 2 + col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1536
-648
-839
query I rowsort
SELECT - cor0.col2 + - ( - col1 ) AS col0 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-3953
SELECT ALL + col1 * 63 DIV + col2 FROM tab1 cor0
----
11
30
8
skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL + col1 * 63 / + col2 FROM tab1 cor0
----
11
30
8
query I rowsort
SELECT ALL 48 * + ( cor0.col0 ) FROM tab2 AS cor0
----
336
3744
3792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3955
SELECT ALL + + CAST( col2 AS SIGNED ) * col2 FROM tab2 AS cor0
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL + + CAST ( col2 AS INTEGER ) * col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT cor1.col1 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
10
13
26
query I rowsort
SELECT + col1 * - tab2.col0 AS col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT + 71 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
query I rowsort
SELECT DISTINCT + 57 * - col0 + col1 AS col1 FROM tab0
----
-1282
-1898
-4982
query I rowsort
SELECT + - col2 + + cor0.col2 * ( col0 * - cor0.col0 ) FROM tab2 AS cor0
----
-1350
-158210
-237196
query I rowsort
SELECT + tab0.col0 - col1 * - col2 * - col1 FROM tab0
----
-244044
-678953
-9374
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 * - ( col0 ) col0 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT - 16 + - tab0.col0 FROM tab0
----
-105
-40
-51
onlyif mysql # use DIV operator for integer division
query I rowsort label-3964
SELECT + col1 + - col0 DIV col1 AS col2 FROM tab2
----
13
31
58
skipif mysql # not compatible
query I rowsort label-3964
SELECT + col1 + - col0 / col1 AS col2 FROM tab2
----
13
31
58
query I rowsort
SELECT ALL + - cor0.col1 * - col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + 74 AS col2 FROM tab2 AS cor0
----
74
74
74
query I rowsort
SELECT DISTINCT - 64 + + col1 * 37 FROM tab0 AS cor0
----
3118
3303
3525
query I rowsort
SELECT - col0 * cor0.col1 + ( col1 * + col2 ) + col0 FROM tab2 cor0
----
-2990
-618
627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3969
SELECT DISTINCT + + ( col2 ) * CAST( - col1 AS SIGNED ) + col2 * + 61 AS col1 FROM tab0 AS cor0
----
-2460
-36
-825
skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT + + ( col2 ) * CAST ( - col1 AS INTEGER ) + col2 * + 61 AS col1 FROM tab0 AS cor0
----
-2460
-36
-825
query I rowsort
SELECT ALL + col0 + - 6 AS col0 FROM tab2 cor0
----
1
72
73
query I rowsort
SELECT DISTINCT + + col2 * + 91 - + 1 FROM tab1 AS cor0
----
4913
5186
8735
onlyif mysql # use DIV operator for integer division
query I rowsort label-3972
SELECT - + col2 DIV + col1 + col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3972
SELECT - + col2 / + col1 + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + cor0.col1 + - col1 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col0 - ( - 69 ) * col0 AS col1 FROM tab2 AS cor0
----
490
5460
5530
query I rowsort
SELECT DISTINCT + cor0.col0 + + ( 34 ) FROM tab0 AS cor0
----
123
58
69
query I rowsort
SELECT ALL - - col0 * + cor0.col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT ALL + col2 + + 30 AS col1 FROM tab0 AS cor0
----
112
31
63
query I rowsort
SELECT ALL - - col1 * col0 - col1 AS col2 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT - ( col2 ) * - col0 FROM tab1
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + + col0 col1 FROM tab1
----
1120
704
81
query I rowsort
SELECT ALL + col1 * + ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT 77 * + col1 FROM tab2
----
1309
2387
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-3983
SELECT ALL + col0 DIV 20 FROM tab2 AS cor0
----
0
3
3
skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL + col0 / 20 FROM tab2 AS cor0
----
0
3
3
query I rowsort
SELECT DISTINCT + cor0.col0 + + 46 AS col0 FROM tab1, tab0, tab0 cor0, tab2
----
135
70
81
query I rowsort
SELECT DISTINCT - + col2 * 57 AS col0 FROM tab1 cor0
----
-3078
-3249
-5472
query I rowsort
SELECT DISTINCT - - col2 * + cor0.col0 AS col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL + col2 + - 37 * - cor0.col0 * - col2 + ( - col0 * - col0 ) AS col1 FROM tab1 AS cor0
----
-130823
-277664
-5931
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3988
SELECT - + CAST( 81 AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0
----
-2106
-2187
-3078
skipif mysql # not compatible
query I rowsort label-3988
SELECT - + CAST ( 81 AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0
----
-2106
-2187
-3078
query I rowsort
SELECT - ( 75 ) + - cor0.col1 * + col1 FROM tab2 AS cor0
----
-1036
-3556
-364
query I rowsort
SELECT col2 * - 5 AS col1 FROM tab1 AS cor0
----
-270
-285
-480
query I rowsort
SELECT DISTINCT - 95 AS col0 FROM tab0, tab0 cor0
----
-95
query I rowsort
SELECT ALL 55 AS col1 FROM tab0, tab0 cor0, tab1 cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 39 col2 FROM tab1
----
-117
-2496
-3120
query I rowsort
SELECT - - col1 * col0 - + ( col2 ) FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT ALL + + ( + col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - 98 + col2 AS col0 FROM tab1 AS cor0
----
-2
-41
-44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - cor0.col0 col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL + - col2 * - col2 + col1 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT DISTINCT + - col2 + - col1 - col2 AS col0 FROM tab0 cor0
----
-152
-255
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * col0 col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + ( - col1 ) * + 6 FROM tab1 AS cor0
----
-156
-60
-78
query I rowsort
SELECT DISTINCT - 22 AS col2 FROM tab1 AS cor0
----
-22
query I rowsort
SELECT ALL 88 * - col1 AS col1 FROM tab2 cor0
----
-1496
-2728
-5192
onlyif mysql # use DIV operator for integer division
query I rowsort label-4004
SELECT tab0.col1 + - 75 DIV + col0 AS col1 FROM tab0
----
83
91
95
skipif mysql # not compatible
query I rowsort label-4004
SELECT tab0.col1 + - 75 / + col0 AS col1 FROM tab0
----
83
91
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-4005
SELECT 41 * 16 + + col1 DIV - col0 FROM tab0
----
653
654
655
skipif mysql # not compatible
query I rowsort label-4005
SELECT 41 * 16 + + col1 / - col0 FROM tab0
----
653
654
655
query I rowsort
SELECT - 6 * 27 + col2 AS col0 FROM tab2
----
-124
-135
-136
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4007
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + ( col2 ) FROM tab0
----
119
173
98
query I rowsort
SELECT ALL - col2 - + 26 * + col0 FROM tab0
----
-2396
-657
-911
query I rowsort
SELECT ALL col1 * col2 - + tab1.col0 AS col2 FROM tab1
----
1168
1401
506
onlyif mysql # use DIV operator for integer division
query I rowsort label-4011
SELECT ALL 53 DIV col1 - + col2 AS col2 FROM tab1
----
-52
-52
-92
skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL 53 / col1 - + col2 AS col2 FROM tab1
----
-52
-52
-92
onlyif mysql # use DIV operator for integer division
query I rowsort label-4012
SELECT ALL col0 + col1 DIV + 30 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL col0 + col1 / + 30 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL + - col0 + col1 + ( cor0.col0 ) AS col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL col0 + + col0 * col0 + - col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - - 83 * col0 FROM tab0 AS cor0
----
1992
2905
7387
query I rowsort
SELECT col2 * + tab0.col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + - col1 * col1 + + col2 AS col0 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT + cor0.col0 + + col0 * col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT ALL col2 + + col0 FROM tab1 WHERE ( - col2 ) NOT IN ( col0 + col2 )
----
121
176
57
query I rowsort
SELECT - cor0.col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + 61 * col1 + col1 col1 FROM tab1 AS cor0
----
1260
1690
1846
query I rowsort
SELECT - cor0.col2 + ( 48 + col2 * ( - 78 ) ) AS col2 FROM tab2 AS cor0
----
-2006
-2085
-2954
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4023
SELECT ALL col1 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL col1 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + ( 76 ) col2 FROM tab0 AS cor0
----
100
111
165
query I rowsort
SELECT DISTINCT col0 * cor0.col0 - col2 AS col0 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT ALL - col1 * tab1.col2 AS col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT tab1.col0 * col2 + col1 AS col1 FROM tab1
----
188
3658
7693
query I rowsort
SELECT - col0 * - tab1.col0 AS col1 FROM tab1
----
4096
6400
9
query I rowsort
SELECT DISTINCT - tab2.col2 + - col2 FROM tab2
----
-52
-54
-76
query I rowsort
SELECT + col0 * col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT col2 * + tab0.col2 + - col0 FROM tab0
----
-34
1065
6635
query I rowsort
SELECT col0 * + col1 * - col2 + - col2 - + col2 AS col0 FROM tab1
----
-100032
-36594
-4320
query I rowsort
SELECT DISTINCT + col1 * - col0 + col2 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT ALL col0 * - col1 * - col1 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT tab1.col0 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT DISTINCT + tab2.col1 + + tab2.col0 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL - col1 * col1 + col2 AS col1 FROM tab1
----
-43
-622
-73
query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) = - col2 + + col2 * col1
----
query I rowsort
SELECT - col2 * tab2.col1 FROM tab2
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + tab0.col0 + + col1 col2 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT ALL + col1 * col2 + + tab2.col0 FROM tab2
----
1612
725
844
query I rowsort
SELECT DISTINCT col2 * col2 + - col2 * - col0 FROM tab0
----
14022
1881
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 + - tab1.col1 col1 FROM tab1 WHERE NOT NULL < NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----
query I rowsort
SELECT DISTINCT tab1.col1 FROM tab1 WHERE col1 <> NULL
----
query I rowsort
SELECT col1 * col0 + - col0 * col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + tab2.col1 * col2 + + col0 * + col1 FROM tab2
----
1054
1989
6136
query I rowsort
SELECT DISTINCT col0 + - tab2.col0 AS col2 FROM tab2
----
0
query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT NULL >= + col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4050
SELECT ALL - col2 + col0 DIV + tab1.col1 AS col2 FROM tab1
----
-51
-54
-90
skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL - col2 + col0 / + tab1.col1 AS col2 FROM tab1
----
-51
-54
-90
query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * - col0 * col1 NOT IN ( col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT col1 + - tab0.col2 FROM tab0
----
53
9
96
query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NULL < NULL
----
query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NOT NULL BETWEEN col2 AND ( col2 * tab2.col1 )
----
query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT col1 NOT IN ( col2 * + col0 + + col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < + col2
----
query I rowsort
SELECT DISTINCT - col2 * - col0 + tab1.col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT + col2 * col2 + - col2 - col0 AS col1 FROM tab1
----
2859
3128
9040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT + col0 * - col1 + + col0 FROM tab1
----
-576
-75
-960
query III rowsort
SELECT * FROM tab0 WHERE col2 >= ( - col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT col2 + - col1 * col2 * tab0.col2 FROM tab0
----
-611802
-93621
-96
query I rowsort
SELECT ALL col2 * + col0 AS col1 FROM tab0 WHERE NOT col1 + col0 + + col2 * col1 IN ( - col0 )
----
35
7298
792
query I rowsort
SELECT col1 * + tab0.col2 AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + ( ( + tab0.col2 ) ) FROM tab0
----
1
33
82
query I rowsort
SELECT ALL 56 * col1 - ( + 73 ) * - col0 FROM tab0 cor0
----
11593
6568
7987
query I rowsort
SELECT ALL + 70 AS col0 FROM tab0 AS cor0
----
70
70
70
query I rowsort
SELECT - ( - ( tab1.col0 ) ) FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4069
SELECT col1 DIV + 76 - tab0.col2 * + col0 AS col2 FROM tab0
----
-34
-7297
-791
skipif mysql # not compatible
query I rowsort label-4069
SELECT col1 / + 76 - tab0.col2 * + col0 AS col2 FROM tab0
----
-34
-7297
-791
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) * - col2 col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + col1 - tab0.col1 FROM tab0
----
0
0
0
query I rowsort
SELECT - ( + 72 ) * - col0 + - col0 AS col0 FROM tab0
----
1704
2485
6319
query I rowsort
SELECT DISTINCT col0 * - col0 + col0 AS col2 FROM tab1
----
-4032
-6
-6320
query I rowsort
SELECT DISTINCT - 11 * col0 * + col1 + + 25 * + 22 FROM tab2
----
-14223
-1837
-50072
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 col0 FROM tab1
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 0 col1 FROM tab1
----
0
query I rowsort
SELECT DISTINCT col0 - + col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col0 * + col2 + - col1 AS col0 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT + + 74 AS col0 FROM tab1 AS cor0
----
74
74
74
query I rowsort
SELECT DISTINCT + - col0 * col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - + col1 * + col0 * - 99 + + cor0.col2 * - col2 * 92 FROM tab0 cor0
----
104148
183193
336013
query I rowsort
SELECT + col2 * + col2 - col2 FROM tab0
----
0
1056
6642
query I rowsort
SELECT DISTINCT ( + 98 ) FROM tab2, tab1 AS cor0
----
98
query I rowsort
SELECT + col0 * - col2 - + col2 FROM tab2 AS cor0
----
-2054
-216
-3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-4085
SELECT cor0.col0 DIV col2 - + col0 DIV - col1 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-4085
SELECT cor0.col0 / col2 - + col0 / - col1 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT - col2 + + ( col1 ) AS col0 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT + cor0.col0 + col1 * col2 AS col1 FROM tab0 AS cor0
----
132
2862
7551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 24 * col2 * - col2 col0 FROM tab2 AS cor0
----
-16198
-17469
-34618
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col0 col0 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4090
SELECT ALL + - cor0.col2 DIV + 30 - col2 * 16 FROM tab0 AS cor0
----
-1314
-16
-529
skipif mysql # not compatible
query I rowsort label-4090
SELECT ALL + - cor0.col2 / + 30 - col2 * 16 FROM tab0 AS cor0
----
-1314
-16
-529
query I rowsort
SELECT + col2 * 47 + col1 FROM tab1 cor0
----
2564
2689
4525
onlyif mysql # use DIV operator for integer division
query I rowsort label-4092
SELECT - col0 + cor0.col1 DIV + col0 FROM tab0 AS cor0
----
-21
-33
-88
skipif mysql # not compatible
query I rowsort label-4092
SELECT - col0 + cor0.col1 / + col0 FROM tab0 AS cor0
----
-21
-33
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-4093
SELECT ALL - ( + col2 ) DIV + col0 + + cor0.col2 * col2 + + col0 * + col1 * - col2 FROM tab2 AS cor0
----
-118976
-49590
-5133
skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL - ( + col2 ) / + col0 + + cor0.col2 * col2 + + col0 * + col1 * - col2 FROM tab2 AS cor0
----
-118976
-49590
-5133
query I rowsort
SELECT - 14 AS col1 FROM tab2 cor0
----
-14
-14
-14
query I rowsort
SELECT ALL - ( + col0 ) * col2 + 85 FROM tab0 AS cor0
----
-707
-7213
50
query I rowsort
SELECT ALL tab0.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT - 91 * + col2 FROM tab2 AS cor0
----
-2366
-2457
-3458
onlyif mysql # use DIV operator for integer division
query I rowsort label-4098
SELECT DISTINCT col1 DIV cor0.col0 FROM tab2 AS cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT col1 / cor0.col0 FROM tab2 AS cor0
----
0
4
query I rowsort
SELECT - 67 * col0 AS col1 FROM tab0 AS cor0
----
-1608
-2345
-5963
query I rowsort
SELECT col2 * + col0 + - cor0.col2 * - col1 FROM tab2 cor0
----
1026
3562
3648
query I rowsort
SELECT + cor0.col2 + - col0 * cor0.col0 * col1 FROM tab2 AS cor0
----
-106059
-1492
-358930
query I rowsort
SELECT ALL + col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT + 0 + col0 AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT tab2.col0 + - col0 AS col1 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4105
SELECT + CAST( NULL AS DECIMAL ) + ( - col0 ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4105
SELECT + CAST ( NULL AS REAL ) + ( - col0 ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + col2 * - col1 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT col0 * + col1 + col1 * + col2 FROM tab2
----
1054
1989
6136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 * col0 + - col2 col0 FROM tab0 AS cor0
----
1167
1749
4368
query I rowsort
SELECT 35 + + col0 FROM tab1 AS cor0
----
115
38
99
query I rowsort
SELECT tab0.col2 + - tab0.col1 * + col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT - - 71 + - col2 * + col1 FROM tab1 cor0
----
-1177
-1333
-499
query I rowsort
SELECT ALL col0 * - col1 + - col0 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT DISTINCT - cor0.col0 + col2 * cor0.col2 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT DISTINCT + 53 * - col1 AS col1 FROM tab2
----
-1643
-3127
-901
query I rowsort
SELECT col2 + - col1 + col1 * - col0 AS col0 FROM tab1
----
-50
-593
-957
query I rowsort
SELECT ALL 83 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
45
56
57
query I rowsort
SELECT DISTINCT + - col1 * + ( + col0 ) + col1 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1107
-55
-694
query I rowsort
SELECT DISTINCT + col1 - + col0 FROM tab0
----
2
62
query I rowsort
SELECT - - cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL col1 - + 55 FROM tab1
----
-29
-42
-45
query I rowsort
SELECT DISTINCT col0 * col1 - col0 * - col2 * col2 AS col0 FROM tab0
----
28200
3430
606535
query I rowsort
SELECT - col2 * 60 * - col1 + + col0 + col1 FROM tab1
----
34274
74973
84269
query I rowsort
SELECT col0 * col1 + col2 - tab1.col2 AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT - ( 29 ) AS col0 FROM tab2
----
-29
-29
-29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 + - tab1.col2 col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - col2 + 72 AS col0 FROM tab0
----
-10
39
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-4127
SELECT DISTINCT col0 + + col0 DIV + col1 AS col2 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT col0 + + col0 / + col1 AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT 23 AS col0 FROM tab1 AS cor0
----
23
query I rowsort
SELECT DISTINCT + ( ( - col0 ) ) FROM tab2 AS cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 col2 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4131
SELECT ALL - col1 DIV col0 + cor0.col2 * + col1 + - col1 AS col2 FROM tab2 AS cor0
----
1475
629
802
skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL - col1 / col0 + cor0.col2 * + col1 + - col1 AS col2 FROM tab2 AS cor0
----
1475
629
802
query I rowsort
SELECT ALL - col2 * + 28 + - col0 * col0 FROM tab1 AS cor0
----
-1521
-5692
-9088
query I rowsort
SELECT DISTINCT - col2 + + col0 AS col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT tab1.col0 + - col1 + - col1 FROM tab1
----
-49
44
54
query I rowsort
SELECT ALL - col0 * - cor0.col2 - - cor0.col1 AS col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT - col2 * - col0 + - col1 * col1 FROM tab1 AS cor0
----
-514
3548
7511
query I rowsort
SELECT ALL col1 + + col1 AS col0 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT DISTINCT - + col2 * - col2 + col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT - - col0 + - col2 * + col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL - col2 * - cor0.col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT col0 * - col1 * cor0.col1 + col0 FROM tab1 AS cor0
----
-13440
-2025
-6336
query I rowsort
SELECT - - cor0.col0 * col2 - + cor0.col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT DISTINCT cor0.col0 + - col0 AS col2 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col0 * col2 col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT + tab2.col1 + + tab2.col0 FROM tab2
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 + + col0 col2 FROM tab0
----
1260
600
8010
query I rowsort
SELECT DISTINCT col2 + + col1 AS col0 FROM tab1
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4148
SELECT - col0 * col0 + col2 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-4148
SELECT - col0 * col0 + col2 / cor0.col1 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-4149
SELECT col2 * col2 + - col0 DIV col1 FROM tab1 AS cor0
----
2916
3243
9210
skipif mysql # not compatible
query I rowsort label-4149
SELECT col2 * col2 + - col0 / col1 FROM tab1 AS cor0
----
2916
3243
9210
query I rowsort
SELECT ALL tab0.col1 + tab0.col1 FROM tab0
----
172
182
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-4151
SELECT + col2 DIV col2 + + col0 AS col1 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-4151
SELECT + col2 / col2 + + col0 AS col1 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT ALL + col1 * cor0.col1 - col0 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT ALL + col0 - cor0.col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT ALL + col2 * + col0 * + col0 AS col0 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT + col1 * col2 * + tab2.col1 + - col0 FROM tab2
----
10903
25940
90428
query I rowsort
SELECT ALL - col0 * col0 * - col0 FROM tab0
----
13824
42875
704969
query I rowsort
SELECT col0 + tab2.col1 * + tab2.col1 FROM tab2
----
3559
368
968
query I rowsort
SELECT - col1 + + 96 FROM tab2 AS cor0
----
37
65
79
query I rowsort
SELECT ALL - 22 FROM tab2, tab2 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9
query I rowsort
SELECT DISTINCT tab0.col2 * 3 FROM tab0
----
246
3
99
query I rowsort
SELECT - col2 + - ( cor0.col0 ) * cor0.col2 AS col0 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT col0 + 15 FROM tab2 AS cor0
----
22
93
94
query I rowsort
SELECT - + 61 AS col0 FROM tab0 AS cor0
----
-61
-61
-61
query I rowsort
SELECT - col2 * 21 FROM tab2 AS cor0
----
-546
-567
-798
query I rowsort
SELECT + - col1 * + 94 FROM tab2 AS cor0
----
-1598
-2914
-5546
query I rowsort
SELECT ALL 1 + col2 + col0 AS col0 FROM tab1 AS cor0
----
122
177
58
query I rowsort
SELECT - 86 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af
onlyif mysql # use DIV operator for integer division
query I rowsort label-4168
SELECT - col1 + + col2 DIV 52 - col1 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-4168
SELECT - col1 + + col2 / 52 - col1 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
-12
-25
-9
query I rowsort
SELECT ( col2 ) + - col2 + col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT + 46 + + cor0.col1 * 18 + - ( col0 ) * + ( - 69 * + cor0.col0 ) FROM tab1 AS cor0
----
1135
282850
441880
onlyif mysql # use DIV operator for integer division
query I rowsort label-4171
SELECT DISTINCT + - col2 DIV + col2 + - cor0.col0 * col0 FROM tab1 AS cor0
----
-10
-4097
-6401
skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT + - col2 / + col2 + - cor0.col0 * col0 FROM tab1 AS cor0
----
-10
-4097
-6401
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4172
SELECT CAST( NULL AS SIGNED ) * - 73 / + col1 + 63 + col0 * col0 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4172
SELECT CAST ( NULL AS INTEGER ) * - 73 / + col1 + 63 + col0 * col0 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 + 32 FROM tab2
----
-27
1
15
query I rowsort
SELECT + col1 * - col1 AS col2 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT DISTINCT 15 + tab0.col0 * + col0 FROM tab0
----
1240
591
7936
query I rowsort
SELECT DISTINCT ( ( - col1 ) ) + tab0.col2 AS col1 FROM tab0
----
-53
-9
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4177
SELECT col1 * + col1 + - CAST( col0 AS SIGNED ) + col0 AS col2 FROM tab2 cor0
----
289
3481
961
skipif mysql # not compatible
query I rowsort label-4177
SELECT col1 * + col1 + - CAST ( col0 AS INTEGER ) + col0 AS col2 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT + 17 + + col1 * 20 + - 25 AS col1 FROM tab1 AS cor0
----
192
252
512
query I rowsort
SELECT col1 + + 90 + col1 * col1 AS col1 FROM tab0 AS cor0
----
7572
8462
9596
query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col2 FROM tab2, tab1 AS cor0
----
121
176
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4181
SELECT ALL + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL + + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - col0 * col1 + cor0.col2 * - col2 AS col1 FROM tab1 AS cor0
----
-10256
-2994
-3889
query I rowsort
SELECT - - col0 - col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT - 40 + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1185
536
7881
query I rowsort
SELECT ALL + + col2 + cor0.col2 * 25 AS col0 FROM tab1 AS cor0
----
1404
1482
2496
query I rowsort
SELECT ALL - + ( + tab0.col1 ) AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT DISTINCT col2 + ( - col1 ) * + col0 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-4188
SELECT + col2 DIV - cor0.col2 - col1 AS col2 FROM tab1 AS cor0
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-4188
SELECT + col2 / - cor0.col2 - col1 AS col2 FROM tab1 AS cor0
----
-11
-14
-27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - cor0.col2 + - col1 col2 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT DISTINCT + - col1 * - col0 * col0 AS col0 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT ALL - + col2 + 13 FROM tab1 AS cor0
----
-41
-44
-83
query I rowsort
SELECT cor0.col2 * - 3 AS col2 FROM tab0 AS cor0
----
-246
-3
-99
query I rowsort
SELECT ALL + cor0.col2 + - col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 + 83 FROM tab0 cor0
----
-6
48
59
query I rowsort
SELECT DISTINCT col0 - + 27 AS col0 FROM tab2 AS cor0
----
-20
51
52
query I rowsort
SELECT DISTINCT - col0 + + col2 * col1 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT ALL + + col1 * + 5 * + 24 AS col2 FROM tab0 AS cor0
----
10320
10920
11640
onlyif mysql # use DIV operator for integer division
query I rowsort label-4198
SELECT ALL - ( - col1 ) DIV - col1 - + col2 * + col1 FROM tab1
----
-1249
-1405
-571
skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL - ( - col1 ) / - col1 - + col2 * + col1 FROM tab1
----
-1249
-1405
-571
query I rowsort
SELECT DISTINCT tab2.col2 - + col2 * ( 95 ) FROM tab2
----
-2444
-2538
-3572
query I rowsort
SELECT - 95 + - col1 FROM tab0
----
-181
-186
-192
onlyif mysql # use DIV operator for integer division
query I rowsort label-4201
SELECT ALL - col1 + 69 DIV - ( + col0 * + col1 ) FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL - col1 + 69 / - ( + col0 * + col1 ) FROM tab1
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-4202
SELECT DISTINCT col2 DIV + col1 + 92 AS col1 FROM tab1
----
94
97
99
skipif mysql # not compatible
query I rowsort label-4202
SELECT DISTINCT col2 / + col1 + 92 AS col1 FROM tab1
----
94
97
99
query I rowsort
SELECT + cor0.col0 + cor0.col0 * + 26 AS col0 FROM tab1 AS cor0
----
1728
2160
81
query I rowsort
SELECT - cor0.col1 + + ( 26 + + col2 ) * + col2 AS col0 FROM tab2 AS cor0
----
1293
1400
2415
query I rowsort
SELECT - col1 * col0 + + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-1136
-132
-697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( col1 ) * col0 col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT - 68 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 6fbba7db5bccb533a35aa5125a231f88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 23 * + col1 col1 FROM tab0 AS cor0
----
-1978
-2093
-2231
query I rowsort
SELECT - col2 * + 23 FROM tab2 AS cor0
----
-598
-621
-874
query I rowsort
SELECT - 95 AS col2 FROM tab0 AS cor0
----
-95
-95
-95
query I rowsort
SELECT - 29 FROM tab1, tab2 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b
query I rowsort
SELECT DISTINCT - 33 + tab1.col2 * + col2 - col0 AS col2 FROM tab1
----
2880
3152
9103
query I rowsort
SELECT - col1 + - col2 - 82 AS col0 FROM tab0
----
-180
-201
-255
onlyif mysql # use DIV operator for integer division
query I rowsort label-4214
SELECT - ( + col1 + - col0 ) DIV + col2 col2 FROM tab0
----
-1
-62
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4214
SELECT - ( + col1 + - col0 ) / + col2 col2 FROM tab0
----
-1
-62
0
query I rowsort
SELECT DISTINCT + col0 + - col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT - col1 * - col0 + + col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT 84 * - col1 AS col2 FROM tab2 cor0
----
-1428
-2604
-4956
query I rowsort
SELECT ALL - ( - col1 ) * - 59 + - 67 * - col1 FROM tab0 AS cor0
----
688
728
776
query I rowsort
SELECT DISTINCT + 94 * col2 FROM tab1 AS cor0
----
5076
5358
9024
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4220
SELECT - col1 * cor0.col0 + CAST( col2 AS SIGNED ) * - col1 * col0 AS col2 FROM tab2 cor0
----
-124254
-52377
-6076
skipif mysql # not compatible
query I rowsort label-4220
SELECT - col1 * cor0.col0 + CAST ( col2 AS INTEGER ) * - col1 * col0 AS col2 FROM tab2 cor0
----
-124254
-52377
-6076
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 * col1 col2 FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT 73 * ( cor0.col1 ) FROM tab2 AS cor0
----
1241
2263
4307
query I rowsort
SELECT ( + ( col1 ) ) * - ( - col1 ) - - col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT + + ( - 7 ) * + col1 - 41 AS col0 FROM tab1 AS cor0
----
-111
-132
-223
query I rowsort
SELECT ALL + - col1 + + col2 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT DISTINCT + - cor0.col1 + + ( col2 ) FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT ALL ( + col2 ) + cor0.col2 AS col1 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT cor0.col1 + - col1 + - col1 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT - 68 + 57 * col0 FROM tab1 AS cor0
----
103
3580
4492
onlyif mysql # use DIV operator for integer division
query I rowsort label-4230
SELECT 13 + - col2 DIV col2 AS col2 FROM tab1 AS cor0
----
12
12
12
skipif mysql # not compatible
query I rowsort label-4230
SELECT 13 + - col2 / col2 AS col2 FROM tab1 AS cor0
----
12
12
12
query I rowsort
SELECT + - ( + cor0.col1 ) + - col2 * col2 AS col2 FROM tab2 cor0
----
-1461
-735
-760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * cor0.col1 col0 FROM tab1 AS cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 - 56 col2 FROM tab0 AS cor0
----
-145
-80
-91
query I rowsort
SELECT + - ( cor0.col0 ) * - col2 - col1 AS col2 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT ALL - + 0 * - 39 AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4236
SELECT DISTINCT - - col2 DIV col2 + cor0.col0 * + col2 * col0 AS col1 FROM tab1 AS cor0
----
233473
487
614401
skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT - - col2 / col2 + cor0.col0 * + col2 * col0 AS col1 FROM tab1 AS cor0
----
233473
487
614401
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - col1 + col1 + col0 col2 FROM tab2 AS cor0
----
-1247
-179
-4465
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4238
SELECT CAST( + col2 AS SIGNED ) - + col0 FROM tab2 cor0
----
-41
-52
20
skipif mysql # not compatible
query I rowsort label-4238
SELECT CAST ( + col2 AS INTEGER ) - + col0 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT - - ( col2 ) * - col1 * + 65 FROM tab0 cor0
----
-184470
-485030
-6305
query I rowsort
SELECT - + 77 * - col1 + - col1 * + col0 + + 95 FROM tab2 AS cor0
----
2265
36
61
query I rowsort
SELECT DISTINCT + + 51 * + col1 FROM tab2 AS cor0
----
1581
3009
867
query I rowsort
SELECT DISTINCT + col0 * col1 + + col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 col2 FROM tab2 AS cor0
----
-72
query I rowsort
SELECT - cor0.col1 * col2 + ( - col0 ) + col1 AS col2 FROM tab0 AS cor0
----
-2776
-35
-7460
query I rowsort
SELECT DISTINCT - cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 * - col2 col2 FROM tab1 AS cor0
----
-1566
-1653
-2784
query I rowsort
SELECT ALL + - 90 * col2 + - 7 FROM tab0 AS cor0
----
-2977
-7387
-97
query I rowsort
SELECT - col2 * col0 + - col0 FROM tab1
----
-165
-3712
-7760
query I rowsort
SELECT - col2 + 8 FROM tab2 AS cor0
----
-18
-19
-30
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 263f0eb7d5dfd4076c74918bc141bd9b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL col2 - 89 * - tab0.col1 * - col1 FROM tab0
----
-658211
-736927
-837400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4253
SELECT col1 - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4253
SELECT col1 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + 64 - col2 AS col1 FROM tab2
----
105
116
44
query I rowsort
SELECT ALL col2 * + 33 - col1 AS col2 FROM tab1
----
1756
1871
3155
query I rowsort
SELECT DISTINCT + col2 + 25 - ( - col0 + ( col2 ) ) * col0 AS col1 FROM tab0
----
-158
1216
730
query I rowsort
SELECT ALL + col0 + ( - col0 ) - col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT - col1 * - 51 AS col2 FROM tab1
----
1326
510
663
onlyif mysql # use DIV operator for integer division
query I rowsort label-4259
SELECT + col2 DIV + ( + col2 + col2 ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4259
SELECT + col2 / + ( + col2 + col2 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 + - col0 * - tab2.col2 - - col1 FROM tab2
----
193
2061
2981
query I rowsort
SELECT ALL col2 - - col1 AS col1 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT tab0.col1 + + 99 - + col1 FROM tab0
----
99
query I rowsort
SELECT col0 * 93 + 47 AS col0 FROM tab0
----
2279
3302
8324
query I rowsort
SELECT 36 AS col0 FROM tab1
----
36
36
36
query I rowsort
SELECT + 64 + col2 AS col0 FROM tab2
----
102
90
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-4266
SELECT 73 + ( - tab1.col2 ) * col1 DIV - 87 + + col2 AS col2 FROM tab1
----
136
143
183
skipif mysql # not compatible
query I rowsort label-4266
SELECT 73 + ( - tab1.col2 ) * col1 / - 87 + + col2 AS col2 FROM tab1
----
136
143
183
query I rowsort
SELECT ALL + ( + 58 ) + col1 FROM tab0
----
144
149
155
onlyif mysql # use DIV operator for integer division
query I rowsort label-4268
SELECT - col2 + tab2.col0 + col2 DIV - 6 AS col0 FROM tab2
----
-24
35
48
skipif mysql # not compatible
query I rowsort label-4268
SELECT - col2 + tab2.col0 + col2 / - 6 AS col0 FROM tab2
----
-24
35
48
query I rowsort
SELECT ALL - cor1.col1 * 30 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 8e67b39e3aacaa8e899e3db9b3637fd5
query I rowsort
SELECT DISTINCT - - 91 FROM tab0 cor0
----
91
query I rowsort
SELECT + 16 FROM tab0, tab2 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4272
SELECT ALL CAST( + 77 AS SIGNED ) FROM tab2 AS cor0
----
77
77
77
skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL CAST ( + 77 AS INTEGER ) FROM tab2 AS cor0
----
77
77
77
query I rowsort
SELECT ALL tab0.col1 * + 32 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 72b9765f9b09d3e63126c3816c0f906e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 17 col2 FROM tab0 cor0
----
-17
-17
-17
query I rowsort
SELECT ALL - + col0 * + col2 * col1 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT - col2 + - col2 * 90 + - col2 AS col2 FROM tab0 AS cor0
----
-3036
-7544
-92
query I rowsort
SELECT + col1 + + col1 * - col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT 45 AS col2 FROM tab0
----
45
45
45
query I rowsort
SELECT ALL - + col1 * col0 + - cor0.col2 FROM tab0 cor0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT col0 + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4281
SELECT DISTINCT + col1 * + col1 - + col2 DIV col1 FROM tab2 AS cor0
----
287
3481
961
skipif mysql # not compatible
query I rowsort label-4281
SELECT DISTINCT + col1 * + col1 - + col2 / col1 FROM tab2 AS cor0
----
287
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-4282
SELECT ALL - col1 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL - col1 / cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT ALL + cor0.col1 * ( col2 * - col1 ) AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-4284
SELECT ALL col0 + col2 DIV + col2 AS col2 FROM tab1 cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL col0 + col2 / + col2 AS col2 FROM tab1 cor0
----
4
65
81
query I rowsort
SELECT ALL - col1 + - 1 * col0 AS col2 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4286
SELECT col0 + - CAST( + col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4286
SELECT col0 + - CAST ( + col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT 82 AS col0 FROM tab2, tab0, tab1 cor0
----
82
query I rowsort
SELECT - col0 + + col2 * - col1 FROM tab1
----
-1328
-1407
-634
query I rowsort
SELECT DISTINCT col0 + + ( - col2 + - cor0.col0 ) * col1 * col0 FROM tab0 AS cor0
----
-117624
-122185
-1384840
query I rowsort
SELECT - col0 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT + - col2 + + 73 FROM tab0 AS cor0
----
-9
40
72
query I rowsort
SELECT + + col2 + + col2 * col1 * - cor0.col0 AS col1 FROM tab1 cor0
----
-36423
-4158
-99744
query I rowsort
SELECT DISTINCT + tab2.col0 AS col0 FROM tab2, tab1 AS cor0
----
7
78
79
query I rowsort
SELECT + 46 * col0 AS col0 FROM tab2 AS cor0
----
322
3588
3634
query I rowsort
SELECT ( - col1 + + 77 ) * col1 FROM tab2
----
1020
1062
1426
query I rowsort
SELECT + 84 * col0 AS col1 FROM tab0
----
2016
2940
7476
query I rowsort
SELECT ALL cor0.col2 + col2 * - 99 * - col2 FROM tab2 cor0
----
142994
66950
72198
query I rowsort
SELECT + - ( + col2 ) + + col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL col0 * col0 * col0 FROM tab1
----
262144
27
512000
query I rowsort
SELECT + col1 * - 56 FROM tab0
----
-4816
-5096
-5432
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * 84 col2 FROM tab2 AS cor0
----
588
6552
6636
query I rowsort
SELECT ALL cor0.col1 * - 27 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 33ca158e4b50316b3787dced60f0f273
query I rowsort
SELECT + col1 + 28 AS col2 FROM tab1 cor0
----
38
41
54
query I rowsort
SELECT 69 * - col2 AS col1 FROM tab2 AS cor0
----
-1794
-1863
-2622
query I rowsort
SELECT + - col1 - + cor0.col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT + + col0 + 37 FROM tab2 AS cor0
----
115
116
44
query I rowsort
SELECT - cor0.col1 + - cor0.col0 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 679222606429bc7195f6dbd388ba1980
query I rowsort
SELECT - col2 * + cor0.col2 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL 35 FROM tab2, tab1 cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT DISTINCT col0 * 97 - col2 FROM tab2
----
652
7540
7625
query I rowsort
SELECT ALL + col2 + - 65 + + tab0.col0 FROM tab0
----
-29
-8
106
query I rowsort
SELECT ALL col1 * - ( + col2 ) + 23 FROM tab1 AS cor0
----
-1225
-1381
-547
query I rowsort
SELECT - + 47 AS col2 FROM tab2 AS cor0
----
-47
-47
-47
query I rowsort
SELECT - + col1 + 11 * col2 AS col2 FROM tab0 cor0
----
-86
277
811
query I rowsort
SELECT - ( ( - col2 ) ) FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-4316
SELECT DISTINCT - col2 DIV + cor0.col0 FROM tab0 cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT - col2 / + cor0.col0 FROM tab0 cor0
----
-1
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4317
SELECT ALL + CAST( NULL AS SIGNED ) * + cor0.col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL + CAST ( NULL AS INTEGER ) * + cor0.col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * col2 * col2 AS col0 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT + 1 + + col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT ALL + + col1 + - cor0.col0 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT - - col0 + + col0 AS col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT DISTINCT cor0.col1 + - col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT col0 * + col0 * col2 AS col0 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT + cor0.col0 * + col1 + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT - 49 AS col1 FROM tab1 AS cor0
----
-49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 * col0 col0 FROM tab1 AS cor0
----
261
5568
6960
onlyif mysql # use DIV operator for integer division
query I rowsort label-4327
SELECT col1 DIV + cor0.col1 + - 98 * + cor0.col2 + cor0.col2 DIV 37 AS col1 FROM tab1 AS cor0
----
-5290
-5584
-9405
skipif mysql # not compatible
query I rowsort label-4327
SELECT col1 / + cor0.col1 + - 98 * + cor0.col2 + cor0.col2 / 37 AS col1 FROM tab1 AS cor0
----
-5290
-5584
-9405
query I rowsort
SELECT DISTINCT - + 83 * col1 AS col2 FROM tab1 AS cor0
----
-1079
-2158
-830
query I rowsort
SELECT ALL col0 + + 41 - col1 AS col0 FROM tab0
----
-21
-21
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col1 - + col1 col1 FROM tab0
----
-172
-182
-194
onlyif mysql # use DIV operator for integer division
query I rowsort label-4331
SELECT ALL ( + tab1.col2 ) - col1 DIV col0 AS col2 FROM tab1
----
46
57
96
skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL ( + tab1.col2 ) - col1 / col0 AS col2 FROM tab1
----
46
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4332
SELECT - - col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4332
SELECT - - col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * ( col0 ) + col2 AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT - + cor0.col0 + col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 * - col2 col2 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT ALL + tab1.col2 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL tab2.col1 * col0 AS col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT col2 * col0 * - col0 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT - col1 * - col0 + + ( - col2 ) FROM tab2
----
1305
190
4576
query I rowsort
SELECT DISTINCT col2 * tab1.col1 AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT - + 81 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-81
query I rowsort
SELECT + cor0.col2 + ( 25 ) FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 7a92245935dd6a9f007d947403efe5c5
query I rowsort
SELECT cor0.col2 * 15 FROM tab2 AS cor0
----
390
405
570
query I rowsort
SELECT - cor0.col1 + + 36 * ( + col2 ) AS col0 FROM tab0 cor0
----
-61
1102
2861
onlyif mysql # use DIV operator for integer division
query I rowsort label-4345
SELECT - col1 DIV - cor0.col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4345
SELECT - col1 / - cor0.col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT + ( col1 * ( + tab1.col2 ) ) FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL + 5 AS col0 FROM tab0
----
5
5
5
query I rowsort
SELECT DISTINCT 74 AS col1 FROM tab1, tab0, tab0 AS cor0
----
74
query I rowsort
SELECT DISTINCT + 52 + + col0 * - col2 FROM tab1 AS cor0
----
-110
-3596
-7628
query I rowsort
SELECT DISTINCT - 74 * cor0.col2 - - col0 FROM tab2 AS cor0
----
-1846
-1991
-2733
query I rowsort
SELECT ( - tab0.col1 ) + col2 AS col0 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT 50 + tab1.col2 AS col0 FROM tab1
----
104
107
146
query I rowsort
SELECT ALL - 73 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2931474b870c05694e446771031a6949
query I rowsort
SELECT DISTINCT - cor0.col2 + 77 + col0 FROM tab1 AS cor0
----
26
61
84
query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 + col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-4356
SELECT - - col2 + col1 * col2 * - col0 - + col0 DIV + col1 FROM tab2 AS cor0
----
-119627
-51000
-5832
skipif mysql # not compatible
query I rowsort label-4356
SELECT - - col2 + col1 * col2 * - col0 - + col0 / + col1 FROM tab2 AS cor0
----
-119627
-51000
-5832
query I rowsort
SELECT ALL - - col0 + - col2 * ( col1 ) FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL - + col2 * 96 AS col0 FROM tab0 cor0
----
-3168
-7872
-96
query I rowsort
SELECT col2 + - cor0.col2 - cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT cor0.col0 + + col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - - col1 * + ( + col1 ) - + col0 * + cor0.col2 AS col1 FROM tab1 cor0
----
-3548
-7511
514
query I rowsort
SELECT - col0 + ( - 29 ) * col2 FROM tab1 AS cor0
----
-1569
-1717
-2864
query I rowsort
SELECT - col0 * ( - ( + col2 ) ) + 39 * + 10 + - col0 FROM tab2 AS cor0
----
2340
3313
572
query I rowsort
SELECT DISTINCT - col0 * cor0.col1 + col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1288
-159
-4517
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4365
SELECT + col2 + - CAST( - 66 AS SIGNED ) FROM tab1 cor0
----
120
123
162
skipif mysql # not compatible
query I rowsort label-4365
SELECT + col2 + - CAST ( - 66 AS INTEGER ) FROM tab1 cor0
----
120
123
162
query I rowsort
SELECT ALL + + col2 * ( - col0 ) FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-4367
SELECT DISTINCT + + col0 + - col0 DIV - col0 + col2 * col2 * + cor0.col1 FROM tab0 AS cor0
----
133
611974
93679
skipif mysql # not compatible
query I rowsort label-4367
SELECT DISTINCT + + col0 + - col0 / - col0 + col2 * col2 * + cor0.col1 FROM tab0 AS cor0
----
133
611974
93679
query I rowsort
SELECT - col0 - - ( col2 ) FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL col2 + cor0.col0 + ( col0 ) FROM tab1 AS cor0
----
185
256
60
query I rowsort
SELECT ALL + - cor0.col1 * + col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + 15 AS col0 FROM tab0 AS cor0
----
15
15
15
query I rowsort
SELECT DISTINCT + - cor0.col1 * - 23 + - col1 AS col2 FROM tab1 AS cor0
----
220
286
572
query I rowsort
SELECT DISTINCT ( col1 ) * + cor0.col1 AS col2 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4374
SELECT CAST( + col1 AS SIGNED ) FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4374
SELECT CAST ( + col1 AS INTEGER ) FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ( col1 ) + col2 * - col0 FROM tab1
----
-136
-3638
-7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-4376
SELECT col0 + + col2 DIV - col0 FROM tab1
----
-15
64
79
skipif mysql # not compatible
query I rowsort label-4376
SELECT col0 + + col2 / - col0 FROM tab1
----
-15
64
79
query I rowsort
SELECT ALL + col1 * col2 * - cor0.col1 FROM tab2 cor0
----
-10982
-25947
-90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-4378
SELECT ALL - col0 DIV + col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL - col0 / + col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT + cor0.col1 * - 40 * col1 FROM tab2 AS cor0
----
-11560
-139240
-38440
query I rowsort
SELECT ALL + - ( cor0.col0 ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - 27 * col1 FROM tab1 AS cor0
----
-270
-351
-702
query I rowsort
SELECT DISTINCT + cor0.col2 * + col1 + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL cor0.col0 * ( - col0 ) - 47 AS col2 FROM tab2 AS cor0
----
-6131
-6288
-96
query I rowsort
SELECT - ( 65 ) AS col2 FROM tab1 cor0
----
-65
-65
-65
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col2 AS REAL ) FROM tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4386
SELECT + CAST( + col2 AS SIGNED ) + col1 AS col0 FROM tab2 AS cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort label-4386
SELECT + CAST ( + col2 AS INTEGER ) + col1 AS col0 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-4387
SELECT DISTINCT - - col2 - + ( col0 ) DIV - col0 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT - - col2 - + ( col0 ) / - col0 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT ALL + + 2 AS col1 FROM tab0 AS cor0
----
2
2
2
query I rowsort
SELECT DISTINCT + col1 * + cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + col1 * col0 + - col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT - 36 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-36
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab2 cor1, tab2 AS cor2
----
3645 values hashing to 1a92b418ae3c05ba566f88a890a407ae
query I rowsort
SELECT - - 89 + + col1 FROM tab0 cor0
----
175
180
186
query I rowsort
SELECT DISTINCT + - col2 + + col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + - 51 AS col1 FROM tab1 cor0
----
-51
-51
-51
query I rowsort
SELECT ALL - col0 * col2 * + col0 AS col0 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT DISTINCT 85 FROM tab2 cor0
----
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * cor0.col0 col2 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4399
SELECT - 20 DIV + col2 FROM tab0 AS cor0
----
-20
0
0
skipif mysql # not compatible
query I rowsort label-4399
SELECT - 20 / + col2 FROM tab0 AS cor0
----
-20
0
0
query I rowsort
SELECT + col1 + - col0 * - col2 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT + tab2.col2 * + col2 * 87 FROM tab2
----
125628
58812
63423
query I rowsort
SELECT - col2 + - 44 AS col1 FROM tab2 AS cor0
----
-70
-71
-82
query I rowsort
SELECT ALL + col2 * col1 + tab1.col2 + col0 FROM tab1
----
1424
1461
691
query I rowsort
SELECT + ( + col0 ) + col2 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT col1 + - 67 AS col0 FROM tab1 AS cor0
----
-41
-54
-57
query I rowsort
SELECT ( 84 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT ALL col0 * 13 FROM tab2
----
1014
1027
91
query I rowsort
SELECT ALL ( col2 + - col1 ) AS col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT ALL 28 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
query I rowsort
SELECT DISTINCT - col0 * 40 AS col0 FROM tab0 AS cor0
----
-1400
-3560
-960
query I rowsort
SELECT DISTINCT + + ( col1 ) + + col1 FROM tab2 AS cor0
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4412
SELECT ALL 84 + + col0 DIV + col1 FROM tab2 cor0
----
84
85
88
skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL 84 + + col0 / + col1 FROM tab2 cor0
----
84
85
88
query I rowsort
SELECT ALL - 43 AS col0 FROM tab0
----
-43
-43
-43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4414
SELECT ALL - + cor0.col0 + ( + col1 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL - + cor0.col0 + ( + col1 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 + col1 col0 FROM tab0 cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-4416
SELECT + col0 + - 59 DIV - col2 - col1 DIV 89 FROM tab0 AS cor0
----
25
88
93
skipif mysql # not compatible
query I rowsort label-4416
SELECT + col0 + - 59 / - col2 - col1 / 89 FROM tab0 AS cor0
----
25
88
93
query I rowsort
SELECT - cor0.col1 * col1 + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-1150
-3291
-5509
query I rowsort
SELECT DISTINCT ( col2 + ( col2 ) ) AS col2 FROM tab0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-4419
SELECT ALL col1 * - col0 + + col1 DIV col0 + tab0.col1 FROM tab0
----
-1975
-3296
-8007
skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL col1 * - col0 + + col1 / col0 + tab0.col1 FROM tab0
----
-1975
-3296
-8007
onlyif mysql # use DIV operator for integer division
query I rowsort label-4420
SELECT ALL - col2 + col1 * - 96 + 71 DIV col1 AS col2 FROM tab2
----
-1666
-3001
-5689
skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL - col2 + col1 * - 96 + 71 / col1 AS col2 FROM tab2
----
-1666
-3001
-5689
onlyif mysql # use DIV operator for integer division
query I rowsort label-4421
SELECT + 0 DIV - col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4421
SELECT + 0 / - col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + 98 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
query I rowsort
SELECT DISTINCT col2 * ( + tab1.col1 ) + - col2 * + col0 - + col1 * + col2 AS col1 FROM tab1
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 + 62 col0 FROM tab1
----
-18
-47
-5
query I rowsort
SELECT ALL - 94 AS col1 FROM tab1
----
-94
-94
-94
query I rowsort
SELECT DISTINCT 74 AS col1 FROM tab0
----
74
query I rowsort
SELECT DISTINCT + ( col0 * col2 ) AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL col2 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + 73 AS col0 FROM tab2
----
73
query I rowsort
SELECT 5 * col1 FROM tab0 AS cor0
----
430
455
485
query I rowsort
SELECT - 44 * col0 AS col2 FROM tab2 AS cor0
----
-308
-3432
-3476
query I rowsort
SELECT DISTINCT + 75 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
75
query I rowsort
SELECT + - col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 * col0 col2 FROM tab1 AS cor0
----
165
3520
4400
query I rowsort
SELECT DISTINCT 0 * - tab0.col0 AS col2 FROM tab0
----
0
query I rowsort
SELECT DISTINCT + tab2.col2 * + cor0.col1 AS col1 FROM tab2, tab0, tab0 AS cor0
----
9 values hashing to 3aa3dc9c06ac75ec040ed5bc20953cf9
query I rowsort
SELECT col2 + - col2 * col2 AS col2 FROM tab1 cor0
----
-2862
-3192
-9120
query I rowsort
SELECT ALL + col2 * + col2 + + cor0.col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT DISTINCT col1 + col0 * 17 FROM tab0 AS cor0
----
1604
494
692
query I rowsort
SELECT + col2 * ( - col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - - cor0.col0 * - col2 * col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-4442
SELECT DISTINCT - + col2 - 32 * col2 DIV col2 AS col2 FROM tab1 AS cor0
----
-128
-86
-89
skipif mysql # not compatible
query I rowsort label-4442
SELECT DISTINCT - + col2 - 32 * col2 / col2 AS col2 FROM tab1 AS cor0
----
-128
-86
-89
query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 + col1 * col1 FROM tab0 AS cor0
----
15579
8188
9444
query I rowsort
SELECT col0 * + ( + col0 ) + + col2 AS col0 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT DISTINCT - + col1 + - 95 * - cor0.col0 FROM tab1 AS cor0
----
259
6070
7587
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4446
SELECT ALL col2 - CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL col2 - CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * + 90 FROM tab0 AS cor0
----
-2160
-3150
-8010
query I rowsort
SELECT 42 * 97 AS col0 FROM tab2 AS cor0
----
4074
4074
4074
onlyif mysql # use DIV operator for integer division
query I rowsort label-4449
SELECT + + ( col1 ) DIV - col0 + + col2 FROM tab0 AS cor0
----
-1
30
81
skipif mysql # not compatible
query I rowsort label-4449
SELECT + + ( col1 ) / - col0 + + col2 FROM tab0 AS cor0
----
-1
30
81
query I rowsort
SELECT + cor0.col1 + col2 AS col0 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ( + col2 ) * col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + 18 * + col0 FROM tab2 AS cor0
----
126
1404
1422
query I rowsort
SELECT ALL 45 * col2 AS col1 FROM tab0 cor0
----
1485
3690
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-4454
SELECT DISTINCT + - 75 * col1 DIV col1 FROM tab0 AS cor0
----
-75
skipif mysql # not compatible
query I rowsort label-4454
SELECT DISTINCT + - 75 * col1 / col1 FROM tab0 AS cor0
----
-75
query I rowsort
SELECT ALL - tab0.col0 * tab0.col2 FROM tab0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 95 + - col2 col2 FROM tab0 AS cor0
----
-3168
-7872
-96
query I rowsort
SELECT - + 9 * - col0 + col1 AS col0 FROM tab2 AS cor0
----
728
761
94
query I rowsort
SELECT - - ( 42 ) FROM tab2 AS cor0
----
42
42
42
query I rowsort
SELECT DISTINCT - col1 + col0 * + col2 AS col0 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT + col1 + cor0.col1 * - 74 AS col1 FROM tab0 AS cor0
----
-6278
-6643
-7081
query I rowsort
SELECT DISTINCT + col0 * cor0.col2 - cor0.col2 * 14 FROM tab1 AS cor0
----
-594
2850
6336
query I rowsort
SELECT - col0 * col1 + col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT + col0 * + col1 * + col1 FROM tab1 AS cor0
----
13520
2028
6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * - col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT 97 FROM tab0, tab1 cor0, tab2 AS cor1
----
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4466
SELECT ALL 73 + + col2 * col1 DIV - CAST( 33 * + col0 AS SIGNED ) FROM tab0
----
70
71
73
skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL 73 + + col2 * col1 / - CAST ( 33 * + col0 AS INTEGER ) FROM tab0
----
70
71
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-4467
SELECT DISTINCT tab1.col2 * col0 DIV - col2 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT tab1.col2 * col0 / - col2 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 * CAST ( col2 AS REAL ) AS col0 FROM tab1
----
2916
3249
9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4469
SELECT col0 * CAST( NULL AS SIGNED ) - 83 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4469
SELECT col0 * CAST ( NULL AS INTEGER ) - 83 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 + + col2 col1 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-4471
SELECT DISTINCT ( + cor0.col1 ) * cor0.col2 + ( - col2 ) DIV cor0.col1 + - 59 FROM tab0 AS cor0
----
2779
38
7403
skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT ( + cor0.col1 ) * cor0.col2 + ( - col2 ) / cor0.col1 + - 59 FROM tab0 AS cor0
----
2779
38
7403
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4472
SELECT ALL - CAST( NULL AS DECIMAL ) / col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL - CAST ( NULL AS REAL ) / col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 99 FROM tab0 AS cor0
----
-99
-99
-99
query I rowsort
SELECT ALL + 27 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT col2 + - col2 * + tab2.col1 AS col0 FROM tab2
----
-1508
-608
-810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4476
SELECT ALL - CAST( col1 AS SIGNED ) * col2 + - col0 AS col1 FROM tab1 AS cor0
----
-1328
-1407
-634
skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL - CAST ( col1 AS INTEGER ) * col2 + - col0 AS col1 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT - - 31 * col2 + col2 FROM tab1 cor0
----
1728
1824
3072
query I rowsort
SELECT DISTINCT + col1 + col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT DISTINCT - 91 * col1 + + col1 AS col1 FROM tab0 AS cor0
----
-7740
-8190
-8730
query I rowsort
SELECT ALL + + 88 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1144
2288
880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + ( - col1 ) col2 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 + ( col2 ) * - ( 8 ) col2 FROM tab1 cor0
----
-514
-538
-850
query I rowsort
SELECT ALL col0 + - 82 AS col1 FROM tab2 AS cor0
----
-3
-4
-75
query I rowsort
SELECT ALL ( col1 ) + ( - col0 ) AS col0 FROM tab0
----
2
62
62
query I rowsort
SELECT DISTINCT tab0.col1 AS col0 FROM tab0, tab2 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - + 36 - col0 AS col2 FROM tab0 AS cor0
----
-125
-60
-71
query I rowsort
SELECT ALL col0 + + col1 * - ( col1 ) + - col1 * col0 * - col0 FROM tab1 AS cor0
----
-439
40924
83111
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 - cor0.col2 col2 FROM tab1 AS cor0
----
-3
-45
-6
query I rowsort
SELECT - + col2 * col1 + col1 * col1 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-246906
-686504
-9506
query I rowsort
SELECT ALL tab1.col1 * + tab1.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775
query I rowsort
SELECT 97 * col0 + + ( + col2 ) FROM tab1 AS cor0
----
345
6265
7856
query I rowsort
SELECT ALL cor0.col0 * - col1 + col1 * col0 + + 9 * 62 FROM tab1 cor0
----
558
558
558
query I rowsort
SELECT DISTINCT + + col1 * + ( - col1 ) * + col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 + ( - col0 ) col2 FROM tab0 cor0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT col2 * col2 + - 72 FROM tab1 AS cor0
----
2844
3177
9144
query I rowsort
SELECT col1 * - col0 + col2 AS col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL col0 * + ( 83 ) AS col0 FROM tab1 AS cor0
----
249
5312
6640
query I rowsort
SELECT ALL col1 + - col0 * col1 * - col0 FROM tab1
----
260
40970
83213
query I rowsort
SELECT ALL + cor0.col2 * col0 + 90 AS col0 FROM tab1 AS cor0
----
252
3738
7770
query I rowsort
SELECT ALL - cor0.col2 * - 41 + - ( col1 ) + col0 AS col2 FROM tab0 cor0
----
-21
1291
3360
query I rowsort
SELECT ALL cor0.col2 + 43 - col2 AS col2 FROM tab1 AS cor0
----
43
43
43
query I rowsort
SELECT - col0 * 40 FROM tab0 AS cor0
----
-1400
-3560
-960
query I rowsort
SELECT ALL ( ( - cor1.col2 ) ) AS col1 FROM tab2, tab0 AS cor0, tab1, tab2 cor1
----
81 values hashing to c569638e8a09ff819458d62ddbde994c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col0 + + col1 + + col0 * + col0 col0 FROM tab2 AS cor0
----
-137
1541
4915
query I rowsort
SELECT DISTINCT col0 * col0 + - col1 * + cor0.col1 FROM tab0 AS cor0
----
-360
-6820
-8184
query I rowsort
SELECT + cor0.col0 * + col0 + col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT ALL col1 * col2 * - ( + col0 ) AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ALL + col2 * 43 FROM tab0 AS cor0
----
1419
3526
43
query I rowsort
SELECT cor0.col0 * 34 + col2 FROM tab0 AS cor0
----
1191
3108
849
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4510
SELECT - CAST( NULL AS SIGNED ) * col2 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4510
SELECT - CAST ( NULL AS INTEGER ) * col2 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + ( + col0 ) + col1 * + col1 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT - + 9 + 70 FROM tab1, tab2 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT + - cor0.col0 + col2 + - col2 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT col1 + - col2 * col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT + + ( col1 ) * + col1 * + ( col0 ) + col0 * + 76 + - col1 AS col0 FROM tab0 AS cor0
----
179242
331878
743682
query I rowsort
SELECT DISTINCT + 36 * col1 FROM tab1 AS cor0
----
360
468
936
onlyif mysql # use DIV operator for integer division
query I rowsort label-4517
SELECT DISTINCT - - cor0.col2 DIV - col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT - - cor0.col2 / - col1 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4518
SELECT DISTINCT - 20 DIV - 33 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT - 20 / - 33 FROM tab1
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + cor0.col2 * + cor0.col0 col0 FROM tab0 AS cor0
----
0
7209
768
onlyif mysql # use DIV operator for integer division
query I rowsort label-4520
SELECT col0 DIV - col1 col1 FROM tab2
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4520
SELECT col0 / - col1 col1 FROM tab2
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - tab0.col2 col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT - col2 + - 25 + 10 FROM tab2 AS cor0
----
-41
-42
-53
query I rowsort
SELECT + cor0.col1 * + ( - 89 ) AS col2 FROM tab0 cor0
----
-7654
-8099
-8633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 * 75 col1 FROM tab1
----
1071
2004
807
query I rowsort
SELECT ALL 39 * col2 FROM tab2
----
1014
1053
1482
query I rowsort
SELECT ALL - col1 + - tab2.col2 * col2 FROM tab2
----
-1461
-735
-760
query I rowsort
SELECT ALL - ( + col2 * - ( tab0.col0 ) ) + + col0 + - 52 FROM tab0
----
18
7335
764
query I rowsort
SELECT + cor0.col2 * + cor0.col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + ( - col1 ) + - 67 FROM tab1 cor0
----
-77
-80
-93
query I rowsort
SELECT 12 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT + 88 * - col2 * col1 FROM tab0 cor0
----
-249744
-656656
-8536
query I rowsort
SELECT cor0.col0 + cor0.col2 * 9 AS col2 FROM tab1 AS cor0
----
489
577
944
query I rowsort
SELECT DISTINCT - - col2 * col2 AS col0 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT + - col2 + - col0 * + 49 * - col2 AS col2 FROM tab0 AS cor0
----
1714
357520
38775
query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT - + col1 * - cor0.col0 * - col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4537
SELECT ALL + col2 + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL + col2 + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - cor0.col2 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - 4 FROM tab2
----
-4
-4
-4
onlyif mysql # use DIV operator for integer division
query I rowsort label-4540
SELECT - 90 DIV col1 + - col0 AS col1 FROM tab0 AS cor0
----
-25
-35
-89
skipif mysql # not compatible
query I rowsort label-4540
SELECT - 90 / col1 + - col0 AS col1 FROM tab0 AS cor0
----
-25
-35
-89
query I rowsort
SELECT ALL 84 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT + col1 + 99 * col1 FROM tab0 AS cor0
----
8600
9100
9700
query I rowsort
SELECT ALL - - cor0.col1 * - 12 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 79010721ce21028df0190e564f85f0c3
query I rowsort
SELECT + col1 * 16 + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-3936
-6192
407
query I rowsort
SELECT DISTINCT 67 FROM tab2, tab2 cor0
----
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-4546
SELECT ALL - cor0.col2 DIV col0 AS col2 FROM tab1 cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL - cor0.col2 / col0 AS col2 FROM tab1 cor0
----
-1
-18
0
query I rowsort
SELECT + 49 + col1 AS col1 FROM tab0 AS cor0
----
135
140
146
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 col0 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT - + col1 + + col1 AS col0 FROM tab1 cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4550
SELECT + CAST( 94 AS SIGNED ) FROM tab1
----
94
94
94
skipif mysql # not compatible
query I rowsort label-4550
SELECT + CAST ( 94 AS INTEGER ) FROM tab1
----
94
94
94
query I rowsort
SELECT DISTINCT - 79 FROM tab1, tab2 AS cor0
----
-79
query I rowsort
SELECT DISTINCT + 73 * ( + col2 ) + + 31 FROM tab2
----
1929
2002
2805
query I rowsort
SELECT - col0 * 44 + col1 FROM tab1
----
-106
-2806
-3507
query I rowsort
SELECT + 5 AS col1 FROM tab0
----
5
5
5
query I rowsort
SELECT col2 - + col0 * - col2 * 29 AS col2 FROM tab2
----
5508
58838
87096
query I rowsort
SELECT + ( + col0 ) + col0 AS col0 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-4557
SELECT DISTINCT - col2 + cor0.col0 DIV - col0 FROM tab2 cor0
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT - col2 + cor0.col0 / - col0 FROM tab2 cor0
----
-27
-28
-39
query I rowsort
SELECT ALL + 91 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
177
182
188
query I rowsort
SELECT DISTINCT col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL + cor1.col1 + - 59 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e4e5d67cc5364aff0321467d279cfda6
query I rowsort
SELECT - - 28 FROM tab0, tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT ALL + + tab0.col2 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL + 34 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
query I rowsort
SELECT ALL - ( col1 ) + + ( 87 ) FROM tab1 AS cor0
----
61
74
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-4566
SELECT - col1 DIV + col0 FROM tab0 cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-4566
SELECT - col1 / + col0 FROM tab0 cor0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 col2 FROM tab0 AS cor0
----
50
50
50
query I rowsort
SELECT ALL + cor0.col1 + cor0.col1 FROM tab1 AS cor0
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 col2 FROM tab1
----
4096
6400
9
query I rowsort
SELECT - col0 + + cor0.col0 * + col0 AS col2 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT ALL + col2 * 51 - - col2 FROM tab2
----
1352
1404
1976
query I rowsort
SELECT + 20 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT col0 * 9 + + col2 FROM tab2
----
728
749
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4574
SELECT DISTINCT + col2 - CAST( - col2 AS SIGNED ) col2 FROM tab0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT + col2 - CAST ( - col2 AS INTEGER ) col2 FROM tab0
----
164
2
66
query I rowsort
SELECT + ( - col1 ) + col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - + col0 + - col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT ALL - ( ( - cor0.col0 ) ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + col0 + - ( + col1 ) AS col1 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT 91 * col2 + - col2 * cor0.col0 FROM tab2 AS cor0
----
2268
338
456
onlyif mysql # use DIV operator for integer division
query I rowsort label-4580
SELECT + ( + 40 ) DIV - col0 FROM tab2 AS cor0
----
-5
0
0
skipif mysql # not compatible
query I rowsort label-4580
SELECT + ( + 40 ) / - col0 FROM tab2 AS cor0
----
-5
0
0
query I rowsort
SELECT DISTINCT 30 + col2 * - col2 FROM tab1 AS cor0
----
-2886
-3219
-9186
query I rowsort
SELECT - col1 + 6 AS col1 FROM tab2 cor0
----
-11
-25
-53
query I rowsort
SELECT - ( - 90 ) + col0 AS col1 FROM tab2 AS cor0
----
168
169
97
query I rowsort
SELECT DISTINCT + col0 * - ( - col0 ) + - col2 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT + + col2 * - 54 + col0 AS col1 FROM tab2 AS cor0
----
-1326
-1451
-1973
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4586
SELECT DISTINCT - CAST( - 2 AS SIGNED ) + - col0 * + col0 FROM tab1 AS cor0
----
-4094
-6398
-7
skipif mysql # not compatible
query I rowsort label-4586
SELECT DISTINCT - CAST ( - 2 AS INTEGER ) + - col0 * + col0 FROM tab1 AS cor0
----
-4094
-6398
-7
query I rowsort
SELECT ALL + - col0 * - col1 AS col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL ( + 4 ) * col0 AS col2 FROM tab2 AS cor0
----
28
312
316
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4589
SELECT + - CAST( NULL AS SIGNED ) + col1 - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4589
SELECT + - CAST ( NULL AS INTEGER ) + col1 - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 16 ) col2 FROM tab2 cor0
----
-16
-16
-16
query I rowsort
SELECT DISTINCT - 20 * - cor0.col1 * col0 FROM tab2 AS cor0
----
26860
4340
92040
query I rowsort
SELECT DISTINCT 1 * 5 AS col0 FROM tab0 AS cor0
----
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4593
SELECT - CAST( + col0 AS SIGNED ) * - cor0.col1 + 34 FROM tab2 AS cor0
----
1377
251
4636
skipif mysql # not compatible
query I rowsort label-4593
SELECT - CAST ( + col0 AS INTEGER ) * - cor0.col1 + 34 FROM tab2 AS cor0
----
1377
251
4636
query I rowsort
SELECT ALL 33 AS col0 FROM tab0 AS cor0
----
33
33
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + 38 col1 FROM tab1 AS cor0
----
48
51
64
query I rowsort
SELECT ALL + - col1 * - 26 FROM tab0 AS cor0
----
2236
2366
2522
query I rowsort
SELECT DISTINCT - col2 * ( - col1 ) + col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT - col1 * - ( col0 ) FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - + col1 * - 48 + - col0 * + col2 AS col1 FROM tab1 AS cor0
----
-3168
-7056
1086
query I rowsort
SELECT DISTINCT col1 * - 75 + + col2 FROM tab1 AS cor0
----
-1896
-693
-879
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + 88 * + col1 + - cor0.col2 * - col0 col2 FROM tab2 cor0
----
2890
4460
7194
query I rowsort
SELECT ALL 41 + col1 FROM tab1
----
51
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-4603
SELECT DISTINCT - - col2 DIV 23 + 73 - col2 FROM tab1 AS cor0
----
-19
18
21
skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT - - col2 / 23 + 73 - col2 FROM tab1 AS cor0
----
-19
18
21
query I rowsort
SELECT col1 * + ( cor0.col0 ) FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + col2 - cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT col1 * + 87 + cor0.col2 FROM tab1 AS cor0
----
1227
2316
927
query I rowsort
SELECT - 16 * - col1 AS col1 FROM tab2 cor0
----
272
496
944
query I rowsort
SELECT + ( - 99 ) AS col1 FROM tab2 AS cor0
----
-99
-99
-99
query I rowsort
SELECT + + ( - 30 ) FROM tab1 AS cor0
----
-30
-30
-30
onlyif mysql # use DIV operator for integer division
query I rowsort label-4610
SELECT + col1 - - col0 DIV + tab2.col1 AS col2 FROM tab2
----
21
31
60
skipif mysql # not compatible
query I rowsort label-4610
SELECT + col1 - - col0 / + tab2.col1 AS col2 FROM tab2
----
21
31
60
query I rowsort
SELECT col2 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + col0 * - ( cor0.col1 ) + ( col0 ) AS col1 FROM tab2 cor0
----
-1264
-210
-4524
query I rowsort
SELECT - ( - 47 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 + col0 col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + + col1 + cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT + + col0 * + col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + 76 * col2 * col1 - col0 * - col0 FROM tab1 AS cor0
----
101248
106713
47416
query I rowsort
SELECT ALL + 93 * + col2 FROM tab0 AS cor0
----
3069
7626
93
query I rowsort
SELECT DISTINCT + cor0.col2 + + col1 * + col2 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4620
SELECT - 4 * col2 + - CAST( NULL AS SIGNED ) + + 82 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4620
SELECT - 4 * col2 + - CAST ( NULL AS INTEGER ) + + 82 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col1 + col2 + - col0 * - 96 FROM tab0 AS cor0
----
2251
3264
8535
query I rowsort
SELECT DISTINCT + + col0 * col1 * col2 AS col0 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-4623
SELECT col0 DIV ( col0 ) + col1 * - col2 FROM tab0
----
-2837
-7461
-96
skipif mysql # not compatible
query I rowsort label-4623
SELECT col0 / ( col0 ) + col1 * - col2 FROM tab0
----
-2837
-7461
-96
query I rowsort
SELECT DISTINCT - col1 + + col2 AS col1 FROM tab1
----
28
47
83
query I rowsort
SELECT - col2 * + col1 AS col0 FROM tab0 cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * - col1 col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT - + cor0.col2 + + col1 * + col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT cor0.col2 - col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL 24 * + col2 * ( col2 ) AS col0 FROM tab1 AS cor0
----
221184
69984
77976
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 col0 FROM tab1 AS cor0
----
80
query I rowsort
SELECT tab0.col1 AS col2 FROM tab0, tab1 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + cor0.col0 col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT 47 + col0 * - col2 + col0 * - col1 FROM tab2
----
-359
-4298
-6583
onlyif mysql # use DIV operator for integer division
query I rowsort label-4634
SELECT col1 * + col0 + + col0 DIV - 27 FROM tab0
----
2064
3394
8096
skipif mysql # not compatible
query I rowsort label-4634
SELECT col1 * + col0 + + col0 / - 27 FROM tab0
----
2064
3394
8096
query I rowsort
SELECT ALL 79 * + col2 + ( - 84 ) FROM tab2
----
1970
2049
2918
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 45 col0 FROM tab2 AS cor0
----
71
72
83
query I rowsort
SELECT + + col0 - 97 FROM tab0 AS cor0
----
-62
-73
-8
query I rowsort
SELECT DISTINCT 18 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
18
query I rowsort
SELECT - 47 AS col1 FROM tab2
----
-47
-47
-47
query I rowsort
SELECT + 28 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + col2 * - col0 col0 FROM tab0 AS cor0
----
1225
19008
649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 63 col1 FROM tab0 AS cor0
----
-1512
-2205
-5607
query I rowsort
SELECT - col0 * - 20 + col1 AS col2 FROM tab2 AS cor0
----
1597
1619
171
query I rowsort
SELECT - col2 + - 31 AS col1 FROM tab2 AS cor0
----
-57
-58
-69
query I rowsort
SELECT - 57 + + cor0.col2 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to c1d8c77b0e6bc9ad17ff454238300856
query I rowsort
SELECT ( - cor0.col2 ) FROM tab1, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 + - col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT + + 8 AS col1 FROM tab2 AS cor0
----
8
8
8
query I rowsort
SELECT ALL - 17 * cor0.col1 - - col0 AS col1 FROM tab1 AS cor0
----
-106
-141
-439
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 3 * col0 + - col0 col1 FROM tab2 AS cor0
----
-28
-312
-316
query I rowsort
SELECT ALL + cor0.col1 * + col1 - col1 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT DISTINCT - - col2 * col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT 8 AS col2 FROM tab2 cor0
----
8
8
8
query I rowsort
SELECT ALL - ( 70 ) AS col0 FROM tab1 AS cor0
----
-70
-70
-70
query I rowsort
SELECT DISTINCT - - col2 + col0 * col1 AS col2 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-4656
SELECT ALL - col1 * 23 DIV + col0 + 14 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-3
1075
1102
skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL - col1 * 23 / + col0 + 14 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-3
1075
1102
query I rowsort
SELECT ALL col0 * 9 FROM tab2 AS cor0
----
63
702
711
query I rowsort
SELECT - ( 76 ) FROM tab2 AS cor0
----
-76
-76
-76
query I rowsort
SELECT DISTINCT col0 - - col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + 27 + 27 AS col0 FROM tab0
----
54
54
54
query I rowsort
SELECT + 65 * - col0 AS col1 FROM tab2 AS cor0
----
-455
-5070
-5135
onlyif mysql # use DIV operator for integer division
query I rowsort label-4662
SELECT + col0 + cor0.col2 DIV col0 FROM tab1 AS cor0
----
21
64
81
skipif mysql # not compatible
query I rowsort label-4662
SELECT + col0 + cor0.col2 / col0 FROM tab1 AS cor0
----
21
64
81
query I rowsort
SELECT + + col0 * 3 + - ( - col0 ) * ( + cor0.col2 ) AS col2 FROM tab0 cor0
----
140
7565
864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4664
SELECT cor0.col2 * ( + 0 ) + + col2 * - CAST( cor0.col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4664
SELECT cor0.col2 * ( + 0 ) + + col2 * - CAST ( cor0.col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to e6082e644debd74dcf1042b918d79199
query I rowsort
SELECT DISTINCT ( 24 ) + + cor0.col1 AS col1 FROM tab2 AS cor0
----
41
55
83
query I rowsort
SELECT - ( + 99 ) + cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to c262a8e7424650abcb1b0f544cdb122a
query I rowsort
SELECT ALL 47 * col0 + - col2 AS col2 FROM tab2 AS cor0
----
302
3640
3675
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4669
SELECT 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-4669
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 + ( + col1 ) * + col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + col2 * - col1 * + ( col1 ) FROM tab0 cor0
----
-244068
-679042
-9409
query I rowsort
SELECT 46 * - col1 + 28 AS col0 FROM tab1 AS cor0
----
-1168
-432
-570
query I rowsort
SELECT DISTINCT + col2 * col1 - tab1.col0 FROM tab1
----
1168
1401
506
query I rowsort
SELECT DISTINCT col0 + col0 * tab1.col0 - col1 AS col2 FROM tab1
----
-14
4150
6467
query I rowsort
SELECT - col1 + + col1 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT 93 AS col1 FROM tab2 AS cor0
----
93
93
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4677
SELECT ALL + col2 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL + col2 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
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-4679
SELECT - col2 DIV - col2 + + 6 FROM tab1 AS cor0
----
7
7
7
skipif mysql # not compatible
query I rowsort label-4679
SELECT - col2 / - col2 + + 6 FROM tab1 AS cor0
----
7
7
7
query I rowsort
SELECT cor0.col0 + cor0.col1 * 51 AS col2 FROM tab0 AS cor0
----
4410
4730
4982
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + 5 col0 FROM tab1 AS cor0
----
-15
-320
-400
query I rowsort
SELECT DISTINCT + 67 * + cor0.col2 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
3618
3819
6432
query I rowsort
SELECT - tab1.col0 * - col1 AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT - col0 + col0 + - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - + col0 * - col1 + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4686
SELECT + col0 + col0 * - col1 / - col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4686
SELECT + col0 + col0 * - col1 / - col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * ( cor0.col1 * col2 ) AS col1 FROM tab0 AS cor0
----
3395
664118
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 * + col1 col1 FROM tab2
----
-1534
-442
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-4689
SELECT - col2 DIV - col0 AS col2 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-4689
SELECT - col2 / - col0 AS col2 FROM tab2
----
0
0
3
query I rowsort
SELECT DISTINCT - col2 * 76 AS col1 FROM tab2 AS cor0
----
-1976
-2052
-2888
onlyif mysql # use DIV operator for integer division
query I rowsort label-4691
SELECT ALL - col1 + 39 DIV col2 AS col1 FROM tab0 AS cor0
----
-58
-85
-91
skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL - col1 + 39 / col2 AS col1 FROM tab0 AS cor0
----
-58
-85
-91
query I rowsort
SELECT - col0 + + 81 * + col0 FROM tab2 AS cor0
----
560
6240
6320
query I rowsort
SELECT DISTINCT 45 FROM tab2, tab1 cor0, tab2 AS cor1
----
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4694
SELECT col2 * CAST( NULL AS SIGNED ) - - 64 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4694
SELECT col2 * CAST ( NULL AS INTEGER ) - - 64 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( - cor0.col0 ) * col0 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 + 41 col0 FROM tab0 AS cor0
----
-48
17
6
query I rowsort
SELECT ALL - - 48 FROM tab2 AS cor0
----
48
48
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 + col1 col1 FROM tab2
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-4699
SELECT DISTINCT - col2 + col2 DIV tab2.col0 AS col1 FROM tab2
----
-24
-26
-38
skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT - col2 + col2 / tab2.col0 AS col1 FROM tab2
----
-24
-26
-38
query I rowsort
SELECT DISTINCT - col1 * - 25 + 4 FROM tab0
----
2154
2279
2429
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4701
SELECT DISTINCT col0 + - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT col0 + - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - 42 * + tab1.col1 AS col1 FROM tab1
----
-1092
-420
-546
onlyif mysql # use DIV operator for integer division
query I rowsort label-4703
SELECT DISTINCT - 73 DIV + col1 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
13
29
58
skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT - 73 / + col1 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
13
29
58
query I rowsort
SELECT DISTINCT - col1 * - col0 + 52 AS col2 FROM tab1 AS cor0
----
1092
130
692
query I rowsort
SELECT ALL - + 92 * + col0 FROM tab0 AS cor0
----
-2208
-3220
-8188
query I rowsort
SELECT DISTINCT - + col1 * col1 + - 65 + + 73 FROM tab0 AS cor0
----
-7388
-8273
-9401
query I rowsort
SELECT DISTINCT - - ( + col2 ) + - col2 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + + cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 64 + - col2 col0 FROM tab2
----
-1126
-2011
-3802
query I rowsort
SELECT DISTINCT + 76 FROM tab1, tab2 AS cor0
----
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-4711
SELECT 8 DIV + col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4711
SELECT 8 / + col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT col0 + - col1 * col1 + + 52 * - col0 AS col0 FROM tab0 AS cor0
----
-11194
-12820
-8620
query I rowsort
SELECT DISTINCT tab1.col0 - + col0 * tab1.col1 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT DISTINCT + - 55 * + col1 AS col2 FROM tab2 AS cor0
----
-1705
-3245
-935
query I rowsort
SELECT + - col0 - - cor0.col0 * col1 FROM tab0 cor0
----
2040
3360
8010
query I rowsort
SELECT + col2 + + col1 * col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT col2 * - col2 + 46 AS col1 FROM tab2 cor0
----
-1398
-630
-683
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 82 + cor0.col0 col2 FROM tab0 AS cor0
----
106
117
171
query I rowsort
SELECT + + 91 FROM tab0 cor0
----
91
91
91
query I rowsort
SELECT ALL - cor0.col2 * + col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT cor0.col1 * col0 + + 93 * + 34 + col1 AS col0 FROM tab0 AS cor0
----
11352
5312
6654
query I rowsort
SELECT 85 * + col1 AS col0 FROM tab2
----
1445
2635
5015
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4723
SELECT CAST( + col1 + col1 AS SIGNED ) FROM tab1
----
20
26
52
skipif mysql # not compatible
query I rowsort label-4723
SELECT CAST ( + col1 + col1 AS INTEGER ) FROM tab1
----
20
26
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4724
SELECT DISTINCT - CAST( - 30 AS SIGNED ) FROM tab0
----
30
skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT - CAST ( - 30 AS INTEGER ) FROM tab0
----
30
query I rowsort
SELECT + col0 + + col2 * + col1 AS col2 FROM tab2
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-4726
SELECT - col0 DIV col2 + col2 FROM tab1 AS cor0
----
54
56
96
skipif mysql # not compatible
query I rowsort label-4726
SELECT - col0 / col2 + col2 FROM tab1 AS cor0
----
54
56
96
query I rowsort
SELECT ALL + - col0 * + col1 * + col1 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT - col2 * 96 AS col0 FROM tab0 cor0
----
-3168
-7872
-96
query I rowsort
SELECT - - 79 + ( col1 ) AS col0 FROM tab0 AS cor0
----
165
170
176
query I rowsort
SELECT DISTINCT - ( - 71 ) FROM tab0 AS cor0
----
71
query I rowsort
SELECT - + cor0.col2 + + 61 FROM tab2 AS cor0
----
23
34
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * + 64 + + cor0.col0 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c519f634e4b785401cf7000ec0c422b1
query I rowsort
SELECT ALL col1 * - cor0.col0 + col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT ALL - cor0.col1 + - cor0.col2 FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-4735
SELECT DISTINCT - + 30 DIV cor0.col2 + + col0 AS col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4735
SELECT DISTINCT - + 30 / cor0.col2 + + col0 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - - col1 - - cor0.col2 * - 1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT ALL + 48 * - col2 - - col2 AS col0 FROM tab2 AS cor0
----
-1222
-1269
-1786
query I rowsort
SELECT ALL - - 81 + + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-19
-595
-88
query I rowsort
SELECT DISTINCT - tab0.col2 * 95 + + col0 AS col2 FROM tab0
----
-3111
-60
-7701
query I rowsort
SELECT - col2 + 66 + + col0 AS col0 FROM tab2
----
107
118
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-4741
SELECT + col0 + col1 * col2 DIV col2 FROM tab1
----
29
74
93
skipif mysql # not compatible
query I rowsort label-4741
SELECT + col0 + col1 * col2 / col2 FROM tab1
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col1 FROM tab0 cor0
----
-50
-50
-50
query I rowsort
SELECT ALL + col0 * 65 AS col0 FROM tab0 AS cor0
----
1560
2275
5785
query I rowsort
SELECT DISTINCT cor0.col0 + - col1 * 43 AS col1 FROM tab0 AS cor0
----
-3674
-3824
-4136
query I rowsort
SELECT - + col2 * - 36 FROM tab2 AS cor0
----
1368
936
972
query I rowsort
SELECT ALL - cor0.col1 - col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL + col2 * 6 * col2 AS col1 FROM tab1 cor0
----
17496
19494
55296
onlyif mysql # use DIV operator for integer division
query I rowsort label-4748
SELECT + col0 DIV - ( col2 ) AS col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4748
SELECT + col0 / - ( col2 ) AS col2 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT - col2 + 17 AS col0 FROM tab1 AS cor0
----
-37
-40
-79
query I rowsort
SELECT DISTINCT col0 * - ( ( cor0.col1 ) ) * col1 AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL + col1 + - 7 AS col0 FROM tab0 AS cor0
----
79
84
90
query I rowsort
SELECT - 94 AS col0 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * 23 col2 FROM tab1 AS cor0
----
1472
1840
69
query I rowsort
SELECT ALL + cor0.col1 + 6 AS col0 FROM tab2 AS cor0
----
23
37
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4755
SELECT - col0 * + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-4755
SELECT - col0 * + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4756
SELECT DISTINCT - col2 DIV ( - ( col1 ) * 43 ) FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT - col2 / ( - ( col1 ) * 43 ) FROM tab0 AS cor0
----
0
query I rowsort
SELECT + col1 + + 34 * 16 FROM tab0 AS cor0
----
630
635
641
query I rowsort
SELECT - - 89 * col1 + col1 FROM tab1 AS cor0
----
1170
2340
900
query I rowsort
SELECT - - 51 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4760
SELECT - + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4760
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-4761
SELECT - CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4761
SELECT - CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 85 FROM tab0 cor0
----
85
85
85
query I rowsort
SELECT - col1 + + 90 AS col0 FROM tab1 AS cor0
----
64
77
80
query I rowsort
SELECT - col1 + + 95 AS col0 FROM tab1
----
69
82
85
query I rowsort
SELECT DISTINCT + tab1.col0 * - cor0.col0 FROM tab1, tab1 AS cor0
----
-192
-240
-4096
-5120
-6400
-9
query I rowsort
SELECT ALL col1 * ( col2 ) FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-4767
SELECT 49 DIV - tab2.col0 AS col1 FROM tab2
----
-7
0
0
skipif mysql # not compatible
query I rowsort label-4767
SELECT 49 / - tab2.col0 AS col1 FROM tab2
----
-7
0
0
query I rowsort
SELECT ALL - col2 + + col2 + col2 FROM tab0
----
1
33
82
query I rowsort
SELECT cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT - col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4771
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + 90 * - col0 * + col1 FROM tab0 AS cor0
----
-185760
-305550
-728910
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4775
SELECT + CAST( + 38 AS SIGNED ) AS col1 FROM tab2
----
38
38
38
skipif mysql # not compatible
query I rowsort label-4775
SELECT + CAST ( + 38 AS INTEGER ) AS col1 FROM tab2
----
38
38
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4776
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4776
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * 94 col0 FROM tab2 AS cor0
----
2444
2538
3572
query I rowsort
SELECT DISTINCT 42 + - col1 FROM tab2 AS cor0
----
-17
11
25
query I rowsort
SELECT + - 6 + col0 * 5 FROM tab0 cor0
----
114
169
439
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + col2 * col1 col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT cor1.col1 + cor0.col0 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to 9e80342b0a7307a07b878360e2c0c5a4
query I rowsort
SELECT DISTINCT col2 * col1 + col1 AS col0 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL - col2 * 88 FROM tab2 AS cor0
----
-2288
-2376
-3344
query I rowsort
SELECT DISTINCT + 78 - 26 AS col2 FROM tab2, tab0 AS cor0
----
52
query I rowsort
SELECT ALL col2 * 60 AS col2 FROM tab0 AS cor0
----
1980
4920
60
query I rowsort
SELECT - 88 AS col2 FROM tab0 AS cor0
----
-88
-88
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-4787
SELECT ALL + ( - col2 ) DIV + 52 col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL + ( - col2 ) / + 52 col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + 89 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
623
6942
7031
query I rowsort
SELECT DISTINCT + col1 * col1 + + col1 * + 58 + - col0 FROM tab1 cor0
----
2181
616
843
query I rowsort
SELECT DISTINCT - + ( cor0.col0 ) * + col1 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4791
SELECT + 62 DIV + col0 FROM tab2
----
0
0
8
skipif mysql # not compatible
query I rowsort label-4791
SELECT + 62 / + col0 FROM tab2
----
0
0
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4792
SELECT + col0 + col0 + + CAST( NULL AS SIGNED ) * cor0.col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4792
SELECT + col0 + col0 + + CAST ( NULL AS INTEGER ) * cor0.col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4793
SELECT + 62 DIV col0 FROM tab1 AS cor0
----
0
0
20
skipif mysql # not compatible
query I rowsort label-4793
SELECT + 62 / col0 FROM tab1 AS cor0
----
0
0
20
query I rowsort
SELECT DISTINCT + + cor0.col2 + col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT + cor0.col0 * col2 * + cor0.col1 + + cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
3431
664289
68169
query I rowsort
SELECT ALL ( + cor0.col0 ) * - 96 AS col1 FROM tab0 AS cor0
----
-2304
-3360
-8544
query I rowsort
SELECT col2 + cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
111
178
272
query I rowsort
SELECT ALL 87 AS col0 FROM tab0 AS cor0
----
87
87
87
query I rowsort
SELECT 70 * - 72 FROM tab0
----
-5040
-5040
-5040
query I rowsort
SELECT ALL 78 + col2 * - col1 - tab0.col0 AS col1 FROM tab0
----
-2784
-54
-7473
query I rowsort
SELECT ALL - 47 + col0 * + col0 * + tab1.col1 - + col0 * col0 FROM tab1
----
178
36817
76753
query I rowsort
SELECT DISTINCT - ( col0 ) - + col1 AS col0 FROM tab1
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4803
SELECT ALL - CAST( - col2 AS SIGNED ) * col1 AS col2 FROM tab0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL - CAST ( - col2 AS INTEGER ) * col1 AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL + 2 + - col2 FROM tab1
----
-52
-55
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-4805
SELECT ALL tab1.col2 DIV tab1.col1 + + ( + 89 ) AS col2 FROM tab1
----
91
94
96
skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL tab1.col2 / tab1.col1 + + ( + 89 ) AS col2 FROM tab1
----
91
94
96
query I rowsort
SELECT - 81 + + col0 FROM tab2 cor0
----
-2
-3
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-4807
SELECT - - 26 DIV col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4807
SELECT - - 26 / col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT cor0.col0 * - cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-2064
-3395
-8099
query I rowsort
SELECT + + col0 + col1 AS col0 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4810
SELECT + CAST( col0 AS SIGNED ) FROM tab1 cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4810
SELECT + CAST ( col0 AS INTEGER ) FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + 61 FROM tab1, tab1 AS cor0
----
61
query I rowsort
SELECT 91 * cor0.col0 + col1 + ( col2 * + col0 ) AS col0 FROM tab1 AS cor0
----
14973
461
9482
query I rowsort
SELECT ALL + 53 AS col1 FROM tab0 AS cor0
----
53
53
53
query I rowsort
SELECT ALL + - ( cor0.col2 ) + + cor0.col0 AS col2 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT 18 * - col2 + - col2 + col2 * 79 * + col0 FROM tab0 AS cor0
----
2746
574984
61941
query I rowsort
SELECT DISTINCT 53 FROM tab2, tab2 AS cor0
----
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-4817
SELECT - ( tab2.col2 ) DIV + col0 FROM tab2
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-4817
SELECT - ( tab2.col2 ) / + col0 FROM tab2
----
-3
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + col0 col0 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-4819
SELECT DISTINCT - col0 * 8 + + col1 DIV 48 FROM tab0 AS cor0
----
-191
-278
-711
skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT - col0 * 8 + + col1 / 48 FROM tab0 AS cor0
----
-191
-278
-711
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4820
SELECT ALL - - CAST( NULL AS SIGNED ) * cor0.col1 - - col1 / col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL - - CAST ( NULL AS INTEGER ) * cor0.col1 - - col1 / col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4822
SELECT DISTINCT - col1 DIV + cor0.col0 + + col1 FROM tab2 AS cor0
----
17
27
59
skipif mysql # not compatible
query I rowsort label-4822
SELECT DISTINCT - col1 / + cor0.col0 + + col1 FROM tab2 AS cor0
----
17
27
59
query I rowsort
SELECT DISTINCT ( + cor0.col2 ) * - col2 AS col0 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT cor0.col2 + + 32 + cor0.col0 * col1 FROM tab0 AS cor0
----
2129
3428
8213
query I rowsort
SELECT - - 42 AS col1 FROM tab2 AS cor0
----
42
42
42
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4826
SELECT - - col1 * + col0 + CAST( - col0 AS SIGNED ) * + col1 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4826
SELECT - - col1 * + col0 + CAST ( - col0 AS INTEGER ) * + col1 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 * + cor0.col2 + 56 AS col0 FROM tab0 AS cor0
----
153
2894
7518
onlyif mysql # use DIV operator for integer division
query I rowsort label-4828
SELECT DISTINCT - + 98 DIV - col1 + cor0.col2 * col0 AS col1 FROM tab0 cor0
----
36
7299
793
skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT - + 98 / - col1 + cor0.col2 * col0 AS col1 FROM tab0 cor0
----
36
7299
793
query I rowsort
SELECT ALL - + 63 + + col0 FROM tab0 AS cor0
----
-28
-39
26
query I rowsort
SELECT DISTINCT - 56 + + col2 FROM tab2 AS cor0
----
-18
-29
-30
query I rowsort
SELECT DISTINCT - col0 * - 38 - + col2 FROM tab2
----
239
2938
2964
query I rowsort
SELECT 90 + 57 - col0 * col0 AS col1 FROM tab1
----
-3949
-6253
138
query I rowsort
SELECT DISTINCT 10 - + col1 FROM tab2
----
-21
-49
-7
query I rowsort
SELECT DISTINCT col0 * + col2 * col0 + col0 AS col0 FROM tab0 AS cor0
----
1260
19032
649611
onlyif mysql # use DIV operator for integer division
query I rowsort label-4835
SELECT - 32 DIV col0 + - col2 * - col2 AS col2 FROM tab2 AS cor0
----
1444
676
725
skipif mysql # not compatible
query I rowsort label-4835
SELECT - 32 / col0 + - col2 * - col2 AS col2 FROM tab2 AS cor0
----
1444
676
725
query I rowsort
SELECT DISTINCT + col0 * col0 + + 26 FROM tab2 AS cor0
----
6110
6267
75
query I rowsort
SELECT ALL - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT col1 + 1 * - tab0.col1 + 17 AS col1 FROM tab0
----
17
17
17
query I rowsort
SELECT - 73 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2931474b870c05694e446771031a6949
query I rowsort
SELECT ALL - - col1 * + ( col2 ) + - col0 FROM tab0 cor0
----
2814
62
7373
query I rowsort
SELECT ALL - 95 * cor1.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d99275aca7bcb7f15d8a190e4938f93b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4842
SELECT + - col0 * CAST( NULL AS DECIMAL ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4842
SELECT + - col0 * CAST ( NULL AS REAL ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4843
SELECT + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4843
SELECT + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( + 64 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e
query I rowsort
SELECT DISTINCT + + col1 * col2 - - col0 FROM tab1 AS cor0
----
1328
1407
634
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - 97 AS REAL ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b
query I rowsort
SELECT - col2 * + ( cor0.col2 ) + + col2 AS col1 FROM tab0 cor0
----
-1056
-6642
0
query I rowsort
SELECT DISTINCT col2 * - 46 + + ( col2 ) AS col1 FROM tab2 AS cor0
----
-1170
-1215
-1710
query I rowsort
SELECT ALL - - col2 - + 51 FROM tab2 AS cor0
----
-13
-24
-25
query I rowsort
SELECT - - 81 * col2 AS col2 FROM tab0 AS cor0
----
2673
6642
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4851
SELECT ALL - CAST( NULL AS SIGNED ) - 11 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL - CAST ( NULL AS INTEGER ) - 11 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4852
SELECT ALL + col0 DIV - col0 + cor0.col2 FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL + col0 / - col0 + cor0.col2 FROM tab2 AS cor0
----
25
26
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-4853
SELECT DISTINCT + col0 DIV 73 AS col0 FROM tab0 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT + col0 / 73 AS col0 FROM tab0 cor0
----
0
1
query I rowsort
SELECT 37 * cor0.col0 FROM tab2 AS cor0
----
259
2886
2923
query I rowsort
SELECT ALL - ( - col1 ) * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4856
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4856
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + 91 FROM tab2
----
108
122
150
query I rowsort
SELECT + col2 + - ( + col1 + - col0 ) * col0 FROM tab2
----
-141
1508
4936
onlyif mysql # use DIV operator for integer division
query I rowsort label-4859
SELECT - + col2 + 71 DIV col0 col1 FROM tab1 AS cor0
----
-31
-56
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4859
SELECT - + col2 + 71 / col0 col1 FROM tab1 AS cor0
----
-31
-56
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4860
SELECT ALL col2 * + col2 DIV + ( - col2 ) AS col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL col2 * + col2 / + ( - col2 ) AS col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - 66 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-66
query I rowsort
SELECT ALL - tab0.col1 * col0 * - col2 AS col0 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT + col1 * + 18 AS col0 FROM tab2
----
1062
306
558
query I rowsort
SELECT - cor0.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT - tab2.col0 + ( 31 ) + - col0 * col2 AS col0 FROM tab2
----
-165
-2075
-3050
query I rowsort
SELECT - - col1 * ( col1 ) FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + - col1 + col0 * + 32 FROM tab1 AS cor0
----
2038
2547
70
query I rowsort
SELECT DISTINCT + + 57 FROM tab1, tab0 AS cor0
----
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4869
SELECT DISTINCT + CAST( 87 AS SIGNED ) col2 FROM tab1
----
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4869
SELECT DISTINCT + CAST ( 87 AS INTEGER ) col2 FROM tab1
----
87
query I rowsort
SELECT DISTINCT col1 * - ( col0 * 23 ) + 20 + col2 AS col0 FROM tab2 AS cor0
----
-105800
-30831
-4944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4871
SELECT + CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4871
SELECT + CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 40 * 59 + col2 + + col2 AS col2 FROM tab0 AS cor0
----
2362
2426
2524
query I rowsort
SELECT DISTINCT + 20 + - col0 FROM tab2 AS cor0
----
-58
-59
13
query I rowsort
SELECT ALL - col1 * ( col1 ) + + 69 AS col1 FROM tab1 AS cor0
----
-100
-31
-607
query I rowsort
SELECT 70 * col2 + + col1 AS col2 FROM tab0 AS cor0
----
167
2396
5831
query I rowsort
SELECT ALL ( 8 ) AS col2 FROM tab0
----
8
8
8
query I rowsort
SELECT + 14 FROM tab0, tab0 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT ALL 76 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT ALL + col0 * - col0 + + col2 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839
onlyif mysql # use DIV operator for integer division
query I rowsort label-4880
SELECT DISTINCT cor0.col0 + cor0.col1 DIV + ( col0 ) col1 FROM tab0 AS cor0
----
27
37
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT cor0.col0 + cor0.col1 / + ( col0 ) col1 FROM tab0 AS cor0
----
27
37
90
query I rowsort
SELECT ALL + - 88 - - col2 FROM tab1 AS cor0
----
-31
-34
8
query I rowsort
SELECT + - 50 AS col2 FROM tab0 AS cor0
----
-50
-50
-50
query I rowsort
SELECT DISTINCT 76 * + col1 FROM tab0 AS cor0
----
6536
6916
7372
query I rowsort
SELECT ALL col2 + + cor0.col1 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL + col2 + col2 * col1 AS col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT - + ( - cor0.col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 95 col2 FROM tab2 AS cor0
----
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - + col2 + col2 * ( cor0.col2 * - col2 ) FROM tab1 AS cor0
----
-157518
-185250
-884832
query I rowsort
SELECT - col1 * - col2 + col0 FROM tab1
----
1328
1407
634
query I rowsort
SELECT + 37 + + cor0.col0 * cor0.col1 AS col2 FROM tab0 cor0
----
2101
3432
8136
query I rowsort
SELECT + cor0.col2 * - col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT - 69 + 82 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
query I rowsort
SELECT + + cor0.col1 + + col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + col2 * + tab1.col0 * col0 AS col1 FROM tab1
----
233472
486
614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * col1 col1 FROM tab2
----
1615
2945
5605
query I rowsort
SELECT + col2 * ( col0 ) * col0 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT DISTINCT col0 + - 65 FROM tab2 AS cor0
----
-58
13
14
query I rowsort
SELECT - col0 * - col0 * - cor0.col1 + 29 * col2 + col0 FROM tab1 cor0
----
-39243
-80336
1335
query I rowsort
SELECT - - ( - cor0.col0 ) * - cor0.col0 * col0 FROM tab2 AS cor0
----
343
474552
493039
query I rowsort
SELECT DISTINCT - 5 AS col2 FROM tab2 AS cor0
----
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-4902
SELECT - col1 * + col2 + col1 DIV 90 + col0 AS col0 FROM tab2 cor0
----
-1456
-567
-830
skipif mysql # not compatible
query I rowsort label-4902
SELECT - col1 * + col2 + col1 / 90 + col0 AS col0 FROM tab2 cor0
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-4903
SELECT col0 DIV col0 + - tab2.col1 + col0 AS col2 FROM tab2
----
-23
20
63
skipif mysql # not compatible
query I rowsort label-4903
SELECT col0 / col0 + - tab2.col1 + col0 AS col2 FROM tab2
----
-23
20
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + tab1.col2 + - tab1.col2 col2 FROM tab1
----
1152
1350
513
query I rowsort
SELECT - ( col2 ) * + col1 * - col1 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT ( ( + col1 ) ) AS col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT - col1 * + ( + col0 ) * col1 + - col2 FROM tab2 AS cor0
----
-22869
-271544
-6754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + 59 col0 FROM tab1 AS cor0
----
-21
-5
56
query I rowsort
SELECT DISTINCT - tab2.col1 * tab2.col0 + 61 FROM tab2
----
-1282
-156
-4541
query I rowsort
SELECT + 46 * + col1 + cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
10910
4463
5045
onlyif mysql # use DIV operator for integer division
query I rowsort label-4911
SELECT col0 * 37 + + col0 DIV + col1 FROM tab0 cor0
----
1295
3293
888
skipif mysql # not compatible
query I rowsort label-4911
SELECT col0 * 37 + + col0 / + col1 FROM tab0 cor0
----
1295
3293
888
query I rowsort
SELECT col1 + col2 + cor0.col1 FROM tab2 cor0
----
144
72
89
query I rowsort
SELECT 48 AS col2 FROM tab1
----
48
48
48
query I rowsort
SELECT + 29 + + tab2.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to dbe9568af418b093bdac916342387890
query I rowsort
SELECT + col0 + col1 + - col2 AS col1 FROM tab1
----
-25
-3
17
query I rowsort
SELECT ALL col1 * + col0 * - col1 AS col2 FROM tab0
----
-177504
-329315
-737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col2 col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT + tab0.col2 * - col1 * + col1 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT DISTINCT col2 * col1 * - tab0.col0 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT - col2 + + col0 + + col0 * col0 FROM tab0
----
1259
567
7928
query I rowsort
SELECT DISTINCT col0 * - col1 * col1 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT DISTINCT col1 + + tab2.col1 + col0 AS col0 FROM tab2
----
113
196
69
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 BETWEEN NULL AND ( + col2 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 * col1 ) NOT BETWEEN col1 AND + col0 * col0
----
7
31
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-4925
SELECT - col2 DIV + col1 + col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-4925
SELECT - col2 / + col1 + col1 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4926
SELECT DISTINCT + col2 + + col2 DIV col2 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT + col2 + + col2 / col2 FROM tab0
----
2
34
83
query I rowsort
SELECT col1 * - col2 + col0 AS col0 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT - col0 + - tab2.col1 AS col2 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT col0 / tab1.col2 + col1 * - col1 + col0 * + col2 AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT col0 + + col1 + + col0 AS col0 FROM tab2 AS cor0
----
175
215
45
query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 - col2 / + col2 < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4932
SELECT col1 * col2 DIV + col2 col1 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4932
SELECT col1 * col2 / + col2 col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL col0 + + col0 + col0 * + col2 * + col0 FROM tab1
----
233600
492
614560
query I rowsort
SELECT col0 * + col1 * + col1 AS col0 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT DISTINCT - col0 * + col1 + col1 + col0 * col0 AS col1 FROM tab2
----
-137
1541
4915
query I rowsort
SELECT tab2.col1 + col0 * + col1 FROM tab2
----
1360
248
4661
query I rowsort
SELECT - col1 * - col0 * col1 AS col1 FROM tab0
----
177504
329315
737009
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( tab2.col1 * - col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4939
SELECT DISTINCT + col1 * col0 DIV + col2 FROM tab0
----
3395
62
98
skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT + col1 * col0 / + col2 FROM tab0
----
3395
62
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4940
SELECT DISTINCT col2 DIV col0 AS col1 FROM tab2
----
0
3
skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT col2 / col0 AS col1 FROM tab2
----
0
3
query I rowsort
SELECT DISTINCT + col1 + col1 + - tab2.col1 FROM tab2
----
17
31
59
query I rowsort
SELECT + col2 * col1 * + col2 FROM tab0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4943
SELECT DISTINCT - col2 DIV - col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-4943
SELECT DISTINCT - col2 / - col0 FROM tab1 AS cor0
----
0
1
18
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 + + col0 > ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4945
SELECT ALL tab0.col0 DIV tab0.col1 FROM tab0 WHERE NOT col0 * col2 * - col0 IN ( col1 - col0 )
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL tab0.col0 / tab0.col1 FROM tab0 WHERE NOT col0 * col2 * - col0 IN ( col1 - col0 )
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4946
SELECT ALL - tab0.col2 * - col0 DIV tab0.col0 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL - tab0.col2 * - col0 / tab0.col0 FROM tab0
----
1
33
82
query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) IN ( col2 + - col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 + + col2 / + col0 col2 FROM tab0 WHERE - col1 + col1 <> NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4949
SELECT - col1 DIV + col2 col2 FROM tab0
----
-1
-2
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4949
SELECT - col1 / + col2 col2 FROM tab0
----
-1
-2
-97
query I rowsort
SELECT - col0 FROM tab0 WHERE NOT NULL IN ( - col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 + - col1 col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT NULL IN ( - col1 * col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4953
SELECT ALL col1 + col0 DIV - col1 AS col2 FROM tab1
----
26
4
7
skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL col1 + col0 / - col1 AS col2 FROM tab1
----
26
4
7
query I rowsort
SELECT DISTINCT - col2 - tab0.col2 AS col2 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT ALL tab2.col1 + + col0 FROM tab2
----
137
38
96
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 IN ( col2 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 BETWEEN ( + tab1.col2 - col1 * col2 ) AND col0 * + col2
----
query I rowsort
SELECT - col0 * + col1 FROM tab0 WHERE NULL NOT BETWEEN - col1 - tab0.col1 * col2 AND NULL
----
query I rowsort
SELECT - cor0.col1 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 > NULL
----
query I rowsort
SELECT col2 * 49 FROM tab0 AS cor0
----
1617
4018
49
query I rowsort
SELECT DISTINCT 13 AS col2 FROM tab1, tab2 AS cor0
----
13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4963
SELECT + col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4963
SELECT + col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4964
SELECT DISTINCT + - CAST( 86 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-86
skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT + - CAST ( 86 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-86
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 50 AS REAL ) * + col2 AS col1 FROM tab2 AS cor0
----
-1300
-1350
-1900
query I rowsort
SELECT ALL col0 + - 9 FROM tab0 AS cor0
----
15
26
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4967
SELECT DISTINCT + 7 DIV ( + col1 ) AS col1 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-4967
SELECT DISTINCT + 7 / ( + col1 ) AS col1 FROM tab1
----
0
query I rowsort
SELECT ALL cor1.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT 22 AS col0 FROM tab2
----
22
22
22
query I rowsort
SELECT ALL - - cor0.col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4971
SELECT DISTINCT - CAST( col0 AS SIGNED ) DIV col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-4971
SELECT DISTINCT - CAST ( col0 AS INTEGER ) / col1 FROM tab2 AS cor0
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col0 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4973
SELECT + - cor0.col0 DIV - cor0.col2 FROM tab0 cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-4973
SELECT + - cor0.col0 / - cor0.col2 FROM tab0 cor0
----
0
1
35
query I rowsort
SELECT ALL + - 84 * - col1 AS col2 FROM tab2 AS cor0
----
1428
2604
4956
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab2 cor1, tab0 cor2
----
972 values hashing to deaaa983f771be544ffdc26f04a18657
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19
query I rowsort
SELECT ( col0 ) * col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4978
SELECT DISTINCT 62 DIV 35 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT 62 / 35 FROM tab0 AS cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4979
SELECT - col0 + + cor0.col1 DIV col1 FROM tab0 cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-4979
SELECT - col0 + + cor0.col1 / col1 FROM tab0 cor0
----
-23
-34
-88
query I rowsort
SELECT cor1.col2 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to 3dcd863493ac16ce594c62d4ac8b0412
query I rowsort
SELECT - ( - tab0.col2 + + col0 ) * + tab0.col1 AS col2 FROM tab0
----
-3298
-637
774
query I rowsort
SELECT ALL + col1 + + col1 + + tab1.col1 FROM tab1
----
30
39
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4983
SELECT col1 + - col0 * + CAST( - col1 + - col2 AS SIGNED ) FROM tab0
----
15488
2942
3527
skipif mysql # not compatible
query I rowsort label-4983
SELECT col1 + - col0 * + CAST ( - col1 + - col2 AS INTEGER ) FROM tab0
----
15488
2942
3527
onlyif mysql # use DIV operator for integer division
query I rowsort label-4984
SELECT + 52 + - col2 DIV + col0 FROM tab2
----
49
52
52
skipif mysql # not compatible
query I rowsort label-4984
SELECT + 52 + - col2 / + col0 FROM tab2
----
49
52
52
query I rowsort
SELECT + + 48 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e
query I rowsort
SELECT DISTINCT cor0.col0 * col2 - ( - col2 + + cor0.col0 * + col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - - col2 * col0 - + 70 AS col0 FROM tab0 AS cor0
----
-35
722
7228
query I rowsort
SELECT - + col0 + col1 * + 66 * cor0.col0 AS col0 FROM tab1 AS cor0
----
42176
5145
68560
onlyif mysql # use DIV operator for integer division
query I rowsort label-4989
SELECT ALL - col1 + col1 DIV - 71 + - 45 * + col0 * - col1 FROM tab1 cor0
----
28790
3484
46787
skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL - col1 + col1 / - 71 + - 45 * + col0 * - col1 FROM tab1 cor0
----
28790
3484
46787
query I rowsort
SELECT ALL + col0 * cor0.col0 + + col2 AS col0 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT ALL + - cor0.col0 * - ( col2 ) * + col2 + cor0.col0 * col1 FROM tab2 AS cor0
----
115419
5320
57330
query I rowsort
SELECT DISTINCT - col2 + 7 * - 21 * + cor0.col0 FROM tab2 AS cor0
----
-1056
-11492
-11651
onlyif mysql # use DIV operator for integer division
query I rowsort label-4993
SELECT DISTINCT col1 * 67 + - col1 DIV col0 FROM tab2 AS cor0
----
1139
2073
3953
skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT col1 * 67 + - col1 / col0 FROM tab2 AS cor0
----
1139
2073
3953
query I rowsort
SELECT DISTINCT - col0 + 27 * + col0 AS col2 FROM tab0 AS cor0
----
2314
624
910
onlyif mysql # use DIV operator for integer division
query I rowsort label-4995
SELECT ALL - col2 DIV 10 + - 18 - col2 AS col0 FROM tab0 AS cor0
----
-108
-19
-54
skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL - col2 / 10 + - 18 - col2 AS col0 FROM tab0 AS cor0
----
-108
-19
-54
query I rowsort
SELECT DISTINCT - col1 * ( - cor0.col1 ) + + col0 FROM tab2 AS cor0
----
3559
368
968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - - 78 * + 92 FROM tab2 AS cor0
----
7176
query I rowsort
SELECT ALL + cor0.col1 + col2 * - col2 * + col0 AS col2 FROM tab1 cor0
----
-207926
-737267
-8722
query I rowsort
SELECT DISTINCT + ( - col0 ) * col1 + cor0.col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT - + 49 * ( + cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-147
-3136
-3920
onlyif mysql # use DIV operator for integer division
query I rowsort label-5002
SELECT col1 + - 50 DIV col0 AS col1 FROM tab1
----
10
10
13
skipif mysql # not compatible
query I rowsort label-5002
SELECT col1 + - 50 / col0 AS col1 FROM tab1
----
10
10
13
query I rowsort
SELECT ALL + ( 27 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 44 ) col1 FROM tab1 AS cor0
----
44
44
44
query I rowsort
SELECT ALL - col2 * + tab2.col0 * + tab2.col0 AS col1 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT col2 * - ( - col2 ) + col2 AS col0 FROM tab2
----
1482
702
756
query I rowsort
SELECT DISTINCT + tab0.col0 * col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT ALL - 53 * 60 FROM tab2
----
-3180
-3180
-3180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 col1 FROM tab2
----
22
query I rowsort
SELECT ALL - - ( col0 ) * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab0, tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab0, tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - tab2.col1 col2 FROM tab2
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 * col0 col1 FROM tab0
----
-2088
-3430
-8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-5015
SELECT col1 + - tab2.col2 DIV - 82 + - tab2.col1 AS col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5015
SELECT col1 + - tab2.col2 / - 82 + - tab2.col1 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 + + tab1.col0 AS col1 FROM tab1
----
121
176
57
query I rowsort
SELECT col1 - col2 * - col2 FROM tab0
----
1175
6815
98
query I rowsort
SELECT - 35 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 6d967b3bac2e01a0318865f682f9a97b
onlyif mysql # use DIV operator for integer division
query I rowsort label-5019
SELECT - col2 DIV + col1 + - col2 * - ( + col0 ) FROM tab2
----
189
2028
3000
skipif mysql # not compatible
query I rowsort label-5019
SELECT - col2 / + col1 + - col2 * - ( + col0 ) FROM tab2
----
189
2028
3000
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 col2 FROM tab1
----
3
64
80
query I rowsort
SELECT 2 * col1 FROM tab2
----
118
34
62
query I rowsort
SELECT 12 * - col2 AS col0 FROM tab0
----
-12
-396
-984
query I rowsort
SELECT DISTINCT - col0 + col1 * - col1 * + tab1.col2 + - col2 * col1 AS col0 FROM tab1
----
-17552
-37911
-6334
query I rowsort
SELECT DISTINCT 64 + - col0 * + 52 FROM tab2
----
-300
-3992
-4044
query I rowsort
SELECT DISTINCT - col0 + - col2 + - tab0.col0 FROM tab0
----
-260
-71
-81
query I rowsort
SELECT ALL + col2 * tab1.col0 * + col1 FROM tab1
----
36480
4212
99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5027
SELECT col0 + + CAST( NULL AS SIGNED ) * + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5027
SELECT col0 + + CAST ( NULL AS INTEGER ) * + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5028
SELECT - col0 * - CAST( 87 AS SIGNED ) FROM tab0 cor0
----
2088
3045
7743
skipif mysql # not compatible
query I rowsort label-5028
SELECT - col0 * - CAST ( 87 AS INTEGER ) FROM tab0 cor0
----
2088
3045
7743
query I rowsort
SELECT col2 * cor0.col2 + - ( - col2 ) FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT DISTINCT - + col1 + + 56 FROM tab1 AS cor0
----
30
43
46
query I rowsort
SELECT - col0 * - col0 + - col2 * col1 AS col0 FROM tab2 AS cor0
----
-788
4550
5595
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 + col2 col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT + - col1 + col1 * - col2 * - col2 AS col2 FROM tab0 AS cor0
----
0
611793
93568
query I rowsort
SELECT ALL + cor0.col2 * - col1 * - col2 AS col0 FROM tab2 AS cor0
----
22599
24548
39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 * - col0 col2 FROM tab0
----
118825
49536
720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * col2 col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + + col2 * - col1 * col2 + col1 FROM tab0 AS cor0
----
-611793
-93568
0
query I rowsort
SELECT - cor0.col2 * col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + + col2 * - col1 - + col0 FROM tab1 AS cor0
----
-1328
-1407
-634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 - + col1 col2 FROM tab0 cor0
----
-62
706
7207
query I rowsort
SELECT ( col1 ) * - cor0.col1 + col0 - - col0 AS col1 FROM tab0 AS cor0
----
-7348
-8103
-9339
query I rowsort
SELECT 25 + col1 FROM tab1 AS cor0
----
35
38
51
query I rowsort
SELECT - 10 AS col0 FROM tab2 cor0
----
-10
-10
-10
query I rowsort
SELECT 53 + + col0 * col0 FROM tab1 AS cor0
----
4149
62
6453
query I rowsort
SELECT + cor0.col1 - + col2 AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + col0 * + cor0.col2 + + col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT - 78 + col2 * col2 AS col2 FROM tab0
----
-77
1011
6646
query I rowsort
SELECT DISTINCT + 1 * col0 * col1 AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT + 25 * col0 FROM tab0
----
2225
600
875
query I rowsort
SELECT ALL - tab1.col0 * col2 + - col1 * col1 AS col2 FROM tab1
----
-3748
-7849
-838
query I rowsort
SELECT - 51 + tab1.col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 499e44c6030c2354c24c10ca1a130edd
query I rowsort
SELECT + col0 * col1 * + ( + ( col1 ) ) - + ( col2 ) * col1 FROM tab1
----
12272
5830
624
query I rowsort
SELECT - tab2.col1 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT DISTINCT + 6 + - col0 * col2 FROM tab1 AS cor0
----
-156
-3642
-7674
query I rowsort
SELECT + - 3 FROM tab1 cor0
----
-3
-3
-3
query I rowsort
SELECT ALL + col0 * ( - 15 ) * col1 + col2 FROM tab1 AS cor0
----
-1116
-15504
-9543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5057
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL
query I rowsort
SELECT + col2 + 17 FROM tab1 AS cor0
----
113
71
74
query I rowsort
SELECT + - col1 - col2 * col1 AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT - col1 * ( - col0 ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + - cor0.col0 + cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT - col2 * - ( + col2 ) + col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT + + cor0.col0 - ( - 78 ) AS col1 FROM tab0 AS cor0
----
102
113
167
onlyif mysql # use DIV operator for integer division
query I rowsort label-5064
SELECT + cor0.col0 + 64 DIV 7 FROM tab1 AS cor0
----
12
73
89
skipif mysql # not compatible
query I rowsort label-5064
SELECT + cor0.col0 + 64 / 7 FROM tab1 AS cor0
----
12
73
89
query I rowsort
SELECT ALL - col1 + - col1 * - col0 AS col2 FROM tab2 AS cor0
----
1326
186
4543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5066
SELECT ALL + col1 + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
109
67
80
skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL + col1 + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + col0 * 43 * - 81 AS col2 FROM tab0 AS cor0
----
-121905
-309987
-83592
query I rowsort
SELECT ALL + col2 * 46 + - col1 AS col1 FROM tab1 AS cor0
----
2458
2612
4403
query I rowsort
SELECT ALL + col1 + col2 + + 12 FROM tab1 AS cor0
----
121
79
92
query I rowsort
SELECT ALL + + col0 * + 10 + col0 FROM tab0 AS cor0
----
264
385
979
onlyif mysql # use DIV operator for integer division
query I rowsort label-5071
SELECT - col2 DIV - 64 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5071
SELECT - col2 / - 64 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 42 col2 FROM tab0 AS cor0
----
3612
3822
4074
query I rowsort
SELECT - - 42 + + ( col0 ) * ( 22 ) * - col2 FROM tab2 AS cor0
----
-4116
-44574
-66002
query I rowsort
SELECT + 17 + - col2 AS col2 FROM tab1 AS cor0
----
-37
-40
-79
query I rowsort
SELECT DISTINCT col1 * - col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - ( col0 ) + col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5077
SELECT ALL + CAST( + col0 AS SIGNED ) * col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL + CAST ( + col0 AS INTEGER ) * col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - ( 75 ) + + col2 FROM tab2 AS cor0
----
-37
-48
-49
query I rowsort
SELECT DISTINCT 9 - + col0 * + col0 FROM tab0 AS cor0
----
-1216
-567
-7912
query I rowsort
SELECT ALL 89 FROM tab0 cor0
----
89
89
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5081
SELECT col1 + col2 DIV + col2 + col0 col0 FROM tab0 AS cor0
----
111
133
181
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5081
SELECT col1 + col2 / + col2 + col0 col0 FROM tab0 AS cor0
----
111
133
181
query I rowsort
SELECT DISTINCT - + ( - 54 ) FROM tab2 AS cor0
----
54
query I rowsort
SELECT ALL + - ( 50 ) + + col2 * - col0 FROM tab2 AS cor0
----
-2078
-239
-3052
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5084
SELECT ALL + + CAST( NULL AS DECIMAL ) + 25 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL + + CAST ( NULL AS REAL ) + 25 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 17 * col2 + col1 AS col2 FROM tab0 cor0
----
114
1485
647
query I rowsort
SELECT - ( - 96 ) AS col2 FROM tab2 AS cor0
----
96
96
96
query I rowsort
SELECT DISTINCT + ( col1 ) + - col1 - - col2 AS col1 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - col1 col2 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT ALL + cor0.col1 * + col0 * - ( cor0.col2 ) AS col2 FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL + 17 AS col2 FROM tab1 AS cor0
----
17
17
17
query I rowsort
SELECT - col2 + 87 AS col2 FROM tab0
----
5
54
86
query I rowsort
SELECT ALL cor0.col2 FROM tab2, tab1 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT - cor0.col2 * - 87 + 9 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 393a6c69494a6a531f2f3b37eab6f95a
query I rowsort
SELECT DISTINCT cor0.col2 + - cor0.col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL + + cor0.col2 + + col0 AS col2 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5096
SELECT - + ( + col1 ) DIV 21 AS col2 FROM tab0 AS cor0
----
-4
-4
-4
skipif mysql # not compatible
query I rowsort label-5096
SELECT - + ( + col1 ) / 21 AS col2 FROM tab0 AS cor0
----
-4
-4
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + col2 ) col2 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT ALL - 40 + col0 * col2 FROM tab0 AS cor0
----
-5
7258
752
onlyif mysql # use DIV operator for integer division
query I rowsort label-5099
SELECT - + col1 DIV + col2 + + col1 * col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-5099
SELECT - + col1 / + col2 + + col1 * col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + - 87 * col2 FROM tab1 AS cor0
----
-4698
-4959
-8352
query I rowsort
SELECT ALL - ( cor0.col1 ) + + 38 * 91 AS col1 FROM tab2 AS cor0
----
3399
3427
3441
query I rowsort
SELECT - col1 * - col0 + ( col1 ) * col0 AS col1 FROM tab1 AS cor0
----
1280
156
2080
query I rowsort
SELECT + 65 + col1 FROM tab2
----
124
82
96
query I rowsort
SELECT DISTINCT + tab0.col0 + col1 + tab0.col0 FROM tab0
----
134
167
269
query I rowsort
SELECT col1 * + 53 FROM tab1
----
1378
530
689
query I rowsort
SELECT + + 46 * - cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 93080f189eea7e1b375c9db4adc335ef
query I rowsort
SELECT 47 + + 50 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
query I rowsort
SELECT ALL + ( + col0 ) * + cor0.col1 - - col0 AS col2 FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT 30 + - col2 * col2 FROM tab0 AS cor0
----
-1059
-6694
29
query I rowsort
SELECT DISTINCT 59 + - col0 AS col2 FROM tab2 AS cor0
----
-19
-20
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5111
SELECT ALL CAST( - 74 AS SIGNED ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL CAST ( - 74 AS INTEGER ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130
query I rowsort
SELECT ALL - 53 * - 91 FROM tab1 AS cor0
----
4823
4823
4823
onlyif mysql # use DIV operator for integer division
query I rowsort label-5113
SELECT DISTINCT col2 DIV 57 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT col2 / 57 FROM tab0
----
0
1
query I rowsort
SELECT + cor0.col2 * col0 + - cor0.col2 + col0 FROM tab2 AS cor0
----
169
2080
3043
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5115
SELECT DISTINCT tab2.col0 + CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
14
156
158
skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT tab2.col0 + CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
14
156
158
query I rowsort
SELECT - - cor1.col2 + + 55 AS col2 FROM tab1 cor0 CROSS JOIN tab2, tab1 cor1
----
27 values hashing to 9fa67eac9ce2ef4a07ee4c8158a3360e
query I rowsort
SELECT + - 2 * cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 27b4e0878ffa5c5df119ac6cfa79ea07
query I rowsort
SELECT 60 * + col0 * col2 FROM tab1
----
218880
460800
9720
query I rowsort
SELECT + - 44 * - 26 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 61eb887a9f75d6e789aeff0486db7290
query I rowsort
SELECT tab2.col0 + + 33 + col1 AS col2 FROM tab2
----
129
170
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5121
SELECT CAST( NULL AS SIGNED ) + 53 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5121
SELECT CAST ( NULL AS INTEGER ) + 53 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * + 4 FROM tab2 AS cor0
----
28
312
316
query I rowsort
SELECT ALL - col0 * + 36 AS col0 FROM tab0 AS cor0
----
-1260
-3204
-864
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - col0 AS REAL ) * - cor0.col1 + - col0 AS col2 FROM tab0 AS cor0
----
-2088
-3430
-8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5125
SELECT + - col2 * - CAST( col1 AS SIGNED ) + col2 * col1 FROM tab0 AS cor0
----
14924
194
5676
skipif mysql # not compatible
query I rowsort label-5125
SELECT + - col2 * - CAST ( col1 AS INTEGER ) + col2 * col1 FROM tab0 AS cor0
----
14924
194
5676
query I rowsort
SELECT ALL + col2 + ( - 12 ) * + cor0.col0 FROM tab1 AS cor0
----
-711
-864
18
query I rowsort
SELECT DISTINCT + col2 - - col1 * - cor0.col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT + col2 * - col0 + - cor0.col2 * col2 FROM tab1 AS cor0
----
-16896
-3078
-6897
query I rowsort
SELECT - + col2 + col2 * 49 FROM tab1 cor0
----
2592
2736
4608
query I rowsort
SELECT ALL + col0 * - 90 FROM tab0 cor0
----
-2160
-3150
-8010
query I rowsort
SELECT + cor0.col2 + col1 * col0 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5132
SELECT - col2 + CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5132
SELECT - col2 + CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col2 * ( - col2 ) AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + col1 + 42 * ( + col0 ) AS col1 FROM tab1 AS cor0
----
152
2698
3373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5135
SELECT ALL cor0.col1 * CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + cor1.col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5137
SELECT ALL - 52 * col0 + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-1272
-1855
-4717
skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL - 52 * col0 + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-1272
-1855
-4717
query I rowsort
SELECT + ( + col1 ) + - col2 * + cor0.col1 AS col1 FROM tab2 cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT - col2 * col0 + ( - col2 ) + - col1 AS col1 FROM tab0 cor0
----
-133
-7471
-911
query I rowsort
SELECT + col2 + + col0 * + col1 * - 85 FROM tab0 cor0
----
-175407
-288574
-688333
query I rowsort
SELECT 95 + - col1 AS col2 FROM tab2
----
36
64
78
query I rowsort
SELECT + - 54 + - col2 * + col0 FROM tab2 AS cor0
----
-2082
-243
-3056
query I rowsort
SELECT - col0 - col1 * - col2 FROM tab2 cor0
----
1456
567
830
query I rowsort
SELECT ALL tab1.col0 FROM tab1, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT DISTINCT 91 + + col1 FROM tab2
----
108
122
150
query I rowsort
SELECT DISTINCT + col0 + - tab1.col1 AS col2 FROM tab1
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-5147
SELECT + col0 DIV col2 + col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-5147
SELECT + col0 / col2 + col0 / + col1 AS col0 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT 84 FROM tab2, tab1, tab2 AS cor0
----
84
query I rowsort
SELECT ALL 83 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 002a717a3d902d97220759065fb107c3
onlyif mysql # use DIV operator for integer division
query I rowsort label-5150
SELECT DISTINCT 25 DIV col2 + col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT 25 / col2 + col2 FROM tab1
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5151
SELECT col0 + CAST( NULL AS SIGNED ) * 0 + col0 * col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5151
SELECT col0 + CAST ( NULL AS INTEGER ) * 0 + col0 * col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 - - col2 * - col0 * - col1 FROM tab2 AS cor0
----
119730
51113
5866
query I rowsort
SELECT ALL + col2 * ( 13 ) AS col0 FROM tab0 AS cor0
----
1066
13
429
query I rowsort
SELECT ALL col2 + - col0 * - col2 * col2 FROM tab1 AS cor0
----
207993
737376
8802
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - 93 * - col0 + col2 col2 FROM tab2 AS cor0
----
651
7254
7347
query I rowsort
SELECT col1 + - 29 + col2 FROM tab1 AS cor0
----
38
51
80
query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL col0 * + ( col1 ) * + tab2.col0 FROM tab2
----
106097
1519
358956
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5159
SELECT + CAST( NULL AS SIGNED ) col1 FROM tab0, 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-5159
SELECT + CAST ( NULL AS INTEGER ) col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5160
SELECT tab0.col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5160
SELECT tab0.col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + + ( col2 ) AS col0 FROM tab2 AS cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 * tab2.col0 col2 FROM tab2
----
49
6084
6241
query I rowsort
SELECT DISTINCT + ( ( + col0 ) ) FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT - + 72 * + col1 FROM tab2 AS cor0
----
-1224
-2232
-4248
query I rowsort
SELECT cor0.col2 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5166
SELECT CAST( 31 AS SIGNED ) FROM tab0
----
31
31
31
skipif mysql # not compatible
query I rowsort label-5166
SELECT CAST ( 31 AS INTEGER ) FROM tab0
----
31
31
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-5167
SELECT col2 + + col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-5167
SELECT col2 + + col2 / + col0 AS col1 FROM tab2 AS cor0
----
26
30
38
query I rowsort
SELECT 63 AS col0 FROM tab0 cor0
----
63
63
63
query I rowsort
SELECT 26 * + col2 FROM tab2 AS cor0
----
676
702
988
query I rowsort
SELECT - ( col2 ) * + cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT - 69 * - col2 FROM tab0 AS cor0
----
2277
5658
69
query I rowsort
SELECT col2 + col0 * + col1 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT ( + ( col0 ) ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - 47 * cor0.col0 + - col0 * - col2 + - 12 AS col1 FROM tab1 AS cor0
----
3908
628
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5175
SELECT ALL ( + col1 ) * + col2 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL ( + col1 ) * + col2 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 40 * - col2 AS col1 FROM tab1 AS cor0
----
-2160
-2280
-3840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 + + 28 * - col0 * col2 col2 FROM tab1
----
-102134
-215027
-4510
onlyif mysql # use DIV operator for integer division
query I rowsort label-5178
SELECT col1 + col2 DIV col2 AS col2 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-5178
SELECT col1 + col2 / col2 AS col2 FROM tab0
----
87
92
98
query I rowsort
SELECT col2 + + 21 FROM tab0
----
103
22
54
query I rowsort
SELECT col1 - - 23 AS col0 FROM tab1
----
33
36
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-5181
SELECT col2 DIV + col0 + 72 DIV col0 AS col2 FROM tab0
----
0
2
4
skipif mysql # not compatible
query I rowsort label-5181
SELECT col2 / + col0 + 72 / col0 AS col2 FROM tab0
----
0
2
4
query I rowsort
SELECT DISTINCT col1 + ( - col1 ) + col2 FROM tab1
----
54
57
96
query I rowsort
SELECT + 21 AS col0 FROM tab2 AS cor0
----
21
21
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col2 col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT 90 * col0 * - col2 FROM tab2
----
-17010
-182520
-270180
onlyif mysql # use DIV operator for integer division
query I rowsort label-5186
SELECT ALL col1 DIV + col1 AS col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL col1 / + col1 AS col1 FROM tab1
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5187
SELECT + col2 + - col0 DIV - col0 col2 FROM tab1 AS cor0
----
55
58
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5187
SELECT + col2 + - col0 / - col0 col2 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT DISTINCT + col1 * + col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL cor0.col0 * + col0 + col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT 60 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
5160
5460
5820
query I rowsort
SELECT DISTINCT + col2 * - col2 * col0 FROM tab1 cor0
----
-207936
-737280
-8748
query I rowsort
SELECT DISTINCT - + 55 FROM tab0 AS cor0
----
-55
onlyif mysql # use DIV operator for integer division
query I rowsort label-5193
SELECT - ( - col1 ) DIV - col2 AS col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5193
SELECT - ( - col1 ) / - col2 AS col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 + + cor0.col0 AS col0 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT + 77 - tab0.col0 AS col2 FROM tab0
----
-12
42
53
query I rowsort
SELECT DISTINCT + 17 * col1 - - 1 FROM tab1
----
171
222
443
query I rowsort
SELECT - - col1 * col1 + - ( + col0 ) FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT + ( + col2 ) + ( 48 * col0 ) FROM tab0 AS cor0
----
1185
1681
4354
query I rowsort
SELECT + 51 * + col2 + - 78 AS col2 FROM tab2 AS cor0
----
1248
1299
1860
query I rowsort
SELECT col2 * col2 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT + - col1 * col1 * col2 + - col1 FROM tab0 AS cor0
----
-244154
-679133
-9506
query I rowsort
SELECT DISTINCT col2 - - cor0.col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT + col2 + 45 * - 95 * col1 AS col2 FROM tab0 AS cor0
----
-367617
-388943
-414674
query I rowsort
SELECT - cor0.col2 * ( 95 * col2 ) + + 96 FROM tab2 AS cor0
----
-137084
-64124
-69159
query I rowsort
SELECT DISTINCT col0 * - ( - cor0.col0 ) - col0 * - col0 AS col1 FROM tab2 AS cor0
----
12168
12482
98
query I rowsort
SELECT - col1 * col1 * + 39 FROM tab0 AS cor0
----
-288444
-322959
-366951
query I rowsort
SELECT DISTINCT - col1 * 85 + 84 AS col0 FROM tab1 AS cor0
----
-1021
-2126
-766
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 16 * ( col0 ) col1 FROM tab1 AS cor0
----
102
1081
1376
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 col2 - + ( + col0 ) AS col0 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-5211
SELECT col2 * - CAST( col1 AS SIGNED ) + col0 DIV 30 FROM tab0 AS cor0
----
-2838
-7460
-96
skipif mysql # not compatible
query I rowsort label-5211
SELECT col2 * - CAST ( col1 AS INTEGER ) + col0 / 30 FROM tab0 AS cor0
----
-2838
-7460
-96
query I rowsort
SELECT DISTINCT col1 + col1 * col2 AS col2 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT - col2 + + col0 * - 33 FROM tab0
----
-1156
-3019
-825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5214
SELECT ALL - col2 + + CAST( NULL AS SIGNED ) + - cor0.col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5214
SELECT ALL - col2 + + CAST ( NULL AS INTEGER ) + - cor0.col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col1 * + ( + col2 ) - + col2 * + 98 AS col1 FROM tab1 AS cor0
----
-10656
-6156
-6696
query I rowsort
SELECT col2 * - col1 + col2 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-5217
SELECT + cor0.col2 * - col0 DIV + col0 - col1 * col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
skipif mysql # not compatible
query I rowsort label-5217
SELECT + cor0.col2 * - col0 / + col0 - col1 * col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT - cor0.col2 * - cor0.col2 + col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT tab0.col0 AS col1 FROM tab0, tab2, tab2 AS cor0, tab1
----
24
35
89
query I rowsort
SELECT ALL col2 + ( col2 ) * cor0.col1 FROM tab0 cor0
----
2871
7544
98
query I rowsort
SELECT ALL - col0 * + ( col2 + + col1 ) AS col1 FROM tab1 AS cor0
----
-240
-4288
-8720
query I rowsort
SELECT DISTINCT - col1 * - ( - 60 ) FROM tab0 cor0
----
-5160
-5460
-5820
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * - col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5224
SELECT ALL col2 * - CAST( + 69 AS SIGNED ) + + col2 FROM tab0 AS cor0
----
-2244
-5576
-68
skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL col2 * - CAST ( + 69 AS INTEGER ) + + col2 FROM tab0 AS cor0
----
-2244
-5576
-68
query I rowsort
SELECT + + col0 * - ( + col0 ) AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - cor0.col0 * + 53 - + col2 * - cor0.col1 * col0 FROM tab1 cor0
----
33088
4053
95600
query I rowsort
SELECT + col1 + + 16 FROM tab0 AS cor0
----
102
107
113
query I rowsort
SELECT ALL + cor0.col2 + col2 AS col2 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-5229
SELECT DISTINCT - col1 + - 90 DIV ( col2 + col0 ) AS col1 FROM tab2
----
-17
-33
-59
skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT - col1 + - 90 / ( col2 + col0 ) AS col1 FROM tab2
----
-17
-33
-59
query I rowsort
SELECT tab2.col0 + 81 + col2 AS col0 FROM tab2
----
115
185
198
query I rowsort
SELECT - 84 * - ( + col2 * ( col0 ) ) + + col2 AS col0 FROM tab2 cor0
----
15903
170378
252206
query I rowsort
SELECT ALL - col2 + - col2 - - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL + col0 * 71 + + col1 FROM tab1 AS cor0
----
239
4554
5693
query I rowsort
SELECT ALL + - col0 - - 73 * col0 AS col0 FROM tab0 AS cor0
----
1728
2520
6408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 + 93 col1 FROM tab2
----
119
120
131
onlyif mysql # use DIV operator for integer division
query I rowsort label-5236
SELECT + col1 + + col0 DIV 83 col2 FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5236
SELECT + col1 + + col0 / 83 col2 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-5237
SELECT DISTINCT + 90 + + col1 DIV 65 AS col1 FROM tab1 AS cor0
----
90
skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT + 90 + + col1 / 65 AS col1 FROM tab1 AS cor0
----
90
query I rowsort
SELECT ALL - cor0.col1 * + col1 AS col2 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT + 4 AS col2 FROM tab2 AS cor0
----
4
query I rowsort
SELECT ALL col1 * 74 FROM tab2
----
1258
2294
4366
onlyif mysql # use DIV operator for integer division
query I rowsort label-5241
SELECT ALL col2 DIV tab2.col1 + tab2.col0 - + col1 col1 FROM tab2
----
-24
19
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL col2 / tab2.col1 + tab2.col0 - + col1 col1 FROM tab2
----
-24
19
64
query I rowsort
SELECT col0 + + col1 + 7 AS col1 FROM tab1
----
100
36
81
query I rowsort
SELECT DISTINCT + 74 + cor0.col0 FROM tab2 AS cor0
----
152
153
81
query I rowsort
SELECT - 2 + col2 * 45 * - 21 FROM tab1 AS cor0
----
-51032
-53867
-90722
onlyif mysql # use DIV operator for integer division
query I rowsort label-5245
SELECT ALL - ( col0 ) + + col1 * 58 DIV col0 AS col0 FROM tab2 AS cor0
----
-35
-67
249
skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL - ( col0 ) + + col1 * 58 / col0 AS col0 FROM tab2 AS cor0
----
-35
-67
249
query I rowsort
SELECT ALL - col2 * - col0 * col0 AS col1 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT ALL - col0 * col2 + + tab0.col0 * - 20 FROM tab0
----
-1272
-735
-9078
query I rowsort
SELECT - tab1.col2 + col2 - - tab1.col1 AS col2 FROM tab1
----
10
13
26
query I rowsort
SELECT + - 55 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to b90e74bece5521b514096c5b6e105fde
query I rowsort
SELECT ALL 96 * - tab1.col0 + + tab1.col0 FROM tab1
----
-285
-6080
-7600
query I rowsort
SELECT ALL col0 + 95 + - col2 AS col2 FROM tab1 AS cor0
----
102
44
79
query I rowsort
SELECT + + ( col2 ) + col0 AS col1 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5253
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + cor0.col2 + col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + cor0.col2 + col2 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5254
SELECT ALL - col0 * - col0 * cor0.col0 + CAST( - col2 AS SIGNED ) + cor0.col1 AS col1 FROM tab0 AS cor0
----
13877
42971
704978
skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL - col0 * - col0 * cor0.col0 + CAST ( - col2 AS INTEGER ) + cor0.col1 AS col1 FROM tab0 AS cor0
----
13877
42971
704978
query I rowsort
SELECT ALL 33 + col1 AS col1 FROM tab1 AS cor0
----
43
46
59
query I rowsort
SELECT ( col2 ) + + col2 * col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5258
SELECT + + col0 + - col0 * CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1422
224
4680
skipif mysql # not compatible
query I rowsort label-5258
SELECT + + col0 + - col0 * CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT 86 * + tab1.col0 FROM tab1
----
258
5504
6880
query I rowsort
SELECT DISTINCT - + cor0.col0 AS col2 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - + cor0.col2 * col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col0 + 24 FROM tab0 AS cor0
----
113
48
59
query I rowsort
SELECT ALL + cor0.col2 + ( - col2 ) AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT cor0.col2 + - 92 FROM tab0 AS cor0
----
-10
-59
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 - col1 col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT + col1 + - 3 AS col0 FROM tab0 AS cor0
----
83
88
94
query I rowsort
SELECT ALL col0 * - col1 + col0 + ( col2 + - col0 * ( - col0 ) ) AS col0 FROM tab0 AS cor0
----
-1431
-2134
-7
query I rowsort
SELECT ALL - 13 AS col1 FROM tab0 cor0
----
-13
-13
-13
query I rowsort
SELECT - 65 * col1 - + col0 AS col0 FROM tab2 AS cor0
----
-1184
-2022
-3913
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col1 FROM tab1 AS cor0
----
-5
-5
-5
query I rowsort
SELECT - ( + cor0.col2 ) FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT col0 * ( cor0.col1 ) + col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT 22 * 59 FROM tab2 cor0
----
1298
1298
1298
query I rowsort
SELECT + - cor0.col1 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to aad6a39cc782d0570960622f04a07424
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5275
SELECT CAST( col2 AS SIGNED ) * - col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-5275
SELECT CAST ( col2 AS INTEGER ) * - col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + ( - col0 ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5278
SELECT CAST( ( - cor0.col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-5278
SELECT CAST ( ( - cor0.col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT ( tab1.col0 + tab1.col2 ) FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT - 7 AS col1 FROM tab2 AS cor0
----
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5281
SELECT + ( - col1 ) DIV col0 col2 FROM tab2
----
-4
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5281
SELECT + ( - col1 ) / col0 col2 FROM tab2
----
-4
0
0
query I rowsort
SELECT tab0.col1 * - tab0.col2 AS col0 FROM tab0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5283
SELECT CAST( NULL AS DECIMAL ) col0 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5283
SELECT CAST ( NULL AS REAL ) col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5284
SELECT DISTINCT col0 + col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
7
79
83
skipif mysql # not compatible
query I rowsort label-5284
SELECT DISTINCT col0 + col0 / + col1 AS col2 FROM tab2 AS cor0
----
7
79
83
query I rowsort
SELECT - + 60 + - col0 * col2 AS col0 FROM tab1 AS cor0
----
-222
-3708
-7740
query I rowsort
SELECT ALL + + col0 * + col2 * + 68 - col2 AS col1 FROM tab0 cor0
----
2379
496182
53823
onlyif mysql # use DIV operator for integer division
query I rowsort label-5287
SELECT DISTINCT - col0 DIV - col0 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT - col0 / - col0 FROM tab0 AS cor0
----
1
query I rowsort
SELECT - 27 * - col0 FROM tab0 AS cor0
----
2403
648
945
query I rowsort
SELECT ALL + col1 + col0 * + cor0.col0 FROM tab1 cor0
----
35
4106
6413
query I rowsort
SELECT - ( - col2 + col0 * col2 ) FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT ALL + - 88 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32
query I rowsort
SELECT ( 87 ) AS col1 FROM tab0
----
87
87
87
query I rowsort
SELECT - col1 * - ( col0 ) + col2 * col0 FROM tab1 cor0
----
240
4288
8720
query I rowsort
SELECT + - col0 + col1 * col2 AS col1 FROM tab2 AS cor0
----
1456
567
830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5295
SELECT - 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-5295
SELECT - col2 * + CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col1 * + 87 + col1 AS col1 FROM tab1 AS cor0
----
-1118
-2236
-860
query I rowsort
SELECT DISTINCT - 71 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-71
query I rowsort
SELECT ALL + col2 * tab1.col0 AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL + 44 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
query I rowsort
SELECT - + 37 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207
query I rowsort
SELECT DISTINCT 25 - - tab2.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
42
56
84
query I rowsort
SELECT ALL - ( - 95 ) * cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 7f743d22257eee9bf287773a4a2445e6
query I rowsort
SELECT + - col1 + 53 * + col0 FROM tab1 AS cor0
----
133
3382
4227
query I rowsort
SELECT col0 * 90 FROM tab2 cor0
----
630
7020
7110
query I rowsort
SELECT - col1 + - cor0.col1 * - col2 AS col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT - col0 * col0 + cor0.col1 FROM tab0 AS cor0
----
-1128
-490
-7830
onlyif mysql # use DIV operator for integer division
query I rowsort label-5307
SELECT col1 DIV - col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-5307
SELECT col1 / - col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-5
64
80
query I rowsort
SELECT DISTINCT + col2 * - col0 + col1 AS col1 FROM tab2 cor0
----
-158
-1969
-2985
query I rowsort
SELECT - col0 - + col2 * col1 AS col2 FROM tab0 WHERE NOT ( + col2 / - col2 - - col0 ) <> NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5310
SELECT - col2 DIV + col2 AS col1 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5310
SELECT - col2 / + col2 AS col1 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT col2 * + col2 + + col2 * col1 + col0 * col2 AS col1 FROM tab0
----
133
21484
4719
query I rowsort
SELECT - col1 + - col1 + col2 FROM tab0 cor0
----
-100
-139
-193
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 col1 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT col0 * + tab2.col2 * tab2.col2 - tab2.col2 FROM tab2
----
114038
5076
52702
query I rowsort
SELECT ALL col2 + + col1 * tab0.col0 FROM tab0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-5316
SELECT ALL col2 DIV - tab0.col2 + col1 FROM tab0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL col2 / - tab0.col2 + col1 FROM tab0
----
85
90
96
query I rowsort
SELECT ALL col1 + col0 * - col1 AS col0 FROM tab0 WHERE NOT - col2 + - col2 IN ( - col0 + tab0.col1 * - col2 )
----
-1978
-3298
-8008
query III rowsort
SELECT * FROM tab0 WHERE NOT tab0.col2 + - col0 NOT BETWEEN col2 + - col2 AND col1
----
24
86
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-5319
SELECT ALL col0 DIV - col2 + + col0 AS col2 FROM tab1
----
3
63
80
skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL col0 / - col2 + + col0 AS col2 FROM tab1
----
3
63
80
query I rowsort
SELECT DISTINCT col1 * + tab1.col0 + col1 FROM tab1
----
104
1053
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + tab2.col2 col1 FROM tab2
----
55
58
85
query I rowsort
SELECT - col1 * + col1 + col2 FROM tab1
----
-43
-622
-73
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + col0 )
----
query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NULL >= ( col2 )
----
query I rowsort
SELECT cor0.col1 + + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830
onlyif mysql # use DIV operator for integer division
query I rowsort label-5326
SELECT ALL col0 + - col1 DIV + col0 AS col1 FROM tab2 cor0
----
3
78
79
skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL col0 + - col1 / + col0 AS col1 FROM tab2 cor0
----
3
78
79
query I rowsort
SELECT DISTINCT - + col0 * col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + tab0.col0 + - col0 * tab0.col0 FROM tab0
----
-1190
-552
-7832
query I rowsort
SELECT DISTINCT col2 * - tab2.col1 AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL + col0 + col0 AS col1 FROM tab2
----
14
156
158
query I rowsort
SELECT DISTINCT + col2 * col0 + - col2 AS col0 FROM tab1
----
108
3591
7584
query I rowsort
SELECT DISTINCT col1 - col2 * - col2 * + col2 FROM tab0
----
36023
551459
98
query I rowsort
SELECT ALL col1 * + col0 - + col2 * col2 AS col1 FROM tab2
----
-101
-512
3926
query I rowsort
SELECT col2 - + col0 * col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL + - col0 * col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-5337
SELECT DISTINCT col1 DIV col2 AS col0 FROM tab0 cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-5337
SELECT DISTINCT col1 / col2 AS col0 FROM tab0 cor0
----
1
2
97
query I rowsort
SELECT DISTINCT - col0 + + col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-5339
SELECT + col2 + + col0 DIV col0 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-5339
SELECT + col2 + + col0 / col0 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT ALL col2 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT col2 + cor0.col1 + - col0 AS col0 FROM tab2 AS cor0
----
-24
51
7
query I rowsort
SELECT - col0 * + cor0.col2 - col1 * + col0 * + col0 FROM tab2 AS cor0
----
-109099
-1708
-360984
query I rowsort
SELECT col0 * col1 - - col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL col2 * col1 + + col2 - - col2 * - col1 AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT - + ( cor0.col0 ) * + col1 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col0 * + col1 col2 FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-5347
SELECT + col1 * col2 DIV + 64 FROM tab2 AS cor0
----
10
13
23
skipif mysql # not compatible
query I rowsort label-5347
SELECT + col1 * col2 / + 64 FROM tab2 AS cor0
----
10
13
23
query I rowsort
SELECT DISTINCT 99 FROM tab1, tab0 cor0, tab1 AS cor1
----
99
query I rowsort
SELECT 79 AS col0 FROM tab1
----
79
79
79
query I rowsort
SELECT DISTINCT col0 + + 98 FROM tab1 AS cor0
----
101
162
178
query I rowsort
SELECT ALL - col2 + ( - cor0.col2 + col1 ) * + col1 FROM tab1 AS cor0
----
-1175
-527
-782
query I rowsort
SELECT - + col1 + + ( col1 ) + - cor0.col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - col2 * - col0 * col1 + col1 FROM tab2 AS cor0
----
119711
51051
5890
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 + cor0.col0 + - col0 col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col0 * 58 AS col2 FROM tab2 AS cor0
----
-406
-4524
-4582
query I rowsort
SELECT col2 * col2 - col0 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT ALL - col0 * + cor0.col2 + col1 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * 61 col0 FROM tab2 AS cor0
----
-427
-4758
-4819
query I rowsort
SELECT DISTINCT + col2 + + ( - 94 ) * cor0.col1 AS col1 FROM tab2 cor0
----
-1560
-2887
-5520
query I rowsort
SELECT DISTINCT + cor0.col0 + ( col0 ) AS col0 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT ALL - col2 + ( - col0 ) FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL - col0 * cor0.col1 + - col0 + col2 * - 12 FROM tab1 AS cor0
----
-1388
-2272
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-5363
SELECT - col2 DIV col0 + col0 * col0 + + col1 * + col2 FROM tab2
----
6887
7618
883
skipif mysql # not compatible
query I rowsort label-5363
SELECT - col2 / col0 + col0 * col0 + + col1 * + col2 FROM tab2
----
6887
7618
883
query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT ( col2 ) IN ( + col2 * col2 * + col2 )
----
17
31
59
query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 > col2
----
query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col0 / + col1 + + col0 / col0 )
----
query I rowsort
SELECT DISTINCT col1 * + col2 * col0 + col1 * + col1 * - col1 FROM tab1
----
-13364
35480
97643
query I rowsort
SELECT ALL col1 * col0 + tab1.col1 AS col0 FROM tab1
----
104
1053
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - tab0.col2 col1 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT ALL col2 * col2 + - tab2.col1 AS col1 FROM tab2
----
1427
617
698
onlyif mysql # use DIV operator for integer division
query I rowsort label-5371
SELECT DISTINCT + col2 * col2 DIV - col1 + + col2 FROM tab0
----
1
21
9
skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT + col2 * col2 / - col1 + + col2 FROM tab0
----
1
21
9
query I rowsort
SELECT DISTINCT + tab2.col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col2
----
query I rowsort
SELECT + tab0.col1 * - col1 + col0 AS col2 FROM tab0
----
-7372
-8192
-9374
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col2 col2 FROM tab1
----
-108
-114
-192
onlyif mysql # use DIV operator for integer division
query I rowsort label-5375
SELECT DISTINCT col0 DIV + cor0.col1 AS col0 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-5375
SELECT DISTINCT col0 / + cor0.col1 AS col0 FROM tab2 AS cor0
----
0
1
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-5376
SELECT ALL col2 * + col1 + - col1 DIV col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL col2 * + col1 + - col1 / col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + - col2 * - col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL - - col2 + + col1 * - 41 FROM tab1 AS cor0
----
-1012
-353
-437
query I rowsort
SELECT - tab2.col1 * tab2.col1 AS col0 FROM tab2
----
-289
-3481
-961
query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) = - col0 + col0
----
query I rowsort
SELECT ALL + col2 / - col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5382
SELECT + - col2 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5382
SELECT + - col2 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + + cor0.col0 * - col0 FROM tab2 AS cor0
----
-56
-6162
-6320
query I rowsort
SELECT - + cor0.col0 * + ( - 15 ) * + col1 FROM tab1 AS cor0
----
1170
15600
9600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5385
SELECT + + col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5385
SELECT + + col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col1 * ( - 37 ) * col2 FROM tab1 AS cor0
----
21090
46176
51948
query I rowsort
SELECT ALL + col1 * - 55 FROM tab0 AS cor0
----
-4730
-5005
-5335
query I rowsort
SELECT - col2 - 9 FROM tab2 cor0
----
-35
-36
-47
query I rowsort
SELECT - col2 + ( + 14 ) * col0 FROM tab0 AS cor0
----
1164
303
489
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 8 ) col2 FROM tab2
----
-8
-8
-8
query I rowsort
SELECT + - cor0.col1 + - col2 AS col2 FROM tab2 AS cor0
----
-55
-58
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 81 * - col2 col1 FROM tab2 AS cor0
----
2106
2187
3078
query I rowsort
SELECT 26 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT 94 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT cor0.col1 AS col0 FROM tab0, tab0 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
query I rowsort
SELECT DISTINCT + col0 * - ( col0 ) AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + cor0.col0 col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + 35 FROM tab2 cor0
----
35
35
35
query I rowsort
SELECT DISTINCT - 10 AS col0 FROM tab1
----
-10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5400
SELECT ( + col2 ) + + col2 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5400
SELECT ( + col2 ) + + col2 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * col2 * col1 AS col0 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT ALL ( col1 + - col0 * - ( col1 ) ) FROM tab0
----
2150
3492
8190
query I rowsort
SELECT - 63 AS col2 FROM tab2
----
-63
-63
-63
query I rowsort
SELECT + + 48 AS col0 FROM tab2 AS cor0
----
48
48
48
query I rowsort
SELECT - 16 + + col0 + + col1 FROM tab0 AS cor0
----
116
164
94
query I rowsort
SELECT + 78 + col1 * - col0 FROM tab1 AS cor0
----
-562
-962
0
query I rowsort
SELECT + col1 * cor0.col0 * - col2 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL + ( col2 ) * + col0 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT 41 * + col1 AS col0 FROM tab0
----
3526
3731
3977
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col0 * + col1 col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 * + col0 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT ALL + - cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + ( - ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
86
91
97
query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # use DIV operator for integer division
query I rowsort label-5416
SELECT DISTINCT + ( tab0.col0 ) DIV + col0 + - col2 FROM tab0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-5416
SELECT DISTINCT + ( tab0.col0 ) / + col0 + - col2 FROM tab0
----
-32
-81
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5417
SELECT + CAST( col0 AS SIGNED ) + col0 * + cor0.col0 * + col2 FROM tab0 AS cor0
----
1260
19032
649611
skipif mysql # not compatible
query I rowsort label-5417
SELECT + CAST ( col0 AS INTEGER ) + col0 * + cor0.col0 * + col2 FROM tab0 AS cor0
----
1260
19032
649611
onlyif mysql # use DIV operator for integer division
query I rowsort label-5418
SELECT - - col2 DIV + col0 + col1 FROM tab1 AS cor0
----
10
14
44
skipif mysql # not compatible
query I rowsort label-5418
SELECT - - col2 / + col0 + col1 FROM tab1 AS cor0
----
10
14
44
query I rowsort
SELECT + 52 * + col1 * + col1 + - col0 + - col1 AS col2 FROM tab1 AS cor0
----
35123
5126
8695
query I rowsort
SELECT + + cor0.col0 + + ( + col0 ) * cor0.col2 AS col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT col1 + - col2 * - col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT ALL + cor0.col1 * col0 * cor0.col1 FROM tab1 AS cor0
----
13520
2028
6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * cor0.col0 * - col2 + - col1 + col0 col2 FROM tab1 AS cor0
----
207990
737347
8725
query I rowsort
SELECT - 3 AS col2 FROM tab0 AS cor0
----
-3
-3
-3
query I rowsort
SELECT ( - col0 ) * col2 FROM tab1
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5426
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5426
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - 3 * cor1.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to ca40715e6c6ae2af3aa5d085bc78db61
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 / - col1 + tab2.col1 * - CAST ( + col2 AS REAL ) * col2 AS col1 FROM tab2
----
-22599
-24550
-39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-5429
SELECT + tab2.col2 + - col1 DIV col1 + + 18 FROM tab2
----
43
44
55
skipif mysql # not compatible
query I rowsort label-5429
SELECT + tab2.col2 + - col1 / col1 + + 18 FROM tab2
----
43
44
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT + - 98 + col2 FROM tab0 AS cor0
----
-16
-65
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 * cor0.col0 col2 FROM tab2 cor0
----
1305
190
4576
query I rowsort
SELECT + - 70 + col0 * + col0 AS col1 FROM tab1 AS cor0
----
-61
4026
6330
query I rowsort
SELECT ALL + col2 * col2 * + ( 98 + - cor0.col2 ) FROM tab1 AS cor0
----
128304
133209
18432
query I rowsort
SELECT + col2 * col1 - col0 * + col0 FROM tab0 AS cor0
----
-1128
-459
2262
query I rowsort
SELECT ALL cor0.col2 * - col1 * - ( + col2 ) + - col2 FROM tab2 AS cor0
----
22572
24510
39858
query I rowsort
SELECT ALL col2 + - col0 * col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT - 69 * + cor0.col0 + - col0 FROM tab1 AS cor0
----
-210
-4480
-5600
query I rowsort
SELECT DISTINCT + - col2 * + col0 - cor0.col2 AS col1 FROM tab1 AS cor0
----
-216
-3705
-7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + - col2 * col0 + col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT - 13 * col0 AS col2 FROM tab1 AS cor0
----
-1040
-39
-832
query I rowsort
SELECT + 93 * + col0 + - col1 AS col0 FROM tab0 AS cor0
----
2146
3158
8186
query I rowsort
SELECT DISTINCT 74 * cor0.col2 FROM tab0 cor0
----
2442
6068
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-5445
SELECT 67 * - col2 + + col2 DIV col1 FROM tab1 AS cor0
----
-3616
-3814
-6425
skipif mysql # not compatible
query I rowsort label-5445
SELECT 67 * - col2 + + col2 / col1 FROM tab1 AS cor0
----
-3616
-3814
-6425
query I rowsort
SELECT - - 67 * - col2 AS col1 FROM tab2 AS cor0
----
-1742
-1809
-2546
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + col2 col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + col2 - + col1 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5449
SELECT ALL + 11 - - col0 DIV col1 AS col0 FROM tab1
----
11
17
17
skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL + 11 - - col0 / col1 AS col0 FROM tab1
----
11
17
17
query I rowsort
SELECT - col0 * - 8 FROM tab2 AS cor0
----
56
624
632
query I rowsort
SELECT DISTINCT + col2 * + 91 FROM tab0 AS cor0
----
3003
7462
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-5452
SELECT col1 DIV - 51 col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5452
SELECT col1 / - 51 col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + cor0.col2 * 41 * col0 AS col0 FROM tab2 cor0
----
123082
7749
83148
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + col2 col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - col1 + - col2 * col2 AS col1 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT ALL - cor0.col1 * 92 FROM tab0 cor0
----
-7912
-8372
-8924
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0, tab2, tab0 cor0, tab0 AS cor1
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 * - col1 col2 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT col2 * + tab1.col1 * ( - col2 ) AS col0 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT + col0 * ( - col1 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - tab0.col2 * 14 * ( col0 ) FROM tab0
----
-102172
-11088
-490
query I rowsort
SELECT - ( 1 ) AS col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + col1 * ( - col0 * col1 ) FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT + tab2.col0 + + ( - col2 ) FROM tab2
----
-20
41
52
query I rowsort
SELECT + 15 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
query I rowsort
SELECT + col2 * tab2.col2 + 98 FROM tab2
----
1542
774
827
onlyif mysql # use DIV operator for integer division
query I rowsort label-5467
SELECT ALL - 54 DIV + col0 FROM tab1 AS cor0
----
-18
0
0
skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL - 54 / + col0 FROM tab1 AS cor0
----
-18
0
0
query I rowsort
SELECT + ( - col0 ) * + cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - 54 + - ( col0 ) FROM tab1 AS cor0
----
-118
-134
-57
query I rowsort
SELECT ALL 52 AS col1 FROM tab2 cor0
----
52
52
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-5471
SELECT ALL - col1 DIV tab1.col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL - col1 / tab1.col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL + col1 * 20 AS col0 FROM tab1
----
200
260
520
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
972 values hashing to 635619591835474e6aa6acdff4ab166c
query I rowsort
SELECT - 2 * - ( + col2 + - col1 ) FROM tab2 AS cor0
----
-66
-8
42
query I rowsort
SELECT ALL col2 * + 57 + col1 FROM tab2 AS cor0
----
1541
1570
2183
query I rowsort
SELECT DISTINCT 37 * - 72 FROM tab0 AS cor0
----
-2664
query I rowsort
SELECT - 96 * col0 AS col2 FROM tab2 AS cor0
----
-672
-7488
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-5478
SELECT ALL - + cor0.col2 DIV 30 FROM tab1 AS cor0
----
-1
-1
-3
skipif mysql # not compatible
query I rowsort label-5478
SELECT ALL - + cor0.col2 / 30 FROM tab1 AS cor0
----
-1
-1
-3
query I rowsort
SELECT DISTINCT - - ( - 90 ) * + col0 AS col1 FROM tab0 AS cor0
----
-2160
-3150
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - 4 col2 FROM tab2 AS cor0
----
-28
-312
-316
query I rowsort
SELECT ALL + col2 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + ( - col0 ) * col2 + + 13 AS col0 FROM tab2 AS cor0
----
-176
-2015
-2989
query I rowsort
SELECT ALL col2 * 61 FROM tab2 AS cor0
----
1586
1647
2318
onlyif mysql # use DIV operator for integer division
query I rowsort label-5484
SELECT DISTINCT - col2 DIV - 91 AS col2 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5484
SELECT DISTINCT - col2 / - 91 AS col2 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5486
SELECT col1 DIV col2 col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5486
SELECT col1 / col2 col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5487
SELECT ALL cor0.col0 + col2 * CAST( + col1 + col0 AS SIGNED ) FROM tab2 AS cor0
----
1033
3640
3727
skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL cor0.col0 + col2 * CAST ( + col1 + col0 AS INTEGER ) FROM tab2 AS cor0
----
1033
3640
3727
query I rowsort
SELECT - + cor0.col1 + col2 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT DISTINCT 16 AS col0 FROM tab0 AS cor0
----
16
onlyif mysql # use DIV operator for integer division
query I rowsort label-5490
SELECT DISTINCT + col1 + + col0 DIV col1 AS col2 FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5490
SELECT DISTINCT + col1 + + col0 / col1 AS col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + + cor0.col0 * + col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL col2 * col0 * + col2 + col2 * col2 AS col1 FROM tab1 AS cor0
----
11664
211185
746496
query I rowsort
SELECT DISTINCT + - cor0.col2 * - col2 FROM tab0 cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-5494
SELECT ALL + col0 DIV col1 + col0 FROM tab1
----
3
70
86
skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL + col0 / col1 + col0 FROM tab1
----
3
70
86
query I rowsort
SELECT DISTINCT + - col2 + col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT - col2 * - 94 + ( col2 ) AS col0 FROM tab1 AS cor0
----
5130
5415
9120
query I rowsort
SELECT DISTINCT - col1 * cor0.col2 + col1 * cor0.col2 * ( + col1 ) FROM tab2 AS cor0
----
10336
25110
88972
query I rowsort
SELECT + - col1 * 81 + + col1 * - col2 FROM tab1 AS cor0
----
-1380
-2301
-3510
query I rowsort
SELECT - 52 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5500
SELECT ALL + col2 * + CAST( + 65 AS SIGNED ) AS col0 FROM tab1
----
3510
3705
6240
skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL + col2 * + CAST ( + 65 AS INTEGER ) AS col0 FROM tab1
----
3510
3705
6240
query I rowsort
SELECT ALL col0 * col1 + cor0.col0 FROM tab1 AS cor0
----
1120
704
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5502
SELECT + - col2 + + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5502
SELECT + - col2 + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col0 + col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 55 col1 FROM tab1 AS cor0
----
-2
-41
1
query I rowsort
SELECT DISTINCT - col2 + 19 FROM tab1 cor0
----
-35
-38
-77
query I rowsort
SELECT + tab0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT + cor0.col0 - cor0.col1 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - + 57 * col2 FROM tab0 AS cor0
----
-1881
-4674
-57
query I rowsort
SELECT + 28 + + cor0.col1 * col2 FROM tab2 AS cor0
----
1562
674
865
query I rowsort
SELECT - col2 * - col1 + + ( 28 ) FROM tab2 cor0
----
1562
674
865
query I rowsort
SELECT + - 76 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317
query I rowsort
SELECT - 13 FROM tab1, tab2 cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792
query I rowsort
SELECT DISTINCT tab2.col1 FROM tab2, tab2 cor0, tab2 AS cor1
----
17
31
59
query I rowsort
SELECT + cor0.col2 * - 84 + col0 * + 18 AS col1 FROM tab0 cor0
----
-2340
-5286
546
query I rowsort
SELECT - 84 + 60 AS col1 FROM tab0 AS cor0
----
-24
-24
-24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) * col2 + + ( cor0.col1 ) + col1 * - ( 37 ) * col0 col2 FROM tab2 AS cor0
----
-168187
-46672
-7809
query I rowsort
SELECT ALL tab2.col1 * 5 + - col1 + - col1 AS col0 FROM tab2
----
177
51
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-5518
SELECT + col2 * + 44 + - 62 DIV - col0 AS col0 FROM tab2
----
1144
1196
1672
skipif mysql # not compatible
query I rowsort label-5518
SELECT + col2 * + 44 + - 62 / - col0 AS col0 FROM tab2
----
1144
1196
1672
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 * + col1 col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT col2 + - col1 * tab1.col1 FROM tab1
----
-43
-622
-73
query I rowsort
SELECT DISTINCT col2 + 39 * + col2 AS col0 FROM tab0 AS cor0
----
1320
3280
40
query I rowsort
SELECT ALL + 99 * + col1 - col2 FROM tab0 AS cor0
----
8481
8927
9602
query I rowsort
SELECT DISTINCT 48 * - 48 AS col0 FROM tab2 AS cor0
----
-2304
query I rowsort
SELECT ALL col2 * - ( - col2 ) FROM tab2
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-5525
SELECT DISTINCT + col1 DIV - col1 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-5525
SELECT DISTINCT + col1 / - col1 FROM tab0
----
-1
query I rowsort
SELECT ALL + - ( col0 ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - 42 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329
onlyif mysql # use DIV operator for integer division
query I rowsort label-5528
SELECT ALL - cor0.col1 DIV tab0.col0 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 70ab52182b1b5b0acda51ef06e5b4373
skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL - cor0.col1 / tab0.col0 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 70ab52182b1b5b0acda51ef06e5b4373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5529
SELECT CAST( - col2 AS SIGNED ) AS col0 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-5529
SELECT CAST ( - col2 AS INTEGER ) AS col0 FROM tab1
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5530
SELECT DISTINCT - 43 DIV col1 AS col1 FROM tab2 cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT - 43 / col1 AS col1 FROM tab2 cor0
----
-1
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5531
SELECT DISTINCT + col0 * - cor0.col1 + col2 DIV col2 FROM tab1 AS cor0
----
-1039
-639
-77
skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT + col0 * - cor0.col1 + col2 / col2 FROM tab1 AS cor0
----
-1039
-639
-77
query I rowsort
SELECT ALL + col1 + col0 + + col0 * col0 FROM tab1
----
38
4170
6493
query I rowsort
SELECT DISTINCT + ( col0 ) + col1 + - col1 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL tab2.col2 + col1 * - col2 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT - col2 * + col1 + 1 FROM tab0 AS cor0
----
-2837
-7461
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5536
SELECT col1 * col1 DIV col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-5536
SELECT col1 * col1 / col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - col0 * - tab1.col2 - - 61 AS col2 FROM tab1
----
223
3709
7741
query I rowsort
SELECT DISTINCT 24 * + col1 + ( ( - col1 ) ) AS col0 FROM tab0
----
1978
2093
2231
query I rowsort
SELECT + - ( - cor0.col0 ) * ( - col2 ) * cor0.col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5540
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5540
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL 77 + + 56 FROM tab0, tab1 AS cor0
----
9 values hashing to 8f0ca4cf97de794a4b9271d695e9d991
query I rowsort
SELECT col0 * ( - tab1.col0 * col0 ) AS col0 FROM tab1
----
-262144
-27
-512000
query I rowsort
SELECT col1 + ( - ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
172
182
194
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5544
SELECT + col0 + CAST( + 30 AS SIGNED ) FROM tab2 AS cor0
----
108
109
37
skipif mysql # not compatible
query I rowsort label-5544
SELECT + col0 + CAST ( + 30 AS INTEGER ) FROM tab2 AS cor0
----
108
109
37
query I rowsort
SELECT ALL ( 77 ) FROM tab1, tab2 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5546
SELECT CAST( col2 AS SIGNED ) + - col1 col1 FROM tab1 AS cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5546
SELECT CAST ( col2 AS INTEGER ) + - col1 col1 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5547
SELECT - - ( col2 ) + col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
35
83
98
skipif mysql # not compatible
query I rowsort label-5547
SELECT - - ( col2 ) + col1 / + col2 AS col2 FROM tab0 AS cor0
----
35
83
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5548
SELECT - - 79 DIV cor0.col0 FROM tab2 AS cor0
----
1
1
11
skipif mysql # not compatible
query I rowsort label-5548
SELECT - - 79 / cor0.col0 FROM tab2 AS cor0
----
1
1
11
query I rowsort
SELECT ALL + cor0.col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT 97 + col1 AS col2 FROM tab1 AS cor0
----
107
110
123
query I rowsort
SELECT - - 98 * col1 AS col0 FROM tab0 AS cor0
----
8428
8918
9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( - col2 ) ) + col0 + col0 col1 FROM tab0 AS cor0
----
15
69
96
query I rowsort
SELECT DISTINCT 63 + + 80 FROM tab1 AS cor0
----
143
query I rowsort
SELECT 51 * 51 + - col2 AS col2 FROM tab2 AS cor0
----
2563
2574
2575
query I rowsort
SELECT ALL + ( - col1 ) FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT - 20 AS col2 FROM tab2
----
-20
-20
-20
query I rowsort
SELECT + 58 + + col2 * ( col1 * - col1 ) FROM tab1 AS cor0
----
-16166
-36446
-5642
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5558
SELECT - col2 * - col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5558
SELECT - col2 * - col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5559
SELECT + + cor0.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5559
SELECT + + cor0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col2 + 93 FROM tab0, tab1 AS cor0
----
9 values hashing to 05914312b297696d8f1d59f325ce1fc0
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab1 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 9a402ad2669465fb284445c499a48f2c
query I rowsort
SELECT DISTINCT + col1 * + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT col0 * - ( - col0 ) FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL col2 * ( col0 ) AS col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col0 + 77 AS col0 FROM tab1 AS cor0
----
-3
13
74
query I rowsort
SELECT + col0 + - col2 * + col2 * col2 AS col0 FROM tab0 AS cor0
----
-35913
-551279
34
query I rowsort
SELECT ALL + col0 + 57 * col0 FROM tab0 AS cor0
----
1392
2030
5162
onlyif mysql # use DIV operator for integer division
query I rowsort label-5568
SELECT ALL - col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL - col0 / + col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5569
SELECT DISTINCT col0 * - 39 + + col0 DIV tab0.col0 AS col2 FROM tab0
----
-1364
-3470
-935
skipif mysql # not compatible
query I rowsort label-5569
SELECT DISTINCT col0 * - 39 + + col0 / tab0.col0 AS col2 FROM tab0
----
-1364
-3470
-935
query I rowsort
SELECT DISTINCT + 89 + col0 + - col2 * - col2 * - tab0.col2 AS col2 FROM tab0
----
-35824
-551190
123
query I rowsort
SELECT DISTINCT 61 AS col2 FROM tab1, tab2, tab2 AS cor0
----
61
query I rowsort
SELECT - col2 + ( col0 ) * + col2 FROM tab1
----
108
3591
7584
query I rowsort
SELECT ALL + - ( - col2 ) * - col0 + - col1 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT ALL + 63 * - col1 + + col0 * col1 FROM tab1 AS cor0
----
-1560
10
221
query I rowsort
SELECT + + ( + cor0.col2 ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + - col0 + - 56 FROM tab0 AS cor0
----
-145
-80
-91
query I rowsort
SELECT DISTINCT + + col1 * - col1 * col0 + + 93 + col0 FROM tab1 AS cor0
----
-13347
-1932
-6243
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0 cor1, tab0, tab0 AS cor2
----
3645 values hashing to db9b93cf4fdd5de4106f0487a66ce0a5
onlyif mysql # use DIV operator for integer division
query I rowsort label-5579
SELECT + col0 + - cor0.col0 DIV col2 AS col2 FROM tab0 AS cor0
----
0
24
88
skipif mysql # not compatible
query I rowsort label-5579
SELECT + col0 + - cor0.col0 / col2 AS col2 FROM tab0 AS cor0
----
0
24
88
query I rowsort
SELECT - 32 * - col2 FROM tab0 AS cor0
----
1056
2624
32
query I rowsort
SELECT - - ( + col2 ) + + ( col1 ) FROM tab2 AS cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5582
SELECT DISTINCT - cor0.col1 * + col2 * 35 + col2 + col1 * - CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-23915
-29485
-58266
skipif mysql # not compatible
query I rowsort label-5582
SELECT DISTINCT - cor0.col1 * + col2 * 35 + col2 + col1 * - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-23915
-29485
-58266
query I rowsort
SELECT DISTINCT - 2 * col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT + - 52 * col1 FROM tab2 AS cor0
----
-1612
-3068
-884
query I rowsort
SELECT ALL col2 * cor0.col1 AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + - col0 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5587
SELECT ALL + + col1 * cor0.col2 + CAST( + 18 AS SIGNED ) * col0 * 59 + col1 AS col0 FROM tab1 AS cor0
----
4616
68548
86221
skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL + + col1 * cor0.col2 + CAST ( + 18 AS INTEGER ) * col0 * 59 + col1 AS col0 FROM tab1 AS cor0
----
4616
68548
86221
query I rowsort
SELECT DISTINCT + + col1 + + col0 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - col2 * col0 + col0 AS col0 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT tab1.col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT + col0 + cor0.col2 * + 21 + - 75 FROM tab0 cor0
----
-19
1736
642
query I rowsort
SELECT ALL - ( col2 ) * - cor0.col1 + 58 + col2 * ( - col2 * col0 ) FROM tab1 cor0
----
-207308
-7286
-735974
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5594
SELECT + col2 DIV col1 + col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-5594
SELECT + col2 / col1 + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + 89 - + col0 * col1 AS col0 FROM tab1 cor0
----
-551
-951
11
query I rowsort
SELECT ALL - col1 * col0 + col1 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT - 98 * cor0.col2 FROM tab1 AS cor0
----
-5292
-5586
-9408
query I rowsort
SELECT DISTINCT + col2 * col2 + + ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT DISTINCT + col0 + col2 - col0 * col2 FROM tab2 AS cor0
----
-155
-1924
-2885
query I rowsort
SELECT col1 * - col0 + ( + cor0.col2 ) * col2 AS col0 FROM tab0 AS cor0
----
-1375
-3394
-975
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5601
SELECT - cor0.col0 + + col2 * CAST( - col1 AS SIGNED ) + + cor0.col2 FROM tab1 AS cor0
----
-1232
-1353
-577
skipif mysql # not compatible
query I rowsort label-5601
SELECT - cor0.col0 + + col2 * CAST ( - col1 AS INTEGER ) + + cor0.col2 FROM tab1 AS cor0
----
-1232
-1353
-577
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 col1 FROM tab1
----
52
query I rowsort
SELECT - - cor0.col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT + 64 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5605
SELECT col0 + + col0 DIV col1 AS col1 FROM tab1
----
3
70
86
skipif mysql # not compatible
query I rowsort label-5605
SELECT col0 + + col0 / col1 AS col1 FROM tab1
----
3
70
86
query I rowsort
SELECT DISTINCT - 63 AS col2 FROM tab0 AS cor0
----
-63
query I rowsort
SELECT + 86 - cor0.col0 AS col2 FROM tab1 AS cor0
----
22
6
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) - col0 col0 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5609
SELECT - - CAST( col0 AS SIGNED ) * - col0 + - 40 col2 FROM tab2 AS cor0
----
-6124
-6281
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5609
SELECT - - CAST ( col0 AS INTEGER ) * - col0 + - 40 col2 FROM tab2 AS cor0
----
-6124
-6281
-89
query I rowsort
SELECT + cor0.col1 + cor0.col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT 79 * cor0.col2 + + cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
1304
14399
3183
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5612
SELECT ALL + CAST( 36 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
36
36
36
skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL + CAST ( 36 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
36
36
36
query I rowsort
SELECT - + col1 + + 42 FROM tab2 cor0
----
-17
11
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-5614
SELECT DISTINCT + - 45 DIV - col1 AS col2 FROM tab1 cor0
----
1
3
4
skipif mysql # not compatible
query I rowsort label-5614
SELECT DISTINCT + - 45 / - col1 AS col2 FROM tab1 cor0
----
1
3
4
query I rowsort
SELECT DISTINCT col1 * col1 * + 32 - col1 AS col0 FROM tab1
----
21606
3190
5395
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5616
SELECT + col1 + CAST( NULL AS SIGNED ) + - ( col0 ) / + col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5616
SELECT + col1 + CAST ( NULL AS INTEGER ) + - ( col0 ) / + col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT ALL col1 - tab2.col0 * - col1 FROM tab2
----
1360
248
4661
query I rowsort
SELECT ALL - col1 + col0 - col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ALL 79 + - col0 * tab1.col2 FROM tab1
----
-3569
-7601
-83
query I rowsort
SELECT DISTINCT - ( 66 ) * cor0.col1 FROM tab1 AS cor0
----
-1716
-660
-858
onlyif mysql # use DIV operator for integer division
query I rowsort label-5622
SELECT DISTINCT + col2 DIV - 35 AS col1 FROM tab1 AS cor0
----
-1
-2
skipif mysql # not compatible
query I rowsort label-5622
SELECT DISTINCT + col2 / - 35 AS col1 FROM tab1 AS cor0
----
-1
-2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 22 col2 FROM tab0 AS cor0
----
-1804
-22
-726
query I rowsort
SELECT + 37 + - col0 + - col1 AS col2 FROM tab0 AS cor0
----
-143
-73
-95
query I rowsort
SELECT ALL + col2 * col0 * - col1 + col2 * 22 AS col2 FROM tab1 AS cor0
----
-3024
-35226
-97728
query I rowsort
SELECT DISTINCT 3 * col1 + col1 FROM tab1 AS cor0
----
104
40
52
query I rowsort
SELECT ALL ( + col2 ) + col1 * ( col0 + col2 ) AS col2 FROM tab2 AS cor0
----
1081
2027
6162
query I rowsort
SELECT + - 92 - + col2 * col1 FROM tab1 AS cor0
----
-1340
-1496
-662
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col1 + cor0.col2 col0 FROM tab0 AS cor0
----
63
84
95
query I rowsort
SELECT DISTINCT + - 69 - cor0.col0 FROM tab0 AS cor0
----
-104
-158
-93
query I rowsort
SELECT DISTINCT col0 * + 43 AS col1 FROM tab2
----
301
3354
3397
query I rowsort
SELECT - col1 * col0 + - col0 * - cor0.col0 FROM tab0 cor0
----
-1488
-178
-2170
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5633
SELECT col1 + + CAST( NULL AS SIGNED ) * col2 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-5633
SELECT col1 + + CAST ( NULL AS INTEGER ) * col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5634
SELECT - - 80 DIV ( - col2 + col1 ) AS col1 FROM tab1 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-5634
SELECT - - 80 / ( - col2 + col1 ) AS col1 FROM tab1 AS cor0
----
-1
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5635
SELECT + 53 + - 58 DIV - col2 AS col1 FROM tab0 AS cor0
----
111
53
54
skipif mysql # not compatible
query I rowsort label-5635
SELECT + 53 + - 58 / - col2 AS col1 FROM tab0 AS cor0
----
111
53
54
query I rowsort
SELECT ALL col0 + + 11 AS col1 FROM tab0
----
100
35
46
query I rowsort
SELECT + cor0.col1 * - 68 AS col2 FROM tab2 AS cor0
----
-1156
-2108
-4012
query I rowsort
SELECT - - col0 * col2 + + col2 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5639
SELECT - ( 90 ) * col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5639
SELECT - ( 90 ) * col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5641
SELECT + col0 + + col1 * col2 DIV + col2 AS col1 FROM tab0 cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-5641
SELECT + col0 + + col1 * col2 / + col2 AS col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT 31 + col1 + 84 AS col1 FROM tab1 cor0
----
125
128
141
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5643
SELECT - + col1 - + col0 * + CAST( - 94 AS SIGNED ) FROM tab0 AS cor0
----
2170
3193
8275
skipif mysql # not compatible
query I rowsort label-5643
SELECT - + col1 - + col0 * + CAST ( - 94 AS INTEGER ) FROM tab0 AS cor0
----
2170
3193
8275
query I rowsort
SELECT DISTINCT col2 * - col0 + col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT + + col1 * - col0 + - ( + col0 + + col0 ) AS col2 FROM tab1 AS cor0
----
-1200
-768
-84
query I rowsort
SELECT col1 - + col2 * + col1 AS col0 FROM tab2 cor0
----
-1475
-629
-806
query I rowsort
SELECT 66 + col0 AS col2 FROM tab2 AS cor0
----
144
145
73
query I rowsort
SELECT + 4 AS col0 FROM tab2 cor0
----
4
4
4
query I rowsort
SELECT - col0 * col1 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT col1 * + col0 + + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 * + col0 col1 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT col1 + + 78 AS col2 FROM tab2 cor0
----
109
137
95
query I rowsort
SELECT col0 * 46 + 68 FROM tab0 cor0
----
1172
1678
4162
onlyif mysql # use DIV operator for integer division
query I rowsort label-5654
SELECT + col0 DIV col2 + + 89 FROM tab0 cor0
----
124
89
90
skipif mysql # not compatible
query I rowsort label-5654
SELECT + col0 / col2 + + 89 FROM tab0 cor0
----
124
89
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + cor0.col2 col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + - col0 - 42 FROM tab1 cor0
----
-106
-122
-45
query I rowsort
SELECT ALL - col2 * + 30 + - cor0.col1 FROM tab1 AS cor0
----
-1646
-1720
-2893
onlyif mysql # use DIV operator for integer division
query I rowsort label-5658
SELECT + col0 * ( col2 ) - col1 DIV 82 FROM tab0 AS cor0
----
34
7297
791
skipif mysql # not compatible
query I rowsort label-5658
SELECT + col0 * ( col2 ) - col1 / 82 FROM tab0 AS cor0
----
34
7297
791
query I rowsort
SELECT - + col1 + ( - 27 ) FROM tab2 AS cor0
----
-44
-58
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-5660
SELECT - 99 DIV col0 FROM tab0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-5660
SELECT - 99 / col0 FROM tab0
----
-1
-2
-4
onlyif mysql # use DIV operator for integer division
query I rowsort label-5661
SELECT + col0 DIV + ( col2 ) - col0 FROM tab1 AS cor0
----
-3
-63
-80
skipif mysql # not compatible
query I rowsort label-5661
SELECT + col0 / + ( col2 ) - col0 FROM tab1 AS cor0
----
-3
-63
-80
query I rowsort
SELECT ALL + + col0 + 30 FROM tab0 AS cor0
----
119
54
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 col2 FROM tab0 cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5664
SELECT ALL - cor0.col0 DIV + col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL - cor0.col0 / + col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort
SELECT col2 * CAST ( col2 AS REAL ) * col0 + - ( col0 + col2 ) FROM tab1 AS cor0
----
207815
737104
8691
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5666
SELECT DISTINCT - - col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5666
SELECT DISTINCT - - col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - 71 * 58 * - col1 + + ( - col0 ) FROM tab1 AS cor0
----
107065
41116
53454
query I rowsort
SELECT ALL cor0.col0 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + 46 * cor3.col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 cor2, tab1 AS cor3
----
243 values hashing to 3121f6be9a5d76eb37ea36d8aaff5ae9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 44 col2 FROM tab1
----
10
13
52
query I rowsort
SELECT col0 - - 0 * - col0 AS col2 FROM tab2
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5672
SELECT ALL - CAST( NULL AS SIGNED ) * 29 + - cor1.col2 AS col1 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5672
SELECT ALL - CAST ( NULL AS INTEGER ) * 29 + - cor1.col2 AS col1 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 + col0 col2 FROM tab2 AS cor0
----
-47
24
25
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5674
SELECT + cor0.col1 * - cor0.col0 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5674
SELECT + cor0.col1 * - cor0.col0 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 30 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142
query I rowsort
SELECT ALL 39 * + col1 AS col2 FROM tab0
----
3354
3549
3783
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 col2 FROM tab0
----
12
query I rowsort
SELECT - col0 - + col0 FROM tab1
----
-128
-160
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5679
SELECT 64 DIV col1 AS col2 FROM tab2 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-5679
SELECT 64 / col1 AS col2 FROM tab2 cor0
----
1
2
3
query I rowsort
SELECT + col2 + + 50 AS col1 FROM tab1 AS cor0
----
104
107
146
query I rowsort
SELECT - 65 FROM tab1, tab2 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23
query I rowsort
SELECT + cor0.col2 + 84 * col2 * + col1 FROM tab0 cor0
----
238425
626890
8149
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab2 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 199388980dc5177ebebcfdbc0408ba02
query I rowsort
SELECT ALL + 94 + - 31 * col1 FROM tab2 AS cor0
----
-1735
-433
-867
query I rowsort
SELECT ( col2 ) * cor0.col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + col1 + + ( + col2 ) FROM tab0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + ( col0 ) col1 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL - col2 * ( - col1 ) AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT + ( col0 ) - col2 AS col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT 27 AS col0 FROM tab0
----
27
27
27
query I rowsort
SELECT ALL - + col2 + 30 FROM tab1 AS cor0
----
-24
-27
-66
query I rowsort
SELECT ALL - + col0 + 43 FROM tab2 AS cor0
----
-35
-36
36
query I rowsort
SELECT - 71 AS col0 FROM tab1 AS cor0
----
-71
-71
-71
query I rowsort
SELECT DISTINCT + col1 * col0 * - col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL + cor0.col1 * tab2.col1 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to b80ce76f8664310580a5197b3984e0f7
query I rowsort
SELECT ALL + tab2.col0 - + col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT - 89 * col2 AS col1 FROM tab2 AS cor0
----
-2314
-2403
-3382
query I rowsort
SELECT ALL - + 10 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e
query I rowsort
SELECT - - 48 + col2 FROM tab1 cor0
----
102
105
144
query I rowsort
SELECT - cor0.col0 * 78 FROM tab0, tab1 AS cor0
----
9 values hashing to addd48c7f1edb90d97fc53e913fbcef0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5701
SELECT ALL + ( - col0 * col0 ) + + col2 DIV tab0.col0 AS col0 FROM tab0
----
-1225
-575
-7921
skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL + ( - col0 * col0 ) + + col2 / tab0.col0 AS col0 FROM tab0
----
-1225
-575
-7921
query I rowsort
SELECT 64 + tab1.col1 + + tab1.col2 AS col0 FROM tab1
----
131
144
173
query I rowsort
SELECT DISTINCT 65 * + tab2.col1 + col1 FROM tab2
----
1122
2046
3894
query I rowsort
SELECT col2 + + 25 FROM tab2 AS cor0
----
51
52
63
query I rowsort
SELECT ALL + - col1 * + col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + col0 + - 85 * col2 * + col1 FROM tab1 AS cor0
----
-106000
-119337
-48386
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 * col0 + col0 col0 FROM tab0 AS cor0
----
1163
514
7919
onlyif mysql # use DIV operator for integer division
query I rowsort label-5708
SELECT ALL - col1 DIV + 70 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL - col1 / + 70 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 * 84 + ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
4562
4798
8077
query I rowsort
SELECT + col1 * - cor0.col1 + + col1 * col2 AS col0 FROM tab0 AS cor0
----
-4558
-819
-9312
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col1 + CAST ( - 72 AS REAL ) * col2 FROM tab2 cor0
----
-1813
-1913
-2719
query I rowsort
SELECT ALL col2 + 78 AS col0 FROM tab2 cor0
----
104
105
116
query I rowsort
SELECT DISTINCT - col0 + 81 FROM tab2 AS cor0
----
2
3
74
query I rowsort
SELECT ALL + + col2 + col2 AS col0 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT DISTINCT + + cor0.col1 * + cor0.col1 * col0 FROM tab1 cor0
----
13520
2028
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-5716
SELECT DISTINCT col2 DIV + col0 FROM tab2 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-5716
SELECT DISTINCT col2 / + col0 FROM tab2 AS cor0
----
0
3
query I rowsort
SELECT DISTINCT - col1 + col2 + ( + col2 ) FROM tab2 AS cor0
----
-7
23
59
query I rowsort
SELECT - tab1.col0 * - tab1.col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT 38 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
38
query I rowsort
SELECT ALL col1 * + 82 + - 59 * + col0 + + col1 FROM tab2
----
-3250
2160
295
query I rowsort
SELECT col0 * + 0 + - col1 AS col1 FROM tab1
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-5722
SELECT DISTINCT - col1 DIV - 60 + col1 DIV col2 FROM tab0
----
2
3
98
skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT - col1 / - 60 + col1 / col2 FROM tab0
----
2
3
98
query I rowsort
SELECT tab2.col2 * 3 + + col0 FROM tab2
----
156
193
88
query I rowsort
SELECT ALL + tab1.col2 + + col2 FROM tab1
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5725
SELECT + - col0 + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5725
SELECT + - col0 + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * - col0 + col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT - col1 * col1 + - col2 AS col0 FROM tab0 AS cor0
----
-7429
-8363
-9410
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5728
SELECT - cor0.col2 + + CAST( col2 * + col1 AS SIGNED ) FROM tab2 AS cor0
----
1508
608
810
skipif mysql # not compatible
query I rowsort label-5728
SELECT - cor0.col2 + + CAST ( col2 * + col1 AS INTEGER ) FROM tab2 AS cor0
----
1508
608
810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * 83 + cor0.col0 col2 FROM tab1 AS cor0
----
-246
-5248
-6560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query I rowsort
SELECT DISTINCT col2 + 34 AS col2 FROM tab1 AS cor0
----
130
88
91
query I rowsort
SELECT - - col0 + - col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT - cor0.col2 + + col1 AS col0 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-5734
SELECT + col2 + col2 DIV - cor0.col1 AS col0 FROM tab1 AS cor0
----
52
52
89
skipif mysql # not compatible
query I rowsort label-5734
SELECT + col2 + col2 / - cor0.col1 AS col0 FROM tab1 AS cor0
----
52
52
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5735
SELECT - - cor0.col0 DIV col1 AS col0 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-5735
SELECT - - cor0.col0 / col1 AS col0 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT + ( - cor0.col0 ) * col1 + - col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT + col2 * col2 * - cor0.col0 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT ALL + ( col1 ) * col1 AS col0 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5739
SELECT CAST( + col2 AS SIGNED ) * - col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-5739
SELECT CAST ( + col2 AS INTEGER ) * - col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5740
SELECT + cor0.col0 + ( col1 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5740
SELECT + cor0.col0 + ( col1 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
1113
36
6813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 + + col0 col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT - 90 * + col2 - - col0 AS col0 FROM tab1 cor0
----
-4857
-5066
-8560
query I rowsort
SELECT - 98 * col0 AS col0 FROM tab1 AS cor0
----
-294
-6272
-7840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5745
SELECT ALL cor0.col2 + - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5745
SELECT ALL cor0.col2 + - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL cor0.col1 * + col0 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT + - col1 * col0 * col1 AS col0 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL 52 * + col1 AS col2 FROM tab1 AS cor0
----
1352
520
676
query I rowsort
SELECT + - 7 AS col1 FROM tab1 AS cor0
----
-7
-7
-7
query I rowsort
SELECT DISTINCT col2 - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + 21 - - col1 * tab2.col1 AS col0 FROM tab2
----
310
3502
982
onlyif mysql # use DIV operator for integer division
query I rowsort label-5753
SELECT + col2 DIV - col2 + - tab1.col0 AS col2 FROM tab1
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-5753
SELECT + col2 / - col2 + - tab1.col0 AS col2 FROM tab1
----
-4
-65
-81
query I rowsort
SELECT ALL + + 92 * cor0.col1 FROM tab0 AS cor0
----
7912
8372
8924
onlyif mysql # use DIV operator for integer division
query I rowsort label-5755
SELECT ALL col2 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL col2 / cor0.col2 AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - col2 - - col1 FROM tab0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5757
SELECT ( - col1 ) DIV 15 FROM tab2
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-5757
SELECT ( - col1 ) / 15 FROM tab2
----
-1
-2
-3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5758
SELECT - CAST( NULL AS SIGNED ) * - ( tab2.col1 ) * + CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5758
SELECT - CAST ( NULL AS INTEGER ) * - ( tab2.col1 ) * + CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5759
SELECT + 62 + + col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5759
SELECT + 62 + + col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col1 - cor0.col1 FROM tab0 cor0
----
-172
-182
-194
query I rowsort
SELECT col2 + cor0.col0 * + col0 + - col1 FROM tab0 AS cor0
----
1129
523
7912
query I rowsort
SELECT + ( - 20 * + tab0.col2 ) FROM tab0
----
-1640
-20
-660
query I rowsort
SELECT + tab0.col2 * + col1 AS col1 FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 * col0 col0 FROM tab1
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 col0 FROM tab0
----
-88
-88
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col2 col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT col1 * - col1 + - 99 + col1 FROM tab0 AS cor0
----
-7409
-8289
-9411
query I rowsort
SELECT + - col0 * + cor0.col1 - ( + 7 * cor0.col0 ) FROM tab2 AS cor0
----
-1896
-266
-5148
onlyif mysql # use DIV operator for integer division
query I rowsort label-5769
SELECT + col0 DIV - 28 AS col1 FROM tab1 AS cor0
----
-2
-2
0
skipif mysql # not compatible
query I rowsort label-5769
SELECT + col0 / - 28 AS col1 FROM tab1 AS cor0
----
-2
-2
0
query I rowsort
SELECT - - col0 + cor0.col2 * 44 FROM tab2 AS cor0
----
1195
1222
1751
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5771
SELECT + col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5771
SELECT + col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5772
SELECT DISTINCT - col1 DIV col1 + col1 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-5772
SELECT DISTINCT - col1 / col1 + col1 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT DISTINCT + + col1 * - 95 AS col1 FROM tab2 AS cor0
----
-1615
-2945
-5605
onlyif mysql # use DIV operator for integer division
query I rowsort label-5774
SELECT ALL + col1 + - 37 DIV + 65 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL + col1 + - 37 / + 65 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5775
SELECT ALL col0 + + CAST( 34 + col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
205
70
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5775
SELECT ALL col0 + + CAST ( 34 + col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
205
70
91
query I rowsort
SELECT col2 * + ( col1 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL 19 FROM tab0, tab1 cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 39241ace4c29d5a55052e1665aa36823
query I rowsort
SELECT - + 51 * + col0 FROM tab1 AS cor0
----
-153
-3264
-4080
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + cor0.col2 col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + + ( + 6 ) * col1 FROM tab2 AS cor0
----
102
186
354
query I rowsort
SELECT DISTINCT - 69 * + col2 FROM tab1 AS cor0
----
-3726
-3933
-6624
query I rowsort
SELECT ALL + 7 * - col0 + + col2 FROM tab1 AS cor0
----
-391
-464
33
query I rowsort
SELECT 0 + + col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5784
SELECT DISTINCT ( - col0 ) * col2 + CAST( 1 AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
-188
-3658
-7693
skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT ( - col0 ) * col2 + CAST ( 1 AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
-188
-3658
-7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5785
SELECT CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5785
SELECT CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - ( col2 ) AS col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT + - 86 AS col0 FROM tab0 AS cor0
----
-86
-86
-86
query I rowsort
SELECT DISTINCT - cor0.col1 * + cor0.col1 + + col2 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-7449
-8290
-9505
query I rowsort
SELECT DISTINCT - - cor0.col0 + col2 * + col2 + - col1 * - col0 * - 44 FROM tab0 AS cor0
----
-149344
-349543
-89703
query I rowsort
SELECT + + col0 * col2 * + col0 + - col0 AS col2 FROM tab2 AS cor0
----
1316
158106
237079
query I rowsort
SELECT ALL - 38 * 39 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a4294c5403a2144fdf9e6fe508a9cba7
query I rowsort
SELECT ( + col2 ) * ( - col1 ) - col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT - col0 * col0 + col0 AS col1 FROM tab1 cor0
----
-4032
-6
-6320
query I rowsort
SELECT + 58 * - 54 FROM tab1, tab1 cor0, tab2 cor1
----
27 values hashing to 4818a5d9a0be3ade4701c13b2286717b
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1, tab0 cor0, tab2 AS cor1
----
24
35
89
query I rowsort
SELECT DISTINCT - ( 2 ) * col1 FROM tab0
----
-172
-182
-194
query I rowsort
SELECT col1 * - 93 + 90 FROM tab0 AS cor0
----
-7908
-8373
-8931
query I rowsort
SELECT + - col0 + + col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT col0 + + 34 FROM tab1 AS cor0
----
114
37
98
query I rowsort
SELECT DISTINCT - tab1.col0 AS col1 FROM tab1, tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT tab2.col1 + col2 * col0 * - tab2.col2 AS col1 FROM tab2
----
-114059
-5072
-52669
query I rowsort
SELECT DISTINCT + 75 * + col2 AS col1 FROM tab1 AS cor0
----
4050
4275
7200
query I rowsort
SELECT + ( 16 ) AS col1 FROM tab2 AS cor0
----
16
16
16
onlyif mysql # use DIV operator for integer division
query I rowsort label-5804
SELECT DISTINCT col0 + 41 * - tab2.col0 + col2 * 71 DIV col0 col0 FROM tab2
----
-3097
-3126
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5804
SELECT DISTINCT col0 + 41 * - tab2.col0 + col2 * 71 / col0 col0 FROM tab2
----
-3097
-3126
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5805
SELECT - col2 + col2 DIV 3 AS col1 FROM tab0 AS cor0
----
-1
-22
-55
skipif mysql # not compatible
query I rowsort label-5805
SELECT - col2 + col2 / 3 AS col1 FROM tab0 AS cor0
----
-1
-22
-55
query I rowsort
SELECT + 63 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5807
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-5807
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
query I rowsort
SELECT + col0 + + 75 * + col2 AS col1 FROM tab0
----
110
2499
6239
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 + 20 * + col1 col2 FROM tab2 AS cor0
----
1457
2714
986
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - cor0.col2 col2 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5811
SELECT ALL + col2 + - CAST( - 8 AS SIGNED ) FROM tab2 AS cor0
----
34
35
46
skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL + col2 + - CAST ( - 8 AS INTEGER ) FROM tab2 AS cor0
----
34
35
46
query I rowsort
SELECT - col0 * 58 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-375
-4465
-4565
onlyif mysql # use DIV operator for integer division
query I rowsort label-5813
SELECT DISTINCT col2 DIV 45 + + col0 AS col1 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-5813
SELECT DISTINCT col2 / 45 + + col0 AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + + col1 * cor0.col1 * 84 FROM tab2 AS cor0
----
24276
292404
80724
query I rowsort
SELECT DISTINCT - cor0.col0 + - cor0.col1 * + 36 * col1 AS col1 FROM tab0 AS cor0
----
-266280
-298205
-338759
query I rowsort
SELECT ALL - cor0.col0 + 41 * - col2 FROM tab1 cor0
----
-2217
-2401
-4016
query I rowsort
SELECT DISTINCT - + col2 + - ( + ( col1 ) ) * - cor0.col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT DISTINCT + col2 * - col2 + col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT ALL col0 * - col0 + col2 AS col2 FROM tab2 AS cor0
----
-22
-6058
-6203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * cor0.col1 col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL col0 * - 30 - col1 FROM tab2 AS cor0
----
-2387
-2399
-241
onlyif mysql # use DIV operator for integer division
query I rowsort label-5822
SELECT col0 DIV CAST( cor0.col1 AS SIGNED ) - col0 AS col1 FROM tab2 AS cor0
----
-7
-75
-77
skipif mysql # not compatible
query I rowsort label-5822
SELECT col0 / CAST ( cor0.col1 AS INTEGER ) - col0 AS col1 FROM tab2 AS cor0
----
-7
-75
-77
query I rowsort
SELECT ALL - col2 + ( 35 ) FROM tab0 cor0
----
-47
2
34
query I rowsort
SELECT DISTINCT + - col1 + - 53 AS col0 FROM tab2 AS cor0
----
-112
-70
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-5825
SELECT ALL - col2 * + CAST( + col2 AS SIGNED ) - col0 DIV 34 FROM tab0 AS cor0
----
-1089
-2
-6726
skipif mysql # not compatible
query I rowsort label-5825
SELECT ALL - col2 * + CAST ( + col2 AS INTEGER ) - col0 / 34 FROM tab0 AS cor0
----
-1089
-2
-6726
query I rowsort
SELECT - col0 * 90 * col2 FROM tab0 AS cor0
----
-3150
-656820
-71280
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col2 col2 FROM tab2 AS cor0
----
-52
-54
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-5828
SELECT - col0 * col0 * + col2 + + col2 * 86 DIV + col2 AS col2 FROM tab1 AS cor0
----
-233386
-400
-614314
skipif mysql # not compatible
query I rowsort label-5828
SELECT - col0 * col0 * + col2 + + col2 * 86 / + col2 AS col2 FROM tab1 AS cor0
----
-233386
-400
-614314
query I rowsort
SELECT DISTINCT - cor0.col1 * + ( + col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - cor0.col2 + col2 * + col2 FROM tab2 AS cor0
----
1406
650
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-5831
SELECT ALL + col0 DIV 79 - col2 FROM tab0 AS cor0
----
-1
-33
-81
skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL + col0 / 79 - col2 FROM tab0 AS cor0
----
-1
-33
-81
query I rowsort
SELECT - ( + 89 ) * col0 * - 13 + col1 FROM tab0 AS cor0
----
103064
27854
40592
query I rowsort
SELECT - 13 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792
query I rowsort
SELECT ALL - ( cor0.col0 ) + + cor0.col2 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT ALL - col0 + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT - 0 * 82 + cor0.col2 * + col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab1, tab0 AS cor0, tab2 cor1, tab2, tab0 AS cor2
----
7
78
79
query I rowsort
SELECT ALL - col2 * - col2 + - 51 AS col1 FROM tab1 AS cor0
----
2865
3198
9165
onlyif mysql # use DIV operator for integer division
query I rowsort label-5839
SELECT ALL + - 67 DIV + col0 + - col2 FROM tab2 AS cor0
----
-26
-36
-38
skipif mysql # not compatible
query I rowsort label-5839
SELECT ALL + - 67 / + col0 + - col2 FROM tab2 AS cor0
----
-26
-36
-38
query I rowsort
SELECT ALL 42 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
query I rowsort
SELECT ALL tab1.col0 - + col0 AS col0 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5842
SELECT - 57 DIV col0 + - tab2.col0 + - 4 AS col0 FROM tab2
----
-19
-82
-83
skipif mysql # not compatible
query I rowsort label-5842
SELECT - 57 / col0 + - tab2.col0 + - 4 AS col0 FROM tab2
----
-19
-82
-83
query I rowsort
SELECT ALL 0 + col0 FROM tab1
----
3
64
80
query I rowsort
SELECT + 54 * col2 FROM tab0
----
1782
4428
54
query I rowsort
SELECT - 33 + - col1 * tab2.col0 + + 99 FROM tab2
----
-1277
-151
-4536
query I rowsort
SELECT ALL - 87 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23
query I rowsort
SELECT + - col1 * - col2 * - 61 - cor0.col0 AS col2 FROM tab1 AS cor0
----
-34834
-76208
-85647
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 57 * + col2 * col2 col1 FROM tab0 AS cor0
----
22
383179
62049
onlyif mysql # use DIV operator for integer division
query I rowsort label-5849
SELECT col0 * tab1.col2 + 7 DIV 96 FROM tab1
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-5849
SELECT col0 * tab1.col2 + 7 / 96 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL - tab1.col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
onlyif mysql # use DIV operator for integer division
query I rowsort label-5851
SELECT + col1 DIV + ( + col1 * + col2 ) FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5851
SELECT + col1 / + ( + col1 * + col2 ) FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + ( + col1 + col0 ) * + ( 27 ) AS col0 FROM tab0
----
2994
3599
4949
query I rowsort
SELECT DISTINCT + tab1.col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT - - col0 + - cor0.col1 + + col2 AS col1 FROM tab1 AS cor0
----
111
163
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 * cor0.col2 col0 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT col2 + 15 * + col2 * col0 FROM tab0 AS cor0
----
109552
11913
526
query I rowsort
SELECT ALL - col2 * + ( col0 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - 95 FROM tab0, tab0 AS cor0, tab1 cor1, tab1, tab1 AS cor2
----
243 values hashing to 7f375e73ca6bbe6b79001c2cbb1efee5
query I rowsort
SELECT - - 96 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
onlyif mysql # use DIV operator for integer division
query I rowsort label-5861
SELECT DISTINCT - col1 DIV + 52 FROM tab2
----
-1
0
skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT - col1 / + 52 FROM tab2
----
-1
0
query I rowsort
SELECT ALL ( - 59 ) * + col2 FROM tab0
----
-1947
-4838
-59
query I rowsort
SELECT ALL ( - ( col1 ) ) AS col0 FROM tab1
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5864
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 * + tab2.col0 AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-5864
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 * + tab2.col0 AS col2 FROM tab2
----
NULL
query I rowsort
SELECT ALL col0 * 94 AS col0 FROM tab0
----
2256
3290
8366
query I rowsort
SELECT ALL + + col2 + + 22 FROM tab0 AS cor0
----
104
23
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( cor0.col2 ) * col2 + col0 + col0 * - col1 col2 FROM tab2 AS cor0
----
-3848
180
519
query I rowsort
SELECT 68 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 7ff6433dda3248dce73040b2c590f3da
query I rowsort
SELECT DISTINCT - + 93 * cor0.col0 FROM tab1 AS cor0
----
-279
-5952
-7440
query I rowsort
SELECT - ( + 19 ) FROM tab2
----
-19
-19
-19
query I rowsort
SELECT + 34 + col1 AS col0 FROM tab2 AS cor0
----
51
65
93
query I rowsort
SELECT ALL - cor0.col0 * col1 + + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT + - cor0.col2 * + col0 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-5874
SELECT - col1 DIV cor0.col0 FROM tab0 cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-5874
SELECT - col1 / cor0.col0 FROM tab0 cor0
----
-1
-2
-3
query I rowsort
SELECT ALL - col0 * col1 * - col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT + - col0 + - col1 + col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + - 67 + - col1 * cor0.col1 FROM tab0 AS cor0
----
-7463
-8348
-9476
query I rowsort
SELECT DISTINCT - 34 AS col2 FROM tab2 AS cor0
----
-34
query I rowsort
SELECT col0 * cor0.col1 + col2 * - col2 FROM tab0 AS cor0
----
1375
3394
975
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5880
SELECT + col0 + + col1 * col2 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5880
SELECT + col0 + + col1 * col2 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - + col0 + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT ALL - + 49 * - 69 FROM tab2 AS cor0
----
3381
3381
3381
query I rowsort
SELECT - - 27 * 47 FROM tab1 AS cor0
----
1269
1269
1269
query I rowsort
SELECT + + 24 * col0 FROM tab2 cor0
----
168
1872
1896
query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL + - col2 * - col0 + ( + ( col1 ) ) + col0 AS col2 FROM tab2 AS cor0
----
2165
227
3098
query I rowsort
SELECT + + col0 + col2 * ( + col1 * col1 ) - col0 AS col0 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT - 70 + col0 AS col2 FROM tab0 AS cor0
----
-35
-46
19
query I rowsort
SELECT - col2 * col1 * + col1 - + col2 AS col1 FROM tab2 cor0
----
-11020
-25974
-90532
query I rowsort
SELECT ( col0 * col0 ) + tab0.col2 FROM tab0
----
1226
609
8003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * col0 col0 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5892
SELECT cor0.col0 * CAST( NULL AS DECIMAL ) + + col2 * + col0 * - ( + col2 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5892
SELECT cor0.col0 * CAST ( NULL AS REAL ) + + col2 * + col0 * - ( + col2 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 74 AS col0 FROM tab1
----
74
74
74
query I rowsort
SELECT - - 90 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 8d4d13f65f86e1b26b6004a6bdc662b3
query I rowsort
SELECT - col2 * - 7 + + col0 AS col2 FROM tab1 cor0
----
381
463
752
query I rowsort
SELECT DISTINCT - col2 * - col2 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT + col1 * 77 AS col1 FROM tab2
----
1309
2387
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-5899
SELECT ALL + col2 + + tab0.col2 DIV - ( - col0 ) AS col1 FROM tab0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-5899
SELECT ALL + col2 + + tab0.col2 / - ( - col0 ) AS col1 FROM tab0
----
1
34
82
query I rowsort
SELECT tab1.col2 + - col0 AS col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT tab0.col2 - tab0.col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT - - cor0.col2 * + 21 AS col2 FROM tab1 AS cor0
----
1134
1197
2016
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 55 ) * + col1 * + 14 col0 FROM tab2 cor0
----
-13090
-23870
-45430
query I rowsort
SELECT + 97 + + 40 FROM tab0 AS cor0
----
137
137
137
query I rowsort
SELECT + 66 AS col0 FROM tab0
----
66
66
66
query I rowsort
SELECT DISTINCT + 48 * + tab2.col2 FROM tab2
----
1248
1296
1824
query I rowsort
SELECT DISTINCT + 44 * - col1 + col2 * col2 AS col0 FROM tab1 AS cor0
----
1772
2809
8644
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5908
SELECT 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-5908
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - 84 * - ( - col1 ) AS col2 FROM tab1 AS cor0
----
-1092
-2184
-840
query I rowsort
SELECT DISTINCT + + 73 AS col0 FROM tab2 cor0
----
73
query I rowsort
SELECT DISTINCT + col0 + - ( cor0.col2 ) + col1 FROM tab2 AS cor0
----
11
111
58
query I rowsort
SELECT - cor0.col0 * + cor0.col2 AS col0 FROM tab2 cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * col1 col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col0 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT DISTINCT - 45 * - ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
1170
1215
1710
query I rowsort
SELECT + + 96 * col1 AS col1 FROM tab1 cor0
----
1248
2496
960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5917
SELECT - CAST( NULL AS DECIMAL ) * col2 * - col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5917
SELECT - CAST ( NULL AS REAL ) * col2 * - col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 27 col1 FROM tab1
----
27
query I rowsort
SELECT 62 * cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f18355edd105fcd558684f1dc1ba3a02
query I rowsort
SELECT + + ( - col0 ) * 2 AS col2 FROM tab0 cor0
----
-178
-48
-70
query I rowsort
SELECT col0 * 6 + cor0.col2 FROM tab1 AS cor0
----
441
576
72
query I rowsort
SELECT - col0 + cor0.col2 * + col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT col1 + 65 FROM tab0 AS cor0
----
151
156
162
query I rowsort
SELECT 39 AS col0 FROM tab2
----
39
39
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-5925
SELECT ALL - col1 * cor0.col2 + 7 DIV col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL - col1 * cor0.col2 + 7 / col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL col2 * - col2 + - 13 FROM tab0 AS cor0
----
-1102
-14
-6737
query I rowsort
SELECT + col2 * + 17 AS col0 FROM tab1 cor0
----
1632
918
969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col1 FROM tab2, tab2 cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a
query I rowsort
SELECT - - 79 AS col0 FROM tab1 AS cor0
----
79
79
79
query I rowsort
SELECT DISTINCT + ( col2 ) + col2 AS col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL - 83 AS col1 FROM tab0 AS cor0
----
-83
-83
-83
query I rowsort
SELECT ALL - col0 + ( cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - col0 + - 33 FROM tab1 AS cor0
----
-113
-36
-97
query I rowsort
SELECT DISTINCT + 9 + + 81 FROM tab2 AS cor0
----
90
query I rowsort
SELECT ALL - - ( col2 ) * col2 + 17 AS col2 FROM tab2 AS cor0
----
1461
693
746
query I rowsort
SELECT ALL 38 * ( + col1 ) FROM tab0 AS cor0
----
3268
3458
3686
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 - col1 * + col2 col2 FROM tab0 cor0
----
-15561
-3492
-4902
query I rowsort
SELECT DISTINCT - - col1 + - col2 + col2 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5939
SELECT DISTINCT - - CAST( 57 AS SIGNED ) FROM tab2 AS cor0
----
57
skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT - - CAST ( 57 AS INTEGER ) FROM tab2 AS cor0
----
57
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT 3 + col2 * col2 FROM tab1 AS cor0
----
2919
3252
9219
query I rowsort
SELECT + + cor0.col2 * cor0.col2 + col1 + + col1 * + col2 AS col2 FROM tab0 AS cor0
----
14277
195
4013
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 + col1 col2 FROM tab1 AS cor0
----
62
65
78
query I rowsort
SELECT ALL - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT col2 - col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL + col0 - col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + 31 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
query I rowsort
SELECT col0 * 42 + + col1 AS col2 FROM tab1 AS cor0
----
152
2698
3373
query I rowsort
SELECT - + col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT col0 * - 95 - 77 AS col0 FROM tab1 AS cor0
----
-362
-6157
-7677
query I rowsort
SELECT + col0 * 36 + col2 * + col0 FROM tab1 AS cor0
----
10560
270
5952
query I rowsort
SELECT DISTINCT col2 * 15 AS col1 FROM tab1 cor0
----
1440
810
855
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5954
SELECT DISTINCT - - CAST( 82 AS SIGNED ) + - col2 AS col1 FROM tab1 AS cor0
----
-14
25
28
skipif mysql # not compatible
query I rowsort label-5954
SELECT DISTINCT - - CAST ( 82 AS INTEGER ) + - col2 AS col1 FROM tab1 AS cor0
----
-14
25
28
query I rowsort
SELECT - col0 + + 24 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1494
-487
-751
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL + + ( 5 ) * + col1 + + col2 * ( - col2 + ( col0 ) ) FROM tab2 AS cor0
----
-385
1643
1647
onlyif mysql # use DIV operator for integer division
query I rowsort label-5958
SELECT ALL + col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5958
SELECT ALL + col0 / - col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - + 15 + col1 AS col0 FROM tab1 AS cor0
----
-2
-5
11
query I rowsort
SELECT DISTINCT cor0.col1 + - col0 * col2 FROM tab2 AS cor0
----
-158
-1969
-2985
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5961
SELECT ALL - CAST( col2 AS SIGNED ) * cor0.col2 + col0 FROM tab2 AS cor0
----
-1365
-598
-722
skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL - CAST ( col2 AS INTEGER ) * cor0.col2 + col0 FROM tab2 AS cor0
----
-1365
-598
-722
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5962
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab1, tab2, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-5962
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab1, tab2, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT col0 * + 0 + - col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT + 53 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( 91 AS REAL ) col2 FROM tab1 AS cor0
----
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5966
SELECT CAST( col0 AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-5966
SELECT CAST ( col0 AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + 37 + + col2 FROM tab0 AS cor0
----
119
38
70
query I rowsort
SELECT - 68 * col0 FROM tab0 AS cor0
----
-1632
-2380
-6052
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5969
SELECT ALL cor0.col0 + cor0.col2 * + CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL cor0.col0 + cor0.col2 * + CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL tab0.col1 * - tab0.col0 * col1 AS col1 FROM tab0
----
-177504
-329315
-737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col2 col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
-26
-27
-38
query I rowsort
SELECT - 49 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae
query I rowsort
SELECT ( col2 * - col1 ) FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL - ( 82 ) * col0 - + ( col2 ) * + col0 FROM tab2 AS cor0
----
-763
-8424
-9480
query I rowsort
SELECT ALL 49 * 36 * col0 AS col0 FROM tab2
----
12348
137592
139356
query I rowsort
SELECT DISTINCT - col1 + - col2 * ( col2 ) FROM tab2
----
-1461
-735
-760
query I rowsort
SELECT ALL + col2 + - col0 * + 82 AS col1 FROM tab1
----
-192
-5191
-6464
query I rowsort
SELECT + col1 + + col1 + ( col1 ) * col1 AS col1 FROM tab0
----
7568
8463
9603
query I rowsort
SELECT DISTINCT + ( + tab2.col0 ) + tab2.col1 * col1 * col2 + ( + col0 * + col1 + - 14 ) AS col1 FROM tab2
----
12390
26157
95172
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5980
SELECT + col2 * CAST( NULL AS SIGNED ) + + cor0.col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5980
SELECT + col2 * CAST ( NULL AS INTEGER ) + + cor0.col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( - col1 ) * ( col2 * + tab2.col2 + - col1 ) AS col1 FROM tab2
----
-21638
-24259
-36403
query I rowsort
SELECT - + 60 + cor0.col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 718feba0500b7d35b349c2d1119ba2ec
query I rowsort
SELECT + col2 * - col0 * 84 AS col1 FROM tab2
----
-15876
-170352
-252168
onlyif mysql # use DIV operator for integer division
query I rowsort label-5984
SELECT DISTINCT tab1.col0 + + col1 DIV col2 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT tab1.col0 + + col1 / col2 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT col1 + col2 * - col0 + col2 * - col0 FROM tab1
----
-15347
-298
-7286
onlyif mysql # use DIV operator for integer division
query I rowsort label-5986
SELECT + col1 + col1 DIV col0 FROM tab2 AS cor0
----
17
35
59
skipif mysql # not compatible
query I rowsort label-5986
SELECT + col1 + col1 / col0 FROM tab2 AS cor0
----
17
35
59
query I rowsort
SELECT + col2 * - col2 + ( - col2 ) + cor0.col1 FROM tab1 AS cor0
----
-2944
-3296
-9299
query I rowsort
SELECT DISTINCT + + col1 * col1 + - 34 * - col0 AS col0 FROM tab1 AS cor0
----
2276
2889
778
query I rowsort
SELECT DISTINCT col1 + + ( col1 * col1 ) FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT - - col0 + + col1 * col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL col0 + col0 * + col0 AS col1 FROM tab1 cor0
----
12
4160
6480
query I rowsort
SELECT DISTINCT + cor0.col2 + - col1 * col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT + col1 * + 72 FROM tab1 AS cor0
----
1872
720
936
onlyif mysql # use DIV operator for integer division
query I rowsort label-5994
SELECT 84 * col0 - col1 DIV - 10 FROM tab2
----
591
6557
6637
skipif mysql # not compatible
query I rowsort label-5994
SELECT 84 * col0 - col1 / - 10 FROM tab2
----
591
6557
6637
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col1 FROM tab2 AS cor0
----
53
53
53
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to b050f98b2d07c1b092b73ecf6b5b347c
query I rowsort
SELECT - 88 * + col0 * col2 + + col0 AS col2 FROM tab0 AS cor0
----
-3045
-642135
-69672
query I rowsort
SELECT + 82 + col0 FROM tab1 AS cor0
----
146
162
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-5999
SELECT + - col1 DIV 55 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5999
SELECT + - col1 / 55 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 * - 97 AS col2 FROM tab0 cor0
----
2328
3395
8633
query I rowsort
SELECT DISTINCT col1 * - col1 * + 80 AS col2 FROM tab0 AS cor0
----
-591680
-662480
-752720
query I rowsort
SELECT - 38 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6003
SELECT ALL - CAST( NULL AS SIGNED ) col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL - CAST ( NULL AS INTEGER ) col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT + cor0.col2 * 30 FROM tab1, tab0 AS cor0
----
2460
30
990
query I rowsort
SELECT ALL + col0 * - col2 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6006
SELECT ALL + - col2 DIV - col1 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL + - col2 / - col1 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT - ( cor0.col2 ) * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-6008
SELECT - col1 DIV + col2 + - col2 * cor0.col0 col0 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6008
SELECT - col1 / + col2 + - col2 * cor0.col0 col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - col1 * col0 + - col2 AS col0 FROM tab2 cor0
----
-1381
-244
-4628
query I rowsort
SELECT - - 97 + cor0.col2 AS col1 FROM tab2 AS cor0
----
123
124
135
query I rowsort
SELECT col1 + - 2 + col0 FROM tab1
----
27
72
91
query I rowsort
SELECT + col1 - - cor0.col2 * - col1 * - 58 AS col0 FROM tab2 AS cor0
----
37485
48577
89031
query I rowsort
SELECT - - col0 * col0 + + col1 * - 86 FROM tab1 AS cor0
----
-2227
3236
5282
query I rowsort
SELECT col0 + col1 + col0 AS col1 FROM tab2 AS cor0
----
175
215
45
query I rowsort
SELECT + 54 FROM tab1, tab1 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
onlyif mysql # use DIV operator for integer division
query I rowsort label-6016
SELECT - 41 DIV + col2 + - col2 col0 FROM tab0 AS cor0
----
-34
-42
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6016
SELECT - 41 / + col2 + - col2 col0 FROM tab0 AS cor0
----
-34
-42
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6017
SELECT ALL + col1 * + col1 + 54 DIV col1 col0 FROM tab2 AS cor0
----
292
3481
962
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL + col1 * + col1 + 54 / col1 col0 FROM tab2 AS cor0
----
292
3481
962
query I rowsort
SELECT + cor0.col0 * - col1 + 44 FROM tab0 cor0
----
-2020
-3351
-8055
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 - col2 * - ( 93 ) col2 FROM tab0 AS cor0
----
-4
2983
7535
query I rowsort
SELECT ALL + col0 * col2 + + ( + 11 ) FROM tab0 AS cor0
----
46
7309
803
onlyif mysql # use DIV operator for integer division
query I rowsort label-6021
SELECT ALL - 38 DIV col1 col2 FROM tab1 AS cor0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL - 38 / col1 col2 FROM tab1 AS cor0
----
-1
-2
-3
query I rowsort
SELECT - 36 + col2 * col2 AS col2 FROM tab0 AS cor0
----
-35
1053
6688
query I rowsort
SELECT ALL - cor0.col1 * col1 + cor0.col1 FROM tab1 cor0
----
-156
-650
-90
query I rowsort
SELECT DISTINCT - 37 + col2 AS col0 FROM tab1 cor0
----
17
20
59
query I rowsort
SELECT DISTINCT - - 83 + + col0 FROM tab2 AS cor0
----
161
162
90
query I rowsort
SELECT ALL - col2 * col2 - tab0.col2 FROM tab0
----
-1122
-2
-6806
query I rowsort
SELECT ALL - cor0.col0 - - tab1.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 62ddc90ca27823261d1fd426a70a2985
query I rowsort
SELECT DISTINCT - 63 AS col2 FROM tab1, tab1 AS cor0
----
-63
query I rowsort
SELECT DISTINCT - col1 * - col2 * + col1 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT ALL - 15 * - ( - col0 ) AS col1 FROM tab0
----
-1335
-360
-525
query I rowsort
SELECT ALL 32 + + col2 FROM tab0
----
114
33
65
query I rowsort
SELECT + + col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - col2 - col2 FROM tab1 cor0
----
-108
-114
-192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6034
SELECT col1 * col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6034
SELECT col1 * col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( 26 ) AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT ALL + col1 * ( col0 ) FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 81 ) col1 FROM tab2, tab0 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT col0 * + 63 * col2 AS col0 FROM tab0 AS cor0
----
2205
459774
49896
query I rowsort
SELECT DISTINCT - 74 - tab1.col2 AS col1 FROM tab1
----
-128
-131
-170
query I rowsort
SELECT ALL - col0 * - 4 - tab1.col1 * - col1 FROM tab1
----
356
489
688
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to bce5cbf48f4a41569415c085ae91ae7c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col2 FROM tab2, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT DISTINCT + ( col2 ) * + col2 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-6044
SELECT - 56 + col2 DIV col2 FROM tab0 AS cor0
----
-55
-55
-55
skipif mysql # not compatible
query I rowsort label-6044
SELECT - 56 + col2 / col2 FROM tab0 AS cor0
----
-55
-55
-55
query I rowsort
SELECT ALL + + col2 + - col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT cor0.col0 + + col1 * - cor0.col0 + + 25 AS col2 FROM tab2 cor0
----
-1239
-185
-4499
query I rowsort
SELECT + col2 * + 12 AS col2 FROM tab1 AS cor0
----
1152
648
684
query I rowsort
SELECT ALL + col1 + - 35 AS col0 FROM tab0 cor0
----
51
56
62
query I rowsort
SELECT 82 + cor0.col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 2c9a2d14e800db812eb067f18fa25dcc
query I rowsort
SELECT + 28 + + col0 FROM tab1
----
108
31
92
query I rowsort
SELECT + col0 + + col1 * + col2 AS col2 FROM tab2
----
1612
725
844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
query I rowsort
SELECT DISTINCT 25 FROM tab1, tab2 AS cor0
----
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-6054
SELECT DISTINCT + col0 DIV - ( + col0 ) + - col0 AS col0 FROM tab2
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-6054
SELECT DISTINCT + col0 / - ( + col0 ) + - col0 AS col0 FROM tab2
----
-79
-8
-80
query I rowsort
SELECT DISTINCT + + col2 + 82 * cor0.col1 FROM tab1 AS cor0
----
1162
2186
877
onlyif mysql # use DIV operator for integer division
query I rowsort label-6056
SELECT + - col1 DIV col0 AS col2 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-6056
SELECT + - col1 / col0 AS col2 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT ALL - - col0 * + col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + + col0 * 87 AS col1 FROM tab0 AS cor0
----
2088
3045
7743
onlyif mysql # use DIV operator for integer division
query I rowsort label-6059
SELECT ALL - - col0 + - col0 DIV + col2 FROM tab0 AS cor0
----
0
24
88
skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL - - col0 + - col0 / + col2 FROM tab0 AS cor0
----
0
24
88
query I rowsort
SELECT col1 + - 32 * - col2 * - 25 FROM tab2 AS cor0
----
-20741
-21569
-30383
query I rowsort
SELECT DISTINCT col0 * cor0.col2 + - col0 AS col1 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT ALL + ( + 55 ) + - col1 FROM tab0
----
-31
-36
-42
query I rowsort
SELECT DISTINCT + ( + col0 ) * - col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT 56 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT 38 * - col1 + col0 AS col2 FROM tab0
----
-3244
-3369
-3651
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 + - col0 col0 FROM tab2 cor0
----
-103
-174
-175
query I rowsort
SELECT - col1 * col1 + + col1 * 57 FROM tab2 AS cor0
----
-118
680
806
query I rowsort
SELECT + + cor0.col2 * - col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - col2 * col0 * col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT ( + cor0.col2 ) * - col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL col1 + col2 * col0 AS col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT - - 71 + - cor0.col1 * + 41 FROM tab2 AS cor0
----
-1200
-2348
-626
query I rowsort
SELECT DISTINCT - 16 AS col1 FROM tab1 AS cor0
----
-16
onlyif mysql # use DIV operator for integer division
query I rowsort label-6074
SELECT DISTINCT 35 DIV + col0 FROM tab1
----
0
11
skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT 35 / + col0 FROM tab1
----
0
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 * + col1 + col0 col2 FROM tab0 AS cor0
----
-244044
-678953
-9374
query I rowsort
SELECT DISTINCT - + 60 + col2 FROM tab2 AS cor0
----
-22
-33
-34
query I rowsort
SELECT + 32 * + col1 + + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-5009
1879
2176
query I rowsort
SELECT + 33 + - col2 FROM tab1 cor0
----
-21
-24
-63
query I rowsort
SELECT ALL + col2 * - cor0.col2 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT ALL ( - 1 ) FROM tab2, tab1 cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
query I rowsort
SELECT + ( 93 ) + col1 * cor0.col1 FROM tab2 AS cor0
----
1054
3574
382
query I rowsort
SELECT ALL + ( 25 ) + col0 * col2 FROM tab2 AS cor0
----
2053
214
3027
query I rowsort
SELECT DISTINCT + 77 * - 80 * col0 FROM tab2 AS cor0
----
-43120
-480480
-486640
query I rowsort
SELECT tab0.col1 + - tab0.col0 + col0 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT tab0.col1 - + col0 AS col2 FROM tab0
----
2
62
query I rowsort
SELECT ( - col1 ) + + col1 * + 93 FROM tab0 AS cor0
----
7912
8372
8924
onlyif mysql # use DIV operator for integer division
query I rowsort label-6087
SELECT - col0 * cor0.col2 * col1 + - 54 DIV + 30 AS col1 FROM tab0 AS cor0
----
-3396
-664119
-68113
skipif mysql # not compatible
query I rowsort label-6087
SELECT - col0 * cor0.col2 * col1 + - 54 / + 30 AS col1 FROM tab0 AS cor0
----
-3396
-664119
-68113
query I rowsort
SELECT DISTINCT + col0 + ( - col1 ) * - col1 FROM tab1
----
164
249
679
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6089
SELECT DISTINCT col1 * + col0 + col1 * - CAST( + 70 AS SIGNED ) AS col0 FROM tab1
----
-1742
-60
130
skipif mysql # not compatible
query I rowsort label-6089
SELECT DISTINCT col1 * + col0 + col1 * - CAST ( + 70 AS INTEGER ) AS col0 FROM tab1
----
-1742
-60
130
query I rowsort
SELECT - col1 * col0 * - col1 AS col2 FROM tab2 cor0
----
22831
271518
6727
query I rowsort
SELECT ( + 48 ) FROM tab0
----
48
48
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-6092
SELECT col1 * ( + col1 + - col1 ) DIV ( + col0 * col1 ) AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6092
SELECT col1 * ( + col1 + - col1 ) / ( + col0 * col1 ) AS col2 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6093
SELECT ALL 33 DIV 58 + col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL 33 / 58 + col0 FROM tab1
----
3
64
80
query I rowsort
SELECT + 65 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
onlyif mysql # use DIV operator for integer division
query I rowsort label-6095
SELECT - ( col2 ) DIV + col1 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-6095
SELECT - ( col2 ) / + col1 FROM tab2
----
-2
0
0
query I rowsort
SELECT - 4 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd
query I rowsort
SELECT ALL + col2 * ( col0 ) * col1 AS col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT + 59 * - col0 - - col2 FROM tab2 AS cor0
----
-386
-4576
-4623
query I rowsort
SELECT col2 * ( tab1.col2 + + col0 * col1 ) AS col0 FROM tab1
----
109056
39729
7128
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) + - tab1.col2 * col0 col0 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT - ( 38 ) * + col2 + - col1 * col0 FROM tab1
----
-2130
-2806
-4688
query I rowsort
SELECT DISTINCT 81 * + col2 * col1 + + 63 AS col1 FROM tab0
----
229941
604485
7920
query I rowsort
SELECT DISTINCT + 98 * + col2 + col0 FROM tab0
----
133
3258
8125
query I rowsort
SELECT ( tab1.col1 ) * col2 + col1 FROM tab1
----
1261
1430
580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6105
SELECT CAST( NULL AS DECIMAL ) - 12 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6105
SELECT CAST ( NULL AS REAL ) - 12 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + 65 FROM tab1
----
129
145
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 col1 FROM tab0
----
20
20
20
query I rowsort
SELECT ALL 61 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55
query I rowsort
SELECT ALL + ( + col0 ) + col2 FROM tab2
----
104
117
34
query I rowsort
SELECT col2 + col0 * col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL 85 + col1 FROM tab0 AS cor0
----
171
176
182
onlyif mysql # use DIV operator for integer division
query I rowsort label-6112
SELECT 92 DIV col0 + - col1 FROM tab2 AS cor0
----
-16
-18
-58
skipif mysql # not compatible
query I rowsort label-6112
SELECT 92 / col0 + - col1 FROM tab2 AS cor0
----
-16
-18
-58
onlyif mysql # use DIV operator for integer division
query I rowsort label-6113
SELECT 75 + - cor1.col0 DIV cor1.col2 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 08ff7540cbe0706e4ef1ad5f0d4ae234
skipif mysql # not compatible
query I rowsort label-6113
SELECT 75 + - cor1.col0 / cor1.col2 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 08ff7540cbe0706e4ef1ad5f0d4ae234
query I rowsort
SELECT - 42 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27
query I rowsort
SELECT - 50 AS col2 FROM tab1
----
-50
-50
-50
query I rowsort
SELECT ALL + 22 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL col2 - col0 FROM tab1
----
-7
16
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6119
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-6120
SELECT col0 DIV + col1 - - col2 FROM tab1 AS cor0
----
102
54
63
skipif mysql # not compatible
query I rowsort label-6120
SELECT col0 / + col1 - - col2 FROM tab1 AS cor0
----
102
54
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-6121
SELECT + cor0.col1 DIV - col1 + 1 + col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-6121
SELECT + cor0.col1 / - col1 + 1 + col0 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6122
SELECT + cor0.col2 DIV + cor0.col2 + + cor0.col1 + cor0.col2 FROM tab1 AS cor0
----
110
68
81
skipif mysql # not compatible
query I rowsort label-6122
SELECT + cor0.col2 / + cor0.col2 + + cor0.col1 + cor0.col2 FROM tab1 AS cor0
----
110
68
81
query I rowsort
SELECT - - col0 + 70 * + col0 FROM tab2 AS cor0
----
497
5538
5609
query I rowsort
SELECT - col0 * - 21 AS col2 FROM tab1 AS cor0
----
1344
1680
63
query I rowsort
SELECT - col2 * ( - ( col2 ) * col2 ) - 50 * cor0.col1 AS col0 FROM tab1 cor0
----
156164
184693
884086
query I rowsort
SELECT col1 + ( + 97 ) FROM tab2
----
114
128
156
query I rowsort
SELECT DISTINCT + col0 + - col2 * - 31 FROM tab2 AS cor0
----
1257
844
884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6128
SELECT ALL col2 + - CAST( NULL AS DECIMAL ) + + col0 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL col2 + - CAST ( NULL AS REAL ) + + col0 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 + col0 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL - col1 * cor0.col0 + - cor0.col2 * col2 AS col1 FROM tab0 cor0
----
-14823
-3153
-3396
query I rowsort
SELECT DISTINCT 50 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-6132
SELECT DISTINCT + cor0.col0 + cor0.col2 DIV + ( + cor0.col1 ) AS col1 FROM tab1, tab2 AS cor0
----
7
78
81
skipif mysql # not compatible
query I rowsort label-6132
SELECT DISTINCT + cor0.col0 + cor0.col2 / + ( + cor0.col1 ) AS col1 FROM tab1, tab2 AS cor0
----
7
78
81
query I rowsort
SELECT - - col2 + col2 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL 25 FROM tab0, tab1 cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6135
SELECT ALL cor0.col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL cor0.col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * + 98 AS col2 FROM tab0 AS cor0
----
8428
8918
9506
query I rowsort
SELECT cor0.col1 + + 98 FROM tab0 AS cor0
----
184
189
195
query I rowsort
SELECT - col1 + - col1 * - col1 + col0 FROM tab1 AS cor0
----
154
236
653
query I rowsort
SELECT DISTINCT + 82 * col1 AS col0 FROM tab1 AS cor0
----
1066
2132
820
query I rowsort
SELECT DISTINCT 7 AS col2 FROM tab1 AS cor0
----
7
query I rowsort
SELECT DISTINCT + + 57 AS col0 FROM tab1 AS cor0
----
57
query I rowsort
SELECT col2 * col2 + col0 AS col2 FROM tab0 AS cor0
----
1113
36
6813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6143
SELECT ALL CAST( - col1 AS SIGNED ) * col1 FROM tab2 AS cor0
----
-289
-3481
-961
skipif mysql # not compatible
query I rowsort label-6143
SELECT ALL CAST ( - col1 AS INTEGER ) * col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + - col1 + - cor0.col1 * - col0 - col0 AS col0 FROM tab2 AS cor0
----
1247
179
4465
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 93 col0 FROM tab2 AS cor0
----
-93
-93
-93
query I rowsort
SELECT DISTINCT + ( + 75 ) + col0 * col1 FROM tab0 AS cor0
----
2139
3470
8174
query I rowsort
SELECT ALL tab0.col1 - + col2 AS col0 FROM tab0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6148
SELECT ALL col2 - - ( + col2 ) DIV - col0 FROM tab1
----
36
57
95
skipif mysql # not compatible
query I rowsort label-6148
SELECT ALL col2 - - ( + col2 ) / - col0 FROM tab1
----
36
57
95
query I rowsort
SELECT DISTINCT - ( col2 ) + + col2 * col0 FROM tab1 cor0
----
108
3591
7584
query I rowsort
SELECT DISTINCT + - col0 + - col1 * col2 AS col1 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT ALL - col1 * + col0 * + 59 AS col1 FROM tab2 AS cor0
----
-12803
-271518
-79237
query I rowsort
SELECT DISTINCT - col2 + - col2 + - col2 * col0 FROM tab2 AS cor0
----
-2080
-243
-3078
query I rowsort
SELECT ALL - ( - col2 ) - - ( - ( col2 ) ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - cor0.col1 * col0 - + col0 * cor0.col1 FROM tab0 AS cor0
----
-16198
-4128
-6790
query I rowsort
SELECT + + cor0.col2 * col1 AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT 91 * - col2 * col0 AS col2 FROM tab0 AS cor0
----
-3185
-664118
-72072
query I rowsort
SELECT DISTINCT - - col2 + col0 * 51 FROM tab2 AS cor0
----
384
4004
4067
query I rowsort
SELECT ALL 22 * + cor0.col2 - 33 AS col2 FROM tab0 AS cor0
----
-11
1771
693
query I rowsort
SELECT 94 AS col2 FROM tab2
----
94
94
94
query I rowsort
SELECT ALL 9 AS col1 FROM tab0
----
9
9
9
query I rowsort
SELECT col2 * col1 + + 47 * col1 * col0 AS col2 FROM tab0
----
159662
388115
99846
query I rowsort
SELECT DISTINCT + + col0 + + col2 * cor0.col2 - col1 FROM tab0 AS cor0
----
-61
1027
6722
onlyif mysql # use DIV operator for integer division
query I rowsort label-6163
SELECT ALL - col1 + ( + ( - col2 ) ) DIV - 34 col2 FROM tab2 AS cor0
----
-16
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL - col1 + ( + ( - col2 ) ) / - 34 col2 FROM tab2 AS cor0
----
-16
-31
-59
query I rowsort
SELECT ALL + col0 * col1 * - col1 + col2 - col2 FROM tab1 cor0
----
-13520
-2028
-6400
query I rowsort
SELECT ALL col2 * - col2 - + col2 AS col2 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT DISTINCT + col1 + col0 + col2 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT DISTINCT - + col1 + col2 * col2 AS col1 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT ALL + col1 * + col0 + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 col1 FROM tab2
----
104
117
34
query I rowsort
SELECT + col2 + + col0 * col2 AS col1 FROM tab0 AS cor0
----
36
7380
825
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN ( col2 ) AND ( - col2 * col1 )
----
query I rowsort
SELECT + tab1.col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL - col2 * + col0 FROM tab0 WHERE NULL IN ( - col0 )
----
query I rowsort
SELECT DISTINCT + cor0.col1 * col0 AS col0 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-6175
SELECT + col2 * - col2 + col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
-1443
-675
-728
skipif mysql # not compatible
query I rowsort label-6175
SELECT + col2 * - col2 + col0 / + col0 AS col0 FROM tab2 AS cor0
----
-1443
-675
-728
query I rowsort
SELECT + col2 * col2 * - col1 + col0 AS col0 FROM tab2
----
-22592
-24469
-39806
query I rowsort
SELECT col2 * col1 + - col2 * col1 * col0 + col2 FROM tab1
----
-2754
-35853
-98496
query I rowsort
SELECT - ( - col2 * + col1 ) - col2 * tab1.col1 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col1 FROM tab1, tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + - col0 * + col2 - + cor0.col0 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT DISTINCT - col0 + + col1 AS col2 FROM tab1 cor0
----
-54
-67
23
query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NOT NULL IN ( cor0.col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col2 + + col1 * - col0 col1 FROM tab2
----
-3926
101
512
query I rowsort
SELECT + ( + col1 + col2 ) AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT + col1 + col0 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT col0 + + col0 * - col2 AS col0 FROM tab0
----
-7209
-768
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * tab2.col2 col0 FROM tab2
----
2054
216
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-6188
SELECT + col1 + + col0 DIV col1 + tab1.col0 FROM tab1
----
29
80
99
skipif mysql # not compatible
query I rowsort label-6188
SELECT + col1 + + col0 / col1 + tab1.col0 FROM tab1
----
29
80
99
query I rowsort
SELECT DISTINCT + col2 + - col2 AS col1 FROM tab1
----
0
query I rowsort
SELECT col0 * - col2 + - col1 FROM tab1
----
-188
-3658
-7693
query I rowsort
SELECT - col0 * - col2 * + tab2.col1 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT + col0 + col2 + + col0 AS col0 FROM tab0 AS cor0
----
260
71
81
query I rowsort
SELECT ALL + col1 * col2 AS col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT col2 * col1 * + col2 FROM tab0
----
611884
93654
97
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * - col0 BETWEEN NULL AND + col2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT ALL - col0 + - col0 * col2 FROM tab2
----
-196
-2106
-3081
query I rowsort
SELECT col0 * - col2 + - tab0.col1 AS col1 FROM tab0
----
-132
-7389
-878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 / col0 + + col2 * - col0 col2 FROM tab1 WHERE NOT NULL >= ( NULL )
----
query I rowsort
SELECT ALL col1 + + col2 * - col2 FROM tab0
----
-1003
-6633
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6200
SELECT - col2 * col2 DIV - col1 - col2 FROM tab2
----
-15
-4
46
skipif mysql # not compatible
query I rowsort label-6200
SELECT - col2 * col2 / - col1 - col2 FROM tab2
----
-15
-4
46
query I rowsort
SELECT - tab0.col1 * - col0 + - tab0.col1 FROM tab0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-6202
SELECT + col0 DIV col2 + col1 col2 FROM tab1
----
11
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6202
SELECT + col0 / col2 + col1 col2 FROM tab1
----
11
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-6203
SELECT ALL col2 + col1 DIV col1 FROM tab2
----
27
28
39
skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL col2 + col1 / col1 FROM tab2
----
27
28
39
query I rowsort
SELECT ALL + ( 48 ) FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * tab0.col0 col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 3fb27a91711469131edbffaad90e6035
query I rowsort
SELECT - + col0 * col0 + + col2 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6207
SELECT + + col1 * + col2 + + col2 * - ( col2 ) + CAST( 62 AS SIGNED ) * + col0 * cor0.col0 FROM tab0 AS cor0
----
37461
491840
76046
skipif mysql # not compatible
query I rowsort label-6207
SELECT + + col1 * + col2 + + col2 * - ( col2 ) + CAST ( 62 AS INTEGER ) * + col0 * cor0.col0 FROM tab0 AS cor0
----
37461
491840
76046
query I rowsort
SELECT 87 + + col0 + + ( col1 ) FROM tab1 AS cor0
----
116
161
180
query I rowsort
SELECT cor0.col1 + - col1 + + 7 FROM tab1 AS cor0
----
7
7
7
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( col0 * cor0.col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + cor0.col1 col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT col2 + - col1 AS col0 FROM tab1 WHERE NOT + col0 NOT IN ( col1 / col1 + col1 )
----
query I rowsort
SELECT col2 + + tab1.col2 * col0 FROM tab1
----
216
3705
7776
query I rowsort
SELECT ALL + col1 * + col1 + + col2 AS col0 FROM tab2
----
327
3507
988
query I rowsort
SELECT DISTINCT col2 - col0 * col2 * - col1 FROM tab0 cor0
----
3396
664200
68145
query I rowsort
SELECT ALL + cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 = NULL
----
query I rowsort
SELECT col0 + tab0.col2 AS col1 FROM tab0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 * - col1 col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL + tab1.col2 + + col2 + - tab1.col1 AS col2 FROM tab1
----
104
179
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6221
SELECT DISTINCT col0 DIV + tab1.col2 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-6221
SELECT DISTINCT col0 / + tab1.col2 FROM tab1
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6222
SELECT col2 DIV + col2 + col2 * + col1 FROM tab0
----
2839
7463
98
skipif mysql # not compatible
query I rowsort label-6222
SELECT col2 / + col2 + col2 * + col1 FROM tab0
----
2839
7463
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-6223
SELECT DISTINCT - col1 DIV + tab0.col0 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT - col1 / + tab0.col0 FROM tab0
----
-1
-2
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-6224
SELECT ALL tab1.col0 * col1 DIV + tab1.col2 AS col2 FROM tab1
----
1
10
11
skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL tab1.col0 * col1 / + tab1.col2 AS col2 FROM tab1
----
1
10
11
query I rowsort
SELECT + tab1.col0 + col1 FROM tab1 WHERE NOT - col0 - col2 / col0 NOT IN ( - col1 )
----
query I rowsort
SELECT DISTINCT col0 * + tab1.col1 + - col1 + col1 AS col0 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6227
SELECT - col1 DIV - col0 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-6227
SELECT - col1 / - col0 FROM tab2
----
0
0
4
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * col1 + col2 - col0 IN ( tab0.col2 * + col0 )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 - + col1 ) NOT IN ( col0 )
----
query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT NULL NOT IN ( col2 )
----
query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT col0 + + col1 * col0 AS col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT NULL < col1 + - col1
----
query I rowsort
SELECT ALL - col2 * col1 + col1 + - col0 FROM tab2
----
-1553
-708
-813
query I rowsort
SELECT col1 + col1 * + tab1.col1 + col2 FROM tab1
----
167
278
756
query I rowsort
SELECT ALL col1 * col0 + col1 * col2 AS col0 FROM tab2
----
1054
1989
6136
query I rowsort
SELECT ( - col1 ) * col0 + + cor0.col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL - ( - col1 ) + + 40 AS col0 FROM tab2 AS cor0
----
57
71
99
query I rowsort
SELECT DISTINCT col1 - + col2 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - - 88 + col0 FROM tab2 AS cor0
----
166
167
95
query I rowsort
SELECT + cor0.col0 - - col2 * col2 FROM tab2 cor0
----
1523
736
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-6242
SELECT ALL - - 95 DIV col0 + CAST( 38 * col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3271
3459
3688
skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL - - 95 / col0 + CAST ( 38 * col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3271
3459
3688
query I rowsort
SELECT + 52 * - col2 + + col0 * ( cor0.col1 ) FROM tab2 AS cor0
----
-1187
-633
3250
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 76903cfa3a27727fd541d9dcdf362a4c
query I rowsort
SELECT - col2 * - col0 + 84 * 91 + col1 FROM tab2 cor0
----
10663
7864
9731
query I rowsort
SELECT DISTINCT - col2 * tab0.col2 + + col2 AS col1 FROM tab0
----
-1056
-6642
0
query I rowsort
SELECT ALL + 10 FROM tab2, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT - cor0.col1 * 27 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 0ffd37e68a96c8b6827d9c1d6666ede7
query I rowsort
SELECT ALL - col1 * 20 * 28 FROM tab1
----
-14560
-5600
-7280
query I rowsort
SELECT ALL + col2 * col2 + - 78 FROM tab1 AS cor0
----
2838
3171
9138
query I rowsort
SELECT 11 FROM tab1, tab2 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT - - ( cor0.col0 ) + cor0.col2 * + cor0.col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT + 57 + col1 FROM tab0 AS cor0
----
143
148
154
query I rowsort
SELECT + cor0.col1 * ( + col2 * + col0 ) FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT - ( - cor0.col1 ) AS col0 FROM tab1 cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-6256
SELECT + - cor0.col1 DIV + col0 AS col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-6256
SELECT + - cor0.col1 / + col0 AS col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT - 49 + col1 FROM tab0 AS cor0
----
37
42
48
query I rowsort
SELECT - 82 * - cor0.col0 + + col2 FROM tab1 cor0
----
300
5305
6656
query I rowsort
SELECT + ( col2 ) * - col0 - col2 FROM tab1
----
-216
-3705
-7776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6260
SELECT DISTINCT + CAST( - col2 AS SIGNED ) * - col0 FROM tab2
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-6260
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) * - col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT col2 * col2 + col2 FROM tab0
----
1122
2
6806
query I rowsort
SELECT ALL + 56 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT ALL + col1 * col2 + col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6264
SELECT + CAST( col2 AS SIGNED ) + + col2 FROM tab0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-6264
SELECT + CAST ( col2 AS INTEGER ) + + col2 FROM tab0
----
164
2
66
query I rowsort
SELECT + 12 + cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to d9d7d9f39b273199fc550ef04591e9d3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 * cor0.col2 col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT 82 * col2 + + col1 + col0 FROM tab1 AS cor0
----
4457
4748
7965
query I rowsort
SELECT ALL + 6 * cor0.col1 FROM tab1 AS cor0
----
156
60
78
query I rowsort
SELECT + + 57 * + col2 FROM tab0 AS cor0
----
1881
4674
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6270
SELECT DISTINCT + 9 DIV col1 AS col2 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-6270
SELECT DISTINCT + 9 / col1 AS col2 FROM tab0 cor0
----
0
query I rowsort
SELECT - col0 * - col2 + cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
219
3769
7856
query I rowsort
SELECT DISTINCT - + cor0.col0 * col1 * col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 + + col2 col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT + col0 * - col0 AS col2 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT - - col2 * + col0 + - col1 AS col2 FROM tab2 cor0
----
158
1969
2985
query I rowsort
SELECT ALL - col2 + - col2 * col2 FROM tab0 AS cor0
----
-1122
-2
-6806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6277
SELECT DISTINCT - CAST( 76 AS SIGNED ) FROM tab0
----
-76
skipif mysql # not compatible
query I rowsort label-6277
SELECT DISTINCT - CAST ( 76 AS INTEGER ) FROM tab0
----
-76
query I rowsort
SELECT DISTINCT + col1 + col1 * + col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT 29 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
2378
29
957
query I rowsort
SELECT ALL - - col2 * - cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - col2 * + col2 + col2 AS col1 FROM tab1 AS cor0
----
-2862
-3192
-9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-6282
SELECT ALL col2 DIV + col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-6282
SELECT ALL col2 / + col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT - 16 * - cor0.col2 FROM tab0 AS cor0
----
1312
16
528
query I rowsort
SELECT - col0 + ( cor0.col1 ) FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT + col2 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - cor0.col1 + + 79 * col1 FROM tab2 AS cor0
----
1326
2418
4602
query I rowsort
SELECT ALL + col2 + - col1 * - cor0.col0 * col1 - col1 AS col2 FROM tab2 AS cor0
----
22852
271485
6723
query I rowsort
SELECT DISTINCT + - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6289
SELECT col0 + CAST( 16 * + col2 AS SIGNED ) FROM tab2 AS cor0
----
439
494
687
skipif mysql # not compatible
query I rowsort label-6289
SELECT col0 + CAST ( 16 * + col2 AS INTEGER ) FROM tab2 AS cor0
----
439
494
687
query I rowsort
SELECT ALL - - cor0.col2 + + col2 AS col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT - col2 * 51 * - 45 + col2 AS col0 FROM tab0 AS cor0
----
188272
2296
75768
query I rowsort
SELECT DISTINCT + cor0.col2 - + 97 AS col0 FROM tab2 AS cor0
----
-59
-70
-71
query I rowsort
SELECT DISTINCT + + cor0.col0 + col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT 89 + + cor0.col1 FROM tab0 AS cor0
----
175
180
186
query I rowsort
SELECT - col0 + 65 AS col2 FROM tab2 AS cor0
----
-13
-14
58
query I rowsort
SELECT ALL ( 34 ) FROM tab1 AS cor0
----
34
34
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6297
SELECT ALL - + col0 DIV + col0 col0 FROM tab0 cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL - + col0 / + col0 col0 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT ALL 40 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT DISTINCT 42 AS col2 FROM tab2, tab0 AS cor0
----
42
query I rowsort
SELECT col1 * ( col2 ) AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT + col0 * 24 FROM tab2
----
168
1872
1896
query I rowsort
SELECT 36 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT ALL col1 * ( ( + col0 ) ) + + 6 FROM tab1
----
1046
646
84
query I rowsort
SELECT col1 * + ( col0 ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT - - 61 FROM tab2, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT + - col2 + 8 AS col0 FROM tab1 AS cor0
----
-46
-49
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-6307
SELECT DISTINCT - col2 + cor0.col0 DIV - col2 + col0 col1 FROM tab1 AS cor0
----
-16
-51
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6307
SELECT DISTINCT - col2 + cor0.col0 / - col2 + col0 col1 FROM tab1 AS cor0
----
-16
-51
6
query I rowsort
SELECT col1 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6309
SELECT - CAST( NULL AS DECIMAL ) * col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6309
SELECT - CAST ( NULL AS REAL ) * col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 71 + col0 * + col1 * + col2 FROM tab1 AS cor0
----
36409
4141
99769
query I rowsort
SELECT + - 68 + - 85 * col2 FROM tab2 AS cor0
----
-2278
-2363
-3298
query I rowsort
SELECT DISTINCT - 18 + col1 AS col2 FROM tab0 AS cor0
----
68
73
79
query I rowsort
SELECT DISTINCT - 19 + col1 FROM tab1 AS cor0
----
-6
-9
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-6314
SELECT ALL + col1 DIV + 66 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6314
SELECT ALL + col1 / + 66 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + cor0.col0 * - 73 FROM tab2 AS cor0
----
-511
-5694
-5767
onlyif mysql # use DIV operator for integer division
query I rowsort label-6316
SELECT ALL cor0.col2 DIV col1 FROM tab2 cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL cor0.col2 / col1 FROM tab2 cor0
----
0
0
2
query I rowsort
SELECT col0 * + 43 FROM tab1 AS cor0
----
129
2752
3440
query I rowsort
SELECT ALL 28 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query I rowsort
SELECT col1 * + ( - 42 ) AS col2 FROM tab2
----
-1302
-2478
-714
query I rowsort
SELECT DISTINCT - - 78 * col1 AS col0 FROM tab0 cor0
----
6708
7098
7566
query I rowsort
SELECT DISTINCT 26 + col1 AS col1 FROM tab0 AS cor0
----
112
117
123
query I rowsort
SELECT DISTINCT - col1 + col1 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - - col1 * col1 + - ( cor0.col0 ) FROM tab0 AS cor0
----
7372
8192
9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-6324
SELECT + col2 DIV cor0.col2 AS col2 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6324
SELECT + col2 / cor0.col2 AS col2 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT ALL 66 * col1 AS col2 FROM tab2 AS cor0
----
1122
2046
3894
query I rowsort
SELECT - col0 * col0 + + col2 AS col1 FROM tab0
----
-1224
-543
-7839
query I rowsort
SELECT - tab1.col1 + col0 AS col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT - 72 + - col1 FROM tab0 cor0
----
-158
-163
-169
onlyif mysql # use DIV operator for integer division
query I rowsort label-6329
SELECT DISTINCT col2 DIV + cor0.col1 + ( col2 ) + + col1 FROM tab1 AS cor0
----
116
72
82
skipif mysql # not compatible
query I rowsort label-6329
SELECT DISTINCT col2 / + cor0.col1 + ( col2 ) + + col1 FROM tab1 AS cor0
----
116
72
82
query I rowsort
SELECT DISTINCT 57 * col2 AS col2 FROM tab0 AS cor0
----
1881
4674
57
query I rowsort
SELECT + - 30 FROM tab1 AS cor0
----
-30
-30
-30
query I rowsort
SELECT ALL - - 31 * col2 + ( + 18 + - col1 ) * ( - col1 ) FROM tab0 AS cor0
----
6871
7694
9185
query I rowsort
SELECT ALL col2 * - col2 + col2 FROM tab2 cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL - + col2 * + col1 + col2 * - col0 FROM tab2 AS cor0
----
-1026
-3562
-3648
query I rowsort
SELECT DISTINCT col0 + col0 - - col0 AS col0 FROM tab0
----
105
267
72
skipif mysql # not compatible
query I rowsort
SELECT + - col2 + + CAST ( + col2 AS REAL ) / - col2 FROM tab0 AS cor0
----
-2
-34
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 * 51 col1 FROM tab0
----
148
1769
4273
query I rowsort
SELECT DISTINCT ( + col1 ) + - 33 FROM tab2
----
-16
-2
26
query I rowsort
SELECT + col0 + - 28 AS col0 FROM tab1 AS cor0
----
-25
36
52
query I rowsort
SELECT - col0 * ( col0 ) - cor0.col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT col2 * col1 + - col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ( + col2 + col1 ) AS col0 FROM tab0
----
119
173
98
query I rowsort
SELECT + 37 AS col2 FROM tab2
----
37
37
37
query I rowsort
SELECT DISTINCT - 46 AS col1 FROM tab2
----
-46
query I rowsort
SELECT - + ( col1 ) - - cor0.col0 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-6346
SELECT col0 * 27 - ( col0 ) * col1 DIV + col0 FROM tab0 AS cor0
----
2312
562
848
skipif mysql # not compatible
query I rowsort label-6346
SELECT col0 * 27 - ( col0 ) * col1 / + col0 FROM tab0 AS cor0
----
2312
562
848
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - col0 col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - cor0.col1 + cor0.col2 * cor0.col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT ALL 72 FROM tab2, tab2 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT DISTINCT tab2.col0 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
7
78
79
query I rowsort
SELECT 87 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT - 69 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ca5f4bc365dc2c6b14187d6ffc83a01d
query I rowsort
SELECT - 2 * tab0.col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 1a18b4495ebaa68cc02b83a41cae2276
query I rowsort
SELECT - 16 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 71c8b08964ab47ce12158975c0ee1fd9
query I rowsort
SELECT ALL - + col2 + - col2 * 13 FROM tab2 AS cor0
----
-364
-378
-532
query I rowsort
SELECT + + 18 * - col1 * col0 FROM tab1 AS cor0
----
-11520
-1404
-18720
query I rowsort
SELECT 8 AS col0 FROM tab2
----
8
8
8
query I rowsort
SELECT + - 69 * + col2 AS col0 FROM tab0 cor0
----
-2277
-5658
-69
query I rowsort
SELECT - - 3 FROM tab2 AS cor0
----
3
3
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-6360
SELECT col0 DIV - ( col0 * col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6360
SELECT col0 / - ( col0 * col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 47 * - cor0.col0 + cor0.col1 FROM tab2 AS cor0
----
-298
-3607
-3696
query I rowsort
SELECT + 55 * cor0.col2 FROM tab1 AS cor0
----
2970
3135
5280
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col2 AS REAL ) + col2 * + col0 FROM tab1 AS cor0
----
216
3705
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 4 + cor0.col2 * + col1 * - col0 - col2 col2 FROM tab0 AS cor0
----
-3392
-664196
-68141
query I rowsort
SELECT + + col2 * - 82 FROM tab2 AS cor0
----
-2132
-2214
-3116
query I rowsort
SELECT + + 47 AS col0 FROM tab0 AS cor0
----
47
47
47
query I rowsort
SELECT - + col0 * cor0.col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT - col2 * col1 + + col1 + col2 * - col0 * col1 AS col2 FROM tab2 AS cor0
----
-121127
-51663
-6665
onlyif mysql # use DIV operator for integer division
query I rowsort label-6369
SELECT ALL 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-6369
SELECT ALL col2 / col0 col2 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ( - col2 ) + + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * col0 * - 33 col1 FROM tab0 cor0
----
-112035
-267267
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-6373
SELECT DISTINCT + 63 DIV col2 AS col1 FROM tab0 AS cor0
----
0
1
63
skipif mysql # not compatible
query I rowsort label-6373
SELECT DISTINCT + 63 / col2 AS col1 FROM tab0 AS cor0
----
0
1
63
query I rowsort
SELECT 13 + - col0 + col2 FROM tab2 AS cor0
----
-28
-39
33
query I rowsort
SELECT DISTINCT 48 AS col0 FROM tab2, tab0 cor0, tab0, tab2 AS cor1
----
48
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to 47906197307eee6829150d762058792a
onlyif mysql # use DIV operator for integer division
query I rowsort label-6377
SELECT cor0.col1 DIV + col0 + + col1 AS col2 FROM tab0 AS cor0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-6377
SELECT cor0.col1 / + col0 + + col1 AS col2 FROM tab0 AS cor0
----
89
92
99
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 17ceecc141378b185d60a17e53464c26
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab2, tab0 cor1
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1
query I rowsort
SELECT - 34 AS col1 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7
query I rowsort
SELECT + 91 FROM tab0, tab1 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT DISTINCT ( - col1 ) * - col1 AS col1 FROM tab1 cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-6383
SELECT DISTINCT + ( - ( + col2 ) ) DIV - 53 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-6383
SELECT DISTINCT + ( - ( + col2 ) ) / - 53 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT + col1 * cor0.col1 AS col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT ALL col2 * + col1 + col2 FROM tab1 AS cor0
----
1344
1458
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + col1 * 31 AS col2 FROM tab1
----
310
403
806
query I rowsort
SELECT - col0 + - col0 * ( - col2 ) AS col1 FROM tab1
----
159
3584
7600
query I rowsort
SELECT DISTINCT 52 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
52
query I rowsort
SELECT 90 * + 73 AS col2 FROM tab2 AS cor0
----
6570
6570
6570
query I rowsort
SELECT ALL - col0 - ( cor0.col2 + ( col0 ) ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
-15650
-3527
-4926
query I rowsort
SELECT DISTINCT + col0 * col1 * col1 FROM tab0 AS cor0
----
177504
329315
737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + 57 col0 FROM tab0 AS cor0
----
-29
-34
-40
query I rowsort
SELECT ALL - col0 + 14 FROM tab2
----
-64
-65
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6395
SELECT + CAST( + col2 * + col0 AS SIGNED ) FROM tab1
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-6395
SELECT + CAST ( + col2 * + col0 AS INTEGER ) FROM tab1
----
162
3648
7680
query I rowsort
SELECT col1 + 84 FROM tab1
----
110
94
97
query I rowsort
SELECT - 24 FROM tab0, tab0 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
query I rowsort
SELECT col1 - + ( - col1 + - ( + 34 ) ) FROM tab0
----
206
216
228
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT DISTINCT 97 - col0 AS col1 FROM tab2 AS cor0
----
18
19
90
query I rowsort
SELECT ALL + - col1 + cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT ALL + col0 * ( col2 + - 44 ) * - 39 AS col0 FROM tab1 AS cor0
----
-1170
-162240
-32448
query I rowsort
SELECT DISTINCT 68 AS col1 FROM tab0 AS cor0
----
68
query I rowsort
SELECT ALL col1 * + col1 + - col2 FROM tab1
----
43
622
73
query I rowsort
SELECT ALL + tab2.col1 * col2 + + col0 * 47 FROM tab2
----
1166
4359
5200
query I rowsort
SELECT DISTINCT col1 * - col1 * - col1 AS col1 FROM tab2
----
205379
29791
4913
query I rowsort
SELECT + + col0 + col1 + - cor0.col2 FROM tab1 AS cor0
----
-25
-3
17
query I rowsort
SELECT col1 + col2 * - col2 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT + tab1.col1 * cor0.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to c60831db2936bdb61fb09e86d08b0883
query I rowsort
SELECT - tab2.col2 * col1 + + col0 FROM tab2
----
-1456
-567
-830
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab1 AS cor0, tab1 cor1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6412
SELECT ALL + 46 + col0 + - CAST( - col2 AS SIGNED ) FROM tab0
----
103
217
82
skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL + 46 + col0 + - CAST ( - col2 AS INTEGER ) FROM tab0
----
103
217
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6413
SELECT ALL + cor0.col0 DIV - CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6413
SELECT ALL + cor0.col0 / - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6414
SELECT ALL - col1 DIV + 30 - - 54 * col1 AS col1 FROM tab2 cor0
----
1673
3185
918
skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL - col1 / + 30 - - 54 * col1 AS col1 FROM tab2 cor0
----
1673
3185
918
query I rowsort
SELECT DISTINCT + col1 + - 17 AS col0 FROM tab2 AS cor0
----
0
14
42
query I rowsort
SELECT ALL col0 * - ( col1 + col0 ) AS col2 FROM tab0
----
-16020
-2640
-4620
query I rowsort
SELECT + col0 * + col2 + + 58 * col0 * + col1 AS col2 FROM tab1 AS cor0
----
40768
4686
68000
query I rowsort
SELECT DISTINCT + col0 + cor0.col0 * + col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT - col0 + + ( col2 ) AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT + col2 * 57 AS col0 FROM tab0 AS cor0
----
1881
4674
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6421
SELECT ALL - col2 DIV col0 col1 FROM tab1 AS cor0
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6421
SELECT ALL - col2 / col0 col1 FROM tab1 AS cor0
----
-1
-18
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6422
SELECT - col2 + col2 DIV col0 AS col0 FROM tab2 AS cor0
----
-24
-26
-38
skipif mysql # not compatible
query I rowsort label-6422
SELECT - col2 + col2 / col0 AS col0 FROM tab2 AS cor0
----
-24
-26
-38
query I rowsort
SELECT col0 + + 61 * + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-1
1951
5000
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6424
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6424
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6425
SELECT DISTINCT + col2 / CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT + col2 / CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + + col2 * + cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + col1 * ( - 47 * - col1 ) FROM tab2 AS cor0
----
13583
163607
45167
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6428
SELECT + col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6428
SELECT + col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + cor0.col2 + - 45 + 65 FROM tab0 AS cor0
----
102
21
53
query I rowsort
SELECT ALL col1 * - tab2.col1 * col1 + col0 + col2 AS col0 FROM tab2
----
-205275
-29757
-4796
query I rowsort
SELECT ALL - 42 + + col1 AS col2 FROM tab1
----
-16
-29
-32
query I rowsort
SELECT ALL + col0 * col2 - + col0 FROM tab2
----
182
1950
2923
query I rowsort
SELECT ALL col0 - 36 AS col1 FROM tab2
----
-29
42
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-6434
SELECT DISTINCT + col1 DIV + 60 col0 FROM tab2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6434
SELECT DISTINCT + col1 / + 60 col0 FROM tab2
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6435
SELECT - CAST( NULL AS DECIMAL ) * 68 / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6435
SELECT - CAST ( NULL AS REAL ) * 68 / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( - 20 ) + - col0 + - ( col2 ) * + col1 AS col2 FROM tab1
----
-1308
-1387
-614
query I rowsort
SELECT + 80 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT DISTINCT - col0 + col1 * - 18 FROM tab2 AS cor0
----
-1140
-385
-565
query I rowsort
SELECT ALL - - cor0.col1 * col2 - + col0 FROM tab2 cor0
----
1456
567
830
query I rowsort
SELECT DISTINCT + - col2 + - col1 * ( cor0.col2 ) FROM tab0 AS cor0
----
-2871
-7544
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6441
SELECT cor0.col1 + col0 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6441
SELECT cor0.col1 + col0 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6442
SELECT - + ( cor0.col2 ) * col1 + - col2 DIV col0 + - 49 FROM tab2 AS cor0
----
-1583
-695
-889
skipif mysql # not compatible
query I rowsort label-6442
SELECT - + ( cor0.col2 ) * col1 + - col2 / col0 + - 49 FROM tab2 AS cor0
----
-1583
-695
-889
query I rowsort
SELECT 64 * cor0.col2 + - 29 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1330
910
945
query I rowsort
SELECT ALL + col1 * col1 * + col2 AS col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT DISTINCT - 17 * - col2 FROM tab2 AS cor0
----
442
459
646
query I rowsort
SELECT ALL - col0 + - cor0.col0 * - col2 FROM tab2 AS cor0
----
182
1950
2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-6447
SELECT + cor0.col0 * col2 * + ( - col1 ) - - cor0.col0 DIV col0 AS col2 FROM tab1 AS cor0
----
-36479
-4211
-99839
skipif mysql # not compatible
query I rowsort label-6447
SELECT + cor0.col0 * col2 * + ( - col1 ) - - cor0.col0 / col0 AS col2 FROM tab1 AS cor0
----
-36479
-4211
-99839
query I rowsort
SELECT 28 * - cor0.col0 + ( + 33 ) + + col0 FROM tab2 AS cor0
----
-156
-2073
-2100
query I rowsort
SELECT ALL - col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6450
SELECT + + col0 DIV ( - col1 ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6450
SELECT + + col0 / ( - col1 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - cor0.col1 * - col0 FROM tab1 AS cor0
----
1040
640
78
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 63ccb67e72ebac679a0221202c067b9e
onlyif mysql # use DIV operator for integer division
query I rowsort label-6453
SELECT ALL tab2.col2 DIV + 11 FROM tab2
----
2
2
3
skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL tab2.col2 / + 11 FROM tab2
----
2
2
3
query I rowsort
SELECT - col0 + - ( 96 ) FROM tab1 AS cor0
----
-160
-176
-99
query I rowsort
SELECT ALL - col2 * 15 - col0 AS col2 FROM tab1 AS cor0
----
-1520
-813
-919
query I rowsort
SELECT ALL - cor0.col1 * - 72 - col1 AS col1 FROM tab0 AS cor0
----
6106
6461
6887
query I rowsort
SELECT col1 + + 36 FROM tab0 AS cor0
----
122
127
133
query I rowsort
SELECT ALL + - col2 * - ( col1 * col0 ) + col0 * + col0 + col1 FROM tab1 AS cor0
----
106253
40586
4247
query I rowsort
SELECT DISTINCT - col1 * 25 + - ( col0 ) * + col2 * + col0 AS col2 FROM tab0 cor0
----
-21158
-3650
-651797
query I rowsort
SELECT - - col2 + + ( 1 ) FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT DISTINCT + col2 * col2 + 19 AS col2 FROM tab1 AS cor0
----
2935
3268
9235
query I rowsort
SELECT DISTINCT col2 * col1 + cor0.col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - cor0.col1 * col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6464
SELECT DISTINCT + + col1 + + CAST( NULL AS DECIMAL ) * col2 + - col2 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT + + col1 + + CAST ( NULL AS REAL ) * col2 + - col2 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - 76 AS col0 FROM tab1 AS cor0
----
-76
query I rowsort
SELECT + + col2 * 54 FROM tab2 AS cor0
----
1404
1458
2052
query I rowsort
SELECT DISTINCT - - 15 * - cor0.col0 FROM tab2 cor0
----
-105
-1170
-1185
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6468
SELECT ALL CAST( - col0 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL CAST ( - col0 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-6469
SELECT - col0 + + col1 DIV cor0.col1 FROM tab1 cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-6469
SELECT - col0 + + col1 / cor0.col1 FROM tab1 cor0
----
-2
-63
-79
query I rowsort
SELECT DISTINCT cor1.col0 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
3
64
80
query I rowsort
SELECT DISTINCT - col2 + - ( col2 ) * + ( - 79 ) * + cor0.col1 FROM tab1 AS cor0
----
110862
44973
98496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6472
SELECT CAST( - 69 AS SIGNED ) FROM tab1 cor0
----
-69
-69
-69
skipif mysql # not compatible
query I rowsort label-6472
SELECT CAST ( - 69 AS INTEGER ) FROM tab1 cor0
----
-69
-69
-69
query I rowsort
SELECT ( - col1 ) FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT + 22 * col1 AS col2 FROM tab2 AS cor0
----
1298
374
682
query I rowsort
SELECT - ( + 53 ) FROM tab1 AS cor0
----
-53
-53
-53
onlyif mysql # use DIV operator for integer division
query I rowsort label-6476
SELECT - + col1 + col1 DIV - col0 FROM tab0 AS cor0
----
-89
-92
-99
skipif mysql # not compatible
query I rowsort label-6476
SELECT - + col1 + col1 / - col0 FROM tab0 AS cor0
----
-89
-92
-99
query I rowsort
SELECT - 8 + + 13 FROM tab0
----
5
5
5
query I rowsort
SELECT + 17 FROM tab0 cor0
----
17
17
17
query I rowsort
SELECT - 28 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc
query I rowsort
SELECT DISTINCT + 96 + + col1 * 61 AS col2 FROM tab2
----
1133
1987
3695
query I rowsort
SELECT - ( 19 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4
query I rowsort
SELECT ALL col2 * + col2 * 99 + tab0.col1 FROM tab0
----
107897
196
665767
query I rowsort
SELECT DISTINCT - col2 + - col2 * ( 6 ) AS col1 FROM tab1
----
-378
-399
-672
query I rowsort
SELECT ALL + 82 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
query I rowsort
SELECT DISTINCT + col0 + - 83 AS col1 FROM tab1 AS cor0
----
-19
-3
-80
query I rowsort
SELECT DISTINCT - 14 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-14
query I rowsort
SELECT - col1 * col2 + + col0 AS col1 FROM tab1
----
-1168
-1401
-506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6488
SELECT col1 + col1 * + CAST( col0 + col0 AS SIGNED ) AS col1 FROM tab1 cor0
----
1290
182
2093
skipif mysql # not compatible
query I rowsort label-6488
SELECT col1 + col1 * + CAST ( col0 + col0 AS INTEGER ) AS col1 FROM tab1 cor0
----
1290
182
2093
query I rowsort
SELECT - col0 + 31 * + 9 AS col1 FROM tab2 AS cor0
----
200
201
272
skipif mysql # not compatible
query I rowsort
SELECT - col2 * + CAST ( cor0.col1 AS REAL ) AS col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + col2 * col2 + cor0.col1 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT ALL col2 * + 52 FROM tab1 AS cor0
----
2808
2964
4992
query I rowsort
SELECT ALL + - cor0.col2 * + col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + cor0.col2 * 53 FROM tab0, tab2 cor0
----
1378
1431
2014
query I rowsort
SELECT - - col0 * - col1 + col0 FROM tab1 AS cor0
----
-576
-75
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-6496
SELECT + - cor0.col0 DIV - ( col2 ) + + ( - col2 + cor0.col0 ) DIV col1 AS col2 FROM tab0 cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-6496
SELECT + - cor0.col0 / - ( col2 ) + + ( - col2 + cor0.col0 ) / col1 AS col2 FROM tab0 cor0
----
0
1
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6497
SELECT DISTINCT + + CAST( + col0 AS SIGNED ) - cor0.col1 AS col2 FROM tab2 AS cor0
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-6497
SELECT DISTINCT + + CAST ( + col0 AS INTEGER ) - cor0.col1 AS col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + cor1.col0 AS col2 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + CAST ( col2 AS REAL ) - col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT col0 + + 29 AS col0 FROM tab0 AS cor0
----
118
53
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-6501
SELECT ALL + col2 + col2 DIV + cor0.col0 FROM tab1 AS cor0
----
57
72
97
skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL + col2 + col2 / + cor0.col0 FROM tab1 AS cor0
----
57
72
97
query I rowsort
SELECT 71 + + cor0.col0 FROM tab1 AS cor0
----
135
151
74
query I rowsort
SELECT ALL - - ( + cor0.col2 ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - 42 * cor0.col2 * col1 + col2 AS col2 FROM tab2 AS cor0
----
-27094
-35127
-64402
query I rowsort
SELECT - tab2.col1 AS col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT + col1 * col2 + col1 * ( - col1 + cor0.col1 ) FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - - col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 * - col1 * - 62 col2 FROM tab1 AS cor0
----
34100
44330
88660
query I rowsort
SELECT + 53 + col2 FROM tab2 AS cor0
----
79
80
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col1 FROM tab1
----
27
27
27
query I rowsort
SELECT ALL + col1 + - cor0.col1 * + ( 72 ) FROM tab0 AS cor0
----
-6106
-6461
-6887
onlyif mysql # use DIV operator for integer division
query I rowsort label-6512
SELECT - col0 + + col1 DIV - col0 FROM tab0 AS cor0
----
-27
-37
-90
skipif mysql # not compatible
query I rowsort label-6512
SELECT - col0 + + col1 / - col0 FROM tab0 AS cor0
----
-27
-37
-90
query I rowsort
SELECT ALL + 0 * + col0 + - col1 * + 40 + cor0.col1 * col2 FROM tab1 AS cor0
----
170
364
728
query I rowsort
SELECT + col1 * col0 * + 17 + - 30 + - col0 FROM tab2 AS cor0
----
22722
3652
78126
query I rowsort
SELECT ALL - - 88 * - cor0.col0 + col0 FROM tab1 AS cor0
----
-261
-5568
-6960
query I rowsort
SELECT DISTINCT - 43 + col2 AS col0 FROM tab2 AS cor0
----
-16
-17
-5
query I rowsort
SELECT - 61 + cor0.col0 * + ( - col0 ) FROM tab1 AS cor0
----
-4157
-6461
-70
query I rowsort
SELECT - col1 * - col2 + 13 FROM tab0 AS cor0
----
110
2851
7475
query I rowsort
SELECT DISTINCT - col0 + col2 * - col2 * col2 + + col1 FROM tab1
----
-157441
-185247
-884803
onlyif mysql # use DIV operator for integer division
query I rowsort label-6520
SELECT 70 + - col2 DIV + 20 AS col1 FROM tab0
----
66
69
70
skipif mysql # not compatible
query I rowsort label-6520
SELECT 70 + - col2 / + 20 AS col1 FROM tab0
----
66
69
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-6521
SELECT ALL - tab1.col1 + col2 DIV - col0 AS col2 FROM tab1
----
-10
-14
-44
skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL - tab1.col1 + col2 / - col0 AS col2 FROM tab1
----
-10
-14
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-6522
SELECT ALL - col2 DIV col0 + + 79 AS col1 FROM tab0 AS cor0
----
78
79
79
skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL - col2 / col0 + + 79 AS col1 FROM tab0 AS cor0
----
78
79
79
query I rowsort
SELECT DISTINCT - col2 + col1 * 88 AS col1 FROM tab0 AS cor0
----
7535
7926
8535
onlyif mysql # use DIV operator for integer division
query I rowsort label-6524
SELECT col0 DIV - col0 - col1 * col0 FROM tab0
----
-2065
-3396
-8100
skipif mysql # not compatible
query I rowsort label-6524
SELECT col0 / - col0 - col1 * col0 FROM tab0
----
-2065
-3396
-8100
onlyif mysql # use DIV operator for integer division
query I rowsort label-6525
SELECT DISTINCT col1 * - col1 + + col1 DIV col0 FROM tab1
----
-100
-169
-668
skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT col1 * - col1 + + col1 / col0 FROM tab1
----
-100
-169
-668
query I rowsort
SELECT 24 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT DISTINCT - 39 + col2 FROM tab2
----
-1
-12
-13
query I rowsort
SELECT ALL col2 * ( - col1 ) + col1 * col1 * col0 AS col2 FROM tab2 cor0
----
22185
269984
5890
query I rowsort
SELECT DISTINCT - col1 * + col1 * col2 AS col1 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT DISTINCT + 47 * + ( - col1 * col0 + + cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-215072
-61335
-8930
query I rowsort
SELECT ALL - + 66 FROM tab2 cor0
----
-66
-66
-66
query I rowsort
SELECT - col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT col2 * 4 FROM tab2 AS cor0
----
104
108
152
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 96 + cor0.col0 col2 FROM tab0 AS cor0
----
120
131
185
query I rowsort
SELECT ALL 42 + col1 AS col0 FROM tab2 AS cor0
----
101
59
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-6536
SELECT ALL - col0 DIV 67 AS col1 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL - col0 / 67 AS col1 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT col2 * + 44 AS col2 FROM tab1 AS cor0
----
2376
2508
4224
query I rowsort
SELECT col1 + 15 * 38 AS col1 FROM tab0
----
656
661
667
query I rowsort
SELECT ALL 89 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT DISTINCT + col1 * col1 * col1 FROM tab0
----
636056
753571
912673
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT tab1.col0 * CAST ( - ( col2 ) AS REAL ) FROM tab1
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6542
SELECT DISTINCT - 77 DIV 69 + + col1 DIV tab1.col0 AS col0 FROM tab1
----
-1
7
skipif mysql # not compatible
query I rowsort label-6542
SELECT DISTINCT - 77 / 69 + + col1 / tab1.col0 AS col0 FROM tab1
----
-1
7
query I rowsort
SELECT - ( tab0.col0 ) + col0 FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6544
SELECT ALL - CAST( NULL AS SIGNED ) * 70 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL - CAST ( NULL AS INTEGER ) * 70 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + col1 * + cor0.col1 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT col2 * - 26 FROM tab0 AS cor0
----
-2132
-26
-858
query I rowsort
SELECT + ( cor0.col0 ) * col2 * col0 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT - - col0 * - col1 + col0 * - col1 FROM tab2 AS cor0
----
-2686
-434
-9204
onlyif mysql # use DIV operator for integer division
query I rowsort label-6549
SELECT ALL + col1 DIV - col1 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6549
SELECT ALL + col1 / - col1 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT col0 * col0 + + col2 AS col0 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT ALL + col0 - - col0 * - cor0.col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT ALL - col0 + + col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT ALL + col1 * col0 - col2 FROM tab1 cor0
----
24
583
944
query I rowsort
SELECT col1 * col1 + col1 * + tab2.col2 + col2 FROM tab2
----
1825
5041
973
query I rowsort
SELECT ALL 88 + - col0 FROM tab0
----
-1
53
64
query I rowsort
SELECT + ( ( tab0.col1 ) ) - + col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( tab1.col0 * + col0 ) + col0 * col2 AS col1 FROM tab1
----
-448
1280
153
query I rowsort
SELECT DISTINCT 80 + + col2 FROM tab2
----
106
107
118
query I rowsort
SELECT 81 AS col2 FROM tab1 AS cor0
----
81
81
81
query I rowsort
SELECT + col1 * 75 FROM tab2
----
1275
2325
4425
query I rowsort
SELECT DISTINCT + col2 * 56 * tab2.col1 FROM tab2
----
36176
46872
85904
query I rowsort
SELECT DISTINCT tab2.col0 * + col0 AS col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ( tab2.col2 ) + col2 * + col2 FROM tab2
----
1482
702
756
query I rowsort
SELECT + 54 * col2 AS col0 FROM tab0
----
1782
4428
54
query I rowsort
SELECT ALL col2 * col1 + col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT cor0.col2 + col2 * col1 AS col0 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT + 81 + cor0.col1 FROM tab1 AS cor0
----
107
91
94
query I rowsort
SELECT DISTINCT col0 * col2 + - col0 - - col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - + 67 * col0 + col2 FROM tab0 AS cor0
----
-1575
-2344
-5881
onlyif mysql # use DIV operator for integer division
query I rowsort label-6570
SELECT ALL + + col2 + - col0 DIV col2 FROM tab1 AS cor0
----
54
56
96
skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL + + col2 + - col0 / col2 FROM tab1 AS cor0
----
54
56
96
query I rowsort
SELECT col1 + + cor0.col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL cor0.col0 + col1 + col1 AS col2 FROM tab1 AS cor0
----
106
55
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 + + col1 col0 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-6574
SELECT DISTINCT + - col0 - col1 * cor0.col0 DIV - col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT + - col0 - col1 * cor0.col0 / - col1 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6575
SELECT + col2 * + cor0.col1 + + col0 DIV col2 col1 FROM tab1 AS cor0
----
1248
1404
571
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6575
SELECT + col2 * + cor0.col1 + + col0 / col2 col1 FROM tab1 AS cor0
----
1248
1404
571
query I rowsort
SELECT col1 + + col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + col1 * col1 + col2 AS col0 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT DISTINCT col2 + tab0.col0 * col2 AS col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT + col0 * col0 + - col0 - col1 FROM tab2 WHERE NOT col2 * col0 < NULL
----
query I rowsort
SELECT col1 * tab1.col2 + - col0 FROM tab1
----
1168
1401
506
query I rowsort
SELECT DISTINCT col0 * tab0.col0 + col0 AS col1 FROM tab0
----
1260
600
8010
query I rowsort
SELECT col2 * col0 + - col0 + - col1 AS col1 FROM tab2 cor0
----
151
1891
2906
query I rowsort
SELECT ALL tab0.col1 + - tab0.col0 FROM tab0
----
2
62
62
query I rowsort
SELECT + col2 * + tab1.col2 - - col0 * tab1.col1 * - col1 AS col1 FROM tab1
----
-3151
-4304
888
query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * + col2 BETWEEN NULL AND - col2 / + col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT DISTINCT col2 * + col2 * col2 AS col1 FROM tab1
----
157464
185193
884736
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + tab1.col1 col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT - col1 + col0 - col0 AS col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT DISTINCT col2 * col2 + - tab0.col2 * col0 AS col0 FROM tab0
----
-34
-574
297
query I rowsort
SELECT + col2 + tab1.col2 * col0 FROM tab1
----
216
3705
7776
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col2 * + col1 AND NULL
----
query I rowsort
SELECT ALL tab0.col1 * col0 + - col2 AS col0 FROM tab0
----
2031
3394
8017
query I rowsort
SELECT col1 + - col1 - + col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT col1 * col2 + col0 * + tab1.col2 FROM tab1
----
1566
4218
8928
query I rowsort
SELECT - col2 + - col0 + - tab0.col2 * col2 AS col0 FROM tab0
----
-1146
-37
-6895
query I rowsort
SELECT DISTINCT col0 + + tab2.col2 AS col2 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE + col0 * - col1 < tab2.col0 + + col2 + - col0
----
17
31
59
query I rowsort
SELECT ALL + col1 + + tab0.col0 * + col1 * tab0.col0 FROM tab0
----
118922
49622
720902
query I rowsort
SELECT ALL col1 * - col2 AS col0 FROM tab2 WHERE ( - col2 ) IN ( + col2 )
----
query I rowsort
SELECT + cor0.col1 + + col1 AS col0 FROM tab2 AS cor0
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6601
SELECT cor0.col2 + - col0 DIV - col0 + col1 AS col0 FROM tab2 AS cor0
----
56
59
86
skipif mysql # not compatible
query I rowsort label-6601
SELECT cor0.col2 + - col0 / - col0 + col1 AS col0 FROM tab2 AS cor0
----
56
59
86
query I rowsort
SELECT DISTINCT + col0 * col0 + - col1 * + tab0.col1 + col2 FROM tab0 WHERE col1 NOT IN ( + tab0.col2 )
----
-278
-6787
-8183
query I rowsort
SELECT col1 * col2 + + col0 AS col0 FROM tab2 cor0
----
1612
725
844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col2 col0 FROM tab2 AS cor0
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT cor0.col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT col2 * col1 * - col1 + col1 FROM tab2 cor0
----
-10965
-25916
-90447
query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NULL <= - col0
----
query I rowsort
SELECT col0 * + col2 + + col0 + + col1 * col2 AS col2 FROM tab2
----
1033
3640
3727
query I rowsort
SELECT - 20 * col0 AS col1 FROM tab1 AS cor0
----
-1280
-1600
-60
query I rowsort
SELECT DISTINCT 5 * cor0.col2 AS col0 FROM tab1 AS cor0
----
270
285
480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 * + cor0.col1 col0 FROM tab2 cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL - - cor0.col1 * cor0.col2 + col1 + + ( col1 ) AS col0 FROM tab1 cor0
----
1274
1456
590
query I rowsort
SELECT col1 * col1 + cor0.col0 AS col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT DISTINCT - - col2 * 29 + col1 FROM tab1 AS cor0
----
1592
1663
2797
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6616
SELECT + CAST( col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6616
SELECT + CAST ( col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 + + 35 * col0 col0 FROM tab0 AS cor0
----
1264
3154
879
query I rowsort
SELECT + + col2 * col0 AS col1 FROM tab1 cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6619
SELECT ALL 66 * + ( + col1 ) - CAST( + 71 AS SIGNED ) FROM tab2 AS cor0
----
1051
1975
3823
skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL 66 * + ( + col1 ) - CAST ( + 71 AS INTEGER ) FROM tab2 AS cor0
----
1051
1975
3823
onlyif mysql # use DIV operator for integer division
query I rowsort label-6620
SELECT - ( 16 ) DIV + cor0.col0 + cor0.col1 DIV col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6620
SELECT - ( 16 ) / + cor0.col0 + cor0.col1 / col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL 69 * 9 AS col1 FROM tab0 AS cor0
----
621
621
621
query I rowsort
SELECT - - 33 * col1 + cor0.col2 * + col2 AS col2 FROM tab1 AS cor0
----
3579
3774
9645
query I rowsort
SELECT ALL - col0 - - ( - 83 ) FROM tab1
----
-147
-163
-86
query I rowsort
SELECT ALL tab1.col1 * - tab1.col1 * - col0 + - col1 AS col1 FROM tab1
----
13507
2002
6390
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 + col0 col2 FROM tab1
----
137
153
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6626
SELECT DISTINCT + CAST( col2 AS SIGNED ) + - col0 * + ( - 54 ) * col0 AS col2 FROM tab0
----
31137
427816
66151
skipif mysql # not compatible
query I rowsort label-6626
SELECT DISTINCT + CAST ( col2 AS INTEGER ) + - col0 * + ( - 54 ) * col0 AS col2 FROM tab0
----
31137
427816
66151
query I rowsort
SELECT DISTINCT + ( col1 * + col0 ) + col0 AS col2 FROM tab1
----
1120
704
81
query I rowsort
SELECT + ( 11 ) FROM tab2
----
11
11
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + 34 + + col0 - + col1 * cor0.col1 * - col2 col1 FROM tab1 AS cor0
----
19024
36609
7940
query I rowsort
SELECT DISTINCT 22 * + 37 + + col1 FROM tab1 AS cor0
----
824
827
840
query I rowsort
SELECT ( 16 ) + - col2 AS col2 FROM tab0 cor0
----
-17
-66
15
query I rowsort
SELECT ALL + 92 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT ALL - 63 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2
query I rowsort
SELECT ALL col2 * + 72 FROM tab1 AS cor0
----
3888
4104
6912
query I rowsort
SELECT + col1 * - col2 + col0 * + col1 AS col2 FROM tab2
----
-620
3068
697
query I rowsort
SELECT col0 * - col2 + - col2 FROM tab0
----
-36
-7380
-825
query I rowsort
SELECT - cor0.col1 + + col1 * - ( + 98 ) * col1 AS col1 FROM tab2 AS cor0
----
-28339
-341197
-94209
query I rowsort
SELECT ALL col0 * - col1 - + 36 FROM tab1
----
-1076
-114
-676
query I rowsort
SELECT 56 AS col2 FROM tab2
----
56
56
56
query I rowsort
SELECT - col2 * cor0.col1 AS col0 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL cor0.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT - - col0 + 16 * col1 FROM tab0 AS cor0
----
1400
1545
1587
query I rowsort
SELECT + col1 * + ( - ( cor0.col1 ) ) * - col1 + + 77 * + col0 * cor0.col0 FROM tab0 AS cor0
----
1006998
1363488
680408
onlyif mysql # use DIV operator for integer division
query I rowsort label-6644
SELECT DISTINCT + cor0.col0 + + 94 DIV + col2 AS col2 FROM tab1 AS cor0
----
4
65
80
skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT + cor0.col0 + + 94 / + col2 AS col2 FROM tab1 AS cor0
----
4
65
80
query I rowsort
SELECT DISTINCT + cor0.col1 - col2 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6646
SELECT - - col2 + + CAST( ( col2 ) AS SIGNED ) * + col2 FROM tab0 AS cor0
----
1122
2
6806
skipif mysql # not compatible
query I rowsort label-6646
SELECT - - col2 + + CAST ( ( col2 ) AS INTEGER ) * + col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT DISTINCT - col0 + + col2 * - 81 FROM tab1
----
-4377
-4681
-7856
query I rowsort
SELECT DISTINCT col2 + + cor0.col1 * - cor0.col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT col0 - + col0 * col1 FROM tab1 AS cor0
----
-576
-75
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + col2 * - ( cor0.col1 ) * col0 col1 FROM tab2 AS cor0
----
-119730
-51113
-5866
query I rowsort
SELECT ALL - + col2 + - col1 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT + + cor0.col1 * 63 FROM tab1 AS cor0
----
1638
630
819
onlyif mysql # use DIV operator for integer division
query I rowsort label-6653
SELECT - + col0 DIV - col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-6653
SELECT - + col0 / - col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT - col0 * + col2 * 12 - + col2 FROM tab1 AS cor0
----
-1998
-43833
-92256
query I rowsort
SELECT - - col2 * - col1 - + cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
-1054
-1989
-6136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 58 ) + + cor0.col0 * + col2 col2 FROM tab2 AS cor0
----
131
1970
2944
query I rowsort
SELECT ALL - + col0 + cor0.col0 - + col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL ( - col0 ) AS col1 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT - 31 * col1 + + col1 AS col0 FROM tab0 AS cor0
----
-2580
-2730
-2910
query I rowsort
SELECT ALL - - col1 * - 28 AS col0 FROM tab2 AS cor0
----
-1652
-476
-868
query I rowsort
SELECT ALL + ( 36 ) * - col0 AS col1 FROM tab1 AS cor0
----
-108
-2304
-2880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 * col0 + + col0 + + col2 * col2 col1 FROM tab2 AS cor0
----
-4718
-5408
183
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6663
SELECT + col1 * CAST( - col0 AS SIGNED ) + + col1 + + col2 AS col1 FROM tab0
----
-1945
-3297
-7926
skipif mysql # not compatible
query I rowsort label-6663
SELECT + col1 * CAST ( - col0 AS INTEGER ) + + col1 + + col2 AS col1 FROM tab0
----
-1945
-3297
-7926
query I rowsort
SELECT ALL + 44 FROM tab2, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT col0 + + col1 + + col0 * - col2 * col0 FROM tab2 AS cor0
----
-1285
-158047
-237062
query I rowsort
SELECT + + col2 * - col0 - col2 AS col0 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT ALL col1 * + col2 + - 96 * + col1 FROM tab1 AS cor0
----
-1092
-390
0
query I rowsort
SELECT DISTINCT - ( col0 ) + + col1 AS col2 FROM tab0 AS cor0
----
2
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6669
SELECT + col0 DIV + col1 col1 FROM tab2 cor0
----
0
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6669
SELECT + col0 / + col1 col1 FROM tab2 cor0
----
0
1
4
query I rowsort
SELECT cor0.col2 * + 43 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to ee721a23e251261c22e7528d8775b679
query I rowsort
SELECT DISTINCT col0 * col1 * 16 FROM tab0 AS cor0
----
129584
33024
54320
query I rowsort
SELECT - + col1 * col0 + col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT - 56 FROM tab1 cor0
----
-56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 * col0 col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL - + cor0.col0 + col2 * 73 * + col0 AS col1 FROM tab2 AS cor0
----
13790
147966
219067
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + col0 * - CAST ( ( col0 ) AS REAL ) FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + col0 + 70 * cor0.col2 FROM tab2 AS cor0
----
1897
1898
2739
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + col1 * - col2 col2 FROM tab0
----
2805
7380
96
query I rowsort
SELECT - 48 - - col2 FROM tab0
----
-15
-47
34
query I rowsort
SELECT DISTINCT + + col2 * - ( - cor0.col0 ) * + col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT - col1 + - 58 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1003
-1829
-3481
query I rowsort
SELECT DISTINCT - cor0.col0 + + col2 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6683
SELECT - - col0 + + CAST( - col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6683
SELECT - - col0 + + CAST ( - col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL cor0.col2 + cor0.col2 AS col1 FROM tab0 cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-6685
SELECT 23 + col1 DIV - ( cor0.col2 ) FROM tab1 AS cor0
----
23
23
23
skipif mysql # not compatible
query I rowsort label-6685
SELECT 23 + col1 / - ( cor0.col2 ) FROM tab1 AS cor0
----
23
23
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6686
SELECT DISTINCT + col0 + + col1 + - CAST( NULL AS DECIMAL ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT + col0 + + col1 + - CAST ( NULL AS REAL ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + col0 + - col1 + + ( - col1 ) FROM tab1 AS cor0
----
-49
44
54
query I rowsort
SELECT ALL - + col2 * - col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT - - ( - col0 ) * - 70 + col0 FROM tab0 cor0
----
1704
2485
6319
onlyif mysql # use DIV operator for integer division
query I rowsort label-6690
SELECT DISTINCT - col2 * col0 DIV col0 + col1 col1 FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6690
SELECT DISTINCT - col2 * col0 / col0 + col1 col1 FROM tab1 AS cor0
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort
SELECT - 0 * - col1 + + CAST ( + col1 * col1 AS REAL ) FROM tab1 AS cor0
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 col1 FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT - col0 + - col1 * - col2 AS col1 FROM tab2
----
1456
567
830
query I rowsort
SELECT DISTINCT col1 + - col2 * + col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT - col1 - - col0 * - col1 AS col1 FROM tab0 cor0
----
-2150
-3492
-8190
query I rowsort
SELECT + col1 + + col0 * + col1 AS col1 FROM tab0 cor0
----
2150
3492
8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 - + cor0.col1 col2 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6699
SELECT ALL - + CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-6699
SELECT ALL - + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6700
SELECT + col2 DIV - col0 + col0 AS col2 FROM tab2 AS cor0
----
4
78
79
skipif mysql # not compatible
query I rowsort label-6700
SELECT + col2 / - col0 + col0 AS col2 FROM tab2 AS cor0
----
4
78
79
query I rowsort
SELECT ALL + 66 * col0 + + col1 FROM tab2 AS cor0
----
493
5207
5231
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 55 + - col2 col2 FROM tab1 cor0
----
-2
-41
1
query I rowsort
SELECT ALL - col0 * col1 + + col1 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 71 * col2 col2 FROM tab2 AS cor0
----
1905
1948
2715
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6705
SELECT ALL col2 + CAST( col2 AS SIGNED ) * - col2 AS col0 FROM tab0
----
-1056
-6642
0
skipif mysql # not compatible
query I rowsort label-6705
SELECT ALL col2 + CAST ( col2 AS INTEGER ) * - col2 AS col0 FROM tab0
----
-1056
-6642
0
query I rowsort
SELECT 18 + tab1.col1 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e6e73f9dc91f89239c75aeb47c50d49d
onlyif mysql # use DIV operator for integer division
query I rowsort label-6707
SELECT tab2.col1 DIV 63 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6707
SELECT tab2.col1 / 63 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6708
SELECT - 2 DIV + col1 - col1 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-6708
SELECT - 2 / + col1 - col1 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT col2 + + 32 AS col0 FROM tab1 AS cor0
----
128
86
89
query I rowsort
SELECT ALL + 61 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT ALL col0 - ( ( col0 ) * ( col0 ) ) AS col1 FROM tab1
----
-4032
-6
-6320
query I rowsort
SELECT ALL - 16 FROM tab1, tab0 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34
query I rowsort
SELECT DISTINCT + col0 * + 56 + + col1 AS col1 FROM tab0
----
1430
2057
5075
onlyif mysql # use DIV operator for integer division
query I rowsort label-6714
SELECT DISTINCT + 32 + col2 DIV col0 FROM tab0
----
32
33
skipif mysql # not compatible
query I rowsort label-6714
SELECT DISTINCT + 32 + col2 / col0 FROM tab0
----
32
33
query I rowsort
SELECT ALL 74 * - 45 + col0 AS col0 FROM tab1
----
-3250
-3266
-3327
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 30 ) col0 FROM tab1
----
-30
-30
-30
query I rowsort
SELECT ALL - - 62 - 12 AS col0 FROM tab0 AS cor0
----
50
50
50
query I rowsort
SELECT DISTINCT + - cor0.col0 * 51 * cor0.col0 FROM tab0 AS cor0
----
-29376
-403971
-62475
query I rowsort
SELECT - + col2 - - 24 FROM tab2 AS cor0
----
-14
-2
-3
query I rowsort
SELECT ALL + ( col2 ) + col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - - ( col0 ) * - col0 AS col0 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT + col1 * + col2 + - tab0.col2 * ( + 89 ) AS col2 FROM tab0
----
-99
164
8
query I rowsort
SELECT ALL 97 FROM tab0, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6724
SELECT ALL + CAST( NULL AS SIGNED ) + 78 * tab1.col2 col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL + CAST ( NULL AS INTEGER ) + 78 * tab1.col2 col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6725
SELECT - CAST( col0 AS SIGNED ) * - col1 * tab0.col0 FROM tab0
----
118825
49536
720811
skipif mysql # not compatible
query I rowsort label-6725
SELECT - CAST ( col0 AS INTEGER ) * - col1 * tab0.col0 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT cor0.col2 * + col0 * - 59 AS col0 FROM tab0 AS cor0
----
-2065
-430582
-46728
query I rowsort
SELECT 0 + col0 * + ( 2 ) FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT 41 * col1 + + col1 AS col0 FROM tab0 AS cor0
----
3612
3822
4074
query I rowsort
SELECT - 63 * col2 * col0 AS col1 FROM tab0
----
-2205
-459774
-49896
onlyif mysql # use DIV operator for integer division
query I rowsort label-6730
SELECT col1 DIV + 90 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6730
SELECT col1 / + 90 FROM tab1
----
0
0
0
query I rowsort
SELECT + cor1.col2 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT - 61 * col0 AS col0 FROM tab1
----
-183
-3904
-4880
query I rowsort
SELECT - + col2 * - col0 * 41 + col0 FROM tab1 AS cor0
----
149632
314960
6645
query I rowsort
SELECT - - ( col0 ) * col2 * col1 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6735
SELECT + + cor0.col1 * - col1 * CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6735
SELECT + + cor0.col1 * - col1 * CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 22 * + col1 * - 46 + - col0 col2 FROM tab0 cor0
----
87008
92003
98129
onlyif mysql # use DIV operator for integer division
query I rowsort label-6737
SELECT - + col2 DIV - cor0.col1 + - col1 * col2 FROM tab1 AS cor0
----
-1241
-1402
-565
skipif mysql # not compatible
query I rowsort label-6737
SELECT - + col2 / - cor0.col1 + - col1 * col2 FROM tab1 AS cor0
----
-1241
-1402
-565
query I rowsort
SELECT ALL - ( 1 ) * - cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT - 71 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062
query I rowsort
SELECT 15 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT col1 * - 69 * 22 FROM tab2 AS cor0
----
-25806
-47058
-89562
onlyif mysql # use DIV operator for integer division
query I rowsort label-6742
SELECT ALL + col2 + col2 DIV - ( cor0.col1 ) FROM tab1 AS cor0
----
52
52
89
skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL + col2 + col2 / - ( cor0.col1 ) FROM tab1 AS cor0
----
52
52
89
query I rowsort
SELECT - col2 + col0 * - col2 AS col2 FROM tab2 cor0
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT - 41 AS col2 FROM tab1, tab2 AS cor0
----
-41
query I rowsort
SELECT DISTINCT - - col1 * - ( col2 ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - col1 * - 41 AS col0 FROM tab0 AS cor0
----
3526
3731
3977
onlyif mysql # use DIV operator for integer division
query I rowsort label-6747
SELECT ALL ( + tab2.col2 ) DIV - col1 AS col1 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-6747
SELECT ALL ( + tab2.col2 ) / - col1 AS col1 FROM tab2
----
-2
0
0
query I rowsort
SELECT col2 * ( - col1 * 41 ) AS col1 FROM tab0 AS cor0
----
-116358
-305942
-3977
query I rowsort
SELECT + col0 + - 55 - - ( col1 ) * col2 FROM tab1 AS cor0
----
1273
1352
579
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6750
SELECT + col1 * CAST( NULL AS SIGNED ) + col2 - - col1 * 40 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6750
SELECT + col1 * CAST ( NULL AS INTEGER ) + col2 - - col1 * 40 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6751
SELECT DISTINCT + col0 * col2 + - col1 * col0 DIV col1 FROM tab0 AS cor0
----
0
7209
768
skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT + col0 * col2 + - col1 * col0 / col1 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT cor0.col1 * + col0 + - col2 AS col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT col2 + + 71 AS col2 FROM tab0 AS cor0
----
104
153
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6754
SELECT + col1 - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6754
SELECT + col1 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6755
SELECT - col1 + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6755
SELECT - col1 + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 + - col2 AS col1 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-6757
SELECT col0 * col1 DIV + col0 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-6757
SELECT col0 * col1 / + col0 FROM tab1
----
10
13
26
query I rowsort
SELECT cor0.col1 * + 51 FROM tab0, tab0 AS cor0
----
9 values hashing to 98c668e36be52a824d29bbc0004a3f1b
query I rowsort
SELECT ( col1 ) * ( - col1 * - col2 ) FROM tab2
----
10982
25947
90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + col0 + col0 col1 FROM tab0 AS cor0
----
134
167
269
query I rowsort
SELECT ALL + - col2 * - col0 + 13 * - col0 FROM tab1 cor0
----
123
2816
6640
query I rowsort
SELECT col2 * ( + col1 ) FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6763
SELECT + CAST( col1 AS SIGNED ) * + col0 * col1 + + 27 FROM tab2 AS cor0
----
22858
271545
6754
skipif mysql # not compatible
query I rowsort label-6763
SELECT + CAST ( col1 AS INTEGER ) * + col0 * col1 + + 27 FROM tab2 AS cor0
----
22858
271545
6754
onlyif mysql # use DIV operator for integer division
query I rowsort label-6764
SELECT DISTINCT + CAST( col2 AS SIGNED ) * cor0.col0 + + col2 DIV + col0 FROM tab1 cor0
----
180
3648
7681
skipif mysql # not compatible
query I rowsort label-6764
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * cor0.col0 + + col2 / + col0 FROM tab1 cor0
----
180
3648
7681
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL 82 * - 31 FROM tab2 AS cor0
----
-2542
-2542
-2542
onlyif mysql # use DIV operator for integer division
query I rowsort label-6767
SELECT + 30 DIV + cor0.col1 + - cor0.col1 FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-6767
SELECT + 30 / + cor0.col1 + - cor0.col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT - col0 + ( + col0 ) AS col1 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6769
SELECT DISTINCT CAST( 98 AS SIGNED ) FROM tab2, tab0 AS cor0
----
98
skipif mysql # not compatible
query I rowsort label-6769
SELECT DISTINCT CAST ( 98 AS INTEGER ) FROM tab2, tab0 AS cor0
----
98
query I rowsort
SELECT ALL - col0 * col1 + + col0 * - col1 FROM tab0
----
-16198
-4128
-6790
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6771
SELECT DISTINCT CAST( NULL AS SIGNED ) * 91 FROM tab2, tab1 AS cor0, tab2 cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-6771
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 91 FROM tab2, tab1 AS cor0, tab2 cor1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) col0 FROM tab0 AS cor0
----
24
35
89
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 * col2 IN ( + col0 + col2 + col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT ALL col2 + - tab2.col2 * tab2.col2 + - col2 FROM tab2 WHERE NOT + col2 * - col2 <> NULL
----
query I rowsort
SELECT DISTINCT col2 * col0 * - col2 + col0 AS col0 FROM tab0
----
-26112
-598347
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6776
SELECT col1 * col2 DIV + col2 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6776
SELECT col1 * col2 / + col2 FROM tab0
----
86
91
97
query I rowsort
SELECT 77 * col1 AS col2 FROM tab1
----
1001
2002
770
query I rowsort
SELECT ( + cor0.col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL 30 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NULL = ( NULL )
----
query I rowsort
SELECT + col2 * col1 + 93 AS col0 FROM tab2
----
1627
739
930
query I rowsort
SELECT DISTINCT - col0 * col2 * 56 AS col1 FROM tab0
----
-1960
-408688
-44352
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + col2 * + tab1.col0 * - col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT col1 * - ( + col1 ) FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT - - col2 * 10 + cor0.col0 AS col2 FROM tab2 AS cor0
----
277
338
459
query I rowsort
SELECT DISTINCT col1 * - 81 FROM tab0 AS cor0
----
-6966
-7371
-7857
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + cor0.col2 * + ( - col1 ) col0 FROM tab0 cor0
----
-2814
-62
-7373
query I rowsort
SELECT 38 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
query I rowsort
SELECT - col2 * + col0 + - col0 FROM tab1
----
-165
-3712
-7760
query I rowsort
SELECT DISTINCT ( + col1 ) * - col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT + ( + 75 ) + - col2 * ( + 23 ) AS col1 FROM tab1
----
-1167
-1236
-2133
query I rowsort
SELECT ( - col1 + tab1.col1 ) * + col0 AS col0 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6794
SELECT CAST( - col2 + + col0 AS SIGNED ) FROM tab2
----
-20
41
52
skipif mysql # not compatible
query I rowsort label-6794
SELECT CAST ( - col2 + + col0 AS INTEGER ) FROM tab2
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 + col1 col0 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT + cor1.col1 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL 51 + - col1 FROM tab2 AS cor0
----
-8
20
34
query I rowsort
SELECT + 52 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 7b4a664e9c62b46b517569587d5a621d
query I rowsort
SELECT - 36 + col0 FROM tab2 AS cor0
----
-29
42
43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6800
SELECT DISTINCT + CAST( col0 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-20
41
52
skipif mysql # not compatible
query I rowsort label-6800
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-6801
SELECT ( cor0.col2 ) DIV col1 + + col0 FROM tab2 AS cor0
----
7
78
81
skipif mysql # not compatible
query I rowsort label-6801
SELECT ( cor0.col2 ) / col1 + + col0 FROM tab2 AS cor0
----
7
78
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-6802
SELECT - col1 DIV col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6802
SELECT - col1 / col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT ( col1 ) * col2 + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT - 65 + + col1 FROM tab1 AS cor0
----
-39
-52
-55
query I rowsort
SELECT DISTINCT + col0 * col1 * col1 AS col1 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT ALL - + col1 * + col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + - col1 + col0 * + col1 AS col1 FROM tab0 AS cor0
----
1978
3298
8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * - col0 col1 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT 54 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT DISTINCT ( + col2 ) * + 15 AS col1 FROM tab0 AS cor0
----
1230
15
495
query I rowsort
SELECT cor0.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL - + col0 * - col1 * + col0 FROM tab1 AS cor0
----
234
40960
83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * cor0.col2 col0 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + ( - 78 ) col2 FROM tab0 AS cor0
----
-43
-54
11
query I rowsort
SELECT - col0 + + col0 * col0 + + col2 FROM tab1 cor0
----
4089
60
6416
query I rowsort
SELECT DISTINCT col0 * 27 FROM tab2 AS cor0
----
189
2106
2133
query I rowsort
SELECT - col0 + 47 + col2 * col0 AS col2 FROM tab0 AS cor0
----
47
7256
815
query I rowsort
SELECT ( - col2 ) * - col2 + ( - col2 ) + - col2 FROM tab1 AS cor0
----
2808
3135
9024
query I rowsort
SELECT + 40 + 75 FROM tab1 AS cor0
----
115
115
115
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * + col1 + col2 * - col2 col2 FROM tab0 AS cor0
----
1557
6307
9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-6821
SELECT + 83 * ( col2 ) + - 48 DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
4498
4731
7968
skipif mysql # not compatible
query I rowsort label-6821
SELECT + 83 * ( col2 ) + - 48 / - cor0.col0 AS col2 FROM tab1 AS cor0
----
4498
4731
7968
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6822
SELECT - 99 + col2 * CAST( col0 * cor0.col0 AS SIGNED ) FROM tab0 AS cor0
----
1126
18909
649423
skipif mysql # not compatible
query I rowsort label-6822
SELECT - 99 + col2 * CAST ( col0 * cor0.col0 AS INTEGER ) FROM tab0 AS cor0
----
1126
18909
649423
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 * col0 * 46 col1 FROM tab0
----
216982
58512
85330
onlyif mysql # use DIV operator for integer division
query I rowsort label-6824
SELECT DISTINCT 51 DIV col0 AS col2 FROM tab1
----
0
17
skipif mysql # not compatible
query I rowsort label-6824
SELECT DISTINCT 51 / col0 AS col2 FROM tab1
----
0
17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6825
SELECT ALL + CAST( NULL AS SIGNED ) * + cor0.col0 col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6825
SELECT ALL + CAST ( NULL AS INTEGER ) * + cor0.col0 col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT 27 AS col1 FROM tab0, tab2 AS cor0, tab2 cor1
----
27
query I rowsort
SELECT DISTINCT + - col0 * - col2 + + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 * col1 col0 FROM tab0 AS cor0
----
-3354
-3549
-3783
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT + 66 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-462
-5148
-5214
onlyif mysql # use DIV operator for integer division
query I rowsort label-6831
SELECT ALL + + col1 DIV + col0 AS col1 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL + + col1 / + col0 AS col1 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT + + col2 * 55 - col2 AS col2 FROM tab0 AS cor0
----
1782
4428
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 * cor0.col0 col0 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT - - col1 * + col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT ALL - col1 + col1 + ( + col2 ) FROM tab0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6836
SELECT - col2 * - col0 * CAST( col0 AS SIGNED ) col1 FROM tab1
----
233472
486
614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6836
SELECT - col2 * - col0 * CAST ( col0 AS INTEGER ) col1 FROM tab1
----
233472
486
614400
query I rowsort
SELECT DISTINCT - 82 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-82
query I rowsort
SELECT DISTINCT + 67 FROM tab2, tab1 AS cor0
----
67
query I rowsort
SELECT DISTINCT + col2 + + 54 AS col1 FROM tab2 AS cor0
----
80
81
92
query I rowsort
SELECT + col2 * 81 + + 54 FROM tab0 AS cor0
----
135
2727
6696
query I rowsort
SELECT + cor0.col2 * - ( - col0 * col1 ) AS col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL - 57 FROM tab0, tab1 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b
query I rowsort
SELECT ALL col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - cor0.col1 * cor0.col0 - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6845
SELECT DISTINCT - CAST( NULL AS SIGNED ) * cor0.col2 + + cor0.col1 * col2 col0 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6845
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * cor0.col2 + + cor0.col1 * col2 col0 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6846
SELECT - col0 * CAST( col1 + - col1 AS SIGNED ) * + ( + col1 ) FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6846
SELECT - col0 * CAST ( col1 + - col1 AS INTEGER ) * + ( + col1 ) FROM tab1
----
0
0
0
query I rowsort
SELECT - 58 * ( col1 + - col2 ) AS col2 FROM tab2 AS cor0
----
-1914
-232
1218
query I rowsort
SELECT + col0 + - col1 + + col1 * col1 FROM tab2 cor0
----
3500
351
937
query I rowsort
SELECT DISTINCT - ( 25 ) + col1 FROM tab0 AS cor0
----
61
66
72
query I rowsort
SELECT ALL - + 62 + - 8 + col1 FROM tab2 AS cor0
----
-11
-39
-53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6851
SELECT ALL CAST( 56 AS SIGNED ) FROM tab1 AS cor0
----
56
56
56
skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL CAST ( 56 AS INTEGER ) FROM tab1 AS cor0
----
56
56
56
query I rowsort
SELECT + 29 + col0 FROM tab1 cor0
----
109
32
93
query I rowsort
SELECT DISTINCT - ( cor0.col0 ) FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6854
SELECT ALL - CAST( + 28 AS SIGNED ) AS col1 FROM tab0 cor0
----
-28
-28
-28
skipif mysql # not compatible
query I rowsort label-6854
SELECT ALL - CAST ( + 28 AS INTEGER ) AS col1 FROM tab0 cor0
----
-28
-28
-28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6855
SELECT ALL col0 * - CAST( 83 AS SIGNED ) - col0 AS col2 FROM tab1
----
-252
-5376
-6720
skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL col0 * - CAST ( 83 AS INTEGER ) - col0 AS col2 FROM tab1
----
-252
-5376
-6720
query I rowsort
SELECT + col0 * - 53 - col1 * - col1 AS col0 FROM tab0
----
3564
6124
7554
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6857
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-6857
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
query I rowsort
SELECT + + 92 AS col2 FROM tab2 AS cor0
----
92
92
92
query I rowsort
SELECT ALL 66 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT ALL col0 * - ( col1 ) AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT - - 11 * 93 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to b7b4e9e1ee52dce0ec3d1f016c1a4e34
query I rowsort
SELECT - 11 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d
query I rowsort
SELECT col1 - - 93 AS col0 FROM tab1
----
103
106
119
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6864
SELECT - CAST( NULL AS DECIMAL ) + - col0 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6864
SELECT - CAST ( NULL AS REAL ) + - col0 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 25 AS col2 FROM tab0
----
25
query I rowsort
SELECT ALL - 61 * 1 * tab1.col0 FROM tab1
----
-183
-3904
-4880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6867
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + + tab0.col0 AS col2 FROM tab0
----
178
48
70
query I rowsort
SELECT + col2 + 41 FROM tab1
----
137
95
98
query I rowsort
SELECT - - ( 2 ) FROM tab0 AS cor0
----
2
2
2
query I rowsort
SELECT DISTINCT col1 * + col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2 cor1, tab0, tab2 AS cor2
----
3645 values hashing to 0c9c9a26da1b45580001288543ac8dbe
onlyif mysql # use DIV operator for integer division
query I rowsort label-6873
SELECT 36 DIV col0 FROM tab0 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-6873
SELECT 36 / col0 FROM tab0 AS cor0
----
0
1
1
query I rowsort
SELECT DISTINCT 82 AS col0 FROM tab0 cor0
----
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 - 38 * + col0 col2 FROM tab2 AS cor0
----
-1558
-2288
463
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6876
SELECT + col0 * cor0.col0 * CAST( NULL AS SIGNED ) - 52 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-6876
SELECT + col0 * cor0.col0 * CAST ( NULL AS INTEGER ) - 52 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6877
SELECT - col1 * cor0.col1 - CAST( 37 AS SIGNED ) DIV col1 AS col2 FROM tab1 AS cor0
----
-103
-171
-677
skipif mysql # not compatible
query I rowsort label-6877
SELECT - col1 * cor0.col1 - CAST ( 37 AS INTEGER ) / col1 AS col2 FROM tab1 AS cor0
----
-103
-171
-677
query I rowsort
SELECT + col0 - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL cor0.col1 * col0 * col2 FROM tab1 AS cor0
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-6880
SELECT - - col1 * - cor0.col2 + CAST( - cor0.col2 AS SIGNED ) DIV cor0.col1 FROM tab1 cor0
----
-1255
-1406
-575
skipif mysql # not compatible
query I rowsort label-6880
SELECT - - col1 * - cor0.col2 + CAST ( - cor0.col2 AS INTEGER ) / cor0.col1 FROM tab1 cor0
----
-1255
-1406
-575
query I rowsort
SELECT + 43 + - col0 AS col0 FROM tab0 AS cor0
----
-46
19
8
query I rowsort
SELECT ALL - 42 AS col0 FROM tab1 cor0
----
-42
-42
-42
query I rowsort
SELECT DISTINCT - + 2 * col0 FROM tab1 AS cor0
----
-128
-160
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-6884
SELECT - col2 - - 18 DIV - col1 AS col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-6884
SELECT - col2 - - 18 / - col1 AS col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT - ( - col2 ) - - cor0.col0 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT cor0.col1 * col2 + 1 FROM tab2 AS cor0
----
1535
647
838
query I rowsort
SELECT DISTINCT + col2 * col2 - 77 FROM tab0 AS cor0
----
-76
1012
6647
query I rowsort
SELECT DISTINCT - col0 * col1 * + ( - 89 ) - col0 AS col2 FROM tab1 AS cor0
----
56896
6939
92480
onlyif mysql # use DIV operator for integer division
query I rowsort label-6889
SELECT DISTINCT - + 25 DIV - col1 + col0 * + col2 FROM tab1 AS cor0
----
162
3650
7681
skipif mysql # not compatible
query I rowsort label-6889
SELECT DISTINCT - + 25 / - col1 + col0 * + col2 FROM tab1 AS cor0
----
162
3650
7681
query I rowsort
SELECT + 69 + col1 AS col0 FROM tab1 AS cor0
----
79
82
95
query I rowsort
SELECT ALL + 2 * col1 + col2 AS col0 FROM tab0 cor0
----
195
205
264
query I rowsort
SELECT DISTINCT - 49 * cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1519
-2891
-833
query I rowsort
SELECT ALL + col1 * - 71 + col1 AS col2 FROM tab1 AS cor0
----
-1820
-700
-910
onlyif mysql # use DIV operator for integer division
query I rowsort label-6894
SELECT col2 DIV + 37 FROM tab0 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-6894
SELECT col2 / + 37 FROM tab0 AS cor0
----
0
0
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6895
SELECT DISTINCT + col1 * + CAST( col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6895
SELECT DISTINCT + col1 * + CAST ( col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - col2 + 96 FROM tab0 AS cor0
----
14
63
95
query I rowsort
SELECT DISTINCT - col2 * + 46 AS col0 FROM tab0 cor0
----
-1518
-3772
-46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6898
SELECT ALL - cor0.col1 + - CAST( NULL AS SIGNED ) * - col1 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6898
SELECT ALL - cor0.col1 + - CAST ( NULL AS INTEGER ) * - col1 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * + 41 FROM tab1 AS cor0
----
-123
-2624
-3280
query I rowsort
SELECT DISTINCT - col2 * + 6 FROM tab2 AS cor0
----
-156
-162
-228
query I rowsort
SELECT DISTINCT - col0 * col2 * - 14 AS col0 FROM tab2 AS cor0
----
2646
28392
42028
query I rowsort
SELECT ALL + col1 + - 33 FROM tab1 AS cor0
----
-20
-23
-7
query I rowsort
SELECT - cor0.col2 * ( + col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT 25 * - col0 FROM tab0 AS cor0
----
-2225
-600
-875
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6905
SELECT DISTINCT + - CAST( col1 AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-6905
SELECT DISTINCT + - CAST ( col1 AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL 34 AS col2 FROM tab0 cor0
----
34
34
34
query I rowsort
SELECT DISTINCT - col0 - - col1 * col2 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT + + ( - 46 ) FROM tab2 AS cor0
----
-46
-46
-46
query I rowsort
SELECT DISTINCT - col0 + - ( col2 ) FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6910
SELECT + 2 DIV - ( - col1 ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6910
SELECT + 2 / - ( - col1 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 93 AS col1 FROM tab0 AS cor0
----
-93
-93
-93
query I rowsort
SELECT - col0 * col2 + + col0 * col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( - col1 ) + col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL 71 + - col1 FROM tab2 AS cor0
----
12
40
54
query I rowsort
SELECT - col0 * col0 + - col1 FROM tab1 AS cor0
----
-35
-4106
-6413
query I rowsort
SELECT DISTINCT 69 * + col0 * + col1 FROM tab0 AS cor0
----
142416
234255
558831
query I rowsort
SELECT ALL + - col1 + 37 + col0 FROM tab1 AS cor0
----
104
14
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + + 66 col1 FROM tab2 cor0
----
-12
-13
59
query I rowsort
SELECT DISTINCT - col1 + + 0 * 69 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + col1 * - col2 * + 18 + + col1 AS col1 FROM tab0
----
-134225
-1649
-50998
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 * + col2 col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT 91 * cor0.col2 * col2 + 33 FROM tab0 AS cor0
----
124
611917
99132
query I rowsort
SELECT col1 + tab1.col0 AS col1 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT + - col1 * - col1 + + col0 * + ( 57 * + col0 + + col0 ) AS col1 FROM tab1 AS cor0
----
1198
237668
371369
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6925
SELECT - - CAST( + 1 AS SIGNED ) FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6925
SELECT - - CAST ( + 1 AS INTEGER ) FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - col1 * cor0.col0 + + col2 FROM tab1 AS cor0
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-6927
SELECT ALL + ( + col1 + col2 ) DIV 85 AS col1 FROM tab0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL + ( + col1 + col2 ) / 85 AS col1 FROM tab0
----
1
1
2
query I rowsort
SELECT ALL 8 - - col2 FROM tab2
----
34
35
46
query I rowsort
SELECT + - col0 + - col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT ALL + col1 * + 69 AS col0 FROM tab2 AS cor0
----
1173
2139
4071
query I rowsort
SELECT cor0.col2 + + 12 * col1 AS col2 FROM tab2 AS cor0
----
242
399
734
query I rowsort
SELECT 54 + + cor0.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 920a25da118f1c2f4fb4ec7fb16ed14b
query I rowsort
SELECT 54 + - col1 FROM tab1
----
28
41
44
query I rowsort
SELECT DISTINCT col2 * - tab0.col0 AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT - 62 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c
query I rowsort
SELECT DISTINCT - col0 + + tab2.col0 * tab2.col0 AS col2 FROM tab2
----
42
6006
6162
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-6938
SELECT DISTINCT col2 DIV ( + col0 ) + cor0.col0 * 56 + - cor0.col0 FROM tab2 AS cor0
----
388
4290
4345
skipif mysql # not compatible
query I rowsort label-6938
SELECT DISTINCT col2 / ( + col0 ) + cor0.col0 * 56 + - cor0.col0 FROM tab2 AS cor0
----
388
4290
4345
query I rowsort
SELECT DISTINCT + + col1 + + 34 AS col0 FROM tab2 AS cor0
----
51
65
93
query I rowsort
SELECT ALL col1 * - 63 - col2 FROM tab2 AS cor0
----
-1109
-1980
-3743
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6941
SELECT ALL + col2 * + CAST( - col0 AS SIGNED ) * col0 + col2 * + 43 + cor0.col2 * - 36 AS col2 FROM tab1 AS cor0
----
-108
-233073
-613728
skipif mysql # not compatible
query I rowsort label-6941
SELECT ALL + col2 * + CAST ( - col0 AS INTEGER ) * col0 + col2 * + 43 + cor0.col2 * - 36 AS col2 FROM tab1 AS cor0
----
-108
-233073
-613728
query I rowsort
SELECT + + col0 * - col1 + + 22 FROM tab0 cor0
----
-2042
-3373
-8077
query I rowsort
SELECT DISTINCT - + col1 + ( 2 + - col2 ) FROM tab2 AS cor0
----
-53
-56
-83
query I rowsort
SELECT - + col1 + 12 FROM tab2 cor0
----
-19
-47
-5
query I rowsort
SELECT DISTINCT + col2 * + col0 + + 2 FROM tab1 AS cor0
----
164
3650
7682
query I rowsort
SELECT - col1 * cor0.col1 + - col0 AS col0 FROM tab0 cor0
----
-7420
-8370
-9444
query I rowsort
SELECT col0 * 5 + col0 + col2 * - col0 FROM tab1
----
-144
-3264
-7200
query I rowsort
SELECT 19 + + col2 FROM tab1 AS cor0
----
115
73
76
query I rowsort
SELECT ALL + 26 FROM tab1, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT ALL - 33 FROM tab0
----
-33
-33
-33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6951
SELECT ( col0 ) + + CAST( + col1 + + col2 AS SIGNED ) * + ( 53 + col0 ) * + 81 FROM tab1 AS cor0
----
1174337
362883
635023
skipif mysql # not compatible
query I rowsort label-6951
SELECT ( col0 ) + + CAST ( + col1 + + col2 AS INTEGER ) * + ( 53 + col0 ) * + 81 FROM tab1 AS cor0
----
1174337
362883
635023
query I rowsort
SELECT - col2 * col1 + 50 FROM tab2 AS cor0
----
-1484
-596
-787
query I rowsort
SELECT ALL - 7 + + cor0.col2 FROM tab1 AS cor0
----
47
50
89
query I rowsort
SELECT - 42 * - col0 FROM tab1 AS cor0
----
126
2688
3360
query I rowsort
SELECT col0 * cor0.col1 + - ( 23 ) AS col2 FROM tab1 AS cor0
----
1017
55
617
query I rowsort
SELECT + ( + ( + cor0.col1 ) ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT + col0 * cor0.col1 * - col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT + + col0 * - ( + col2 ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( + col0 * col0 ) col1 FROM tab1
----
35
4106
6413
query I rowsort
SELECT ALL + cor0.col1 FROM tab2, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL 95 * + col1 + - col1 FROM tab1 AS cor0
----
1222
2444
940
query I rowsort
SELECT DISTINCT - 73 - - cor0.col0 AS col0 FROM tab0 AS cor0
----
-38
-49
16
query I rowsort
SELECT DISTINCT col1 * col0 * - cor0.col1 FROM tab0 cor0
----
-177504
-329315
-737009
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6964
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6964
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( + cor0.col0 ) ) + col0 * ( - col1 ) col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT + 79 * col0 FROM tab1 AS cor0
----
237
5056
6320
query I rowsort
SELECT tab2.col2 - + 39 AS col2 FROM tab2
----
-1
-12
-13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6968
SELECT - CAST( NULL AS SIGNED ) + col2 * col0 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6968
SELECT - CAST ( NULL AS INTEGER ) + col2 * col0 AS col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6969
SELECT - + CAST( + col1 AS SIGNED ) + + col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6969
SELECT - + CAST ( + col1 AS INTEGER ) + + col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * + tab0.col2 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL 56 AS col0 FROM tab2
----
56
56
56
query I rowsort
SELECT - ( col0 ) * + col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + col1 + - ( + col1 ) * col0 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT - - 9 * + col2 AS col1 FROM tab0 AS cor0
----
297
738
9
query I rowsort
SELECT DISTINCT col0 * col1 AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT + col0 + + col1 * + col2 AS col2 FROM tab0 cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-6977
SELECT - + 66 + col1 DIV 36 AS col2 FROM tab0 AS cor0
----
-64
-64
-64
skipif mysql # not compatible
query I rowsort label-6977
SELECT - + 66 + col1 / 36 AS col2 FROM tab0 AS cor0
----
-64
-64
-64
onlyif mysql # use DIV operator for integer division
query I rowsort label-6978
SELECT col2 + cor0.col1 DIV - 88 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-6978
SELECT col2 + cor0.col1 / - 88 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT 54 * + col2 AS col1 FROM tab0 AS cor0
----
1782
4428
54
query I rowsort
SELECT ALL col0 * - ( - tab0.col1 ) AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT 61 FROM tab1, tab1 cor0
----
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 col2 FROM tab2 cor0
----
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 col0 FROM tab2, tab1, tab0 AS cor0
----
39
query I rowsort
SELECT col1 * + 31 FROM tab1 AS cor0
----
310
403
806
query I rowsort
SELECT cor0.col1 * col0 * - 69 + + col1 AS col2 FROM tab2 AS cor0
----
-14942
-317479
-92650
query I rowsort
SELECT - + col0 + ( - col0 + + col2 ) FROM tab1 AS cor0
----
-64
-71
48
query I rowsort
SELECT col2 + - ( + col0 ) AS col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT 16 * col1 + + col1 * ( cor0.col1 ) AS col1 FROM tab2 cor0
----
1457
4425
561
query I rowsort
SELECT 18 * cor0.col2 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f3762691e4a423c4281dd8ce8a25a896
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + ( + col2 * cor0.col0 ) col2 FROM tab0 cor0
----
34
7216
759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 col0 FROM tab0, tab0 AS cor0
----
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 * tab1.col2 col2 FROM tab1
----
-2754
-2907
-4896
query I rowsort
SELECT ALL + 52 AS col0 FROM tab0
----
52
52
52
query I rowsort
SELECT ALL col0 + col0 * ( + 75 ) * col0 FROM tab1
----
307264
480080
678
query I rowsort
SELECT ALL - col1 * cor0.col0 * col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT col2 * 74 AS col1 FROM tab2 AS cor0
----
1924
1998
2812
query I rowsort
SELECT - - col2 * col0 AS col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + 76 * + col1 FROM tab2
----
1292
2356
4484
query I rowsort
SELECT + - 0 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT col0 * + col2 - - 58 * col0 AS col2 FROM tab0
----
12460
2065
2184
query I rowsort
SELECT col2 + - col2 * + col1 FROM tab0
----
-2805
-7380
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + tab0.col0 col2 FROM tab0
----
110
132
180
query I rowsort
SELECT - col1 + col0 * - col2 AS col0 FROM tab0
----
-132
-7389
-878
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 8e89a67df0eeeac4bb0eedb403f6bb3e
query I rowsort
SELECT ALL + - col1 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL - - col1 * + ( col0 ) + + col0 + + col1 * 53 FROM tab0 AS cor0
----
13011
6646
8571
query I rowsort
SELECT DISTINCT col1 + - ( + cor0.col2 ) FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - col1 + + 57 AS col2 FROM tab1 AS cor0
----
31
44
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-7009
SELECT ALL - col1 DIV - 10 + col0 + + col0 FROM tab1 AS cor0
----
129
161
8
skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL - col1 / - 10 + col0 + + col0 FROM tab1 AS cor0
----
129
161
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7010
SELECT DISTINCT - + col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7010
SELECT DISTINCT - + col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + + col0 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL - - cor0.col1 * + col2 * 70 - col2 AS col0 FROM tab1 cor0
----
39843
87264
98226
onlyif mysql # use DIV operator for integer division
query I rowsort label-7013
SELECT ALL + + col1 DIV + col0 + col1 col2 FROM tab1 AS cor0
----
10
13
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL + + col1 / + col0 + col1 col2 FROM tab1 AS cor0
----
10
13
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-7014
SELECT col1 + ( col0 ) DIV - ( - ( col0 ) ) FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-7014
SELECT col1 + ( col0 ) / - ( - ( col0 ) ) FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT + col2 * - col1 + col2 + - 31 AS col2 FROM tab2 AS cor0
----
-1539
-639
-841
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 50 col2 FROM tab0 AS cor0
----
139
74
85
query I rowsort
SELECT ( - 4 ) + col2 * - ( - col2 ) * col1 - - 69 FROM tab0 AS cor0
----
162
611949
93719
query I rowsort
SELECT ALL + 67 + - col0 * col0 FROM tab0 cor0
----
-1158
-509
-7854
query I rowsort
SELECT - col0 + col0 - - col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + 88 FROM tab2 cor0
----
88
88
88
query I rowsort
SELECT - 62 + + col2 + 54 * col2 FROM tab2 AS cor0
----
1368
1423
2028
onlyif mysql # use DIV operator for integer division
query I rowsort label-7022
SELECT ALL cor0.col1 * col2 + 99 DIV - col0 AS col0 FROM tab0 cor0
----
2834
7461
95
skipif mysql # not compatible
query I rowsort label-7022
SELECT ALL cor0.col1 * col2 + 99 / - col0 AS col0 FROM tab0 cor0
----
2834
7461
95
query I rowsort
SELECT DISTINCT - col2 - - col2 AS col1 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7024
SELECT col0 + col2 DIV CAST( 11 AS SIGNED ) col2 FROM tab1 AS cor0
----
69
7
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7024
SELECT col0 + col2 / CAST ( 11 AS INTEGER ) col2 FROM tab1 AS cor0
----
69
7
88
query IIIIII rowsort
SELECT * FROM tab0, tab1 cor0 WHERE NOT ( - cor0.col1 ) <= ( NULL )
----
query I rowsort
SELECT - 52 AS col1 FROM tab0 AS cor0
----
-52
-52
-52
query I rowsort
SELECT ALL 71 AS col2 FROM tab0 AS cor0
----
71
71
71
query I rowsort
SELECT DISTINCT - + 77 + + col2 * col0 AS col1 FROM tab1 AS cor0
----
3571
7603
85
query I rowsort
SELECT + + 17 * - col1 FROM tab0 AS cor0
----
-1462
-1547
-1649
query I rowsort
SELECT DISTINCT + cor0.col0 * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-7031
SELECT DISTINCT - ( col2 ) + 15 * 10 DIV - col1 FROM tab0 AS cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-7031
SELECT DISTINCT - ( col2 ) + 15 * 10 / - col1 FROM tab0 AS cor0
----
-2
-34
-83
query I rowsort
SELECT DISTINCT - col1 + - col1 * ( col1 ) AS col0 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT 39 * col0 AS col0 FROM tab1 AS cor0
----
117
2496
3120
query I rowsort
SELECT + - col2 + + col0 * col0 AS col1 FROM tab2 AS cor0
----
22
6058
6203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * col1 col1 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-7036
SELECT + + ( col2 ) DIV 62 + 84 * col1 FROM tab0 cor0
----
7224
7645
8148
skipif mysql # not compatible
query I rowsort label-7036
SELECT + + ( col2 ) / 62 + 84 * col1 FROM tab0 cor0
----
7224
7645
8148
query I rowsort
SELECT ALL - ( col1 ) * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 col0 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7039
SELECT ALL + + col1 DIV - col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL + + col1 / - col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 32 col1 FROM tab2 AS cor0
----
-32
-32
-32
query I rowsort
SELECT DISTINCT - col0 + col2 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT + - 75 * cor0.col1 - 12 FROM tab0 AS cor0
----
-6462
-6837
-7287
query I rowsort
SELECT ALL - - 54 * cor0.col2 + ( col2 ) * + col0 FROM tab2 AS cor0
----
1647
3432
5054
query I rowsort
SELECT DISTINCT 11 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
37
38
49
query I rowsort
SELECT + + 86 + + cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
3002
3335
9302
query I rowsort
SELECT ALL + 56 AS col0 FROM tab0 cor0
----
56
56
56
query I rowsort
SELECT 94 AS col2 FROM tab2 AS cor0
----
94
94
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-7048
SELECT DISTINCT - - ( - col2 ) + col1 DIV col0 AS col1 FROM tab2 AS cor0
----
-23
-26
-38
skipif mysql # not compatible
query I rowsort label-7048
SELECT DISTINCT - - ( - col2 ) + col1 / col0 AS col1 FROM tab2 AS cor0
----
-23
-26
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7049
SELECT cor0.col1 + col1 DIV col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-7049
SELECT cor0.col1 + col1 / col1 FROM tab0 AS cor0
----
87
92
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + col1 col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + - cor0.col1 + - col2 * 26 FROM tab2 AS cor0
----
-1005
-733
-735
query I rowsort
SELECT - - col2 + + 90 * - col1 AS col0 FROM tab0 AS cor0
----
-7707
-8108
-8729
query I rowsort
SELECT - 1 * col2 + col1 * + col0 AS col2 FROM tab2
----
1305
190
4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + 44 col2 FROM tab2 AS cor0
----
122
123
51
query I rowsort
SELECT DISTINCT cor0.col0 + - col0 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL cor0.col2 + cor0.col2 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 73e5d3d4212c7c9c8f2e4a4f74108ae2
query I rowsort
SELECT DISTINCT - 19 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
-19
query I rowsort
SELECT DISTINCT 32 * col1 * + col1 + col1 AS col2 FROM tab1
----
21658
3210
5421
query I rowsort
SELECT DISTINCT col2 * - cor0.col2 + - col1 AS col1 FROM tab1 AS cor0
----
-2942
-3259
-9229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 col2 FROM tab2 AS cor0
----
88
88
88
query I rowsort
SELECT DISTINCT + col1 * 21 FROM tab0 AS cor0
----
1806
1911
2037
query I rowsort
SELECT ALL + ( - col1 ) * + col2 AS col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + ( - 35 ) * col1 FROM tab0 AS cor0
----
-3010
-3185
-3395
query I rowsort
SELECT DISTINCT + ( col1 ) + cor0.col0 * 36 FROM tab2 AS cor0
----
283
2861
2867
query I rowsort
SELECT + 51 * - 99 AS col2 FROM tab1 AS cor0
----
-5049
-5049
-5049
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 + + ( cor0.col2 ) col1 FROM tab2 AS cor0
----
36
37
48
query I rowsort
SELECT + - 92 + col1 FROM tab2 AS cor0
----
-33
-61
-75
query I rowsort
SELECT + ( + 33 ) + col1 * - 90 AS col0 FROM tab2 AS cor0
----
-1497
-2757
-5277
onlyif mysql # use DIV operator for integer division
query I rowsort label-7069
SELECT DISTINCT - col2 + col1 DIV + col0 + - ( - 35 + - col2 ) AS col2 FROM tab1 AS cor0
----
35
43
skipif mysql # not compatible
query I rowsort label-7069
SELECT DISTINCT - col2 + col1 / + col0 + - ( - 35 + - col2 ) AS col2 FROM tab1 AS cor0
----
35
43
query I rowsort
SELECT ALL col1 + col0 * + col2 * + tab0.col1 AS col2 FROM tab0
----
3492
664209
68198
query I rowsort
SELECT + + cor0.col2 * + ( tab1.col1 ) FROM tab1, tab0, tab2 cor0
----
27 values hashing to b875995d19e2a126dd81a380aa7231ba
query I rowsort
SELECT ALL tab2.col0 + 6 FROM tab2
----
13
84
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7073
SELECT CAST( NULL AS SIGNED ) * + 30 + + col2 * tab2.col2 / - ( col1 ) + 87 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7073
SELECT CAST ( NULL AS INTEGER ) * + 30 + + col2 * tab2.col2 / - ( col1 ) + 87 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * + col0 + + col1 AS col2 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT ALL + - 71 + - 40 FROM tab1 AS cor0
----
-111
-111
-111
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 82 ) + + tab0.col1 col1 FROM tab0
----
15
4
9
query I rowsort
SELECT + 49 + - 61 AS col2 FROM tab2 AS cor0
----
-12
-12
-12
query I rowsort
SELECT cor0.col2 * - col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT - cor0.col2 FROM tab2, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to c569638e8a09ff819458d62ddbde994c
query I rowsort
SELECT - + 71 * - cor0.col2 FROM tab0 AS cor0
----
2343
5822
71
query I rowsort
SELECT - col1 + col2 * cor0.col2 FROM tab2 cor0
----
1427
617
698
onlyif mysql # use DIV operator for integer division
query I rowsort label-7082
SELECT + + col0 DIV + cor0.col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7082
SELECT + + col0 / + cor0.col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + 82 FROM tab1, tab0 AS cor0
----
82
query I rowsort
SELECT DISTINCT + 65 * - col2 AS col2 FROM tab0
----
-2145
-5330
-65
query I rowsort
SELECT - col1 * col2 + col1 FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-7086
SELECT + col2 * col0 DIV col0 + col1 AS col2 FROM tab2 AS cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort label-7086
SELECT + col2 * col0 / col0 + col1 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT cor0.col2 + + 97 FROM tab1, tab0 AS cor0
----
130
179
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7088
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7088
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - - 55 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT ALL 10 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176
query I rowsort
SELECT - col2 * - col2 + - col1 * col1 AS col0 FROM tab1 AS cor0
----
2240
3149
9047
query I rowsort
SELECT ALL - col1 + 72 + + 21 FROM tab0 AS cor0
----
-4
2
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7093
SELECT DISTINCT col1 DIV - ( + col2 ) AS col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT col1 / - ( + col2 ) AS col2 FROM tab1
----
0
query I rowsort
SELECT DISTINCT + col2 + 68 FROM tab1 AS cor0
----
122
125
164
query I rowsort
SELECT ALL - tab2.col1 + tab2.col1 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL 61 * col0 AS col2 FROM tab0
----
1464
2135
5429
query I rowsort
SELECT 41 AS col0 FROM tab2
----
41
41
41
query I rowsort
SELECT col0 * - col0 - + col0 * col0 FROM tab0
----
-1152
-15842
-2450
onlyif mysql # use DIV operator for integer division
query I rowsort label-7099
SELECT - tab1.col0 DIV - col2 + col0 FROM tab1
----
3
65
80
skipif mysql # not compatible
query I rowsort label-7099
SELECT - tab1.col0 / - col2 + col0 FROM tab1
----
3
65
80
query I rowsort
SELECT + 49 * + col2 + col0 FROM tab1 AS cor0
----
2649
2857
4784
query I rowsort
SELECT + ( 85 ) FROM tab2 cor0
----
85
85
85
query I rowsort
SELECT + col0 + + 80 * - col2 FROM tab1 AS cor0
----
-4317
-4496
-7600
query I rowsort
SELECT DISTINCT + col0 * col2 AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT col1 * - col0 - ( + 92 ) AS col2 FROM tab2
----
-1435
-309
-4694
query I rowsort
SELECT DISTINCT + ( tab2.col1 ) FROM tab2, tab0, tab1 AS cor0
----
17
31
59
query I rowsort
SELECT + 59 * - col0 FROM tab1 AS cor0
----
-177
-3776
-4720
query I rowsort
SELECT col1 + col0 * + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL 70 - - col2 AS col1 FROM tab0
----
103
152
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7109
SELECT DISTINCT + col1 - + CAST( + 41 AS SIGNED ) * cor0.col1 FROM tab1 AS cor0
----
-1040
-400
-520
skipif mysql # not compatible
query I rowsort label-7109
SELECT DISTINCT + col1 - + CAST ( + 41 AS INTEGER ) * cor0.col1 FROM tab1 AS cor0
----
-1040
-400
-520
query I rowsort
SELECT DISTINCT col0 * col2 - 54 AS col0 FROM tab2 AS cor0
----
135
1974
2948
query I rowsort
SELECT - col0 + + 63 AS col2 FROM tab2 AS cor0
----
-15
-16
56
query I rowsort
SELECT ALL - col0 * ( col1 ) + col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT + ( col1 ) * + cor0.col0 + + col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col2 * col2 + 93 * col1 AS col2 FROM tab2 AS cor0
----
22566
23063
56453
query I rowsort
SELECT ALL + - col2 + col1 * - 95 AS col0 FROM tab0 AS cor0
----
-8203
-8727
-9216
query I rowsort
SELECT + - col0 + col2 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT + ( col0 ) + - 98 FROM tab0 AS cor0
----
-63
-74
-9
query I rowsort
SELECT DISTINCT - 34 + + col0 FROM tab2 AS cor0
----
-27
44
45
query I rowsort
SELECT DISTINCT - col0 * - col0 * col1 AS col0 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT ALL + col1 * col0 + col1 * col2 AS col2 FROM tab2 AS cor0
----
1054
1989
6136
onlyif mysql # use DIV operator for integer division
query I rowsort label-7121
SELECT col0 + + col1 DIV + col0 FROM tab2
----
11
78
79
skipif mysql # not compatible
query I rowsort label-7121
SELECT col0 + + col1 / + col0 FROM tab2
----
11
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-7122
SELECT DISTINCT tab2.col1 DIV col0 AS col2 FROM tab2
----
0
4
skipif mysql # not compatible
query I rowsort label-7122
SELECT DISTINCT tab2.col1 / col0 AS col2 FROM tab2
----
0
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-7123
SELECT ALL tab1.col2 DIV + col0 AS col2 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL tab1.col2 / + col0 AS col2 FROM tab1
----
0
1
18
query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT ( + col2 + col0 ) NOT IN ( - tab1.col1 + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7125
SELECT - col1 * + col0 DIV col0 AS col2 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-7125
SELECT - col1 * + col0 / col0 AS col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL - cor0.col2 * col0 + col1 AS col2 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ALL ( col2 ) * ( col2 ) + + col0 AS col0 FROM tab1
----
2919
3313
9296
onlyif mysql # use DIV operator for integer division
query I rowsort label-7128
SELECT ALL col1 DIV - col0 + 13 FROM tab1
----
13
13
5
skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL col1 / - col0 + 13 FROM tab1
----
13
13
5
query I rowsort
SELECT DISTINCT 24 * col0 * - col1 + + col2 FROM tab2
----
-110422
-32194
-5181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 26 col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 4e49eac022daeae6f88f610644ba3754
query I rowsort
SELECT ALL - col1 * + col1 + - 99 FROM tab1
----
-199
-268
-775
query I rowsort
SELECT DISTINCT - col2 * - col1 * ( 24 ) AS col0 FROM tab2
----
15504
20088
36816
query I rowsort
SELECT + ( - tab0.col2 ) FROM tab0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 86 + col0 col0 FROM tab2
----
-7
-79
-8
query I rowsort
SELECT DISTINCT 60 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
60
query I rowsort
SELECT DISTINCT + tab1.col2 * col2 + - col2 FROM tab1
----
2862
3192
9120
query I rowsort
SELECT ALL col0 * - col0 + col2 FROM tab0
----
-1224
-543
-7839
onlyif mysql # use DIV operator for integer division
query I rowsort label-7138
SELECT col2 DIV - col0 + - col0 FROM tab2
----
-10
-78
-79
skipif mysql # not compatible
query I rowsort label-7138
SELECT col2 / - col0 + - col0 FROM tab2
----
-10
-78
-79
query I rowsort
SELECT ALL - col1 * - col1 + + col2 FROM tab1
----
157
265
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-7140
SELECT DISTINCT col0 DIV tab1.col1 + - col0 FROM tab1
----
-3
-58
-74
skipif mysql # not compatible
query I rowsort label-7140
SELECT DISTINCT col0 / tab1.col1 + - col0 FROM tab1
----
-3
-58
-74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col0 + + col0 col0 FROM tab1
----
128
160
6
query I rowsort
SELECT + tab1.col1 * - col2 - + col0 FROM tab1
----
-1328
-1407
-634
query I rowsort
SELECT ALL col2 + + col1 AS col2 FROM tab1
----
109
67
80
query I rowsort
SELECT col2 * col1 + col0 * - col2 * - col2 + tab1.col0 * - col0 FROM tab1
----
10143
204410
732128
onlyif mysql # use DIV operator for integer division
query I rowsort label-7145
SELECT DISTINCT - col2 + + col0 DIV - tab1.col0 + - col0 * - col0 FROM tab1
----
-46
4038
6303
skipif mysql # not compatible
query I rowsort label-7145
SELECT DISTINCT - col2 + + col0 / - tab1.col0 + - col0 * - col0 FROM tab1
----
-46
4038
6303
query I rowsort
SELECT ALL - tab0.col0 + + col2 + col1 FROM tab0
----
63
84
95
query I rowsort
SELECT col2 FROM tab2 WHERE col0 - + col2 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT col0 * - col1 + col1 + col0 AS col0 FROM tab0 WHERE ( NULL ) NOT IN ( - col0 )
----
query I rowsort
SELECT DISTINCT col2 + + tab0.col0 AS col1 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL + tab1.col2 + - col1 * col1 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT ALL + col2 + + col0 + - col1 * col2 AS col0 FROM tab2
----
-1430
-529
-803
query I rowsort
SELECT ALL col0 * + col1 + col2 + col0 AS col2 FROM tab0
----
2121
3431
8270
query I rowsort
SELECT tab1.col2 * col0 + tab1.col1 FROM tab1
----
188
3658
7693
query I rowsort
SELECT ALL col1 + - col1 * col1 AS col0 FROM tab1 WHERE NOT NULL <> ( - col2 - col0 * - col2 * + col2 )
----
query I rowsort
SELECT DISTINCT - col2 * col2 + col1 + + col1 * - col0 * + col2 AS col0 FROM tab1
----
-109043
-39719
-7102
onlyif mysql # use DIV operator for integer division
query I rowsort label-7156
SELECT - col0 + - col0 DIV tab1.col2 + tab1.col1 FROM tab1
----
-55
-67
23
skipif mysql # not compatible
query I rowsort label-7156
SELECT - col0 + - col0 / tab1.col2 + tab1.col1 FROM tab1
----
-55
-67
23
query I rowsort
SELECT col1 + col0 + - col0 AS col0 FROM tab2
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-7158
SELECT col2 * + col2 + col2 DIV - col0 FROM tab2
----
1444
676
726
skipif mysql # not compatible
query I rowsort label-7158
SELECT col2 * + col2 + col2 / - col0 FROM tab2
----
1444
676
726
query I rowsort
SELECT DISTINCT col0 * col1 + col0 * + col1 + - col2 FROM tab2
----
2648
407
9178
query I rowsort
SELECT ALL col1 + + col2 + tab1.col0 * - col2 AS col1 FROM tab1
----
-3581
-7571
-82
query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * - col0 * + col0 + - col2 <= NULL
----
query I rowsort
SELECT + tab1.col0 + + tab1.col1 FROM tab1
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + tab2.col0 * + col0 * - col0 col1 FROM tab2
----
-312
-474493
-493022
query I rowsort
SELECT DISTINCT col1 * + col0 * - col2 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT + tab0.col1 + col1 * col2 AS col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT ALL tab0.col0 * + col1 AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL ( - col0 * col1 ) + col0 * col0 FROM tab1
----
-69
3456
5360
query I rowsort
SELECT ALL col0 + + col1 * - col2 + - col1 FROM tab2
----
-1515
-584
-861
query I rowsort
SELECT - - cor0.col1 * - col1 - - 6 AS col2 FROM tab0 AS cor0
----
-7390
-8275
-9403
query I rowsort
SELECT DISTINCT col2 * col2 + col2 AS col0 FROM tab1
----
2970
3306
9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7171
SELECT ALL CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7171
SELECT ALL CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + 50 FROM tab1, tab2 cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT + 41 * col1 AS col0 FROM tab0 AS cor0
----
3526
3731
3977
query I rowsort
SELECT + + col1 * 32 AS col2 FROM tab0 cor0
----
2752
2912
3104
query I rowsort
SELECT ALL - 64 * + 4 + col1 * col1 FROM tab2
----
3225
33
705
query I rowsort
SELECT + col0 + cor0.col0 + + ( - 37 ) FROM tab2 AS cor0
----
-23
119
121
query I rowsort
SELECT ALL - + 40 FROM tab1 AS cor0
----
-40
-40
-40
query I rowsort
SELECT ALL + + cor0.col1 * col1 FROM tab2 cor0
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col0 col2 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7180
SELECT - col0 * col2 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7180
SELECT - col0 * col2 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( col2 ) * 37 FROM tab2 AS cor0
----
1406
962
999
query I rowsort
SELECT ALL + ( col0 ) * cor0.col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - col0 * + col1 - col2 FROM tab2 AS cor0
----
-1381
-244
-4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-7184
SELECT DISTINCT - col2 + - col0 DIV + col0 FROM tab0 cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-7184
SELECT DISTINCT - col2 + - col0 / + col0 FROM tab0 cor0
----
-2
-34
-83
query I rowsort
SELECT + col0 * col1 + - col2 FROM tab2 AS cor0
----
1305
190
4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-7186
SELECT + - col0 DIV + col2 + 31 DIV - col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7186
SELECT + - col0 / + col2 + 31 / - col2 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT col2 * - col2 * + cor0.col2 FROM tab2 AS cor0
----
-17576
-19683
-54872
query I rowsort
SELECT ALL - - col2 * - 30 + - col0 FROM tab1 AS cor0
----
-1623
-1774
-2960
query I rowsort
SELECT DISTINCT - - col0 * 38 FROM tab1 AS cor0
----
114
2432
3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7190
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7190
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 col2 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - col2 * - 11 AS col2 FROM tab1 AS cor0
----
1056
594
627
query I rowsort
SELECT ALL - col0 * 91 FROM tab1 AS cor0
----
-273
-5824
-7280
query I rowsort
SELECT - cor0.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-7195
SELECT + cor0.col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7195
SELECT + cor0.col0 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 * + cor0.col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT - col2 + 12 * col2 FROM tab2 AS cor0
----
286
297
418
query I rowsort
SELECT DISTINCT - col0 * col1 * + col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT - - 34 * - 30 FROM tab1 AS cor0
----
-1020
-1020
-1020
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 18 col2 FROM tab0 AS cor0
----
18
18
18
query I rowsort
SELECT DISTINCT - - 58 AS col1 FROM tab2 AS cor0
----
58
query I rowsort
SELECT col2 * - col1 * - col1 AS col0 FROM tab0 cor0
----
244068
679042
9409
query I rowsort
SELECT + 12 * 33 FROM tab2 AS cor0
----
396
396
396
query I rowsort
SELECT ALL - - 87 AS col2 FROM tab0 AS cor0
----
87
87
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 col0 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 3b4644ef0734ed220952cae7e0648c4b
query I rowsort
SELECT - ( cor0.col0 ) FROM tab0, tab0 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 * col0 col1 FROM tab0
----
1176
1715
4361
query I rowsort
SELECT + cor0.col1 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT + cor0.col2 * + col1 AS col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT - - cor0.col0 * col2 + - col0 AS col1 FROM tab0 AS cor0
----
0
7209
768
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 * col2 col2 FROM tab2 AS cor0
----
1026
1444
988
query I rowsort
SELECT DISTINCT - 39 FROM tab1 AS cor0
----
-39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7213
SELECT + ( + col2 ) * - CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif mysql # not compatible
query I rowsort label-7213
SELECT + ( + col2 ) * - CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT - - 91 * cor0.col2 AS col2 FROM tab1 cor0
----
4914
5187
8736
query I rowsort
SELECT ALL 89 * 11 + + col1 FROM tab0 AS cor0
----
1065
1070
1076
query I rowsort
SELECT ALL + col1 * 76 FROM tab2 AS cor0
----
1292
2356
4484
query I rowsort
SELECT + col2 * + 42 FROM tab1
----
2268
2394
4032
query I rowsort
SELECT + - 94 + col2 FROM tab2 AS cor0
----
-56
-67
-68
onlyif mysql # use DIV operator for integer division
query I rowsort label-7219
SELECT DISTINCT - - cor0.col2 DIV col1 + + col1 AS col0 FROM tab1 AS cor0
----
15
20
28
skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT - - cor0.col2 / col1 + + col1 AS col0 FROM tab1 AS cor0
----
15
20
28
query I rowsort
SELECT + 68 + - col0 AS col0 FROM tab0 AS cor0
----
-21
33
44
query I rowsort
SELECT DISTINCT - 48 + col0 FROM tab2 cor0
----
-41
30
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7222
SELECT DISTINCT col1 / + CAST( NULL AS SIGNED ) + + tab1.col0 AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-7222
SELECT DISTINCT col1 / + CAST ( NULL AS INTEGER ) + + tab1.col0 AS col0 FROM tab1
----
NULL
query I rowsort
SELECT + - col1 * - col0 - + col1 FROM tab1 AS cor0
----
1027
52
630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7224
SELECT - CAST( - 63 AS SIGNED ) + col0 FROM tab2 AS cor0
----
141
142
70
skipif mysql # not compatible
query I rowsort label-7224
SELECT - CAST ( - 63 AS INTEGER ) + col0 FROM tab2 AS cor0
----
141
142
70
query I rowsort
SELECT 79 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT + 88 FROM tab0, tab0 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT col2 * ( tab0.col2 * 33 ) AS col2 FROM tab0
----
221892
33
35937
query I rowsort
SELECT - col2 + col0 * col1 AS col0 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT - + ( - col0 ) FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-7230
SELECT DISTINCT ( tab0.col1 ) DIV col2 AS col2 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT ( tab0.col1 ) / col2 AS col2 FROM tab0
----
1
2
97
query I rowsort
SELECT DISTINCT col2 * + ( - col0 + 61 ) AS col0 FROM tab1
----
-171
-1824
3132
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7232
SELECT ALL + CAST( + col2 + + col0 AS SIGNED ) AS col2 FROM tab2
----
104
117
34
skipif mysql # not compatible
query I rowsort label-7232
SELECT ALL + CAST ( + col2 + + col0 AS INTEGER ) AS col2 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT - ( 58 ) * col1 FROM tab2
----
-1798
-3422
-986
query I rowsort
SELECT - 29 + col2 FROM tab0
----
-28
4
53
query I rowsort
SELECT DISTINCT - + col1 + + col2 * 8 FROM tab2 cor0
----
149
185
287
query I rowsort
SELECT ALL + col0 - cor0.col2 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT + 29 * cor0.col1 * - col2 + col1 * - col0 * - col1 AS col1 FROM tab0 cor0
----
326502
520611
95202
query I rowsort
SELECT - 17 + - col0 - col0 AS col0 FROM tab0 AS cor0
----
-195
-65
-87
query I rowsort
SELECT DISTINCT cor0.col1 + - col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT + col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT col2 + col0 * - col0 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT DISTINCT - col1 + cor0.col0 * ( 98 + cor0.col0 ) * - col1 AS col1 FROM tab1 AS cor0
----
-103690
-185133
-7904
query I rowsort
SELECT ALL - cor0.col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT 45 * + col1 FROM tab0
----
3870
4095
4365
query I rowsort
SELECT + - col0 * - col2 + + 91 FROM tab0 AS cor0
----
126
7389
883
query I rowsort
SELECT - col0 * ( + col2 + 98 ) FROM tab1 AS cor0
----
-15520
-456
-9920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 98 * cor0.col1 col1 FROM tab2 cor0
----
1666
3038
5782
query I rowsort
SELECT ( 74 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7249
SELECT tab0.col1 - + CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7249
SELECT tab0.col1 - + CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * - ( 98 ) FROM tab2 AS cor0
----
-686
-7644
-7742
query I rowsort
SELECT ( 19 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT ALL - cor0.col1 * - 64 FROM tab1, tab2 AS cor0
----
9 values hashing to c751ea51c226889015445e4eb03cbacd
query I rowsort
SELECT col1 * - col1 - col0 FROM tab1 AS cor0
----
-164
-249
-679
query I rowsort
SELECT ( + cor0.col0 ) + + col2 * col1 * cor0.col1 FROM tab2 AS cor0
----
11061
25954
90584
query I rowsort
SELECT + col2 - cor0.col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT - col0 * 5 - + col2 FROM tab2
----
-416
-433
-62
query I rowsort
SELECT + + 87 FROM tab2 AS cor0
----
87
87
87
query I rowsort
SELECT col1 * ( col0 ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT cor1.col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
1
33
82
query I rowsort
SELECT ALL col0 * - col1 + - ( + tab1.col1 * - tab1.col1 ) + 64 AS col2 FROM tab1
----
-476
-807
662
onlyif mysql # use DIV operator for integer division
query I rowsort label-7261
SELECT ALL + col2 + ( col2 ) + col0 DIV ( col0 * + tab0.col2 ) FROM tab0
----
164
3
66
skipif mysql # not compatible
query I rowsort label-7261
SELECT ALL + col2 + ( col2 ) + col0 / ( col0 * + tab0.col2 ) FROM tab0
----
164
3
66
query I rowsort
SELECT 31 FROM tab0, tab0 AS cor0, tab1 cor1, tab1, tab0 cor2
----
243 values hashing to 5b0462d4ccf91197d9ff7927e18ce26b
query I rowsort
SELECT DISTINCT + + col2 * 99 AS col0 FROM tab0 AS cor0
----
3267
8118
99
query I rowsort
SELECT ALL + - col0 * - ( 29 ) AS col0 FROM tab2 AS cor0
----
203
2262
2291
query I rowsort
SELECT ALL - - col1 + + col2 * col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + 21 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
query I rowsort
SELECT DISTINCT + col2 * - ( col0 ) FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - ( + ( - col1 ) ) FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7269
SELECT + 71 DIV col0 AS col1 FROM tab0 AS cor0
----
0
2
2
skipif mysql # not compatible
query I rowsort label-7269
SELECT + 71 / col0 AS col1 FROM tab0 AS cor0
----
0
2
2
query I rowsort
SELECT ALL + 80 * 81 AS col0 FROM tab1 AS cor0
----
6480
6480
6480
query I rowsort
SELECT col1 + col1 + - col0 FROM tab1 cor0
----
-44
-54
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7272
SELECT ALL CAST( NULL AS SIGNED ) + 34 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL CAST ( NULL AS INTEGER ) + 34 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7273
SELECT DISTINCT - col1 DIV + 47 + + col0 * + col0 AS col2 FROM tab0 AS cor0
----
1223
575
7920
skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT - col1 / + 47 + + col0 * + col0 AS col2 FROM tab0 AS cor0
----
1223
575
7920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 57 col1 FROM tab0 AS cor0
----
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7275
SELECT DISTINCT 16 * - col0 + + col0 DIV cor0.col0 FROM tab2 AS cor0
----
-111
-1247
-1263
skipif mysql # not compatible
query I rowsort label-7275
SELECT DISTINCT 16 * - col0 + + col0 / cor0.col0 FROM tab2 AS cor0
----
-111
-1247
-1263
query I rowsort
SELECT ALL + + 55 * + col0 + + col1 - - col0 AS col0 FROM tab0 AS cor0
----
1430
2057
5075
query I rowsort
SELECT DISTINCT - - 32 FROM tab0 AS cor0
----
32
query I rowsort
SELECT DISTINCT col0 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - 69 AS col0 FROM tab1 cor0
----
-69
-69
-69
query I rowsort
SELECT DISTINCT + + ( - col2 ) * - col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7281
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 * col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7281
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 * col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - + 27 * cor0.col1 FROM tab1 AS cor0
----
-270
-351
-702
query I rowsort
SELECT ALL + col2 * + col2 + - col0 * - col0 AS col2 FROM tab2
----
6760
7685
778
query I rowsort
SELECT ALL col2 + - tab0.col0 * 55 FROM tab0
----
-1287
-1924
-4813
query I rowsort
SELECT ALL + col2 + 56 + + tab1.col2 FROM tab1
----
164
170
248
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * ( 85 ) - - tab0.col1 col0 FROM tab0
----
-7224
-7644
-8148
query I rowsort
SELECT DISTINCT - col1 - + 27 AS col2 FROM tab0
----
-113
-118
-124
query I rowsort
SELECT ALL 21 FROM tab1 cor0
----
21
21
21
query I rowsort
SELECT ALL col2 * ( col0 ) - - col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT - tab0.col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL + col2 * col0 + 68 AS col0 FROM tab2 cor0
----
2096
257
3070
query I rowsort
SELECT DISTINCT - + col1 - col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT DISTINCT + col0 * col1 AS col2 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ( col1 ) * 1 AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL - 35 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-3010
-3185
-3395
query I rowsort
SELECT ALL + 65 * col2 + + 49 AS col0 FROM tab0 AS cor0
----
114
2194
5379
query I rowsort
SELECT DISTINCT + col0 * 5 + + col2 AS col1 FROM tab2 AS cor0
----
416
433
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7298
SELECT ( col1 ) DIV ( col1 ) FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7298
SELECT ( col1 ) / ( col1 ) FROM tab0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7299
SELECT DISTINCT ( - col2 ) DIV col1 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-7299
SELECT DISTINCT ( - col2 ) / col1 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT ALL - col0 * ( col0 ) + - col2 FROM tab1 AS cor0
----
-4153
-63
-6496
query I rowsort
SELECT ALL - col2 * col2 - - col0 AS col1 FROM tab0 cor0
----
-1065
-6635
34
query I rowsort
SELECT DISTINCT + 89 AS col0 FROM tab1
----
89
query I rowsort
SELECT DISTINCT col0 + 89 AS col1 FROM tab1
----
153
169
92
query I rowsort
SELECT DISTINCT col2 + + col1 * col1 AS col2 FROM tab1
----
157
265
730
query I rowsort
SELECT DISTINCT + col2 + - col1 * col0 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL + col2 + - col0 * - col0 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT DISTINCT + col1 + 84 FROM tab0 AS cor0
----
170
175
181
query I rowsort
SELECT DISTINCT col2 + col2 * cor0.col0 + col1 FROM tab2 AS cor0
----
2113
247
3057
query I rowsort
SELECT ALL + col0 * ( col1 ) + - col2 + + ( + 69 ) * - col0 AS col1 FROM tab1 AS cor0
----
-183
-3833
-4576
query I rowsort
SELECT ( - tab2.col2 ) AS col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT ( - col1 ) + - col2 * 7 * col1 FROM tab2
----
-10797
-4539
-5890
query I rowsort
SELECT - + ( - col0 ) AS col1 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL + ( 90 ) AS col1 FROM tab0 cor0
----
90
90
90
query I rowsort
SELECT DISTINCT 95 + 82 FROM tab0 AS cor0
----
177
query I rowsort
SELECT - + col1 + + col0 AS col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL - ( 56 ) * cor0.col0 FROM tab2 AS cor0
----
-392
-4368
-4424
query I rowsort
SELECT + cor0.col0 * col1 * + ( col1 ) FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT ALL - - 70 - col2 AS col2 FROM tab1 AS cor0
----
-26
13
16
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 col0 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT ALL cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + cor0.col0 * ( col1 + + col1 ) col2 FROM tab2 AS cor0
----
2765
441
9282
query I rowsort
SELECT ALL col0 + cor0.col2 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT col2 * col2 + - col0 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT ALL - 70 + col1 FROM tab1 AS cor0
----
-44
-57
-60
query I rowsort
SELECT DISTINCT + - col2 * - col0 AS col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT + 70 + - col0 AS col0 FROM tab1 AS cor0
----
-10
6
67
query I rowsort
SELECT DISTINCT - + 7 - col0 AS col0 FROM tab0 cor0
----
-31
-42
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7328
SELECT ALL CAST( NULL AS SIGNED ) * - col1 * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7329
SELECT - col1 DIV tab1.col1 + + col2 FROM tab1
----
53
56
95
skipif mysql # not compatible
query I rowsort label-7329
SELECT - col1 / tab1.col1 + + col2 FROM tab1
----
53
56
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 * ( + 42 ) col1 FROM tab0
----
1008
1470
3738
query I rowsort
SELECT + + 69 FROM tab1 AS cor0
----
69
69
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col1 * cor0.col2 col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT - 43 FROM tab2, tab1 AS cor0
----
-43
query I rowsort
SELECT ALL + 47 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT col2 * ( tab0.col0 ) * + col2 AS col0 FROM tab0
----
26136
35
598436
query I rowsort
SELECT col1 * - col1 AS col2 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT + 37 AS col0 FROM tab2
----
37
query I rowsort
SELECT - - ( + col1 ) + + col2 * - col0 * - col1 AS col2 FROM tab0 AS cor0
----
3492
664209
68198
query I rowsort
SELECT col1 + 24 FROM tab0 cor0
----
110
115
121
query I rowsort
SELECT - col0 + - col0 * - col2 + + 79 AS col2 FROM tab1 AS cor0
----
238
3663
7679
query I rowsort
SELECT col0 + 28 AS col1 FROM tab0 AS cor0
----
117
52
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7342
SELECT DISTINCT + col1 * col0 + CAST( - col0 * - col1 AS SIGNED ) col1 FROM tab2 cor0
----
2686
434
9204
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7342
SELECT DISTINCT + col1 * col0 + CAST ( - col0 * - col1 AS INTEGER ) col1 FROM tab2 cor0
----
2686
434
9204
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + col0 * ( 80 ) * col0 + col0 * col1 AS col1 FROM tab0 AS cor0
----
101395
48144
641779
query I rowsort
SELECT + col1 * col2 + col2 AS col0 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT - col0 + col0 + ( col2 ) AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT col1 * + col0 + 93 AS col1 FROM tab2 AS cor0
----
1436
310
4695
query I rowsort
SELECT + col1 * col2 + - 78 FROM tab0 AS cor0
----
19
2760
7384
onlyif mysql # use DIV operator for integer division
query I rowsort label-7349
SELECT + + col2 DIV ( - col2 + - col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7349
SELECT + + col2 / ( - col2 + - col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col0 * - tab1.col0 AS col2 FROM tab1
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + col1 * + col0 + 33 FROM tab0 AS cor0
----
2097
3428
8132
query I rowsort
SELECT DISTINCT - + col0 * - col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT + + col0 + + 7 FROM tab2 AS cor0
----
14
85
86
query I rowsort
SELECT - col0 * - ( - col0 ) AS col1 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT - - col0 + 15 * - col2 FROM tab1 cor0
----
-1360
-791
-807
query I rowsort
SELECT - + col1 - - col0 * + col2 AS col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT ALL - + col0 * - col1 * + col1 AS col2 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT 78 * 10 - cor0.col1 FROM tab0 AS cor0
----
683
689
694
query I rowsort
SELECT ALL 64 + ( col2 ) AS col1 FROM tab2 cor0
----
102
90
91
query I rowsort
SELECT cor1.col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7362
SELECT ( + cor0.col0 ) + + CAST( NULL AS SIGNED ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7362
SELECT ( + cor0.col0 ) + + CAST ( NULL AS INTEGER ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col2 * cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cf1383d310e5e3e19470e0b8dc064d0c
query I rowsort
SELECT DISTINCT - - cor0.col1 + - col2 * ( col2 ) AS col2 FROM tab2 AS cor0
----
-1427
-617
-698
onlyif mysql # use DIV operator for integer division
query I rowsort label-7365
SELECT cor0.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-7365
SELECT cor0.col2 / - col0 col0 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT tab1.col2 + + col0 * col1 AS col1 FROM tab1
----
1136
132
697
query I rowsort
SELECT col0 * - col0 + - col2 * + col1 FROM tab0
----
-1322
-15383
-3414
query I rowsort
SELECT 53 - - col0 FROM tab0
----
142
77
88
query I rowsort
SELECT ALL + ( 81 ) * col1 + col0 + col1 AS col0 FROM tab1 AS cor0
----
1146
2135
884
query I rowsort
SELECT DISTINCT + ( - col0 ) - col1 AS col0 FROM tab2 cor0
----
-137
-38
-96
query I rowsort
SELECT ALL 88 * - cor0.col1 FROM tab2 AS cor0
----
-1496
-2728
-5192
query I rowsort
SELECT - ( - col0 ) AS col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT - 71 AS col0 FROM tab2 AS cor0
----
-71
-71
-71
query I rowsort
SELECT ALL 73 + col1 AS col2 FROM tab0
----
159
164
170
query I rowsort
SELECT ALL - + 31 + + col2 + 78 FROM tab1 AS cor0
----
101
104
143
query I rowsort
SELECT + 87 FROM tab0 cor0
----
87
87
87
query I rowsort
SELECT ALL - 20 * col0 + + col1 FROM tab1 cor0
----
-1270
-1587
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7378
SELECT ALL - + col0 * cor0.col0 * + CAST( NULL AS SIGNED ) + 79 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL - + col0 * cor0.col0 * + CAST ( NULL AS INTEGER ) + 79 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * col2 + col2 * + col1 AS col1 FROM tab0 AS cor0
----
14924
194
5676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * col2 col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - 7 FROM tab0, tab1 cor0, tab1 AS cor1
----
-7
query I rowsort
SELECT col0 + ( col2 ) * col2 FROM tab2
----
1523
736
754
query I rowsort
SELECT DISTINCT col1 * + ( col0 * - col2 ) FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT col0 * 87 FROM tab1
----
261
5568
6960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 43 * 24 col2 FROM tab2 cor0
----
1025
953
954
query I rowsort
SELECT DISTINCT - col0 * ( + col1 ) AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7387
SELECT + cor0.col0 * - CAST( NULL AS SIGNED ) + + col2 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7387
SELECT + cor0.col0 * - CAST ( NULL AS INTEGER ) + + col2 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 + + ( - 70 ) AS col2 FROM tab2 AS cor0
----
-63
8
9
query I rowsort
SELECT DISTINCT + col2 * 15 - cor0.col0 AS col1 FROM tab2 cor0
----
312
398
491
query I rowsort
SELECT + + col2 * col1 + cor0.col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - + col1 + + ( 52 ) * col0 AS col2 FROM tab2 AS cor0
----
333
3997
4091
query I rowsort
SELECT ( + 81 ) * col2 FROM tab0 AS cor0
----
2673
6642
81
query I rowsort
SELECT ALL + - 19 AS col2 FROM tab2 AS cor0
----
-19
-19
-19
query I rowsort
SELECT + + 28 FROM tab2 AS cor0
----
28
28
28
query I rowsort
SELECT ALL - col1 * 9 FROM tab2 AS cor0
----
-153
-279
-531
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7396
SELECT ALL - CAST( NULL AS SIGNED ) + col1 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7396
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 15 * cor0.col2 AS col1 FROM tab0 cor0
----
1230
15
495
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col0 ) col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + + col0 * - col1 * col2 + - col2 * col1 AS col1 FROM tab1 AS cor0
----
-101088
-37050
-5616
query I rowsort
SELECT ALL + + 38 AS col2 FROM tab0 AS cor0
----
38
38
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( cor0.col1 ) * + col1 - col2 col0 FROM tab2 cor0
----
251
3455
934
query I rowsort
SELECT 14 * - 60 * col0 AS col0 FROM tab0 AS cor0
----
-20160
-29400
-74760
query I rowsort
SELECT DISTINCT + 87 + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1002
-6637
86
query I rowsort
SELECT - ( + col1 ) + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + - cor0.col2 + + col0 * col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-7406
SELECT ALL - col2 + + col0 DIV col0 FROM tab2
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL - col2 + + col0 / col0 FROM tab2
----
-25
-26
-37
query I rowsort
SELECT ALL + 76 FROM tab0, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT DISTINCT + ( - 66 ) AS col2 FROM tab0 AS cor0
----
-66
query I rowsort
SELECT ALL 0 * + col2 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 33 + - col1 * + col0 AS col1 FROM tab0 AS cor0
----
-2097
-3428
-8132
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7411
SELECT DISTINCT 45 + col0 + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7411
SELECT DISTINCT 45 + col0 + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + + 25 + + col0 AS col2 FROM tab1 AS cor0
----
105
28
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-7413
SELECT col2 DIV - col0 FROM tab2 cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-7413
SELECT col2 / - col0 FROM tab2 cor0
----
-3
0
0
query I rowsort
SELECT ALL ( col2 ) * + col2 + ( - 34 * col2 ) AS col1 FROM tab1 cor0
----
1080
1311
5952
query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col1 * + col1 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT + - 35 + - col2 * - col1 AS col1 FROM tab1 AS cor0
----
1213
1369
535
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7417
SELECT - - CAST( + col1 AS SIGNED ) * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-7417
SELECT - - CAST ( + col1 AS INTEGER ) * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-7418
SELECT col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7418
SELECT col0 / + col0 AS col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT 70 + col2 AS col0 FROM tab2
----
108
96
97
query I rowsort
SELECT ALL + 98 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7421
SELECT + CAST( NULL AS SIGNED ) + - col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7421
SELECT + CAST ( NULL AS INTEGER ) + - col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 * - col1 col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT tab0.col1 * ( - col0 + col1 ) * 84 FROM tab0
----
15288
447888
505176
query I rowsort
SELECT - col0 * - col0 + - col2 AS col2 FROM tab2
----
22
6058
6203
query I rowsort
SELECT DISTINCT - 46 * - 77 * - col2 FROM tab1
----
-191268
-201894
-340032
query I rowsort
SELECT ALL - 46 * col2 AS col1 FROM tab2
----
-1196
-1242
-1748
query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab1, tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT 19 * - 88 FROM tab0
----
-1672
query I rowsort
SELECT - 67 + tab2.col1 FROM tab2
----
-36
-50
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 58 col0 FROM tab1
----
68
71
84
query I rowsort
SELECT DISTINCT col0 * + ( col0 + + 76 ) AS col0 FROM tab0
----
14685
2400
3885
query I rowsort
SELECT col2 * + col0 + ( col2 ) * - col1 FROM tab1 AS cor0
----
-1242
3078
6432
query I rowsort
SELECT - col1 + 23 FROM tab0 AS cor0
----
-63
-68
-74
query I rowsort
SELECT col2 * - 26 - col2 AS col1 FROM tab0 AS cor0
----
-2214
-27
-891
query I rowsort
SELECT DISTINCT col2 * + ( col1 ) + - col2 FROM tab1 cor0
----
1152
1350
513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7436
SELECT ALL - col1 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL - col1 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7437
SELECT ALL + col0 DIV CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL + col0 / CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT cor0.col1 * 55 + col1 FROM tab0 AS cor0
----
4816
5096
5432
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7439
SELECT - - col1 + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort label-7439
SELECT - - col1 + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7440
SELECT DISTINCT + - col0 DIV + col2 + + 64 DIV col2 FROM tab1 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-7440
SELECT DISTINCT + - col0 / + col2 + + 64 / col2 FROM tab1 cor0
----
0
1
query I rowsort
SELECT ALL - col1 + 7 AS col0 FROM tab1 AS cor0
----
-19
-3
-6
query I rowsort
SELECT + cor0.col2 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT - tab1.col2 * col1 AS col0 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT - col0 + tab0.col2 AS col2 FROM tab0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7445
SELECT DISTINCT 3 DIV + col0 + + col2 AS col2 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-7445
SELECT DISTINCT 3 / + col0 + + col2 AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT 7 AS col2 FROM tab1, tab1 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to bd991c690468eea3ef45a96817ca3617
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 cor2, tab2 AS cor3
----
3645 values hashing to c3f17e238f07c9d20c4ee001084f26c7
query I rowsort
SELECT DISTINCT col0 * col0 * col2 AS col2 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT - col2 + 12 * + col2 FROM tab1 AS cor0
----
1056
594
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-7450
SELECT DISTINCT + col2 DIV 83 AS col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7450
SELECT DISTINCT + col2 / 83 AS col0 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7451
SELECT DISTINCT + col0 * + col0 + col1 DIV col0 FROM tab0 AS cor0
----
1227
579
7922
skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT + col0 * + col0 + col1 / col0 FROM tab0 AS cor0
----
1227
579
7922
query I rowsort
SELECT ALL col2 * + col1 + - 25 FROM tab0 cor0
----
2813
72
7437
query I rowsort
SELECT + - cor0.col2 + + col1 AS col0 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7454
SELECT 94 + + cor0.col0 DIV - col0 AS col0 FROM tab0 cor0
----
93
93
93
skipif mysql # not compatible
query I rowsort label-7454
SELECT 94 + + cor0.col0 / - col0 AS col0 FROM tab0 cor0
----
93
93
93
query I rowsort
SELECT col2 + - cor0.col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT - - 14 * - col2 + - col1 FROM tab1 AS cor0
----
-1357
-782
-808
query I rowsort
SELECT ALL ( col0 * col0 ) FROM tab2
----
49
6084
6241
query I rowsort
SELECT col1 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + col0 AS REAL ) FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT + col2 - + col2 * tab1.col1 FROM tab1
----
-1152
-1350
-513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + col1 - col0 col2 FROM tab1 AS cor0
----
29
3
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 63 - + col2 col0 FROM tab0 cor0
----
-145
-64
-96
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 9af67d6f98010464af5d560bf949d487
query I rowsort
SELECT - - ( col2 ) * col2 * col1 FROM tab2 AS cor0
----
22599
24548
39884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7465
SELECT + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7465
SELECT + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + - col0 * col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL + col0 - col0 AS col0 FROM tab2 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7468
SELECT ALL + col2 * col1 DIV col0 FROM tab2 cor0
----
119
19
8
skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL + col2 * col1 / col0 FROM tab2 cor0
----
119
19
8
query I rowsort
SELECT DISTINCT - ( + 7 + col2 ) FROM tab2
----
-33
-34
-45
query I rowsort
SELECT DISTINCT col2 * - col2 - col2 FROM tab2 cor0
----
-1482
-702
-756
query I rowsort
SELECT - ( + col0 ) * + col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL tab1.col2 + - tab1.col0 FROM tab1 WHERE col0 * col2 + - col2 + col2 >= NULL
----
query I rowsort
SELECT cor0.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
onlyif mysql # use DIV operator for integer division
query I rowsort label-7474
SELECT DISTINCT - col0 DIV + col0 + - tab0.col1 AS col1 FROM tab0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-7474
SELECT DISTINCT - col0 / + col0 + - tab0.col1 AS col1 FROM tab0
----
-87
-92
-98
query I rowsort
SELECT DISTINCT + col0 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + tab1.col1 * - col1 + + tab1.col2 col0 FROM tab1
----
-568
14
23
query I rowsort
SELECT ALL + col1 * - tab0.col1 * + col1 + tab0.col0 + + col2 AS col2 FROM tab0
----
-635999
-753400
-912637
query I rowsort
SELECT ALL col2 + + tab1.col0 AS col0 FROM tab1
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * cor0.col0 col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - cor0.col2 * col2 * col1 + cor0.col2 + - col2 AS col1 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT col2 + col0 + - col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-7127
-735
1
query I rowsort
SELECT DISTINCT col2 * + col0 + col0 + col0 AS col1 FROM tab1 AS cor0
----
168
3776
7840
query I rowsort
SELECT - + col0 + cor0.col0 + col1 AS col2 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7484
SELECT + col0 DIV + col0 col2 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7484
SELECT + col0 / + col0 col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL col1 + + col0 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - - col2 * + col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-7487
SELECT col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7487
SELECT col0 / - col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + - col0 * - col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + col1 * + col2 + + col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT - - cor0.col2 + - col0 * col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - col0 * cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT - - col1 + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT - col2 * + col2 * col2 FROM tab1 AS cor0
----
-157464
-185193
-884736
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * col2 col0 FROM tab0
----
1
1089
6724
query I rowsort
SELECT ALL - col0 * 12 FROM tab2 AS cor0
----
-84
-936
-948
query I rowsort
SELECT 47 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
query I rowsort
SELECT DISTINCT - col0 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL + cor0.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT + col1 + + 59 FROM tab1
----
69
72
85
query I rowsort
SELECT col2 + ( + col1 ) * - col1 AS col2 FROM tab0
----
-7363
-8199
-9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + col2 col0 FROM tab0
----
36
7380
825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7502
SELECT + col0 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7502
SELECT + col0 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + 70 FROM tab0
----
-12
37
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7504
SELECT ALL - col2 * - CAST( col0 * - col1 AS SIGNED ) + CAST( - 23 AS SIGNED ) FROM tab0 cor0
----
-3418
-664141
-68135
skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL - col2 * - CAST ( col0 * - col1 AS INTEGER ) + CAST ( - 23 AS INTEGER ) FROM tab0 cor0
----
-3418
-664141
-68135
query I rowsort
SELECT ALL - cor0.col2 * + 36 AS col2 FROM tab1 AS cor0
----
-1944
-2052
-3456
query I rowsort
SELECT ALL + col1 * + col0 + + col1 + col0 FROM tab0 AS cor0
----
2174
3527
8279
query I rowsort
SELECT DISTINCT + cor0.col1 + col2 + - col0 FROM tab1 AS cor0
----
29
3
77
query I rowsort
SELECT ALL ( col0 ) * + tab2.col1 + ( col1 ) FROM tab2
----
1360
248
4661
query I rowsort
SELECT 58 + ( col1 ) + - col1 * 94 * col0 FROM tab2
----
-126167
-20309
-432471
query I rowsort
SELECT + ( + 75 ) * - tab0.col2 FROM tab0
----
-2475
-6150
-75
query I rowsort
SELECT ALL + + col1 * col0 - 73 * + col1 AS col1 FROM tab2 AS cor0
----
-2046
102
295
query I rowsort
SELECT DISTINCT col0 * tab1.col2 AS col1 FROM tab1
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7513
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col2 + - col2 AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-7513
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 + - col2 AS col1 FROM tab1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7514
SELECT - col1 * - col2 * col0 - - col1 * 53 DIV tab2.col1 AS col2 FROM tab2
----
119705
51087
5912
skipif mysql # not compatible
query I rowsort label-7514
SELECT - col1 * - col2 * col0 - - col1 * 53 / tab2.col1 AS col2 FROM tab2
----
119705
51087
5912
query I rowsort
SELECT 95 + + col2 FROM tab0
----
128
177
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7516
SELECT ALL col1 DIV col1 + + col1 FROM tab2
----
18
32
60
skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL col1 / col1 + + col1 FROM tab2
----
18
32
60
query I rowsort
SELECT ALL + ( col1 ) + - col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col1 + - tab2.col2 AS col2 FROM tab2
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-7519
SELECT + + ( col0 ) + + 58 DIV - 27 FROM tab0 AS cor0
----
22
33
87
skipif mysql # not compatible
query I rowsort label-7519
SELECT + + ( col0 ) + + 58 / - 27 FROM tab0 AS cor0
----
22
33
87
query I rowsort
SELECT DISTINCT + 82 AS col2 FROM tab0 AS cor0
----
82
query I rowsort
SELECT DISTINCT + - col1 * col0 + 58 + col2 * - col1 FROM tab2 cor0
----
-1931
-6078
-996
query I rowsort
SELECT ALL - + col2 + + col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT 65 * col2 + 80 * col0 FROM tab0 AS cor0
----
12450
2865
4065
query I rowsort
SELECT DISTINCT 31 * + col1 + + ( - col1 ) * - col0 FROM tab2 cor0
----
1178
1870
6431
query I rowsort
SELECT + - col0 + col1 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT ALL + + 62 + cor0.col1 AS col1 FROM tab0 AS cor0
----
148
153
159
query I rowsort
SELECT - col2 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT ALL - col1 + - cor0.col0 * ( col0 ) + + col0 AS col2 FROM tab0 AS cor0
----
-1287
-638
-7923
query I rowsort
SELECT ALL + + 67 AS col1 FROM tab2 AS cor0
----
67
67
67
query I rowsort
SELECT DISTINCT + - 89 + col2 FROM tab2 cor0
----
-51
-62
-63
query I rowsort
SELECT DISTINCT col2 + + cor0.col1 * ( 83 ) FROM tab0 AS cor0
----
7171
7635
8052
query I rowsort
SELECT DISTINCT 55 + - col1 * col0 + + col0 * - cor0.col2 FROM tab1 AS cor0
----
-185
-4233
-8665
query I rowsort
SELECT - + col0 + - col2 AS col1 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT - 53 + + col1 AS col1 FROM tab1
----
-27
-40
-43
query I rowsort
SELECT DISTINCT - ( col1 + - col1 ) * 32 AS col1 FROM tab1
----
0
query I rowsort
SELECT ( col2 ) * + col0 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL + 53 AS col0 FROM tab2
----
53
53
53
query I rowsort
SELECT DISTINCT 5 * col1 FROM tab2
----
155
295
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 * - col0 col2 FROM tab1
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL - col0 * col2 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT - 24 FROM tab1 cor0
----
-24
-24
-24
query I rowsort
SELECT ALL - col2 + - col2 * - col0 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT - col1 + 37 * - col0 AS col1 FROM tab2 AS cor0
----
-290
-2940
-2945
onlyif mysql # use DIV operator for integer division
query I rowsort label-7545
SELECT - col2 * col0 DIV + col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-7545
SELECT - col2 * col0 / + col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - col1 + - col1 * col2 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT col0 + - ( col0 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - + cor0.col2 * - col2 * + col1 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT - 15 * col1 AS col1 FROM tab1
----
-150
-195
-390
query I rowsort
SELECT ALL - 33 + col2 FROM tab1
----
21
24
63
query I rowsort
SELECT ALL - tab2.col1 + col1 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT 64 + col1 * tab0.col2 FROM tab0
----
161
2902
7526
query I rowsort
SELECT - tab1.col1 * col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - - 98 + + col1 FROM tab1 cor0
----
108
111
124
query I rowsort
SELECT ALL - 19 FROM tab2 AS cor0
----
-19
-19
-19
onlyif mysql # use DIV operator for integer division
query I rowsort label-7556
SELECT DISTINCT - col0 DIV + col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-7556
SELECT DISTINCT - col0 / + col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT 95 * col0 FROM tab1 AS cor0
----
285
6080
7600
query I rowsort
SELECT - - 97 + 68 FROM tab2 cor0
----
165
165
165
query I rowsort
SELECT 5 * + 25 FROM tab2 AS cor0
----
125
125
125
query I rowsort
SELECT + + cor0.col1 * col0 + col1 + - cor0.col1 * - 98 FROM tab0 AS cor0
----
10578
12998
17108
query I rowsort
SELECT DISTINCT col1 * + col1 + + col1 FROM tab0 cor0
----
7482
8372
9506
query I rowsort
SELECT ALL + 78 + + col0 * col2 AS col0 FROM tab2 AS cor0
----
2106
267
3080
query I rowsort
SELECT + + 76 AS col1 FROM tab1 AS cor0
----
76
76
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7564
SELECT DISTINCT col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7564
SELECT DISTINCT col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT + col2 * + col2 + + col1 * cor0.col1 FROM tab1 AS cor0
----
3349
3592
9385
query I rowsort
SELECT - 40 * + 30 + col2 * 22 AS col2 FROM tab1 AS cor0
----
-12
54
912
query I rowsort
SELECT ALL col2 * 84 FROM tab0 cor0
----
2772
6888
84
query I rowsort
SELECT + 97 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
query I rowsort
SELECT col0 + + col0 + - col1 FROM tab1
----
-20
118
147
query I rowsort
SELECT ALL + tab2.col2 + - col2 + col1 FROM tab2
----
17
31
59
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0 CROSS JOIN tab0, tab1, tab0 AS cor1 WHERE NULL BETWEEN NULL AND NULL
----
skipif mysql # not compatible
query I rowsort
SELECT + - 94 + col1 / + CAST ( col1 AS REAL ) AS col0 FROM tab0 AS cor0
----
-93
-93
-93
query I rowsort
SELECT 98 + col2 + 13 AS col2 FROM tab1 AS cor0
----
165
168
207
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col2 * - col2 col1 FROM tab2
----
-1406
-650
-702
query I rowsort
SELECT ALL + tab1.col1 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT - col2 * 70 FROM tab2 cor0
----
-1820
-1890
-2660
query I rowsort
SELECT - ( 38 ) FROM tab2 AS cor0
----
-38
-38
-38
query I rowsort
SELECT + 64 * col2 AS col0 FROM tab1 AS cor0
----
3456
3648
6144
query I rowsort
SELECT - 75 * col2 AS col0 FROM tab0 AS cor0
----
-2475
-6150
-75
query I rowsort
SELECT ALL - 34 AS col0 FROM tab1 AS cor0
----
-34
-34
-34
query I rowsort
SELECT ALL - 35 * col1 * + col2 FROM tab0 AS cor0
----
-261170
-3395
-99330
query I rowsort
SELECT DISTINCT - - 60 AS col0 FROM tab0 cor0
----
60
query I rowsort
SELECT 20 + + col2 FROM tab2 AS cor0
----
46
47
58
query I rowsort
SELECT + 37 AS col2 FROM tab0 cor0
----
37
37
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7585
SELECT ALL + CAST( NULL AS DECIMAL ) * + tab0.col0 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7585
SELECT ALL + CAST ( NULL AS REAL ) * + tab0.col0 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col1 + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7587
SELECT + 5 DIV col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7587
SELECT + 5 / col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + 45 * col1 AS col0 FROM tab0 AS cor0
----
3870
4095
4365
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7589
SELECT - CAST( - col1 AS SIGNED ) AS col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7589
SELECT - CAST ( - col1 AS INTEGER ) AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT - col0 * - 30 FROM tab2 AS cor0
----
210
2340
2370
query I rowsort
SELECT - - cor0.col0 + + ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - + col2 * col0 + 62 * - col2 FROM tab1 AS cor0
----
-13632
-3510
-7182
query I rowsort
SELECT - col2 * cor0.col2 + - col1 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT ALL 90 * tab1.col2 FROM tab1
----
4860
5130
8640
query I rowsort
SELECT ( col0 ) * - 46 AS col1 FROM tab1
----
-138
-2944
-3680
query I rowsort
SELECT ALL ( 85 ) FROM tab1, tab0 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT DISTINCT - tab0.col1 * col0 * col2 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT - 73 * + cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
-484
-5668
-5729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7599
SELECT - CAST( NULL AS DECIMAL ) * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7599
SELECT - CAST ( NULL AS REAL ) * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7600
SELECT DISTINCT - ( - ( col2 ) ) DIV 28 AS col0 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT - ( - ( col2 ) ) / 28 AS col0 FROM tab2 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 + + cor0.col1 * col1 col2 FROM tab2 AS cor0
----
-2603
-5952
912
query I rowsort
SELECT 34 + + col2 * col0 AS col2 FROM tab1 AS cor0
----
196
3682
7714
query I rowsort
SELECT ALL + 3 + col0 * col0 FROM tab1 AS cor0
----
12
4099
6403
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) + col0 col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT ALL - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - - col1 * col2 + cor0.col1 * - col2 + + col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - - 34 FROM tab0 AS cor0
----
34
34
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-7608
SELECT DISTINCT + - col1 DIV - 12 FROM tab0 AS cor0
----
7
8
skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT + - col1 / - 12 FROM tab0 AS cor0
----
7
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * 42 + col2 col0 FROM tab0 AS cor0
----
-1353
-3362
-41
query I rowsort
SELECT ALL + cor0.col1 * - col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT ALL cor0.col2 * ( col1 + 59 ) AS col1 FROM tab0 AS cor0
----
12300
156
4785
query I rowsort
SELECT - - col1 * col0 + col1 * - col0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 94 + 90 AS col2 FROM tab2 AS cor0
----
-4
query I rowsort
SELECT + col0 + 5 * col0 FROM tab0 AS cor0
----
144
210
534
query I rowsort
SELECT ALL - 98 * cor0.col0 FROM tab1 cor0
----
-294
-6272
-7840
query I rowsort
SELECT DISTINCT + col1 * 95 * col2 + - col0 FROM tab2
----
145652
61291
79508
query I rowsort
SELECT ALL col0 * 26 + col1 * + col1 FROM tab0
----
10319
10595
8020
onlyif mysql # use DIV operator for integer division
query I rowsort label-7618
SELECT ALL col1 DIV CAST( 93 AS SIGNED ) FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL col1 / CAST ( 93 AS INTEGER ) FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - ( col2 ) FROM tab1
----
-54
-57
-96
query I rowsort
SELECT - 27 * 68 - col2 FROM tab2
----
-1862
-1863
-1874
query I rowsort
SELECT ALL - 55 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to b90e74bece5521b514096c5b6e105fde
query I rowsort
SELECT - col1 * ( col2 ) + col2 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7623
SELECT ALL CAST( - col2 AS SIGNED ) + + col0 AS col0 FROM tab1 cor0
----
-16
-51
7
skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL CAST ( - col2 AS INTEGER ) + + col0 AS col0 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT - 38 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507
query I rowsort
SELECT - col1 * - 58 FROM tab1 AS cor0
----
1508
580
754
query I rowsort
SELECT + col1 - - col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT 70 AS col2 FROM tab0 AS cor0
----
70
70
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 - col2 col1 FROM tab0
----
0
1056
6642
query I rowsort
SELECT + 23 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658
query I rowsort
SELECT DISTINCT col1 + - 24 * 27 FROM tab1 cor0
----
-622
-635
-638
query I rowsort
SELECT ALL + + col2 * col2 + col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT ALL + - col2 + - col1 * cor0.col1 FROM tab0 AS cor0
----
-7429
-8363
-9410
query I rowsort
SELECT ALL col2 + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT - col1 * - 94 AS col2 FROM tab0 AS cor0
----
8084
8554
9118
onlyif mysql # use DIV operator for integer division
query I rowsort label-7635
SELECT ALL + cor0.col1 DIV col0 + - 94 DIV + col1 FROM tab0 AS cor0
----
0
2
2
skipif mysql # not compatible
query I rowsort label-7635
SELECT ALL + cor0.col1 / col0 + - 94 / + col1 FROM tab0 AS cor0
----
0
2
2
query I rowsort
SELECT - + col0 + ( + cor0.col0 ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort
SELECT + - cor0.col0 * - CAST ( - 8 AS REAL ) + - col1 AS col0 FROM tab1 AS cor0
----
-50
-522
-653
query I rowsort
SELECT + + ( + col0 ) * col2 + col2 + - col2 * ( - 59 ) FROM tab1 AS cor0
----
13440
3402
7068
query I rowsort
SELECT ALL 34 FROM tab1 cor0
----
34
34
34
query I rowsort
SELECT DISTINCT + col0 * col1 * - col2 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT + tab1.col1 * - tab1.col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL cor0.col1 + - col0 * 25 FROM tab2 AS cor0
----
-144
-1891
-1958
query I rowsort
SELECT DISTINCT 85 AS col2 FROM tab0 AS cor0
----
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * - col1 * + col0 col1 FROM tab1 cor0
----
36480
4212
99840
query I rowsort
SELECT + + 54 + - col1 FROM tab0 cor0
----
-32
-37
-43
query I rowsort
SELECT col1 + col2 * ( col1 * - col1 ) AS col2 FROM tab2 cor0
----
-10965
-25916
-90447
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7647
SELECT 96 * col0 / + CAST( NULL AS DECIMAL ) + col0 * col1 + - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7647
SELECT 96 * col0 / + CAST ( NULL AS REAL ) + col0 * col1 + - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 14 AS col2 FROM tab0 AS cor0
----
14
14
14
query I rowsort
SELECT - - col0 * - col1 + ( 99 * + col2 ) + - 46 AS col2 FROM tab2 cor0
----
-2074
2373
2410
query I rowsort
SELECT - col1 + + col1 * - col2 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT - + 45 * + col2 AS col2 FROM tab2 AS cor0
----
-1170
-1215
-1710
query I rowsort
SELECT DISTINCT - - ( col1 ) FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7653
SELECT - col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7653
SELECT - col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + col0 * col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL + col0 * + 0 * col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 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-7657
SELECT col1 + + CAST( - col0 AS SIGNED ) * - cor0.col0 AS col1 FROM tab2 AS cor0
----
6143
6258
80
skipif mysql # not compatible
query I rowsort label-7657
SELECT col1 + + CAST ( - col0 AS INTEGER ) * - cor0.col0 AS col1 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT 42 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
query I rowsort
SELECT 87 + col2 FROM tab0
----
120
169
88
query I rowsort
SELECT DISTINCT + 18 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18
query I rowsort
SELECT DISTINCT tab1.col0 + col0 AS col0 FROM tab1
----
128
160
6
query I rowsort
SELECT ALL tab2.col2 * col2 + + 31 * col0 FROM tab2
----
3094
3893
946
query I rowsort
SELECT ALL col0 * col2 + - col0 * + cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
-384
1360
156
query I rowsort
SELECT DISTINCT col0 * col2 * col0 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT + ( 35 ) * cor0.col0 - - 81 FROM tab1 AS cor0
----
186
2321
2881
query I rowsort
SELECT ALL + + 35 FROM tab2 AS cor0
----
35
35
35
query I rowsort
SELECT - col1 + - col2 + + col2 AS col1 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-7668
SELECT ALL + tab0.col2 DIV + tab0.col2 AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL + tab0.col2 / + tab0.col2 AS col2 FROM tab0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7669
SELECT ALL + col0 DIV + 26 FROM tab2
----
0
3
3
skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL + col0 / + 26 FROM tab2
----
0
3
3
query I rowsort
SELECT col2 * col1 - - col0 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7671
SELECT ALL + CAST( + col0 AS SIGNED ) * col0 + - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL + CAST ( + col0 AS INTEGER ) * col0 + - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 + col1 + col0 * + ( col0 ) FROM tab2
----
107
6169
6296
query I rowsort
SELECT ( col0 * - col2 ) + - ( col1 ) * col0 + + 79 AS col0 FROM tab2
----
-327
-4266
-6551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7674
SELECT ALL - CAST( NULL AS DECIMAL ) * 40 - tab2.col2 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7674
SELECT ALL - CAST ( NULL AS REAL ) * 40 - tab2.col2 AS col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7675
SELECT col2 + col1 * col0 DIV - ( - col0 ) + + col0 FROM tab2 cor0
----
134
163
65
skipif mysql # not compatible
query I rowsort label-7675
SELECT col2 + col1 * col0 / - ( - col0 ) + + col0 FROM tab2 cor0
----
134
163
65
query I rowsort
SELECT DISTINCT col0 + + col2 + + col2 * col0 FROM tab0
----
71
7469
849
query I rowsort
SELECT 59 + col2 AS col0 FROM tab1 AS cor0
----
113
116
155
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7678
SELECT ALL + CAST( - col2 AS SIGNED ) + + col1 AS col0 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL + CAST ( - col2 AS INTEGER ) + + col1 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL ( + col0 ) * col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 col0 FROM tab1 cor0
----
-63
query I rowsort
SELECT ALL col2 * + col2 * col1 + + tab2.col2 AS col0 FROM tab2
----
22626
24586
39910
query I rowsort
SELECT ALL + 88 + tab2.col1 FROM tab2
----
105
119
147
query I rowsort
SELECT ALL 31 + - col0 * tab0.col2 AS col2 FROM tab0
----
-4
-7267
-761
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
17
31
59
query I rowsort
SELECT ALL ( col0 ) + col0 * - 96 FROM tab2
----
-665
-7410
-7505
query I rowsort
SELECT - - 36 + - cor0.col1 FROM tab1 AS cor0
----
10
23
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7687
SELECT ALL - tab1.col0 DIV - col0 + - col1 * - ( + col2 + col0 ) FROM tab1
----
1211
1483
2289
skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL - tab1.col0 / - col0 + - col1 * - ( + col2 + col0 ) FROM tab1
----
1211
1483
2289
query I rowsort
SELECT ALL + 95 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
10
13
26
query I rowsort
SELECT - col1 * + col0 + - col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT ALL + - ( col2 ) * col2 + col1 * col2 * - 11 AS col0 FROM tab2 AS cor0
----
-17550
-8550
-9936
query I rowsort
SELECT ALL - 66 * - col1 AS col1 FROM tab2 AS cor0
----
1122
2046
3894
query I rowsort
SELECT ALL col2 * 17 * - col2 FROM tab2
----
-11492
-12393
-24548
query I rowsort
SELECT 11 * cor0.col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 4b9e2b15cbe70c46900a4fc0d6780954
onlyif mysql # use DIV operator for integer division
query I rowsort label-7695
SELECT - col2 DIV col0 + col1 AS col0 FROM tab0
----
85
91
97
skipif mysql # not compatible
query I rowsort label-7695
SELECT - col2 / col0 + col1 AS col0 FROM tab0
----
85
91
97
query I rowsort
SELECT col0 * + ( - tab2.col2 ) + - col0 AS col0 FROM tab2
----
-196
-2106
-3081
query I rowsort
SELECT DISTINCT - col1 - col2 * col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT + + col1 * - col0 + - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-7699
SELECT DISTINCT + - col1 * 50 - 63 DIV + col2 AS col0 FROM tab1 AS cor0
----
-1301
-501
-650
skipif mysql # not compatible
query I rowsort label-7699
SELECT DISTINCT + - col1 * 50 - 63 / + col2 AS col0 FROM tab1 AS cor0
----
-1301
-501
-650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + ( + col0 + col1 ) * - 3 col1 FROM tab0 AS cor0
----
-354
-431
-629
query I rowsort
SELECT + ( ( col2 ) ) FROM tab2 cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7702
SELECT ALL - CAST( col2 AS SIGNED ) * + cor0.col1 * - col1 + col0 AS col1 FROM tab1 AS cor0
----
16304
36507
5764
skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL - CAST ( col2 AS INTEGER ) * + cor0.col1 * - col1 + col0 AS col1 FROM tab1 AS cor0
----
16304
36507
5764
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - - 44 * - col2 col2 FROM tab0 AS cor0
----
-1476
-3697
-79
query I rowsort
SELECT ALL - ( - 16 ) * col1 + - col0 * + col2 FROM tab2 AS cor0
----
-1084
-2730
307
query I rowsort
SELECT + col2 + + col0 * + col1 AS col1 FROM tab2 cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT + col2 * - col1 + + col0 * col0 + 88 AS col0 FROM tab2 AS cor0
----
-700
4638
5683
query I rowsort
SELECT ( ( col0 ) ) AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT 42 AS col1 FROM tab0
----
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-7709
SELECT col1 DIV 99 + + tab0.col2 * + col1 FROM tab0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-7709
SELECT col1 / 99 + + tab0.col2 * + col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT + + 72 * col0 * col2 FROM tab2 cor0
----
13608
146016
216144
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + 22 col0 FROM tab0 AS cor0
----
-11
-60
21
query I rowsort
SELECT 44 * col2 FROM tab0
----
1452
3608
44
query I rowsort
SELECT DISTINCT + 92 * tab1.col0 AS col1 FROM tab1
----
276
5888
7360
query I rowsort
SELECT - 7 * col2 + - col2 * - col0 * + col2 AS col1 FROM tab1 AS cor0
----
207537
736608
8370
query I rowsort
SELECT ALL + 5 + tab0.col0 FROM tab0
----
29
40
94
query I rowsort
SELECT 85 * col0 AS col1 FROM tab1
----
255
5440
6800
query I rowsort
SELECT + + col2 + col1 * + cor0.col2 AS col0 FROM tab0 cor0
----
2871
7544
98
query I rowsort
SELECT - col2 + - 72 FROM tab0 AS cor0
----
-105
-154
-73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 6 - - col2 col0 FROM tab0 AS cor0
----
-4
158
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7720
SELECT ALL + col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * + 48 + + cor0.col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-1086
3168
7056
query I rowsort
SELECT DISTINCT + col2 + ( 20 ) FROM tab2 AS cor0
----
46
47
58
query I rowsort
SELECT + cor0.col2 - col0 * col1 AS col0 FROM tab1 AS cor0
----
-24
-583
-944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 13 + + cor0.col1 * - col0 col2 FROM tab2 AS cor0
----
-1368
-231
-4615
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7725
SELECT - - ( + ( + col1 ) ) * - CAST( + col0 AS SIGNED ) + col0 + - 89 AS col1 FROM tab1 AS cor0
----
-1049
-164
-665
skipif mysql # not compatible
query I rowsort label-7725
SELECT - - ( + ( + col1 ) ) * - CAST ( + col0 AS INTEGER ) + col0 + - 89 AS col1 FROM tab1 AS cor0
----
-1049
-164
-665
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7726
SELECT CAST( col1 AS SIGNED ) * cor0.col2 - 49 FROM tab2 AS cor0
----
1485
597
788
skipif mysql # not compatible
query I rowsort label-7726
SELECT CAST ( col1 AS INTEGER ) * cor0.col2 - 49 FROM tab2 AS cor0
----
1485
597
788
query I rowsort
SELECT col0 * - ( + col2 ) + col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-7728
SELECT - - 87 DIV - col2 + cor0.col2 * - 0 + + col1 AS col1 FROM tab1 cor0
----
13
25
9
skipif mysql # not compatible
query I rowsort label-7728
SELECT - - 87 / - col2 + cor0.col2 * - 0 + + col1 AS col1 FROM tab1 cor0
----
13
25
9
query I rowsort
SELECT + + 3 * col0 FROM tab1 AS cor0
----
192
240
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7730
SELECT + cor0.col2 DIV col0 + + col1 * col0 DIV - col2 + col2 AS col0 FROM tab1 AS cor0
----
46
71
87
skipif mysql # not compatible
query I rowsort label-7730
SELECT + cor0.col2 / col0 + + col1 * col0 / - col2 + col2 AS col0 FROM tab1 AS cor0
----
46
71
87
query I rowsort
SELECT - ( - 53 ) * + col0 - 83 AS col2 FROM tab1 AS cor0
----
3309
4157
76
query I rowsort
SELECT + 14 * col0 AS col1 FROM tab0 AS cor0
----
1246
336
490
query I rowsort
SELECT - col0 + + col0 + col1 * + col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT - 51 * col2 + ( cor0.col0 ) + col2 FROM tab1 AS cor0
----
-2697
-2786
-4720
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 2566f3fa788816c8bfc482e730aaed74
query I rowsort
SELECT ALL + col0 + - col0 * ( - col0 ) AS col1 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT ALL - col0 + - col0 * col0 + + col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - col0 * + col1 + col1 * col1 AS col2 FROM tab1 AS cor0
----
-540
-871
598
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7739
SELECT DISTINCT col2 + col0 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT col2 + col0 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
query I rowsort
SELECT - 87 AS col1 FROM tab0 cor0
----
-87
-87
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-7741
SELECT 70 * col2 + cor0.col1 DIV 21 FROM tab2 AS cor0
----
1822
1891
2660
skipif mysql # not compatible
query I rowsort label-7741
SELECT 70 * col2 + cor0.col1 / 21 FROM tab2 AS cor0
----
1822
1891
2660
query I rowsort
SELECT + - col0 * col1 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT - 96 + cor0.col1 AS col1 FROM tab0 AS cor0
----
-10
-5
1
query I rowsort
SELECT DISTINCT - tab2.col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + - col0 * + col0 + col1 AS col2 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT - + 40 * col2 FROM tab1 AS cor0
----
-2160
-2280
-3840
query I rowsort
SELECT DISTINCT 91 * - col1 AS col2 FROM tab2 AS cor0
----
-1547
-2821
-5369
query I rowsort
SELECT DISTINCT - 72 AS col1 FROM tab1 AS cor0
----
-72
query I rowsort
SELECT + cor0.col2 * + col2 + + 42 - col2 FROM tab2 AS cor0
----
1448
692
744
query I rowsort
SELECT ALL + - cor0.col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL col0 * + col1 + - col1 AS col2 FROM tab2
----
1326
186
4543
query I rowsort
SELECT ALL col1 * - ( - col1 ) FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL - col0 + + ( - col2 ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
-132
-2862
-7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-7754
SELECT ALL + - col1 DIV CAST( 60 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7754
SELECT ALL + - col1 / CAST ( 60 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7755
SELECT - + cor0.col0 DIV CAST( - cor0.col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-7755
SELECT - + cor0.col0 / CAST ( - cor0.col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0
1
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-7756
SELECT ALL + - col1 * col1 DIV col2 + - col2 AS col0 FROM tab1 AS cor0
----
-58
-66
-97
skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL + - col1 * col1 / col2 + - col2 AS col0 FROM tab1 AS cor0
----
-58
-66
-97
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 6726a15019c52908f1f1d0df0cd4c1b8
query I rowsort
SELECT + col2 - + 83 AS col1 FROM tab0
----
-1
-50
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col1 col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT - col0 * + tab1.col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - 36 * + 66 - - col2 FROM tab2
----
-2338
-2349
-2350
query I rowsort
SELECT DISTINCT + tab2.col1 - col0 * col1 AS col0 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT - 66 + col0 FROM tab0
----
-31
-42
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-7764
SELECT - ( col2 + col0 ) * - col0 DIV col0 AS col1 FROM tab0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-7764
SELECT - ( col2 + col0 ) * - col0 / col0 AS col1 FROM tab0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 - 65 col0 FROM tab2
----
-56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - 11 col0 FROM tab1
----
-21
-24
-37
query I rowsort
SELECT ALL - 35 * col0 FROM tab2
----
-245
-2730
-2765
query I rowsort
SELECT + 15 * col2 AS col0 FROM tab1 AS cor0
----
1440
810
855
onlyif mysql # use DIV operator for integer division
query I rowsort label-7769
SELECT DISTINCT - col0 DIV col2 + + col0 * - col2 FROM tab1
----
-162
-3649
-7680
skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT - col0 / col2 + + col0 * - col2 FROM tab1
----
-162
-3649
-7680
query I rowsort
SELECT ALL + ( cor2.col2 ) AS col1 FROM tab0 cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 cor2, tab0 cor3
----
243 values hashing to 3dcd863493ac16ce594c62d4ac8b0412
query I rowsort
SELECT - - 22 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT 38 FROM tab1, tab1 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT DISTINCT col0 * - 24 - 7 AS col0 FROM tab0 AS cor0
----
-2143
-583
-847
query I rowsort
SELECT DISTINCT + col1 + col1 AS col0 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT + col1 * 13 * col0 AS col2 FROM tab2 AS cor0
----
17459
2821
59826
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7776
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7776
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - col1 * - ( 74 ) AS col2 FROM tab1 AS cor0
----
1924
740
962
query I rowsort
SELECT DISTINCT + col2 + cor0.col1 FROM tab2 cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7779
SELECT DISTINCT + - col1 * 90 + col1 DIV col0 + + 13 AS col2 FROM tab0 AS cor0
----
-7724
-8176
-8715
skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT + - col1 * 90 + col1 / col0 + + 13 AS col2 FROM tab0 AS cor0
----
-7724
-8176
-8715
onlyif mysql # use DIV operator for integer division
query I rowsort label-7780
SELECT - cor0.col2 DIV 60 + - col0 FROM tab1 cor0
----
-3
-64
-81
skipif mysql # not compatible
query I rowsort label-7780
SELECT - cor0.col2 / 60 + - col0 FROM tab1 cor0
----
-3
-64
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * 7 + cor0.col2 col0 FROM tab2 AS cor0
----
208
216
304
query I rowsort
SELECT - col2 * col1 * + col2 + col0 FROM tab0 AS cor0
----
-611795
-62
-93630
onlyif mysql # use DIV operator for integer division
query I rowsort label-7783
SELECT col2 DIV + col0 + - cor0.col1 DIV col2 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-7783
SELECT col2 / + col0 + - cor0.col1 / col2 FROM tab1 AS cor0
----
0
1
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-7784
SELECT - col2 + + col0 DIV col0 col1 FROM tab2 AS cor0
----
-25
-26
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7784
SELECT - col2 + + col0 / col0 col1 FROM tab2 AS cor0
----
-25
-26
-37
query I rowsort
SELECT DISTINCT - col1 * 62 FROM tab0 cor0
----
-5332
-5642
-6014
query I rowsort
SELECT - col2 + - cor0.col0 + col1 * - col1 FROM tab0 AS cor0
----
-7453
-8452
-9445
onlyif mysql # use DIV operator for integer division
query I rowsort label-7787
SELECT DISTINCT - - col0 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-7787
SELECT DISTINCT - - col0 / cor0.col0 AS col0 FROM tab2 AS cor0
----
1
query I rowsort
SELECT ALL 19 + - ( col0 ) * + col1 AS col1 FROM tab2 cor0
----
-1324
-198
-4583
query I rowsort
SELECT ALL - + col1 * col2 + cor0.col0 * - 13 + - col2 AS col0 FROM tab0 AS cor0
----
-3183
-553
-8701
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 - 71 col2 FROM tab2
----
118
1957
2931
query I rowsort
SELECT ALL col2 + col1 * 68 * + col0 FROM tab0
----
140385
230861
550814
query I rowsort
SELECT ALL - ( - col1 ) * col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7793
SELECT + - CAST( - cor0.col0 AS SIGNED ) * cor0.col2 * - cor0.col0 - ( col1 ) * col0 FROM tab0 cor0
----
-21072
-4620
-657621
skipif mysql # not compatible
query I rowsort label-7793
SELECT + - CAST ( - cor0.col0 AS INTEGER ) * cor0.col2 * - cor0.col0 - ( col1 ) * col0 FROM tab0 cor0
----
-21072
-4620
-657621
query I rowsort
SELECT DISTINCT - + col2 * - col0 AS col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - - cor0.col1 + + col0 * + col2 FROM tab1 AS cor0
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * - col2 col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT + col1 * - 34 AS col1 FROM tab2 AS cor0
----
-1054
-2006
-578
query I rowsort
SELECT tab2.col1 + col0 * col2 FROM tab2
----
2087
220
3019
query I rowsort
SELECT - + cor0.col1 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT col2 * 4 AS col0 FROM tab0 cor0
----
132
328
4
query I rowsort
SELECT ALL ( + tab0.col1 ) * col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT + 12 + - col0 AS col2 FROM tab2
----
-66
-67
5
query I rowsort
SELECT DISTINCT - 81 FROM tab1, tab2 AS cor0, tab2 cor1
----
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 61 * + col0 col0 FROM tab1 AS cor0
----
237
3961
4976
onlyif mysql # use DIV operator for integer division
query I rowsort label-7805
SELECT - col0 + col2 DIV + col2 AS col0 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-7805
SELECT - col0 + col2 / + col2 AS col0 FROM tab1 AS cor0
----
-2
-63
-79
query I rowsort
SELECT - + col0 + + ( + 16 ) * cor0.col1 FROM tab2 cor0
----
193
489
866
query I rowsort
SELECT DISTINCT 6 + 78 AS col2 FROM tab2, tab0 AS cor0
----
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 6 col2 FROM tab2 AS cor0
----
32
33
44
query I rowsort
SELECT ALL + - 78 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
query I rowsort
SELECT ALL - tab2.col1 * + ( - col2 ) + col0 FROM tab2
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-7811
SELECT - col1 DIV + col1 AS col2 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7811
SELECT - col1 / + col1 AS col2 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT 41 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT ALL + tab1.col1 * + cor0.col0 AS col0 FROM tab1, tab0, tab1 cor0
----
27 values hashing to e6d1e51162f22414194f33e791083a39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7814
SELECT DISTINCT + + col0 + CAST( NULL AS SIGNED ) * cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7814
SELECT DISTINCT + + col0 + CAST ( NULL AS INTEGER ) * cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col1 * + 28 col1 FROM tab1
----
-280
-364
-728
query I rowsort
SELECT ALL + 3 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
onlyif mysql # use DIV operator for integer division
query I rowsort label-7817
SELECT ALL col0 DIV 40 + + col1 FROM tab1
----
11
15
26
skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL col0 / 40 + + col1 FROM tab1
----
11
15
26
query I rowsort
SELECT - 25 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e
query I rowsort
SELECT tab2.col2 * 46 FROM tab2
----
1196
1242
1748
query I rowsort
SELECT col2 + - 9 FROM tab0
----
-8
24
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 * col1 col0 FROM tab0
----
6450
6825
7275
query I rowsort
SELECT 64 + + 31 AS col2 FROM tab0
----
95
95
95
query I rowsort
SELECT DISTINCT col1 * col1 AS col2 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT DISTINCT + 69 + col0 * col2 AS col2 FROM tab1 AS cor0
----
231
3717
7749
query I rowsort
SELECT + - col0 * + col2 AS col1 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT col1 * - cor0.col1 + col2 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT ALL + col2 + cor0.col0 - col2 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-7828
SELECT DISTINCT - cor0.col2 DIV + col0 + + ( - col1 ) DIV col2 AS col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-7828
SELECT DISTINCT - cor0.col2 / + col0 + + ( - col1 ) / col2 AS col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT ALL 68 AS col2 FROM tab0 cor0
----
68
68
68
query I rowsort
SELECT + col1 + col2 * - col0 + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-214
-4278
-8707
query I rowsort
SELECT DISTINCT + 65 * col1 FROM tab0 AS cor0
----
5590
5915
6305
query I rowsort
SELECT ALL + + cor0.col0 * ( col1 ) + col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL - col1 * - 80 + col0 + + col0 FROM tab2 AS cor0
----
1518
2494
4876
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( ( col1 ) ) + + col2 col2 FROM tab1 AS cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 * + col2 - col1 col1 FROM tab2 AS cor0
----
1891
1994
2833
query I rowsort
SELECT - + 32 + + 23 FROM tab1 AS cor0
----
-9
-9
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7837
SELECT - + 96 * - col1 + - col2 DIV col1 FROM tab1 AS cor0
----
1241
2494
955
skipif mysql # not compatible
query I rowsort label-7837
SELECT - + 96 * - col1 + - col2 / col1 FROM tab1 AS cor0
----
1241
2494
955
query I rowsort
SELECT ALL - - ( + cor1.col2 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT + - cor0.col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - 0 * ( col2 ) AS col2 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7841
SELECT + col2 DIV 38 AS col2 FROM tab0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-7841
SELECT + col2 / 38 AS col2 FROM tab0
----
0
0
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7842
SELECT DISTINCT + CAST( 55 AS SIGNED ) AS col1 FROM tab1
----
55
skipif mysql # not compatible
query I rowsort label-7842
SELECT DISTINCT + CAST ( 55 AS INTEGER ) AS col1 FROM tab1
----
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-7843
SELECT DISTINCT ( col2 ) DIV + col2 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-7843
SELECT DISTINCT ( col2 ) / + col2 FROM tab1
----
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7844
SELECT CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7844
SELECT CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( col1 ) * - col2 FROM tab2
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 col0 FROM tab1, tab1 cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7847
SELECT DISTINCT + CAST( - ( col2 ) * + col0 AS SIGNED ) AS col1 FROM tab2
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-7847
SELECT DISTINCT + CAST ( - ( col2 ) * + col0 AS INTEGER ) AS col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT + 17 * col2 AS col1 FROM tab0
----
1394
17
561
query I rowsort
SELECT - col0 + 26 * - col0 FROM tab2 AS cor0
----
-189
-2106
-2133
onlyif mysql # use DIV operator for integer division
query I rowsort label-7850
SELECT ALL - col0 DIV 51 + - tab0.col0 * + col0 FROM tab0
----
-1225
-576
-7922
skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL - col0 / 51 + - tab0.col0 * + col0 FROM tab0
----
-1225
-576
-7922
query I rowsort
SELECT DISTINCT tab2.col0 + - tab2.col1 * - col0 * col2 AS col0 FROM tab2
----
119730
51113
5866
query I rowsort
SELECT ALL - 57 FROM tab1
----
-57
-57
-57
query I rowsort
SELECT ALL - + col0 + 82 * + col1 AS col1 FROM tab2 AS cor0
----
1315
2535
4760
query I rowsort
SELECT + - col2 * 50 FROM tab1 AS cor0
----
-2700
-2850
-4800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 35 col1 FROM tab2
----
-35
-35
-35
query I rowsort
SELECT - col2 * - cor0.col0 + + col1 AS col0 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-7857
SELECT cor0.col0 + - col2 - - col2 DIV + col2 FROM tab1 AS cor0
----
-15
-50
8
skipif mysql # not compatible
query I rowsort label-7857
SELECT cor0.col0 + - col2 - - col2 / + col2 FROM tab1 AS cor0
----
-15
-50
8
query I rowsort
SELECT - cor0.col0 * ( col2 ) - + col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT - col1 * col2 + col0 FROM tab0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-7860
SELECT - col2 + - col0 * col1 DIV - col1 AS col2 FROM tab1
----
-16
-51
7
skipif mysql # not compatible
query I rowsort label-7860
SELECT - col2 + - col0 * col1 / - col1 AS col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT col1 * - col1 + col1 AS col1 FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT + col0 * tab2.col2 * + col0 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT - tab1.col0 * + tab1.col2 - + col0 FROM tab1
----
-165
-3712
-7760
query I rowsort
SELECT DISTINCT col1 - col0 * + col2 FROM tab2 AS cor0
----
-158
-1969
-2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 + col2 col2 FROM tab0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-7866
SELECT ALL + + cor0.col0 + col2 DIV + col2 - + col1 AS col0 FROM tab1 AS cor0
----
-22
55
68
skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL + + cor0.col0 + col2 / + col2 - + col1 AS col0 FROM tab1 AS cor0
----
-22
55
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-7867
SELECT DISTINCT - - col0 DIV col1 AS col2 FROM tab1 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-7867
SELECT DISTINCT - - col0 / col1 AS col2 FROM tab1 AS cor0
----
0
6
query I rowsort
SELECT ALL - col2 - + col2 FROM tab2 AS cor0
----
-52
-54
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-7869
SELECT ALL + + col0 DIV col1 AS col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL + + col0 / col1 AS col1 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT DISTINCT col1 * col2 AS col1 FROM tab0 WHERE NULL >= + col1 * - col2
----
query I rowsort
SELECT DISTINCT col0 * + col1 + col0 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-7872
SELECT DISTINCT + col1 * - col1 + col0 DIV col2 + + col2 FROM tab0 AS cor0
----
-7363
-8198
-9373
skipif mysql # not compatible
query I rowsort label-7872
SELECT DISTINCT + col1 * - col1 + col0 / col2 + + col2 FROM tab0 AS cor0
----
-7363
-8198
-9373
onlyif mysql # use DIV operator for integer division
query I rowsort label-7873
SELECT ALL + - col1 DIV - col1 + col1 AS col2 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL + - col1 / - col1 + col1 AS col2 FROM tab0 AS cor0
----
87
92
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7874
SELECT DISTINCT col0 DIV col2 AS col2 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-7874
SELECT DISTINCT col0 / col2 AS col2 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT + col0 - - col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL cor0.col0 * + col1 + - col1 FROM tab1 AS cor0
----
1027
52
630
onlyif mysql # use DIV operator for integer division
query I rowsort label-7877
SELECT ALL + + col1 DIV + cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
11
64
80
skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL + + col1 / + cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
11
64
80
query I rowsort
SELECT ALL - col0 * col2 - col0 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT col1 + cor0.col2 * + col2 FROM tab1 AS cor0
----
2942
3259
9229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT col0 * col2 * - col2 FROM tab2 cor0
----
-114076
-5103
-52728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT - + col0 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23
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 - - 76 + col2 AS col0 FROM tab2 AS cor0
----
102
103
114
query I rowsort
SELECT + 34 * - col2 * + col0 AS col0 FROM tab2 cor0
----
-102068
-6426
-68952
query I rowsort
SELECT DISTINCT - 28 * - col2 AS col0 FROM tab0 AS cor0
----
2296
28
924
query I rowsort
SELECT ALL + col2 * - col0 + + col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT col2 + cor0.col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL 22 + - col2 * cor0.col0 * + col0 FROM tab2 AS cor0
----
-1301
-158162
-237136
query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT + - col2 * col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + col0 * - col0 + + cor0.col2 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT ALL - col2 + - cor0.col2 * col2 FROM tab0 cor0
----
-1122
-2
-6806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 * col2 * col1 col2 FROM tab1 AS cor0
----
36490
4238
99853
query I rowsort
SELECT - col0 - + col1 * - tab0.col2 FROM tab0
----
2814
62
7373
query I rowsort
SELECT ( col0 * col0 + col0 * - col0 ) AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT - col0 * col2 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT + 36 AS col2 FROM tab0
----
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-7900
SELECT + col1 DIV + col1 AS col2 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7900
SELECT + col1 / + col1 AS col2 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - ( + ( + col0 ) + + 4 ) FROM tab1
----
-68
-7
-84
query I rowsort
SELECT ( tab2.col1 ) AS col2 FROM tab2
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-7903
SELECT tab2.col0 DIV + 59 + + col0 FROM tab2
----
7
79
80
skipif mysql # not compatible
query I rowsort label-7903
SELECT tab2.col0 / + 59 + + col0 FROM tab2
----
7
79
80
query I rowsort
SELECT col1 + 75 AS col0 FROM tab1
----
101
85
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-7905
SELECT + col1 DIV - tab2.col1 + col0 AS col1 FROM tab2
----
6
77
78
skipif mysql # not compatible
query I rowsort label-7905
SELECT + col1 / - tab2.col1 + col0 AS col1 FROM tab2
----
6
77
78
query I rowsort
SELECT ALL - 49 + col1 + ( + 85 * col2 + - tab2.col1 ) AS col1 FROM tab2
----
2161
2246
3181
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7907
SELECT DISTINCT - + 43 + col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT - + 43 + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7908
SELECT - + col1 + col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-7908
SELECT - + col1 + col0 / - col0 AS col0 FROM tab1 AS cor0
----
-11
-14
-27
onlyif mysql # use DIV operator for integer division
query I rowsort label-7909
SELECT DISTINCT col0 + - col1 DIV + cor0.col1 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-7909
SELECT DISTINCT col0 + - col1 / + cor0.col1 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT ALL col1 * - col0 AS col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - col0 * col2 * col2 AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT col1 + - ( + col1 ) FROM tab0
----
0
0
0
query I rowsort
SELECT + col1 - 94 FROM tab2
----
-35
-63
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-7914
SELECT DISTINCT + col1 + - col2 DIV col1 AS col2 FROM tab1 AS cor0
----
24
5
6
skipif mysql # not compatible
query I rowsort label-7914
SELECT DISTINCT + col1 + - col2 / col1 AS col2 FROM tab1 AS cor0
----
24
5
6
query I rowsort
SELECT DISTINCT + + col1 * col1 + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1054
-1121
744
query I rowsort
SELECT DISTINCT - col2 + - 9 FROM tab0 AS cor0
----
-10
-42
-91
query I rowsort
SELECT ALL + col2 + - col1 * col1 + col2 FROM tab1 AS cor0
----
-568
14
23
query I rowsort
SELECT - ( - col0 ) + + col1 AS col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT - + col0 * - 98 AS col1 FROM tab0 AS cor0
----
2352
3430
8722
query I rowsort
SELECT DISTINCT - - col1 * - col0 + col0 * - 33 + - 54 AS col0 FROM tab1 AS cor0
----
-231
-2806
-3734
query I rowsort
SELECT ALL - + col0 * - 5 + + col0 AS col0 FROM tab0 AS cor0
----
144
210
534
query I rowsort
SELECT DISTINCT + + cor0.col0 + 89 AS col2 FROM tab1 AS cor0
----
153
169
92
query I rowsort
SELECT ALL col0 + ( - tab2.col0 ) FROM tab2
----
0
0
0
query I rowsort
SELECT ALL col2 * 44 FROM tab1 AS cor0
----
2376
2508
4224
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - CAST ( - col1 AS REAL ) / + col1 FROM tab0 AS cor0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7926
SELECT ALL + ( ( - col2 ) ) * ( + col1 ) - + col0 DIV + col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-571
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL + ( ( - col2 ) ) * ( + col1 ) - + col0 / + col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-571
query I rowsort
SELECT DISTINCT + 45 * col1 AS col1 FROM tab0
----
3870
4095
4365
query I rowsort
SELECT + 72 * + col2 + col0 * ( + cor0.col2 ) FROM tab0 AS cor0
----
107
13202
3168
query I rowsort
SELECT - cor0.col0 * ( col1 ) + - 21 AS col1 FROM tab1 AS cor0
----
-1061
-661
-99
query I rowsort
SELECT col2 + + 6 AS col2 FROM tab1 cor0
----
102
60
63
query I rowsort
SELECT + cor0.col1 + col2 AS col0 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + col0 col0 FROM tab1 cor0
----
-1040
-640
-78
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab1 cor1, tab2, tab0 AS cor2
----
3645 values hashing to be7848c91584d04f21fd5bbb0d239aca
onlyif mysql # use DIV operator for integer division
query I rowsort label-7934
SELECT col2 + + col1 + - col1 DIV + col1 FROM tab0 AS cor0
----
118
172
97
skipif mysql # not compatible
query I rowsort label-7934
SELECT col2 + + col1 + - col1 / + col1 FROM tab0 AS cor0
----
118
172
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + ( + col0 ) col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL + col1 * 14 FROM tab2 AS cor0
----
238
434
826
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7937
SELECT + col0 + - CAST( - col1 AS SIGNED ) col0 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7937
SELECT + col0 + - CAST ( - col1 AS INTEGER ) col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - - col0 - col1 * - 30 AS col2 FROM tab2 cor0
----
1848
589
937
query I rowsort
SELECT + cor0.col1 * 89 - col2 AS col2 FROM tab0 AS cor0
----
7621
8017
8632
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7940
SELECT ALL - col2 + - CAST( + col0 AS SIGNED ) FROM tab1
----
-121
-176
-57
skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL - col2 + - CAST ( + col0 AS INTEGER ) FROM tab1
----
-121
-176
-57
query I rowsort
SELECT + col1 + ( 90 + - col1 ) FROM tab0
----
90
90
90
query I rowsort
SELECT col2 + + ( - ( + col2 ) ) FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7943
SELECT + col2 / CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7943
SELECT + col2 / CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * 58 * 20 FROM tab2
----
-30160
-31320
-44080
onlyif mysql # use DIV operator for integer division
query I rowsort label-7945
SELECT + col0 - - tab0.col2 DIV col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-7945
SELECT + col0 - - tab0.col2 / col1 FROM tab0
----
24
35
89
query I rowsort
SELECT + col0 + + col0 * - col2 + col2 FROM tab2
----
-155
-1924
-2885
query I rowsort
SELECT DISTINCT + col1 + + ( - col2 ) - col2 FROM tab0
----
-73
20
95
query I rowsort
SELECT cor0.col1 * - ( col1 ) * col2 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT col1 * 97 FROM tab2 AS cor0
----
1649
3007
5723
query I rowsort
SELECT - col1 * - ( col2 + - col0 ) * 93 AS col0 FROM tab2 AS cor0
----
-285324
-64821
57660
onlyif mysql # use DIV operator for integer division
query I rowsort label-7951
SELECT - + col0 + - 54 DIV col0 FROM tab2 cor0
----
-14
-78
-79
skipif mysql # not compatible
query I rowsort label-7951
SELECT - + col0 + - 54 / col0 FROM tab2 cor0
----
-14
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 + 99 * - cor0.col0 col0 FROM tab1 AS cor0
----
-213
-6252
-7836
query I rowsort
SELECT - col1 * ( 28 ) FROM tab2
----
-1652
-476
-868
query I rowsort
SELECT ALL - + ( + 88 ) AS col2 FROM tab0 AS cor0
----
-88
-88
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) col0 FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col1 FROM tab1 AS cor0
----
-38
-38
-38
query I rowsort
SELECT - cor0.col2 + col2 AS col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL tab1.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-7959
SELECT DISTINCT col2 DIV 60 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT col2 / 60 FROM tab1
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7960
SELECT DISTINCT ( col2 ) + - col2 DIV col0 + - cor0.col0 * + col0 DIV - col0 FROM tab0 AS cor0
----
171
36
56
skipif mysql # not compatible
query I rowsort label-7960
SELECT DISTINCT ( col2 ) + - col2 / col0 + - cor0.col0 * + col0 / - col0 FROM tab0 AS cor0
----
171
36
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-7961
SELECT - 38 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-12
0
0
skipif mysql # not compatible
query I rowsort label-7961
SELECT - 38 / cor0.col0 AS col1 FROM tab1 AS cor0
----
-12
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7962
SELECT + - ( col2 ) DIV + 63 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7962
SELECT + - ( col2 ) / + 63 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ( - 33 ) FROM tab2
----
-33
-33
-33
query I rowsort
SELECT ALL ( + col2 ) * col2 AS col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT + tab1.col2 + - col1 AS col2 FROM tab1
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 col0 FROM tab0
----
37
query I rowsort
SELECT DISTINCT 0 AS col1 FROM tab0
----
0
query I rowsort
SELECT - 23 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d
query I rowsort
SELECT - col2 * + 65 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-3564
-3762
-6336
onlyif mysql # use DIV operator for integer division
query I rowsort label-7970
SELECT ALL - + col1 DIV + col0 + + 98 AS col1 FROM tab1 AS cor0
----
90
98
98
skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL - + col1 / + col0 + + 98 AS col1 FROM tab1 AS cor0
----
90
98
98
query I rowsort
SELECT DISTINCT col2 + 72 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
3942
4161
7008
query I rowsort
SELECT ALL col2 * ( col1 ) + col2 * + col1 FROM tab0 AS cor0
----
14924
194
5676
query I rowsort
SELECT ALL - 66 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112
query I rowsort
SELECT - 34 + - col2 AS col0 FROM tab1 AS cor0
----
-130
-88
-91
query I rowsort
SELECT ALL 22 * col1 AS col0 FROM tab1
----
220
286
572
query I rowsort
SELECT ALL 72 AS col2 FROM tab2
----
72
72
72
query I rowsort
SELECT - col2 * 37 FROM tab2 AS cor0
----
-1406
-962
-999
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7978
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) + col2 / col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) + col2 / col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col1 * - col0 - cor0.col2 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697
onlyif mysql # use DIV operator for integer division
query I rowsort label-7980
SELECT ALL cor0.col2 DIV + 5 AS col2 FROM tab1 cor0
----
10
11
19
skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL cor0.col2 / + 5 AS col2 FROM tab1 cor0
----
10
11
19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7981
SELECT ALL + + col0 * CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL + + col0 * CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-7982
SELECT DISTINCT - cor0.col2 DIV 71 + - col0 col0 FROM tab0 AS cor0
----
-24
-35
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7982
SELECT DISTINCT - cor0.col2 / 71 + - col0 col0 FROM tab0 AS cor0
----
-24
-35
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7983
SELECT DISTINCT + col1 * col2 + col2 * col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7983
SELECT DISTINCT + col1 * col2 + col2 * col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + col1 * + col1 AS col2 FROM tab1 cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-7985
SELECT DISTINCT - - col2 + + ( col0 ) DIV - col0 FROM tab0 cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT - - col2 + + ( col0 ) / - col0 FROM tab0 cor0
----
0
32
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7986
SELECT ALL + + col0 * CAST( - col1 + cor0.col1 * - 39 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-135800
-323960
-82560
skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL + + col0 * CAST ( - col1 + cor0.col1 * - 39 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-135800
-323960
-82560
query I rowsort
SELECT ALL - col2 - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-4153
-63
-6496
query I rowsort
SELECT DISTINCT col2 + col0 * + col0 AS col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT DISTINCT - + col2 * + col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560
query IIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + col2 col1 FROM tab2
----
52
54
76
query I rowsort
SELECT + + 64 + - col1 FROM tab0 AS cor0
----
-22
-27
-33
query I rowsort
SELECT 90 + + 73 FROM tab1 AS cor0
----
163
163
163
onlyif mysql # use DIV operator for integer division
query I rowsort label-7994
SELECT + ( + col2 ) DIV - col2 + - 46 * col0 * col2 FROM tab0 AS cor0
----
-1611
-335709
-36433
skipif mysql # not compatible
query I rowsort label-7994
SELECT + ( + col2 ) / - col2 + - 46 * col0 * col2 FROM tab0 AS cor0
----
-1611
-335709
-36433
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7995
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7995
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL 16 - 41 AS col2 FROM tab1 AS cor0
----
-25
-25
-25
query I rowsort
SELECT + cor0.col2 * col1 * + col2 AS col2 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT col0 + col0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
105
267
72
query I rowsort
SELECT + cor0.col0 * - col2 + - col0 * + col0 + - cor0.col0 * col1 * 0 AS col2 FROM tab2 cor0
----
-238
-8112
-9243
query I rowsort
SELECT - col2 * - 62 - + col0 FROM tab2 AS cor0
----
1534
1667
2277
onlyif mysql # use DIV operator for integer division
query I rowsort label-8001
SELECT - ( 80 ) * col0 + col1 DIV + col1 FROM tab1 AS cor0
----
-239
-5119
-6399
skipif mysql # not compatible
query I rowsort label-8001
SELECT - ( 80 ) * col0 + col1 / + col1 FROM tab1 AS cor0
----
-239
-5119
-6399
query I rowsort
SELECT DISTINCT 41 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
41
query I rowsort
SELECT - + col1 * + col1 * - col2 AS col1 FROM tab1 AS cor0
----
16224
36504
5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-8004
SELECT ALL + 18 + col1 DIV + 68 FROM tab2 AS cor0
----
18
18
18
skipif mysql # not compatible
query I rowsort label-8004
SELECT ALL + 18 + col1 / + 68 FROM tab2 AS cor0
----
18
18
18
query I rowsort
SELECT - + col2 + - col2 * + 98 FROM tab0 AS cor0
----
-3267
-8118
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 col2 FROM tab1 AS cor0
----
-128
-160
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-8007
SELECT DISTINCT + - 92 DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-92
skipif mysql # not compatible
query I rowsort label-8007
SELECT DISTINCT + - 92 / col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-92
query I rowsort
SELECT DISTINCT - 58 - col1 AS col0 FROM tab1 AS cor0
----
-68
-71
-84
query I rowsort
SELECT ALL 0 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - + cor0.col0 * - col0 + - 24 * col2 FROM tab0 AS cor0
----
-216
1201
5953
query I rowsort
SELECT DISTINCT - tab2.col2 * col1 + col2 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT tab2.col2 - tab2.col1 * - col0 AS col2 FROM tab2
----
1381
244
4628
query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) BETWEEN NULL AND ( col2 * tab1.col0 )
----
query I rowsort
SELECT DISTINCT col0 + + col0 * col2 FROM tab2
----
196
2106
3081
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < ( NULL )
----
query I rowsort
SELECT DISTINCT - col1 * + col0 * col2 AS col0 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT ALL col0 + - col1 * + tab1.col1 * col0 FROM tab1 WHERE NOT col0 + - col0 * tab1.col1 + - col1 NOT IN ( - col1 + col2 / - col1 + col1 * col0 )
----
query I rowsort
SELECT tab1.col0 * - tab1.col2 AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL - col1 + + col2 * + tab0.col0 * + col2 FROM tab0
----
-62
26050
598345
query I rowsort
SELECT + tab1.col0 + col0 + + tab1.col2 * tab1.col2 FROM tab1
----
2922
3377
9376
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + col2 )
----
query I rowsort
SELECT + col0 + col1 * tab0.col2 FROM tab0
----
132
2862
7551
query I rowsort
SELECT + col0 * col2 AS col0 FROM tab1 WHERE NULL NOT IN ( col1 )
----
query I rowsort
SELECT DISTINCT tab1.col1 * tab1.col0 AS col2 FROM tab1
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + col2 * col0 col0 FROM tab2 WHERE ( col0 ) BETWEEN col0 AND NULL
----
query I rowsort
SELECT ALL col2 FROM tab0 WHERE ( NULL ) <> NULL
----
query I rowsort
SELECT ALL col1 * col2 + tab0.col1 AS col2 FROM tab0
----
194
2924
7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 col1 FROM tab0 cor0 WHERE NULL > NULL
----
query I rowsort
SELECT col1 * col2 * - col1 + col2 AS col1 FROM tab1
----
-16128
-36450
-5643
query I rowsort
SELECT ALL col1 * col0 + - col0 * - col0 AS col2 FROM tab2
----
10686
266
7584
query I rowsort
SELECT + col1 * col2 * - col1 + - tab0.col1 + col1 AS col0 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT DISTINCT col2 * + col1 + tab1.col1 AS col2 FROM tab1
----
1261
1430
580
query I rowsort
SELECT col2 * - col2 - col0 AS col0 FROM tab0
----
-1113
-36
-6813
query I rowsort
SELECT ALL - col0 + col0 * - col2 * + col0 FROM tab2
----
-1330
-158262
-237237
query I rowsort
SELECT DISTINCT col0 + col0 * - col2 FROM tab0
----
-7209
-768
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 * col2 + + col1 col1 FROM tab1
----
1261
1430
580
query III rowsort
SELECT ALL * FROM tab1 WHERE col0 IN ( col2 / col2 )
----
query I rowsort
SELECT col1 * cor0.col1 + col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT ALL + col2 + + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-251
-3455
-934
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col0 )
----
query I rowsort
SELECT col1 * - col2 + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL + col1 * cor0.col1 * - col0 + - cor0.col0 * col1 + - col2 AS col2 FROM tab2 AS cor0
----
-24212
-276146
-6971
query I rowsort
SELECT ALL col1 - - col0 FROM tab1 cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8045
SELECT + col0 * - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8045
SELECT + col0 * - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 * col0 + - 8 FROM tab0 AS cor0
----
1217
568
7913
query I rowsort
SELECT DISTINCT - - col1 * - ( - 24 ) FROM tab0 AS cor0
----
2064
2184
2328
query I rowsort
SELECT ALL - cor0.col0 AS col0 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT - 97 + 92 FROM tab1 AS cor0
----
-5
-5
-5
query I rowsort
SELECT - 48 + + col0 AS col2 FROM tab2 cor0
----
-41
30
31
query I rowsort
SELECT ALL - tab2.col1 * - cor0.col2 + - 45 FROM tab2, tab1 AS cor0
----
9 values hashing to 3e5d6d4165bc1cfbbdb803863df2fc23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 col2 FROM tab0 cor0
----
-21
-21
-21
query I rowsort
SELECT - 54 + + col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2784
43
7408
query I rowsort
SELECT ALL ( - cor0.col2 ) * + col0 FROM tab0 cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-8055
SELECT + col2 + - col2 DIV + 25 AS col0 FROM tab0 AS cor0
----
1
32
79
skipif mysql # not compatible
query I rowsort label-8055
SELECT + col2 + - col2 / + 25 AS col0 FROM tab0 AS cor0
----
1
32
79
query I rowsort
SELECT ALL col0 + col2 * - col1 FROM tab0
----
-2814
-62
-7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 * + col2 col0 FROM tab0 AS cor0
----
0
7209
768
onlyif mysql # use DIV operator for integer division
query I rowsort label-8058
SELECT - col2 DIV + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8058
SELECT - col2 / + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8059
SELECT DISTINCT - col1 DIV col1 col2 FROM tab2 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT - col1 / col1 col2 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT - col2 + - ( + col1 ) * col0 AS col1 FROM tab2 cor0
----
-1381
-244
-4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-8061
SELECT col1 * 19 DIV col2 + col2 FROM tab0 AS cor0
----
103
1844
82
skipif mysql # not compatible
query I rowsort label-8061
SELECT col1 * 19 / col2 + col2 FROM tab0 AS cor0
----
103
1844
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8062
SELECT + col2 * + CAST( 71 AS SIGNED ) - col1 FROM tab0 AS cor0
----
-26
2257
5731
skipif mysql # not compatible
query I rowsort label-8062
SELECT + col2 * + CAST ( 71 AS INTEGER ) - col1 FROM tab0 AS cor0
----
-26
2257
5731
query I rowsort
SELECT ALL - col2 * - tab0.col1 * + ( + col0 ) + - col1 FROM tab0
----
3298
664027
68026
query I rowsort
SELECT - col2 * + 30 + 28 FROM tab0 AS cor0
----
-2
-2432
-962
query I rowsort
SELECT DISTINCT ( 63 * + cor1.col2 ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
1638
1701
2394
onlyif mysql # use DIV operator for integer division
query I rowsort label-8066
SELECT ALL - 92 * - col0 + + col0 DIV col0 FROM tab2
----
645
7177
7269
skipif mysql # not compatible
query I rowsort label-8066
SELECT ALL - 92 * - col0 + + col0 / col0 FROM tab2
----
645
7177
7269
onlyif mysql # use DIV operator for integer division
query I rowsort label-8067
SELECT ALL 57 DIV + 12 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL 57 / + 12 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
query I rowsort
SELECT - col0 + + ( + col1 + + col0 ) FROM tab1
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8069
SELECT - + CAST( NULL AS SIGNED ) * - 52 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8069
SELECT - + CAST ( NULL AS INTEGER ) * - 52 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + + col1 * col0 AS col2 FROM tab0 cor0
----
2097
3396
8181
query I rowsort
SELECT ALL col0 * 3 AS col2 FROM tab2
----
21
234
237
query I rowsort
SELECT - - col0 * + 11 AS col1 FROM tab1 AS cor0
----
33
704
880
query I rowsort
SELECT ALL - + col2 * col0 + + col1 * + cor0.col0 FROM tab2 AS cor0
----
-1659
2574
28
query I rowsort
SELECT ALL + cor0.col0 * + cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to d2e5241c58e367013a1a203910e000c0
query I rowsort
SELECT DISTINCT + 69 + - col2 AS col2 FROM tab2 AS cor0
----
31
42
43
query I rowsort
SELECT ALL - + 78 + - col1 * 28 FROM tab2 cor0
----
-1730
-554
-946
query I rowsort
SELECT + + 15 * - col0 FROM tab2 AS cor0
----
-105
-1170
-1185
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * col0 + ( - col2 * col0 ) col2 FROM tab1 AS cor0
----
-3008
-6640
-84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8079
SELECT col2 - - CAST( NULL AS SIGNED ) * + col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8079
SELECT col2 - - CAST ( NULL AS INTEGER ) * + col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * col2 + - col0 * tab0.col1 FROM tab0
----
-14823
-3153
-3396
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8081
SELECT ALL col2 + CAST( + 60 AS SIGNED ) FROM tab1
----
114
117
156
skipif mysql # not compatible
query I rowsort label-8081
SELECT ALL col2 + CAST ( + 60 AS INTEGER ) FROM tab1
----
114
117
156
query I rowsort
SELECT ALL + col0 * + col2 * - 1 + tab2.col1 * - col0 * + col0 FROM tab2
----
-109099
-1708
-360984
query I rowsort
SELECT DISTINCT + + col1 - 6 AS col1 FROM tab0 AS cor0
----
80
85
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-8084
SELECT + col0 * 18 DIV col0 + + col0 * + 87 FROM tab2 AS cor0
----
627
6804
6891
skipif mysql # not compatible
query I rowsort label-8084
SELECT + col0 * 18 / col0 + + col0 * + 87 FROM tab2 AS cor0
----
627
6804
6891
query I rowsort
SELECT + col0 + - ( + cor0.col1 ) * col2 * col1 AS col0 FROM tab2 AS cor0
----
-10903
-25940
-90428
query I rowsort
SELECT + + col2 * 56 + col0 FROM tab2 AS cor0
----
1519
1534
2207
query I rowsort
SELECT ALL + 21 + col0 AS col2 FROM tab1 AS cor0
----
101
24
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8088
SELECT + CAST( NULL AS DECIMAL ) * cor0.col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8088
SELECT + CAST ( NULL AS REAL ) * cor0.col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 + + col1 - col2 * - col2 AS col1 FROM tab1 AS cor0
----
2968
3269
9242
query I rowsort
SELECT ALL + 25 + col2 AS col0 FROM tab2 AS cor0
----
51
52
63
query I rowsort
SELECT - 99 * - col0 + + col1 FROM tab2 AS cor0
----
724
7781
7838
query I rowsort
SELECT + + ( col0 ) + - col1 FROM tab1 cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-8093
SELECT DISTINCT - 18 + col0 DIV col0 FROM tab2 cor0
----
-17
skipif mysql # not compatible
query I rowsort label-8093
SELECT DISTINCT - 18 + col0 / col0 FROM tab2 cor0
----
-17
query I rowsort
SELECT ALL - col0 * col2 - col0 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT ALL + 82 FROM tab2, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT 83 AS col1 FROM tab0, tab2 cor0, tab0 cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3
query I rowsort
SELECT ALL + + cor0.col1 * + col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + col0 + cor0.col1 AS col2 FROM tab1 cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8099
SELECT - - CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8099
SELECT - - CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + cor0.col2 * 36 + col1 * ( 69 ) FROM tab1 cor0
----
2742
3738
4353
query I rowsort
SELECT DISTINCT + ( 82 ) FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
82
query I rowsort
SELECT DISTINCT 83 AS col1 FROM tab2, tab2 AS cor0
----
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-8103
SELECT DISTINCT + col0 DIV col1 + - col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT + col0 / col1 + - col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + 63 FROM tab0, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT DISTINCT - ( col2 ) * col0 - - cor0.col0 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL ( - col1 ) + + col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + 69 * - 75 + col0 * + 33 AS col0 FROM tab1
----
-2535
-3063
-5076
query I rowsort
SELECT DISTINCT + ( + col0 * + col0 ) AS col1 FROM tab1
----
4096
6400
9
query I rowsort
SELECT 54 * - col0 + + tab2.col0 AS col0 FROM tab2
----
-371
-4134
-4187
query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
1
33
82
query I rowsort
SELECT ALL - 96 FROM tab0
----
-96
-96
-96
query I rowsort
SELECT DISTINCT + ( 71 ) * - col0 AS col1 FROM tab1
----
-213
-4544
-5680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8113
SELECT DISTINCT - 95 DIV col0 AS col1 FROM tab1
----
-1
-31
skipif mysql # not compatible
query I rowsort label-8113
SELECT DISTINCT - 95 / col0 AS col1 FROM tab1
----
-1
-31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col0 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
query I rowsort
SELECT ALL col2 + + 64 AS col1 FROM tab1 AS cor0
----
118
121
160
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8116
SELECT + - col0 * + CAST( col0 AS SIGNED ) + col2 FROM tab1 cor0
----
-4039
-6304
45
skipif mysql # not compatible
query I rowsort label-8116
SELECT + - col0 * + CAST ( col0 AS INTEGER ) + col2 FROM tab1 cor0
----
-4039
-6304
45
query I rowsort
SELECT ALL - col0 + + 37 + col0 FROM tab1 AS cor0
----
37
37
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-8118
SELECT + col0 + col0 DIV - col1 + + col1 AS col0 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-8118
SELECT + col0 + col0 / - col1 + + col1 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + + col2 * 61 * + col1 AS col1 FROM tab2 AS cor0
----
39406
51057
93574
query I rowsort
SELECT ALL - + col0 * - 59 + - cor0.col1 * - col2 FROM tab1 AS cor0
----
1581
4346
5968
onlyif mysql # use DIV operator for integer division
query I rowsort label-8121
SELECT DISTINCT 85 - - col2 DIV 75 FROM tab0
----
85
86
skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT 85 - - col2 / 75 FROM tab0
----
85
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + - 2 - - ( col0 * - 49 ) col1 FROM tab1
----
-11602
-311
-6786
query I rowsort
SELECT - col1 * - tab2.col2 + + col2 AS col1 FROM tab2
----
1560
684
864
query I rowsort
SELECT + tab2.col0 + col1 * col1 * - col1 + col0 FROM tab2
----
-205223
-29777
-4755
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8125
SELECT ALL - + col1 * CAST( NULL AS SIGNED ) + + col0 + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL - + col1 * CAST ( NULL AS INTEGER ) + + col0 + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * col0 + + col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT col2 * - ( col1 ) FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT cor0.col2 + 86 FROM tab2 cor0
----
112
113
124
onlyif mysql # use DIV operator for integer division
query I rowsort label-8129
SELECT + col1 DIV - col1 + col1 + + col2 FROM tab0 AS cor0
----
118
172
97
skipif mysql # not compatible
query I rowsort label-8129
SELECT + col1 / - col1 + col1 + + col2 FROM tab0 AS cor0
----
118
172
97
query I rowsort
SELECT - - ( + 9 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab2 cor2, tab0
----
729 values hashing to 62af534e891f54b7060085e52f1d094c
query I rowsort
SELECT + col1 + 54 AS col2 FROM tab0 AS cor0
----
140
145
151
query I rowsort
SELECT DISTINCT + cor0.col0 * - col0 + 63 * col2 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-179370
-478027
-7336
query I rowsort
SELECT - col0 + - 63 FROM tab0 cor0
----
-152
-87
-98
query I rowsort
SELECT + 82 * col0 * col0 FROM tab1
----
335872
524800
738
query I rowsort
SELECT ALL - 41 AS col1 FROM tab2
----
-41
-41
-41
query I rowsort
SELECT ALL - 78 + - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1326
-1482
-648
query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT + ( col0 ) * ( col0 ) * - col2 AS col1 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT + 35 * + col0 FROM tab1 AS cor0
----
105
2240
2800
query I rowsort
SELECT - 67 + - col1 * col0 AS col0 FROM tab2 AS cor0
----
-1410
-284
-4669
query I rowsort
SELECT + + 87 * col2 AS col1 FROM tab1 AS cor0
----
4698
4959
8352
onlyif mysql # use DIV operator for integer division
query I rowsort label-8142
SELECT ALL + - col1 * cor0.col2 DIV ( col1 * col0 ) FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL + - col1 * cor0.col2 / ( col1 * col0 ) FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT DISTINCT - 38 + col1 AS col1 FROM tab0 AS cor0
----
48
53
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-8144
SELECT + col2 * col0 + + 85 DIV col1 AS col0 FROM tab2 AS cor0
----
191
2029
3007
skipif mysql # not compatible
query I rowsort label-8144
SELECT + col2 * col0 + + 85 / col1 AS col0 FROM tab2 AS cor0
----
191
2029
3007
query I rowsort
SELECT + cor0.col2 * col2 + cor0.col1 AS col2 FROM tab1 cor0
----
2942
3259
9229
query I rowsort
SELECT - + col2 + - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1226
-609
-8003
query I rowsort
SELECT ALL - cor0.col1 + + col2 + col2 AS col0 FROM tab0 AS cor0
----
-20
-95
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8148
SELECT ALL - - col0 + CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL - - col0 + CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL + col0 * - col2 + - col2 FROM tab2
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT 76 FROM tab1, tab2, tab1 AS cor0
----
76
query I rowsort
SELECT col0 + - col0 * col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT + 43 + - col1 FROM tab2 AS cor0
----
-16
12
26
query I rowsort
SELECT + 90 * 23 - - col2 FROM tab1 AS cor0
----
2124
2127
2166
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8154
SELECT ALL - - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8154
SELECT ALL - - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - + col2 - col1 * col0 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT ALL cor0.col1 + - 98 FROM tab2 AS cor0
----
-39
-67
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8157
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8157
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8158
SELECT DISTINCT - cor0.col2 DIV + tab1.col2 FROM tab1, tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-8158
SELECT DISTINCT - cor0.col2 / + tab1.col2 FROM tab1, tab1 AS cor0
----
-1
0
query I rowsort
SELECT col1 - + col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - + col1 * - col0 * col0 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT - - 41 * + col2 FROM tab0 AS cor0
----
1353
3362
41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8162
SELECT DISTINCT CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8162
SELECT DISTINCT CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8163
SELECT + - 63 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
-21
0
0
skipif mysql # not compatible
query I rowsort label-8163
SELECT + - 63 / cor0.col0 AS col2 FROM tab1 AS cor0
----
-21
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8164
SELECT ALL cor0.col2 * col2 DIV - cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL cor0.col2 * col2 / - cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - - col2 + + ( - col0 ) FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8166
SELECT - col1 DIV - 92 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8166
SELECT - col1 / - 92 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8167
SELECT ALL CAST( + col0 AS SIGNED ) + col1 AS col1 FROM tab2
----
137
38
96
skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL CAST ( + col0 AS INTEGER ) + col1 AS col1 FROM tab2
----
137
38
96
query I rowsort
SELECT + - col2 - - col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) AS col0 FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8170
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col0 * - tab2.col2 AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 * - tab2.col2 AS col2 FROM tab2
----
NULL
query I rowsort
SELECT + - col1 - - col0 AS col2 FROM tab0 cor0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col0 col2 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT col2 * - col1 - 41 FROM tab0 AS cor0
----
-138
-2879
-7503
query I rowsort
SELECT + + col0 + + cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT 60 * - col0 FROM tab1 AS cor0
----
-180
-3840
-4800
query I rowsort
SELECT + 74 AS col0 FROM tab0
----
74
74
74
query I rowsort
SELECT 20 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT + col0 + + col1 + + col1 FROM tab0 cor0
----
196
229
271
query I rowsort
SELECT ALL - - 81 * col2 AS col1 FROM tab0 AS cor0
----
2673
6642
81
query I rowsort
SELECT - col1 * col1 + + col2 + col0 FROM tab2 AS cor0
----
-172
-3377
-927
query I rowsort
SELECT DISTINCT 92 FROM tab1, tab0, tab0 AS cor0
----
92
query I rowsort
SELECT DISTINCT ( 93 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
93
query I rowsort
SELECT ALL - cor0.col2 * - col2 - + col0 AS col0 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT + cor0.col0 + col2 + col1 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT ALL + + ( + cor0.col0 ) * + cor1.col2 - cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f2c5fb22b801a6af89ad1a31e1a651dc
query I rowsort
SELECT + - ( + col2 ) + + col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8187
SELECT + ( col0 ) * cor0.col0 DIV + 43 AS col1 FROM tab1 AS cor0
----
0
148
95
skipif mysql # not compatible
query I rowsort label-8187
SELECT + ( col0 ) * cor0.col0 / + 43 AS col1 FROM tab1 AS cor0
----
0
148
95
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-8189
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8189
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 62 * - 61 FROM tab1
----
-3782
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8191
SELECT ALL CAST( NULL AS SIGNED ) / 36 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL CAST ( NULL AS INTEGER ) / 36 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ( + tab0.col1 + + col2 * col2 ) FROM tab0
----
1175
6815
98
query I rowsort
SELECT ( + 23 ) FROM tab2 AS cor0
----
23
23
23
query I rowsort
SELECT ALL + - col0 + 43 FROM tab1 AS cor0
----
-21
-37
40
query I rowsort
SELECT + - col0 * 60 FROM tab2 AS cor0
----
-420
-4680
-4740
onlyif mysql # use DIV operator for integer division
query I rowsort label-8196
SELECT - col0 DIV 69 + 70 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-2
skipif mysql # not compatible
query I rowsort label-8196
SELECT - col0 / 69 + 70 / - col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-2
query I rowsort
SELECT ALL - col0 + + col2 * + col1 * - cor0.col1 FROM tab0 cor0
----
-244092
-679131
-9444
query I rowsort
SELECT DISTINCT col1 * col0 + col1 FROM tab2
----
1360
248
4661
query I rowsort
SELECT tab1.col1 * + col1 * col0 AS col1 FROM tab1
----
13520
2028
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-8200
SELECT tab2.col0 - - 10 DIV + 32 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-8200
SELECT tab2.col0 - - 10 / + 32 FROM tab2
----
7
78
79
query I rowsort
SELECT col1 * - tab1.col0 + - col0 AS col2 FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT + 27 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT - col1 * - col0 + col1 FROM tab1
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-8204
SELECT ALL - col2 DIV 49 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL - col2 / 49 FROM tab2
----
0
0
0
query I rowsort
SELECT cor0.col2 + ( col1 ) FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + col0 * - col1 + cor0.col2 * - col2 + col2 AS col1 FROM tab1 cor0
----
-10160
-2940
-3832
query I rowsort
SELECT DISTINCT col0 + + 69 AS col2 FROM tab2 AS cor0
----
147
148
76
query I rowsort
SELECT + ( - col2 + - col1 ) FROM tab0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT 17 AS col0 FROM tab0
----
17
query I rowsort
SELECT col0 * + col2 + + col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT 79 * + col2 + col0 * + ( col1 + col2 ) FROM tab1
----
16304
4506
8791
onlyif mysql # use DIV operator for integer division
query I rowsort label-8212
SELECT DISTINCT - col2 * + tab0.col1 * col2 - + 16 DIV col2 AS col2 FROM tab0
----
-113
-611884
-93654
skipif mysql # not compatible
query I rowsort label-8212
SELECT DISTINCT - col2 * + tab0.col1 * col2 - + 16 / col2 AS col2 FROM tab0
----
-113
-611884
-93654
query I rowsort
SELECT col0 * - col1 + ( - col0 ) FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT + col2 + tab2.col2 * + col2 AS col1 FROM tab2
----
1482
702
756
query I rowsort
SELECT - ( col1 ) * + col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + + col2 + - col2 * 46 * col0 FROM tab0 AS cor0
----
-1609
-335626
-36399
query I rowsort
SELECT + col2 * - col2 * col1 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT ( + 23 ) AS col1 FROM tab0
----
23
23
23
query I rowsort
SELECT ( - col2 ) * 1 + col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8220
SELECT ALL - 89 * col0 * + CAST( - 26 AS SIGNED ) + - col0 FROM tab2 cor0
----
16191
180414
182727
skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL - 89 * col0 * + CAST ( - 26 AS INTEGER ) + - col0 FROM tab2 cor0
----
16191
180414
182727
onlyif mysql # use DIV operator for integer division
query I rowsort label-8221
SELECT ALL col1 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL col1 / + col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + 72 * col0 AS col2 FROM tab1 AS cor0
----
216
4608
5760
query I rowsort
SELECT ALL + col1 * col0 + - 47 * col1 FROM tab0
----
-1164
-1978
3822
query I rowsort
SELECT DISTINCT + - 32 + - col1 * 27 AS col2 FROM tab1 AS cor0
----
-302
-383
-734
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 col2 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT 39 + col2 FROM tab2
----
65
66
77
query I rowsort
SELECT DISTINCT - + col1 + col0 + cor0.col2 * col0 FROM tab0 AS cor0
----
-27
7296
730
query I rowsort
SELECT DISTINCT + col2 - col2 * ( col1 ) FROM tab0 cor0
----
-2805
-7380
-96
query I rowsort
SELECT - 51 * col2 + cor0.col2 * ( col0 ) AS col1 FROM tab2 cor0
----
-1188
1064
702
query I rowsort
SELECT DISTINCT + + col2 + - cor0.col2 + col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8231
SELECT + ( + col2 ) + CAST( + col1 AS SIGNED ) + + col1 * ( 7 ) FROM tab1 AS cor0
----
137
200
262
skipif mysql # not compatible
query I rowsort label-8231
SELECT + ( + col2 ) + CAST ( + col1 AS INTEGER ) + + col1 * ( 7 ) FROM tab1 AS cor0
----
137
200
262
query I rowsort
SELECT - + ( cor0.col2 ) + col2 + 77 * + col2 FROM tab0 AS cor0
----
2541
6314
77
query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab1, tab2 cor0
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8234
SELECT DISTINCT - CAST( - 80 AS SIGNED ) FROM tab1, tab1 AS cor0, tab2 cor1
----
80
skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT - CAST ( - 80 AS INTEGER ) FROM tab1, tab1 AS cor0, tab2 cor1
----
80
query I rowsort
SELECT ALL - 35 + col1 AS col1 FROM tab0 cor0
----
51
56
62
query I rowsort
SELECT 9 * col2 AS col1 FROM tab1 AS cor0
----
486
513
864
query I rowsort
SELECT + cor0.col1 * col0 + ( + col1 ) AS col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL col2 * 60 * + col0 + col2 FROM tab1 AS cor0
----
218937
460896
9774
query I rowsort
SELECT - col0 + + col1 + - col0 FROM tab1 AS cor0
----
-118
-147
20
query I rowsort
SELECT DISTINCT + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8241
SELECT ALL col0 * + CAST( 75 AS SIGNED ) AS col1 FROM tab0 cor0
----
1800
2625
6675
skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL col0 * + CAST ( 75 AS INTEGER ) AS col1 FROM tab0 cor0
----
1800
2625
6675
query I rowsort
SELECT col2 + + 51 * col1 * col1 AS col2 FROM tab0 AS cor0
----
377229
422413
479860
query I rowsort
SELECT DISTINCT - - col0 * col2 + + col1 AS col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL + col2 + ( - 77 ) FROM tab1 AS cor0
----
-20
-23
19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col1 + - 43 col1 FROM tab0 cor0
----
130
55
76
query I rowsort
SELECT DISTINCT + cor0.col2 * 72 - 38 * col1 AS col1 FROM tab2 AS cor0
----
-370
2090
766
onlyif mysql # use DIV operator for integer division
query I rowsort label-8247
SELECT DISTINCT col2 + + col0 * 96 DIV + tab0.col2 AS col2 FROM tab0
----
102
186
3361
skipif mysql # not compatible
query I rowsort label-8247
SELECT DISTINCT col2 + + col0 * 96 / + tab0.col2 AS col2 FROM tab0
----
102
186
3361
query I rowsort
SELECT ALL - 39 + - col2 * + col1 FROM tab2
----
-1573
-685
-876
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8249
SELECT ALL + col2 * + col1 + + CAST( NULL AS SIGNED ) / - col1 + + col1 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL + col2 * + col1 + + CAST ( NULL AS INTEGER ) / - col1 + + col1 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( + 33 ) + + col1 AS col1 FROM tab0 AS cor0
----
119
124
130
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8251
SELECT DISTINCT - ( + col2 ) + - col1 * CAST( + 96 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
-198177
-325921
-777586
skipif mysql # not compatible
query I rowsort label-8251
SELECT DISTINCT - ( + col2 ) + - col1 * CAST ( + 96 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
-198177
-325921
-777586
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8252
SELECT ALL - CAST( col0 AS SIGNED ) * col0 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL - CAST ( col0 AS INTEGER ) * col0 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-8253
SELECT ALL + CAST( col2 AS SIGNED ) DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL + CAST ( col2 AS INTEGER ) / col0 AS col2 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT + + col0 * + cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-8255
SELECT DISTINCT ( col2 ) + + col1 DIV - cor0.col2 AS col1 FROM tab0 AS cor0
----
-96
31
81
skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT ( col2 ) + + col1 / - cor0.col2 AS col1 FROM tab0 AS cor0
----
-96
31
81
query I rowsort
SELECT + - col2 * 19 FROM tab2 AS cor0
----
-494
-513
-722
query I rowsort
SELECT + 81 * col2 FROM tab2 AS cor0
----
2106
2187
3078
query I rowsort
SELECT DISTINCT + cor0.col2 * - 45 AS col2 FROM tab0 AS cor0
----
-1485
-3690
-45
query I rowsort
SELECT - col2 * + 67 AS col0 FROM tab0 AS cor0
----
-2211
-5494
-67
query I rowsort
SELECT + ( - col0 ) * col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT col1 * 65 FROM tab0 AS cor0
----
5590
5915
6305
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * 21 col0 FROM tab2 AS cor0
----
546
567
798
query I rowsort
SELECT ALL + col2 * 18 FROM tab2
----
468
486
684
query I rowsort
SELECT ALL + 1 * - col2 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8265
SELECT DISTINCT + 4 DIV 12 AS col1 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT + 4 / 12 AS col1 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL cor0.col1 * 48 + - col2 FROM tab0 AS cor0
----
4095
4286
4655
query I rowsort
SELECT DISTINCT - 15 FROM tab0, tab2 AS cor0, tab1 cor1
----
-15
onlyif mysql # use DIV operator for integer division
query I rowsort label-8268
SELECT col1 * tab2.col1 + - 10 + col0 DIV + col0 AS col0 FROM tab2
----
280
3472
952
skipif mysql # not compatible
query I rowsort label-8268
SELECT col1 * tab2.col1 + - 10 + col0 / + col0 AS col0 FROM tab2
----
280
3472
952
query I rowsort
SELECT ALL - col0 + ( col2 + col2 ) * - ( + col2 ) FROM tab1
----
-18512
-5835
-6562
onlyif mysql # use DIV operator for integer division
query I rowsort label-8270
SELECT DISTINCT col2 DIV ( 45 ) + tab1.col1 col2 FROM tab1
----
11
15
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8270
SELECT DISTINCT col2 / ( 45 ) + tab1.col1 col2 FROM tab1
----
11
15
27
query I rowsort
SELECT 58 FROM tab2, tab1 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT ALL col2 * 84 FROM tab1
----
4536
4788
8064
query I rowsort
SELECT ALL + - col2 * + 43 + col0 AS col0 FROM tab0 AS cor0
----
-1395
-3437
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8274
SELECT DISTINCT - col2 DIV + ( 97 ) FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT - col2 / + ( 97 ) FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL col2 + col0 * ( col1 ) FROM tab2
----
1381
244
4628
query I rowsort
SELECT ALL col0 + - 82 * + ( - tab2.col2 ) FROM tab2
----
2210
2221
3195
onlyif mysql # use DIV operator for integer division
query I rowsort label-8277
SELECT + col2 * ( + col2 ) DIV tab1.col1 FROM tab1
----
112
324
708
skipif mysql # not compatible
query I rowsort label-8277
SELECT + col2 * ( + col2 ) / tab1.col1 FROM tab1
----
112
324
708
query I rowsort
SELECT ALL + - col1 + + col0 * + col0 FROM tab2 cor0
----
18
6025
6224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8279
SELECT + - CAST( NULL AS SIGNED ) + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8279
SELECT + - CAST ( NULL AS INTEGER ) + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 * ( - col1 ) + - ( col0 ) AS col2 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT ALL col1 * + col0 + - col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT + - ( + ( + col2 ) ) + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL + ( col0 ) + + col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT ALL 94 * + col0 FROM tab2 AS cor0
----
658
7332
7426
query I rowsort
SELECT DISTINCT - - col1 * - col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - 51 + 48 FROM tab1 AS cor0
----
-3
-3
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-8287
SELECT + + col0 DIV cor0.col1 col0 FROM tab1 AS cor0
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8287
SELECT + + col0 / cor0.col1 col0 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT + - col1 * col2 + col1 - + ( 7 + cor0.col1 ) AS col1 FROM tab2 cor0
----
-1541
-653
-844
query I rowsort
SELECT DISTINCT + col0 * + 72 * - col0 AS col1 FROM tab0 AS cor0
----
-41472
-570312
-88200
query I rowsort
SELECT ALL col2 + col1 * - col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ( cor0.col1 ) - - col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT 30 * col2 + cor0.col2 FROM tab2 AS cor0
----
1178
806
837
query I rowsort
SELECT - - 47 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT col2 * + tab1.col1 + + col2 AS col1 FROM tab1
----
1344
1458
627
query I rowsort
SELECT + cor0.col1 * + cor0.col0 AS col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT + - col2 + col0 AS col0 FROM tab2 cor0
----
-20
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8297
SELECT DISTINCT - - ( col1 ) - CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8297
SELECT DISTINCT - - ( col1 ) - CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - 6 * - col2 + + 61 FROM tab2 AS cor0
----
217
223
289
query I rowsort
SELECT ALL - col0 + + col0 * col1 FROM tab0 cor0
----
2040
3360
8010
query I rowsort
SELECT col1 + col2 * + col1 AS col0 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT 72 AS col0 FROM tab0 AS cor0
----
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 col2 FROM tab2 AS cor0
----
73
73
73
query I rowsort
SELECT - + cor0.col1 * + col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL 41 + + col2 FROM tab0 AS cor0
----
123
42
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-8305
SELECT DISTINCT - cor0.col2 * col1 + 17 DIV - col1 FROM tab1 AS cor0
----
-1249
-1404
-571
skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT - cor0.col2 * col1 + 17 / - col1 FROM tab1 AS cor0
----
-1249
-1404
-571
query I rowsort
SELECT col1 * 10 + 86 FROM tab0 AS cor0
----
1056
946
996
query I rowsort
SELECT ALL + col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + col2 + ( + 12 ) FROM tab2 AS cor0
----
38
39
50
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab2, tab1 AS cor0, tab2 cor1
----
10
13
26
query I rowsort
SELECT - col2 * - col1 + col1 FROM tab1 cor0
----
1261
1430
580
query I rowsort
SELECT 27 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT 71 FROM tab0, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8313
SELECT + col1 * col2 * + ( col2 + CAST( - col2 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8313
SELECT + col1 * col2 * + ( col2 + CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - - col2 * - col2 * + ( col1 ) FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT - col2 * - 87 FROM tab0 AS cor0
----
2871
7134
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8316
SELECT - col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8316
SELECT - col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + - cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
-1260
-600
-8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-8318
SELECT - cor0.col0 + - CAST( col1 AS SIGNED ) DIV col1 FROM tab2 AS cor0
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-8318
SELECT - cor0.col0 + - CAST ( col1 AS INTEGER ) / col1 FROM tab2 AS cor0
----
-79
-8
-80
query I rowsort
SELECT DISTINCT - + 32 + col1 FROM tab2 AS cor0
----
-1
-15
27
query I rowsort
SELECT cor0.col0 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT - + 96 AS col2 FROM tab1 cor0
----
-96
-96
-96
query I rowsort
SELECT DISTINCT - + 89 FROM tab2 cor0
----
-89
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
10
13
26
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab2 cor0, tab1 AS cor1
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763
query I rowsort
SELECT DISTINCT 61 * + col2 * col0 FROM tab1
----
222528
468480
9882
query I rowsort
SELECT - 95 + + col2 AS col2 FROM tab0
----
-13
-62
-94
query I rowsort
SELECT 85 FROM tab2, tab1, tab2 cor0
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7
query I rowsort
SELECT DISTINCT - col1 * col0 + - col2 * ( - cor0.col1 ) FROM tab0 AS cor0
----
-3298
-637
774
query I rowsort
SELECT ALL ( 10 ) FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176
query I rowsort
SELECT ALL - 7 * col1 + col1 AS col0 FROM tab2 AS cor0
----
-102
-186
-354
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 * col2 ) col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT + 63 + col0 AS col0 FROM tab2 AS cor0
----
141
142
70
query I rowsort
SELECT col2 + + col1 + cor0.col2 FROM tab0 AS cor0
----
152
255
99
query I rowsort
SELECT ALL + + ( + col1 ) + - col0 AS col2 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT + + col1 - + col0 * ( + col2 + col1 * col0 ) AS col2 FROM tab1 AS cor0
----
-370
-44598
-90867
query I rowsort
SELECT - 74 + col1 FROM tab1 AS cor0
----
-48
-61
-64
query I rowsort
SELECT DISTINCT + + 91 * - col2 FROM tab1 AS cor0
----
-4914
-5187
-8736
query I rowsort
SELECT ALL 68 FROM tab1 cor0
----
68
68
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col2 col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8340
SELECT + col1 DIV 15 FROM tab0
----
5
6
6
skipif mysql # not compatible
query I rowsort label-8340
SELECT + col1 / 15 FROM tab0
----
5
6
6
query I rowsort
SELECT + col1 * col2 + + col1 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
159
2900
7464
query I rowsort
SELECT ALL - - ( col2 ) * - 22 FROM tab2 AS cor0
----
-572
-594
-836
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8343
SELECT ALL - col1 + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8343
SELECT ALL - col1 + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8344
SELECT ALL cor0.col2 DIV + col2 - + 60 AS col0 FROM tab1 AS cor0
----
-59
-59
-59
skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL cor0.col2 / + col2 - + 60 AS col0 FROM tab1 AS cor0
----
-59
-59
-59
query I rowsort
SELECT DISTINCT col2 + + col2 * 62 AS col0 FROM tab0
----
2079
5166
63
query I rowsort
SELECT + - 87 * - 85 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ca921cb76a05472ccaf4b65a3b4a655b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8347
SELECT - - CAST( NULL AS SIGNED ) * - cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8347
SELECT - - CAST ( NULL AS INTEGER ) * - cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( 12 ) * + cor0.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f94d1f5aee956890c12dd2fdfe33cceb
query I rowsort
SELECT 56 FROM tab0, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT ALL - ( col2 ) * col2 * col2 FROM tab1
----
-157464
-185193
-884736
query I rowsort
SELECT - - 42 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( - col2 ) col2 FROM tab1
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-8353
SELECT DISTINCT ( + col1 ) DIV + col1 + tab2.col2 * tab2.col1 - + tab2.col0 FROM tab2
----
1457
568
831
skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT ( + col1 ) / + col1 + tab2.col2 * tab2.col1 - + tab2.col0 FROM tab2
----
1457
568
831
query I rowsort
SELECT + cor1.col0 AS col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT 87 * - tab1.col2 + + col2 AS col0 FROM tab1
----
-4644
-4902
-8256
query I rowsort
SELECT - col0 + col1 + - col1 AS col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT col1 * col2 + + col1 + col0 AS col2 FROM tab1 AS cor0
----
1341
1433
644
query I rowsort
SELECT - col1 + + ( - col1 + + 97 ) FROM tab0
----
-75
-85
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb
onlyif mysql # use DIV operator for integer division
query I rowsort label-8360
SELECT - cor0.col0 DIV col1 AS col0 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8360
SELECT - cor0.col0 / col1 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL - 31 * 46 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4366297e0c1b6151017b657f23b6ff6d
query I rowsort
SELECT + 38 * - col1 FROM tab2 AS cor0
----
-1178
-2242
-646
query I rowsort
SELECT DISTINCT - - ( - col2 ) * col1 + + col2 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-8364
SELECT + - cor0.col0 DIV - col2 AS col1 FROM tab0 cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-8364
SELECT + - cor0.col0 / - col2 AS col1 FROM tab0 cor0
----
0
1
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8365
SELECT ALL CAST( ( - col2 ) AS SIGNED ) FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL CAST ( ( - col2 ) AS INTEGER ) FROM tab2
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col2 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT col2 + + cor0.col1 AS col2 FROM tab1 cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 + + tab0.col0 col1 FROM tab0
----
110
132
180
query I rowsort
SELECT - 82 + col2 FROM tab0 AS cor0
----
-49
-81
0
query I rowsort
SELECT DISTINCT + + col0 * + col0 + 45 + col2 AS col2 FROM tab2 AS cor0
----
121
6155
6324
query I rowsort
SELECT col1 * - col2 + - col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT ALL 36 * col2 + col0 AS col1 FROM tab0 AS cor0
----
1212
3041
71
query I rowsort
SELECT DISTINCT + + 97 + + col1 * col0 AS col0 FROM tab0 AS cor0
----
2161
3492
8196
query I rowsort
SELECT 57 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5
query I rowsort
SELECT + col2 * - 70 * + 44 + - tab1.col0 * - ( ( col2 ) ) FROM tab1
----
-166158
-171912
-288000
query I rowsort
SELECT - 52 + + 23 FROM tab2, tab2 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b
query I rowsort
SELECT tab2.col1 + 53 AS col0 FROM tab2
----
112
70
84
query I rowsort
SELECT ALL - col0 * + col2 * - cor0.col2 FROM tab2 AS cor0
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-8379
SELECT DISTINCT + + col2 DIV + cor0.col1 AS col1 FROM tab1 cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-8379
SELECT DISTINCT + + col2 / + cor0.col1 AS col1 FROM tab1 cor0
----
2
5
7
query I rowsort
SELECT - + col0 + + ( col1 + - cor0.col1 ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT col2 * col0 - col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT + + col0 + - col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + col1 + - 53 * ( col1 ) FROM tab2 AS cor0
----
-1612
-3068
-884
query I rowsort
SELECT + col1 * cor0.col0 + col2 * - cor0.col2 FROM tab2 AS cor0
----
-101
-512
3926
query I rowsort
SELECT - cor0.col1 * 30 AS col2 FROM tab2 AS cor0
----
-1770
-510
-930
query I rowsort
SELECT DISTINCT ( col1 ) + col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT - + col1 * cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL 62 * col1 + - col2 FROM tab2 AS cor0
----
1016
1895
3632
query I rowsort
SELECT ALL + 51 * cor0.col2 + + col2 * 2 * 65 AS col1 FROM tab0 AS cor0
----
14842
181
5973
query I rowsort
SELECT DISTINCT col0 - cor0.col1 * + col2 FROM tab1 AS cor0
----
-1168
-1401
-506
onlyif mysql # use DIV operator for integer division
query I rowsort label-8391
SELECT ALL - + col0 + col2 DIV col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-8391
SELECT ALL - + col0 + col2 / col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + - col1 * ( col2 ) AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col0 FROM tab0 cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8394
SELECT ALL + - ( + col0 ) * cor0.col1 + col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
-1344
-218
-4603
skipif mysql # not compatible
query I rowsort label-8394
SELECT ALL + - ( + col0 ) * cor0.col1 + col0 / - col0 AS col2 FROM tab2 AS cor0
----
-1344
-218
-4603
query I rowsort
SELECT + - ( - col1 ) * - col2 + + 18 AS col2 FROM tab2 AS cor0
----
-1516
-628
-819
query I rowsort
SELECT DISTINCT + + col1 + col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + col0 + + 74 AS col1 FROM tab2 AS cor0
----
152
153
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8398
SELECT DISTINCT - CAST( NULL AS SIGNED ) + ( + col1 ) * col2 * - col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + ( + col1 ) * col2 * - col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - ( col0 ) + + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT ALL col0 * - col0 * col2 FROM tab2 AS cor0
----
-1323
-158184
-237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab0 cor0 WHERE NOT col2 NOT IN ( cor0.col2 * + col0 )
----
query I rowsort
SELECT DISTINCT - col0 + + col1 * col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 WHERE NOT - col0 + + col0 < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8404
SELECT ALL - tab0.col1 DIV tab0.col1 + + tab0.col2 AS col1 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL - tab0.col1 / tab0.col1 + + tab0.col2 AS col1 FROM tab0
----
0
32
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 col1 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL tab0.col1 + col2 * col0 FROM tab0
----
132
7389
878
query I rowsort
SELECT ALL col0 * + col1 * - col2 AS col0 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT - col2 + tab1.col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT col1 * col0 * col2 AS col0 FROM tab1
----
36480
4212
99840
query III rowsort
SELECT * FROM tab1 WHERE ( col0 + - col1 ) NOT IN ( col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
onlyif mysql # use DIV operator for integer division
query I rowsort label-8411
SELECT tab1.col0 DIV tab1.col0 + col2 * - col0 FROM tab1
----
-161
-3647
-7679
skipif mysql # not compatible
query I rowsort label-8411
SELECT tab1.col0 / tab1.col0 + col2 * - col0 FROM tab1
----
-161
-3647
-7679
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN ( col1 * col1 ) AND col0
----
query I rowsort
SELECT DISTINCT + col1 * + col0 AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT - col0 + col2 * + tab1.col2 AS col1 FROM tab1
----
2913
3185
9136
query I rowsort
SELECT DISTINCT + col1 + col2 * col0 * + col1 FROM tab1
----
36490
4238
99853
query I rowsort
SELECT ALL col1 FROM tab2 WHERE NULL BETWEEN + col1 AND NULL
----
query I rowsort
SELECT DISTINCT col2 + col0 * col1 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT col0 * col2 AS col1 FROM tab0 WHERE NOT - col1 NOT IN ( + col1 )
----
query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT - col1 < ( NULL )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * col1 <> ( NULL )
----
query I rowsort
SELECT col2 * - col0 + col2 * col2 AS col0 FROM tab1
----
-399
1536
2754
query I rowsort
SELECT + tab0.col0 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT + - cor0.col0 + + col0 + - col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - + cor0.col0 + - col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT - col2 * + col2 AS col0 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT tab0.col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT ALL col2 * col0 * - col1 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT - - col1 * col0 AS col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL - + col2 + col0 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT - col2 * + col2 * col0 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT DISTINCT + - cor0.col0 * col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 + col2 AS col1 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL - col0 + + col2 + col1 AS col0 FROM tab1 cor0
----
29
3
77
query I rowsort
SELECT - 59 * - col0 AS col0 FROM tab0
----
1416
2065
5251
query I rowsort
SELECT ALL tab1.col1 * + 49 FROM tab1, tab1 AS cor0
----
9 values hashing to 11d17cc82a045b85c5546b86f51755ad
query I rowsort
SELECT ALL - 77 AS col1 FROM tab0
----
-77
-77
-77
query I rowsort
SELECT 66 * cor0.col0 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 744309e3bf906a4a48a461dcdd0a8fe5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8440
SELECT - cor0.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8440
SELECT - cor0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 5e655b1287771868a8f868574a94d749
query I rowsort
SELECT col0 * col0 + + 10 * - col0 FROM tab0
----
336
7031
875
query I rowsort
SELECT ALL col2 * + col1 + + col1 * col2 AS col0 FROM tab0 AS cor0
----
14924
194
5676
query I rowsort
SELECT DISTINCT - col1 + ( 50 ) FROM tab0 AS cor0
----
-36
-41
-47
query I rowsort
SELECT - col1 * cor0.col2 + - 86 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-15116
-3107
-4902
query I rowsort
SELECT ALL + col2 * col0 + + col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT - col1 + cor0.col0 * + col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT + - col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + col2 + tab0.col0 * col0 AS col0 FROM tab0
----
1226
609
8003
query I rowsort
SELECT + col0 + col1 * + tab2.col0 FROM tab2
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8451
SELECT ALL - col2 DIV col2 col1 FROM tab0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL - col2 / col2 col1 FROM tab0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8452
SELECT + col2 DIV col1 + col0 * col1 + col2 FROM tab0
----
2097
3396
8181
skipif mysql # not compatible
query I rowsort label-8452
SELECT + col2 / col1 + col0 * col1 + col2 FROM tab0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + tab1.col0 * + col1 + - col1 * - tab1.col2 col0 FROM tab1
----
101088
37050
5616
onlyif mysql # use DIV operator for integer division
query I rowsort label-8454
SELECT DISTINCT col0 + - col1 * col1 DIV col1 + col0 AS col0 FROM tab2
----
-17
141
97
skipif mysql # not compatible
query I rowsort label-8454
SELECT DISTINCT col0 + - col1 * col1 / col1 + col0 AS col0 FROM tab2
----
-17
141
97
query I rowsort
SELECT col2 * col2 * - col2 AS col0 FROM tab2
----
-17576
-19683
-54872
query I rowsort
SELECT DISTINCT - col2 + - col0 + + tab0.col0 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT + col1 * + col1 * col2 FROM tab2
----
10982
25947
90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-8458
SELECT - col2 DIV col2 + - col2 col2 FROM tab1
----
-55
-58
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8458
SELECT - col2 / col2 + - col2 col2 FROM tab1
----
-55
-58
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 + tab2.col2 * + tab2.col1 + - col0 col1 FROM tab2
----
-877
101
780
query I rowsort
SELECT DISTINCT - col1 + col0 + - col1 AS col2 FROM tab1
----
-49
44
54
query III rowsort
SELECT * FROM tab1 WHERE NOT col0 - + col2 NOT IN ( - col2 * - tab1.col0 * + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8462
SELECT DISTINCT tab2.col0 DIV + tab2.col1 AS col0 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-8462
SELECT DISTINCT tab2.col0 / + tab2.col1 AS col0 FROM tab2
----
0
1
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-8463
SELECT DISTINCT - tab1.col0 DIV col1 AS col0 FROM tab1
----
-6
0
skipif mysql # not compatible
query I rowsort label-8463
SELECT DISTINCT - tab1.col0 / col1 AS col0 FROM tab1
----
-6
0
query I rowsort
SELECT - tab0.col1 + + tab0.col1 + - col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT - col2 * + col0 * col2 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT + - 97 * col2 + col0 AS col1 FROM tab0 AS cor0
----
-3177
-62
-7865
onlyif mysql # use DIV operator for integer division
query I rowsort label-8467
SELECT - 91 DIV 9 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0
skipif mysql # not compatible
query I rowsort label-8467
SELECT - 91 / 9 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0
query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col1 + - col2 - - col0 FROM tab2 AS cor0
----
1586
687
817
query I rowsort
SELECT + - col0 * col1 + + ( + col1 ) FROM tab0 AS cor0
----
-1978
-3298
-8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-8470
SELECT + col2 DIV - col0 - col0 AS col0 FROM tab1
----
-21
-64
-81
skipif mysql # not compatible
query I rowsort label-8470
SELECT + col2 / - col0 - col0 AS col0 FROM tab1
----
-21
-64
-81
query I rowsort
SELECT DISTINCT + col0 - + col2 * - col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT DISTINCT col2 * col0 + - col2 AS col0 FROM tab2
----
162
2002
2964
query I rowsort
SELECT + col2 * 0 * col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + + cor0.col2 * 23 * cor0.col1 FROM tab0 AS cor0
----
171626
2231
65274
query I rowsort
SELECT DISTINCT + - col1 + + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT ALL + col0 * - 27 AS col1 FROM tab2 AS cor0
----
-189
-2106
-2133
query I rowsort
SELECT cor0.col2 * - col1 * - 7 FROM tab1 AS cor0
----
3990
8736
9828
query I rowsort
SELECT ALL - + col2 + - col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT + col0 + + col0 * col0 AS col1 FROM tab1 cor0
----
12
4160
6480
query I rowsort
SELECT DISTINCT - - col1 * + col2 AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT - col2 * ( cor0.col0 + - col0 * + col0 ) AS col0 FROM tab1 AS cor0
----
229824
324
606720
query I rowsort
SELECT + col2 + - ( col0 ) FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + 77 * - ( cor0.col0 ) + cor0.col2 AS col2 FROM tab2 AS cor0
----
-512
-5980
-6045
query I rowsort
SELECT DISTINCT + + col1 + 31 FROM tab1 AS cor0
----
41
44
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8485
SELECT + - 10 * col0 + col1 * col2 DIV col1 FROM tab1 AS cor0
----
-583
-704
24
skipif mysql # not compatible
query I rowsort label-8485
SELECT + - 10 * col0 + col1 * col2 / col1 FROM tab1 AS cor0
----
-583
-704
24
query I rowsort
SELECT DISTINCT + col0 + + 69 AS col1 FROM tab2 AS cor0
----
147
148
76
query I rowsort
SELECT ALL - + col0 - col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT DISTINCT + col0 + + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT ALL + col1 + - col2 AS col2 FROM tab2 cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-8490
SELECT + col0 DIV + col1 + col2 AS col0 FROM tab2 AS cor0
----
27
27
42
skipif mysql # not compatible
query I rowsort label-8490
SELECT + col0 / + col1 + col2 AS col0 FROM tab2 AS cor0
----
27
27
42
query I rowsort
SELECT ALL - ( - 81 ) * col2 FROM tab1 AS cor0
----
4374
4617
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-8492
SELECT ALL + col0 * col0 + col1 DIV col1 FROM tab2 AS cor0
----
50
6085
6242
skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL + col0 * col0 + col1 / col1 FROM tab2 AS cor0
----
50
6085
6242
onlyif mysql # use DIV operator for integer division
query I rowsort label-8493
SELECT - tab0.col1 DIV - 94 AS col2 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8493
SELECT - tab0.col1 / - 94 AS col2 FROM tab0
----
0
0
1
query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab0 cor0 CROSS JOIN tab2, tab2 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL - - col2 * + col1 - + col2 AS col1 FROM tab2 cor0
----
1508
608
810
query I rowsort
SELECT - 94 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f
query I rowsort
SELECT col0 * + cor0.col1 AS col2 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + + ( col1 ) AS col1 FROM tab1 cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8499
SELECT ALL - + cor0.col1 DIV + col2 + + 50 AS col2 FROM tab1 AS cor0
----
50
50
50
skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL - + cor0.col1 / + col2 + + 50 AS col2 FROM tab1 AS cor0
----
50
50
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col1 col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - col2 * col1 + col2 - col1 AS col1 FROM tab0 AS cor0
----
-193
-2891
-7471
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8502
SELECT DISTINCT + cor0.col1 / CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8502
SELECT DISTINCT + cor0.col1 / CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL - col2 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL 98 * tab1.col0 AS col2 FROM tab1
----
294
6272
7840
query I rowsort
SELECT + 95 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT col0 * ( col1 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 * CAST ( cor0.col1 AS REAL ) FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-8508
SELECT DISTINCT - col1 DIV ( - 6 * + col1 ) AS col2 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8508
SELECT DISTINCT - col1 / ( - 6 * + col1 ) AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - 95 + cor0.col0 AS col1 FROM tab1, tab0 AS cor0
----
-6
-60
-71
onlyif mysql # use DIV operator for integer division
query I rowsort label-8510
SELECT - - col2 DIV ( + 55 ) FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8510
SELECT - - col2 / ( + 55 ) FROM tab0 AS cor0
----
0
0
1
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b
onlyif mysql # use DIV operator for integer division
query I rowsort label-8512
SELECT - col0 DIV 35 + + 26 * col0 FROM tab1
----
1663
2078
78
skipif mysql # not compatible
query I rowsort label-8512
SELECT - col0 / 35 + + 26 * col0 FROM tab1
----
1663
2078
78
query I rowsort
SELECT ALL + col0 * - 35 FROM tab2
----
-245
-2730
-2765
query I rowsort
SELECT ALL + - 67 AS col2 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to b06dbb8370537177bf40dc825f674151
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8515
SELECT col0 + CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8515
SELECT col0 + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8516
SELECT DISTINCT - + col1 * CAST( 6 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-102
-186
-354
skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT - + col1 * CAST ( 6 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-102
-186
-354
query I rowsort
SELECT 93 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT DISTINCT - col2 * 78 + + col2 AS col0 FROM tab2
----
-2002
-2079
-2926
query I rowsort
SELECT col1 + 61 * + tab0.col1 FROM tab0
----
5332
5642
6014
query I rowsort
SELECT ALL + 4 + tab1.col2 FROM tab1
----
100
58
61
query I rowsort
SELECT ALL 45 + - col1 FROM tab2
----
-14
14
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-8522
SELECT - - 1 DIV - col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8522
SELECT - - 1 / - col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 45 + - col0 * - col1 + col1 AS col1 FROM tab0 AS cor0
----
2195
3537
8235
query I rowsort
SELECT - - col0 + col2 * - cor0.col0 FROM tab0 cor0
----
-7209
-768
0
query I rowsort
SELECT ALL ( + cor0.col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - ( + col0 ) AS col1 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + col2 * col2 + ( - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-96
1003
6633
onlyif mysql # use DIV operator for integer division
query I rowsort label-8528
SELECT - + col2 DIV col1 + + col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8528
SELECT - + col2 / col1 + + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - col2 + col0 * + col1 * - col1 FROM tab2 AS cor0
----
-22869
-271544
-6754
onlyif mysql # use DIV operator for integer division
query I rowsort label-8530
SELECT DISTINCT - col0 * col0 + - col2 + + cor0.col0 DIV cor0.col2 FROM tab0 AS cor0
----
-1191
-609
-8002
skipif mysql # not compatible
query I rowsort label-8530
SELECT DISTINCT - col0 * col0 + - col2 + + cor0.col0 / cor0.col2 FROM tab0 AS cor0
----
-1191
-609
-8002
query I rowsort
SELECT ALL - + 58 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1392
-2030
-5162
query I rowsort
SELECT 23 * col1 + + col0 * + ( col1 ) FROM tab2 AS cor0
----
1734
5959
930
query I rowsort
SELECT ALL 41 * col0 FROM tab1 AS cor0
----
123
2624
3280
query I rowsort
SELECT + col0 + cor0.col2 * + col2 FROM tab2 AS cor0
----
1523
736
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-8535
SELECT ALL - col2 + col2 DIV ( 89 ) FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL - col2 + col2 / ( 89 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT 21 * + col1 * - col1 FROM tab1 cor0
----
-14196
-2100
-3549
query I rowsort
SELECT ALL - 66 + - col1 AS col2 FROM tab0 AS cor0
----
-152
-157
-163
query I rowsort
SELECT ALL ( + col2 ) - cor0.col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT - cor0.col2 + - ( + col1 ) * col2 AS col1 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT 64 + + col1 AS col0 FROM tab0 cor0
----
150
155
161
query I rowsort
SELECT 66 * col1 AS col1 FROM tab1 AS cor0
----
1716
660
858
query I rowsort
SELECT col1 + 20 * - col0 FROM tab1 cor0
----
-1270
-1587
-34
query I rowsort
SELECT DISTINCT - ( - 40 ) AS col2 FROM tab1
----
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8544
SELECT CAST( + col1 + + col1 AS SIGNED ) col2 FROM tab1
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8544
SELECT CAST ( + col1 + + col1 AS INTEGER ) col2 FROM tab1
----
20
26
52
query I rowsort
SELECT ALL tab2.col1 * 64 FROM tab2
----
1088
1984
3776
onlyif mysql # use DIV operator for integer division
query I rowsort label-8546
SELECT + cor0.col1 DIV + col1 AS col1 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8546
SELECT + cor0.col1 / + col1 AS col1 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT + 37 * col0 + + col1 * - col1 FROM tab0 cor0
----
-4988
-6508
-8114
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + - col1 col1 FROM tab0 cor0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 col0 FROM tab0 AS cor0
----
70
70
70
query I rowsort
SELECT + 34 + col0 AS col0 FROM tab2
----
112
113
41
query I rowsort
SELECT + - 93 FROM tab2 AS cor0
----
-93
-93
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8552
SELECT DISTINCT ( + col1 + + col2 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-8552
SELECT DISTINCT ( + col1 + + col2 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
query I rowsort
SELECT - ( ( col2 ) ) AS col2 FROM tab2
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8554
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 37 AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 37 AS col2 FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + cor0.col1 col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT col0 + col0 + col0 AS col0 FROM tab0 cor0
----
105
267
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8557
SELECT ALL - + col1 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL - + col1 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * 45 + - col2 AS col2 FROM tab0 AS cor0
----
1047
1574
3923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col2 col1 FROM tab2
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8560
SELECT + + cor0.col2 * col1 * col1 + col0 - ( + ( + cor0.col0 ) ) * CAST( + 1 + col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
1604
36495
9824
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8560
SELECT + + cor0.col2 * col1 * col1 + col0 - ( + ( + cor0.col0 ) ) * CAST ( + 1 + col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
1604
36495
9824
query I rowsort
SELECT DISTINCT - 60 + col0 + col2 * - col0 FROM tab2
----
-2010
-242
-2983
query I rowsort
SELECT DISTINCT col2 * col0 + ( tab1.col2 * tab1.col0 ) + + ( + col1 ) FROM tab1
----
15373
350
7306
query I rowsort
SELECT + - cor0.col2 AS col1 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT + - col1 + ( + col0 * - 46 ) AS col2 FROM tab0 AS cor0
----
-1190
-1707
-4185
query I rowsort
SELECT + cor0.col1 + col1 * + col1 AS col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT ( col0 ) - + col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT - 83 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
14
3
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 44 + col2 col1 FROM tab1 AS cor0
----
2430
2565
4320
query I rowsort
SELECT - - cor0.col1 * - col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT - col1 * + col1 * col0 AS col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT col0 + - col0 AS col1 FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - 67 ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
onlyif mysql # use DIV operator for integer division
query I rowsort label-8573
SELECT + col1 DIV + col1 AS col2 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8573
SELECT + col1 / + col1 AS col2 FROM tab2
----
1
1
1
query I rowsort
SELECT - + ( - col2 ) + col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT + 54 + col1 AS col0 FROM tab1 cor0
----
64
67
80
query I rowsort
SELECT ALL - - col0 + col1 * + ( ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT col2 * 87 + + col2 AS col1 FROM tab0 AS cor0
----
2904
7216
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8578
SELECT - - cor0.col0 * - CAST( col1 AS SIGNED ) - col2 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628
skipif mysql # not compatible
query I rowsort label-8578
SELECT - - cor0.col0 * - CAST ( col1 AS INTEGER ) - col2 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT + + col2 * + ( 46 ) + - col1 FROM tab2 cor0
----
1137
1211
1731
query I rowsort
SELECT col2 * 39 + - 44 * + col0 FROM tab2 AS cor0
----
-1994
-2418
745
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8581
SELECT - cor0.col0 * - CAST( col0 AS SIGNED ) * - col1 + - col2 FROM tab0 AS cor0
----
-118826
-49569
-720893
skipif mysql # not compatible
query I rowsort label-8581
SELECT - cor0.col0 * - CAST ( col0 AS INTEGER ) * - col1 + - col2 FROM tab0 AS cor0
----
-118826
-49569
-720893
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8582
SELECT ALL - CAST( NULL AS SIGNED ) / tab2.col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL - CAST ( NULL AS INTEGER ) / tab2.col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 83 + 37 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 184e60202023a43ae0e912e68f79c0c3
onlyif mysql # use DIV operator for integer division
query I rowsort label-8584
SELECT DISTINCT - col1 * - col1 * col0 + + col0 * col1 + 89 DIV col0 AS col2 FROM tab1 AS cor0
----
14561
2135
7041
skipif mysql # not compatible
query I rowsort label-8584
SELECT DISTINCT - col1 * - col1 * col0 + + col0 * col1 + 89 / col0 AS col2 FROM tab1 AS cor0
----
14561
2135
7041
onlyif mysql # use DIV operator for integer division
query I rowsort label-8585
SELECT 7 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8585
SELECT 7 / + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * + col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - - col0 * cor0.col2 FROM tab1 cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 * + col2 col0 FROM tab2 AS cor0
----
-520
-540
-760
query I rowsort
SELECT DISTINCT 97 * - cor0.col1 AS col0 FROM tab2, tab1 AS cor0
----
-1261
-2522
-970
query I rowsort
SELECT ALL + 53 FROM tab1, tab0 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) col0 FROM tab0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8592
SELECT DISTINCT - + 22 * col2 DIV - 49 AS col2 FROM tab0 AS cor0
----
0
14
36
skipif mysql # not compatible
query I rowsort label-8592
SELECT DISTINCT - + 22 * col2 / - 49 AS col2 FROM tab0 AS cor0
----
0
14
36
query I rowsort
SELECT ALL - col0 + col1 AS col1 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT DISTINCT - 52 + cor0.col0 + col2 AS col0 FROM tab2 AS cor0
----
-18
52
65
query I rowsort
SELECT DISTINCT + - 77 + - col1 FROM tab1 AS cor0
----
-103
-87
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-8596
SELECT DISTINCT - + col2 * + col1 + + col0 DIV col0 AS col2 FROM tab2 AS cor0
----
-1533
-645
-836
skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT - + col2 * + col1 + + col0 / col0 AS col2 FROM tab2 AS cor0
----
-1533
-645
-836
query I rowsort
SELECT DISTINCT - 52 * + col1 AS col2 FROM tab1 AS cor0
----
-1352
-520
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-8598
SELECT - + col1 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-8598
SELECT - + col1 / cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8599
SELECT ALL + 25 DIV col2 + col0 + 15 FROM tab1 cor0
----
18
79
95
skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL + 25 / col2 + col0 + 15 FROM tab1 cor0
----
18
79
95
query I rowsort
SELECT ALL - 55 + cor0.col1 FROM tab0 AS cor0
----
31
36
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-8601
SELECT - - 8 DIV - col2 FROM tab0 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-8601
SELECT - - 8 / - col2 FROM tab0 AS cor0
----
-8
0
0
query I rowsort
SELECT cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to c6425afc100dd55de8d45dec18c469ea
query I rowsort
SELECT ALL 62 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT DISTINCT + 33 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
33
query I rowsort
SELECT tab0.col1 + + 15 * 73 FROM tab0
----
1181
1186
1192
query I rowsort
SELECT col0 + + col0 * + 61 AS col1 FROM tab0
----
1488
2170
5518
query I rowsort
SELECT col2 + - cor0.col1 AS col0 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT - col0 * - col1 + + col1 * col1 AS col0 FROM tab0 AS cor0
----
12804
16380
9460
query I rowsort
SELECT + col0 + - ( 86 ) FROM tab0 AS cor0
----
-51
-62
3
query I rowsort
SELECT DISTINCT + 71 AS col0 FROM tab1, tab2 AS cor0
----
71
query I rowsort
SELECT DISTINCT - col0 * + 95 * - cor0.col1 FROM tab2 AS cor0
----
127585
20615
437190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 + 96 + + col2 col1 FROM tab0 cor0
----
115
164
83
query I rowsort
SELECT DISTINCT + col2 + - col0 + - cor0.col1 * - col0 FROM tab0 AS cor0
----
2073
3361
8092
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8614
SELECT + - CAST( + cor0.col1 AS SIGNED ) + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-8614
SELECT + - CAST ( + cor0.col1 AS INTEGER ) + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT ALL - + cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT - 19 FROM tab0, tab1 AS cor0
----
-19
query I rowsort
SELECT + ( - cor0.col1 ) * col1 + + cor0.col0 + + col0 AS col0 FROM tab1 AS cor0
----
-670
-9
28
query I rowsort
SELECT DISTINCT - - col2 + col2 * + col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT ( tab2.col2 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ( 60 ) AS col1 FROM tab2 AS cor0
----
60
60
60
query I rowsort
SELECT + ( - col2 ) + + col2 * - 18 FROM tab1 cor0
----
-1026
-1083
-1824
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 29 * + 4 col0 FROM tab0 AS cor0
----
-116
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * 86 + + col2 col2 FROM tab0 AS cor0
----
2097
3011
7736
query I rowsort
SELECT - 49 * col1 + col2 * col1 FROM tab2 cor0
----
-1357
-187
-682
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8625
SELECT ALL - CAST( + col1 AS SIGNED ) * col0 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL - CAST ( + col1 AS INTEGER ) * col0 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( - 63 ) AS col1 FROM tab1 AS cor0
----
63
63
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8627
SELECT DISTINCT CAST( col0 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
-16
-51
7
skipif mysql # not compatible
query I rowsort label-8627
SELECT DISTINCT CAST ( col0 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL col0 * - col2 * col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT 13 + + cor0.col0 AS col2 FROM tab1 cor0
----
16
77
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8630
SELECT + ( + 33 ) * - col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8630
SELECT + ( + 33 ) * - col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 55 AS col1 FROM tab2 cor0
----
55
55
55
query I rowsort
SELECT ALL + 95 - + col1 * + col1 AS col2 FROM tab2 AS cor0
----
-194
-3386
-866
onlyif mysql # use DIV operator for integer division
query I rowsort label-8633
SELECT + - col1 DIV col2 + cor0.col2 * ( col0 * col0 + col1 ) AS col2 FROM tab0 AS cor0
----
1225
21844
656983
skipif mysql # not compatible
query I rowsort label-8633
SELECT + - col1 / col2 + cor0.col2 * ( col0 * col0 + col1 ) AS col2 FROM tab0 AS cor0
----
1225
21844
656983
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8634
SELECT DISTINCT CAST( ( col2 ) AS SIGNED ) FROM tab1 cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT CAST ( ( col2 ) AS INTEGER ) FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + 98 * + col1 FROM tab0 cor0
----
8428
8918
9506
query I rowsort
SELECT ALL - - ( + 94 ) AS col2 FROM tab0 AS cor0
----
94
94
94
query I rowsort
SELECT + + 51 + + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-7247
-741
16
query I rowsort
SELECT + - col0 + + col2 * col2 AS col2 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT ALL - cor0.col2 + + col2 * - col2 * + col2 FROM tab1 AS cor0
----
-157518
-185250
-884832
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8640
SELECT DISTINCT + ( - col2 ) * CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
skipif mysql # not compatible
query I rowsort label-8640
SELECT DISTINCT + ( - col2 ) * CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
54
57
96
query I rowsort
SELECT ALL - 74 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28
onlyif mysql # use DIV operator for integer division
query I rowsort label-8643
SELECT ALL - + cor0.col2 * col2 DIV 33 AS col1 FROM tab2 AS cor0
----
-20
-22
-43
skipif mysql # not compatible
query I rowsort label-8643
SELECT ALL - + cor0.col2 * col2 / 33 AS col1 FROM tab2 AS cor0
----
-20
-22
-43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8644
SELECT DISTINCT - + col0 + CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8644
SELECT DISTINCT - + col0 + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + col1 + - ( + cor0.col1 ) * + col0 FROM tab2 cor0
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - - 37 col1 FROM tab1 AS cor0
----
-27
-43
34
query I rowsort
SELECT ALL col2 + cor0.col1 + - col0 FROM tab1 AS cor0
----
29
3
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-8648
SELECT + col2 DIV col2 + ( col0 ) AS col1 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-8648
SELECT + col2 / col2 + ( col0 ) AS col1 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT ALL - + col2 * + ( 77 ) AS col2 FROM tab1 cor0
----
-4158
-4389
-7392
onlyif mysql # use DIV operator for integer division
query I rowsort label-8650
SELECT ALL - col2 DIV - col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8650
SELECT ALL - col2 / - col2 FROM tab1
----
1
1
1
query I rowsort
SELECT ALL + + col1 + ( + ( + cor0.col2 ) ) * 63 AS col0 FROM tab0 AS cor0
----
160
2165
5257
query I rowsort
SELECT - col2 + cor0.col1 + 22 * col0 AS col2 FROM tab2 AS cor0
----
158
1717
1749
query I rowsort
SELECT - 97 * - col1 FROM tab1
----
1261
2522
970
query I rowsort
SELECT + 59 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT ALL ( - cor0.col0 ) AS col0 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT tab0.col1 + + ( + ( col0 ) ) + - 89 FROM tab0
----
21
43
91
query I rowsort
SELECT ALL col1 + col2 * - col0 AS col2 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT - + ( - 1 ) + - col0 AS col0 FROM tab2 AS cor0
----
-6
-77
-78
query I rowsort
SELECT col0 * - ( 64 ) + tab1.col0 AS col1 FROM tab1
----
-189
-4032
-5040
query I rowsort
SELECT ALL - + col1 * + 94 * 41 AS col0 FROM tab2 AS cor0
----
-119474
-227386
-65518
query I rowsort
SELECT ALL + col1 + col0 * - 67 AS col1 FROM tab0
----
-1522
-2248
-5872
query I rowsort
SELECT ALL + 16 * - col1 * - 39 AS col1 FROM tab0
----
53664
56784
60528
query I rowsort
SELECT 48 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + cor0.col0 col2 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT ALL - col2 + col2 * + ( col0 ) FROM tab0 cor0
----
34
7216
759
query I rowsort
SELECT DISTINCT col1 * col1 - ( col1 * col2 + col0 ) FROM tab1 AS cor0
----
-1159
-534
-731
query I rowsort
SELECT + 2 + - col2 * - col1 FROM tab0 AS cor0
----
2840
7464
99
query I rowsort
SELECT - col1 * - 55 AS col0 FROM tab2 cor0
----
1705
3245
935
query I rowsort
SELECT ALL tab1.col2 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + + col2 + 27 * + col0 AS col2 FROM tab1 AS cor0
----
135
1785
2256
query I rowsort
SELECT col2 * + col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - col2 + + 99 AS col2 FROM tab0 AS cor0
----
17
66
98
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col0 * + col2 AS REAL ) AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT - ( - col1 ) * + col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-8675
SELECT ALL + ( 91 ) DIV col2 + + ( + col2 ) * col1 DIV col0 AS col0 FROM tab0 cor0
----
120
84
93
skipif mysql # not compatible
query I rowsort label-8675
SELECT ALL + ( 91 ) / col2 + + ( + col2 ) * col1 / col0 AS col0 FROM tab0 cor0
----
120
84
93
query I rowsort
SELECT col0 * cor0.col2 + + col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT + 39 * + col0 AS col1 FROM tab0 AS cor0
----
1365
3471
936
query I rowsort
SELECT ( + col0 ) * + col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - col1 + + col1 * - ( - col2 ) AS col0 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT col2 * 69 + + tab1.col1 FROM tab1
----
3752
3943
6637
query I rowsort
SELECT ALL - col2 + tab0.col1 AS col0 FROM tab0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8682
SELECT + - col1 * - col1 + col1 DIV col1 FROM tab2 AS cor0
----
290
3482
962
skipif mysql # not compatible
query I rowsort label-8682
SELECT + - col1 * - col1 + col1 / col1 FROM tab2 AS cor0
----
290
3482
962
query I rowsort
SELECT - col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT + col0 * - col2 * col0 + + col2 FROM tab2
----
-1296
-158158
-237120
onlyif mysql # use DIV operator for integer division
query I rowsort label-8685
SELECT col0 + - col2 DIV col2 col0 FROM tab0 AS cor0
----
23
34
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8685
SELECT col0 + - col2 / col2 col0 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT + 58 * - 29 FROM tab1, tab2 AS cor0
----
9 values hashing to cae2c1842b88f7fe856aa999222b20d9
query I rowsort
SELECT 44 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 col2 FROM tab0 cor0
----
26
26
26
query I rowsort
SELECT DISTINCT + 63 AS col1 FROM tab2 AS cor0
----
63
query I rowsort
SELECT - + col0 + col1 * - 19 AS col0 FROM tab1 AS cor0
----
-254
-327
-497
onlyif mysql # use DIV operator for integer division
query I rowsort label-8691
SELECT - col1 DIV - col0 + col2 * col2 * - col0 FROM tab2 AS cor0
----
-114076
-5099
-52728
skipif mysql # not compatible
query I rowsort label-8691
SELECT - col1 / - col0 + col2 * col2 * - col0 FROM tab2 AS cor0
----
-114076
-5099
-52728
query I rowsort
SELECT DISTINCT - - col0 * + col2 * + cor0.col2 + col0 FROM tab0 AS cor0
----
26160
598525
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8693
SELECT + col1 * + col1 + 18 * - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8693
SELECT + col1 * + col1 + 18 * - col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + + ( 61 ) * col0 col1 FROM tab0 AS cor0
----
1440
2100
5340
onlyif mysql # use DIV operator for integer division
query I rowsort label-8695
SELECT ALL cor0.col1 + col2 DIV + ( + col0 ) + + col0 AS col0 FROM tab1 cor0
----
47
74
94
skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL cor0.col1 + col2 / + ( + col0 ) + + col0 AS col0 FROM tab1 cor0
----
47
74
94
query I rowsort
SELECT ALL + + col0 * col0 * + col2 FROM tab1 AS cor0
----
233472
486
614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + 45 - - cor0.col0 col0 FROM tab1 AS cor0
----
1173
514
665
query I rowsort
SELECT - tab0.col0 * - col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT + col2 * - col1 - 22 AS col1 FROM tab2
----
-1556
-668
-859
query I rowsort
SELECT ( + col0 * + col0 ) + 88 FROM tab2
----
137
6172
6329
query I rowsort
SELECT ALL - col0 - tab1.col2 FROM tab1
----
-121
-176
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - col0 col2 FROM tab0
----
-178
-48
-70
query I rowsort
SELECT ALL - 69 * - col1 AS col1 FROM tab0
----
5934
6279
6693
query I rowsort
SELECT - col2 * col2 * tab0.col1 AS col1 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT 80 AS col0 FROM tab2
----
80
80
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8706
SELECT - CAST( 53 AS SIGNED ) + col1 * - col1 FROM tab2 AS cor0
----
-1014
-342
-3534
skipif mysql # not compatible
query I rowsort label-8706
SELECT - CAST ( 53 AS INTEGER ) + col1 * - col1 FROM tab2 AS cor0
----
-1014
-342
-3534
query I rowsort
SELECT - - cor0.col0 * + col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - 71 * - col2 AS col1 FROM tab1 AS cor0
----
3834
4047
6816
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab0 cor0, tab0 cor1
----
972 values hashing to 3406497351e4789c89a295ee9b64b201
query I rowsort
SELECT - col0 * + col0 + + 40 * + tab2.col2 AS col2 FROM tab2
----
-4721
-5044
1031
query I rowsort
SELECT DISTINCT + col0 * - col1 * + col2 FROM tab0
----
-3395
-664118
-68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - tab1.col1 + - col1 ) * 11 col2 FROM tab1
----
-220
-286
-572
query I rowsort
SELECT DISTINCT - tab1.col0 * col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ( col1 + + col2 ) AS col1 FROM tab2
----
55
58
85
query I rowsort
SELECT 10 * - col2 FROM tab2 AS cor0
----
-260
-270
-380
onlyif mysql # use DIV operator for integer division
query I rowsort label-8716
SELECT 18 DIV col0 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-8716
SELECT 18 / col0 FROM tab2 AS cor0
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 * - 16 + + 89 * cor1.col2 col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
9 values hashing to 0ba3e9afe409041a4f0a016b5cbb6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-8718
SELECT - ( col1 ) DIV + col1 col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8718
SELECT - ( col1 ) / + col1 col1 FROM tab2 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8719
SELECT DISTINCT + col1 * CAST( - ( + col1 ) AS SIGNED ) DIV + col0 AS col0 FROM tab2 cor0
----
-137
-3
-44
skipif mysql # not compatible
query I rowsort label-8719
SELECT DISTINCT + col1 * CAST ( - ( + col1 ) AS INTEGER ) / + col0 AS col0 FROM tab2 cor0
----
-137
-3
-44
skipif mysql # not compatible
query I rowsort
SELECT - col0 * + CAST ( + col1 AS REAL ) FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8721
SELECT - - col0 DIV - col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8721
SELECT - - col0 / - col2 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL col0 + - col1 * col1 AS col1 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT - col2 * col2 * 0 AS col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8724
SELECT ALL + col1 * - col1 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL + col1 * - col1 / cor0.col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - cor0.col2 * - col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + col2 + - ( col2 ) AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 + + col0 * - col2 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT 82 * col1 AS col0 FROM tab1
----
1066
2132
820
query I rowsort
SELECT - tab0.col0 - + col0 * - 85 FROM tab0
----
2016
2940
7476
query I rowsort
SELECT 92 * - col1 AS col2 FROM tab2
----
-1564
-2852
-5428
onlyif mysql # use DIV operator for integer division
query I rowsort label-8731
SELECT DISTINCT 77 DIV + col0 FROM tab2
----
0
11
skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT 77 / + col0 FROM tab2
----
0
11
query I rowsort
SELECT col1 + - 69 FROM tab1
----
-43
-56
-59
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 95920403df268a272c4e933cd0bbe0be
query I rowsort
SELECT ALL col1 * tab0.col2 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT + col0 - col0 * + 9 AS col2 FROM tab1
----
-24
-512
-640
query I rowsort
SELECT - col1 * - col0 + 81 AS col1 FROM tab2 AS cor0
----
1424
298
4683
onlyif mysql # use DIV operator for integer division
query I rowsort label-8737
SELECT - - col2 DIV col1 FROM tab2 cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-8737
SELECT - - col2 / col1 FROM tab2 cor0
----
0
0
2
query I rowsort
SELECT DISTINCT - cor0.col2 + col2 * ( - cor0.col0 * cor0.col2 + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-113468
-4293
-51220
query I rowsort
SELECT ALL col1 * col2 * col2 AS col1 FROM tab1 cor0
----
119808
32490
75816
query I rowsort
SELECT tab0.col1 * + cor0.col2 AS col0 FROM tab0, tab2 AS cor0, tab2, tab2 cor1
----
81 values hashing to c3f564963c20aff92bd0f88b9f3e9e2a
query I rowsort
SELECT DISTINCT 73 + col2 AS col1 FROM tab0 AS cor0
----
106
155
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-8742
SELECT + col0 DIV 1 AS col2 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-8742
SELECT + col0 / 1 AS col2 FROM tab1
----
3
64
80
query IIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1 cor1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242
query I rowsort
SELECT ALL 92 - - tab0.col1 AS col1 FROM tab0
----
178
183
189
query I rowsort
SELECT - + ( col1 ) + cor0.col2 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT - 40 AS col2 FROM tab0, tab2 AS cor0
----
-40
onlyif mysql # use DIV operator for integer division
query I rowsort label-8747
SELECT ALL - tab1.col2 DIV tab1.col2 + 39 + + col2 DIV - tab1.col2 AS col0 FROM tab1
----
37
37
37
skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL - tab1.col2 / tab1.col2 + 39 + + col2 / - tab1.col2 AS col0 FROM tab1
----
37
37
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8748
SELECT ALL col2 + tab1.col1 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL col2 + tab1.col1 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col2 + - 65 col1 FROM tab0
----
-163
-184
-238
query I rowsort
SELECT DISTINCT - + col0 + - col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8751
SELECT ALL + col1 * col2 + - CAST( + col2 AS SIGNED ) * - col2 + - col2 FROM tab0 AS cor0
----
14104
3894
97
skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL + col1 * col2 + - CAST ( + col2 AS INTEGER ) * - col2 + - col2 FROM tab0 AS cor0
----
14104
3894
97
query I rowsort
SELECT + 3 + col0 FROM tab0 AS cor0
----
27
38
92
query I rowsort
SELECT ALL - + col1 * - col2 + 68 AS col2 FROM tab0 cor0
----
165
2906
7530
query I rowsort
SELECT DISTINCT - - 30 + col0 FROM tab0 AS cor0
----
119
54
65
query I rowsort
SELECT + col1 * cor0.col2 + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT 96 * - cor0.col2 + - cor0.col2 FROM tab1 cor0
----
-5238
-5529
-9312
query I rowsort
SELECT - 23 * tab0.col1 AS col1 FROM tab0
----
-1978
-2093
-2231
query I rowsort
SELECT DISTINCT col1 * col1 - col1 * cor0.col2 AS col2 FROM tab2 cor0
----
-357
124
1947
onlyif mysql # use DIV operator for integer division
query I rowsort label-8759
SELECT ALL - cor0.col1 + + cor0.col2 DIV cor0.col1 FROM tab2 AS cor0
----
-15
-31
-59
skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL - cor0.col1 + + cor0.col2 / cor0.col1 FROM tab2 AS cor0
----
-15
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-8760
SELECT 87 DIV col0 + + col1 DIV + col1 AS col0 FROM tab0 AS cor0
----
1
3
4
skipif mysql # not compatible
query I rowsort label-8760
SELECT 87 / col0 + + col1 / + col1 AS col0 FROM tab0 AS cor0
----
1
3
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - col2 * col0 + cor0.col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT + col2 - col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT 81 * col2 AS col0 FROM tab2 cor0
----
2106
2187
3078
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col0 + col1 * - col0 col1 FROM tab1 cor0
----
-4736
-7440
-87
query I rowsort
SELECT DISTINCT - - col1 * + col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL - col0 + + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8768
SELECT DISTINCT + col0 DIV col1 AS col2 FROM tab1
----
0
6
skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT + col0 / col1 AS col2 FROM tab1
----
0
6
query I rowsort
SELECT + col2 * col2 * cor0.col2 + - col0 AS col2 FROM tab1 AS cor0
----
157461
185129
884656
query I rowsort
SELECT - col1 * - col1 + + col2 AS col0 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT ALL + cor0.col1 * col0 + col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 col1 FROM tab0 AS cor0
----
69
69
69
query I rowsort
SELECT DISTINCT - + 0 * 4 + col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - ( + col0 ) + col2 * col2 AS col2 FROM tab1
----
2913
3185
9136
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8775
SELECT CAST( + col0 AS SIGNED ) AS col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8775
SELECT CAST ( + col0 AS INTEGER ) AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT - ( + ( + col1 ) ) + + col2 - + cor0.col0 FROM tab2 AS cor0
----
-11
-111
-58
query I rowsort
SELECT ALL 51 * ( col1 ) AS col1 FROM tab1 AS cor0
----
1326
510
663
query I rowsort
SELECT DISTINCT + col2 + + col0 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL 64 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT ALL + + cor0.col1 * 89 AS col1 FROM tab2 AS cor0
----
1513
2759
5251
query I rowsort
SELECT + ( 64 ) AS col0 FROM tab1 AS cor0
----
64
64
64
query I rowsort
SELECT DISTINCT col2 * col0 + - col0 * col1 AS col1 FROM tab2 AS cor0
----
-2574
-28
1659
query I rowsort
SELECT ALL - ( 53 ) * col1 AS col2 FROM tab0
----
-4558
-4823
-5141
query I rowsort
SELECT DISTINCT col0 + col1 * col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT + + col0 * col0 - col0 AS col1 FROM tab0 cor0
----
1190
552
7832
query I rowsort
SELECT ALL + + 50 AS col2 FROM tab2 cor0
----
50
50
50
query I rowsort
SELECT DISTINCT - - col2 + col2 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1056
-6642
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 8 - + col0 col1 FROM tab1 AS cor0
----
-56
-72
5
query I rowsort
SELECT + col1 * - col0 + - col1 AS col0 FROM tab2 AS cor0
----
-1360
-248
-4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 * + col0 col2 FROM tab2 cor0
----
-679
-7566
-7663
query I rowsort
SELECT + 73 + ( + col1 * - col2 + col0 ) FROM tab2
----
-1383
-494
-757
query I rowsort
SELECT - 75 FROM tab1, tab2 cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547
query I rowsort
SELECT + tab0.col1 + col1 * col1 * col2 FROM tab0
----
244154
679133
9506
query I rowsort
SELECT - ( + col2 ) * col1 + - col1 * col2 AS col2 FROM tab2
----
-1292
-1674
-3068
query I rowsort
SELECT col1 - col0 * col2 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT - tab1.col2 * + col0 * col2 AS col2 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT cor1.col0 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL tab2.col0 * 92 FROM tab2
----
644
7176
7268
query I rowsort
SELECT + col0 + - ( col1 + - col0 ) * ( - col1 ) AS col1 FROM tab1 AS cor0
----
-476
-791
601
query I rowsort
SELECT + 34 + + 64 FROM tab1 AS cor0
----
98
98
98
query I rowsort
SELECT + col2 * col1 + cor0.col1 * 35 + - col1 AS col0 FROM tab2 AS cor0
----
1224
1891
3540
query I rowsort
SELECT 42 * tab2.col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 71f2f521d323e7f3e1cc806cf72b0d96
query I rowsort
SELECT + 66 * col0 + col0 * + tab0.col0 FROM tab0
----
13795
2160
3535
query I rowsort
SELECT ALL col0 - cor0.col1 * - col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT + - ( - cor0.col2 ) * cor0.col1 + - col2 FROM tab1 cor0
----
1152
1350
513
query I rowsort
SELECT DISTINCT - - cor0.col1 * + col2 - + ( 38 ) FROM tab2 AS cor0
----
1496
608
799
query I rowsort
SELECT 88 AS col0 FROM tab0
----
88
88
88
query I rowsort
SELECT ALL + - col0 * 60 FROM tab1 cor0
----
-180
-3840
-4800
query I rowsort
SELECT + col2 * 86 AS col2 FROM tab0 AS cor0
----
2838
7052
86
query I rowsort
SELECT DISTINCT - col2 + 12 AS col2 FROM tab1 AS cor0
----
-42
-45
-84
query I rowsort
SELECT col1 * col0 * col0 + col2 FROM tab0
----
118826
49569
720893
query I rowsort
SELECT DISTINCT + 86 * + cor0.col1 FROM tab0, tab2 AS cor0
----
1462
2666
5074
query I rowsort
SELECT - cor0.col0 * + cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col2 * 32 + col1 FROM tab0 AS cor0
----
1142
129
2715
query I rowsort
SELECT ALL col1 * - col1 * + col1 + ( + col0 ) FROM tab0 AS cor0
----
-636032
-753482
-912638
query I rowsort
SELECT - 98 * - col1 AS col1 FROM tab1 AS cor0
----
1274
2548
980
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8817
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8817
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT col1 * + 0 + col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL cor0.col0 + + col1 + + col0 FROM tab1 cor0
----
138
173
32
query I rowsort
SELECT cor0.col1 * 44 + col2 AS col1 FROM tab0 cor0
----
3817
4086
4269
query I rowsort
SELECT - - 9 + col0 - col1 * + 14 AS col0 FROM tab0 AS cor0
----
-1171
-1176
-1314
query I rowsort
SELECT ALL - col0 * - tab1.col0 AS col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT DISTINCT + ( + col1 ) - col2 FROM tab0 AS cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - 16 + + col1 col1 FROM tab1 AS cor0
----
170
221
442
query I rowsort
SELECT + 95 FROM tab2 cor0
----
95
95
95
query I rowsort
SELECT DISTINCT + 26 * + 78 AS col0 FROM tab2 AS cor0
----
2028
query I rowsort
SELECT + 59 AS col0 FROM tab2 cor0
----
59
59
59
query I rowsort
SELECT + 84 * col2 AS col2 FROM tab2 cor0
----
2184
2268
3192
query I rowsort
SELECT + + cor0.col1 * - col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - + col0 * cor0.col1 + + ( - col1 + col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT tab0.col1 + 13 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 0fc0b8c6cec91380bebfb6faf7664597
query I rowsort
SELECT + col1 + - col0 * - 59 FROM tab2 cor0
----
444
4661
4678
query I rowsort
SELECT ALL - 21 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757
query I rowsort
SELECT 23 * tab0.col0 AS col0 FROM tab0
----
2047
552
805
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8835
SELECT ALL + ( ( col2 ) + - CAST( NULL AS SIGNED ) ) / ( + tab2.col1 * + col0 ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL + ( ( col2 ) + - CAST ( NULL AS INTEGER ) ) / ( + tab2.col1 * + col0 ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 34 * cor0.col0 FROM tab1 AS cor0
----
102
2176
2720
query I rowsort
SELECT - + col2 * col2 + 42 AS col0 FROM tab2 AS cor0
----
-1402
-634
-687
query I rowsort
SELECT cor0.col1 + + cor0.col2 * ( + 21 ) FROM tab1 AS cor0
----
1160
1207
2029
query I rowsort
SELECT - tab2.col2 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT DISTINCT + col1 * 50 + + 57 + + col0 * col1 FROM tab2 cor0
----
1824
2250
7609
query I rowsort
SELECT ALL cor0.col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 * 17 + + col0 * + cor0.col0 col2 FROM tab0 AS cor0
----
-116145
-12888
630
query I rowsort
SELECT ALL + col2 * + col0 - + 94 FROM tab0 AS cor0
----
-59
698
7204
query I rowsort
SELECT + 9 + col0 FROM tab2 AS cor0
----
16
87
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8845
SELECT DISTINCT 94 - col2 * - CAST( NULL AS SIGNED ) / 85 col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT 94 - col2 * - CAST ( NULL AS INTEGER ) / 85 col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - + cor0.col1 * col0 - col1 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-8847
SELECT ALL + col1 DIV col1 + + col0 * col1 FROM tab1 AS cor0
----
1041
641
79
skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL + col1 / col1 + + col0 * col1 FROM tab1 AS cor0
----
1041
641
79
query I rowsort
SELECT DISTINCT + - 44 AS col1 FROM tab0 AS cor0
----
-44
query I rowsort
SELECT - col1 * - cor0.col2 + col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT + cor0.col0 + + col2 * - 5 AS col2 FROM tab2 AS cor0
----
-111
-128
-52
query I rowsort
SELECT DISTINCT - - col0 + 0 * - col2 FROM tab1 cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8852
SELECT ALL col0 * CAST( NULL AS SIGNED ) + col0 * - col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8852
SELECT ALL col0 * CAST ( NULL AS INTEGER ) + col0 * - col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * - 84 + - ( col2 ) FROM tab1 AS cor0
----
-1188
-2238
-897
query I rowsort
SELECT ALL + - col1 * - col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT ALL + col0 + + col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT ALL + - col2 * + 64 - - ( - col0 ) FROM tab1 AS cor0
----
-3459
-3712
-6224
query I rowsort
SELECT ALL - col0 + + ( col0 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * + col2 + - col1 * col2 * - col1 FROM tab1 cor0
----
2052
36342
8544
query I rowsort
SELECT + col2 + 38 FROM tab0 cor0
----
120
39
71
query I rowsort
SELECT + col0 * - col2 + + ( + col1 ) + - col1 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT col2 * - col0 * - col2 + + col0 FROM tab0
----
26160
598525
70
query I rowsort
SELECT + 1 - col0 AS col1 FROM tab0
----
-23
-34
-88
query I rowsort
SELECT DISTINCT - 45 + - col2 * cor0.col1 FROM tab2 AS cor0
----
-1579
-691
-882
query I rowsort
SELECT DISTINCT - col2 * col1 + col0 * cor0.col2 - - ( col2 ) * col2 FROM tab2 AS cor0
----
1170
3800
81
query I rowsort
SELECT DISTINCT - 48 + 82 AS col1 FROM tab0 AS cor0
----
34
query I rowsort
SELECT ALL - + col2 - + cor0.col1 AS col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT - - 98 * col1 FROM tab1 cor0
----
1274
2548
980
query I rowsort
SELECT ALL + + 73 + cor0.col1 FROM tab0 cor0
----
159
164
170
query I rowsort
SELECT ALL col0 * - cor0.col1 - col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT DISTINCT - 55 * ( - cor0.col2 ) + + col0 AS col0 FROM tab2 AS cor0
----
1492
1508
2169
query I rowsort
SELECT ALL 60 * - col0 FROM tab2 AS cor0
----
-420
-4680
-4740
query I rowsort
SELECT DISTINCT - ( + ( col1 ) ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + cor0.col0 * + 30 FROM tab0 AS cor0
----
1050
2670
720
query I rowsort
SELECT - 69 + col1 FROM tab2 AS cor0
----
-10
-38
-52
query I rowsort
SELECT + - 21 FROM tab0 cor0
----
-21
-21
-21
query I rowsort
SELECT - ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - 64 * cor0.col0 + cor0.col1 FROM tab0 AS cor0
----
-1450
-2143
-5605
query I rowsort
SELECT ALL 54 + col2 * col1 AS col0 FROM tab2 AS cor0
----
1588
700
891
onlyif mysql # use DIV operator for integer division
query I rowsort label-8879
SELECT ALL col0 DIV - 83 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL col0 / - 83 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ( cor0.col1 ) + + col0 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-8881
SELECT DISTINCT - col2 DIV col0 AS col2 FROM tab0 cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-8881
SELECT DISTINCT - col2 / col0 AS col2 FROM tab0 cor0
----
-1
0
query I rowsort
SELECT DISTINCT - col2 + col2 * - col2 * 17 FROM tab0 AS cor0
----
-114390
-18
-18546
query I rowsort
SELECT - 6 * col2 FROM tab2 AS cor0
----
-156
-162
-228
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0 CROSS JOIN tab0, tab0 cor1, tab0 AS cor2
----
3645 values hashing to 181d902c42955a43a374f13a73d8b0a1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8885
SELECT col1 DIV + col2 - ( 17 + col2 ) FROM tab0 AS cor0
----
-48
-98
79
skipif mysql # not compatible
query I rowsort label-8885
SELECT col1 / + col2 - ( 17 + col2 ) FROM tab0 AS cor0
----
-48
-98
79
query I rowsort
SELECT DISTINCT + 67 * - col1 FROM tab2
----
-1139
-2077
-3953
query I rowsort
SELECT 68 AS col2 FROM tab0 AS cor0
----
68
68
68
query I rowsort
SELECT 10 * col0 AS col0 FROM tab2 AS cor0
----
70
780
790
onlyif mysql # use DIV operator for integer division
query I rowsort label-8889
SELECT + ( - col0 ) DIV 69 AS col1 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8889
SELECT + ( - col0 ) / 69 AS col1 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT - 17 * col0 FROM tab1 cor0
----
-1088
-1360
-51
query I rowsort
SELECT - col0 + - ( - tab1.col1 ) AS col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT + col0 * ( + col2 ) + col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT ALL col2 * ( col1 ) AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT ( ( col1 ) ) * + 81 FROM tab0
----
6966
7371
7857
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8895
SELECT col0 * col2 + + CAST( - 3 AS SIGNED ) FROM tab1
----
159
3645
7677
skipif mysql # not compatible
query I rowsort label-8895
SELECT col0 * col2 + + CAST ( - 3 AS INTEGER ) FROM tab1
----
159
3645
7677
query I rowsort
SELECT DISTINCT - ( - col2 ) + tab0.col1 AS col0 FROM tab0
----
119
173
98
query I rowsort
SELECT - - 13 * col1 FROM tab1 AS cor0
----
130
169
338
query I rowsort
SELECT DISTINCT - + 26 + - col1 AS col1 FROM tab2 AS cor0
----
-43
-57
-85
query I rowsort
SELECT DISTINCT + 66 * - col0 FROM tab0 cor0
----
-1584
-2310
-5874
query I rowsort
SELECT ALL + 67 * + col1 FROM tab1 AS cor0
----
1742
670
871
query I rowsort
SELECT DISTINCT + cor0.col0 + col0 * - 70 AS col1 FROM tab2 AS cor0
----
-483
-5382
-5451
query I rowsort
SELECT col0 + + col2 * col2 FROM tab2 AS cor0
----
1523
736
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-8903
SELECT ALL 21 DIV + col0 AS col1 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL 21 / + col0 AS col1 FROM tab2 AS cor0
----
0
0
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-8904
SELECT DISTINCT - col2 DIV col1 AS col1 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT - col2 / col1 AS col1 FROM tab0 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8905
SELECT ALL - col2 DIV - 58 AS col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL - col2 / - 58 AS col0 FROM tab0
----
0
0
1
query I rowsort
SELECT + col2 + 10 FROM tab2
----
36
37
48
query I rowsort
SELECT ( 28 ) FROM tab2, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
query I rowsort
SELECT cor0.col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT + - col0 + col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - cor0.col1 * + col1 + col0 AS col0 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8912
SELECT - - col1 + - col0 DIV col0 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-8912
SELECT - - col1 + - col0 / col0 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT + - ( cor0.col2 ) + col1 * + ( 1 ) AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + 81 * + 92 AS col0 FROM tab2 AS cor0
----
7452
7452
7452
query I rowsort
SELECT ALL 56 * cor0.col2 FROM tab0 AS cor0
----
1848
4592
56
query I rowsort
SELECT ALL + 46 FROM tab1, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8917
SELECT ALL CAST( - col1 AS SIGNED ) FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL CAST ( - col1 AS INTEGER ) FROM tab1
----
-10
-13
-26
query I rowsort
SELECT - - ( + 39 ) FROM tab1 AS cor0
----
39
39
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8919
SELECT ALL + CAST( NULL AS DECIMAL ) / + col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8919
SELECT ALL + CAST ( NULL AS REAL ) / + col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 79 AS col1 FROM tab2 AS cor0
----
79
79
79
query I rowsort
SELECT DISTINCT - + 58 FROM tab2 AS cor0
----
-58
query I rowsort
SELECT cor0.col1 * 74 AS col1 FROM tab0 AS cor0
----
6364
6734
7178
query I rowsort
SELECT - 4 * 60 FROM tab0, tab0 AS cor0
----
9 values hashing to 0610af4582ef9667f54c9da2a68959ef
query I rowsort
SELECT + col2 + 7 FROM tab1
----
103
61
64
query I rowsort
SELECT + col2 * 10 + + col1 AS col0 FROM tab0 AS cor0
----
107
416
911
query I rowsort
SELECT ALL + ( + 93 ) * - cor0.col0 + + ( - col0 ) * + cor0.col0 FROM tab0 AS cor0
----
-16198
-2808
-4480
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT ( + 91 ) AS col1 FROM tab0 AS cor0
----
91
91
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3
query I rowsort
SELECT ALL - ( 82 ) FROM tab0, tab2 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c
query I rowsort
SELECT - col0 + + col0 * col0 FROM tab1 cor0
----
4032
6
6320
query I rowsort
SELECT - 87 FROM tab0, tab2 cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 731855201ad1d4d2d2747a1d26047554
query I rowsort
SELECT DISTINCT 79 FROM tab0, tab2 cor0
----
79
query I rowsort
SELECT ( col2 + col2 ) AS col0 FROM tab2
----
52
54
76
query I rowsort
SELECT col0 * + tab0.col1 + col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT - 15 AS col2 FROM tab2
----
-15
query I rowsort
SELECT DISTINCT - 89 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-89
query I rowsort
SELECT DISTINCT - col1 * - col0 * 25 FROM tab1
----
16000
1950
26000
query I rowsort
SELECT + ( - col2 ) * col1 + 88 AS col0 FROM tab0
----
-2750
-7374
-9
query I rowsort
SELECT + 29 * cor0.col1 - 9 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to ff82e88122c267c7253d2d73f8bc22bc
query I rowsort
SELECT ALL tab2.col0 + - col2 + - col1 FROM tab2
----
-51
-7
24
query I rowsort
SELECT + col1 * col1 + + 47 AS col2 FROM tab1
----
147
216
723
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8943
SELECT col1 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8943
SELECT col1 + - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + + col2 * - 10 AS col1 FROM tab2 AS cor0
----
-182
-263
-301
query I rowsort
SELECT - - col0 * col1 + + 55 FROM tab1 AS cor0
----
1095
133
695
onlyif mysql # use DIV operator for integer division
query I rowsort label-8946
SELECT - col1 + - 81 DIV 3 AS col1 FROM tab1 AS cor0
----
-37
-40
-53
skipif mysql # not compatible
query I rowsort label-8946
SELECT - col1 + - 81 / 3 AS col1 FROM tab1 AS cor0
----
-37
-40
-53
query I rowsort
SELECT ( tab1.col2 ) * tab1.col1 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-8948
SELECT DISTINCT 91 - ( - col1 ) DIV col0 AS col0 FROM tab2
----
91
95
skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT 91 - ( - col1 ) / col0 AS col0 FROM tab2
----
91
95
query I rowsort
SELECT DISTINCT 34 - col1 * - col2 FROM tab2
----
1568
680
871
query I rowsort
SELECT DISTINCT 93 * + col2 FROM tab0
----
3069
7626
93
query I rowsort
SELECT + - 57 + cor0.col2 FROM tab1 cor0
----
-3
0
39
query I rowsort
SELECT + ( cor0.col0 ) * - col1 + + 15 FROM tab0 AS cor0
----
-2049
-3380
-8084
query I rowsort
SELECT tab0.col2 - + col1 AS col1 FROM tab0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - 64 * col0 col2 FROM tab0
----
-1560
-2275
-5785
query I rowsort
SELECT 4 * col1 + tab1.col0 + - col1 * 6 AS col2 FROM tab1
----
-49
44
54
query I rowsort
SELECT - + 55 * col0 AS col0 FROM tab1 AS cor0
----
-165
-3520
-4400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 col1 FROM tab1 cor0
----
-108
-114
-192
query I rowsort
SELECT - cor0.col0 * - cor0.col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - + ( col0 ) + col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( col2 ) + col2 * col1 AS col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT ALL + - col0 * + col0 AS col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT + + col0 * col2 + col0 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT - - col2 * - col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + - cor0.col0 + col0 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + 36 FROM tab1 AS cor0
----
-36
-36
-36
query I rowsort
SELECT ALL + ( cor0.col2 ) FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT + - 32 * col1 + col2 * col1 FROM tab2 AS cor0
----
-155
-354
102
query I rowsort
SELECT col1 + col2 * - col2 FROM tab0
----
-1003
-6633
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 + + ( - col2 ) col0 FROM tab1
----
-121
-176
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 5 col0 FROM tab1
----
-2
59
75
query I rowsort
SELECT DISTINCT col2 - + 87 AS col2 FROM tab1
----
-30
-33
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8972
SELECT col0 + + CAST( NULL AS SIGNED ) * - col2 - - col1 * 1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8972
SELECT col0 + + CAST ( NULL AS INTEGER ) * - col2 - - col1 * 1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8973
SELECT ALL + col2 + CAST( - col0 AS SIGNED ) * col0 - 83 AS col2 FROM tab1
----
-38
-4122
-6387
skipif mysql # not compatible
query I rowsort label-8973
SELECT ALL + col2 + CAST ( - col0 AS INTEGER ) * col0 - 83 AS col2 FROM tab1
----
-38
-4122
-6387
query I rowsort
SELECT - 71 AS col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a
query I rowsort
SELECT + col0 + 4 * - tab0.col1 AS col1 FROM tab0
----
-275
-320
-353
query I rowsort
SELECT ALL - - 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-8977
SELECT ALL CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + 45 FROM tab1 AS cor0
----
-45
query I rowsort
SELECT - + col1 + - col2 * cor0.col2 * - col1 FROM tab1 AS cor0
----
119795
32480
75790
query I rowsort
SELECT DISTINCT - - col1 + - 1 * + cor0.col1 * col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL 6 + + col1 AS col1 FROM tab1 AS cor0
----
16
19
32
query I rowsort
SELECT ALL 42 AS col1 FROM tab2 AS cor0
----
42
42
42
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8983
SELECT ALL - cor0.col2 + + col0 * col0 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL - cor0.col2 + + col0 * col0 + - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + - 31 * - col1 FROM tab0 AS cor0
----
2580
2730
2910
query I rowsort
SELECT DISTINCT ( + col2 ) * + col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + - cor0.col1 + col2 + + col1 AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + 78 * + col1 * col0 + col1 AS col0 FROM tab1 AS cor0
----
49930
6110
81133
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT col1 - CAST ( 91 AS REAL ) col0 FROM tab1
----
-65
-78
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 col1 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-8990
SELECT DISTINCT + cor0.col2 * - col2 DIV col2 + - col1 + 51 AS col0 FROM tab1 AS cor0
----
-16
-29
-58
skipif mysql # not compatible
query I rowsort label-8990
SELECT DISTINCT + cor0.col2 * - col2 / col2 + - col1 + 51 AS col0 FROM tab1 AS cor0
----
-16
-29
-58
query I rowsort
SELECT - + 23 * + col2 - + cor0.col0 FROM tab1 AS cor0
----
-1245
-1375
-2288
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col1 + - 52 col1 FROM tab0 AS cor0
----
34
39
45
query I rowsort
SELECT ( - col1 ) + - col1 FROM tab2 cor0
----
-118
-34
-62
query I rowsort
SELECT ALL 86 * col0 + - ( col1 ) AS col2 FROM tab0 AS cor0
----
1978
2913
7563
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - col0 ) col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - 93 * col1 FROM tab2 AS cor0
----
-1581
-2883
-5487
query I rowsort
SELECT - 58 * cor0.col2 FROM tab0 AS cor0
----
-1914
-4756
-58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - cor0.col2 col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8999
SELECT DISTINCT - + 96 DIV + col1 AS col0 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-8999
SELECT DISTINCT - + 96 / + col1 AS col0 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) + col1 AS col2 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT 12 - col0 FROM tab0 AS cor0
----
-12
-23
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-9002
SELECT ALL + - col1 DIV + cor0.col0 AS col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL + - col1 / + cor0.col0 AS col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT ALL - cor0.col0 * + col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9004
SELECT DISTINCT - - col1 DIV + col2 + col2 * cor0.col1 AS col2 FROM tab0 cor0
----
194
2840
7463
skipif mysql # not compatible
query I rowsort label-9004
SELECT DISTINCT - - col1 / + col2 + col2 * cor0.col1 AS col2 FROM tab0 cor0
----
194
2840
7463
query I rowsort
SELECT DISTINCT col1 * - 43 FROM tab1 cor0
----
-1118
-430
-559
query I rowsort
SELECT col0 * ( - col1 ) + + col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT + col1 + - col2 * + 85 AS col2 FROM tab2 AS cor0
----
-2151
-2264
-3213
query I rowsort
SELECT ALL col2 - + 26 * ( col2 * col2 ) AS col1 FROM tab2 AS cor0
----
-17550
-18927
-37506
query I rowsort
SELECT - col2 + + 68 * col1 AS col1 FROM tab1 AS cor0
----
1714
623
788
query I rowsort
SELECT + col2 * 92 * - 2 AS col1 FROM tab2 cor0
----
-4784
-4968
-6992
query I rowsort
SELECT DISTINCT + col2 * col0 + - col0 AS col0 FROM tab1 cor0
----
159
3584
7600
query I rowsort
SELECT DISTINCT + col2 + + 82 * col0 AS col2 FROM tab2 AS cor0
----
601
6422
6516
query I rowsort
SELECT DISTINCT - + col1 * col1 + col0 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT DISTINCT - + col0 + col2 * + 10 + col2 AS col2 FROM tab0 AS cor0
----
-24
339
813
query I rowsort
SELECT ALL + + col2 * 59 - - 70 FROM tab0 AS cor0
----
129
2017
4908
query I rowsort
SELECT ALL + 73 AS col1 FROM tab2
----
73
73
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-9017
SELECT ALL tab0.col0 DIV + col2 AS col0 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL tab0.col0 / + col2 AS col0 FROM tab0
----
0
1
35
query I rowsort
SELECT - col0 + + 5 FROM tab1 AS cor0
----
-59
-75
2
query I rowsort
SELECT - - ( 26 ) FROM tab1, tab0 cor0, tab0, tab0 AS cor1
----
81 values hashing to 8b6a624eb92fb019d9664318e519f062
query I rowsort
SELECT - - 32 FROM tab0 AS cor0
----
32
32
32
query I rowsort
SELECT + col1 + col2 * col0 * col2 AS col1 FROM tab2 AS cor0
----
114093
5134
52787
query I rowsort
SELECT ( + col1 ) + col0 FROM tab0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-9023
SELECT DISTINCT col0 + - col2 DIV tab0.col1 AS col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT col0 + - col2 / tab0.col1 AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT 93 AS col2 FROM tab2, tab0 AS cor0
----
93
query I rowsort
SELECT DISTINCT 98 + - tab2.col0 * + col2 AS col0 FROM tab2
----
-1930
-2904
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-9026
SELECT ALL col0 DIV - 87 + + col2 AS col0 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL col0 / - 87 + + col2 AS col0 FROM tab1
----
54
57
96
query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2, tab0 AS cor3
----
13122 values hashing to e5ff5e70f40dcfa0575614b5269fe9ea
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9028
SELECT + CAST( NULL AS SIGNED ) / 84 AS col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-9028
SELECT + CAST ( NULL AS INTEGER ) / 84 AS col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT + col1 * tab0.col2 AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT col0 * - tab1.col2 AS col2 FROM tab1
----
-162
-3648
-7680
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----
query I rowsort
SELECT ALL 90 + col1 * ( col0 ) AS col2 FROM tab2 AS cor0
----
1433
307
4692
query I rowsort
SELECT - cor1.col0 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to 68438270ef4dcbfd48dcdbe0b98336f5
query I rowsort
SELECT DISTINCT - + col0 * col1 + col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL - ( + cor0.col1 ) AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + 55 * col1 FROM tab2 AS cor0
----
1705
3245
935
query I rowsort
SELECT + + col1 + - cor0.col1 * ( - col1 ) AS col0 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT DISTINCT col0 + col0 * col2 AS col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT - 97 * - 74 FROM tab1
----
7178
7178
7178
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col0 ) col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + 10 + cor0.col1 * col0 * col0 AS col1 FROM tab2 AS cor0
----
106107
1529
358966
onlyif mysql # use DIV operator for integer division
query I rowsort label-9044
SELECT + 30 DIV + col0 + col1 FROM tab2 AS cor0
----
17
35
59
skipif mysql # not compatible
query I rowsort label-9044
SELECT + 30 / + col0 + col1 FROM tab2 AS cor0
----
17
35
59
query I rowsort
SELECT + 80 + col0 FROM tab1 AS cor0
----
144
160
83
query I rowsort
SELECT ALL + 32 * - col0 + col0 - - col0 AS col1 FROM tab1 AS cor0
----
-1920
-2400
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9047
SELECT + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9047
SELECT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9048
SELECT + - col2 DIV - col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9048
SELECT + - col2 / - col2 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT 62 + col0 AS col1 FROM tab1 cor0
----
126
142
65
query I rowsort
SELECT - col0 + 86 AS col0 FROM tab0 AS cor0
----
-3
51
62
query I rowsort
SELECT + col1 - + col1 * + 58 FROM tab0 AS cor0
----
-4902
-5187
-5529
onlyif mysql # use DIV operator for integer division
query I rowsort label-9053
SELECT ALL + col1 + ( - col0 ) DIV + col2 + - 78 AS col0 FROM tab0 AS cor0
----
-16
12
8
skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL + col1 + ( - col0 ) / + col2 + - 78 AS col0 FROM tab0 AS cor0
----
-16
12
8
query I rowsort
SELECT - col2 - 83 AS col2 FROM tab0 AS cor0
----
-116
-165
-84
query I rowsort
SELECT + cor0.col0 * + col2 + + col0 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT ALL - cor0.col2 + + 16 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 0301fe3f29a1cf68df6a172fc56d615f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + col2 col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT tab2.col0 * tab2.col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT + col0 * - ( + 60 ) * + tab1.col2 FROM tab1
----
-218880
-460800
-9720
query I rowsort
SELECT + col1 * ( + col0 ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT - tab2.col1 * 30 * col2 AS col1 FROM tab2
----
-19380
-25110
-46020
query I rowsort
SELECT ALL + cor0.col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 * col2 col0 FROM tab2 AS cor0
----
1768
1836
2584
query I rowsort
SELECT DISTINCT - + 85 + + col0 FROM tab1 AS cor0
----
-21
-5
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 - - col0 col1 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT cor0.col1 FROM tab0, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL + + col1 * col1 FROM tab1 cor0
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 20 * col1 * col1 col2 FROM tab1 AS cor0
----
13520
2000
3380
query I rowsort
SELECT - 1 * - col0 + col1 + - col1 * - col0 AS col2 FROM tab0 AS cor0
----
2174
3527
8279
query I rowsort
SELECT + tab0.col2 + tab0.col2 AS col1 FROM tab0
----
164
2
66
query I rowsort
SELECT - 10 * - cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b37ee2ce992e8318c6634347d64c61d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 col0 FROM tab2
----
45
45
45
query I rowsort
SELECT ALL col0 + 19 FROM tab2
----
26
97
98
query I rowsort
SELECT ALL - tab0.col0 * - col1 + + tab0.col1 * col2 AS col1 FROM tab0
----
15561
3492
4902
query I rowsort
SELECT ALL + - col2 + - 41 * col2 FROM tab1 AS cor0
----
-2268
-2394
-4032
query I rowsort
SELECT ALL + col1 * - 96 + col1 FROM tab2 cor0
----
-1615
-2945
-5605
query I rowsort
SELECT ALL 76 AS col1 FROM tab1
----
76
76
76
query I rowsort
SELECT + - col0 * + col1 + col2 + + col2 AS col1 FROM tab1 AS cor0
----
-526
-848
30
query I rowsort
SELECT ALL - col1 - - 53 * + ( + col0 ) FROM tab0
----
1186
1758
4626
query I rowsort
SELECT + col1 * + col0 + + col1 + cor0.col0 AS col1 FROM tab1 AS cor0
----
107
1133
714
query I rowsort
SELECT col2 * ( 40 ) - col1 FROM tab1 AS cor0
----
2134
2270
3827
query I rowsort
SELECT ALL - + col1 * + ( 94 * col1 ) AS col0 FROM tab1 AS cor0
----
-15886
-63544
-9400
query I rowsort
SELECT + col0 * - col1 - + cor0.col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT - + cor0.col2 - col2 AS col1 FROM tab0 cor0
----
-164
-2
-66
query I rowsort
SELECT col2 + 93 + col1 FROM tab1 AS cor0
----
160
173
202
query I rowsort
SELECT - col1 + col1 + - col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - + col2 * 28 + - col0 * + cor0.col0 - - 45 AS col1 FROM tab0 AS cor0
----
-10172
-1208
-1455
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to 958533d1a7bf61199ed7c03eadf37f9a
query I rowsort
SELECT DISTINCT + 66 * col2 FROM tab0 AS cor0
----
2178
5412
66
query I rowsort
SELECT ALL cor0.col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT - col1 * tab1.col0 FROM tab1
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col2 FROM tab2
----
29
29
29
query I rowsort
SELECT + 93 + col2 AS col2 FROM tab2
----
119
120
131
onlyif mysql # use DIV operator for integer division
query I rowsort label-9094
SELECT 85 DIV + tab1.col1 + + 93 AS col1 FROM tab1
----
101
96
99
skipif mysql # not compatible
query I rowsort label-9094
SELECT 85 / + tab1.col1 + + 93 AS col1 FROM tab1
----
101
96
99
query I rowsort
SELECT col1 * + col0 * 29 FROM tab0 AS cor0
----
234871
59856
98455
query I rowsort
SELECT ALL + + cor0.col0 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
onlyif mysql # use DIV operator for integer division
query I rowsort label-9098
SELECT ALL + col2 * + col2 + + col2 DIV 81 FROM tab2 AS cor0
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL + col2 * + col2 + + col2 / 81 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT col0 + + 65 * tab2.col0 AS col0 FROM tab2
----
462
5148
5214
query I rowsort
SELECT DISTINCT col2 * ( col2 ) + col1 FROM tab0
----
1175
6815
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9101
SELECT ALL - col2 DIV - 2 + col0 * col1 AS col1 FROM tab1
----
105
1088
668
skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL - col2 / - 2 + col0 * col1 AS col1 FROM tab1
----
105
1088
668
query I rowsort
SELECT ALL - col1 * col1 + + col2 FROM tab0
----
-7363
-8199
-9408
query I rowsort
SELECT DISTINCT tab1.col0 FROM tab1, tab0 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - col2 + - col2 * col1 FROM tab0 AS cor0
----
-2871
-7544
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9105
SELECT DISTINCT - - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-9105
SELECT DISTINCT - - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + col1 * ( col2 ) AS col0 FROM tab2 cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-9107
SELECT col2 DIV 47 + - col0 DIV col2 FROM tab0
----
-35
0
0
skipif mysql # not compatible
query I rowsort label-9107
SELECT col2 / 47 + - col0 / col2 FROM tab0
----
-35
0
0
query I rowsort
SELECT + cor0.col2 + col1 * - col0 AS col1 FROM tab0 cor0
----
-2031
-3394
-8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-9109
SELECT + 99 * - col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
99
99
99
skipif mysql # not compatible
query I rowsort label-9109
SELECT + 99 * - col1 / - col1 AS col2 FROM tab2 AS cor0
----
99
99
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * cor0.col1 col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL ( - col1 ) FROM tab0 cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9112
SELECT ALL CAST( + col2 AS SIGNED ) DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9112
SELECT ALL CAST ( + col2 AS INTEGER ) / - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT + + cor0.col2 * col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-9114
SELECT DISTINCT - 92 DIV col0 FROM tab2
----
-1
-13
skipif mysql # not compatible
query I rowsort label-9114
SELECT DISTINCT - 92 / col0 FROM tab2
----
-1
-13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9115
SELECT ALL CAST( + col0 + col0 AS SIGNED ) * col1 * col1 FROM tab1
----
12800
27040
4056
skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL CAST ( + col0 + col0 AS INTEGER ) * col1 * col1 FROM tab1
----
12800
27040
4056
query I rowsort
SELECT - 84 * + tab1.col2 FROM tab1
----
-4536
-4788
-8064
onlyif mysql # use DIV operator for integer division
query I rowsort label-9117
SELECT DISTINCT + ( - col1 ) DIV tab2.col1 AS col0 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-9117
SELECT DISTINCT + ( - col1 ) / tab2.col1 AS col0 FROM tab2
----
-1
query I rowsort
SELECT 97 AS col0 FROM tab1
----
97
97
97
query I rowsort
SELECT - col1 + - col2 * - col1 FROM tab1 AS cor0
----
1235
1378
560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9120
SELECT ALL + CAST( NULL AS SIGNED ) + - col2 + - col1 * - col2 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL + CAST ( NULL AS INTEGER ) + - col2 + - col1 * - col2 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 + - ( - col2 ) + + col2 col1 FROM tab1 AS cor0
----
111
178
272
query I rowsort
SELECT ( col0 ) * cor0.col2 + + cor0.col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL - 60 FROM tab0, tab1 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f
query I rowsort
SELECT DISTINCT - + ( col2 ) + col1 AS col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL + + 26 AS col2 FROM tab1 AS cor0
----
26
26
26
query I rowsort
SELECT ALL + cor0.col1 + + ( - col1 ) * + col0 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT - - 63 FROM tab2 AS cor0
----
63
63
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-9128
SELECT DISTINCT - - ( col1 ) + col2 DIV - col0 FROM tab2 cor0
----
17
28
59
skipif mysql # not compatible
query I rowsort label-9128
SELECT DISTINCT - - ( col1 ) + col2 / - col0 FROM tab2 cor0
----
17
28
59
query I rowsort
SELECT col2 + + col0 + col1 AS col0 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT - - col0 + - col0 * + col1 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL - - col1 * col0 + col1 AS col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT - 74 AS col2 FROM tab2 AS cor0
----
-74
-74
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-9133
SELECT DISTINCT - 34 + + col2 DIV - col1 FROM tab0 AS cor0
----
-34
skipif mysql # not compatible
query I rowsort label-9133
SELECT DISTINCT - 34 + + col2 / - col1 FROM tab0 AS cor0
----
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 col0 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-9135
SELECT + cor0.col0 * 23 + - 6 DIV - col1 FROM tab1 AS cor0
----
1472
1840
69
skipif mysql # not compatible
query I rowsort label-9135
SELECT + cor0.col0 * 23 + - 6 / - col1 FROM tab1 AS cor0
----
1472
1840
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9136
SELECT ALL - + col0 * + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9136
SELECT ALL - + col0 * + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9137
SELECT col0 * CAST( NULL AS SIGNED ) + 55 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9137
SELECT col0 * CAST ( NULL AS INTEGER ) + 55 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9138
SELECT ALL - + col1 DIV + ( col1 ) + col0 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL - + col1 / + ( col1 ) + col0 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT col1 * col1 + - col2 FROM tab1 cor0
----
43
622
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9140
SELECT DISTINCT - col1 + + CAST( + 73 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
47
60
63
skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT - col1 + + CAST ( + 73 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
47
60
63
query I rowsort
SELECT col2 * 44 + - 40 AS col2 FROM tab0 AS cor0
----
1412
3568
4
query I rowsort
SELECT DISTINCT col0 + - 45 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
1509
3779
80
query I rowsort
SELECT + + col0 * 40 * col1 FROM tab1 AS cor0
----
25600
3120
41600
query I rowsort
SELECT DISTINCT + 85 AS col1 FROM tab1
----
85
query I rowsort
SELECT + tab0.col0 * - col2 - + col2 AS col0 FROM tab0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT - col0 * + 49 + col1 AS col1 FROM tab0 cor0
----
-1090
-1618
-4270
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col1 * + col1 col0 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT col1 * + 97 + + ( + col0 ) AS col2 FROM tab0 AS cor0
----
8366
8916
9444
query I rowsort
SELECT col0 * 6 AS col0 FROM tab1 AS cor0
----
18
384
480
query I rowsort
SELECT 13 * col1 + - col0 FROM tab2 AS cor0
----
142
396
689
onlyif mysql # use DIV operator for integer division
query I rowsort label-9151
SELECT - + col0 + col2 DIV + col1 FROM tab1 AS cor0
----
-1
-59
-73
skipif mysql # not compatible
query I rowsort label-9151
SELECT - + col0 + col2 / + col1 FROM tab1 AS cor0
----
-1
-59
-73
query I rowsort
SELECT ALL 41 FROM tab0, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT ALL tab1.col0 + + 68 AS col2 FROM tab1
----
132
148
71
query I rowsort
SELECT DISTINCT col0 * - col2 + - col1 FROM tab1 AS cor0
----
-188
-3658
-7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-9155
SELECT DISTINCT + cor0.col2 DIV ( col2 * col2 ) + - ( - col0 ) * - col0 FROM tab0 AS cor0
----
-1224
-576
-7921
skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT + cor0.col2 / ( col2 * col2 ) + - ( - col0 ) * - col0 FROM tab0 AS cor0
----
-1224
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 * + col2 * ( col1 ) col2 FROM tab0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9157
SELECT + col0 + - col2 DIV 34 FROM tab0 AS cor0
----
24
35
87
skipif mysql # not compatible
query I rowsort label-9157
SELECT + col0 + - col2 / 34 FROM tab0 AS cor0
----
24
35
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-9158
SELECT col0 DIV - 99 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9158
SELECT col0 / - 99 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 + ( col2 ) * col1 + col1 FROM tab2 AS cor0
----
1515
584
861
query I rowsort
SELECT DISTINCT - col2 + col0 + 0 * col0 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9161
SELECT DISTINCT + col1 * col2 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT + col1 * col2 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT + tab1.col1 * col2 AS col1 FROM tab1
----
1248
1404
570
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 cor1, tab2 AS cor2
----
972 values hashing to 591a9a93560839231c038a1e10bd240a
query I rowsort
SELECT ALL col0 + - ( col1 ) FROM tab1
----
-23
54
67
query I rowsort
SELECT 81 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT - + col0 * 29 + col0 * - cor0.col0 * + ( col1 ) AS col0 FROM tab2 AS cor0
----
-108388
-1722
-361218
query I rowsort
SELECT tab2.col1 - 30 AS col0 FROM tab2
----
-13
1
29
query I rowsort
SELECT + col0 * col0 * + col1 + - col0 * + cor0.col0 FROM tab0 AS cor0
----
117600
48960
712890
query I rowsort
SELECT cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL - - ( col2 ) * col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT 72 FROM tab0, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT DISTINCT + tab2.col1 - + col2 AS col1 FROM tab2
----
-21
33
4
query I rowsort
SELECT + + cor0.col2 + - col1 + 61 AS col1 FROM tab1 AS cor0
----
108
144
89
query I rowsort
SELECT - - col0 * + col1 + - col1 + col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - - 78 * col2 + ( - col2 + + col1 ) * ( col1 ) AS col2 FROM tab1 AS cor0
----
3484
3976
6409
query I rowsort
SELECT ALL + 93 + + col1 AS col0 FROM tab0
----
179
184
190
query I rowsort
SELECT col0 + + col2 - - col2 AS col1 FROM tab2 AS cor0
----
130
155
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-9178
SELECT - cor0.col1 + col1 DIV 9 + - col0 FROM tab2 AS cor0
----
-131
-35
-95
skipif mysql # not compatible
query I rowsort label-9178
SELECT - cor0.col1 + col1 / 9 + - col0 FROM tab2 AS cor0
----
-131
-35
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT DISTINCT - ( + 49 ) AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
-49
query I rowsort
SELECT ALL - cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + cor0.col1 ) + + col0 * col0 col0 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT ALL col0 + col1 * col1 - + col1 FROM tab2 AS cor0
----
3500
351
937
query I rowsort
SELECT - col0 * col2 + 24 AS col1 FROM tab1 AS cor0
----
-138
-3624
-7656
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( col2 ) - col1 col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT + 15 AS col1 FROM tab2 AS cor0
----
15
15
15
query I rowsort
SELECT DISTINCT ( cor0.col0 ) FROM tab1, tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - + col1 * col1 * col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT ALL + cor0.col2 + + 19 FROM tab1 AS cor0
----
115
73
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 + + CAST ( - col0 AS REAL ) col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + - col1 * ( col1 ) + + col0 * col1 FROM tab1 AS cor0
----
-598
540
871
query I rowsort
SELECT ALL + col2 + 21 AS col2 FROM tab2 AS cor0
----
47
48
59
query I rowsort
SELECT ALL col1 + + ( + col1 ) AS col2 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT col0 + col0 * - cor0.col2 - + col1 * col1 FROM tab0 AS cor0
----
-15490
-8164
-9409
query I rowsort
SELECT - col0 * - 44 + col2 - col0 FROM tab0 AS cor0
----
1065
1506
3909
query I rowsort
SELECT DISTINCT - + col2 * + col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + cor0.col0 * - 0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT - + 8 AS col1 FROM tab1 cor0
----
-8
-8
-8
query I rowsort
SELECT DISTINCT cor1.col1 + 94 AS col0 FROM tab2, tab1 AS cor0, tab0 cor1
----
180
185
191
query I rowsort
SELECT 13 + - 89 * col2 AS col2 FROM tab0 AS cor0
----
-2924
-7285
-76
query I rowsort
SELECT DISTINCT - col1 * + col0 - col1 AS col0 FROM tab2 cor0
----
-1360
-248
-4661
query I rowsort
SELECT DISTINCT - col2 * + 76 FROM tab0 AS cor0
----
-2508
-6232
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col2 FROM tab1, tab1 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT ALL + - col2 + - col1 * col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT ALL + cor0.col0 + - col0 * col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT + 20 FROM tab0, tab2 cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT DISTINCT ( 49 ) * col1 AS col1 FROM tab2
----
1519
2891
833
query I rowsort
SELECT DISTINCT - 46 * - col2 + - col2 FROM tab2 AS cor0
----
1170
1215
1710
onlyif mysql # use DIV operator for integer division
query I rowsort label-9209
SELECT ALL 98 DIV - col1 - col1 FROM tab2 AS cor0
----
-22
-34
-60
skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL 98 / - col1 - col1 FROM tab2 AS cor0
----
-22
-34
-60
query I rowsort
SELECT DISTINCT + - 59 * - col0 FROM tab0 AS cor0
----
1416
2065
5251
onlyif mysql # use DIV operator for integer division
query I rowsort label-9211
SELECT ALL - + ( col1 ) + col1 DIV - col2 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL - + ( col1 ) + col1 / - col2 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - col0 * + cor0.col2 + col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-9213
SELECT ALL + cor0.col0 DIV - cor0.col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL + cor0.col0 / - cor0.col2 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT 96 FROM tab2, tab0 cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
onlyif mysql # use DIV operator for integer division
query I rowsort label-9215
SELECT 55 DIV - tab1.col1 - + col1 * CAST( col2 AS SIGNED ) * col2 FROM tab1
----
-119812
-32495
-75818
skipif mysql # not compatible
query I rowsort label-9215
SELECT 55 / - tab1.col1 - + col1 * CAST ( col2 AS INTEGER ) * col2 FROM tab1
----
-119812
-32495
-75818
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9216
SELECT ALL + CAST( - col0 + - col1 AS SIGNED ) FROM tab0
----
-110
-132
-180
skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL + CAST ( - col0 + - col1 AS INTEGER ) FROM tab0
----
-110
-132
-180
query I rowsort
SELECT + + 98 + - cor0.col1 FROM tab1 AS cor0
----
72
85
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 - col1 col1 FROM tab0 cor0
----
-135
-140
-146
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9219
SELECT ALL - + col0 + col0 * + col2 * CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9219
SELECT ALL - + col0 + col0 * + col2 * CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - 88 * col2 FROM tab2 AS cor0
----
-2288
-2376
-3344
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT cor0.col1 * - col2 + col1 * - 93 AS col2 FROM tab2 AS cor0
----
-2227
-3720
-7021
onlyif mysql # use DIV operator for integer division
query I rowsort label-9223
SELECT + cor0.col1 * + col0 + col2 DIV ( - 18 ) FROM tab0 AS cor0
----
2063
3395
8095
skipif mysql # not compatible
query I rowsort label-9223
SELECT + cor0.col1 * + col0 + col2 / ( - 18 ) FROM tab0 AS cor0
----
2063
3395
8095
onlyif mysql # use DIV operator for integer division
query I rowsort label-9224
SELECT ALL col0 * col2 + - col0 DIV col0 AS col2 FROM tab1 AS cor0
----
161
3647
7679
skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL col0 * col2 + - col0 / col0 AS col2 FROM tab1 AS cor0
----
161
3647
7679
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to a5677c50b23f70287df35c2388a1c9bf
onlyif mysql # use DIV operator for integer division
query I rowsort label-9226
SELECT DISTINCT - ( col1 ) * - col1 - col1 DIV 16 col0 FROM tab0 cor0
----
7391
8276
9403
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9226
SELECT DISTINCT - ( col1 ) * - col1 - col1 / 16 col0 FROM tab0 cor0
----
7391
8276
9403
query I rowsort
SELECT ALL 89 AS col1 FROM tab0 AS cor0
----
89
89
89
query I rowsort
SELECT 36 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to e09b197365a04fabbaaf0718d2ae88c5
onlyif mysql # use DIV operator for integer division
query I rowsort label-9229
SELECT - col2 * cor0.col0 DIV col0 + 86 AS col2 FROM tab0 AS cor0
----
4
53
85
skipif mysql # not compatible
query I rowsort label-9229
SELECT - col2 * cor0.col0 / col0 + 86 AS col2 FROM tab0 AS cor0
----
4
53
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9230
SELECT - CAST( + col2 AS SIGNED ) + - col1 FROM tab1
----
-109
-67
-80
skipif mysql # not compatible
query I rowsort label-9230
SELECT - CAST ( + col2 AS INTEGER ) + - col1 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT ALL + 25 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450
query I rowsort
SELECT ALL 19 + cor0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 34d222887c57d22ed3f05f2f4fee1d88
query I rowsort
SELECT ALL - 3 - col1 * 25 AS col2 FROM tab1 cor0
----
-253
-328
-653
query I rowsort
SELECT ALL + 2 + - col1 * col1 * + col1 FROM tab1 AS cor0
----
-17574
-2195
-998
query I rowsort
SELECT ( - col0 ) + - ( 50 ) AS col1 FROM tab0 AS cor0
----
-139
-74
-85
query I rowsort
SELECT - 22 + col2 FROM tab0 AS cor0
----
-21
11
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9237
SELECT - CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-9237
SELECT - CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT - 13 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792
query I rowsort
SELECT - col1 + + col1 * tab2.col2 FROM tab2
----
1475
629
806
query I rowsort
SELECT + ( col0 * col1 ) FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT ( + col2 * col1 ) AS col0 FROM tab1
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col2 col1 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-9243
SELECT ALL + col1 DIV 83 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL + col1 / 83 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - cor0.col0 * - col1 + col0 * cor0.col0 + cor0.col1 * cor0.col0 FROM tab1 AS cor0
----
165
5376
8480
query I rowsort
SELECT col0 - - col1 AS col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + cor0.col2 + cor0.col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + col0 * - ( 41 ) + - col0 + + 3 AS col2 FROM tab0 AS cor0
----
-1005
-1467
-3735
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - col2 col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + col0 + col2 * 29 * col0 + col0 * 33 * col1 AS col0 FROM tab2
----
12649
131456
210756
onlyif mysql # use DIV operator for integer division
query I rowsort label-9250
SELECT col1 + col2 - col2 DIV - col1 AS col0 FROM tab1
----
116
72
82
skipif mysql # not compatible
query I rowsort label-9250
SELECT col1 + col2 - col2 / - col1 AS col0 FROM tab1
----
116
72
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-9251
SELECT - 27 DIV tab2.col1 AS col2 FROM tab2
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9251
SELECT - 27 / tab2.col1 AS col2 FROM tab2
----
-1
0
0
query I rowsort
SELECT tab0.col1 * - col0 AS col2 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT col2 * + tab2.col2 * - tab2.col0 AS col2 FROM tab2
----
-114076
-5103
-52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-9254
SELECT DISTINCT + 53 + col1 - 44 DIV + 69 FROM tab0
----
139
144
150
skipif mysql # not compatible
query I rowsort label-9254
SELECT DISTINCT + 53 + col1 - 44 / + 69 FROM tab0
----
139
144
150
query I rowsort
SELECT col1 * + col0 * - col2 + + col2 AS col1 FROM tab0
----
-3394
-664036
-68079
query I rowsort
SELECT DISTINCT col2 + - col0 * + 70 * - col2 - + col1 * ( col2 ) * col1 AS col1 FROM tab1
----
-25110
249717
521472
query I rowsort
SELECT col2 + ( + ( - col1 ) ) AS col2 FROM tab0
----
-53
-9
-96
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 6726a15019c52908f1f1d0df0cd4c1b8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9259
SELECT ALL + col2 * - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL + col2 * - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT col0 + - 36 * col1 AS col1 FROM tab0 AS cor0
----
-3072
-3187
-3457
query I rowsort
SELECT DISTINCT + + col2 * col1 AS col0 FROM tab2 cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + col2 * - col1 + col1 * col0 - ( col0 ) FROM tab1 AS cor0
----
-1329
-288
6
query I rowsort
SELECT - + col2 * - col0 + - col0 * - col1 FROM tab2 AS cor0
----
406
4345
6630
query I rowsort
SELECT DISTINCT col2 * + 13 * col0 + tab0.col0 AS col2 FROM tab0
----
10320
490
94963
onlyif mysql # use DIV operator for integer division
query I rowsort label-9266
SELECT + col2 + - 35 DIV + col1 + col1 AS col1 FROM tab2 AS cor0
----
53
57
85
skipif mysql # not compatible
query I rowsort label-9266
SELECT + col2 + - 35 / + col1 + col1 AS col1 FROM tab2 AS cor0
----
53
57
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9267
SELECT DISTINCT col0 * + ( col1 * col1 + CAST( NULL AS SIGNED ) * + 95 ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9267
SELECT DISTINCT col0 * + ( col1 * col1 + CAST ( NULL AS INTEGER ) * + 95 ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - - col1 + 75 FROM tab2 AS cor0
----
106
134
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-9269
SELECT - col2 + - ( - col2 ) DIV - tab0.col0 + - col2 * - 65 AS col0 FROM tab0
----
2111
5248
64
skipif mysql # not compatible
query I rowsort label-9269
SELECT - col2 + - ( - col2 ) / - tab0.col0 + - col2 * - 65 AS col0 FROM tab0
----
2111
5248
64
query I rowsort
SELECT ALL - col1 + + 44 FROM tab1
----
18
31
34
query I rowsort
SELECT 74 AS col2 FROM tab1 AS cor0
----
74
74
74
query I rowsort
SELECT ALL 63 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9273
SELECT col0 + CAST( + col1 + col2 AS SIGNED ) AS col2 FROM tab1
----
131
189
83
skipif mysql # not compatible
query I rowsort label-9273
SELECT col0 + CAST ( + col1 + col2 AS INTEGER ) AS col2 FROM tab1
----
131
189
83
query I rowsort
SELECT tab2.col2 + 4 + - tab2.col1 FROM tab2
----
-29
0
25
query I rowsort
SELECT - 56 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 80 col2 FROM tab1 AS cor0
----
-144
-160
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9277
SELECT tab0.col0 DIV - col1 col2 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9277
SELECT tab0.col0 / - col1 col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col0 + - ( col1 ) * - col1 + tab2.col1 AS col2 FROM tab2
----
3618
385
999
query I rowsort
SELECT - ( - col0 ) * - col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - 21 * col0 AS col0 FROM tab2 AS cor0
----
-147
-1638
-1659
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9281
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col2 * cor0.col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col2 * cor0.col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - - col1 * - cor0.col1 FROM tab2 cor0
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-9283
SELECT + 73 + + col0 DIV - cor0.col0 + 34 FROM tab2 AS cor0
----
106
106
106
skipif mysql # not compatible
query I rowsort label-9283
SELECT + 73 + + col0 / - cor0.col0 + 34 FROM tab2 AS cor0
----
106
106
106
query I rowsort
SELECT - cor0.col0 + + 80 FROM tab0 cor0
----
-9
45
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-9285
SELECT col2 DIV + cor0.col1 FROM tab1 cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-9285
SELECT col2 / + cor0.col1 FROM tab1 cor0
----
2
5
7
query I rowsort
SELECT ( + col0 ) + col0 * + 36 * + col2 AS col0 FROM tab0 AS cor0
----
1295
262817
28536
query I rowsort
SELECT + - col1 + col2 * + cor0.col2 * - col0 + - col2 FROM tab2 AS cor0
----
-114131
-5161
-52813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9288
SELECT + ( - col2 ) + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9288
SELECT + ( - col2 ) + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9289
SELECT DISTINCT - cor0.col2 + - col1 DIV col2 FROM tab0 AS cor0
----
-35
-83
-98
skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT - cor0.col2 + - col1 / col2 FROM tab0 AS cor0
----
-35
-83
-98
query I rowsort
SELECT ALL + + col2 * - col1 - col1 AS col0 FROM tab0 cor0
----
-194
-2924
-7553
query I rowsort
SELECT DISTINCT + col2 + + cor0.col2 * - col2 * - col2 AS col1 FROM tab1 AS cor0
----
157518
185250
884832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 col1 FROM tab0 AS cor0
----
16
16
16
query I rowsort
SELECT ALL + + ( col2 ) * + col2 - + 87 AS col0 FROM tab1 AS cor0
----
2829
3162
9129
query I rowsort
SELECT ALL + 98 - col2 * 98 FROM tab2 AS cor0
----
-2450
-2548
-3626
query I rowsort
SELECT DISTINCT 76 * - col1 FROM tab0 AS cor0
----
-6536
-6916
-7372
query I rowsort
SELECT ALL col2 * col1 + 87 * - 41 FROM tab0 cor0
----
-3470
-729
3895
query I rowsort
SELECT - - 50 * col2 AS col2 FROM tab1 AS cor0
----
2700
2850
4800
query I rowsort
SELECT DISTINCT - - 86 + col0 FROM tab1 AS cor0
----
150
166
89
query I rowsort
SELECT DISTINCT + 78 * + col2 - 35 AS col1 FROM tab0 AS cor0
----
2539
43
6361
query I rowsort
SELECT ALL ( col0 ) + 27 * - col2 AS col0 FROM tab2 cor0
----
-624
-722
-947
query I rowsort
SELECT DISTINCT - ( col2 ) * - col1 + - col0 AS col1 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT ALL - ( - col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT 95 + col1 * col0 AS col1 FROM tab1 AS cor0
----
1135
173
735
query I rowsort
SELECT col0 + + col0 + - ( col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + + col0 + - 0 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - - col1 + cor0.col0 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - + cor0.col0 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT col1 + ( 20 ) FROM tab1 AS cor0
----
30
33
46
query I rowsort
SELECT - cor0.col0 - - col0 * + col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT - - col2 + - col2 * - col2 AS col1 FROM tab2 AS cor0
----
1482
702
756
onlyif mysql # use DIV operator for integer division
query I rowsort label-9311
SELECT + - col0 + col1 + - col0 DIV col1 FROM tab0 cor0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-9311
SELECT + - col0 + col1 + - col0 / col1 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT DISTINCT + col1 / col2 FROM tab0 WHERE ( NULL ) >= NULL AND tab0.col2 BETWEEN ( col0 ) AND - col0
----
query I rowsort
SELECT DISTINCT + tab1.col0 * + tab1.col0 AS col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT + cor0.col2 + cor0.col2 AS col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT + col1 * + col0 + - col0 + - col2 * col1 * + col0 AS col1 FROM tab2
----
-115128
-49770
-5649
onlyif mysql # use DIV operator for integer division
query I rowsort label-9316
SELECT DISTINCT + col1 DIV col0 + + col0 FROM tab2
----
11
78
79
skipif mysql # not compatible
query I rowsort label-9316
SELECT DISTINCT + col1 / col0 + + col0 FROM tab2
----
11
78
79
query I rowsort
SELECT ALL tab0.col0 + col2 AS col0 FROM tab0
----
171
36
57
query I rowsort
SELECT tab1.col2 + col0 * + col0 FROM tab1 WHERE - col0 BETWEEN ( NULL ) AND col1
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 NOT IN ( tab2.col1 )
----
query I rowsort
SELECT ALL col0 - col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL + col0 * col0 AS col1 FROM tab0 WHERE - col1 <= NULL
----
query I rowsort
SELECT ALL - col1 * + tab0.col1 AS col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT + col0 * - tab1.col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL + col0 + - col2 * col1 AS col1 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT - col2 * col0 + col0 * col1 FROM tab1 WHERE NOT NULL = NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + tab2.col2 + col1 col2 FROM tab2
----
2087
220
3019
query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 * col1 ) NOT IN ( - col0 )
----
query I rowsort
SELECT tab0.col0 + tab0.col1 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT - col2 * + col0 + - col0 + col2 FROM tab1 WHERE NOT ( NULL ) >= col0
----
query I rowsort
SELECT + col2 + - col0 FROM tab2 WHERE NULL < NULL
----
query I rowsort
SELECT DISTINCT - tab2.col1 + tab2.col0 AS col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT col0 + - col0 * - col0 FROM tab0
----
1260
600
8010
query I rowsort
SELECT col0 * col2 + - col2 * col1 - + col0 FROM tab1
----
-1245
3014
6352
query I rowsort
SELECT DISTINCT - col0 + - col1 * - col2 AS col2 FROM tab2
----
1456
567
830
query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NOT + col1 = - col0 + col1
----
-26
-27
-38
query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 >= ( NULL )
----
query I rowsort
SELECT + 90 + - 74 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
onlyif mysql # use DIV operator for integer division
query I rowsort label-9338
SELECT - - cor0.col0 DIV col2 AS col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-9338
SELECT - - cor0.col0 / col2 AS col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT + ( - col0 ) + - col0 FROM tab0
----
-178
-48
-70
query I rowsort
SELECT ALL + + cor0.col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - + 28 FROM tab1 AS cor0
----
-28
onlyif mysql # use DIV operator for integer division
query I rowsort label-9342
SELECT DISTINCT + - col1 * col1 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
-137
-3
-44
skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT + - col1 * col1 / cor0.col0 AS col0 FROM tab2 AS cor0
----
-137
-3
-44
query I rowsort
SELECT ALL + - 59 FROM tab1 AS cor0
----
-59
-59
-59
query I rowsort
SELECT ALL + 66 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
onlyif mysql # use DIV operator for integer division
query I rowsort label-9345
SELECT + + 66 + + col2 DIV col0 FROM tab0 AS cor0
----
66
66
67
skipif mysql # not compatible
query I rowsort label-9345
SELECT + + 66 + + col2 / col0 FROM tab0 AS cor0
----
66
66
67
query I rowsort
SELECT DISTINCT + tab1.col2 - col1 FROM tab1 WHERE NOT NULL IN ( + col2 )
----
query I rowsort
SELECT cor0.col2 + col2 * - col1 FROM tab1 cor0
----
-1152
-1350
-513
query I rowsort
SELECT + col0 + + col1 * + col2 + col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col2 * + col2 * - cor0.col1
----
query I rowsort
SELECT - col2 * - col1 + - col2 + - col1 * col2 FROM tab2
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9350
SELECT col2 DIV col2 AS col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9350
SELECT col2 / col2 AS col0 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT + col1 + - col1 - col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + col0 col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + col0 * col1 + - col0 AS col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT col0 * - tab0.col1 FROM tab0 WHERE NOT ( NULL ) = NULL
----
query I rowsort
SELECT ALL + col1 + + tab1.col2 AS col0 FROM tab1
----
109
67
80
query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 ) < NULL
----
query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NOT NULL > NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NULL > + col2
----
query I rowsort
SELECT DISTINCT col0 * - tab0.col0 + col2 * - col1 FROM tab0
----
-1322
-15383
-3414
query I rowsort
SELECT col1 * tab2.col2 * col2 - + col2 AS col0 FROM tab2
----
22572
24510
39858
onlyif mysql # use DIV operator for integer division
query I rowsort label-9361
SELECT DISTINCT col1 + col1 DIV + col2 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-9361
SELECT DISTINCT col1 + col1 / + col2 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL col2 * tab2.col1 AS col1 FROM tab2
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * tab1.col2 * + tab1.col2 + - col1 * - col0 + col0 col2 FROM tab1
----
208640
738400
8829
query I rowsort
SELECT col2 * tab0.col2 * col0 + - col1 FROM tab0
----
-62
26050
598345
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + tab1.col1 col0 FROM tab1
----
20
26
52
query I rowsort
SELECT col0 * - tab2.col1 * - col1 + - col0 FROM tab2
----
22752
271440
6720
query I rowsort
SELECT ALL cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - 53 - - col2 AS col1 FROM tab2 AS cor0
----
-15
-26
-27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9369
SELECT DISTINCT + ( col1 ) + - CAST( - col2 * + col1 AS SIGNED ) + col2 AS col0 FROM tab0 AS cor0
----
195
2957
7635
skipif mysql # not compatible
query I rowsort label-9369
SELECT DISTINCT + ( col1 ) + - CAST ( - col2 * + col1 AS INTEGER ) + col2 AS col0 FROM tab0 AS cor0
----
195
2957
7635
onlyif mysql # use DIV operator for integer division
query I rowsort label-9370
SELECT DISTINCT - - col2 + - col0 DIV + cor0.col1 FROM tab2 AS cor0
----
25
27
34
skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT - - col2 + - col0 / + cor0.col1 FROM tab2 AS cor0
----
25
27
34
query I rowsort
SELECT ALL - 39 * col1 + + col1 FROM tab2 AS cor0
----
-1178
-2242
-646
query I rowsort
SELECT DISTINCT - cor0.col0 + col2 * ( + cor0.col0 ) AS col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT 59 * - col1 FROM tab2 AS cor0
----
-1003
-1829
-3481
query I rowsort
SELECT DISTINCT + - ( - col1 ) FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - - cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - col2 * - cor0.col1 + + 54 + col0 AS col1 FROM tab0 AS cor0
----
186
2916
7605
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab2 cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 86 col2 FROM tab2 AS cor0
----
-112
-113
-124
query I rowsort
SELECT cor0.col1 * cor0.col2 + cor0.col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL - col1 * + 26 FROM tab1 AS cor0
----
-260
-338
-676
query I rowsort
SELECT - + col1 * - col0 + - col2 * - col0 FROM tab0 AS cor0
----
15397
2856
3430
query I rowsort
SELECT - - col2 * ( col2 ) FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL + col2 + - ( + 4 ) AS col0 FROM tab0 AS cor0
----
-3
29
78
query I rowsort
SELECT + col0 * - cor0.col0 + col0 AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT + - 30 AS col1 FROM tab2 AS cor0
----
-30
-30
-30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 8 col2 FROM tab1 AS cor0
----
8
8
8
query I rowsort
SELECT - - 40 * - col0 AS col0 FROM tab0 AS cor0
----
-1400
-3560
-960
query I rowsort
SELECT col0 + - 6 * - col0 FROM tab1
----
21
448
560
query I rowsort
SELECT ALL - ( tab1.col2 + col2 ) * col0 FROM tab1
----
-15360
-324
-7296
query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT DISTINCT + ( - col1 ) * - col1 * ( 51 ) + + col0 FROM tab2 AS cor0
----
14818
177609
49018
query I rowsort
SELECT - + ( + cor0.col0 ) * + col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT 9 * cor0.col1 + + col1 FROM tab2 AS cor0
----
170
310
590
query I rowsort
SELECT DISTINCT - ( ( + col0 ) ) + + ( 55 ) * col0 + 73 AS col2 FROM tab1 AS cor0
----
235
3529
4393
query I rowsort
SELECT DISTINCT + 9 AS col2 FROM tab0, tab0 AS cor0
----
9
query I rowsort
SELECT DISTINCT - col0 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + col2 * + col1 AS col0 FROM tab2 cor0
----
1534
646
837
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab0 cor1, tab0 cor2
----
972 values hashing to 8420206d6932c454f05a38de634b3cb5
query I rowsort
SELECT + 63 * cor0.col0 - - 58 FROM tab2 cor0
----
4972
499
5035
query I rowsort
SELECT col0 + cor0.col1 * col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL ( col1 ) + col1 * col2 - tab0.col2 FROM tab0
----
193
2891
7471
query I rowsort
SELECT col1 * - 22 FROM tab2
----
-1298
-374
-682
query I rowsort
SELECT ALL 35 + col2 + col2 * - 71 FROM tab2 AS cor0
----
-1785
-1855
-2625
query I rowsort
SELECT - 34 + - col1 AS col0 FROM tab0 AS cor0
----
-120
-125
-131
query I rowsort
SELECT - 91 AS col0 FROM tab0 cor0
----
-91
-91
-91
query I rowsort
SELECT ALL - col1 * - col0 * - col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-3394
-664036
-68079
onlyif mysql # use DIV operator for integer division
query I rowsort label-9407
SELECT - col0 DIV + col1 - col2 * col0 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-9407
SELECT - col0 / + col1 - col2 * col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + col0 - + col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT ALL - ( - 96 ) AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9410
SELECT CAST( - cor1.col0 AS SIGNED ) * cor0.col0 AS col0 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to fa8f09039d622159cb79f83c1d68bd00
skipif mysql # not compatible
query I rowsort label-9410
SELECT CAST ( - cor1.col0 AS INTEGER ) * cor0.col0 AS col0 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to fa8f09039d622159cb79f83c1d68bd00
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab0, tab2 cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT ALL 76 + + 0 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
onlyif mysql # use DIV operator for integer division
query I rowsort label-9413
SELECT DISTINCT col2 DIV - col2 + + col1 AS col2 FROM tab0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-9413
SELECT DISTINCT col2 / - col2 + + col1 AS col2 FROM tab0
----
85
90
96
query I rowsort
SELECT 46 * col1 + + 0 + col1 AS col2 FROM tab2
----
1457
2773
799
onlyif mysql # use DIV operator for integer division
query I rowsort label-9415
SELECT 4 DIV tab0.col1 + - tab0.col0 + col1 FROM tab0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-9415
SELECT 4 / tab0.col1 + - tab0.col0 + col1 FROM tab0
----
2
62
62
query I rowsort
SELECT tab1.col0 + + cor0.col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to ad83fc90fc898a3cac662a66bc570af3
query I rowsort
SELECT + col0 + 75 FROM tab2 cor0
----
153
154
82
query I rowsort
SELECT DISTINCT - col0 * + col0 + col0 FROM tab2
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT + 48 + - tab1.col0 * - col1 FROM tab1
----
1088
126
688
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9420
SELECT col0 * + cor0.col2 + + CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
216
3705
7776
skipif mysql # not compatible
query I rowsort label-9420
SELECT col0 * + cor0.col2 + + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL ( - col1 * 41 ) FROM tab2
----
-1271
-2419
-697
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) * - col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT + col0 * 59 AS col2 FROM tab0 AS cor0
----
1416
2065
5251
query I rowsort
SELECT - ( 80 ) + col0 FROM tab1 AS cor0
----
-16
-77
0
skipif mysql # not compatible
query I rowsort
SELECT tab2.col0 * CAST ( 41 + - col2 AS REAL ) FROM tab2
----
1170
237
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 15 col0 FROM tab0
----
-1230
-15
-495
query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab0, tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL ( + col2 ) * col2 AS col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT + - col0 * - ( - cor0.col2 + ( - col0 ) ) FROM tab2 AS cor0
----
-238
-8112
-9243
query I rowsort
SELECT + 97 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
71
84
87
query I rowsort
SELECT ALL col0 * - 64 - col0 FROM tab0 AS cor0
----
-1560
-2275
-5785
query I rowsort
SELECT ALL 71 + - col2 AS col0 FROM tab2 cor0
----
33
44
45
query I rowsort
SELECT ALL col0 * - col0 AS col1 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT + - 75 * + col0 AS col2 FROM tab2 AS cor0
----
-525
-5850
-5925
query I rowsort
SELECT ALL - col1 * 59 FROM tab2 AS cor0
----
-1003
-1829
-3481
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9436
SELECT + CAST( 37 AS SIGNED ) FROM tab1 AS cor0
----
37
37
37
skipif mysql # not compatible
query I rowsort label-9436
SELECT + CAST ( 37 AS INTEGER ) FROM tab1 AS cor0
----
37
37
37
query I rowsort
SELECT + + col0 * - col2 FROM tab1 cor0
----
-162
-3648
-7680
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab1 cor1, tab0 AS cor2
----
972 values hashing to 43f0c51511c8642d19190fd4dfcf905a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 58 * - col0 col1 FROM tab2 AS cor0
----
-399
-4446
-4503
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 92 ) + - col2 col2 FROM tab0 AS cor0
----
10
59
91
query I rowsort
SELECT - ( - 43 ) * + col1 + col1 FROM tab2 cor0
----
1364
2596
748
onlyif mysql # use DIV operator for integer division
query I rowsort label-9442
SELECT - col2 + - col1 DIV col0 col1 FROM tab1 AS cor0
----
-57
-62
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9442
SELECT - col2 + - col1 / col0 col1 FROM tab1 AS cor0
----
-57
-62
-96
query I rowsort
SELECT ALL - 32 AS col1 FROM tab0 cor0
----
-32
-32
-32
query I rowsort
SELECT - - 22 + + col2 FROM tab1 AS cor0
----
118
76
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 * + 76 col0 FROM tab1 cor0
----
3572
3572
3572
query I rowsort
SELECT ( - cor0.col1 ) * - col2 - ( col1 * + col1 ) AS col1 FROM tab1 AS cor0
----
1079
470
728
query I rowsort
SELECT + + 65 + + col1 AS col0 FROM tab0 cor0
----
151
156
162
query I rowsort
SELECT + 66 - + cor0.col0 * col2 * 27 FROM tab0 AS cor0
----
-196980
-21318
-879
onlyif mysql # use DIV operator for integer division
query I rowsort label-9449
SELECT DISTINCT col0 DIV + col1 AS col0 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT col0 / + col1 AS col0 FROM tab2
----
0
1
4
query I rowsort
SELECT col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT ( cor0.col0 ) * col1 + - col2 * - col2 FROM tab2 AS cor0
----
2787
5278
946
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( col2 ) col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL ( + col1 ) * cor0.col2 + 51 AS col1 FROM tab0 AS cor0
----
148
2889
7513
onlyif mysql # use DIV operator for integer division
query I rowsort label-9454
SELECT - 23 DIV col0 AS col1 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-9454
SELECT - 23 / col0 AS col1 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT ALL + 51 + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2013
-3344
-8048
query I rowsort
SELECT 24 + - col0 AS col2 FROM tab1 AS cor0
----
-40
-56
21
query I rowsort
SELECT 95 + cor0.col0 FROM tab1 AS cor0
----
159
175
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col1 col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT 44 * col1 * - col1 + col2 AS col1 FROM tab2 AS cor0
----
-12678
-153138
-42257
query I rowsort
SELECT col2 * - col1 * col0 + col1 AS col2 FROM tab2 AS cor0
----
-119593
-51017
-5828
query I rowsort
SELECT DISTINCT - - cor0.col2 + - col2 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9462
SELECT ALL col0 + col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-9462
SELECT ALL col0 + col2 / + col0 AS col0 FROM tab0 AS cor0
----
25
35
89
query I rowsort
SELECT ALL col1 * - ( col2 + 94 ) AS col1 FROM tab1
----
-1510
-2470
-3848
onlyif mysql # use DIV operator for integer division
query I rowsort label-9464
SELECT cor0.col2 DIV - col1 + 89 FROM tab1 AS cor0
----
82
84
87
skipif mysql # not compatible
query I rowsort label-9464
SELECT cor0.col2 / - col1 + 89 FROM tab1 AS cor0
----
82
84
87
query I rowsort
SELECT - 41 FROM tab0 cor0
----
-41
-41
-41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9466
SELECT + col1 * col1 * CAST( cor0.col1 AS SIGNED ) + - col0 * ( + col2 ) * col2 AS col1 FROM tab1 AS cor0
----
-206936
-735083
8828
skipif mysql # not compatible
query I rowsort label-9466
SELECT + col1 * col1 * CAST ( cor0.col1 AS INTEGER ) + - col0 * ( + col2 ) * col2 AS col1 FROM tab1 AS cor0
----
-206936
-735083
8828
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9467
SELECT DISTINCT cor0.col1 + - CAST( col1 AS SIGNED ) * + col1 col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9467
SELECT DISTINCT cor0.col1 + - CAST ( col1 AS INTEGER ) * + col1 col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-9468
SELECT ALL cor0.col1 * ( col2 ) DIV + col2 AS col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL cor0.col1 * ( col2 ) / + col2 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - ( - ( + cor0.col2 ) ) FROM tab2, tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL col1 * col0 + col1 FROM tab2 AS cor0
----
1360
248
4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * 6 col2 FROM tab2 AS cor0
----
-42
-468
-474
onlyif mysql # use DIV operator for integer division
query I rowsort label-9472
SELECT ALL + col2 DIV ( - cor0.col2 * - cor0.col1 ) AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9472
SELECT ALL + col2 / ( - cor0.col2 * - cor0.col1 ) AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 * col1 - + col0 * + col1 AS col1 FROM tab0 cor0
----
-12804
-16380
-9460
query I rowsort
SELECT ALL - - col0 * + 53 + 47 FROM tab1 AS cor0
----
206
3439
4287
onlyif mysql # use DIV operator for integer division
query I rowsort label-9475
SELECT DISTINCT - col2 + 74 DIV - col0 FROM tab0 AS cor0
----
-3
-36
-82
skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT - col2 + 74 / - col0 FROM tab0 AS cor0
----
-3
-36
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9476
SELECT + col0 * + CAST( 97 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
291
6208
7760
skipif mysql # not compatible
query I rowsort label-9476
SELECT + col0 * + CAST ( 97 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
291
6208
7760
query I rowsort
SELECT ALL + col0 + ( col1 ) AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - tab1.col2 - - col0 AS col0 FROM tab1
----
-16
-51
7
query I rowsort
SELECT ALL tab0.col0 + - col1 * + col0 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT + col2 + - 51 AS col0 FROM tab1 cor0
----
3
45
6
query I rowsort
SELECT DISTINCT 82 AS col2 FROM tab2
----
82
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 591a9a93560839231c038a1e10bd240a
query I rowsort
SELECT ALL col1 * + 98 AS col0 FROM tab1
----
1274
2548
980
query I rowsort
SELECT DISTINCT col1 - cor0.col1 FROM tab1 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + cor0.col2 * 99 + - col1 * + col0 col2 FROM tab1 AS cor0
----
5067
5271
8544
query I rowsort
SELECT + - cor0.col2 * - 70 AS col0 FROM tab1 AS cor0
----
3780
3990
6720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9487
SELECT ALL - + cor0.col1 + CAST( col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL - + cor0.col1 + CAST ( col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 col0 FROM tab1 cor0
----
-54
-57
-96
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 591a9a93560839231c038a1e10bd240a
query I rowsort
SELECT col1 + col2 * - col2 - + 69 AS col1 FROM tab0 cor0
----
-1072
-6702
27
query I rowsort
SELECT + 85 * - col1 FROM tab2 AS cor0
----
-1445
-2635
-5015
query I rowsort
SELECT ALL - 52 + col1 + tab0.col0 FROM tab0
----
128
58
80
query I rowsort
SELECT ALL + ( - 62 ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6
query I rowsort
SELECT + col2 + col0 AS col1 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ALL + 20 * col1 AS col0 FROM tab1 AS cor0
----
200
260
520
query I rowsort
SELECT ALL + 23 - + 22 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT - - cor0.col1 + cor0.col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL + col1 * - 48 AS col0 FROM tab0
----
-4128
-4368
-4656
query I rowsort
SELECT ALL - 83 FROM tab0 cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab2 AS cor2, tab2
----
729 values hashing to f4c9435766407bbedf24304140242dc8
query I rowsort
SELECT - + ( col0 ) * col2 - - ( col2 ) * - cor0.col1 FROM tab2 AS cor0
----
-1026
-3562
-3648
onlyif mysql # use DIV operator for integer division
query I rowsort label-9501
SELECT ALL - col2 DIV + cor0.col1 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL - col2 / + cor0.col1 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT ALL - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9503
SELECT 56 + - col2 * col0 + CAST( NULL AS SIGNED ) * + ( + col1 + + 34 ) * + col0 col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9503
SELECT 56 + - col2 * col0 + CAST ( NULL AS INTEGER ) * + ( + col1 + + 34 ) * + col0 col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 89 AS col1 FROM tab1
----
-89
-89
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9505
SELECT DISTINCT cor0.col2 DIV cor0.col0 AS col0 FROM tab0, tab2 cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-9505
SELECT DISTINCT cor0.col2 / cor0.col0 AS col0 FROM tab0, tab2 cor0
----
0
3
query I rowsort
SELECT ALL + col0 * - tab0.col1 + col0 + 5 AS col2 FROM tab0
----
-2035
-3355
-8005
query I rowsort
SELECT + - ( + col0 ) + col0 + col2 FROM tab0 cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( col1 ) col0 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT 70 + col1 + col2 FROM tab0 AS cor0
----
168
189
243
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9510
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - 93 * + col2 AS col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9510
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - 93 * + col2 AS col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort
SELECT + + cor0.col1 * 13 + col1 + + CAST ( - col0 + col2 AS REAL ) FROM tab1 AS cor0
----
133
198
415
query I rowsort
SELECT DISTINCT + 24 * - col0 FROM tab0 AS cor0
----
-2136
-576
-840
onlyif mysql # use DIV operator for integer division
query I rowsort label-9513
SELECT ALL + 24 DIV col2 FROM tab0 AS cor0
----
0
0
24
skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL + 24 / col2 FROM tab0 AS cor0
----
0
0
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9514
SELECT - CAST( NULL AS DECIMAL ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9514
SELECT - CAST ( NULL AS REAL ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 * - col1 * - col1 FROM tab2
----
-205379
-29791
-4913
query I rowsort
SELECT 91 + tab1.col2 AS col1 FROM tab1
----
145
148
187
query I rowsort
SELECT DISTINCT + 45 AS col0 FROM tab0
----
45
query I rowsort
SELECT col0 * col2 + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT 37 * col0 + + col1 FROM tab2 AS cor0
----
290
2940
2945
query I rowsort
SELECT DISTINCT - col2 - col2 * cor0.col1 FROM tab0 AS cor0
----
-2871
-7544
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9521
SELECT + col0 * - col2 + + CAST( col2 + col0 AS SIGNED ) FROM tab2 AS cor0
----
-155
-1924
-2885
skipif mysql # not compatible
query I rowsort label-9521
SELECT + col0 * - col2 + + CAST ( col2 + col0 AS INTEGER ) FROM tab2 AS cor0
----
-155
-1924
-2885
onlyif mysql # use DIV operator for integer division
query I rowsort label-9522
SELECT ALL + col0 + col1 DIV - col0 + 59 FROM tab2 cor0
----
137
138
62
skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL + col0 + col1 / - col0 + 59 FROM tab2 cor0
----
137
138
62
query I rowsort
SELECT + 16 AS col2 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
query I rowsort
SELECT ALL + + col0 * col0 + + ( cor0.col1 + - col0 ) FROM tab1 AS cor0
----
32
4042
6333
query I rowsort
SELECT ALL col0 * col2 + 77 * + 21 * - col0 AS col2 FROM tab2 cor0
----
-11130
-124098
-124741
query I rowsort
SELECT DISTINCT cor0.col2 * + 92 AS col2 FROM tab1, tab0 AS cor0
----
3036
7544
92
query I rowsort
SELECT DISTINCT - + cor0.col2 + col1 * col1 FROM tab2 AS cor0
----
251
3455
934
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 + col1 col2 FROM tab0 cor0
----
7482
8372
9506
query I rowsort
SELECT - col0 * 5 AS col0 FROM tab0 AS cor0
----
-120
-175
-445
query I rowsort
SELECT + col0 + 60 FROM tab2 AS cor0
----
138
139
67
query I rowsort
SELECT ALL cor0.col0 * + 14 FROM tab0 AS cor0
----
1246
336
490
query I rowsort
SELECT - - col1 + - cor0.col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-272
-3422
-930
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9533
SELECT DISTINCT - col2 * - CAST( col0 AS SIGNED ) + - col1 col0 FROM tab2 AS cor0
----
158
1969
2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT - col2 * - CAST ( col0 AS INTEGER ) + - col1 col0 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT ALL - col1 * - 87 AS col0 FROM tab2 AS cor0
----
1479
2697
5133
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9535
SELECT DISTINCT - + col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9535
SELECT DISTINCT - + col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9536
SELECT ALL col2 + col2 DIV col1 AS col0 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL col2 + col2 / col1 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + - cor0.col1 * + col0 * - col0 + col0 * - 17 AS col1 FROM tab0 AS cor0
----
118230
49128
719298
query I rowsort
SELECT ALL - col1 + + ( + 41 ) * + col2 + col2 FROM tab0 AS cor0
----
-55
1300
3353
query I rowsort
SELECT cor0.col2 + cor0.col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 15ff38272c484fb486e1883e64781cf3
query I rowsort
SELECT ALL col1 * 55 * - 59 AS col2 FROM tab2 AS cor0
----
-100595
-191455
-55165
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 + CAST ( + 7 AS REAL ) FROM tab2 cor0
----
14
85
86
query I rowsort
SELECT DISTINCT - cor0.col2 + + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1560
-684
-864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9543
SELECT ALL - + col2 * - 56 + 9 * + col1 / + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL - + col2 * - 56 + 9 * + col1 / + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col0 + 4 AS col0 FROM tab1 AS cor0
----
68
7
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9545
SELECT col2 + CAST( NULL AS SIGNED ) * + 54 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9545
SELECT col2 + CAST ( NULL AS INTEGER ) * + 54 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( 85 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT col1 * ( + col0 ) + - col2 * col0 AS col0 FROM tab2 AS cor0
----
-1659
2574
28
query I rowsort
SELECT + - col2 * cor0.col2 + + cor0.col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT ( 88 ) * col2 FROM tab2 AS cor0
----
2288
2376
3344
query I rowsort
SELECT cor0.col2 * ( + col0 ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - - 35 AS col0 FROM tab2 cor0
----
35
35
35
query I rowsort
SELECT - 6 FROM tab1, tab1 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934
query I rowsort
SELECT ( - cor0.col1 ) - - cor0.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to ae0eeb942db3f01544a81804e95e971a
query I rowsort
SELECT ALL + tab1.col1 + 83 FROM tab1, tab0 AS cor0
----
9 values hashing to 47dab5b5a76245bf04f8d92d033f9af6
query I rowsort
SELECT col0 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - col1 + col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
136
3638
7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-9557
SELECT + 68 * + col1 + col0 DIV - 94 FROM tab0 AS cor0
----
5848
6188
6596
skipif mysql # not compatible
query I rowsort label-9557
SELECT + 68 * + col1 + col0 / - 94 FROM tab0 AS cor0
----
5848
6188
6596
query I rowsort
SELECT + - col2 + + col2 * + col0 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT ALL + 21 * + col0 * + 41 FROM tab2 AS cor0
----
6027
67158
68019
query I rowsort
SELECT DISTINCT + 57 + col0 FROM tab2
----
135
136
64
query I rowsort
SELECT col0 * - 92 AS col2 FROM tab1
----
-276
-5888
-7360
query I rowsort
SELECT ALL col2 * 92 + col1 AS col2 FROM tab0
----
189
3122
7635
query I rowsort
SELECT DISTINCT - col0 + + col0 * - col2 FROM tab2
----
-196
-2106
-3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-9564
SELECT + + col0 + - col1 DIV 79 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-9564
SELECT + + col0 + - col1 / 79 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT col0 + - tab1.col0 + - col2 * - col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - col1 * col2 * + col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT ALL col1 * col2 * col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT - 49 * col1 + col2 + - col1 * + col2 FROM tab1 AS cor0
----
-1003
-1789
-2624
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 69 col1 FROM tab1
----
-1794
-690
-897
query I rowsort
SELECT DISTINCT + ( ( col0 ) + 12 ) * - col2 AS col1 FROM tab1
----
-4332
-810
-8832
onlyif mysql # use DIV operator for integer division
query I rowsort label-9571
SELECT DISTINCT ( + col0 ) DIV col2 col0 FROM tab1
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9571
SELECT DISTINCT ( + col0 ) / col2 col0 FROM tab1
----
0
1
query I rowsort
SELECT ALL 62 FROM tab2, tab1 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 col2 FROM tab1, tab2 cor0, tab2 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ( - ( + col2 ) ) * - 70 + col0 * + col1 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
2114
4082
6500
query I rowsort
SELECT DISTINCT - cor1.col0 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9576
SELECT + CAST( 83 AS SIGNED ) AS col2 FROM tab0
----
83
83
83
skipif mysql # not compatible
query I rowsort label-9576
SELECT + CAST ( 83 AS INTEGER ) AS col2 FROM tab0
----
83
83
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9577
SELECT + 75 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9577
SELECT + 75 / - col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 * - col1 AS col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + 11 * col0 FROM tab1 cor0
----
33
704
880
query I rowsort
SELECT ALL col1 * - cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col2 + - 57 FROM tab0 AS cor0
----
-139
-58
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + 71 col2 FROM tab1 cor0
----
45
58
61
query I rowsort
SELECT - cor0.col0 * col2 + col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-9584
SELECT + col1 DIV - col2 + + 38 * col2 DIV col2 AS col2 FROM tab1 AS cor0
----
38
38
38
skipif mysql # not compatible
query I rowsort label-9584
SELECT + col1 / - col2 + + 38 * col2 / col2 AS col2 FROM tab1 AS cor0
----
38
38
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9585
SELECT + - col0 DIV + col0 - col2 AS col1 FROM tab2 AS cor0
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-9585
SELECT + - col0 / + col0 - col2 AS col1 FROM tab2 AS cor0
----
-27
-28
-39
query I rowsort
SELECT - ( col2 ) * - col2 + col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT col1 + - 23 AS col2 FROM tab0 AS cor0
----
63
68
74
query I rowsort
SELECT - cor0.col0 * - col1 * col0 AS col1 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT col2 + col2 * + col1 FROM tab0
----
2871
7544
98
query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + - 9 + + col1 AS col0 FROM tab1 AS cor0
----
1
17
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + col0 + + col2 col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT col2 + + 42 FROM tab0 AS cor0
----
124
43
75
query I rowsort
SELECT ALL + col1 * col0 * col2 AS col2 FROM tab1 AS cor0
----
36480
4212
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 80 * col1 + col0 * col0 col0 FROM tab2 cor0
----
10863
2560
7618
query I rowsort
SELECT col1 * ( cor0.col1 ) + col2 + + 71 AS col2 FROM tab1 AS cor0
----
228
336
801
query I rowsort
SELECT + 60 + ( + col0 ) * - cor0.col0 FROM tab1 AS cor0
----
-4036
-6340
51
query I rowsort
SELECT ALL - - col1 + - ( - cor0.col2 ) * 82 FROM tab2 AS cor0
----
2191
2245
3133
query I rowsort
SELECT - - 5 + + ( cor0.col2 ) AS col1 FROM tab1 cor0
----
101
59
62
query I rowsort
SELECT + ( - col1 ) - + cor0.col2 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL - col0 * + col0 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
-4086
-6387
17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9602
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - cor0.col1 * + col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - cor0.col1 * + col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT ( - 86 ) * + cor0.col0 + col0 * - col1 + - col1 * + 33 FROM tab2 AS cor0
----
-13257
-1842
-8698
onlyif mysql # use DIV operator for integer division
query I rowsort label-9604
SELECT ALL + col2 DIV - col2 - + cor0.col0 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL + col2 / - col2 - + cor0.col0 FROM tab0 AS cor0
----
-25
-36
-90
query I rowsort
SELECT - col1 + 22 * col2 FROM tab1 AS cor0
----
1162
1244
2099
query I rowsort
SELECT DISTINCT - - col2 * ( + col2 ) AS col1 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - 53 * + 2 AS col2 FROM tab1 AS cor0
----
-106
query I rowsort
SELECT ALL + col1 + - 29 + + col2 FROM tab1 AS cor0
----
38
51
80
query I rowsort
SELECT ALL - + 37 AS col0 FROM tab2 AS cor0
----
-37
-37
-37
query I rowsort
SELECT - + 36 * col1 + 12 AS col2 FROM tab2 AS cor0
----
-1104
-2112
-600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 96 * col0 - ( 77 ) * col0 col2 FROM tab2 AS cor0
----
133
1482
1501
query I rowsort
SELECT 63 + col2 FROM tab0
----
145
64
96
query I rowsort
SELECT DISTINCT + col0 + col1 * col2 FROM tab2
----
1612
725
844
query I rowsort
SELECT DISTINCT - - cor0.col2 * 12 FROM tab0 AS cor0
----
12
396
984
query I rowsort
SELECT ALL col2 + cor0.col2 * - 62 FROM tab2 AS cor0
----
-1586
-1647
-2318
query I rowsort
SELECT ALL + + col1 + + ( - cor0.col0 ) * + col0 AS col0 FROM tab1 AS cor0
----
-4086
-6387
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-9617
SELECT ALL + ( col1 ) DIV - 92 col0 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL + ( col1 ) / - 92 col0 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT col1 * - col1 - col2 AS col2 FROM tab1
----
-157
-265
-730
query I rowsort
SELECT ( + tab2.col1 ) AS col1 FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # use DIV operator for integer division
query I rowsort label-9620
SELECT col1 DIV 14 AS col2 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9620
SELECT col1 / 14 AS col2 FROM tab1
----
0
0
1
query I rowsort
SELECT ALL ( + 49 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
onlyif mysql # use DIV operator for integer division
query I rowsort label-9622
SELECT col2 * col2 + col2 DIV - tab0.col0 + + tab0.col0 * 97 FROM tab0
----
15357
3396
3416
skipif mysql # not compatible
query I rowsort label-9622
SELECT col2 * col2 + col2 / - tab0.col0 + + tab0.col0 * 97 FROM tab0
----
15357
3396
3416
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9623
SELECT - col2 * CAST( NULL AS SIGNED ) * col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9623
SELECT - col2 * CAST ( NULL AS INTEGER ) * col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * + col2 + + col2 AS col1 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT + cor0.col1 + col0 * 97 * - col0 FROM tab1 AS cor0
----
-397302
-620787
-847
query I rowsort
SELECT DISTINCT col1 * col1 * 59 + + tab2.col2 FROM tab2
----
17089
205405
56726
query I rowsort
SELECT ALL - - col0 * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT col0 * cor0.col1 + col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL + col2 * ( + col2 ) AS col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - col0 * col2 * col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9631
SELECT ALL col0 + col0 * col2 * + col0 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL col0 + col0 * col2 * + col0 + - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 - + col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 + 51 AS col2 FROM tab0 AS cor0
----
140
75
86
query I rowsort
SELECT ALL + col0 * col0 + col1 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT DISTINCT col2 - col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT cor0.col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL + - 87 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9
query I rowsort
SELECT col2 * + ( - ( cor0.col2 ) ) FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - ( col1 + - col2 ) col1 FROM tab1
----
-17
25
3
query I rowsort
SELECT 44 FROM tab2, tab2 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT DISTINCT + col1 * ( + col1 ) FROM tab0 cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT col1 * col1 + - tab1.col1 * col2 AS col0 FROM tab1
----
-1079
-470
-728
onlyif mysql # use DIV operator for integer division
query I rowsort label-9644
SELECT ALL tab0.col0 + - col0 - + col0 DIV col2 AS col0 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-9644
SELECT ALL tab0.col0 + - col0 - + col0 / col2 AS col0 FROM tab0
----
-1
-35
0
query I rowsort
SELECT + col0 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT + col2 * - col0 + - col1 + col0 AS col2 FROM tab0
----
-7300
-854
-97
query I rowsort
SELECT - 89 + col2 FROM tab1 AS cor0
----
-32
-35
7
query I rowsort
SELECT 78 + - col0 * - col1 FROM tab2 AS cor0
----
1421
295
4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 col0 FROM tab1
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-9650
SELECT col1 * col1 + + tab0.col0 DIV - col1 AS col1 FROM tab0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-9650
SELECT col1 * col1 + + tab0.col0 / - col1 AS col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT ALL - col0 * tab1.col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT - 94 + + col1 FROM tab2
----
-35
-63
-77
query I rowsort
SELECT ALL col2 * col1 - - col0 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT ALL - - col2 - col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9655
SELECT ALL col2 * - col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL col2 * - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 11 AS col0 FROM tab0, tab1, tab1 AS cor0
----
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 * col1 * + col0 col1 FROM tab1 AS cor0
----
13600
2031
6464
query I rowsort
SELECT DISTINCT - + col2 - + col2 * 4 FROM tab2 AS cor0
----
-130
-135
-190
query I rowsort
SELECT - + col2 * + col0 + + ( + 32 + - col2 ) * col1 AS col0 FROM tab0 AS cor0
----
-11848
-878
2972
onlyif mysql # use DIV operator for integer division
query I rowsort label-9660
SELECT ALL 48 DIV - 2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f
skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL 48 / - 2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f
query I rowsort
SELECT ALL 63 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 col1 FROM tab2
----
19
19
19
query I rowsort
SELECT ALL - cor0.col0 + 71 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5dcf73ad791ed3a09e562c7c34171742
query I rowsort
SELECT ALL 96 * col0 AS col1 FROM tab0
----
2304
3360
8544
query I rowsort
SELECT - cor0.col1 * col0 + + 93 * + col0 AS col1 FROM tab1 AS cor0
----
201
5312
6400
query I rowsort
SELECT + cor0.col0 * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT cor0.col1 + ( col1 ) * - col0 * - col2 AS col2 FROM tab0 AS cor0
----
3492
664209
68198
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 col2 FROM tab2
----
22
22
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 col0 FROM tab0 AS cor0
----
-27
-27
-27
query I rowsort
SELECT - col1 * + 64 AS col0 FROM tab2 AS cor0
----
-1088
-1984
-3776
query I rowsort
SELECT + + 87 FROM tab0 AS cor0
----
87
87
87
query I rowsort
SELECT DISTINCT + 31 AS col1 FROM tab0 AS cor0
----
31
query I rowsort
SELECT - cor0.col0 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT - - col1 - - col2 * - ( - col2 ) FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT + col0 + col2 * + 57 FROM tab0 AS cor0
----
1905
4763
92
query I rowsort
SELECT - col1 + col0 * 62 * - col0 AS col0 FROM tab0 cor0
----
-35798
-491193
-76047
query I rowsort
SELECT - 26 + col0 AS col2 FROM tab0 AS cor0
----
-2
63
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9678
SELECT - CAST( NULL AS SIGNED ) * - 39 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9678
SELECT - CAST ( NULL AS INTEGER ) * - 39 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 + col0 * - col0 * + col2 FROM tab1
----
-233415
-432
-614304
query I rowsort
SELECT DISTINCT col0 + col2 * col1 AS col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT ALL col1 * - col1 + - col1 * + ( + col2 ) FROM tab0
----
-10234
-15743
-9506
query I rowsort
SELECT - col1 + col2 * - 8 - + col1 AS col1 FROM tab1 AS cor0
----
-476
-484
-794
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9683
SELECT + col0 + 10 * col0 + - CAST( NULL AS SIGNED ) * + ( tab2.col1 + ( col2 ) * col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9683
SELECT + col0 + 10 * col0 + - CAST ( NULL AS INTEGER ) * + ( tab2.col1 + ( col2 ) * col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab2 cor0, tab0 cor1
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9
query I rowsort
SELECT + + col2 * col2 * - col0 + - col2 * - col1 * col2 FROM tab2 cor0
----
-12844
-89528
17496
onlyif mysql # use DIV operator for integer division
query I rowsort label-9686
SELECT - col1 DIV + col2 + - col2 * - col2 FROM tab0 AS cor0
----
-96
1087
6723
skipif mysql # not compatible
query I rowsort label-9686
SELECT - col1 / + col2 + - col2 * - col2 FROM tab0 AS cor0
----
-96
1087
6723
query I rowsort
SELECT - - col1 * - col2 + + col0 AS col2 FROM tab2 cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL - col0 + col1 * col0 FROM tab1 cor0
----
576
75
960
query I rowsort
SELECT DISTINCT col2 + - col0 * col1 AS col1 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT + col2 * col2 * tab0.col2 FROM tab0
----
1
35937
551368
query I rowsort
SELECT DISTINCT col2 * col1 * + tab0.col2 AS col2 FROM tab0
----
611884
93654
97
query I rowsort
SELECT ALL + tab2.col1 + - col1 * + col0 FROM tab2
----
-1326
-186
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-9693
SELECT ALL + col1 DIV col0 + - col0 * col1 AS col2 FROM tab0
----
-2061
-3393
-8098
skipif mysql # not compatible
query I rowsort label-9693
SELECT ALL + col1 / col0 + - col0 * col1 AS col2 FROM tab0
----
-2061
-3393
-8098
query I rowsort
SELECT + 57 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT ALL 95 * tab1.col0 AS col0 FROM tab1
----
285
6080
7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-9696
SELECT + - col0 - col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-9696
SELECT + - col0 - col0 / - col0 AS col1 FROM tab2 AS cor0
----
-6
-77
-78
query I rowsort
SELECT ALL + cor0.col2 + + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-9698
SELECT col1 DIV + 54 AS col2 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9698
SELECT col1 / + 54 AS col2 FROM tab2
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9699
SELECT - CAST( NULL AS SIGNED ) * tab1.col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9699
SELECT - CAST ( NULL AS INTEGER ) * tab1.col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ( 82 ) - col2 AS col1 FROM tab0
----
0
49
81
query I rowsort
SELECT - col1 + 45 FROM tab1
----
19
32
35
query I rowsort
SELECT - + 46 + col0 * + cor0.col0 FROM tab0 AS cor0
----
1179
530
7875
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 * - col2 + tab2.col1 * col0 * + tab2.col0 col2 FROM tab2
----
2842
343255
517140
query I rowsort
SELECT - col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - - 43 * + col2 - cor0.col1 FROM tab2 cor0
----
1059
1130
1617
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-9707
SELECT + - 30 DIV col2 + col2 AS col1 FROM tab0 AS cor0
----
-29
33
82
skipif mysql # not compatible
query I rowsort label-9707
SELECT + - 30 / col2 + col2 AS col1 FROM tab0 AS cor0
----
-29
33
82
query I rowsort
SELECT - ( - col0 ) * - col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - - col2 * col0 + - col2 * col1 FROM tab0 AS cor0
----
-164
-2046
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-9710
SELECT - col0 - - col1 * col2 DIV - col2 FROM tab0
----
-110
-132
-180
skipif mysql # not compatible
query I rowsort label-9710
SELECT - col0 - - col1 * col2 / - col2 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT ALL col0 + - col0 + - col1 AS col2 FROM tab0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9712
SELECT ALL tab1.col1 + + col2 + + col1 * - col2 DIV - col2 FROM tab1
----
106
122
77
skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL tab1.col1 + + col2 + + col1 * - col2 / - col2 FROM tab1
----
106
122
77
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( col1 * tab0.col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9714
SELECT DISTINCT + col2 DIV col2 AS col1 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-9714
SELECT DISTINCT + col2 / col2 AS col1 FROM tab0
----
1
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( col0 / col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9716
SELECT ALL + col0 * + col2 + tab1.col2 + col2 DIV col2 AS col1 FROM tab1
----
217
3706
7777
skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL + col0 * + col2 + tab1.col2 + col2 / col2 AS col1 FROM tab1
----
217
3706
7777
query III rowsort
SELECT * FROM tab1 WHERE col0 * col0 - + col0 NOT IN ( + col2 + col1 * - col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
onlyif mysql # use DIV operator for integer division
query I rowsort label-9718
SELECT DISTINCT - col0 DIV + col0 AS col1 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-9718
SELECT DISTINCT - col0 / + col0 AS col1 FROM tab0
----
-1
query I rowsort
SELECT cor0.col2 AS col1 FROM tab1, tab1 AS cor0 WHERE ( NULL ) >= NULL
----
query I rowsort
SELECT DISTINCT - col2 * + col2 * col2 FROM tab0 cor0
----
-1
-35937
-551368
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9722
SELECT ALL - col2 DIV + tab2.col0 + col1 AS col0 FROM tab2
----
17
28
59
skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL - col2 / + tab2.col0 + col1 AS col0 FROM tab2
----
17
28
59
query I rowsort
SELECT ALL col2 + - col0 AS col1 FROM tab2
----
-41
-52
20
query I rowsort
SELECT col0 * tab0.col0 + - col2 * tab0.col0 AS col0 FROM tab0
----
-216
1190
623
query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 BETWEEN col1 AND NULL
----
query I rowsort
SELECT DISTINCT - col0 + - col1 * col0 + + col1 FROM tab2
----
-1405
-193
-4621
onlyif mysql # use DIV operator for integer division
query I rowsort label-9727
SELECT - col0 DIV + col1 + + col0 * col0 AS col2 FROM tab0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-9727
SELECT - col0 / + col1 + + col0 * col0 AS col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT DISTINCT col0 + col1 * + col0 * + col1 + col2 FROM tab0
----
177561
329351
737180
query I rowsort
SELECT ALL - col0 + col0 * tab2.col1 AS col2 FROM tab2
----
1264
210
4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - tab0.col1 * col2 col0 FROM tab0 WHERE NOT col2 = ( + col0 )
----
-132
-2862
-7551
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL ) OR NOT NULL >= NULL
----
query I rowsort
SELECT - col0 * + col1 AS col2 FROM tab2 cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 + cor0.col0 col1 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT col0 * col0 + col1 AS col0 FROM tab2
----
6143
6258
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9735
SELECT ALL - col1 DIV col2 + col2 AS col1 FROM tab0 AS cor0
----
-96
31
81
skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL - col1 / col2 + col2 AS col1 FROM tab0 AS cor0
----
-96
31
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-9736
SELECT ALL - + col2 DIV col1 + col1 * col0 * col1 AS col0 FROM tab2 AS cor0
----
22829
271518
6727
skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL - + col2 / col1 + col1 * col0 * col1 AS col0 FROM tab2 AS cor0
----
22829
271518
6727
query I rowsort
SELECT ALL + cor0.col0 + + cor0.col1 + col1 FROM tab1 AS cor0
----
106
55
84
query I rowsort
SELECT ALL + col2 * + col2 * + col1 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT ALL - col0 + + cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT DISTINCT col2 + col1 AS col1 FROM tab0 cor0
----
119
173
98
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col0 + col0 + + col0
----
query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab1 AS cor0 WHERE + col0 * - col2 IN ( - cor0.col2 )
----
query I rowsort
SELECT - tab2.col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT DISTINCT col1 - + col1 AS col0 FROM tab1 WHERE col2 * col1 + + col2 * col0 BETWEEN col1 AND col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9746
SELECT DISTINCT col1 DIV + col0 AS col1 FROM tab2
----
0
4
skipif mysql # not compatible
query I rowsort label-9746
SELECT DISTINCT col1 / + col0 AS col1 FROM tab2
----
0
4
query I rowsort
SELECT ALL + + col2 * + col0 + cor0.col0 * + col2 * col2 AS col2 FROM tab2 AS cor0
----
117078
5292
54756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT 12 * + col2 + col1 FROM tab2 AS cor0
----
355
371
473
query I rowsort
SELECT + 43 * 99 * + col2 FROM tab0 AS cor0
----
140481
349074
4257
query I rowsort
SELECT ALL - + cor0.col0 * col0 + + col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT - + col1 * ( col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * col2 + cor0.col0 * - ( col0 ) * - col2 + 74 col2 FROM tab2 AS cor0
----
156724
236586
560
onlyif mysql # use DIV operator for integer division
query I rowsort label-9754
SELECT ALL - 55 * + 42 + col0 DIV - col1 AS col1 FROM tab2 cor0
----
-2310
-2311
-2314
skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL - 55 * + 42 + col0 / - col1 AS col1 FROM tab2 cor0
----
-2310
-2311
-2314
query I rowsort
SELECT + + col0 * - 29 AS col2 FROM tab2 AS cor0
----
-203
-2262
-2291
query I rowsort
SELECT DISTINCT + + 5 * + 36 AS col0 FROM tab2 AS cor0
----
180
query I rowsort
SELECT ALL + 77 * + col1 + + col2 AS col0 FROM tab0 AS cor0
----
6655
7089
7470
query I rowsort
SELECT + + 58 * col0 AS col1 FROM tab0 AS cor0
----
1392
2030
5162
query I rowsort
SELECT DISTINCT - 13 * col0 + col1 FROM tab2 AS cor0
----
-1010
-60
-955
query I rowsort
SELECT ( - col0 * col1 ) + col0 FROM tab0
----
-2040
-3360
-8010
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0 CROSS JOIN tab0 AS cor1
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993
query I rowsort
SELECT + cor0.col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT + col0 * col1 - + col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT ALL - col0 * + 24 * + col0 FROM tab1 cor0
----
-153600
-216
-98304
query I rowsort
SELECT - col0 + - 51 * + col0 FROM tab1 AS cor0
----
-156
-3328
-4160
query I rowsort
SELECT ALL - + col0 + ( + col1 ) * col1 + col0 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
1003
6451
9487
query I rowsort
SELECT DISTINCT col2 * - col0 + + col2 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT - col1 * ( col1 * col1 ) + - col2 + col0 AS col0 FROM tab2 AS cor0
----
-205327
-29811
-4872
onlyif mysql # use DIV operator for integer division
query I rowsort label-9769
SELECT col2 * ( + cor0.col1 ) + - col1 DIV 98 col0 FROM tab1 cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9769
SELECT col2 * ( + cor0.col1 ) + - col1 / 98 col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT col2 + - col2 * - 3 + - 95 FROM tab1
----
121
133
289
query I rowsort
SELECT DISTINCT col0 + col0 * col2 FROM tab0
----
70
7387
816
query I rowsort
SELECT - col1 * - tab2.col1 AS col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT ALL tab2.col0 + col2 * col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT col2 * col2 + - col2 AS col0 FROM tab0
----
0
1056
6642
query I rowsort
SELECT ALL 86 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
query I rowsort
SELECT ALL cor0.col0 * - col2 * col2 + - col1 FROM tab2 AS cor0
----
-114093
-5134
-52787
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 79 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT 51 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5
query I rowsort
SELECT + col0 + - tab1.col0 + col2 FROM tab1
----
54
57
96
query I rowsort
SELECT cor1.col2 + + cor0.col1 + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 59ac2e14501603043dd1d5aed70db3cc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9781
SELECT + CAST( + col1 AS SIGNED ) + col1 + + col2 * col2 FROM tab1 AS cor0
----
2968
3269
9242
skipif mysql # not compatible
query I rowsort label-9781
SELECT + CAST ( + col1 AS INTEGER ) + col1 + + col2 * col2 FROM tab1 AS cor0
----
2968
3269
9242
query I rowsort
SELECT - 0 + + ( col1 ) + col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT cor0.col1 + col0 + cor0.col2 AS col2 FROM tab1 AS cor0
----
131
189
83
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 8ce7eaf1d4fdd7c890ea84abed830333
query I rowsort
SELECT + col2 * ( + col1 ) * + col2 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT + 61 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT - 64 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9788
SELECT - - CAST( NULL AS SIGNED ) * col0 + - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9788
SELECT - - CAST ( NULL AS INTEGER ) * col0 + - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9789
SELECT CAST( NULL AS SIGNED ) + 47 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9789
SELECT CAST ( NULL AS INTEGER ) + 47 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 76 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0
query I rowsort
SELECT ALL col0 * - col1 + col0 * - col0 * - col2 FROM tab0 AS cor0
----
-2170
16944
641423
onlyif mysql # use DIV operator for integer division
query I rowsort label-9792
SELECT - + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-9792
SELECT - + col1 / col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT - - ( col0 ) * - col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + - col1 + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT ALL + col0 + + 3 FROM tab1 AS cor0
----
6
67
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9796
SELECT + col1 + - cor0.col2 DIV col2 AS col1 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-9796
SELECT + col1 + - cor0.col2 / col2 AS col1 FROM tab0 AS cor0
----
85
90
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 73 + col2 col1 FROM tab1 AS cor0
----
140
153
182
query I rowsort
SELECT DISTINCT + - col2 * 51 AS col1 FROM tab0 AS cor0
----
-1683
-4182
-51
query I rowsort
SELECT + col0 * + 81 AS col2 FROM tab1 AS cor0
----
243
5184
6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-9800
SELECT - + cor0.col0 DIV col0 AS col1 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9800
SELECT - + cor0.col0 / col0 AS col1 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT + col2 * ( ( col0 ) ) * + ( - cor0.col0 ) FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT - col1 + + 75 FROM tab0 AS cor0
----
-11
-16
-22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 * col0 + 48 * - ( - col2 ) - col0 col1 FROM tab2
----
1310
1404
1982
onlyif mysql # use DIV operator for integer division
query I rowsort label-9804
SELECT 81 + + col0 DIV + tab0.col0 FROM tab0
----
82
82
82
skipif mysql # not compatible
query I rowsort label-9804
SELECT 81 + + col0 / + tab0.col0 FROM tab0
----
82
82
82
query I rowsort
SELECT DISTINCT col0 * col2 + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL col0 + - col0 - + col2 * col1 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - col0 + + col1 * col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT + cor0.col1 * - 63 FROM tab0 AS cor0
----
-5418
-5733
-6111
query I rowsort
SELECT - col2 - + col1 * col0 FROM tab2 cor0
----
-1381
-244
-4628
query I rowsort
SELECT ALL col0 + - col2 * col2 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT DISTINCT + cor0.col1 * 75 FROM tab2 AS cor0
----
1275
2325
4425
query I rowsort
SELECT + col0 + + 64 AS col1 FROM tab1 AS cor0
----
128
144
67
query I rowsort
SELECT DISTINCT col2 + ( - col2 * col2 ) AS col2 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT DISTINCT cor0.col1 + + 83 AS col2 FROM tab0 AS cor0
----
169
174
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9816
SELECT + col2 + - CAST( NULL AS DECIMAL ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9816
SELECT + col2 + - CAST ( NULL AS REAL ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * ( + col2 ) + col0 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-9818
SELECT ALL col1 * - col0 - + 81 DIV col0 col0 FROM tab0 cor0
----
-2067
-3397
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL col1 * - col0 - + 81 / col0 col0 FROM tab0 cor0
----
-2067
-3397
-8099
query I rowsort
SELECT + col2 - col1 AS col0 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT ( col0 ) * col1 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT 92 - + col0 * col0 FROM tab1
----
-4004
-6308
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 * col2 + + col0 * ( col0 * + 74 ) + col1 col1 FROM tab2
----
451367
463447
4791
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9823
SELECT CAST( cor0.col2 AS SIGNED ) FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-9823
SELECT CAST ( cor0.col2 AS INTEGER ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + 53 * col2 FROM tab0 cor0
----
1749
4346
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-9825
SELECT ALL + col0 + col0 * col0 DIV - col0 col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL + col0 + col0 * col0 / - col0 col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 * - 38 AS col2 FROM tab0
----
-3268
-3458
-3686
query I rowsort
SELECT + cor1.col1 AS col0 FROM tab0, tab0 AS cor0, tab1, tab0 cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
query I rowsort
SELECT ALL + 15 * tab2.col0 FROM tab2
----
105
1170
1185
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 col2 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9830
SELECT DISTINCT - CAST( NULL AS SIGNED ) col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9830
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
NULL
query I rowsort
SELECT - 22 AS col0 FROM tab2
----
-22
-22
-22
onlyif mysql # use DIV operator for integer division
query I rowsort label-9832
SELECT DISTINCT - ( - col2 ) DIV + col0 col1 FROM tab2
----
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9832
SELECT DISTINCT - ( - col2 ) / + col0 col1 FROM tab2
----
0
3
query I rowsort
SELECT ALL + 24 * - col2 FROM tab0 AS cor0
----
-1968
-24
-792
query I rowsort
SELECT + 38 + col2 AS col2 FROM tab2 AS cor0
----
64
65
76
query I rowsort
SELECT + 6 + - cor0.col0 * + col2 FROM tab0 cor0
----
-29
-7292
-786
query I rowsort
SELECT DISTINCT - col1 * 46 AS col1 FROM tab2
----
-1426
-2714
-782
query I rowsort
SELECT + col2 + col0 * - col0 AS col2 FROM tab2
----
-22
-6058
-6203
query I rowsort
SELECT - 77 AS col0 FROM tab2
----
-77
-77
-77
query I rowsort
SELECT ALL - col0 * + col2 - 9 FROM tab2 AS cor0
----
-198
-2037
-3011
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col0 ) col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - - 67 + + col2 FROM tab1 AS cor0
----
121
124
163
query I rowsort
SELECT ALL ( + cor0.col2 ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + + col2 + - col1 * - col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT + 17 * col2 AS col1 FROM tab2 AS cor0
----
442
459
646
query I rowsort
SELECT DISTINCT col1 * col1 * + col0 FROM tab1 AS cor0
----
13520
2028
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-9846
SELECT ALL - 20 DIV col1 FROM tab1 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-9846
SELECT ALL - 20 / col1 FROM tab1 AS cor0
----
-1
-2
0
query I rowsort
SELECT - - cor0.col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9848
SELECT DISTINCT + - 55 + + col2 / CAST( NULL AS DECIMAL ) col1 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9848
SELECT DISTINCT + - 55 + + col2 / CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - tab1.col1 + ( col0 ) AS col0 FROM tab1
----
-23
54
67
query I rowsort
SELECT + - col2 + - ( - 60 * + col0 ) AS col2 FROM tab0 AS cor0
----
1407
2099
5258
query I rowsort
SELECT DISTINCT - + cor0.col2 * - 35 + col2 * + col0 AS col1 FROM tab0 AS cor0
----
10168
1947
70
query I rowsort
SELECT - col0 * col0 + 67 AS col2 FROM tab1 AS cor0
----
-4029
-6333
58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9853
SELECT + col2 + - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9853
SELECT + col2 + - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * + col0 + 15 FROM tab1 AS cor0
----
1055
655
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * cor0.col2 col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT + col1 + 14 AS col0 FROM tab1
----
24
27
40
query I rowsort
SELECT - col1 * + ( col0 ) + - col0 AS col2 FROM tab0 AS cor0
----
-2088
-3430
-8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9858
SELECT CAST( - 10 AS SIGNED ) * col0 * - cor0.col1 + col1 FROM tab0 AS cor0
----
20726
34047
81081
skipif mysql # not compatible
query I rowsort label-9858
SELECT CAST ( - 10 AS INTEGER ) * col0 * - cor0.col1 + col1 FROM tab0 AS cor0
----
20726
34047
81081
query I rowsort
SELECT DISTINCT - - 98 + col1 * col2 + ( - 52 ) AS col0 FROM tab1 AS cor0
----
1294
1450
616
query I rowsort
SELECT ALL ( - col2 ) * - col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9862
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + 9 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9862
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + 9 FROM tab1 cor0
----
NULL
query I rowsort
SELECT ALL + - cor0.col0 + col1 + + col1 * 75 FROM tab0 AS cor0
----
6512
6827
7337
onlyif mysql # use DIV operator for integer division
query I rowsort label-9864
SELECT ALL + cor0.col1 DIV col0 + + col0 AS col2 FROM tab1 AS cor0
----
11
64
80
skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL + cor0.col1 / col0 + + col0 AS col2 FROM tab1 AS cor0
----
11
64
80
query I rowsort
SELECT ALL + - ( + col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - 77 + col1 FROM tab2 cor0
----
-18
-46
-60
query I rowsort
SELECT DISTINCT 59 * + col2 FROM tab0 AS cor0
----
1947
4838
59
query I rowsort
SELECT ALL cor1.col2 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - ( - col1 ) + col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - tab0.col1 + - col0 + - ( - tab0.col1 + + col0 ) * - col0 AS col0 FROM tab0
----
-1598
-2302
-358
onlyif mysql # use DIV operator for integer division
query I rowsort label-9871
SELECT + col2 + col0 DIV col0 AS col2 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-9871
SELECT + col2 + col0 / col0 AS col2 FROM tab1
----
55
58
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9872
SELECT tab0.col0 + - col2 DIV + col0 FROM tab0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-9872
SELECT tab0.col0 + - col2 / + col0 FROM tab0
----
23
35
89
query I rowsort
SELECT DISTINCT - 33 + col1 FROM tab0
----
53
58
64
query I rowsort
SELECT - - col0 + + ( 49 ) AS col1 FROM tab2 AS cor0
----
127
128
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + col1 * - 57 + col0 col1 FROM tab1 cor0
----
-1505
-516
-674
query I rowsort
SELECT ALL - 60 + col1 * col2 FROM tab2
----
1474
586
777
query I rowsort
SELECT ALL - 96 * col0 * + col0 FROM tab1
----
-393216
-614400
-864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + cor0.col1 + - cor0.col0 col1 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT DISTINCT + col2 + + ( col0 ) AS col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT ALL + col2 + - col0 * col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT + col0 * - col1 * 52 + col1 FROM tab1 AS cor0
----
-33270
-4030
-54067
onlyif mysql # use DIV operator for integer division
query I rowsort label-9882
SELECT ALL + - col2 + col1 * 59 DIV - col1 FROM tab2 AS cor0
----
-85
-86
-97
skipif mysql # not compatible
query I rowsort label-9882
SELECT ALL + - col2 + col1 * 59 / - col1 FROM tab2 AS cor0
----
-85
-86
-97
query I rowsort
SELECT - + col1 * col1 + cor0.col0 FROM tab0 AS cor0
----
-7372
-8192
-9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-9884
SELECT DISTINCT - - ( col0 ) + - col0 DIV + 40 col2 FROM tab0 AS cor0
----
24
35
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9884
SELECT DISTINCT - - ( col0 ) + - col0 / + 40 col2 FROM tab0 AS cor0
----
24
35
87
query I rowsort
SELECT ALL - ( 46 ) FROM tab0 cor0
----
-46
-46
-46
onlyif mysql # use DIV operator for integer division
query I rowsort label-9886
SELECT + - 0 DIV col0 AS col1 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9886
SELECT + - 0 / col0 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 16 * + cor0.col1 + col0 * + col0 AS col1 FROM tab1 AS cor0
----
-407
3936
6192
query I rowsort
SELECT + col0 * - cor0.col2 * col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT DISTINCT + + col0 * col0 AS col2 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT ( col1 ) AS col2 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - + col2 * + 37 * - col1 AS col2 FROM tab0 AS cor0
----
105006
276094
3589
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9892
SELECT DISTINCT + CAST( col1 AS SIGNED ) FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-9892
SELECT DISTINCT + CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9893
SELECT + 43 DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9893
SELECT + 43 / + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - 28 FROM tab1 AS cor0
----
-28
query I rowsort
SELECT ALL 25 AS col0 FROM tab1 AS cor0
----
25
25
25
query I rowsort
SELECT - 87 + col0 + - 87 AS col1 FROM tab2 AS cor0
----
-167
-95
-96
query I rowsort
SELECT + 69 + + cor0.col2 FROM tab1 AS cor0
----
123
126
165
query I rowsort
SELECT - 19 + cor0.col0 FROM tab2 AS cor0
----
-12
59
60
query I rowsort
SELECT DISTINCT 25 * - col2 * 94 AS col1 FROM tab1 AS cor0
----
-126900
-133950
-225600
query I rowsort
SELECT - col0 * col1 + - col2 * 51 + - col2 FROM tab2 AS cor0
----
-1621
-3319
-5954
query I rowsort
SELECT ALL ( col0 ) * + col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT + 11 FROM tab0, tab2 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT ( - col2 ) * ( - 43 + - cor0.col2 * - 15 ) AS col2 FROM tab1 AS cor0
----
-134112
-41418
-46284
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9904
SELECT DISTINCT + CAST( NULL AS SIGNED ) * tab2.col2 * col2 AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9904
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * tab2.col2 * col2 AS col0 FROM tab2
----
NULL
query I rowsort
SELECT + 55 + col2 FROM tab0 AS cor0
----
137
56
88
query I rowsort
SELECT + cor0.col1 + - col2 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT ALL - col2 * + col1 + + col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT + 31 + - col0 AS col1 FROM tab0 cor0
----
-4
-58
7
query I rowsort
SELECT DISTINCT + + col0 + 42 + cor0.col2 FROM tab1 AS cor0
----
163
218
99
query I rowsort
SELECT col0 * + 75 + col1 FROM tab1 AS cor0
----
251
4810
6013
query I rowsort
SELECT DISTINCT + col0 + + 43 AS col0 FROM tab0 AS cor0
----
132
67
78
query I rowsort
SELECT - 52 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col2 * - col0 * col2 col1 FROM tab1 cor0
----
208000
737360
8751
onlyif mysql # use DIV operator for integer division
query I rowsort label-9914
SELECT DISTINCT + col1 DIV - col0 AS col1 FROM tab2
----
-4
0
skipif mysql # not compatible
query I rowsort label-9914
SELECT DISTINCT + col1 / - col0 AS col1 FROM tab2
----
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 * 41 ) col1 FROM tab2
----
-1066
-1107
-1558
onlyif mysql # use DIV operator for integer division
query I rowsort label-9916
SELECT ALL - col1 DIV + tab1.col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL - col1 / + tab1.col2 FROM tab1
----
0
0
0
query I rowsort
SELECT - - cor0.col1 * 39 + - col1 FROM tab2 AS cor0
----
1178
2242
646
query I rowsort
SELECT ALL + 8 AS col1 FROM tab1
----
8
8
8
query I rowsort
SELECT col2 + + 1 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT - 12 + tab0.col2 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 0f6242b1aa1ea18282fcb2b0d5518f1e
query I rowsort
SELECT ALL ( - 85 + - tab0.col0 ) AS col0 FROM tab0
----
-109
-120
-174
query I rowsort
SELECT DISTINCT + 20 AS col2 FROM tab1, tab2 AS cor0
----
20
query I rowsort
SELECT ALL - ( - 82 + col2 ) AS col1 FROM tab2
----
44
55
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-9924
SELECT DISTINCT tab0.col1 DIV 49 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-9924
SELECT DISTINCT tab0.col1 / 49 FROM tab0
----
1
query I rowsort
SELECT col0 - - col0 * - col1 AS col1 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT ALL col1 * 39 FROM tab0
----
3354
3549
3783
onlyif mysql # use DIV operator for integer division
query I rowsort label-9927
SELECT + col1 DIV + ( - 35 ) col0 FROM tab0 AS cor0
----
-2
-2
-2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9927
SELECT + col1 / + ( - 35 ) col0 FROM tab0 AS cor0
----
-2
-2
-2
onlyif mysql # use DIV operator for integer division
query I rowsort label-9928
SELECT + col1 DIV ( 25 ) FROM tab0 AS cor0
----
3
3
3
skipif mysql # not compatible
query I rowsort label-9928
SELECT + col1 / ( 25 ) FROM tab0 AS cor0
----
3
3
3
query I rowsort
SELECT + + col1 * ( col1 ) AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT col2 * col1 + - col1 + - col2 AS col2 FROM tab1 AS cor0
----
1139
1324
503
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9931
SELECT CAST( NULL AS DECIMAL ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9931
SELECT CAST ( NULL AS REAL ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9932
SELECT 70 DIV 87 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9932
SELECT 70 / 87 AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9933
SELECT - ( - col2 ) * col1 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9933
SELECT - ( - col2 ) * col1 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 + - tab0.col2 AS col0 FROM tab0
----
53
9
96
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
3
64
80
query I rowsort
SELECT col2 * - 69 + + tab2.col2 + col0 AS col1 FROM tab2
----
-1690
-1829
-2505
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL + + CAST ( + col2 AS REAL ) col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT col2 * - 96 FROM tab0 AS cor0
----
-3168
-7872
-96
query I rowsort
SELECT DISTINCT col0 * col0 + col2 AS col1 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT DISTINCT + col0 + col1 * - col1 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT ( - ( - col1 ) ) * ( 1 ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - tab2.col0 * + col0 + col1 FROM tab2
----
-18
-6025
-6224
onlyif mysql # use DIV operator for integer division
query I rowsort label-9943
SELECT ALL + col0 * col1 DIV + ( - col0 ) + tab0.col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL + col0 * col1 / + ( - col0 ) + tab0.col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + 35 AS col1 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT DISTINCT + 37 * + col1 AS col0 FROM tab1 AS cor0
----
370
481
962
query I rowsort
SELECT cor0.col1 * col1 + - col2 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT - + 5 * col2 * - 8 + + col1 AS col0 FROM tab1 AS cor0
----
2186
2290
3853
query I rowsort
SELECT - 55 * + col2 * cor0.col1 + - col0 * + col1 * 10 FROM tab1 cor0
----
-37750
-78000
-79040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9949
SELECT - + CAST( NULL AS SIGNED ) col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9949
SELECT - + CAST ( NULL AS INTEGER ) col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT col0 * - 77 AS col2 FROM tab0 AS cor0
----
-1848
-2695
-6853
query I rowsort
SELECT DISTINCT + col2 + 4 + + col1 FROM tab1 AS cor0
----
113
71
84
query I rowsort
SELECT + col1 * - 45 AS col0 FROM tab1 cor0
----
-1170
-450
-585
query I rowsort
SELECT col0 + + col0 * + 96 AS col2 FROM tab0 AS cor0
----
2328
3395
8633
query I rowsort
SELECT ALL - + cor0.col2 + 24 + - col1 FROM tab2 AS cor0
----
-31
-34
-61
query I rowsort
SELECT DISTINCT 66 * - tab2.col0 AS col0 FROM tab2
----
-462
-5148
-5214
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + 59 * 96 + - col0 col1 FROM tab2 AS cor0
----
-175591
-334254
-96367
query I rowsort
SELECT + col2 * + cor0.col1 + 52 FROM tab1 AS cor0
----
1300
1456
622
query I rowsort
SELECT ALL col1 + ( col1 * col0 ) - col1 * 87 AS col1 FROM tab0 AS cor0
----
-4947
-5332
273
query I rowsort
SELECT ALL - col2 * 66 FROM tab1 AS cor0
----
-3564
-3762
-6336
query I rowsort
SELECT ALL col2 * - col2 + col2 AS col0 FROM tab2 cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL col1 * 48 - col1 AS col0 FROM tab0 AS cor0
----
4042
4277
4559
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9962
SELECT col0 + CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9962
SELECT col0 + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + - col1 AS col0 FROM tab1 cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 63 + ( col0 ) col2 FROM tab0 AS cor0
----
-5394
-5644
-6076
query I rowsort
SELECT DISTINCT + col0 + - col1 * col2 - col1 * 18 FROM tab1 AS cor0
----
-1402
-1869
-686
query I rowsort
SELECT + col2 * 60 + + col1 FROM tab0 AS cor0
----
157
2066
5011
onlyif mysql # use DIV operator for integer division
query I rowsort label-9967
SELECT ALL + + col2 DIV - cor0.col1 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL + + col2 / - cor0.col1 FROM tab2 AS cor0
----
-2
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9968
SELECT - cor0.col2 + + 70 + tab0.col0 DIV 30 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 96a4a0471e683c5fcec7ca6a4cecfad2
skipif mysql # not compatible
query I rowsort label-9968
SELECT - cor0.col2 + + 70 + tab0.col0 / 30 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 96a4a0471e683c5fcec7ca6a4cecfad2
query I rowsort
SELECT ALL ( 18 ) FROM tab1, tab1 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
onlyif mysql # use DIV operator for integer division
query I rowsort label-9970
SELECT ALL - tab0.col0 DIV - ( + ( col1 ) ) AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9970
SELECT ALL - tab0.col0 / - ( + ( col1 ) ) AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + 52 + + col2 * ( - 21 ) + col2 FROM tab0 AS cor0
----
-1588
-608
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT col1 - + col2 * + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT col0 * - cor0.col0 + + col0 FROM tab0 AS cor0
----
-1190
-552
-7832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 - col1 col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - + cor0.col2 + + col2 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 + col2 + - 42 * - col0 FROM tab2 AS cor0
----
3361
3373
352
query I rowsort
SELECT ALL col0 + col2 * - col0 FROM tab0 cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT + + cor0.col0 + col0 * + col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT - 18 * tab2.col0 + + col0 FROM tab2
----
-119
-1326
-1343
query I rowsort
SELECT DISTINCT col1 * + 28 - - col2 AS col1 FROM tab1
----
337
460
782
query I rowsort
SELECT - col0 + - 40 - tab2.col0 AS col2 FROM tab2
----
-196
-198
-54
query I rowsort
SELECT ALL col2 * + tab2.col0 - - col0 * + col1 FROM tab2
----
406
4345
6630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 + + col1 col1 FROM tab2
----
110
138
96
query I rowsort
SELECT + 85 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
onlyif mysql # use DIV operator for integer division
query I rowsort label-9986
SELECT DISTINCT - 97 + col1 DIV - ( col1 ) FROM tab1
----
-98
skipif mysql # not compatible
query I rowsort label-9986
SELECT DISTINCT - 97 + col1 / - ( col1 ) FROM tab1
----
-98
query I rowsort
SELECT DISTINCT - + col0 - + col1 AS col0 FROM tab2 AS cor0
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 * - col1 * 38 + col2 col2 FROM tab2 AS cor0
----
-24510
-31779
-58266
query I rowsort
SELECT ALL col2 + + col1 * col1 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT - col0 + - cor0.col1 * + ( 78 ) FROM tab2 AS cor0
----
-1405
-2425
-4680
query I rowsort
SELECT ALL + cor0.col2 * col1 + - 79 + - col1 AS col2 FROM tab0 AS cor0
----
-79
2673
7292
onlyif mysql # use DIV operator for integer division
query I rowsort label-9992
SELECT ALL col2 DIV col0 + - 74 FROM tab2 AS cor0
----
-71
-74
-74
skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL col2 / col0 + - 74 FROM tab2 AS cor0
----
-71
-74
-74
query I rowsort
SELECT + - 62 AS col0 FROM tab0 AS cor0
----
-62
-62
-62
query I rowsort
SELECT DISTINCT - col1 * col1 - + 53 * col2 FROM tab2 AS cor0
----
-2303
-2392
-4859
query I rowsort
SELECT DISTINCT + col1 * - tab1.col0 * col1 + col2 * - tab1.col0 AS col1 FROM tab1
----
-10048
-21200
-2190
query I rowsort
SELECT DISTINCT col0 + + col1 * - 58 FROM tab0 AS cor0
----
-4964
-5189
-5591
query I rowsort
SELECT ALL - col1 * - col2 + 73 FROM tab0 cor0
----
170
2911
7535