hash-threshold 8
statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
INSERT INTO tab0 VALUES(89,91,82)
statement ok
INSERT INTO tab0 VALUES(35,97,1)
statement ok
INSERT INTO tab0 VALUES(24,86,33)
statement ok
INSERT INTO tab1 VALUES(64,10,57)
statement ok
INSERT INTO tab1 VALUES(3,26,54)
statement ok
INSERT INTO tab1 VALUES(80,13,96)
statement ok
INSERT INTO tab2 VALUES(7,31,27)
statement ok
INSERT INTO tab2 VALUES(79,17,38)
statement ok
INSERT INTO tab2 VALUES(78,59,26)
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 91 - + col0 * + ( col0 ) col0 FROM tab1 AS cor0
----
-4005
-6309
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1
SELECT col1 DIV ( - col1 ) + col0 AS col1 FROM tab2
----
6
77
78
skipif mysql # not compatible
query I rowsort label-1
SELECT col1 / ( - col1 ) + col0 AS col1 FROM tab2
----
6
77
78
query I rowsort
SELECT DISTINCT - cor0.col0 * 65 AS col0 FROM tab1, tab2 AS cor0
----
-455
-5070
-5135
query I rowsort
SELECT ALL + - col0 + col1 * col2 FROM tab0 AS cor0
----
2814
62
7373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4
SELECT - - col0 + CAST( col0 AS SIGNED ) * + col2 col0 FROM tab1 AS cor0
----
165
3712
7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4
SELECT - - col0 + CAST ( col0 AS INTEGER ) * + col2 col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL + - col1 + 48 * - col0 * - col1 AS col2 FROM tab1 AS cor0
----
30710
3718
49907
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 FROM tab0 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7
SELECT - CAST( col0 AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-7
SELECT - CAST ( col0 AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + + col0 + cor0.col1 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9
SELECT ALL - ( - 92 ) * - col1 * + CAST( col1 * col1 AS SIGNED ) + col2 AS col0 FROM tab1 cor0
----
-1616938
-202028
-91943
skipif mysql # not compatible
query I rowsort label-9
SELECT ALL - ( - 92 ) * - col1 * + CAST ( col1 * col1 AS INTEGER ) + col2 AS col0 FROM tab1 cor0
----
-1616938
-202028
-91943
query I rowsort
SELECT DISTINCT + 43 + 79 FROM tab2 AS cor0
----
122
query I rowsort
SELECT 77 * col2 FROM tab2 AS cor0
----
2002
2079
2926
query I rowsort
SELECT ALL + 10 + + col1 * + col0 FROM tab0 AS cor0
----
2074
3405
8109
query I rowsort
SELECT - + ( 75 ) AS col1 FROM tab1 cor0
----
-75
-75
-75
onlyif mysql # use DIV operator for integer division
query I rowsort label-14
SELECT DISTINCT - ( col2 ) + - col2 DIV col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-40
skipif mysql # not compatible
query I rowsort label-14
SELECT DISTINCT - ( col2 ) + - col2 / col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-40
query I rowsort
SELECT DISTINCT - - col1 * - 47 + + col0 + + col0 AS col0 FROM tab1 AS cor0
----
-1216
-342
-451
query I rowsort
SELECT + + col0 + + col2 * col2 AS col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT + - 55 AS col0 FROM tab2 cor0
----
-55
-55
-55
query I rowsort
SELECT - col1 * col0 + + col1 * - tab2.col1 FROM tab2
----
-1178
-1632
-8083
query I rowsort
SELECT 55 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT + ( col2 ) + - tab2.col1 * col1 FROM tab2
----
-251
-3455
-934
query I rowsort
SELECT DISTINCT + 98 * col2 AS col0 FROM tab1
----
5292
5586
9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col2 + col1 col1 FROM tab0 cor0
----
-2752
-7371
0
query I rowsort
SELECT + cor0.col2 + - 79 * + col1 AS col0 FROM tab2 AS cor0
----
-1305
-2422
-4635
onlyif mysql # use DIV operator for integer division
query I rowsort label-24
SELECT - col1 DIV 39 FROM tab0 AS cor0
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-24
SELECT - col1 / 39 FROM tab0 AS cor0
----
-2
-2
-2
query I rowsort
SELECT col1 + col0 + col1 AS col2 FROM tab0 cor0
----
196
229
271
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-26
SELECT ALL - + col0 + + CAST( NULL AS DECIMAL ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-26
SELECT ALL - + col0 + + CAST ( NULL AS REAL ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + - col0 col0 FROM tab0 cor0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-28
SELECT - col1 DIV + cor0.col0 FROM tab2 cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-28
SELECT - col1 / + cor0.col0 FROM tab2 cor0
----
-4
0
0
query I rowsort
SELECT cor0.col1 * + 2 + cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
2146
251
3036
query I rowsort
SELECT + col0 * 94 AS col2 FROM tab2 AS cor0
----
658
7332
7426
query I rowsort
SELECT DISTINCT - 35 + - col2 FROM tab0
----
-117
-36
-68
query I rowsort
SELECT ALL 31 * + tab1.col0 + + col1 * col2 * + col1 + + col0 FROM tab1
----
18784
36600
7748
query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col0 FROM tab2, tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + 56 AS col0 FROM tab2
----
56
56
56
query I rowsort
SELECT ALL - col0 + col1 * col0 + - col1 AS col2 FROM tab2
----
1247
179
4465
query I rowsort
SELECT - col1 * col2 + col0 AS col0 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT + col2 * - ( ( col1 ) + - cor0.col1 ) AS col1 FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * tab0.col2 + - col2 + ( - col0 ) col1 FROM tab0
----
-35
1032
6553
query I rowsort
SELECT ALL 76 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
query I rowsort
SELECT ALL 6 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT - col1 + col1 * col0 * col2 FROM tab2 AS cor0
----
119593
51017
5828
onlyif mysql # use DIV operator for integer division
query I rowsort label-42
SELECT col2 DIV 60 + col2 * col0 * col2 AS col2 FROM tab1
----
207936
737281
8748
skipif mysql # not compatible
query I rowsort label-42
SELECT col2 / 60 + col2 * col0 * col2 AS col2 FROM tab1
----
207936
737281
8748
query I rowsort
SELECT ALL + col2 * 48 FROM tab0 AS cor0
----
1584
3936
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 30 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb
query I rowsort
SELECT ALL - + col0 + - 33 AS col2 FROM tab1 AS cor0
----
-113
-36
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 col0 FROM tab2
----
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-47
SELECT col2 + col0 DIV tab1.col0 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-47
SELECT col2 + col0 / tab1.col0 FROM tab1
----
55
58
97
query I rowsort
SELECT - - 58 + 34 FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
onlyif mysql # use DIV operator for integer division
query I rowsort label-49
SELECT ALL + + col0 + + col2 DIV 80 AS col1 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-49
SELECT ALL + + col0 + + col2 / 80 AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL col0 * col1 * 77 AS col1 FROM tab0 cor0
----
158928
261415
623623
query I rowsort
SELECT ALL 56 * - col2 - + col1 AS col0 FROM tab1
----
-3050
-3202
-5389
onlyif mysql # use DIV operator for integer division
query I rowsort label-52
SELECT - + ( - col2 ) + - col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-52
SELECT - + ( - col2 ) + - col0 / - col0 AS col2 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT + tab2.col2 * 28 FROM tab2
----
1064
728
756
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col2 AS REAL ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + - col1 * - 66 FROM tab1 AS cor0
----
1716
660
858
query I rowsort
SELECT 7 + + 81 FROM tab0 cor0
----
88
88
88
query I rowsort
SELECT - cor0.col1 * col2 * + cor0.col2 + col1 AS col0 FROM tab0 AS cor0
----
-611793
-93568
0
query I rowsort
SELECT - + 37 + col2 AS col2 FROM tab1 AS cor0
----
17
20
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) + col2 * + 13 col2 FROM tab1 AS cor0
----
1328
705
805
query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col2 AS col0 FROM tab2, tab1 cor0
----
0
query I rowsort
SELECT - col0 * col0 * 61 FROM tab0 cor0
----
-35136
-483181
-74725
query I rowsort
SELECT - col0 * + col0 + + col0 * col0 AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-63
SELECT ALL + col2 * + cor0.col2 * cor0.col2 + - col0 DIV col1 FROM tab0 AS cor0
----
1
35937
551368
skipif mysql # not compatible
query I rowsort label-63
SELECT ALL + col2 * + cor0.col2 * cor0.col2 + - col0 / col1 FROM tab0 AS cor0
----
1
35937
551368
onlyif mysql # use DIV operator for integer division
query I rowsort label-64
SELECT DISTINCT - - 10 DIV col2 FROM tab0 AS cor0
----
0
10
skipif mysql # not compatible
query I rowsort label-64
SELECT DISTINCT - - 10 / col2 FROM tab0 AS cor0
----
0
10
query I rowsort
SELECT - col0 * col1 + col2 * col0 FROM tab1 AS cor0
----
3008
6640
84
query I rowsort
SELECT - - 27 + col2 * ( + cor0.col2 ) FROM tab0 cor0
----
1116
28
6751
onlyif mysql # use DIV operator for integer division
query I rowsort label-67
SELECT + + col0 DIV - col2 + ( col2 ) * - col2 AS col1 FROM tab1 AS cor0
----
-2916
-3250
-9216
skipif mysql # not compatible
query I rowsort label-67
SELECT + + col0 / - col2 + ( col2 ) * - col2 AS col1 FROM tab1 AS cor0
----
-2916
-3250
-9216
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-69
SELECT ALL col0 + + col1 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-69
SELECT ALL col0 + + col1 / cor0.col1 AS col2 FROM tab0 AS cor0
----
25
36
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 * - col0 col2 FROM tab2 AS cor0
----
-511
-5694
-5767
query I rowsort
SELECT ALL 11 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT - - col2 * + 38 * col2 FROM tab1 AS cor0
----
110808
123462
350208
query I rowsort
SELECT DISTINCT - col2 * col1 * + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT - - col1 + - col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT - col1 + + 30 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-116
-1930
-2413
query I rowsort
SELECT 81 + + col1 * 24 * col2 AS col0 FROM tab1
----
13761
30033
33777
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 + col0 col2 FROM tab0
----
117
128
182
onlyif mysql # use DIV operator for integer division
query I rowsort label-78
SELECT DISTINCT col0 DIV col0 + - col0 FROM tab1
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-78
SELECT DISTINCT col0 / col0 + - col0 FROM tab1
----
-2
-63
-79
query I rowsort
SELECT - 44 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-80
SELECT CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-80
SELECT CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-81
SELECT ALL - - ( col0 ) + col0 DIV col1 AS col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-81
SELECT ALL - - ( col0 ) + col0 / col1 AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT cor0.col1 - - 67 AS col0 FROM tab0 AS cor0
----
153
158
164
query I rowsort
SELECT ALL + + cor0.col2 * col1 + col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
14924
194
5676
onlyif mysql # use DIV operator for integer division
query I rowsort label-84
SELECT ALL col2 DIV - tab2.col1 col1 FROM tab2
----
-2
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-84
SELECT ALL col2 / - tab2.col1 col1 FROM tab2
----
-2
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 * - ( cor0.col0 + ( - 81 ) ) col0 FROM tab1, tab0 AS cor0
----
9 values hashing to ea493a6a73b7dbee65ba58f9fe608628
query I rowsort
SELECT col1 + col1 - col2 FROM tab1
----
-2
-37
-70
query I rowsort
SELECT DISTINCT tab2.col2 - + 7 * tab2.col2 FROM tab2
----
-156
-162
-228
query I rowsort
SELECT DISTINCT + 76 * 85 * + col0 + - col0 - - tab1.col2 FROM tab1
----
19431
413433
516816
query I rowsort
SELECT col0 * 8 AS col0 FROM tab2
----
56
624
632
query I rowsort
SELECT DISTINCT ( + ( - tab2.col1 ) ) - 33 FROM tab2
----
-50
-64
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col0 AS REAL ) col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL 63 * col0 + - col1 AS col0 FROM tab2
----
410
4855
4960
query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT - col2 + 18 * col1 FROM tab2 AS cor0
----
1036
268
531
onlyif mysql # use DIV operator for integer division
query I rowsort label-95
SELECT DISTINCT + + col2 + - col1 DIV - col0 AS col1 FROM tab1 AS cor0
----
57
62
96
skipif mysql # not compatible
query I rowsort label-95
SELECT DISTINCT + + col2 + - col1 / - col0 AS col1 FROM tab1 AS cor0
----
57
62
96
query I rowsort
SELECT DISTINCT - 38 - col1 FROM tab1 cor0
----
-48
-51
-64
query I rowsort
SELECT ALL col0 * + 5 AS col1 FROM tab1 cor0
----
15
320
400
query I rowsort
SELECT ( 45 ) FROM tab2 cor0
----
45
45
45
query I rowsort
SELECT 91 + + col1 * col1 AS col2 FROM tab1 AS cor0
----
191
260
767
query I rowsort
SELECT DISTINCT - + 96 AS col2 FROM tab1 AS cor0
----
-96
query I rowsort
SELECT + - 78 AS col0 FROM tab1 cor0
----
-78
-78
-78
query I rowsort
SELECT + + col1 * 36 AS col0 FROM tab1 AS cor0
----
360
468
936
onlyif mysql # use DIV operator for integer division
query I rowsort label-103
SELECT col0 + - col0 DIV col1 AS col1 FROM tab2
----
7
75
77
skipif mysql # not compatible
query I rowsort label-103
SELECT col0 + - col0 / col1 AS col1 FROM tab2
----
7
75
77
query I rowsort
SELECT DISTINCT ( + tab1.col2 ) AS col0 FROM tab1, tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL tab0.col2 * - 7 FROM tab0
----
-231
-574
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-106
SELECT - col1 DIV - col1 + 58 FROM tab2 cor0
----
59
59
59
skipif mysql # not compatible
query I rowsort label-106
SELECT - col1 / - col1 + 58 FROM tab2 cor0
----
59
59
59
query I rowsort
SELECT + col2 - - col1 AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + 32 AS col2 FROM tab1, tab2 AS cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to 6bef041528d0147be26f7de162c66a5f
query I rowsort
SELECT ALL - - cor0.col2 + - 71 FROM tab0 AS cor0
----
-38
-70
11
query I rowsort
SELECT DISTINCT + 36 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
36
query I rowsort
SELECT ALL + col1 + - col0 + tab1.col0 FROM tab1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-112
SELECT DISTINCT col1 DIV + col0 + col0 * + col2 AS col0 FROM tab1
----
170
3648
7680
skipif mysql # not compatible
query I rowsort label-112
SELECT DISTINCT col1 / + col0 + col0 * + col2 AS col0 FROM tab1
----
170
3648
7680
query I rowsort
SELECT ALL - tab2.col2 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
onlyif mysql # use DIV operator for integer division
query I rowsort label-114
SELECT DISTINCT - col0 DIV 11 FROM tab2 AS cor0
----
-7
0
skipif mysql # not compatible
query I rowsort label-114
SELECT DISTINCT - col0 / 11 FROM tab2 AS cor0
----
-7
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-115
SELECT cor0.col0 + + CAST( + cor0.col2 AS SIGNED ) + - col1 col1 FROM tab0 AS cor0
----
-29
-61
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-115
SELECT cor0.col0 + + CAST ( + cor0.col2 AS INTEGER ) + - col1 col1 FROM tab0 AS cor0
----
-29
-61
80
query I rowsort
SELECT - 6 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 8be8910507908e6353d02a545b748252
query I rowsort
SELECT ALL + col0 + - 55 FROM tab0 cor0
----
-20
-31
34
query I rowsort
SELECT + col0 * col1 + col0 * col0 FROM tab1 cor0
----
4736
7440
87
query I rowsort
SELECT - tab0.col2 * - 32 FROM tab0
----
1056
2624
32
query I rowsort
SELECT cor0.col0 * ( 52 ) + col2 * 18 FROM tab0 AS cor0
----
1838
1842
6104
query I rowsort
SELECT - col0 + 32 * - 90 AS col2 FROM tab0
----
-2904
-2915
-2969
query I rowsort
SELECT + - col1 + - col1 * + col0 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-123
SELECT + + col2 * - col0 + + ( col2 ) DIV ( cor0.col1 ) FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-123
SELECT + + col2 * - col0 + + ( col2 ) / ( cor0.col1 ) FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col1 + - ( + col0 * col2 ) + col1 col0 FROM tab2 AS cor0
----
-127
-1910
-2968
onlyif mysql # use DIV operator for integer division
query I rowsort label-125
SELECT - 85 DIV + cor0.col1 FROM tab2 AS cor0
----
-1
-2
-5
skipif mysql # not compatible
query I rowsort label-125
SELECT - 85 / + cor0.col1 FROM tab2 AS cor0
----
-1
-2
-5
query I rowsort
SELECT ( 56 ) FROM tab1, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 9cee91ca9c60ba6e45a33b388a3b7d9b
query I rowsort
SELECT - ( - 14 ) AS col0 FROM tab2 AS cor0
----
14
14
14
query I rowsort
SELECT + 47 * + col1 AS col1 FROM tab1
----
1222
470
611
query I rowsort
SELECT - tab2.col2 * + tab2.col2 * + tab2.col0 AS col2 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT + col1 * col0 - + 78 AS col0 FROM tab1 AS cor0
----
0
562
962
query I rowsort
SELECT ALL - 84 * - col1 + + col1 FROM tab0 AS cor0
----
7310
7735
8245
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 + col2 + + cor0.col2 + + col1 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT - - col2 + 21 * 23 + cor0.col0 FROM tab1 AS cor0
----
540
604
659
query I rowsort
SELECT + col1 + 18 AS col1 FROM tab2 AS cor0
----
35
49
77
query I rowsort
SELECT col2 + - col0 * ( ( + col0 ) ) FROM tab2
----
-22
-6058
-6203
query I rowsort
SELECT DISTINCT - ( tab0.col0 ) * - ( + col1 ) + + col0 FROM tab0
----
2088
3430
8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-138
SELECT ALL 75 * col1 + CAST( + col0 AS SIGNED ) FROM tab1
----
1055
1953
814
skipif mysql # not compatible
query I rowsort label-138
SELECT ALL 75 * col1 + CAST ( + col0 AS INTEGER ) FROM tab1
----
1055
1953
814
query I rowsort
SELECT + col2 + 72 * + cor0.col1 FROM tab2 cor0
----
1262
2259
4274
onlyif mysql # use DIV operator for integer division
query I rowsort label-140
SELECT + - col0 * ( - col1 ) - - col0 DIV cor0.col0 FROM tab2 cor0
----
1344
218
4603
skipif mysql # not compatible
query I rowsort label-140
SELECT + - col0 * ( - col1 ) - - col0 / cor0.col0 FROM tab2 cor0
----
1344
218
4603
query I rowsort
SELECT + + ( - col2 ) + - col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL col1 * col0 * 87 - col2 AS col0 FROM tab2 AS cor0
----
116803
18852
400348
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + cor0.col1 col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT col1 * - col0 + + ( cor0.col1 ) FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT 2 + - col0 * col0 * - cor0.col0 FROM tab0 AS cor0
----
13826
42877
704971
query I rowsort
SELECT DISTINCT - + col0 * + col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + ( col2 ) ) col1 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT - col2 * col0 * - col2 AS col1 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT DISTINCT - - col1 * - 66 AS col2 FROM tab1 cor0
----
-1716
-660
-858
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 + + col2 col1 FROM tab0
----
164
2
66
query I rowsort
SELECT + 97 * col0 + + col1 AS col2 FROM tab1
----
317
6218
7773
query I rowsort
SELECT 43 - 81 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3
query I rowsort
SELECT + tab2.col1 * - col0 + - 83 AS col1 FROM tab2
----
-1426
-300
-4685
query I rowsort
SELECT ALL 87 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50
query I rowsort
SELECT ALL + col2 * tab1.col0 + 44 AS col2 FROM tab1
----
206
3692
7724
query I rowsort
SELECT DISTINCT + 89 + col2 * + col0 + col2 FROM tab0 cor0
----
125
7469
914
query I rowsort
SELECT DISTINCT + col1 * + 49 FROM tab0
----
4214
4459
4753
onlyif mysql # use DIV operator for integer division
query I rowsort label-158
SELECT - - cor0.col2 DIV col1 col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-158
SELECT - - cor0.col2 / col1 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + ( - col2 ) + + col0 AS col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL + col0 + 26 AS col2 FROM tab0 cor0
----
115
50
61
query I rowsort
SELECT + ( 75 ) FROM tab0 AS cor0
----
75
75
75
query I rowsort
SELECT DISTINCT ( + col1 ) * col1 + + ( ( + col0 ) ) + ( col1 + + col1 ) AS col1 FROM tab1 AS cor0
----
184
275
731
query I rowsort
SELECT + cor0.col1 - col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL 1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT col1 * - tab1.col1 * - 11 AS col0 FROM tab1
----
1100
1859
7436
query I rowsort
SELECT ALL 68 + + tab1.col0 * col0 AS col1 FROM tab1
----
4164
6468
77
query I rowsort
SELECT ALL - 12 FROM tab2, tab0 cor0 CROSS JOIN tab1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0
query I rowsort
SELECT + - 79 + - col1 AS col2 FROM tab1 AS cor0
----
-105
-89
-92
onlyif mysql # use DIV operator for integer division
query I rowsort label-169
SELECT - + col2 DIV cor0.col2 - + col1 AS col0 FROM tab1 AS cor0
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-169
SELECT - + col2 / cor0.col2 - + col1 AS col0 FROM tab1 AS cor0
----
-11
-14
-27
query I rowsort
SELECT + + ( - 47 ) * cor0.col2 AS col2 FROM tab0 AS cor0
----
-1551
-3854
-47
query I rowsort
SELECT DISTINCT + col0 - + 98 FROM tab2
----
-19
-20
-91
query I rowsort
SELECT DISTINCT + tab2.col1 - col1 AS col2 FROM tab2
----
0
query I rowsort
SELECT ALL ( + col2 ) - - col2 * - col0 AS col1 FROM tab1
----
-108
-3591
-7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-174
SELECT ALL CAST( col2 AS SIGNED ) * + col1 * + col0 - + col0 FROM tab0
----
3360
664029
68088
skipif mysql # not compatible
query I rowsort label-174
SELECT ALL CAST ( col2 AS INTEGER ) * + col1 * + col0 - + col0 FROM tab0
----
3360
664029
68088
query I rowsort
SELECT - ( col0 ) * col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL 85 - + col2 * col2 AS col1 FROM tab2
----
-1359
-591
-644
query I rowsort
SELECT DISTINCT - col2 + - col0 AS col1 FROM tab0 cor0
----
-171
-36
-57
query I rowsort
SELECT - 39 * - col0 + col0 * col1 AS col2 FROM tab2 AS cor0
----
4424
490
7644
query I rowsort
SELECT DISTINCT col0 * + 90 + - col0 AS col0 FROM tab2 AS cor0
----
623
6942
7031
query I rowsort
SELECT 15 + col0 * - col0 FROM tab2
----
-34
-6069
-6226
query I rowsort
SELECT ALL - 41 * cor0.col0 FROM tab0 AS cor0
----
-1435
-3649
-984
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-182
SELECT ALL cor0.col0 + col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-182
SELECT ALL cor0.col0 + col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 * - cor0.col0 * 67 + col2 + + col0 col2 FROM tab2 AS cor0
----
-23416
-261196
-264533
query I rowsort
SELECT ALL - col1 + cor0.col0 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT ALL - 51 AS col1 FROM tab2 cor0
----
-51
-51
-51
query I rowsort
SELECT - + 12 * col0 + 59 FROM tab2 cor0
----
-25
-877
-889
onlyif mysql # use DIV operator for integer division
query I rowsort label-187
SELECT DISTINCT + col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-187
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-188
SELECT + cor0.col0 + col2 * CAST( + ( col1 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
132
2862
7551
skipif mysql # not compatible
query I rowsort label-188
SELECT + cor0.col0 + col2 * CAST ( + ( col1 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL + ( - cor0.col0 ) + - col2 FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-190
SELECT DISTINCT + cor0.col0 * - col1 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-190
SELECT DISTINCT + cor0.col0 * - col1 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
query I rowsort
SELECT DISTINCT 19 * cor0.col1 AS col2 FROM tab0 AS cor0
----
1634
1729
1843
query I rowsort
SELECT cor0.col2 - col2 * - col2 FROM tab1 cor0
----
2970
3306
9312
query I rowsort
SELECT - col2 * + col0 + col0 AS col0 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT ALL - col0 * col2 + col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT col1 * col0 + - 53 AS col1 FROM tab1 AS cor0
----
25
587
987
query I rowsort
SELECT DISTINCT + + col1 + ( col0 + cor0.col1 ) * + col2 * + col2 FROM tab2 AS cor0
----
138641
27733
92671
query I rowsort
SELECT col0 * 61 AS col1 FROM tab2 cor0
----
427
4758
4819
query I rowsort
SELECT DISTINCT + col0 - ( - col2 + - col0 ) FROM tab1 AS cor0
----
185
256
60
query I rowsort
SELECT ALL + cor0.col1 + - 99 AS col1 FROM tab2 AS cor0
----
-40
-68
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 + + col0 col1 FROM tab2 AS cor0
----
196
2106
3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 * 57 col1 FROM tab2 AS cor0
----
-3819
query I rowsort
SELECT ALL + + cor0.col2 + col2 FROM tab0 cor0
----
164
2
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-203
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + 1 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-203
SELECT DISTINCT + CAST ( NULL AS REAL ) + 1 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - - ( 5 ) FROM tab1 AS cor0
----
5
5
5
query I rowsort
SELECT - col1 + + 0 AS col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL - col0 + + 28 FROM tab2 AS cor0
----
-50
-51
21
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 cor2
----
3645 values hashing to cc4f069e61d0cc52f433f9e8c0058808
onlyif mysql # use DIV operator for integer division
query I rowsort label-208
SELECT DISTINCT + cor0.col1 + - col2 DIV col0 FROM tab1 AS cor0
----
10
12
8
skipif mysql # not compatible
query I rowsort label-208
SELECT DISTINCT + cor0.col1 + - col2 / col0 FROM tab1 AS cor0
----
10
12
8
query I rowsort
SELECT DISTINCT + 16 * - col1 AS col0 FROM tab0
----
-1376
-1456
-1552
query I rowsort
SELECT ALL 55 * col0 FROM tab2
----
385
4290
4345
onlyif mysql # use DIV operator for integer division
query I rowsort label-211
SELECT DISTINCT col1 DIV - col1 - + col0 col2 FROM tab0 AS cor0
----
-25
-36
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT col1 / - col1 - + col0 col2 FROM tab0 AS cor0
----
-25
-36
-90
query I rowsort
SELECT ALL col1 * col0 * 21 AS col2 FROM tab1 AS cor0
----
13440
1638
21840
query I rowsort
SELECT ALL + 80 * + col0 FROM tab1 AS cor0
----
240
5120
6400
query I rowsort
SELECT - - ( + col0 ) + + ( + 69 + + col1 ) FROM tab1 AS cor0
----
143
162
98
query I rowsort
SELECT ALL 79 * - col0 + col2 * col0 FROM tab2 AS cor0
----
-3239
-364
-4134
query I rowsort
SELECT DISTINCT + - 45 + - col1 FROM tab1 AS cor0
----
-55
-58
-71
query I rowsort
SELECT ALL + - 65 AS col0 FROM tab2 AS cor0
----
-65
-65
-65
query I rowsort
SELECT DISTINCT + 77 + cor0.col0 AS col1 FROM tab2 AS cor0
----
155
156
84
query I rowsort
SELECT - 72 * + 98 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 07991f3c4cd1a1298b8273c13b13f645
query I rowsort
SELECT DISTINCT - 81 + + col0 FROM tab0 AS cor0
----
-46
-57
8
query I rowsort
SELECT ALL + 34 - + col2 AS col1 FROM tab0 AS cor0
----
-48
1
33
query I rowsort
SELECT DISTINCT - 61 + 77 * + col0 AS col0 FROM tab1 cor0
----
170
4867
6099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - col2 * + col0 col2 FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT - col2 * + 93 FROM tab0 AS cor0
----
-3069
-7626
-93
query I rowsort
SELECT ALL + col1 * col0 * col1 FROM tab0 cor0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT + cor1.col0 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
24
35
89
query I rowsort
SELECT 30 + + col0 + col0 FROM tab1 AS cor0
----
158
190
36
query I rowsort
SELECT DISTINCT col0 - - 47 * - col1 AS col1 FROM tab2
----
-1450
-2695
-720
query I rowsort
SELECT - ( + col1 ) * + col0 - + col2 FROM tab2 AS cor0
----
-1381
-244
-4628
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-230
SELECT ( - ( + cor0.col0 ) ) * CAST( col0 AS SIGNED ) + - col2 - - cor0.col2 FROM tab0 cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-230
SELECT ( - ( + cor0.col0 ) ) * CAST ( col0 AS INTEGER ) + - col2 - - cor0.col2 FROM tab0 cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col0 col1 FROM tab0
----
-171
-36
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-233
SELECT ALL + CAST( NULL AS DECIMAL ) + + tab0.col1 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-233
SELECT ALL + CAST ( NULL AS REAL ) + + tab0.col1 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + col2 * - col1 * - ( + col2 ) AS col1 FROM tab0 AS cor0
----
0
611793
93568
query I rowsort
SELECT col1 * + col1 * col2 + + 6 * col2 FROM tab0
----
244266
679534
9415
query I rowsort
SELECT ALL + ( col1 ) + col2 AS col2 FROM tab1
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col1 col1 FROM tab1 cor0
----
-23
54
67
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 cor2
----
3645 values hashing to fc7c00509fb9d4b8a5290fa6926cc518
query I rowsort
SELECT ALL tab0.col2 FROM tab0, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
query I rowsort
SELECT DISTINCT 62 * - col1 AS col1 FROM tab1
----
-1612
-620
-806
query I rowsort
SELECT + 55 * - col0 + + ( - col1 ) FROM tab0 AS cor0
----
-1406
-2022
-4986
query I rowsort
SELECT + col2 * - cor0.col0 + ( col2 ) FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT - col0 * col2 + - 13 AS col2 FROM tab0 AS cor0
----
-48
-7311
-805
onlyif mysql # use DIV operator for integer division
query I rowsort label-244
SELECT DISTINCT - col0 DIV tab1.col2 AS col2 FROM tab1
----
-1
0
skipif mysql # not compatible
query I rowsort label-244
SELECT DISTINCT - col0 / tab1.col2 AS col2 FROM tab1
----
-1
0
query I rowsort
SELECT col1 * + 45 + 74 FROM tab0
----
3944
4169
4439
query I rowsort
SELECT DISTINCT - col2 * - col1 AS col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT - + col0 * + ( + col1 ) AS col2 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT 8 * ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
208
216
304
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - ( - col2 ) + - cor0.col1 col2 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT ALL + col0 * + 43 * col1 FROM tab0 AS cor0
----
145985
348257
88752
query I rowsort
SELECT DISTINCT + col0 + - 55 FROM tab0 AS cor0
----
-20
-31
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + col0 - col2 col0 FROM tab2 AS cor0
----
1586
687
817
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT - + col2 * + col2 FROM tab2 cor0
----
-1444
-676
-729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-255
SELECT ( - cor0.col0 ) + + col2 * CAST( NULL AS SIGNED ) - ( col2 ) * cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-255
SELECT ( - cor0.col0 ) + + col2 * CAST ( NULL AS INTEGER ) - ( col2 ) * cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( + 18 ) * + col0 FROM tab1 AS cor0
----
-1152
-1440
-54
onlyif mysql # use DIV operator for integer division
query I rowsort label-257
SELECT - cor0.col2 * col0 + col1 DIV + col2 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-257
SELECT - cor0.col2 * col0 + col1 / + col2 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 + - col2 + - col0 col1 FROM tab1 cor0
----
-48
3975
6224
query I rowsort
SELECT + col0 * - cor0.col2 + - 40 * - col0 AS col1 FROM tab2 cor0
----
1092
158
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-260
SELECT DISTINCT + tab0.col1 * - CAST( NULL AS SIGNED ) - + tab0.col1 AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-260
SELECT DISTINCT + tab0.col1 * - CAST ( NULL AS INTEGER ) - + tab0.col1 AS col2 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT + col1 + 39 AS col2 FROM tab1
----
49
52
65
query I rowsort
SELECT col0 * ( - ( col2 ) ) * col2 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT col2 + - 2 * 8 AS col1 FROM tab0
----
-15
17
66
query I rowsort
SELECT - col1 - ( + col1 ) * + cor0.col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT DISTINCT 85 - 24 AS col1 FROM tab0, tab1 AS cor0
----
61
query I rowsort
SELECT - col1 * 10 + 38 AS col0 FROM tab1 AS cor0
----
-222
-62
-92
query I rowsort
SELECT 96 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
onlyif mysql # use DIV operator for integer division
query I rowsort label-268
SELECT - - col1 * + col1 + + col2 DIV - col0 col2 FROM tab1 AS cor0
----
100
168
658
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-268
SELECT - - col1 * + col1 + + col2 / - col0 col2 FROM tab1 AS cor0
----
100
168
658
query I rowsort
SELECT DISTINCT + 12 * cor0.col0 AS col1 FROM tab2 AS cor0
----
84
936
948
query I rowsort
SELECT ALL + 62 * col0 AS col2 FROM tab1 AS cor0
----
186
3968
4960
query I rowsort
SELECT ALL ( + 74 ) * col2 + 65 * - col1 FROM tab1 AS cor0
----
2306
3568
6259
query I rowsort
SELECT DISTINCT - + col0 + + 81 + - col2 AS col1 FROM tab0 AS cor0
----
-90
24
45
query I rowsort
SELECT - - 15 + 87 AS col1 FROM tab1 AS cor0
----
102
102
102
onlyif mysql # use DIV operator for integer division
query I rowsort label-274
SELECT DISTINCT + + col0 DIV cor0.col0 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-274
SELECT DISTINCT + + col0 / cor0.col0 FROM tab1 AS cor0
----
1
query I rowsort
SELECT ALL - col0 + ( col1 + - 41 ) FROM tab1 AS cor0
----
-108
-18
-95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-276
SELECT ALL + CAST( NULL AS SIGNED ) + 92 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-276
SELECT ALL + CAST ( NULL AS INTEGER ) + 92 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col2 * + col2 + col1 * ( cor0.col1 ) FROM tab1 AS cor0
----
3349
3592
9385
onlyif mysql # use DIV operator for integer division
query I rowsort label-278
SELECT - col0 DIV 28 + - col0 AS col1 FROM tab2 AS cor0
----
-7
-80
-81
skipif mysql # not compatible
query I rowsort label-278
SELECT - col0 / 28 + - col0 AS col1 FROM tab2 AS cor0
----
-7
-80
-81
query I rowsort
SELECT DISTINCT - col1 + + col1 * col0 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT DISTINCT - col0 * + tab2.col2 * + ( col0 ) AS col1 FROM tab2
----
-1323
-158184
-237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-281
SELECT - col0 * tab1.col1 + - col0 DIV col0 FROM tab1
----
-1041
-641
-79
skipif mysql # not compatible
query I rowsort label-281
SELECT - col0 * tab1.col1 + - col0 / col0 FROM tab1
----
-1041
-641
-79
query I rowsort
SELECT DISTINCT 32 + cor0.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
49
63
91
query I rowsort
SELECT + col0 * col2 + - ( - 70 ) * + col2 FROM tab0 AS cor0
----
105
13038
3102
query I rowsort
SELECT + ( col1 ) + + cor0.col0 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT - col0 * + col1 * - col0 FROM tab1 AS cor0
----
234
40960
83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-286
SELECT DISTINCT + col2 DIV - tab1.col1 AS col2 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-286
SELECT DISTINCT + col2 / - tab1.col1 AS col2 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT ALL + - 31 + - col2 * + 22 FROM tab2 AS cor0
----
-603
-625
-867
query I rowsort
SELECT ALL 46 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
onlyif mysql # use DIV operator for integer division
query I rowsort label-289
SELECT DISTINCT - 20 DIV + col1 AS col1 FROM tab2
----
-1
0
skipif mysql # not compatible
query I rowsort label-289
SELECT DISTINCT - 20 / + col1 AS col1 FROM tab2
----
-1
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-290
SELECT + CAST( NULL AS SIGNED ) * - 32 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-290
SELECT + CAST ( NULL AS INTEGER ) * - 32 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT 4 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
4
query I rowsort
SELECT DISTINCT - + 18 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-18
query I rowsort
SELECT + 96 * + tab1.col0 - + 64 FROM tab1
----
224
6080
7616
query I rowsort
SELECT DISTINCT - col2 * 1 FROM tab0 cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-295
SELECT DISTINCT + col2 / CAST( NULL AS SIGNED ) + - col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-295
SELECT DISTINCT + col2 / CAST ( NULL AS INTEGER ) + - col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - ( col0 ) * col2 + - cor0.col0 * - ( - col2 ) col2 FROM tab0 AS cor0
----
-1260
-19800
-656820
query I rowsort
SELECT + col1 * - ( 80 ) FROM tab2 cor0
----
-1360
-2480
-4720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 * - col1 col2 FROM tab0
----
5934
6279
6693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 68 col1 FROM tab0, tab2, tab1 AS cor0
----
-68
query I rowsort
SELECT + col2 * col2 - col1 FROM tab1
----
2890
3239
9203
query I rowsort
SELECT + col0 * col2 + col1 * - col1 FROM tab1
----
-514
3548
7511
query I rowsort
SELECT 4 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT cor0.col0 * col2 AS col0 FROM tab2 cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-304
SELECT ALL col0 DIV + col2 + + col0 col1 FROM tab0 AS cor0
----
24
70
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-304
SELECT ALL col0 / + col2 + + col0 col1 FROM tab0 AS cor0
----
24
70
90
query I rowsort
SELECT + col0 * - 24 FROM tab0 cor0
----
-2136
-576
-840
query I rowsort
SELECT ALL + col0 * 2 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT - col0 * + cor0.col2 * col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT DISTINCT col0 + col0 * cor0.col0 FROM tab0 AS cor0
----
1260
600
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-309
SELECT col2 DIV + col0 FROM tab2 cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-309
SELECT col2 / + col0 FROM tab2 cor0
----
0
0
3
query I rowsort
SELECT + col0 * 89 AS col0 FROM tab0 AS cor0
----
2136
3115
7921
query I rowsort
SELECT DISTINCT + col0 * 59 + col0 AS col2 FROM tab2
----
420
4680
4740
query I rowsort
SELECT - col1 + cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
-62
706
7207
skipif mysql # not compatible
query I rowsort
SELECT CAST ( ( col0 ) AS REAL ) * col1 + 1 FROM tab1
----
1041
641
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-314
SELECT - col1 + col2 DIV col1 AS col2 FROM tab2 cor0
----
-15
-31
-59
skipif mysql # not compatible
query I rowsort label-314
SELECT - col1 + col2 / col1 AS col2 FROM tab2 cor0
----
-15
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-315
SELECT DISTINCT col0 DIV col0 AS col2 FROM tab2 cor0
----
1
skipif mysql # not compatible
query I rowsort label-315
SELECT DISTINCT col0 / col0 AS col2 FROM tab2 cor0
----
1
query I rowsort
SELECT 64 * - col2 FROM tab1 AS cor0
----
-3456
-3648
-6144
query I rowsort
SELECT DISTINCT - + 57 AS col1 FROM tab0 AS cor0
----
-57
query I rowsort
SELECT + 52 * cor0.col1 FROM tab2 AS cor0
----
1612
3068
884
query I rowsort
SELECT ALL ( + col0 ) * col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT col2 * col0 + col1 * 8 FROM tab2
----
2500
3138
437
onlyif mysql # use DIV operator for integer division
query I rowsort label-321
SELECT ALL + col0 DIV - col2 FROM tab1 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-321
SELECT ALL + col0 / - col2 FROM tab1 cor0
----
-1
0
0
query I rowsort
SELECT ALL 16 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
query I rowsort
SELECT ALL - col0 * - 33 + col0 AS col1 FROM tab0
----
1190
3026
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-324
SELECT DISTINCT - col1 DIV + ( + 94 * + tab0.col0 + + col2 ) FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-324
SELECT DISTINCT - col1 / + ( + 94 * + tab0.col0 + + col2 ) FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT - 5 FROM tab1, tab2 cor0, tab2, tab2 AS cor1
----
81 values hashing to ede490c59604723c000449e027e5cf18
query I rowsort
SELECT col1 * - 98 AS col0 FROM tab0 AS cor0
----
-8428
-8918
-9506
query I rowsort
SELECT + ( + 10 + col0 ) * - ( + 57 ) * tab2.col2 AS col2 FROM tab2
----
-130416
-192774
-26163
onlyif mysql # use DIV operator for integer division
query I rowsort label-329
SELECT col0 DIV - col1 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
3
58
74
skipif mysql # not compatible
query I rowsort label-329
SELECT col0 / - col1 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
3
58
74
query I rowsort
SELECT col2 * - cor0.col1 + cor0.col1 * + col2 + - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + cor0.col1 ) + - col2 * + 63 col1 FROM tab0 AS cor0
----
-160
-2165
-5257
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - col0 col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL + - col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col0 * 34 FROM tab0 AS cor0
----
1190
3026
816
query I rowsort
SELECT DISTINCT - - ( 74 ) AS col0 FROM tab1 AS cor0
----
74
query I rowsort
SELECT - ( 61 ) + - col0 FROM tab1 AS cor0
----
-125
-141
-64
query I rowsort
SELECT DISTINCT - 69 + + col0 FROM tab1 AS cor0
----
-5
-66
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-338
SELECT DISTINCT + 18 + + col1 * + col1 + cor0.col1 DIV - col2 FROM tab0 AS cor0
----
7412
8298
9330
skipif mysql # not compatible
query I rowsort label-338
SELECT DISTINCT + 18 + + col1 * + col1 + cor0.col1 / - col2 FROM tab0 AS cor0
----
7412
8298
9330
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-339
SELECT ALL + - 52 + - col2 * CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-2080
-241
-3054
skipif mysql # not compatible
query I rowsort label-339
SELECT ALL + - 52 + - col2 * CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-2080
-241
-3054
query I rowsort
SELECT ALL 18 + + col0 AS col0 FROM tab2 AS cor0
----
25
96
97
query I rowsort
SELECT - + ( + col1 ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-342
SELECT DISTINCT - + ( cor0.col1 ) * - CAST( NULL AS SIGNED ) + + 60 col1 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-342
SELECT DISTINCT - + ( cor0.col1 ) * - CAST ( NULL AS INTEGER ) + + 60 col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL col2 + - 75 FROM tab0 AS cor0
----
-42
-74
7
query I rowsort
SELECT col2 + - 94 - col2 AS col0 FROM tab2 cor0
----
-94
-94
-94
query I rowsort
SELECT - col2 + - 2 * - col0 FROM tab0 AS cor0
----
15
69
96
query I rowsort
SELECT + col1 * - ( 15 + - col1 ) FROM tab2 AS cor0
----
2596
34
496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 col2 FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-348
SELECT + col1 - + 94 DIV col1 FROM tab2
----
12
28
58
skipif mysql # not compatible
query I rowsort label-348
SELECT + col1 - + 94 / col1 FROM tab2
----
12
28
58
query I rowsort
SELECT - col1 * - 97 AS col1 FROM tab2 AS cor0
----
1649
3007
5723
query I rowsort
SELECT cor0.col1 + ( 87 ) AS col1 FROM tab1 cor0
----
100
113
97
query I rowsort
SELECT ALL col1 + col0 * col0 FROM tab0 cor0
----
1322
662
8012
query I rowsort
SELECT DISTINCT - col0 - 6 FROM tab0 AS cor0
----
-30
-41
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-353
SELECT DISTINCT + col1 DIV - 7 + col2 FROM tab1 cor0
----
51
56
95
skipif mysql # not compatible
query I rowsort label-353
SELECT DISTINCT + col1 / - 7 + col2 FROM tab1 cor0
----
51
56
95
query I rowsort
SELECT - col1 * col1 - + col2 * col0 * col2 AS col0 FROM tab2 AS cor0
----
-114365
-56209
-6064
query I rowsort
SELECT - - 43 + + col0 FROM tab0 AS cor0
----
132
67
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
65
query I rowsort
SELECT DISTINCT - 9 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-9
query I rowsort
SELECT 15 + + 28 * + col0 AS col2 FROM tab1
----
1807
2255
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 80 * - col2 col0 FROM tab1
----
-112320
-45600
-99840
query I rowsort
SELECT + 36 AS col2 FROM tab2
----
36
36
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - ( ( - col1 ) * + col0 ) col2 FROM tab1 cor0
----
-234
-40960
-83200
query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col2 AS col2 FROM tab2, tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT + ( - col0 ) * - ( + 66 ) * col0 FROM tab1
----
270336
422400
594
query I rowsort
SELECT ALL 81 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
query I rowsort
SELECT tab2.col2 * col0 - - col0 AS col2 FROM tab2
----
196
2106
3081
query I rowsort
SELECT ALL col2 * col1 * + ( col1 * + col0 ) + - cor0.col0 + col2 FROM tab0 AS cor0
----
329281
5857641
60434731
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-367
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-367
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL 37 * - col0 * - col2 AS col1 FROM tab2 AS cor0
----
111074
6993
75036
query I rowsort
SELECT DISTINCT + ( col1 ) * col1 * - ( - cor0.col2 * ( cor0.col0 ) ) FROM tab1 AS cor0
----
109512
1297920
364800
query I rowsort
SELECT - + col0 + cor0.col0 + col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - col1 * cor0.col0 + 97 - col0 AS col1 FROM tab2 AS cor0
----
-127
-1325
-4583
onlyif mysql # use DIV operator for integer division
query I rowsort label-372
SELECT ALL col0 + col0 DIV + col0 AS col0 FROM tab2
----
79
8
80
skipif mysql # not compatible
query I rowsort label-372
SELECT ALL col0 + col0 / + col0 AS col0 FROM tab2
----
79
8
80
query I rowsort
SELECT ALL - col1 + + 35 AS col1 FROM tab0
----
-51
-56
-62
query I rowsort
SELECT DISTINCT + col0 * col0 + + col2 * col1 FROM tab1
----
1413
4666
7648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-375
SELECT - col0 * CAST( NULL AS SIGNED ) + - col0 * col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-375
SELECT - col0 * CAST ( NULL AS INTEGER ) + - col0 * col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col2 * + col2 - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1482
-702
-756
onlyif mysql # use DIV operator for integer division
query I rowsort label-377
SELECT DISTINCT col1 + col2 DIV col2 AS col0 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-377
SELECT DISTINCT col1 + col2 / col2 AS col0 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT DISTINCT + col0 + - col2 * - cor0.col1 AS col0 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT col2 * - ( - col2 ) - col2 * col1 AS col1 FROM tab2 AS cor0
----
-108
-858
798
query I rowsort
SELECT col0 + + col1 * cor0.col1 AS col2 FROM tab0 cor0
----
7420
8370
9444
skipif mysql # not compatible
query I rowsort
SELECT CAST ( 58 AS REAL ) AS col0 FROM tab1 AS cor0
----
58
58
58
query I rowsort
SELECT + col1 * + ( 88 * col2 ) FROM tab2
----
134992
56848
73656
query I rowsort
SELECT DISTINCT - ( col1 ) * col2 + + col1 * + cor0.col2 FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-384
SELECT DISTINCT - CAST( - col2 AS SIGNED ) + + col2 FROM tab0 AS cor0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-384
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + + col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT - + col2 + + 2 AS col1 FROM tab2 AS cor0
----
-24
-25
-36
query I rowsort
SELECT DISTINCT + ( 88 ) AS col0 FROM tab2 AS cor0
----
88
query I rowsort
SELECT cor1.col2 * ( 68 ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to bad96a319eae4e6f183ed6f00a8fb6c7
query I rowsort
SELECT - col0 * - 8 + - cor0.col1 * col1 FROM tab1 AS cor0
----
-652
412
471
query I rowsort
SELECT DISTINCT + col0 * 63 AS col0 FROM tab0 AS cor0
----
1512
2205
5607
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-390
SELECT ALL CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-390
SELECT ALL CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( col0 ) * + col0 AS col1 FROM tab1
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col1 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - col2 + cor0.col2 + col0 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-394
SELECT CAST( NULL AS SIGNED ) + - col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-394
SELECT CAST ( NULL AS INTEGER ) + - col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT col2 + + ( 19 ) AS col1 FROM tab2 AS cor0
----
45
46
57
query I rowsort
SELECT DISTINCT col2 * + 66 FROM tab2 AS cor0
----
1716
1782
2508
query I rowsort
SELECT DISTINCT - col2 + 45 * col0 FROM tab1 AS cor0
----
2823
3504
81
query I rowsort
SELECT - col2 * + ( + cor0.col0 ) * + col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT col1 + col0 - + 86 * + cor0.col2 * 38 FROM tab1 AS cor0
----
-176443
-186202
-313635
query I rowsort
SELECT ALL - col0 + - col2 * 1 FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-402
SELECT col2 + CAST( col2 AS SIGNED ) DIV - col0 FROM tab0 AS cor0
----
1
32
82
skipif mysql # not compatible
query I rowsort label-402
SELECT col2 + CAST ( col2 AS INTEGER ) / - col0 FROM tab0 AS cor0
----
1
32
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-403
SELECT col0 DIV + col2 + 41 * 86 AS col2 FROM tab0
----
3526
3527
3561
skipif mysql # not compatible
query I rowsort label-403
SELECT col0 / + col2 + 41 * 86 AS col2 FROM tab0
----
3526
3527
3561
query I rowsort
SELECT DISTINCT + col2 - - col1 AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL 94 - tab1.col2 * - ( col2 + + col0 ) AS col1 FROM tab1
----
16990
3172
6991
onlyif mysql # use DIV operator for integer division
query I rowsort label-406
SELECT - col0 DIV + tab0.col1 + + ( + col2 * col2 ) + CAST( - 40 AS SIGNED ) FROM tab0
----
-39
1049
6684
skipif mysql # not compatible
query I rowsort label-406
SELECT - col0 / + tab0.col1 + + ( + col2 * col2 ) + CAST ( - 40 AS INTEGER ) FROM tab0
----
-39
1049
6684
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-407
SELECT col0 * - CAST( col2 AS SIGNED ) AS col2 FROM tab1
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-407
SELECT col0 * - CAST ( col2 AS INTEGER ) AS col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL col1 * col0 + + col2 AS col0 FROM tab2
----
1381
244
4628
query I rowsort
SELECT ALL + col1 + col0 * - 7 FROM tab2
----
-18
-487
-536
query I rowsort
SELECT ALL col1 + 38 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
3354
3549
3783
onlyif mysql # use DIV operator for integer division
query I rowsort label-411
SELECT ALL - - cor0.col2 DIV + 14 AS col1 FROM tab2 AS cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-411
SELECT ALL - - cor0.col2 / + 14 AS col1 FROM tab2 AS cor0
----
1
1
2
query I rowsort
SELECT + col1 * cor0.col1 + - 39 * - cor0.col1 FROM tab2 AS cor0
----
2170
5782
952
query I rowsort
SELECT ALL + col0 + - ( col0 ) * tab1.col0 * + col1 AS col0 FROM tab1
----
-231
-40896
-83120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-414
SELECT - col1 * CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-414
SELECT - col1 * CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * 41 + 86 FROM tab1 cor0
----
-324
-447
-980
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-416
SELECT ALL + col0 * CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-416
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + + ( - col0 * + col0 ) - col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT - col1 + col2 + 65 FROM tab0 AS cor0
----
-31
12
56
query I rowsort
SELECT + - col1 * - col1 - - col2 AS col1 FROM tab2 AS cor0
----
327
3507
988
onlyif mysql # use DIV operator for integer division
query I rowsort label-420
SELECT DISTINCT - ( - col2 + + col1 ) DIV + tab2.col1 FROM tab2
----
0
1
skipif mysql # not compatible
query I rowsort label-420
SELECT DISTINCT - ( - col2 + + col1 ) / + tab2.col1 FROM tab2
----
0
1
query I rowsort
SELECT + + col0 - - col1 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT 91 + col2 * col2 * col2 FROM tab1
----
157555
185284
884827
query I rowsort
SELECT + col0 + + col2 * tab0.col0 FROM tab0
----
70
7387
816
query I rowsort
SELECT DISTINCT - 64 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-64
onlyif mysql # use DIV operator for integer division
query I rowsort label-425
SELECT - 63 DIV 48 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
skipif mysql # not compatible
query I rowsort label-425
SELECT - 63 / 48 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
query I rowsort
SELECT ALL - - col1 * 47 * col2 FROM tab2 AS cor0
----
30362
39339
72098
query I rowsort
SELECT ALL + col1 + 76 AS col2 FROM tab0 cor0
----
162
167
173
onlyif mysql # use DIV operator for integer division
query I rowsort label-428
SELECT ALL col0 + 22 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
10
64
80
skipif mysql # not compatible
query I rowsort label-428
SELECT ALL col0 + 22 / cor0.col0 AS col1 FROM tab1 AS cor0
----
10
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + - col2 col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - col0 * + 50 AS col0 FROM tab0 AS cor0
----
-1200
-1750
-4450
query I rowsort
SELECT DISTINCT 31 AS col2 FROM tab0, tab1 cor0
----
31
query I rowsort
SELECT tab1.col2 + + col0 * + tab1.col1 * - col2 FROM tab1
----
-36423
-4158
-99744
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) >= + col2 * col1 + + col0
----
query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT NULL < NULL
----
query I rowsort
SELECT + col1 - + tab2.col1 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL - tab1.col1 - tab1.col1 * col1 * tab1.col0 AS col2 FROM tab1
----
-13533
-2054
-6410
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 <> + col2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT ALL + tab1.col2 + - col2 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT col2 + + col2 * col0 AS col1 FROM tab1
----
216
3705
7776
query I rowsort
SELECT - cor1.col1 - + cor1.col1 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to f2f707995d3bf15fbaa7060b3f35c112
onlyif mysql # use DIV operator for integer division
query I rowsort label-441
SELECT - 4 DIV + col0 + col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-441
SELECT - 4 / + col0 + col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ( - col2 + - col0 ) FROM tab2
----
-104
-117
-34
query I rowsort
SELECT DISTINCT 54 * + tab2.col1 * 20 AS col2 FROM tab2
----
18360
33480
63720
onlyif mysql # use DIV operator for integer division
query I rowsort label-444
SELECT col2 + + col1 DIV col1 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-444
SELECT col2 + + col1 / col1 FROM tab0 AS cor0
----
2
34
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-445
SELECT - col2 * + col2 DIV col2 FROM tab1 cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-445
SELECT - col2 * + col2 / col2 FROM tab1 cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-446
SELECT + 35 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-446
SELECT + 35 / + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + col0 * - 61 FROM tab2 AS cor0
----
427
4758
4819
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-448
SELECT ALL 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-448
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( col2 ) * col0 AS col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ( col1 ) + - col0 FROM tab1 AS cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort
SELECT ( col1 ) * - CAST ( col0 AS REAL ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + cor0.col0 * cor0.col1 + - col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT ( + 11 ) FROM tab2
----
11
query I rowsort
SELECT ALL - 57 AS col2 FROM tab1
----
-57
-57
-57
query I rowsort
SELECT + col0 * col2 * col1 AS col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT + tab2.col2 + col0 * col2 FROM tab2 WHERE NOT ( NULL <= ( NULL ) ) AND col1 <= NULL
----
query I rowsort
SELECT ALL col2 + + tab1.col1 * col2 + - col2 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL tab1.col1 * col1 * col0 AS col1 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT DISTINCT tab2.col2 * + tab2.col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL + - col2 * col0 + + col0 * + col1 AS col2 FROM tab2 AS cor0
----
-1659
2574
28
query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT tab1.col1 <> NULL
----
query I rowsort
SELECT + col1 * cor0.col2 * col1 AS col1 FROM tab1 cor0
----
16224
36504
5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 col2 FROM tab0
----
-41
query I rowsort
SELECT ( 10 ) AS col0 FROM tab0
----
10
10
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * col0 col1 FROM tab0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + cor0.col1 ) + - col2 * - col2 col2 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT - 11 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d
query I rowsort
SELECT DISTINCT + col2 + tab1.col1 + tab1.col2 FROM tab1
----
124
134
205
query I rowsort
SELECT DISTINCT - col1 * col0 + - col0 AS col2 FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT DISTINCT + 15 + col0 FROM tab2
----
22
93
94
query I rowsort
SELECT + col2 * col1 + col0 * - col1 AS col1 FROM tab2
----
-3068
-697
620
onlyif mysql # use DIV operator for integer division
query I rowsort label-472
SELECT col0 + + col2 + + col0 DIV col2 FROM tab0 AS cor0
----
172
57
71
skipif mysql # not compatible
query I rowsort label-472
SELECT col0 + + col2 + + col0 / col2 FROM tab0 AS cor0
----
172
57
71
query I rowsort
SELECT + ( - col1 ) * col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 + + col2 * - col0 * - tab1.col0 col2 FROM tab1
----
233538
552
614466
query I rowsort
SELECT ALL col0 + + col2 + - col0 * + col0 FROM tab1 AS cor0
----
-3975
-6224
48
query I rowsort
SELECT DISTINCT - + col2 * cor0.col1 + - col0 * - col1 AS col1 FROM tab2 AS cor0
----
-620
3068
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-477
SELECT ALL cor0.col0 DIV + col0 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-477
SELECT ALL cor0.col0 / + col0 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT - col0 * col0 + - cor0.col1 FROM tab0 AS cor0
----
-1322
-662
-8012
query I rowsort
SELECT DISTINCT - col1 * + col0 + + col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL + 21 * - col0 + + col2 * col2 AS col1 FROM tab1 AS cor0
----
1905
2853
7536
onlyif mysql # use DIV operator for integer division
query I rowsort label-481
SELECT 40 + col1 DIV col0 + col0 AS col1 FROM tab0 AS cor0
----
130
67
77
skipif mysql # not compatible
query I rowsort label-481
SELECT 40 + col1 / col0 + col0 AS col1 FROM tab0 AS cor0
----
130
67
77
query I rowsort
SELECT ALL - 92 * - col1 AS col0 FROM tab0 cor0
----
7912
8372
8924
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 * - col2 - col0 col1 FROM tab2
----
-22606
-24627
-39962
query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN ( - col0 ) AND NULL
----
query I rowsort
SELECT DISTINCT + col1 * - tab1.col0 * tab1.col1 AS col2 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT tab0.col0 * - col0 / col0 - col0 * - col2 FROM tab0 WHERE NOT NULL IN ( col1 * - col2 + - col0 )
----
query I rowsort
SELECT ALL + tab0.col2 * col0 * - col2 - + col2 FROM tab0
----
-26169
-36
-598518
query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( col1 )
----
query I rowsort
SELECT ALL - col1 + col0 * + col1 * - col2 + + col0 AS col2 FROM tab1 AS cor0
----
-36426
-4235
-99773
query I rowsort
SELECT DISTINCT - col2 - - col1 AS col0 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT col2 * - cor0.col0 - - col2 * col2 FROM tab2 AS cor0
----
-1352
-1558
540
query I rowsort
SELECT - cor0.col2 + col1 * cor0.col2 FROM tab1 AS cor0
----
1152
1350
513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 + + col0 + col0 col1 FROM tab2 AS cor0
----
3637
447
975
query I rowsort
SELECT DISTINCT col1 + - col0 * col0 + + col2 * col0 FROM tab0 AS cor0
----
-1093
-532
302
onlyif mysql # use DIV operator for integer division
query I rowsort label-495
SELECT ALL col0 * col1 + col1 DIV col0 AS col0 FROM tab1 cor0
----
1040
640
86
skipif mysql # not compatible
query I rowsort label-495
SELECT ALL col0 * col1 + col1 / col0 AS col0 FROM tab1 cor0
----
1040
640
86
query I rowsort
SELECT - 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 + - col0 * + col2 col1 FROM tab2 AS cor0 WHERE NOT NULL <> ( col0 )
----
query I rowsort
SELECT DISTINCT - col0 * + col2 - + col0 AS col1 FROM tab1
----
-165
-3712
-7760
query I rowsort
SELECT - tab1.col2 + col0 FROM tab1 WHERE NOT NULL < NULL
----
query I rowsort
SELECT - col0 + col1 * + col0 * - tab0.col2 FROM tab0
----
-3430
-664207
-68136
query I rowsort
SELECT ALL + col1 * col1 - - col1 FROM tab1
----
110
182
702
query I rowsort
SELECT ALL - col0 * - col0 * + col1 AS col0 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT ALL - col1 * col2 * col2 AS col2 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT DISTINCT - tab0.col1 * + col2 AS col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT - col1 + + col0 * + col1 FROM tab0
----
1978
3298
8008
query I rowsort
SELECT - col2 * col0 * + col0 + - col0 + col1 FROM tab0
----
-1163
-18946
-649520
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col1 + + col2 )
----
query I rowsort
SELECT DISTINCT + col0 + + col0 * col2 FROM tab0 WHERE ( NULL ) BETWEEN ( col0 * col2 * col2 - - col0 ) AND - col2 * - col0 + + col1
----
query I rowsort
SELECT DISTINCT col2 + + col1 * + col1 * + col1 FROM tab0
----
636089
753653
912674
query I rowsort
SELECT tab1.col0 * - col0 * - col0 FROM tab1
----
262144
27
512000
query I rowsort
SELECT + + col0 - - col1 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + + cor0.col1 * cor0.col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT - col2 * col2 - - col2 * - col2 FROM tab1 AS cor0
----
-18432
-5832
-6498
query I rowsort
SELECT + col1 * col1 + + col2 + col1 AS col2 FROM tab1 AS cor0
----
167
278
756
query I rowsort
SELECT + col0 * + cor0.col1 * col1 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT DISTINCT - cor0.col1 * - col1 + col1 AS col0 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT DISTINCT + - col1 * col0 - col1 AS col0 FROM tab1 AS cor0
----
-104
-1053
-650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col2 col1 FROM tab2 AS cor0
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 * cor0.col0 col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT DISTINCT col0 - col0 * col1 AS col0 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT + col0 - + tab2.col2 * tab2.col2 FROM tab2
----
-1365
-598
-722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col1 * + col2 col0 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL + col0 * + col0 + + tab1.col0 FROM tab1
----
12
4160
6480
query I rowsort
SELECT ALL - tab2.col1 * col0 - + col2 * + col0 FROM tab2
----
-406
-4345
-6630
query I rowsort
SELECT - tab2.col0 * - tab2.col1 + + col0 AS col2 FROM tab2
----
1422
224
4680
query I rowsort
SELECT - col2 * + col2 * + tab0.col2 + col2 FROM tab0
----
-35904
-551286
0
query I rowsort
SELECT + - col0 + + 8 AS col2 FROM tab0 AS cor0
----
-16
-27
-81
query I rowsort
SELECT col0 * - col2 + ( cor0.col0 + col1 ) * ( + 86 ) * col2 FROM tab0 AS cor0
----
11317
1262062
311388
query I rowsort
SELECT ALL ( + col2 ) * + col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT col0 * + 25 + cor0.col0 AS col1 FROM tab0 AS cor0
----
2314
624
910
query I rowsort
SELECT DISTINCT - col2 * + ( col2 ) FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + col2 * 86 + + ( + col2 ) FROM tab2 AS cor0
----
2262
2349
3306
query I rowsort
SELECT ALL + - cor0.col1 * col0 + col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT col2 * 35 FROM tab2 AS cor0
----
1330
910
945
query I rowsort
SELECT DISTINCT col1 + col1 * 15 AS col1 FROM tab1
----
160
208
416
onlyif mysql # use DIV operator for integer division
query I rowsort label-536
SELECT - col2 DIV + ( col0 ) + col1 * CAST( col1 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
-10982
-25950
-90506
skipif mysql # not compatible
query I rowsort label-536
SELECT - col2 / + ( col0 ) + col1 * CAST ( col1 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
-10982
-25950
-90506
query I rowsort
SELECT DISTINCT col2 * + 14 FROM tab2
----
364
378
532
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col0 FROM tab0, 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 DISTINCT - col0 * + 20 AS col1 FROM tab1
----
-1280
-1600
-60
query I rowsort
SELECT - + cor0.col0 * + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 75a608bf2ba236d24f146ac4aff9ec52
query I rowsort
SELECT ALL - 33 + cor0.col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-32
1056
6691
query I rowsort
SELECT + ( col0 ) + col2 * col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT + 36 * - col2 FROM tab2 AS cor0
----
-1368
-936
-972
onlyif mysql # use DIV operator for integer division
query I rowsort label-545
SELECT - col0 + col1 * + col1 DIV col1 FROM tab0 AS cor0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-545
SELECT - col0 + col1 * + col1 / col1 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-546
SELECT ALL + - 44 DIV col0 FROM tab2 AS cor0
----
-6
0
0
skipif mysql # not compatible
query I rowsort label-546
SELECT ALL + - 44 / col0 FROM tab2 AS cor0
----
-6
0
0
query I rowsort
SELECT ALL 96 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
query I rowsort
SELECT - 70 * - cor0.col2 AS col1 FROM tab1 cor0
----
3780
3990
6720
query I rowsort
SELECT + 20 * - col2 FROM tab2 AS cor0
----
-520
-540
-760
query I rowsort
SELECT - 71 + + col2 * col0 * - 3 AS col0 FROM tab0 AS cor0
----
-176
-21965
-2447
query I rowsort
SELECT ALL - tab2.col0 * ( + col0 ) FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + col1 * ( - col2 ) * - col0 AS col0 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT ( + 37 ) FROM tab0, tab0 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-554
SELECT ALL CAST( NULL AS SIGNED ) * tab0.col2 * col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-554
SELECT ALL CAST ( NULL AS INTEGER ) * tab0.col2 * col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 + + col0 * col1 AS col2 FROM tab0 cor0
----
2150
3492
8190
query I rowsort
SELECT + + 68 * + col2 AS col1 FROM tab1 cor0
----
3672
3876
6528
query I rowsort
SELECT - - col0 * col2 + + col1 * - col0 + 76 * col2 AS col2 FROM tab2 AS cor0
----
-598
2024
4547
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( - col0 AS REAL ) * + cor0.col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-559
SELECT - 59 DIV + cor0.col2 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f
skipif mysql # not compatible
query I rowsort label-559
SELECT - 59 / + cor0.col2 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f
query I rowsort
SELECT - col0 * cor0.col0 * col1 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT - col2 + col1 * ( - 42 ) + col1 FROM tab0 AS cor0
----
-3559
-3813
-3978
query I rowsort
SELECT + - cor0.col0 + 97 AS col0 FROM tab2 AS cor0
----
18
19
90
query I rowsort
SELECT ALL col0 + + col1 + 27 * - col2 FROM tab2
----
-565
-691
-930
query I rowsort
SELECT DISTINCT + col0 + - col2 + - col0 AS col1 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT - col1 + + col0 * + cor0.col1 FROM tab1 AS cor0
----
1027
52
630
onlyif mysql # use DIV operator for integer division
query I rowsort label-566
SELECT + col0 DIV 91 + + col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-566
SELECT + col0 / 91 + + col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - col1 * + ( - col2 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + col0 + - cor0.col0 * 79 FROM tab2 AS cor0
----
-546
-6084
-6162
query I rowsort
SELECT ALL + + 30 * - col1 AS col2 FROM tab1 AS cor0
----
-300
-390
-780
query I rowsort
SELECT - col1 * cor0.col0 + col2 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT + col0 + + cor0.col0 * + 95 FROM tab0 AS cor0
----
2304
3360
8544
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + col0 * - ( col0 ) col0 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT ALL col2 * - col2 + col2 - + col2 AS col0 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL 97 AS col2 FROM tab0 AS cor0
----
97
97
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-575
SELECT DISTINCT - + 48 * cor0.col1 + 4 DIV col1 + + col1 AS col2 FROM tab0 AS cor0
----
-4042
-4277
-4559
skipif mysql # not compatible
query I rowsort label-575
SELECT DISTINCT - + 48 * cor0.col1 + 4 / col1 + + col1 AS col2 FROM tab0 AS cor0
----
-4042
-4277
-4559
query I rowsort
SELECT DISTINCT ( cor0.col1 ) + + col1 * col0 * col2 FROM tab0 AS cor0
----
3492
664209
68198
query I rowsort
SELECT + + 25 * col0 * col2 + + col2 FROM tab0 AS cor0
----
182532
19833
876
query I rowsort
SELECT DISTINCT + - 86 * col2 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-2314
-2329
-3347
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-580
SELECT ALL col1 DIV - 53 col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-580
SELECT ALL col1 / - 53 col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + col1 + 51 FROM tab0 AS cor0
----
137
142
148
query I rowsort
SELECT DISTINCT cor0.col2 + 10 FROM tab0 AS cor0
----
11
43
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + + 17 col1 FROM tab0 AS cor0
----
-18
-7
-72
query I rowsort
SELECT ALL - col2 * col0 * col0 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT ALL 61 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT ( col2 ) * col2 + + col2 * + col0 + col2 AS col1 FROM tab0 AS cor0
----
14104
1914
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-587
SELECT - + CAST( + col0 AS SIGNED ) col0 FROM tab2 AS cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-587
SELECT - + CAST ( + col0 AS INTEGER ) col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + col2 * - 4 + col2 AS col2 FROM tab2 AS cor0
----
-114
-78
-81
query I rowsort
SELECT DISTINCT + 63 AS col2 FROM tab1, tab0 AS cor0
----
63
query I rowsort
SELECT - cor0.col1 + 1 + col1 * col0 FROM tab0 AS cor0
----
1979
3299
8009
query I rowsort
SELECT + col2 - col1 * col0 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL 39 * 32 - col1 FROM tab2
----
1189
1217
1231
query I rowsort
SELECT col2 * 89 FROM tab0
----
2937
7298
89
query I rowsort
SELECT DISTINCT col1 + - 46 - - col0 * 44 FROM tab0
----
1096
1591
3961
query I rowsort
SELECT DISTINCT + col1 * 56 + col2 + col1 AS col0 FROM tab1
----
1536
627
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - tab0.col1 col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ( col0 ) * - col2 + 69 + col0 AS col0 FROM tab2
----
-113
-1881
-2854
query I rowsort
SELECT - col1 + - 3 + + col1 * tab0.col1 FROM tab0
----
7307
8187
9309
query I rowsort
SELECT DISTINCT + ( col1 ) + + col0 * + col0 AS col0 FROM tab1
----
35
4106
6413
query I rowsort
SELECT - + col0 * - col0 + + ( + col0 ) - - col1 AS col1 FROM tab2 AS cor0
----
6221
6337
87
query I rowsort
SELECT DISTINCT + 81 - - col2 AS col0 FROM tab2
----
107
108
119
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 + col0 - col2 * col0 col0 FROM tab0 AS cor0
----
-7297
-856
-88
query I rowsort
SELECT - - 75 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query I rowsort
SELECT DISTINCT - col1 * + col2 + - tab2.col1 AS col0 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT 22 * + col2 AS col2 FROM tab0
----
1804
22
726
query I rowsort
SELECT - + col1 * cor0.col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT DISTINCT + col1 * + col1 + col2 AS col0 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT ALL - - col2 * col0 * - cor0.col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT ALL + ( - col0 ) * 23 + + 10 * col0 FROM tab0 AS cor0
----
-1157
-312
-455
query I rowsort
SELECT DISTINCT + - 40 - - col2 AS col1 FROM tab1 AS cor0
----
14
17
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-612
SELECT - - col2 * - col2 + ( - col0 ) DIV + col0 FROM tab1 AS cor0
----
-2917
-3250
-9217
skipif mysql # not compatible
query I rowsort label-612
SELECT - - col2 * - col2 + ( - col0 ) / + col0 FROM tab1 AS cor0
----
-2917
-3250
-9217
query I rowsort
SELECT DISTINCT col0 * + 69 * 85 FROM tab0 AS cor0
----
140760
205275
521985
query I rowsort
SELECT DISTINCT cor0.col0 * col0 AS col1 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT ALL - 38 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507
query I rowsort
SELECT ALL col0 + + 97 * col0 FROM tab0 AS cor0
----
2352
3430
8722
query I rowsort
SELECT - cor0.col1 * 52 AS col1 FROM tab1 AS cor0
----
-1352
-520
-676
query I rowsort
SELECT DISTINCT - - col0 + - col1 * + col1 + col1 AS col1 FROM tab0 AS cor0
----
-7286
-8101
-9277
query I rowsort
SELECT ALL - ( + 53 ) AS col1 FROM tab0 AS cor0
----
-53
-53
-53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * col1 + col2 col0 FROM tab1 cor0
----
157
265
730
query I rowsort
SELECT DISTINCT - col0 * 45 * col2 FROM tab1 AS cor0
----
-164160
-345600
-7290
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-622
SELECT DISTINCT - - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-622
SELECT DISTINCT - - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + 27 * col2 col0 FROM tab2 AS cor0
----
1064
728
756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col1 FROM tab1 AS cor0
----
74
74
74
query I rowsort
SELECT DISTINCT + cor0.col2 * + col0 + col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + col0 + 42 FROM tab2 AS cor0
----
120
121
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-627
SELECT DISTINCT - - col1 + 66 DIV + col1 AS col2 FROM tab1 AS cor0
----
16
18
28
skipif mysql # not compatible
query I rowsort label-627
SELECT DISTINCT - - col1 + 66 / + col1 AS col2 FROM tab1 AS cor0
----
16
18
28
query I rowsort
SELECT DISTINCT - 3 + - col2 FROM tab1 AS cor0
----
-57
-60
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-629
SELECT - col0 DIV ( - cor0.col2 + - 36 ) AS col0 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-629
SELECT - col0 / ( - cor0.col2 + - 36 ) AS col0 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-630
SELECT ALL - tab1.col0 DIV - 41 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-630
SELECT ALL - tab1.col0 / - 41 FROM tab1
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - ( + col1 ) col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - - col2 - - ( + col2 + - col1 ) FROM tab0 AS cor0
----
-20
-95
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-633
SELECT DISTINCT + 65 * + col1 DIV + col1 AS col0 FROM tab2 cor0
----
65
skipif mysql # not compatible
query I rowsort label-633
SELECT DISTINCT + 65 * + col1 / + col1 AS col0 FROM tab2 cor0
----
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-634
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-634
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - + ( - 34 ) AS col2 FROM tab0 AS cor0
----
34
34
34
query I rowsort
SELECT ALL + col1 * col2 + col1 + col2 * col0 AS col2 FROM tab0 AS cor0
----
14851
229
3716
query I rowsort
SELECT ALL - col1 + + col2 * - col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT 77 * - col1 FROM tab2
----
-1309
-2387
-4543
query I rowsort
SELECT cor0.col0 * col0 + + col0 AS col2 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT + 17 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT cor0.col2 AS col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-642
SELECT - col0 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-642
SELECT - col0 * + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + 73 col2 FROM tab2 AS cor0
----
104
132
90
query I rowsort
SELECT DISTINCT + + col2 * - col1 + + cor0.col1 + col0 FROM tab0 AS cor0
----
-2728
-7282
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-645
SELECT ALL CAST( NULL AS SIGNED ) * col1 - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-645
SELECT ALL CAST ( NULL AS INTEGER ) * col1 - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-646
SELECT - - col1 * - ( col2 ) + + CAST( - col2 AS SIGNED ) FROM tab0 cor0
----
-2871
-7544
-98
skipif mysql # not compatible
query I rowsort label-646
SELECT - - col1 * - ( col2 ) + + CAST ( - col2 AS INTEGER ) FROM tab0 cor0
----
-2871
-7544
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-647
SELECT DISTINCT CAST( - 64 AS SIGNED ) * + col2 col2 FROM tab0 AS cor0
----
-2112
-5248
-64
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-647
SELECT DISTINCT CAST ( - 64 AS INTEGER ) * + col2 col2 FROM tab0 AS cor0
----
-2112
-5248
-64
query I rowsort
SELECT + col2 - 80 FROM tab2 AS cor0
----
-42
-53
-54
query I rowsort
SELECT col2 - - col0 AS col0 FROM tab1 cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-650
SELECT + + 4 * + col2 * col1 + 87 DIV 85 FROM tab2 AS cor0
----
2585
3349
6137
skipif mysql # not compatible
query I rowsort label-650
SELECT + + 4 * + col2 * col1 + 87 / 85 FROM tab2 AS cor0
----
2585
3349
6137
query I rowsort
SELECT ALL + col0 * col0 - col1 AS col1 FROM tab2 AS cor0
----
18
6025
6224
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) + col0 col1 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-653
SELECT DISTINCT - - ( + col1 ) + + col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-653
SELECT DISTINCT - - ( + col1 ) + + col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-654
SELECT + col0 + col2 DIV - ( col2 * - col1 ) FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-654
SELECT + col0 + col2 / - ( col2 * - col1 ) FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 + - cor0.col0 col0 FROM tab1 AS cor0
----
-25
-9
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 + col0 * + col0 + - col1 col0 FROM tab1 cor0
----
-95
3446
5347
query I rowsort
SELECT + + cor0.col2 * col1 + 25 FROM tab2 AS cor0
----
1559
671
862
query I rowsort
SELECT + 61 * col2 * col1 - 33 FROM tab2 AS cor0
----
39373
51024
93541
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col1 ) + col2 col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - col1 * + cor0.col1 + - 9 AS col1 FROM tab2 AS cor0
----
-298
-3490
-970
onlyif mysql # use DIV operator for integer division
query I rowsort label-661
SELECT + col2 * - cor0.col2 + 99 DIV - col1 - - col2 AS col1 FROM tab2 AS cor0
----
-1411
-651
-705
skipif mysql # not compatible
query I rowsort label-661
SELECT + col2 * - cor0.col2 + 99 / - col1 - - col2 AS col1 FROM tab2 AS cor0
----
-1411
-651
-705
query I rowsort
SELECT DISTINCT - col0 * col0 + col0 * 8 * col0 FROM tab1
----
28672
44800
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-663
SELECT + cor0.col1 DIV + col1 + 33 FROM tab1 AS cor0
----
34
34
34
skipif mysql # not compatible
query I rowsort label-663
SELECT + cor0.col1 / + col1 + 33 FROM tab1 AS cor0
----
34
34
34
query I rowsort
SELECT DISTINCT col2 * - col2 + ( + col0 + + col1 * col2 ) FROM tab1 AS cor0
----
-1509
-2615
-7888
query I rowsort
SELECT DISTINCT - + col1 - + col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT + 64 * col0 + + ( col0 ) FROM tab2 AS cor0
----
455
5070
5135
query I rowsort
SELECT ALL + - cor0.col1 + - col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT ALL + col0 + col2 - 0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + 30 * + cor0.col2 + - 51 * + col1 AS col0 FROM tab1 cor0
----
1200
2217
294
query I rowsort
SELECT ALL 77 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT ALL - col2 * + 23 + col0 FROM tab2 cor0
----
-520
-614
-795
query I rowsort
SELECT ALL col1 * col1 + + 0 FROM tab2
----
289
3481
961
query I rowsort
SELECT - + 82 + col2 AS col0 FROM tab0 AS cor0
----
-49
-81
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 + col0 col1 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-675
SELECT ALL 5 DIV 55 FROM tab2, tab0 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-675
SELECT ALL 5 / 55 FROM tab2, tab0 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL - 94 * + 49 FROM tab1
----
-4606
-4606
-4606
onlyif mysql # use DIV operator for integer division
query I rowsort label-677
SELECT + 30 DIV - tab0.col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-677
SELECT + 30 / - tab0.col1 FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-678
SELECT - CAST( + col2 AS SIGNED ) * - col2 * - 40 FROM tab2 AS cor0
----
-27040
-29160
-57760
skipif mysql # not compatible
query I rowsort label-678
SELECT - CAST ( + col2 AS INTEGER ) * - col2 * - 40 FROM tab2 AS cor0
----
-27040
-29160
-57760
query I rowsort
SELECT ALL cor1.col0 + + cor0.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0, tab2 cor2
----
243 values hashing to 9e80342b0a7307a07b878360e2c0c5a4
query I rowsort
SELECT - cor1.col1 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT + col2 * + cor0.col1 - 91 FROM tab0 AS cor0
----
2747
6
7371
query I rowsort
SELECT DISTINCT - - col0 + - ( + ( col0 ) ) * + ( col1 ) AS col1 FROM tab2 cor0
----
-1264
-210
-4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 - - col0 col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL + + col0 * - col0 + + cor0.col2 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT DISTINCT cor0.col2 + 63 FROM tab2 AS cor0
----
101
89
90
query I rowsort
SELECT - col0 * cor0.col2 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT col2 * cor0.col0 - - col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT + col0 * - 39 * col2 FROM tab0 AS cor0
----
-1365
-284622
-30888
query I rowsort
SELECT ALL 33 + col2 FROM tab2 AS cor0
----
59
60
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 88 * - cor0.col2 col1 FROM tab0 AS cor0
----
-2818
-7125
9
query I rowsort
SELECT ALL + col0 * cor0.col0 + + col2 AS col0 FROM tab1 AS cor0
----
4153
63
6496
onlyif mysql # use DIV operator for integer division
query I rowsort label-692
SELECT DISTINCT + col2 DIV + col0 - col1 FROM tab0 AS cor0
----
-85
-91
-97
skipif mysql # not compatible
query I rowsort label-692
SELECT DISTINCT + col2 / + col0 - col1 FROM tab0 AS cor0
----
-85
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + + 62 * - col1 col0 FROM tab1 AS cor0
----
-1638
-630
-819
query I rowsort
SELECT ALL 94 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT ALL + - col0 * - col0 + - col2 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT ALL cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT DISTINCT - ( - col2 ) + + col1 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + col2 + cor0.col0 * + cor0.col0 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT ALL - + col1 * + col1 + + 72 FROM tab2 cor0
----
-217
-3409
-889
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - cor0.col1 + - 56 col1 FROM tab0 AS cor0
----
-7452
-8337
-9465
query I rowsort
SELECT DISTINCT 96 - cor0.col0 FROM tab0 AS cor0
----
61
7
72
query I rowsort
SELECT ALL - col2 * + col2 + + 73 * - cor0.col0 FROM tab2 AS cor0
----
-1240
-6370
-7211
query I rowsort
SELECT ALL col1 * + col0 + + ( cor0.col0 ) * ( + col1 ) * col1 FROM tab0 AS cor0
----
179568
332710
745108
query I rowsort
SELECT ALL + col1 * + 96 FROM tab0 AS cor0
----
8256
8736
9312
query I rowsort
SELECT DISTINCT + col2 * col2 * col1 + col1 * col0 AS col2 FROM tab0 AS cor0
----
3492
619983
95718
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 74 col1 FROM tab2 AS cor0
----
105
133
91
query I rowsort
SELECT ALL - col1 - cor0.col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT + col2 * cor0.col2 + - col1 * col0 AS col2 FROM tab0 AS cor0
----
-1375
-3394
-975
query I rowsort
SELECT ALL + col2 * - col2 * + col2 - col0 FROM tab0 AS cor0
----
-35961
-36
-551457
query I rowsort
SELECT DISTINCT - - col0 * 94 FROM tab0 AS cor0
----
2256
3290
8366
onlyif mysql # use DIV operator for integer division
query I rowsort label-711
SELECT 98 DIV col2 + col0 AS col1 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-711
SELECT 98 / col2 + col0 AS col1 FROM tab1
----
4
65
81
query I rowsort
SELECT tab0.col1 * col2 + - ( tab0.col2 ) * - col0 FROM tab0
----
132
14760
3630
onlyif mysql # use DIV operator for integer division
query I rowsort label-713
SELECT - cor0.col0 DIV + col0 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-713
SELECT - cor0.col0 / + col0 col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + col2 * 38 * ( + col1 ) FROM tab1 AS cor0
----
21660
47424
53352
query I rowsort
SELECT ALL - 39 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e
query I rowsort
SELECT DISTINCT + col1 + 65 AS col2 FROM tab0 AS cor0
----
151
156
162
query I rowsort
SELECT DISTINCT + 2 * + col1 FROM tab2
----
118
34
62
query I rowsort
SELECT col0 * ( - col1 ) + col2 * col0 * - col0 FROM tab0
----
-21072
-4620
-657621
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 * + 19 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 21382accbb62adcc52ecb7bf936b32b1
query I rowsort
SELECT DISTINCT + col2 + col2 * 17 AS col2 FROM tab1
----
1026
1728
972
query I rowsort
SELECT ALL + col0 * 39 + 29 + col2 AS col2 FROM tab2
----
3097
3148
329
onlyif mysql # use DIV operator for integer division
query I rowsort label-722
SELECT - col0 DIV ( + col2 ) - - cor0.col2 AS col2 FROM tab1 AS cor0
----
54
56
96
skipif mysql # not compatible
query I rowsort label-722
SELECT - col0 / ( + col2 ) - - cor0.col2 AS col2 FROM tab1 AS cor0
----
54
56
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-723
SELECT DISTINCT col1 - col0 DIV col2 AS col1 FROM tab1
----
13
26
9
skipif mysql # not compatible
query I rowsort label-723
SELECT DISTINCT col1 - col0 / col2 AS col1 FROM tab1
----
13
26
9
query I rowsort
SELECT ALL - cor0.col0 + cor0.col2 + + col1 * col1 AS col2 FROM tab1 AS cor0
----
185
727
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-725
SELECT DISTINCT + col1 + - CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-725
SELECT DISTINCT + col1 + - CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT col1 + - 70 FROM tab1
----
-44
-57
-60
query I rowsort
SELECT + 82 + - 79 AS col1 FROM tab0
----
3
3
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-728
SELECT DISTINCT ( tab0.col2 ) + + col1 DIV 35 FROM tab0
----
3
35
84
skipif mysql # not compatible
query I rowsort label-728
SELECT DISTINCT ( tab0.col2 ) + + col1 / 35 FROM tab0
----
3
35
84
query I rowsort
SELECT ( - 21 ) + + col1 AS col2 FROM tab0
----
65
70
76
query I rowsort
SELECT col1 - + col1 * - tab2.col2 AS col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT ALL + 7 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
query I rowsort
SELECT + 18 * + col2 FROM tab0 AS cor0
----
1476
18
594
query I rowsort
SELECT - tab1.col2 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 + 16 col1 FROM tab2
----
24
query I rowsort
SELECT 56 * + col0 + - col0 * col0 + col2 FROM tab1 cor0
----
-1824
-455
213
query I rowsort
SELECT ALL + col1 + 67 * - col0 AS col2 FROM tab1
----
-175
-4278
-5347
query I rowsort
SELECT 77 + + col2 FROM tab1
----
131
134
173
onlyif mysql # use DIV operator for integer division
query I rowsort label-738
SELECT col0 DIV col2 + - 31 DIV ( col0 ) AS col0 FROM tab0
----
-1
1
35
skipif mysql # not compatible
query I rowsort label-738
SELECT col0 / col2 + - 31 / ( col0 ) AS col0 FROM tab0
----
-1
1
35
query I rowsort
SELECT - 37 + - col2 FROM tab1 cor0
----
-133
-91
-94
query I rowsort
SELECT DISTINCT + - col0 * cor0.col2 * - col1 FROM tab1 AS cor0
----
36480
4212
99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-741
SELECT + 24 + + col0 + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-741
SELECT + 24 + + col0 + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 + col2 * 68 FROM tab1 AS cor0
----
3698
3886
6541
query I rowsort
SELECT ALL - + ( - col1 ) + + cor0.col1 AS col2 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL + + ( - col2 ) * col1 * + col2 FROM tab2 AS cor0
----
-22599
-24548
-39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-745
SELECT ALL + + 61 DIV col0 FROM tab1 AS cor0
----
0
0
20
skipif mysql # not compatible
query I rowsort label-745
SELECT ALL + + 61 / col0 FROM tab1 AS cor0
----
0
0
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-746
SELECT - - 81 + cor0.col2 + - CAST( + col1 AS SIGNED ) * cor0.col0 AS col0 FROM tab1 cor0
----
-502
-863
57
skipif mysql # not compatible
query I rowsort label-746
SELECT - - 81 + cor0.col2 + - CAST ( + col1 AS INTEGER ) * cor0.col0 AS col0 FROM tab1 cor0
----
-502
-863
57
query I rowsort
SELECT col2 * col0 + - col2 * col0 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-748
SELECT + col0 DIV - col1 + 34 - - col2 * + col0 FROM tab1 AS cor0
----
196
3676
7708
skipif mysql # not compatible
query I rowsort label-748
SELECT + col0 / - col1 + 34 - - col2 * + col0 FROM tab1 AS cor0
----
196
3676
7708
query I rowsort
SELECT ALL + tab2.col0 + - tab2.col2 AS col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT col0 * - col1 * + col0 AS col2 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT col1 + + tab2.col1 AS col1 FROM tab2
----
118
34
62
query I rowsort
SELECT DISTINCT col0 + - tab2.col1 AS col2 FROM tab2
----
-24
19
62
query I rowsort
SELECT ALL - col2 * + col2 * + col2 FROM tab1
----
-157464
-185193
-884736
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND col1 + col1 / - col0
----
query I rowsort
SELECT ALL 11 * col1 FROM tab0
----
1001
1067
946
onlyif mysql # use DIV operator for integer division
query I rowsort label-756
SELECT ( col0 ) + col2 DIV 60 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-756
SELECT ( col0 ) + col2 / 60 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 + col1 col0 FROM tab1
----
104
88
91
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 NOT IN ( + col1 )
----
query I rowsort
SELECT ALL - col2 - + col2 FROM tab2 WHERE ( NULL ) = NULL
----
query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND col0
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 BETWEEN col2 AND ( NULL )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT NULL <= NULL
----
query I rowsort
SELECT ALL col0 * col0 * - col2 + tab0.col2 * col1 * - tab0.col2 AS col2 FROM tab0
----
-112662
-1261406
-1322
query I rowsort
SELECT DISTINCT + tab2.col2 FROM tab2 WHERE NULL IN ( col1 + + col2 * + col0 + col0 )
----
query I rowsort
SELECT ALL - tab2.col1 * - col0 + col1 + - tab2.col1 AS col1 FROM tab2
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-766
SELECT col2 + - col0 DIV col1 + + col2 * - tab2.col2 AS col0 FROM tab2
----
-1410
-651
-702
skipif mysql # not compatible
query I rowsort label-766
SELECT col2 + - col0 / col1 + + col2 * - tab2.col2 AS col0 FROM tab2
----
-1410
-651
-702
query I rowsort
SELECT + col0 * tab1.col0 + - col2 AS col0 FROM tab1
----
-45
4039
6304
query I rowsort
SELECT ALL - col0 + + col0 * - col2 AS col2 FROM tab2
----
-196
-2106
-3081
query I rowsort
SELECT col2 * - col0 + - col0 FROM tab0
----
-70
-7387
-816
onlyif mysql # use DIV operator for integer division
query I rowsort label-770
SELECT ALL tab0.col0 DIV col2 col1 FROM tab0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-770
SELECT ALL tab0.col0 / col2 col1 FROM tab0
----
0
1
35
query I rowsort
SELECT + col0 * + col2 + - col1 + col2 AS col1 FROM tab0 WHERE NULL NOT IN ( + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-772
SELECT ALL + tab1.col1 DIV col0 AS col2 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-772
SELECT ALL + tab1.col1 / col0 AS col2 FROM tab1
----
0
0
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-773
SELECT col1 DIV - col2 + col0 col1 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-773
SELECT col1 / - col2 + col0 col1 FROM tab1
----
3
64
80
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 IN ( col0 * + col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT + col1 + - col1 + - col1 * + col2 * col1 AS col0 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT col0 + - col1 + tab1.col1 FROM tab1
----
3
64
80
query I rowsort
SELECT col2 + + col1 * + col2 * + col0 + + tab2.col0 AS col1 FROM tab2
----
119756
51151
5893
query I rowsort
SELECT ALL + col0 * + col2 + col1 + + col0 * + col0 FROM tab1
----
14093
197
7754
onlyif mysql # use DIV operator for integer division
query I rowsort label-779
SELECT col2 * col0 DIV col1 FROM tab2
----
176
34
6
skipif mysql # not compatible
query I rowsort label-779
SELECT col2 * col0 / col1 FROM tab2
----
176
34
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-780
SELECT DISTINCT - col1 * + col1 + - col2 + col2 DIV + col1 AS col0 FROM tab0
----
-7429
-8363
-9410
skipif mysql # not compatible
query I rowsort label-780
SELECT DISTINCT - col1 * + col1 + - col2 + col2 / + col1 AS col0 FROM tab0
----
-7429
-8363
-9410
query I rowsort
SELECT DISTINCT col0 + - col1 - tab2.col1 AS col0 FROM tab2
----
-40
-55
45
query I rowsort
SELECT DISTINCT col1 + col0 * col2 AS col1 FROM tab2 WHERE col0 - + col2 > ( NULL )
----
query I rowsort
SELECT - col1 * tab2.col1 * + col2 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT ALL - ( ( + col2 ) ) AS col0 FROM tab2
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-785
SELECT ALL ( col2 + - tab1.col1 ) DIV 75 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-785
SELECT ALL ( col2 + - tab1.col1 ) / 75 FROM tab1
----
0
0
1
query I rowsort
SELECT - col0 * col0 + col0 - cor0.col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT + + ( col1 ) * cor0.col1 FROM tab1 cor0
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + col2 - 2 col0 FROM tab2 AS cor0
----
-2
-2
-2
query I rowsort
SELECT DISTINCT 30 * col0 AS col1 FROM tab1
----
1920
2400
90
query I rowsort
SELECT DISTINCT - 90 * col0 FROM tab0
----
-2160
-3150
-8010
query I rowsort
SELECT - + 52 + col2 AS col1 FROM tab2 AS cor0
----
-14
-25
-26
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 + + 40 * col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
185614
54366
9517
query I rowsort
SELECT ALL + 47 * col1 + 8 FROM tab1 AS cor0
----
1230
478
619
query I rowsort
SELECT col0 + + ( col2 ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT tab1.col1 + ( col1 ) FROM tab1
----
20
26
52
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 * CAST ( - col2 AS REAL ) + col0 * ( + 70 ) AS col1 FROM tab1 cor0
----
1614
5050
6848
query I rowsort
SELECT ALL col0 + + 3 * + 30 * - col2 FROM tab2 AS cor0
----
-2262
-2423
-3341
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 col1 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-799
SELECT + cor0.col2 + CAST( ( col0 ) AS SIGNED ) * CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
6110
6279
76
skipif mysql # not compatible
query I rowsort label-799
SELECT + cor0.col2 + CAST ( ( col0 ) AS INTEGER ) * CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-800
SELECT ALL + CAST( - 15 AS SIGNED ) * col0 + + ( 78 ) + - col2 * - col1 AS col1 FROM tab1 cor0
----
-312
126
1437
skipif mysql # not compatible
query I rowsort label-800
SELECT ALL + CAST ( - 15 AS INTEGER ) * col0 + + ( 78 ) + - col2 * - col1 AS col1 FROM tab1 cor0
----
-312
126
1437
query I rowsort
SELECT 77 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 38f487c2147ee2fe05527e38c5e0503b
query I rowsort
SELECT ALL ( + 41 ) * - col1 + col2 FROM tab1 AS cor0
----
-1012
-353
-437
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-803
SELECT ALL + CAST( col0 AS SIGNED ) * col0 + - col2 * - cor0.col2 FROM tab0 AS cor0
----
1226
14645
1665
skipif mysql # not compatible
query I rowsort label-803
SELECT ALL + CAST ( col0 AS INTEGER ) * col0 + - col2 * - cor0.col2 FROM tab0 AS cor0
----
1226
14645
1665
query I rowsort
SELECT - - cor0.col1 FROM tab0, tab1 cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to de2705ff0bb8b4f714dafb07497c6119
query I rowsort
SELECT 20 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + cor0.col2 col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT 36 + col2 FROM tab0 AS cor0
----
118
37
69
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) * cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + ( + col1 ) AS col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL tab1.col1 * + ( tab1.col0 ) AS col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT ( - col0 ) + + tab0.col1 FROM tab0
----
2
62
62
query I rowsort
SELECT ALL + + col2 - - col0 * col1 FROM tab2 AS cor0
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 43 + - col2 + cor0.col2 * col1 col2 FROM tab0 AS cor0
----
139
2848
7423
query I rowsort
SELECT - 20 + col0 FROM tab1 AS cor0
----
-17
44
60
query I rowsort
SELECT ALL + + 35 AS col1 FROM tab1 cor0
----
35
35
35
query I rowsort
SELECT + 4 * - col2 FROM tab2 cor0
----
-104
-108
-152
query I rowsort
SELECT + cor0.col2 * - col0 + col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT ALL col0 * col1 + col2 + col0 FROM tab2
----
1460
251
4706
query I rowsort
SELECT - col0 * col0 + 1 * col2 * col1 + col2 FROM tab0 cor0
----
-1127
-377
2295
query I rowsort
SELECT + col2 * col0 + + ( - col0 ) * - col2 * col2 FROM tab2
----
117078
5292
54756
query I rowsort
SELECT ALL ( + col2 ) * col2 * col0 AS col0 FROM tab2 AS cor0
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-822
SELECT + - col1 DIV 40 AS col2 FROM tab0 AS cor0
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-822
SELECT + - col1 / 40 AS col2 FROM tab0 AS cor0
----
-2
-2
-2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-823
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-823
SELECT DISTINCT + + CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-824
SELECT ALL - CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-824
SELECT ALL - CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-825
SELECT + CAST( 30 AS SIGNED ) col2 FROM tab0 AS cor0
----
30
30
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-825
SELECT + CAST ( 30 AS INTEGER ) col2 FROM tab0 AS cor0
----
30
30
30
query I rowsort
SELECT DISTINCT - col1 * - col0 * col2 AS col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL + - col1 + - col2 * + col0 FROM tab1 cor0
----
-188
-3658
-7693
query I rowsort
SELECT ALL - col2 - col2 * col1 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT cor0.col2 * col1 * - col1 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT ALL col1 + cor0.col1 * cor0.col2 FROM tab1 cor0
----
1261
1430
580
query I rowsort
SELECT ALL - col2 * col0 + - col0 AS col2 FROM tab1 cor0
----
-165
-3712
-7760
query I rowsort
SELECT col2 * + col2 * + col2 AS col2 FROM tab0 AS cor0
----
1
35937
551368
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + + col2 < ( NULL )
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> ( col1 )
----
query I rowsort
SELECT DISTINCT + col1 + col2 * col0 + + col1 FROM tab0 cor0
----
229
7480
964
query I rowsort
SELECT ALL + - cor0.col0 * col2 * col0 AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT ALL - - col0 + - col1 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-49
44
54
query I rowsort
SELECT - col0 * col1 + cor0.col2 * col1 FROM tab1 AS cor0
----
-70
1326
208
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 * col0 - + col2 col2 FROM tab2 AS cor0
----
-22869
-271544
-6754
query I rowsort
SELECT DISTINCT - col1 + col1 * - col2 AS col1 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT - col1 + col1 * tab2.col2 FROM tab2
----
1475
629
806
query I rowsort
SELECT DISTINCT - col1 * col2 * col0 + col1 FROM tab0
----
-3298
-664027
-68026
query I rowsort
SELECT - + col2 + + col2 * col0 AS col1 FROM tab0 AS cor0
----
34
7216
759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + tab0.col2 * - col2 col1 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT DISTINCT + col0 + - col0 * - col1 FROM tab0
----
2088
3430
8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-846
SELECT + col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-846
SELECT + col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + + 86 + + col1 AS col0 FROM tab2 AS cor0
----
120
148
204
query I rowsort
SELECT 12 * col2 + + ( + col1 ) FROM tab2
----
355
371
473
query I rowsort
SELECT tab1.col0 * 25 FROM tab1
----
1600
2000
75
query I rowsort
SELECT col0 * - 51 + + col0 AS col0 FROM tab0 AS cor0
----
-1200
-1750
-4450
onlyif mysql # use DIV operator for integer division
query I rowsort label-851
SELECT - col1 DIV + ( - col2 ) + col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-851
SELECT - col1 / + ( - col2 ) + col0 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-852
SELECT col0 DIV - 28 AS col1 FROM tab1
----
-2
-2
0
skipif mysql # not compatible
query I rowsort label-852
SELECT col0 / - 28 AS col1 FROM tab1
----
-2
-2
0
query I rowsort
SELECT + col2 * - ( - 76 + col0 ) AS col2 FROM tab0
----
-1066
1716
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-854
SELECT ALL + col2 * col2 DIV col1 FROM tab1
----
112
324
708
skipif mysql # not compatible
query I rowsort label-854
SELECT ALL + col2 * col2 / col1 FROM tab1
----
112
324
708
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 + - col1 ) col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col1 * - col2 + + ( + col1 ) * col1 AS col1 FROM tab1 AS cor0
----
-1079
-470
-728
query I rowsort
SELECT + 70 * + cor0.col0 FROM tab0 cor0
----
1680
2450
6230
query I rowsort
SELECT ALL + - ( col2 ) + + 41 FROM tab2 AS cor0
----
14
15
3
query I rowsort
SELECT ALL - col0 * - col2 + + 67 - 19 * - col0 * + 43 AS col2 FROM tab1 AS cor0
----
2680
56003
73107
query I rowsort
SELECT + + 51 * cor0.col0 * + col1 FROM tab2 AS cor0
----
11067
234702
68493
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 + ( col1 ) ) col0 FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-862
SELECT DISTINCT + col1 * col0 DIV - col1 AS col0 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-862
SELECT DISTINCT + col1 * col0 / - col1 AS col0 FROM tab1
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-863
SELECT - + col1 * col2 DIV col0 AS col2 FROM tab2 AS cor0
----
-119
-19
-8
skipif mysql # not compatible
query I rowsort label-863
SELECT - + col1 * col2 / col0 AS col2 FROM tab2 AS cor0
----
-119
-19
-8
query I rowsort
SELECT - cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT + 14 + - cor0.col1 FROM tab1, tab1 cor0
----
9 values hashing to 6c8e0965c675d69b605dd8f5ee836301
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( - col1 ) col1 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( - col0 ) col1 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT col2 * col1 + col1 AS col0 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT 1 * col1 + - col2 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + ( + ( cor0.col2 ) ) + - ( col2 ) * + col0 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT col0 * ( + col0 ) + - col2 FROM tab1 cor0
----
-45
4039
6304
query I rowsort
SELECT - ( col2 ) * - cor0.col0 + + ( col2 ) + + col2 FROM tab2 AS cor0
----
2080
243
3078
query I rowsort
SELECT DISTINCT + + 74 FROM tab1 cor0
----
74
query I rowsort
SELECT DISTINCT 49 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
2646
2793
4704
query I rowsort
SELECT ALL col0 * ( + col0 + - 94 ) * + ( - col2 ) AS col1 FROM tab0 AS cor0
----
2065
36490
55440
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-876
SELECT ALL + CAST( - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-876
SELECT ALL + CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + 39 + col0 AS col1 FROM tab2 AS cor0
----
117
118
46
query I rowsort
SELECT DISTINCT 47 + - 79 * col0 FROM tab0 cor0
----
-1849
-2718
-6984
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-879
SELECT ALL col0 + - col2 - col1 * CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1384
197
4654
skipif mysql # not compatible
query I rowsort label-879
SELECT ALL col0 + - col2 - col1 * CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1384
197
4654
onlyif mysql # use DIV operator for integer division
query I rowsort label-880
SELECT DISTINCT + 5 DIV - col1 + cor0.col1 * - col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-880
SELECT DISTINCT + 5 / - col1 + cor0.col1 * - col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL - - 0 * + 65 + col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL 18 + - col1 FROM tab0 AS cor0
----
-68
-73
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-883
SELECT DISTINCT col2 + CAST( col1 AS SIGNED ) col0 FROM tab0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-883
SELECT DISTINCT col2 + CAST ( col1 AS INTEGER ) col0 FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT - col1 * - col1 + + col0 FROM tab1
----
164
249
679
query I rowsort
SELECT - ( - 69 ) AS col2 FROM tab0 AS cor0
----
69
69
69
query I rowsort
SELECT DISTINCT - 13 AS col1 FROM tab2 cor0
----
-13
query I rowsort
SELECT + - cor0.col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT 86 + col0 AS col0 FROM tab2
----
164
165
93
query I rowsort
SELECT + - 89 + col1 FROM tab2 AS cor0
----
-30
-58
-72
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to ea1a922b7fccb9d184b31eb4689e063b
query I rowsort
SELECT 21 + + col2 AS col2 FROM tab1
----
117
75
78
query I rowsort
SELECT DISTINCT - 22 + + col2 AS col0 FROM tab0 AS cor0
----
-21
11
60
query I rowsort
SELECT DISTINCT + - cor0.col2 - + 34 AS col1 FROM tab0 AS cor0
----
-116
-35
-67
query I rowsort
SELECT + - 74 * + col1 FROM tab2 AS cor0
----
-1258
-2294
-4366
query I rowsort
SELECT col1 * - ( col0 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-896
SELECT cor0.col0 + col2 DIV - col0 FROM tab1 AS cor0
----
-15
64
79
skipif mysql # not compatible
query I rowsort label-896
SELECT cor0.col0 + col2 / - col0 FROM tab1 AS cor0
----
-15
64
79
query I rowsort
SELECT ALL + + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT DISTINCT - col1 + col2 * - 56 AS col0 FROM tab0
----
-153
-1934
-4683
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col0 * col0 col2 FROM tab2
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col1 + + col1 col2 FROM tab1
----
0
query I rowsort
SELECT DISTINCT + col2 * col2 + col1 * + col1 FROM tab2
----
1690
1733
4157
onlyif mysql # use DIV operator for integer division
query I rowsort label-902
SELECT DISTINCT - col1 DIV - col2 + col2 * + col1 FROM tab0
----
194
2840
7463
skipif mysql # not compatible
query I rowsort label-902
SELECT DISTINCT - col1 / - col2 + col2 * + col1 FROM tab0
----
194
2840
7463
query I rowsort
SELECT - col2 * + cor0.col1 + - 65 FROM tab1 cor0
----
-1313
-1469
-635
query I rowsort
SELECT DISTINCT cor0.col1 * ( col2 ) AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL - col0 + col2 * + col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT - - col0 - + cor0.col1 * ( col1 ) AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT ALL + col2 * + 52 * 4 - cor0.col1 * col2 FROM tab2 AS cor0
----
3874
4779
7258
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-908
SELECT col2 * + CAST( - col1 * col2 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
-22592
-24469
-39806
skipif mysql # not compatible
query I rowsort label-908
SELECT col2 * + CAST ( - col1 * col2 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
-22592
-24469
-39806
query I rowsort
SELECT col2 * col0 * - tab0.col1 FROM tab0
----
-3395
-664118
-68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-910
SELECT DISTINCT - CAST( 67 AS SIGNED ) * + tab1.col0 FROM tab1, tab0 cor0
----
-201
-4288
-5360
skipif mysql # not compatible
query I rowsort label-910
SELECT DISTINCT - CAST ( 67 AS INTEGER ) * + tab1.col0 FROM tab1, tab0 cor0
----
-201
-4288
-5360
query I rowsort
SELECT DISTINCT 82 * cor0.col0 AS col2 FROM tab1, tab1 AS cor0
----
246
5248
6560
query I rowsort
SELECT ALL - col2 + col0 * 47 FROM tab0
----
1095
1644
4101
query I rowsort
SELECT ALL - col1 * col2 + tab2.col1 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT ALL + + col2 * + ( cor0.col0 ) + col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT + col0 * 33 * + col1 AS col0 FROM tab2 AS cor0
----
151866
44319
7161
query I rowsort
SELECT DISTINCT col0 * 87 + 67 * col1 FROM tab1 AS cor0
----
2003
6238
7831
query I rowsort
SELECT + col0 - + ( cor0.col2 ) AS col1 FROM tab1 cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-918
SELECT DISTINCT + - col1 + cor0.col0 DIV - 17 FROM tab0 AS cor0
----
-87
-96
-99
skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT + - col1 + cor0.col0 / - 17 FROM tab0 AS cor0
----
-87
-96
-99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-919
SELECT DISTINCT - col0 * CAST( 24 AS SIGNED ) + cor0.col1 col1 FROM tab1 AS cor0
----
-1526
-1907
-46
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-919
SELECT DISTINCT - col0 * CAST ( 24 AS INTEGER ) + cor0.col1 col1 FROM tab1 AS cor0
----
-1526
-1907
-46
query I rowsort
SELECT col0 + 43 FROM tab2 AS cor0
----
121
122
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-921
SELECT ALL + col0 + cor0.col1 * cor0.col2 DIV col0 AS col1 FROM tab1 AS cor0
----
471
72
95
skipif mysql # not compatible
query I rowsort label-921
SELECT ALL + col0 + cor0.col1 * cor0.col2 / col0 AS col1 FROM tab1 AS cor0
----
471
72
95
query I rowsort
SELECT tab1.col0 * 1 * tab1.col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT ALL cor0.col0 FROM tab0, tab2 AS cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT - 40 + + cor0.col0 * + col1 FROM tab2 cor0
----
1303
177
4562
query I rowsort
SELECT DISTINCT - 10 + + col0 FROM tab0 cor0
----
14
25
79
query I rowsort
SELECT DISTINCT ( - col2 + - tab1.col1 ) * col0 * tab1.col2 FROM tab1
----
-12960
-244416
-837120
onlyif mysql # use DIV operator for integer division
query I rowsort label-927
SELECT col0 + + col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
3
65
80
skipif mysql # not compatible
query I rowsort label-927
SELECT col0 + + col0 / + col2 AS col1 FROM tab1 AS cor0
----
3
65
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-928
SELECT + col0 + col1 + + CAST( - col1 AS SIGNED ) * col0 AS col0 FROM tab1
----
-49
-566
-947
skipif mysql # not compatible
query I rowsort label-928
SELECT + col0 + col1 + + CAST ( - col1 AS INTEGER ) * col0 AS col0 FROM tab1
----
-49
-566
-947
onlyif mysql # use DIV operator for integer division
query I rowsort label-929
SELECT DISTINCT - col1 + tab0.col2 DIV + col0 AS col1 FROM tab0
----
-85
-91
-97
skipif mysql # not compatible
query I rowsort label-929
SELECT DISTINCT - col1 + tab0.col2 / + col0 AS col1 FROM tab0
----
-85
-91
-97
query I rowsort
SELECT DISTINCT col2 * col2 + + col0 AS col0 FROM tab2
----
1523
736
754
query I rowsort
SELECT ALL 33 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
query I rowsort
SELECT DISTINCT + 39 + - col0 FROM tab0 AS cor0
----
-50
15
4
query I rowsort
SELECT DISTINCT - - 45 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
131
136
142
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab0 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 4c5172baaab682f997bd09d2b5cf0d22
query I rowsort
SELECT + col2 - - ( ( cor0.col2 ) ) FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT col1 * cor0.col2 + + 23 FROM tab1 AS cor0
----
1271
1427
593
query I rowsort
SELECT ALL + col0 * col1 + + 14 FROM tab0 AS cor0
----
2078
3409
8113
query I rowsort
SELECT ALL - + col1 + + ( col2 + + cor0.col2 ) AS col0 FROM tab1 AS cor0
----
104
179
82
query I rowsort
SELECT DISTINCT + col1 * col1 + 17 AS col1 FROM tab1 cor0
----
117
186
693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-940
SELECT tab1.col1 + col2 + CAST( + col0 AS SIGNED ) FROM tab1
----
131
189
83
skipif mysql # not compatible
query I rowsort label-940
SELECT tab1.col1 + col2 + CAST ( + col0 AS INTEGER ) FROM tab1
----
131
189
83
query I rowsort
SELECT DISTINCT + col2 + - col2 * 72 - col1 * + col2 FROM tab2
----
-2754
-3344
-3380
query I rowsort
SELECT + cor0.col0 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
onlyif mysql # use DIV operator for integer division
query I rowsort label-943
SELECT + + 86 DIV - 67 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-943
SELECT + + 86 / - 67 FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-944
SELECT + ( - col1 ) DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-944
SELECT + ( - col1 ) / col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + + 32 * col1 AS col2 FROM tab0 AS cor0
----
2752
2912
3104
query I rowsort
SELECT - + 77 FROM tab1 AS cor0
----
-77
-77
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-947
SELECT 33 + col2 DIV - 75 AS col1 FROM tab2 AS cor0
----
33
33
33
skipif mysql # not compatible
query I rowsort label-947
SELECT 33 + col2 / - 75 AS col1 FROM tab2 AS cor0
----
33
33
33
query I rowsort
SELECT + col0 + col2 * 14 FROM tab0 AS cor0
----
1237
486
49
query I rowsort
SELECT + - 1 * - col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-950
SELECT ALL 90 DIV col1 + col1 FROM tab2 AS cor0
----
22
33
60
skipif mysql # not compatible
query I rowsort label-950
SELECT ALL 90 / col1 + col1 FROM tab2 AS cor0
----
22
33
60
query I rowsort
SELECT DISTINCT - col1 + col2 * 73 AS col2 FROM tab0 AS cor0
----
-24
2323
5895
query I rowsort
SELECT DISTINCT - col2 * col1 + col0 * col2 FROM tab2 AS cor0
----
-648
2356
494
query I rowsort
SELECT ALL + col0 - ( - 15 ) * col1 FROM tab2 AS cor0
----
334
472
963
query I rowsort
SELECT tab1.col0 * - 57 * col0 AS col1 FROM tab1
----
-233472
-364800
-513
query I rowsort
SELECT + + col0 * col0 + 9 FROM tab2 AS cor0
----
58
6093
6250
query I rowsort
SELECT - col1 + - col2 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT + + 7 * 10 FROM tab2 cor0
----
70
70
70
query I rowsort
SELECT - col2 + + cor0.col2 * cor0.col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT - + col1 * - col0 AS col0 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-960
SELECT DISTINCT cor0.col1 * CAST( NULL AS SIGNED ) FROM tab1, tab0, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab1, tab0, tab2 AS cor0
----
NULL
query I rowsort
SELECT + col2 * - ( + 25 ) FROM tab2
----
-650
-675
-950
query I rowsort
SELECT col2 * - ( + col0 ) AS col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL + col1 * col0 * - col2 AS col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT col1 * - col0 * - col0 AS col0 FROM tab0 AS cor0
----
118825
49536
720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-965
SELECT DISTINCT - 40 * col1 * col0 - ( cor0.col1 ) DIV col0 FROM tab1 AS cor0
----
-25600
-3128
-41600
skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT - 40 * col1 * col0 - ( cor0.col1 ) / col0 FROM tab1 AS cor0
----
-25600
-3128
-41600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 * cor0.col0 + + col2 * col1 * cor0.col2 col1 FROM tab2 AS cor0
----
19650
22165
35048
query I rowsort
SELECT 65 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c
query I rowsort
SELECT ALL 77 + col1 * col2 * col2 AS col0 FROM tab1 AS cor0
----
119885
32567
75893
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 12 * + col0 * col1 col1 FROM tab1 cor0
----
12480
7680
936
query I rowsort
SELECT DISTINCT 44 AS col0 FROM tab1 AS cor0
----
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-971
SELECT + CAST( - col0 AS SIGNED ) * col2 * - CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1225
19008
649522
skipif mysql # not compatible
query I rowsort label-971
SELECT + CAST ( - col0 AS INTEGER ) * col2 * - CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT DISTINCT col0 * 93 + - col2 FROM tab0
----
2199
3254
8195
query I rowsort
SELECT DISTINCT 68 * + col2 + tab0.col2 * col0 FROM tab0
----
103
12874
3036
query I rowsort
SELECT ALL - - 20 * col0 + - col0 FROM tab2 AS cor0
----
133
1482
1501
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-975
SELECT ALL CAST( - 91 AS SIGNED ) + + col0 col1 FROM tab0
----
-2
-56
-67
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-975
SELECT ALL CAST ( - 91 AS INTEGER ) + + col0 col1 FROM tab0
----
-2
-56
-67
query I rowsort
SELECT + col1 + col1 * col2 FROM tab1
----
1261
1430
580
query I rowsort
SELECT - col2 + - 44 AS col1 FROM tab1
----
-101
-140
-98
query I rowsort
SELECT col2 * - 98 + col0 AS col1 FROM tab0
----
-3210
-63
-7947
onlyif mysql # use DIV operator for integer division
query I rowsort label-979
SELECT + col0 + 76 * - 94 + cor0.col1 DIV col0 col1 FROM tab0 AS cor0
----
-7054
-7107
-7117
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-979
SELECT + col0 + 76 * - 94 + cor0.col1 / col0 col1 FROM tab0 AS cor0
----
-7054
-7107
-7117
query I rowsort
SELECT ALL + cor0.col0 + - cor0.col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 col0 FROM tab2, tab0, tab0 AS cor0
----
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-982
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-982
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - col0 * 99 * col2 - + col1 FROM tab2 AS cor0
----
-18742
-200831
-297215
query I rowsort
SELECT DISTINCT + cor0.col2 * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-985
SELECT - 13 DIV - col0 FROM tab1
----
0
0
4
skipif mysql # not compatible
query I rowsort label-985
SELECT - 13 / - col0 FROM tab1
----
0
0
4
query I rowsort
SELECT ALL ( tab0.col0 ) * col1 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL col0 + tab0.col0 * - col0 FROM tab0
----
-1190
-552
-7832
query I rowsort
SELECT + col2 - + ( col2 ) * + col2 AS col2 FROM tab0
----
-1056
-6642
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-989
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) - - 71 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-989
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) - - 71 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-990
SELECT + col0 + + 61 * ( col1 ) DIV col0 FROM tab0 AS cor0
----
151
204
242
skipif mysql # not compatible
query I rowsort label-990
SELECT + col0 + + 61 * ( col1 ) / col0 FROM tab0 AS cor0
----
151
204
242
query I rowsort
SELECT + 96 * col2 FROM tab0
----
3168
7872
96
query I rowsort
SELECT 27 AS col2 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT ALL + 51 + + col1 * col1 + col1 FROM tab2
----
1043
357
3591
query I rowsort
SELECT ( 12 + cor0.col2 ) * + tab0.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f66c3be35bbdd38cdbf5da8f18c2a4e1
query I rowsort
SELECT 17 * + col1 + - ( tab2.col0 ) FROM tab2
----
210
520
925
query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - col0 + col0 * col1 AS col0 FROM tab2
----
1264
210
4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + cor0.col1 col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - - cor0.col0 + - col1 AS col0 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-1000
SELECT ALL - + col1 DIV - col2 + col1 FROM tab0 cor0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL - + col1 / - col2 + col1 FROM tab0 cor0
----
194
88
92
query I rowsort
SELECT - + col1 * + col1 + + col2 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT DISTINCT + + 47 - col0 FROM tab2 AS cor0
----
-31
-32
40
query I rowsort
SELECT - col0 * cor0.col2 * - col0 + - 45 FROM tab0 AS cor0
----
1180
18963
649477
onlyif mysql # use DIV operator for integer division
query I rowsort label-1004
SELECT DISTINCT - 2 + + col1 DIV - 4 + - col0 col2 FROM tab2 cor0
----
-16
-85
-94
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1004
SELECT DISTINCT - 2 + + col1 / - 4 + - col0 col2 FROM tab2 cor0
----
-16
-85
-94
query I rowsort
SELECT ALL col2 * 76 FROM tab0 AS cor0
----
2508
6232
76
query I rowsort
SELECT + col0 + ( + col1 ) * + cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
118860
49560
720900
query I rowsort
SELECT - col2 + + 73 + + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-143
-1981
-2967
query I rowsort
SELECT DISTINCT + col0 * 32 AS col1 FROM tab1 AS cor0
----
2048
2560
96
query I rowsort
SELECT + 40 + col1 FROM tab2
----
57
71
99
query I rowsort
SELECT DISTINCT + tab2.col0 + 30 FROM tab2, tab1 AS cor0
----
108
109
37
query I rowsort
SELECT - 33 * - tab2.col0 - - col2 * col0 * - col2 FROM tab2
----
-111469
-4872
-50154
query I rowsort
SELECT DISTINCT col2 + col0 * ( col1 + col1 ) FROM tab1
----
1337
210
2176
query I rowsort
SELECT + col0 + + col2 * - 96 FROM tab0 AS cor0
----
-3144
-61
-7783
query I rowsort
SELECT ALL + + col0 - col0 * col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT ALL 73 * col2 + - col0 * + cor0.col2 FROM tab1 AS cor0
----
-672
3780
513
query I rowsort
SELECT DISTINCT ( + col2 ) * col1 FROM tab2 cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1017
SELECT ALL - - 39 + col1 DIV + col0 AS col0 FROM tab0 AS cor0
----
40
41
42
skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL - - 39 + col1 / + col0 AS col0 FROM tab0 AS cor0
----
40
41
42
query I rowsort
SELECT DISTINCT + col1 - - col2 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL - col1 - 12 AS col1 FROM tab0 AS cor0
----
-103
-109
-98
query I rowsort
SELECT - 56 - 27 FROM tab2 AS cor0
----
-83
-83
-83
query I rowsort
SELECT DISTINCT + col0 * + ( + col1 ) + - col1 AS col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT - - ( - col0 ) + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT DISTINCT col0 + col2 * col1 AS col1 FROM tab2 cor0
----
1612
725
844
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col0 AS REAL ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - cor0.col0 + + col0 * - col0 FROM tab2 AS cor0
----
-56
-6162
-6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1026
SELECT CAST( + 62 AS SIGNED ) + + col1 FROM tab1 cor0
----
72
75
88
skipif mysql # not compatible
query I rowsort label-1026
SELECT CAST ( + 62 AS INTEGER ) + + col1 FROM tab1 cor0
----
72
75
88
query I rowsort
SELECT ALL - col0 + + ( cor0.col0 ) * + 42 FROM tab1 AS cor0
----
123
2624
3280
query I rowsort
SELECT DISTINCT + - col1 - col2 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT cor0.col2 * - 51 - col1 FROM tab1 AS cor0
----
-2780
-2917
-4909
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 + - col1 col0 FROM tab1 AS cor0
----
-16
-3
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1031
SELECT ( 77 ) + - col1 DIV + 9 AS col1 FROM tab1
----
75
76
76
skipif mysql # not compatible
query I rowsort label-1031
SELECT ( 77 ) + - col1 / + 9 AS col1 FROM tab1
----
75
76
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * cor0.col2 + cor0.col0 col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT cor1.col0 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT ALL + col2 * + col1 + 5 FROM tab2 AS cor0
----
1539
651
842
query I rowsort
SELECT ALL - + col0 + - col1 AS col0 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT 32 * col2 FROM tab1 AS cor0
----
1728
1824
3072
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT + col2 * col0 + - col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT 18 - - col2 * + 14 FROM tab1 AS cor0
----
1362
774
816
query I rowsort
SELECT ALL - cor0.col2 + col1 * + 64 + - col0 FROM tab0 AS cor0
----
5447
5653
6172
query I rowsort
SELECT - - col1 + col1 * col0 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-1042
SELECT + cor0.col2 * - col2 - + col2 DIV col1 col2 FROM tab1 AS cor0
----
-2918
-3254
-9223
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1042
SELECT + cor0.col2 * - col2 - + col2 / col1 col2 FROM tab1 AS cor0
----
-2918
-3254
-9223
skipif mysql # not compatible
query I rowsort
SELECT ( col2 ) / CAST ( - 1 AS REAL ) + col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT 94 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT 67 + - col1 * + col1 + tab0.col2 FROM tab0
----
-7296
-8132
-9341
query I rowsort
SELECT DISTINCT - tab1.col2 AS col1 FROM tab1, tab0 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - cor0.col0 + 52 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e522377644026285fcf1a1273b4fd522
query I rowsort
SELECT ALL col2 * - col0 + col1 * col0 AS col1 FROM tab0 AS cor0
----
1272
3360
801
onlyif mysql # use DIV operator for integer division
query I rowsort label-1049
SELECT col1 * + col0 - - 98 DIV col0 FROM tab2 AS cor0
----
1344
231
4603
skipif mysql # not compatible
query I rowsort label-1049
SELECT col1 * + col0 - - 98 / col0 FROM tab2 AS cor0
----
1344
231
4603
query I rowsort
SELECT ALL ( col0 ) * + col1 + - col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT - 34 AS col2 FROM tab0 cor0
----
-34
-34
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - col0 * - col1 col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT cor0.col2 * - 77 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 2aa79fe915f87c8ab9be417fb5d6c1eb
query I rowsort
SELECT - - 93 AS col2 FROM tab0 AS cor0
----
93
93
93
query I rowsort
SELECT + 73 AS col0 FROM tab0 cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 9f0f371d979e70a792c8597c6559f0e2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1056
SELECT col0 + - CAST( col0 AS SIGNED ) * - tab2.col0 col1 FROM tab2
----
56
6162
6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1056
SELECT col0 + - CAST ( col0 AS INTEGER ) * - tab2.col0 col1 FROM tab2
----
56
6162
6320
query I rowsort
SELECT ALL - 73 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc
query I rowsort
SELECT ALL - ( - 48 ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT DISTINCT ( + col1 ) * col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - 22 * - col0 * col2 FROM tab0 AS cor0
----
160556
17424
770
query I rowsort
SELECT DISTINCT col0 * cor0.col0 * col2 AS col2 FROM tab0 cor0
----
1225
19008
649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 col0 FROM tab0
----
164
2
66
query I rowsort
SELECT ALL - ( 89 ) * col2 FROM tab0 AS cor0
----
-2937
-7298
-89
query I rowsort
SELECT DISTINCT - 64 * + tab1.col0 AS col2 FROM tab1
----
-192
-4096
-5120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * + 16 col0 FROM tab0 cor0
----
1424
384
560
query I rowsort
SELECT + cor0.col2 + - col2 * + 16 FROM tab1 AS cor0
----
-1440
-810
-855
query I rowsort
SELECT + col1 * - col0 * cor0.col2 FROM tab2 cor0
----
-119652
-51034
-5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + cor0.col2 col2 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-1069
SELECT - - col1 + col2 DIV + col0 FROM tab2 AS cor0
----
17
34
59
skipif mysql # not compatible
query I rowsort label-1069
SELECT - - col1 + col2 / + col0 FROM tab2 AS cor0
----
17
34
59
query I rowsort
SELECT col0 * 74 AS col0 FROM tab0
----
1776
2590
6586
onlyif mysql # use DIV operator for integer division
query I rowsort label-1071
SELECT - tab0.col1 DIV + col0 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-1071
SELECT - tab0.col1 / + col0 FROM tab0
----
-1
-2
-3
query I rowsort
SELECT tab1.col2 * 34 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9a76f309f391bb36b66eeb31a9309de0
query I rowsort
SELECT cor0.col2 * col1 + col0 AS col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT + + cor0.col2 + + ( + col2 + col2 ) AS col1 FROM tab1 AS cor0
----
162
171
288
query I rowsort
SELECT + ( - col0 ) - - col1 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1076
SELECT CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1076
SELECT CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 64 col1 FROM tab1 cor0
----
-64
-64
-64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1078
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col0 + col2 * ( + col1 ) * col1 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT CAST ( NULL AS REAL ) * col0 + col2 * ( + col1 ) * col1 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - + 29 + - col2 * + col1 * col0 FROM tab2 AS cor0
----
-119681
-51063
-5888
query I rowsort
SELECT DISTINCT - 31 + - col2 AS col1 FROM tab1 AS cor0
----
-127
-85
-88
query I rowsort
SELECT - col2 * col1 + 12 + - 33 AS col0 FROM tab2 AS cor0
----
-1555
-667
-858
onlyif mysql # use DIV operator for integer division
query I rowsort label-1082
SELECT - col1 * cor0.col1 DIV + cor0.col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-1082
SELECT - col1 * cor0.col1 / + cor0.col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - 62 * + col0 AS col0 FROM tab2
----
-434
-4836
-4898
query I rowsort
SELECT ( col1 ) * col2 * + 19 FROM tab1
----
10830
23712
26676
onlyif mysql # use DIV operator for integer division
query I rowsort label-1085
SELECT - col2 DIV 89 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1085
SELECT - col2 / 89 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col0 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT - col0 + cor0.col0 * + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
42
6006
6162
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 + + col0 col1 FROM tab1 AS cor0
----
19
80
96
query I rowsort
SELECT ALL col2 * + col0 * - tab2.col0 + 98 FROM tab2
----
-1225
-158086
-237060
query I rowsort
SELECT ALL - 12 + col1 * - col0 AS col0 FROM tab2
----
-1355
-229
-4614
query I rowsort
SELECT DISTINCT - cor0.col1 + col1 * ( - col0 ) AS col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT - - cor0.col2 * - col0 + 63 * + col1 FROM tab2 AS cor0
----
-1931
1689
1764
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 5 * col2 - col2 * col0 col1 FROM tab1 AS cor0
----
-3363
-7200
108
query I rowsort
SELECT + col0 * + cor0.col2 - + col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT ALL + cor0.col1 + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL - col1 * - col1 + 5 AS col2 FROM tab1 AS cor0
----
105
174
681
query I rowsort
SELECT + - col0 - col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-2919
-3313
-9296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - cor0.col1 + cor0.col2 col1 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT - + col1 + - cor0.col1 + cor0.col1 AS col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - - cor0.col0 + - col0 * - ( cor0.col2 ) * col2 FROM tab1 AS cor0
----
208000
737360
8751
query I rowsort
SELECT cor0.col2 * + 33 FROM tab2 AS cor0
----
1254
858
891
query I rowsort
SELECT ALL + col1 + + col0 + - col0 * + col0 AS col2 FROM tab1 AS cor0
----
-4022
-6307
20
query I rowsort
SELECT DISTINCT col1 * cor0.col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT col0 + col1 * col1 + col0 AS col1 FROM tab1 AS cor0
----
228
329
682
query I rowsort
SELECT ALL col2 + + ( 75 ) FROM tab2 AS cor0
----
101
102
113
query I rowsort
SELECT + col0 + 85 * col2 AS col1 FROM tab2 cor0
----
2288
2302
3309
query I rowsort
SELECT DISTINCT - col1 + 93 * + col2 AS col2 FROM tab1 cor0
----
4996
5291
8915
query I rowsort
SELECT DISTINCT + col0 * 7 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1519
32214
9401
query I rowsort
SELECT ALL - col1 + + 52 + + col2 AS col0 FROM tab2 AS cor0
----
19
48
73
query I rowsort
SELECT ALL + ( - col2 ) * + ( col1 ) + + tab1.col2 AS col0 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT ALL - 13 * - col2 AS col0 FROM tab2
----
338
351
494
onlyif mysql # use DIV operator for integer division
query I rowsort label-1112
SELECT ALL + 10 * col1 DIV 21 AS col2 FROM tab2
----
14
28
8
skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL + 10 * col1 / 21 AS col2 FROM tab2
----
14
28
8
query I rowsort
SELECT - 24 * + 42 AS col1 FROM tab0 AS cor0
----
-1008
-1008
-1008
query I rowsort
SELECT - ( + col2 ) * col0 * col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT - - 38 + 34 * col2 AS col2 FROM tab1 AS cor0
----
1874
1976
3302
query I rowsort
SELECT DISTINCT - col0 * - 57 * col2 FROM tab2
----
10773
115596
171114
query I rowsort
SELECT + 47 * 9 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 9b2fc4d8a7c88b8eebf0628f2e2f8db7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1118
SELECT ALL + CAST( NULL AS SIGNED ) * + 56 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL + CAST ( NULL AS INTEGER ) * + 56 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * 26 FROM tab0 AS cor0
----
-2236
-2366
-2522
query I rowsort
SELECT - 5 * - 6 AS col0 FROM tab2 AS cor0
----
30
30
30
query I rowsort
SELECT DISTINCT - col2 * cor0.col2 AS col2 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + col1 * - ( ( - col2 ) ) AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT + col1 - col1 * + col0 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT - ( tab0.col0 ) AS col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL - col2 + 29 AS col0 FROM tab2
----
-9
2
3
query I rowsort
SELECT DISTINCT col0 + + 42 AS col0 FROM tab2 AS cor0
----
120
121
49
query I rowsort
SELECT DISTINCT + cor0.col1 * + cor0.col0 AS col2 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col2 * col0 + - col2 FROM tab1
----
108
3591
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 + tab2.col0 + + 23 col0 FROM tab2
----
127
140
57
query I rowsort
SELECT tab0.col0 + col0 + 99 * + col2 * + ( tab0.col2 ) FROM tab0
----
107859
169
665854
query I rowsort
SELECT ALL 56 * - col2 FROM tab2 AS cor0
----
-1456
-1512
-2128
query I rowsort
SELECT + 68 * - col0 + col2 FROM tab2 cor0
----
-449
-5278
-5334
query I rowsort
SELECT ALL - + 37 AS col0 FROM tab0 AS cor0
----
-37
-37
-37
query I rowsort
SELECT DISTINCT + cor0.col2 * + col2 AS col2 FROM tab0 cor0
----
1
1089
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1135
SELECT ALL + CAST( NULL AS SIGNED ) + - 79 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL + CAST ( NULL AS INTEGER ) + - 79 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 34 * col1 + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-3630
1835
3297
query I rowsort
SELECT + col0 * 74 - - col1 * - col2 * - 62 FROM tab2 AS cor0
----
100880
45898
52412
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1138
SELECT ALL CAST( NULL AS SIGNED ) * - col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 63 col0 FROM tab2 AS cor0
----
63
query I rowsort
SELECT - + 19 + col0 AS col2 FROM tab1 AS cor0
----
-16
45
61
query I rowsort
SELECT DISTINCT cor0.col2 + ( + col1 ) FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - col1 + 88 FROM tab2 AS cor0
----
29
57
71
query I rowsort
SELECT ( 61 ) * col2 AS col2 FROM tab0 AS cor0
----
2013
5002
61
query I rowsort
SELECT DISTINCT - ( 81 ) + col1 AS col2 FROM tab1 AS cor0
----
-55
-68
-71
query I rowsort
SELECT ALL + ( - cor0.col2 ) + - col0 AS col2 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1146
SELECT DISTINCT - - col2 DIV - col2 FROM tab1 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT - - col2 / - col2 FROM tab1 cor0
----
-1
query I rowsort
SELECT ALL - col0 * col1 + col1 FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1148
SELECT - + ( - cor0.col1 ) * CAST( cor0.col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-1148
SELECT - + ( - cor0.col1 ) * CAST ( cor0.col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - - col1 * - col0 * col1 + col2 * + col0 * + col0 FROM tab2 cor0
----
-113334
-5404
214327
query I rowsort
SELECT DISTINCT + col0 * 8 + - col0 AS col2 FROM tab1 AS cor0
----
21
448
560
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 cor0.col2 * 34 FROM tab2 AS cor0
----
1292
884
918
onlyif mysql # use DIV operator for integer division
query I rowsort label-1153
SELECT DISTINCT + col1 DIV + col2 + - ( col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-1153
SELECT DISTINCT + col1 / + col2 + - ( col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1154
SELECT - cor0.col2 DIV 41 + col0 FROM tab1 AS cor0
----
2
63
78
skipif mysql # not compatible
query I rowsort label-1154
SELECT - cor0.col2 / 41 + col0 FROM tab1 AS cor0
----
2
63
78
query I rowsort
SELECT DISTINCT - col0 * ( col0 ) * col1 + - col2 FROM tab2 AS cor0
----
-106135
-1546
-358982
query I rowsort
SELECT ALL + + col1 + + ( 12 ) FROM tab2 AS cor0
----
29
43
71
query I rowsort
SELECT - col1 + 40 AS col2 FROM tab0 AS cor0
----
-46
-51
-57
query I rowsort
SELECT ALL col0 + - 9 AS col1 FROM tab2 AS cor0
----
-2
69
70
query I rowsort
SELECT DISTINCT ( cor1.col0 ) + - 89 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-54
-65
0
query I rowsort
SELECT ALL + - col0 + + col0 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col1 * col1 + - col0 * + cor0.col1 * cor0.col1 - - 26 AS col1 FROM tab1 AS cor0
----
-1326
-13325
-6274
onlyif mysql # use DIV operator for integer division
query I rowsort label-1162
SELECT col1 DIV col2 + col2 AS col0 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-1162
SELECT col1 / col2 + col2 AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT - cor0.col1 * 29 AS col2 FROM tab0 AS cor0
----
-2494
-2639
-2813
query I rowsort
SELECT + col0 + ( + col2 ) * col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT col1 + + 67 * tab2.col0 + tab2.col2 FROM tab2
----
527
5311
5348
query I rowsort
SELECT col2 + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL + 28 FROM tab2, tab1 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + col2 col2 FROM tab0 AS cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 - col0 col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + ( col0 ) * 85 AS col1 FROM tab1 cor0
----
255
5440
6800
query I rowsort
SELECT 16 * + 33 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 119e4f6f14dcb7c9d0882395f185dd74
query I rowsort
SELECT + - ( + cor0.col0 ) + - col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab1, tab0 cor0, tab1 cor1
----
-10
-13
-26
query I rowsort
SELECT ALL 88 * - tab1.col1 AS col0 FROM tab1
----
-1144
-2288
-880
query I rowsort
SELECT - + 50 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to faf91d5263c18db4877a3c30c47e2487
onlyif mysql # use DIV operator for integer division
query I rowsort label-1176
SELECT DISTINCT col1 DIV col0 - ( col2 ) * col0 * col2 AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8740
skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT col1 / col0 - ( col2 ) * col0 * col2 AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8740
query I rowsort
SELECT 28 * col0 AS col0 FROM tab0 AS cor0
----
2492
672
980
query I rowsort
SELECT ALL - col1 * + col2 - ( - col0 ) AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL cor0.col0 * + tab1.col2 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 11fb95e355e995b05aff375a305225c2
query I rowsort
SELECT - col0 * + col1 + + col0 * cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
12480
1950
5760
query I rowsort
SELECT - 46 - col0 AS col0 FROM tab0 AS cor0
----
-135
-70
-81
query I rowsort
SELECT - 6 + - col2 FROM tab1 cor0
----
-102
-60
-63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * + col0 + + col2 col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT - col1 * - 43 * col1 FROM tab0
----
318028
356083
404587
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 col0 FROM tab0
----
94
query I rowsort
SELECT ALL + - cor0.col0 * + col2 + ( + col2 ) * col2 FROM tab0 AS cor0
----
-34
-574
297
query I rowsort
SELECT DISTINCT - 26 - col1 AS col2 FROM tab1 AS cor0
----
-36
-39
-52
query I rowsort
SELECT + 84 * col2 - + col0 AS col0 FROM tab0 cor0
----
2748
49
6799
query I rowsort
SELECT ALL + + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1191
SELECT DISTINCT - cor0.col0 * col1 DIV col0 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT - cor0.col0 * col1 / col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL cor0.col2 + ( - 63 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 132773094435f4defca86f7358c594ff
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 col2 FROM tab1, tab2 AS cor0
----
3
64
80
query I rowsort
SELECT - 48 * - col0 * + col1 AS col1 FROM tab0
----
162960
388752
99072
query I rowsort
SELECT DISTINCT 72 AS col1 FROM tab2, tab1 AS cor0
----
72
query I rowsort
SELECT - tab0.col1 * + ( col2 + - col1 ) * + tab0.col1 FROM tab0
----
391988
74529
903264
query I rowsort
SELECT + 92 AS col1 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to cfcf012ce1a8dd60a7428b4ef6b95843
query I rowsort
SELECT + 76 FROM tab0, tab1 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0, tab0 AS cor1, tab0 AS cor2
----
13122 values hashing to 2f84819770adc206e0722f2043cf0967
query I rowsort
SELECT 78 * ( col0 * cor0.col0 ) FROM tab0 AS cor0
----
44928
617838
95550
query I rowsort
SELECT - tab1.col1 * col1 * ( + col2 ) AS col0 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT col1 + col0 + 55 FROM tab2
----
151
192
93
query I rowsort
SELECT ALL + col1 * col2 * col1 + + col0 * col2 FROM tab1
----
23904
36666
9348
onlyif mysql # use DIV operator for integer division
query I rowsort label-1204
SELECT DISTINCT 73 DIV - col1 + 68 * + 25 AS col1 FROM tab2
----
1696
1698
1699
skipif mysql # not compatible
query I rowsort label-1204
SELECT DISTINCT 73 / - col1 + 68 * + 25 AS col1 FROM tab2
----
1696
1698
1699
query I rowsort
SELECT + 36 AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 4d1892e880125dc90345721151acb22c
query I rowsort
SELECT 94 + - tab1.col1 + - tab1.col0 AS col0 FROM tab1
----
1
20
65
query I rowsort
SELECT ALL - col2 * + cor0.col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT - - col1 * - col2 + ( + col0 ) AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL - ( 9 ) FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5
query I rowsort
SELECT ALL + ( + col0 ) * + 76 * ( col0 ) AS col1 FROM tab1 AS cor0
----
311296
486400
684
query I rowsort
SELECT - cor0.col1 * + col0 + + 59 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
3136
3680
99
query I rowsort
SELECT - 19 * col0 - - 49 AS col1 FROM tab0 cor0
----
-1642
-407
-616
query I rowsort
SELECT DISTINCT tab2.col0 * + ( - col0 * col0 ) + + ( + tab2.col1 ) * col0 + + 23 * - 23 AS col0 FROM tab2
----
-470479
-492225
-655
onlyif mysql # use DIV operator for integer division
query I rowsort label-1214
SELECT col2 DIV 48 - + col1 DIV col1 AS col1 FROM tab0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-1214
SELECT col2 / 48 - + col1 / col1 AS col1 FROM tab0
----
-1
-1
0
query I rowsort
SELECT + col2 + + 47 FROM tab2 AS cor0
----
73
74
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-1216
SELECT col0 + col0 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-1216
SELECT col0 + col0 / cor0.col2 AS col0 FROM tab0 AS cor0
----
24
70
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-1217
SELECT DISTINCT cor0.col2 DIV col0 AS col1 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-1217
SELECT DISTINCT cor0.col2 / col0 AS col1 FROM tab0 AS cor0
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1218
SELECT + - 14 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1218
SELECT + - 14 / + col1 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1219
SELECT ALL - CAST( col2 AS SIGNED ) DIV - col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-1219
SELECT ALL - CAST ( col2 AS INTEGER ) / - col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT + col1 * ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL ( 48 ) + + cor0.col2 FROM tab0 AS cor0
----
130
49
81
query I rowsort
SELECT DISTINCT - - ( ( col1 ) ) * col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-1223
SELECT ALL - CAST( + col0 AS SIGNED ) + + col0 DIV + col1 FROM tab2 AS cor0
----
-7
-75
-77
skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL - CAST ( + col0 AS INTEGER ) + + col0 / + col1 FROM tab2 AS cor0
----
-7
-75
-77
query I rowsort
SELECT DISTINCT 55 AS col0 FROM tab0, tab0 cor0, tab0 AS cor1
----
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( + cor0.col0 ) col0 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1226
SELECT ALL + col1 * + CAST( + 96 AS SIGNED ) col2 FROM tab0 AS cor0
----
8256
8736
9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL + col1 * + CAST ( + 96 AS INTEGER ) col2 FROM tab0 AS cor0
----
8256
8736
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-1227
SELECT DISTINCT cor0.col0 DIV - col0 + + col1 * + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-118826
-49537
-720812
skipif mysql # not compatible
query I rowsort label-1227
SELECT DISTINCT cor0.col0 / - col0 + + col1 * + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-118826
-49537
-720812
query I rowsort
SELECT DISTINCT - + col2 * + col1 + - col0 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT - col0 * 98 AS col1 FROM tab2
----
-686
-7644
-7742
onlyif mysql # use DIV operator for integer division
query I rowsort label-1230
SELECT + col0 DIV ( 18 ) AS col1 FROM tab2
----
0
4
4
skipif mysql # not compatible
query I rowsort label-1230
SELECT + col0 / ( 18 ) AS col1 FROM tab2
----
0
4
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1231
SELECT DISTINCT + col0 * + ( 90 ) * + tab1.col2 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT + col0 * + ( 90 ) * + tab1.col2 + - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT col2 * ( + tab0.col1 ) + + col1 * - ( + tab0.col0 ) AS col2 FROM tab0
----
-3298
-637
774
query I rowsort
SELECT - 76 + + 86 AS col2 FROM tab1 AS cor0
----
10
10
10
query I rowsort
SELECT ALL col2 - tab2.col2 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1235
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) * - tab1.col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1235
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) * - tab1.col2 FROM tab1
----
NULL
query I rowsort
SELECT - col2 * + 34 + col2 FROM tab2
----
-1254
-858
-891
query I rowsort
SELECT 87 * col1 - col0 AS col1 FROM tab1
----
1051
2259
806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 + col2 col0 FROM tab0
----
146
65
97
query I rowsort
SELECT col1 * - ( col0 ) + 77 * - col2 FROM tab1
----
-4236
-5029
-8432
query I rowsort
SELECT DISTINCT - 76 AS col1 FROM tab0 cor0
----
-76
query I rowsort
SELECT DISTINCT - col0 * + col2 + + tab1.col0 AS col1 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT tab2.col2 + + 32 FROM tab2
----
58
59
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 + + col1 col2 FROM tab0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-1244
SELECT col1 + col0 DIV col0 + - col2 AS col1 FROM tab2
----
-20
34
5
skipif mysql # not compatible
query I rowsort label-1244
SELECT col1 + col0 / col0 + - col2 AS col1 FROM tab2
----
-20
34
5
query I rowsort
SELECT ALL - 91 * + col2 AS col2 FROM tab2 cor0
----
-2366
-2457
-3458
query I rowsort
SELECT 9 * col2 FROM tab1 AS cor0
----
486
513
864
query I rowsort
SELECT ALL col1 + + col2 * 74 FROM tab2 AS cor0
----
1983
2029
2829
onlyif mysql # use DIV operator for integer division
query I rowsort label-1248
SELECT DISTINCT - col1 + - col2 * - col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-1248
SELECT DISTINCT - col1 + - col2 * - col2 / + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + + col0 + col1 * 7 AS col1 FROM tab1 cor0
----
134
171
185
query I rowsort
SELECT ALL col2 + col2 * - col0 + + cor0.col2 FROM tab0 cor0
----
-33
-7134
-726
query I rowsort
SELECT DISTINCT - cor0.col1 - - col0 AS col0 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col0 col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + - 45 * col0 AS col0 FROM tab2 AS cor0
----
-315
-3510
-3555
query I rowsort
SELECT ALL - + 50 AS col1 FROM tab1 AS cor0
----
-50
-50
-50
query I rowsort
SELECT + col1 + col0 * + col2 AS col2 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT col0 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - - cor0.col0 * - cor0.col1 * 43 AS col2 FROM tab1 AS cor0
----
-27520
-3354
-44720
query I rowsort
SELECT ( + col2 * - tab0.col1 ) FROM tab0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1259
SELECT ALL ( - col0 ) DIV col1 AS col0 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL ( - col0 ) / col1 AS col0 FROM tab1
----
-6
-6
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1260
SELECT + + col0 + col2 * - col1 DIV - col1 + + cor0.col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2859
-3128
-9040
skipif mysql # not compatible
query I rowsort label-1260
SELECT + + col0 + col2 * - col1 / - col1 + + cor0.col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2859
-3128
-9040
onlyif mysql # use DIV operator for integer division
query I rowsort label-1261
SELECT DISTINCT + 68 DIV + col0 FROM tab2
----
0
9
skipif mysql # not compatible
query I rowsort label-1261
SELECT DISTINCT + 68 / + col0 FROM tab2
----
0
9
query I rowsort
SELECT cor0.col0 * - 0 AS col1 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT DISTINCT - + ( col1 ) + - ( + col1 ) + + col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT col0 + - col0 * - col1 AS col2 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT col0 * ( + col1 + + col2 ) AS col2 FROM tab2 AS cor0
----
406
4345
6630
query I rowsort
SELECT - col0 * + cor0.col1 AS col0 FROM tab1 cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col0 col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-1268
SELECT ALL - - 37 DIV col0 + col0 AS col1 FROM tab0 cor0
----
25
36
89
skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL - - 37 / col0 + col0 AS col1 FROM tab0 cor0
----
25
36
89
query I rowsort
SELECT DISTINCT + - 49 + - 15 FROM tab0 AS cor0
----
-64
query I rowsort
SELECT DISTINCT - col0 + 47 * col1 FROM tab1 AS cor0
----
1219
406
531
onlyif mysql # use DIV operator for integer division
query I rowsort label-1271
SELECT ALL - 33 DIV 31 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL - 33 / 31 FROM tab2 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 95 col1 FROM tab0 cor0
----
3135
7790
95
query I rowsort
SELECT DISTINCT - + col1 * + ( + col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL 54 + col2 FROM tab0 AS cor0
----
136
55
87
query I rowsort
SELECT DISTINCT + - 59 + col2 * col2 FROM tab0 AS cor0
----
-58
1030
6665
query I rowsort
SELECT + + cor0.col2 + col2 * + col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT - 65 * - col2 FROM tab2 AS cor0
----
1690
1755
2470
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1278
SELECT - cor0.col1 * - col1 + - cor0.col2 * + CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3548
-7511
514
skipif mysql # not compatible
query I rowsort label-1278
SELECT - cor0.col1 * - col1 + - cor0.col2 * + CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3548
-7511
514
query I rowsort
SELECT - col1 - 48 AS col0 FROM tab0 AS cor0
----
-134
-139
-145
onlyif mysql # use DIV operator for integer division
query I rowsort label-1280
SELECT DISTINCT 25 DIV cor0.col2 - col2 AS col0 FROM tab1 cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-1280
SELECT DISTINCT 25 / cor0.col2 - col2 AS col0 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ALL + + cor0.col1 * - col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + - col0 - col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT - + col2 + - col2 * - col1 AS col0 FROM tab2 cor0
----
1508
608
810
query I rowsort
SELECT + 70 + + cor0.col1 FROM tab0 cor0
----
156
161
167
query I rowsort
SELECT 60 + cor0.col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to 703f841924a3879d877ddfebf23c8e2f
query I rowsort
SELECT 64 * - col1 + + tab2.col0 AS col1 FROM tab2
----
-1009
-1977
-3698
query I rowsort
SELECT + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1288
SELECT ALL CAST( NULL AS SIGNED ) * + col0 * col0 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1288
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 * col0 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + 7 FROM tab1
----
17
20
33
query I rowsort
SELECT + col2 * - 48 AS col0 FROM tab0
----
-1584
-3936
-48
query I rowsort
SELECT - cor0.col0 - col1 * 43 FROM tab2 AS cor0
----
-1340
-2615
-810
query I rowsort
SELECT col2 * 76 AS col2 FROM tab1
----
4104
4332
7296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT - cor0.col2 * ( - col1 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - col2 * 85 - cor0.col1 FROM tab0 AS cor0
----
-182
-2891
-7061
query I rowsort
SELECT 25 FROM tab2 cor0
----
25
25
25
query I rowsort
SELECT ALL 64 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
153
88
99
query I rowsort
SELECT + ( col2 ) + cor0.col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + cor0.col2 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - 46 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9
query I rowsort
SELECT 68 * + col2 * + 77 AS col1 FROM tab2 AS cor0
----
136136
141372
198968
query I rowsort
SELECT col1 * + cor0.col1 * + col1 AS col1 FROM tab2 AS cor0
----
205379
29791
4913
query I rowsort
SELECT + + 2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
query I rowsort
SELECT ALL cor0.col1 + col0 * col0 + col0 AS col0 FROM tab2 AS cor0
----
6221
6337
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col0 col1 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1306
SELECT ALL + col2 + + CAST( NULL AS SIGNED ) + + 36 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1306
SELECT ALL + col2 + + CAST ( NULL AS INTEGER ) + + 36 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col0 + 86 FROM tab0 AS cor0
----
-3
51
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 + - col0 * - col2 col1 FROM tab1 AS cor0
----
14080
171
7744
query I rowsort
SELECT ALL col1 + col2 + col2 * col1 FROM tab0
----
195
2957
7635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 col0 FROM tab1, tab2 AS cor0
----
1
query I rowsort
SELECT ALL - - col2 + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1482
702
756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 + - col0 * + col0 * + ( col2 * + col0 ) col0 FROM tab0 AS cor0
----
-42817
-456134
-57807400
onlyif mysql # use DIV operator for integer division
query I rowsort label-1313
SELECT + + 13 * - cor0.col0 + col2 DIV + 40 FROM tab1 AS cor0
----
-1038
-38
-831
skipif mysql # not compatible
query I rowsort label-1313
SELECT + + 13 * - cor0.col0 + col2 / + 40 FROM tab1 AS cor0
----
-1038
-38
-831
query I rowsort
SELECT + ( + 32 ) + + cor0.col1 AS col2 FROM tab2 cor0
----
49
63
91
query I rowsort
SELECT + - col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + col1 AS REAL ) + col1 FROM tab0
----
172
182
194
query I rowsort
SELECT - 25 - col2 FROM tab2
----
-51
-52
-63
onlyif mysql # use DIV operator for integer division
query I rowsort label-1318
SELECT + tab0.col1 DIV col2 + col1 * + 20 AS col2 FROM tab0
----
1722
1821
2037
skipif mysql # not compatible
query I rowsort label-1318
SELECT + tab0.col1 / col2 + col1 * + 20 AS col2 FROM tab0
----
1722
1821
2037
query I rowsort
SELECT ALL - 97 + col1 * - tab1.col2 AS col0 FROM tab1
----
-1345
-1501
-667
query I rowsort
SELECT + + 33 + col1 FROM tab1 cor0
----
43
46
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-1321
SELECT - col0 DIV col1 + + 99 * col2 * col0 FROM tab1 AS cor0
----
16038
361146
760314
skipif mysql # not compatible
query I rowsort label-1321
SELECT - col0 / col1 + + 99 * col2 * col0 FROM tab1 AS cor0
----
16038
361146
760314
query I rowsort
SELECT - cor0.col1 + col2 + col2 AS col0 FROM tab2 AS cor0
----
-7
23
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-1323
SELECT 5 DIV cor0.col2 + - ( col0 + col0 ) FROM tab1 AS cor0
----
-128
-160
-6
skipif mysql # not compatible
query I rowsort label-1323
SELECT 5 / cor0.col2 + - ( col0 + col0 ) FROM tab1 AS cor0
----
-128
-160
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1324
SELECT DISTINCT col1 + + col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1324
SELECT DISTINCT col1 + + col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1325
SELECT + + col2 + - col1 DIV 28 AS col2 FROM tab0 AS cor0
----
-2
30
79
skipif mysql # not compatible
query I rowsort label-1325
SELECT + + col2 + - col1 / 28 AS col2 FROM tab0 AS cor0
----
-2
30
79
query I rowsort
SELECT DISTINCT - col1 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT col2 + + col1 + col0 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT ALL + + ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1329
SELECT DISTINCT - 79 * - cor0.col0 + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1329
SELECT DISTINCT - 79 * - cor0.col0 + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - + 78 + col1 AS col2 FROM tab2 AS cor0
----
-19
-47
-61
query I rowsort
SELECT DISTINCT + 28 + 93 * + col2 * 46 AS col0 FROM tab1 AS cor0
----
231040
243874
410716
query I rowsort
SELECT ALL - col0 * col2 + - col2 AS col1 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT ALL - 32 * col0 AS col2 FROM tab2 cor0
----
-224
-2496
-2528
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 * - cor0.col2 + col0 col2 FROM tab2 AS cor0
----
1357
1378
1979
query I rowsort
SELECT + + 96 FROM tab2 cor0
----
96
96
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1336
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + ( col1 ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1336
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + ( col1 ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 23 * col0 AS col1 FROM tab0 AS cor0
----
2047
552
805
query I rowsort
SELECT 69 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2 cor2
----
81 values hashing to dfada1ee7a4e3e5c74a063a1282769f9
query I rowsort
SELECT ALL - col2 + - col1 + col1 FROM tab2 AS cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 col1 FROM tab1 AS cor0
----
55
55
55
query I rowsort
SELECT - ( + cor0.col0 ) + - 35 * - 79 AS col0 FROM tab1 AS cor0
----
2685
2701
2762
query I rowsort
SELECT ALL - ( - 28 * tab0.col2 ) FROM tab0
----
2296
28
924
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 * - col2 col2 FROM tab0 AS cor0
----
1394
17
561
query I rowsort
SELECT ALL col1 * + col1 + + 79 * col1 FROM tab1 AS cor0
----
1196
2730
890
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1345
SELECT DISTINCT + col0 + - CAST( cor0.col0 AS SIGNED ) - col2 FROM tab2 cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-1345
SELECT DISTINCT + col0 + - CAST ( cor0.col0 AS INTEGER ) - col2 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - col2 * ( col2 ) + col1 * col1 * col2 - - col0 FROM tab1 cor0
----
2515
33591
7088
query I rowsort
SELECT ALL - + cor0.col2 * - 22 + - cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
-243
-962
190
query I rowsort
SELECT + col0 * col1 * 33 + cor0.col0 FROM tab1 AS cor0
----
21184
2577
34400
query I rowsort
SELECT DISTINCT cor0.col2 - col2 AS col0 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( 55 ) * - col1 col2 FROM tab0 AS cor0
----
-4644
-4914
-5238
onlyif mysql # use DIV operator for integer division
query I rowsort label-1351
SELECT - col1 + + col0 + 73 DIV + col1 FROM tab0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-1351
SELECT - col1 + + col0 + 73 / + col1 FROM tab0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-1352
SELECT ALL - 52 DIV - col1 + col0 FROM tab2
----
78
8
82
skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL - 52 / - col1 + col0 FROM tab2
----
78
8
82
query I rowsort
SELECT ALL - col0 + + col1 - + col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT + cor0.col0 * cor0.col0 + col0 * col2 AS col0 FROM tab2 AS cor0
----
238
8112
9243
query I rowsort
SELECT DISTINCT + + col1 + - col2 * col2 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT ALL - col2 * col0 + col1 * col0 FROM tab0 AS cor0
----
1272
3360
801
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 * col2 + tab2.col2 col1 FROM tab2
----
11020
25974
90532
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1358
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1358
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - tab1.col2 + - col0 AS col2 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT + col1 * + 22 + 17 AS col1 FROM tab0
----
1909
2019
2151
query I rowsort
SELECT col0 * - ( col2 * - tab2.col0 ) + + col1 + - 94 FROM tab2
----
1260
158149
237081
query I rowsort
SELECT - tab1.col0 * - 41 FROM tab1
----
123
2624
3280
query I rowsort
SELECT - - 67 * - col1 * - col2 FROM tab0 AS cor0
----
190146
499954
6499
query I rowsort
SELECT + 85 + - col2 * + col0 FROM tab1 AS cor0
----
-3563
-7595
-77
query I rowsort
SELECT + col1 * col2 * - col0 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1366
SELECT - CAST( NULL AS SIGNED ) + + tab0.col2 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1366
SELECT - CAST ( NULL AS INTEGER ) + + tab0.col2 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT tab2.col1 * - cor0.col1 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to c6f4b0b1d1f7796b05493e23d40b0b75
query I rowsort
SELECT cor0.col2 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 + - col2 ) col0 FROM tab2
----
-21
33
4
query I rowsort
SELECT ( + 51 ) * - col1 FROM tab0 AS cor0
----
-4386
-4641
-4947
query I rowsort
SELECT 21 * + cor0.col0 + - col0 * col2 AS col0 FROM tab1 AS cor0
----
-2304
-6000
-99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1372
SELECT - CAST( NULL AS SIGNED ) * cor0.col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1372
SELECT - CAST ( NULL AS INTEGER ) * cor0.col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 + col2 col2 FROM tab1 AS cor0
----
119
122
161
query I rowsort
SELECT DISTINCT - 71 + - col1 FROM tab2
----
-102
-130
-88
query I rowsort
SELECT ALL col2 + - col2 * + 62 FROM tab2
----
-1586
-1647
-2318
query I rowsort
SELECT ALL + col2 * col1 + + col0 * + col2 + col1 * + cor0.col2 FROM tab0 AS cor0
----
22222
229
6468
query I rowsort
SELECT + 87 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
2871
7134
87
query I rowsort
SELECT ALL - 28 + col2 AS col1 FROM tab2 AS cor0
----
-1
-2
10
query I rowsort
SELECT DISTINCT + 31 * col1 AS col1 FROM tab0 AS cor0
----
2666
2821
3007
query I rowsort
SELECT ALL - ( - col0 ) * - 44 + col0 * col1 * col2 FROM tab2 AS cor0
----
116220
47558
5551
query I rowsort
SELECT + - col2 + col0 * + col1 AS col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT - + col1 * + 3 AS col1 FROM tab2 AS cor0
----
-177
-51
-93
query I rowsort
SELECT - ( 93 ) AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba
query I rowsort
SELECT + col1 + col1 + + col2 * - col2 FROM tab0 AS cor0
----
-6542
-917
193
query I rowsort
SELECT DISTINCT + col0 * - col0 * col0 FROM tab0
----
-13824
-42875
-704969
query I rowsort
SELECT DISTINCT - tab0.col1 FROM tab0, tab1 cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + col0 * + 14 FROM tab1
----
1120
42
896
query I rowsort
SELECT - 98 AS col2 FROM tab2
----
-98
-98
-98
query I rowsort
SELECT DISTINCT - - 3 - col2 AS col0 FROM tab0 AS cor0
----
-30
-79
2
query I rowsort
SELECT ALL - 24 * + col1 + 32 * 60 AS col0 FROM tab2 AS cor0
----
1176
1512
504
query I rowsort
SELECT DISTINCT col0 * - col2 + + 4 * - col1 FROM tab1 AS cor0
----
-266
-3688
-7732
query I rowsort
SELECT DISTINCT - 71 * 61 AS col1 FROM tab0
----
-4331
query I rowsort
SELECT + - ( col0 ) * col0 * - 17 FROM tab1 AS cor0
----
108800
153
69632
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1394
SELECT DISTINCT CAST( col1 + col2 AS SIGNED ) AS col0 FROM tab1
----
109
67
80
skipif mysql # not compatible
query I rowsort label-1394
SELECT DISTINCT CAST ( col1 + col2 AS INTEGER ) AS col0 FROM tab1
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1395
SELECT CAST( NULL AS SIGNED ) * col1 + col0 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1395
SELECT CAST ( NULL AS INTEGER ) * col1 + col0 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + - cor0.col0 + - col0 * col0 AS col1 FROM tab2 AS cor0
----
-56
-6162
-6320
query I rowsort
SELECT 97 + - col0 AS col2 FROM tab0
----
62
73
8
query I rowsort
SELECT 95 + col2 AS col1 FROM tab1 AS cor0
----
149
152
191
query I rowsort
SELECT ALL + col2 * cor0.col1 * - ( + cor0.col2 ) FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT 15 + col2 FROM tab2 AS cor0
----
41
42
53
query I rowsort
SELECT + 21 AS col0 FROM tab2 cor0
----
21
21
21
query I rowsort
SELECT DISTINCT + 91 * + col0 AS col0 FROM tab2 AS cor0
----
637
7098
7189
query I rowsort
SELECT col1 * - 72 * col1 FROM tab2
----
-20808
-250632
-69192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * ( col1 * - col0 + col0 ) col0 FROM tab0
----
-175440
-325920
-728910
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1405
SELECT ALL CAST( - 37 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to a283a98d14c34636d74b0e0b57633585
skipif mysql # not compatible
query I rowsort label-1405
SELECT ALL CAST ( - 37 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to a283a98d14c34636d74b0e0b57633585
query I rowsort
SELECT col2 * - ( - 24 * - col1 ) AS col0 FROM tab1
----
-13680
-29952
-33696
query I rowsort
SELECT + col0 + - cor0.col0 * + 94 AS col0 FROM tab1 AS cor0
----
-279
-5952
-7440
query I rowsort
SELECT - col2 * ( - 60 ) * + col2 + + 59 + col1 AS col1 FROM tab0 AS cor0
----
216
403590
65485
query I rowsort
SELECT + col1 + + col0 * - 37 FROM tab0 AS cor0
----
-1198
-3202
-802
query I rowsort
SELECT - - 95 + + col1 AS col0 FROM tab0 AS cor0
----
181
186
192
query I rowsort
SELECT - ( - col2 ) + - col0 AS col1 FROM tab1 AS cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT + cor0.col0 * + 84 AS col2 FROM tab2 AS cor0
----
588
6552
6636
query I rowsort
SELECT ALL - col2 + - col2 + - col1 FROM tab2 cor0
----
-111
-85
-93
query I rowsort
SELECT ALL - - col1 + + 95 + + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-2657
-7276
95
query I rowsort
SELECT - 35 * - col2 * tab0.col2 FROM tab0
----
235340
35
38115
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 84 + - col1 col1 FROM tab1 AS cor0
----
-110
-94
-97
query I rowsort
SELECT col2 + - col1 * + col1 * col1 AS col2 FROM tab0 AS cor0
----
-636023
-753489
-912672
query I rowsort
SELECT DISTINCT 22 * col1 + col1 AS col2 FROM tab1 AS cor0
----
230
299
598
query I rowsort
SELECT ALL cor0.col2 + - cor0.col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 22 * - 34 + - col0 * 36 * col0 - cor0.col2 AS col2 FROM tab2 AS cor0
----
-219798
-225462
-2539
onlyif mysql # use DIV operator for integer division
query I rowsort label-1422
SELECT DISTINCT + ( col1 ) * col0 + - col0 * + col2 DIV + col2 FROM tab1 AS cor0
----
576
75
960
skipif mysql # not compatible
query I rowsort label-1422
SELECT DISTINCT + ( col1 ) * col0 + - col0 * + col2 / + col2 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT DISTINCT - ( 12 ) + + col2 FROM tab2 AS cor0
----
14
15
26
query I rowsort
SELECT ALL 84 + 70 AS col0 FROM tab0 AS cor0
----
154
154
154
query I rowsort
SELECT DISTINCT + col0 * col1 + + cor0.col0 + col1 FROM tab0 AS cor0
----
2174
3527
8279
query I rowsort
SELECT - col1 + - 84 FROM tab1 AS cor0
----
-110
-94
-97
query I rowsort
SELECT + + col2 + col0 * + cor0.col0 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT DISTINCT - - col1 * ( col0 ) + 94 * col0 + col1 FROM tab2 AS cor0
----
11993
8786
906
query I rowsort
SELECT - 25 * col2 * + 36 FROM tab0 AS cor0
----
-29700
-73800
-900
query I rowsort
SELECT DISTINCT - tab2.col0 + col0 + col0 AS col1 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1431
SELECT ALL col1 DIV col1 + 47 FROM tab2 cor0
----
48
48
48
skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL col1 / col1 + 47 FROM tab2 cor0
----
48
48
48
query I rowsort
SELECT DISTINCT + - cor0.col2 - - col0 AS col0 FROM tab2 AS cor0
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - ( + col0 ) col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT + col1 * cor0.col1 - 6 AS col0 FROM tab1 cor0
----
163
670
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-1435
SELECT DISTINCT + col2 * - col1 * 85 + + col0 DIV col0 FROM tab2 cor0
----
-130389
-54909
-71144
skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT + col2 * - col1 * 85 + + col0 / col0 FROM tab2 cor0
----
-130389
-54909
-71144
query I rowsort
SELECT - col1 * + 8 + col0 FROM tab0 AS cor0
----
-639
-664
-741
query I rowsort
SELECT DISTINCT cor0.col1 + + 74 FROM tab0 AS cor0
----
160
165
171
query I rowsort
SELECT - col0 * ( + cor0.col1 ) * col0 + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-107541
-2248
-359632
query I rowsort
SELECT col2 * tab0.col1 + col1 * - tab0.col1 AS col0 FROM tab0
----
-4558
-819
-9312
query I rowsort
SELECT ALL - cor0.col1 - - ( - col2 ) FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1441
SELECT DISTINCT CAST( NULL AS SIGNED ) * 27 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-1441
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 27 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1442
SELECT + 89 DIV col2 AS col1 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-1442
SELECT + 89 / col2 AS col1 FROM tab1
----
0
1
1
query I rowsort
SELECT DISTINCT col2 + 44 * col1 FROM tab0
----
3817
4086
4269
query I rowsort
SELECT ALL col0 * - col1 - + 11 AS col0 FROM tab0
----
-2075
-3406
-8110
query I rowsort
SELECT DISTINCT col2 - col1 * tab1.col1 AS col1 FROM tab1
----
-43
-622
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-1446
SELECT ALL col1 - + 7 DIV + col1 AS col0 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL col1 - + 7 / + col1 AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT - + col1 + - col0 * + col2 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT - + col1 + - cor0.col2 + 49 FROM tab1 AS cor0
----
-18
-31
-60
query I rowsort
SELECT DISTINCT - col0 + ( + 6 + - col0 ) FROM tab1
----
-122
-154
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1450
SELECT col0 * - col0 + col0 * col2 DIV ( - tab0.col2 ) + col0 FROM tab0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-1450
SELECT col0 * - col0 + col0 * col2 / ( - tab0.col2 ) + col0 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT - col0 + + col0 + - tab2.col1 AS col0 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL tab1.col0 + 77 AS col2 FROM tab1
----
141
157
80
query I rowsort
SELECT ALL col1 + col0 * + col0 AS col0 FROM tab1
----
35
4106
6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 + + col1 col1 FROM tab2 AS cor0
----
-36
-50
-8
query I rowsort
SELECT DISTINCT + + cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - + 30 * col0 AS col2 FROM tab1 cor0
----
-1920
-2400
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 col2 FROM tab2
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 65 col1 FROM tab1 AS cor0
----
1690
650
845
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1459
SELECT - col0 * - CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1459
SELECT - col0 * - CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1460
SELECT DISTINCT 54 * - 45 + tab2.col2 + + col1 * 26 DIV - tab2.col1 AS col1 FROM tab2
----
-2418
-2429
-2430
skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT 54 * - 45 + tab2.col2 + + col1 * 26 / - tab2.col1 AS col1 FROM tab2
----
-2418
-2429
-2430
query I rowsort
SELECT DISTINCT + tab2.col2 + 57 * - col0 FROM tab2
----
-372
-4420
-4465
query I rowsort
SELECT ALL - + cor0.col2 * - col2 AS col2 FROM tab1 cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + 80 * - col1 col1 FROM tab2 cor0
----
-1343
-2449
-4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 + + 8 + col0 col2 FROM tab0
----
122
133
187
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1465
SELECT - CAST( NULL AS SIGNED ) + + col1 * col1 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1465
SELECT - CAST ( NULL AS INTEGER ) + + col1 * col1 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 + 56 AS col0 FROM tab2 AS cor0
----
-22
-23
49
query I rowsort
SELECT ALL + - col0 + col0 + col1 * 83 FROM tab1 AS cor0
----
1079
2158
830
query I rowsort
SELECT ALL col1 * col0 + + col1 + + ( + 4 ) * - cor0.col0 * + col2 FROM tab2 AS cor0
----
-10648
-3451
-508
query I rowsort
SELECT ALL - 39 + 48 FROM tab2 AS cor0
----
9
9
9
query I rowsort
SELECT ALL 62 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT DISTINCT - col0 + 29 AS col0 FROM tab0 AS cor0
----
-6
-60
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1472
SELECT CAST( ( - col0 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-1472
SELECT CAST ( ( - col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + 85 FROM tab0, tab1 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT + 71 - - col2 * - col0 * + col0 AS col1 FROM tab0 cor0
----
-1154
-18937
-649451
query I rowsort
SELECT + + 23 + - col1 * - 51 - col0 FROM tab1 AS cor0
----
1346
469
606
onlyif mysql # use DIV operator for integer division
query I rowsort label-1476
SELECT col2 + col0 DIV - 13 AS col2 FROM tab1 AS cor0
----
53
54
90
skipif mysql # not compatible
query I rowsort label-1476
SELECT col2 + col0 / - 13 AS col2 FROM tab1 AS cor0
----
53
54
90
query I rowsort
SELECT + col1 * + col2 + + ( col2 * col0 + col2 ) FROM tab1 AS cor0
----
1620
4275
9024
query I rowsort
SELECT DISTINCT + ( col1 ) * col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT + - ( + col2 ) * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT - 87 * col1 * col0 + col2 * + tab1.col2 FROM tab1
----
-3870
-52431
-81264
query I rowsort
SELECT ALL col2 + + col2 + + tab0.col1 FROM tab0
----
152
255
99
query I rowsort
SELECT - col0 + col0 + + col2 AS col0 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1483
SELECT ALL 3 DIV + 32 - + col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL 3 / + 32 - + col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT - cor0.col1 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT + 15 + + col1 AS col0 FROM tab0
----
101
106
112
query I rowsort
SELECT ALL tab0.col2 + - col0 AS col2 FROM tab0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1487
SELECT + ( col1 ) DIV tab0.col0 + + col1 AS col1 FROM tab0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-1487
SELECT + ( col1 ) / tab0.col0 + + col1 AS col1 FROM tab0
----
89
92
99
query I rowsort
SELECT - + cor1.col0 * 65 * + 70 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8708326540d07827edf5de42d2f49629
query I rowsort
SELECT + cor0.col0 - col1 AS col1 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT + - col0 * - ( col2 * - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT ALL + - col1 * 71 + + col2 FROM tab0 AS cor0
----
-6073
-6379
-6886
query I rowsort
SELECT - - col1 + 44 + - col0 FROM tab2 AS cor0
----
-18
25
68
query I rowsort
SELECT col1 * 65 + 65 + col1 FROM tab0 AS cor0
----
5741
6071
6467
query I rowsort
SELECT + cor0.col1 + 17 FROM tab2 AS cor0
----
34
48
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-1495
SELECT + col1 DIV - ( - col0 + col1 * col0 ) FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1495
SELECT + col1 / - ( - col0 + col1 * col0 ) FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - - col0 + - ( 23 * - col0 + col0 ) AS col2 FROM tab2 AS cor0
----
161
1794
1817
onlyif mysql # use DIV operator for integer division
query I rowsort label-1497
SELECT DISTINCT - + col2 DIV 56 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-1497
SELECT DISTINCT - + col2 / 56 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT DISTINCT tab2.col0 AS col2 FROM tab2, tab0, tab0 AS cor0
----
7
78
79
query I rowsort
SELECT + 85 + col1 AS col0 FROM tab2 AS cor0
----
102
116
144
query I rowsort
SELECT + ( col1 ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL col2 * 55 - cor0.col0 AS col2 FROM tab1 AS cor0
----
2967
3071
5200
onlyif mysql # use DIV operator for integer division
query I rowsort label-1502
SELECT DISTINCT col0 DIV - tab0.col0 + col1 FROM tab0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-1502
SELECT DISTINCT col0 / - tab0.col0 + col1 FROM tab0
----
85
90
96
query I rowsort
SELECT col2 * - tab2.col2 + - col1 FROM tab2
----
-1461
-735
-760
onlyif mysql # use DIV operator for integer division
query I rowsort label-1504
SELECT ALL tab0.col1 DIV col1 + + col0 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL tab0.col1 / col1 + + col0 FROM tab0
----
25
36
90
query I rowsort
SELECT - col0 * + col2 + - col2 AS col2 FROM tab0
----
-36
-7380
-825
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= - col2 + - col2 - + col0
----
query I rowsort
SELECT - col0 * col2 + col2 AS col2 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT - tab0.col2 - + col2 AS col1 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT col1 + col0 + col0 * + col2 FROM tab0 WHERE NULL <> col2 - - col0
----
query I rowsort
SELECT col2 * - col0 - col0 * + col1 AS col2 FROM tab1
----
-240
-4288
-8720
query I rowsort
SELECT + col0 * + col0 + + col1 AS col0 FROM tab0
----
1322
662
8012
query I rowsort
SELECT col1 * + col0 + col1 AS col0 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT - tab1.col0 * - col1 + - col0 AS col2 FROM tab1
----
576
75
960
query I rowsort
SELECT + tab1.col2 + - col0 * + col2 * - col0 AS col0 FROM tab1
----
233529
540
614496
query III rowsort
SELECT * FROM tab0 WHERE - col0 BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL tab2.col1 + tab2.col2 * tab2.col2 AS col0 FROM tab2
----
1461
735
760
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 BETWEEN NULL AND NULL
----
query I rowsort
SELECT col2 * - tab1.col1 - col0 AS col2 FROM tab1
----
-1328
-1407
-634
query I rowsort
SELECT ALL col1 * col1 * col2 + + col2 * + col2 AS col0 FROM tab0
----
245157
685766
9410
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IN ( col1 + + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1521
SELECT ALL col1 DIV + col0 + col2 * + col2 FROM tab2
----
1444
676
733
skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL col1 / + col0 + col2 * + col2 FROM tab2
----
1444
676
733
query I rowsort
SELECT tab1.col0 * - col1 * col1 + - col0 + + col0 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT col2 / col2 + col0 FROM tab2 WHERE NOT NULL NOT IN ( col1 / col2 + - col1 )
----
query I rowsort
SELECT DISTINCT col2 + + tab2.col0 * - col2 AS col0 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE ( NULL ) NOT IN ( - col2 / + col1 + + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1526
SELECT - col0 * col0 DIV + col0 - col0 * col1 AS col2 FROM tab1 AS cor0
----
-1120
-704
-81
skipif mysql # not compatible
query I rowsort label-1526
SELECT - col0 * col0 / + col0 - col0 * col1 AS col2 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT cor0.col0 * col0 + col0 AS col1 FROM tab1 cor0
----
12
4160
6480
query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT col2 * col1 + col0 < + col0
----
24
35
89
query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----
query I rowsort
SELECT col1 * - cor0.col0 + - col2 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697
onlyif mysql # use DIV operator for integer division
query I rowsort label-1531
SELECT col1 + col0 DIV + col0 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-1531
SELECT col1 + col0 / + col0 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT + tab1.col1 * + col1 + col2 AS col1 FROM tab1
----
157
265
730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 * + col2 + col0 + col0 col0 FROM tab0
----
-1041
-6546
69
query I rowsort
SELECT ALL col2 + col1 + - col1 AS col2 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - tab2.col1 col0 FROM tab2 WHERE NOT col1 * col0 + - col0 * col2 NOT IN ( + col1 )
----
query I rowsort
SELECT DISTINCT col1 * + col0 * + col0 FROM tab1
----
234
40960
83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-1537
SELECT DISTINCT col0 * tab2.col2 + col2 + + col2 DIV col1 FROM tab2
----
2054
216
3042
skipif mysql # not compatible
query I rowsort label-1537
SELECT DISTINCT col0 * tab2.col2 + col2 + + col2 / col1 FROM tab2
----
2054
216
3042
query I rowsort
SELECT ALL col1 FROM tab0 WHERE ( col2 + + col1 ) IN ( col2 )
----
query I rowsort
SELECT - col0 + cor0.col1 + - col2 * + col0 AS col1 FROM tab2 cor0
----
-165
-2047
-3064
query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT ( col1 * col2 * + col2 + + col0 + col2 ) < col0
----
7
78
79
query I rowsort
SELECT ALL col0 + col2 * - col1 - + col1 FROM tab1 AS cor0
----
-1181
-1427
-516
query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT ( - col0 ) NOT IN ( - cor0.col1 )
----
query I rowsort
SELECT DISTINCT col1 * - col1 + + col1 AS col2 FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT + col2 * col2 * - cor0.col1 AS col1 FROM tab2 cor0
----
-22599
-24548
-39884
query I rowsort
SELECT ALL + col1 + ( - cor0.col0 * col0 ) FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT col0 + 32 FROM tab0 AS cor0
----
121
56
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-1547
SELECT DISTINCT - + col2 DIV - 12 col2 FROM tab0 AS cor0
----
0
2
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT - + col2 / - 12 col2 FROM tab0 AS cor0
----
0
2
6
query I rowsort
SELECT DISTINCT + - col2 + + cor0.col0 * + col1 AS col1 FROM tab0 AS cor0
----
2031
3394
8017
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1549
SELECT ALL col0 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL col0 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + + col2 * - col1 + ( - col2 + + col2 ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - col1 * + 55 FROM tab0 AS cor0
----
-4730
-5005
-5335
query I rowsort
SELECT - - ( - 5 ) + col0 FROM tab1 AS cor0
----
-2
59
75
query I rowsort
SELECT DISTINCT - 64 + 46 AS col0 FROM tab1 AS cor0
----
-18
query I rowsort
SELECT DISTINCT 47 AS col1 FROM tab2 AS cor0
----
47
query I rowsort
SELECT ALL - 49 + + col1 * col0 AS col1 FROM tab0 cor0
----
2015
3346
8050
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( col2 ) * col2 col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT col2 - - 76 * - col1 FROM tab1
----
-1922
-703
-892
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2, tab0 cor3
----
3645 values hashing to d24b34b0673c90715a7101e7e630fa94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1559
SELECT col1 * - CAST( - tab1.col0 AS SIGNED ) FROM tab1
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-1559
SELECT col1 * - CAST ( - tab1.col0 AS INTEGER ) FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1560
SELECT + + col2 DIV col0 + col0 AS col1 FROM tab1 AS cor0
----
21
64
81
skipif mysql # not compatible
query I rowsort label-1560
SELECT + + col2 / col0 + col0 AS col1 FROM tab1 AS cor0
----
21
64
81
query I rowsort
SELECT ALL 57 * + col2 FROM tab0 AS cor0
----
1881
4674
57
query I rowsort
SELECT ALL - 71 * col0 AS col0 FROM tab1 AS cor0
----
-213
-4544
-5680
query I rowsort
SELECT - + ( col1 ) * - ( cor0.col0 ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + - col0 + + col1 + + ( - col0 ) FROM tab1 AS cor0
----
-118
-147
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-1565
SELECT DISTINCT - col1 DIV + col2 + + col0 * col2 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-1565
SELECT DISTINCT - col1 / + col2 + + col0 * col2 col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + - cor0.col1 * col1 + - col2 FROM tab0 AS cor0
----
-7429
-8363
-9410
query I rowsort
SELECT DISTINCT - col0 * - col2 + - cor0.col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT DISTINCT - 30 * + col0 AS col0 FROM tab2 AS cor0
----
-210
-2340
-2370
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab1 cor1, tab2, tab0 AS cor2
----
3645 values hashing to ca4c79a162f92454e0544707b897521a
onlyif mysql # use DIV operator for integer division
query I rowsort label-1570
SELECT DISTINCT - - col1 + - col1 DIV cor0.col1 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-1570
SELECT DISTINCT - - col1 + - col1 / cor0.col1 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT ALL + col1 * 29 FROM tab0 AS cor0
----
2494
2639
2813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + 86 col0 FROM tab0 AS cor0
----
7396
7826
8342
query I rowsort
SELECT DISTINCT + + col2 + 4 AS col0 FROM tab0 cor0
----
37
5
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-1574
SELECT + - col1 DIV + cor0.col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-1574
SELECT + - col1 / + cor0.col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT + + col0 * 21 + - 84 * cor0.col1 * - col1 - + col0 FROM tab0 AS cor0
----
621744
697384
791056
query I rowsort
SELECT ALL col2 * ( col2 * - col1 + - col1 ) AS col0 FROM tab2 cor0
----
-23436
-25194
-41418
query I rowsort
SELECT ALL cor0.col0 * + 54 + col0 AS col2 FROM tab1 AS cor0
----
165
3520
4400
query I rowsort
SELECT ALL ( 99 ) AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
query I rowsort
SELECT - - tab1.col2 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT cor0.col0 + - tab0.col1 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 4881f9f877f017ef0e22b1425444736c
query I rowsort
SELECT + + cor0.col2 * - col2 + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-2787
-5278
-946
query I rowsort
SELECT + col2 * - 39 - - col0 AS col2 FROM tab1 cor0
----
-2103
-2159
-3664
query I rowsort
SELECT ALL col2 + - 36 AS col1 FROM tab0
----
-3
-35
46
query I rowsort
SELECT + col2 + - ( 95 ) FROM tab2
----
-57
-68
-69
query I rowsort
SELECT 8 * + col2 * - col2 FROM tab0
----
-53792
-8
-8712
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1586
SELECT CAST( NULL AS SIGNED ) + - col2 * - col0 + tab2.col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1586
SELECT CAST ( NULL AS INTEGER ) + - col2 * - col0 + tab2.col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 87 + 74 * col1 AS col2 FROM tab0
----
6451
6821
7265
query I rowsort
SELECT + 61 * cor0.col1 + col1 * col0 * - col1 FROM tab1 AS cor0
----
-12727
-442
-5790
query I rowsort
SELECT ALL 62 + col0 AS col1 FROM tab2 AS cor0
----
140
141
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 + - cor0.col2 col1 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1591
SELECT DISTINCT col2 DIV 3 + + cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
1280
1422
589
skipif mysql # not compatible
query I rowsort label-1591
SELECT DISTINCT col2 / 3 + + cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
1280
1422
589
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1592
SELECT - + CAST( NULL AS SIGNED ) * col0 + - cor0.col2 * - col2 - col1 * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1592
SELECT - + CAST ( NULL AS INTEGER ) * col0 + - cor0.col2 * - col2 - col1 * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT ALL + - col1 + + col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT col0 + col1 * - ( + col0 ) FROM tab1
----
-576
-75
-960
query I rowsort
SELECT ALL + 70 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32
query I rowsort
SELECT - + col1 * - col1 * - col0 AS col2 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT - cor0.col0 + + col1 * cor0.col1 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT - col2 + col1 * ( col0 ) AS col0 FROM tab1 cor0
----
24
583
944
query I rowsort
SELECT ALL + cor0.col0 + - ( + cor0.col2 ) * - cor0.col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT col0 * 76 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
43776
601996
93100
query I rowsort
SELECT ALL + - col0 * - col1 AS col2 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL 71 FROM tab1, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT ALL - col2 + + 15 FROM tab1 AS cor0
----
-39
-42
-81
query I rowsort
SELECT DISTINCT col0 - 33 AS col1 FROM tab1 AS cor0
----
-30
31
47
query I rowsort
SELECT col2 + 1 * - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT - col0 * - 29 FROM tab0 cor0
----
1015
2581
696
query I rowsort
SELECT col0 * - 90 AS col2 FROM tab1 AS cor0
----
-270
-5760
-7200
query I rowsort
SELECT DISTINCT cor0.col2 + - 51 * col1 FROM tab1 AS cor0
----
-1272
-453
-567
query I rowsort
SELECT col2 * col0 * cor0.col1 FROM tab0 cor0
----
3395
664118
68112
query I rowsort
SELECT - cor0.col2 * + col1 FROM tab0 cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1612
SELECT + - cor0.col0 DIV col2 col0 FROM tab1 cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1612
SELECT + - cor0.col0 / col2 col0 FROM tab1 cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1613
SELECT + col0 DIV - col2 FROM tab1 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1613
SELECT + col0 / - col2 FROM tab1 cor0
----
-1
0
0
query I rowsort
SELECT ALL - ( col0 ) * - col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + - 50 + col2 FROM tab2 AS cor0
----
-12
-23
-24
onlyif mysql # use DIV operator for integer division
query I rowsort label-1616
SELECT DISTINCT - + col2 DIV + col1 + col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-1616
SELECT DISTINCT - + col2 / + col1 + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + 48 * - 71 + col2 AS col2 FROM tab0
----
-3326
-3375
-3407
query I rowsort
SELECT + 21 + cor0.col2 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 3e63c43057eab6438c21c943416be12d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 39 col1 FROM tab2
----
-273
-3042
-3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) * - col1 + - col0 col2 FROM tab0
----
2814
62
7373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1621
SELECT ALL + CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL + CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 + - col0 * col2 col1 FROM tab0 AS cor0
----
-133
-7396
-890
onlyif mysql # use DIV operator for integer division
query I rowsort label-1623
SELECT DISTINCT - 22 * col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
22
skipif mysql # not compatible
query I rowsort label-1623
SELECT DISTINCT - 22 * col0 / - col0 AS col2 FROM tab2 AS cor0
----
22
query I rowsort
SELECT - 60 + col1 * + 33 AS col2 FROM tab0 AS cor0
----
2778
2943
3141
query I rowsort
SELECT ALL - col0 * col2 + + col2 * col2 AS col2 FROM tab2
----
-1352
-1558
540
query I rowsort
SELECT 2 * col0 + col0 + + 48 FROM tab1
----
240
288
57
query I rowsort
SELECT ALL + col0 + - col2 * + ( col0 ) FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL - - col1 + + col2 * col2 FROM tab0 cor0
----
1175
6815
98
query I rowsort
SELECT DISTINCT + ( col2 ) * - ( 76 * col2 ) AS col1 FROM tab2 AS cor0
----
-109744
-51376
-55404
query I rowsort
SELECT + col1 * cor0.col0 - + ( col2 ) * + col0 FROM tab2 AS cor0
----
-1659
2574
28
query I rowsort
SELECT - - 65 + col2 AS col2 FROM tab1 AS cor0
----
119
122
161
query I rowsort
SELECT + 31 - - col1 FROM tab2 AS cor0
----
48
62
90
query I rowsort
SELECT DISTINCT + col1 + - col1 * 2 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT cor0.col0 * - col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL + + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 61 col0 FROM tab2 AS cor0
----
-1037
-1891
-3599
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 59 col1 FROM tab2 AS cor0
----
85
86
97
query I rowsort
SELECT ALL - col1 + - 5 FROM tab2 cor0
----
-22
-36
-64
onlyif mysql # use DIV operator for integer division
query I rowsort label-1639
SELECT col2 DIV col2 + - col1 * + col0 + + 42 * + 94 * cor0.col2 FROM tab1 AS cor0
----
213115
224397
377969
skipif mysql # not compatible
query I rowsort label-1639
SELECT col2 / col2 + - col1 * + col0 + + 42 * + 94 * cor0.col2 FROM tab1 AS cor0
----
213115
224397
377969
query I rowsort
SELECT DISTINCT - col2 * + 80 * col0 AS col1 FROM tab1 cor0
----
-12960
-291840
-614400
query I rowsort
SELECT DISTINCT - col1 + + cor0.col1 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT DISTINCT - + ( col1 ) + + col1 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - cor0.col2 + - col0 * + col0 FROM tab0 AS cor0
----
-1226
-609
-8003
query I rowsort
SELECT - col1 * + 52 AS col0 FROM tab1 AS cor0
----
-1352
-520
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col0 FROM tab0 cor0
----
59
59
59
query I rowsort
SELECT DISTINCT col1 * + ( + col1 + col1 ) * - 26 FROM tab0
----
-384592
-430612
-489268
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col0 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT ALL - 26 - + col2 * col0 AS col0 FROM tab1
----
-188
-3674
-7706
query I rowsort
SELECT DISTINCT col0 - - col2 * col0 * col2 AS col2 FROM tab0
----
26160
598525
70
query I rowsort
SELECT DISTINCT + col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT + 50 * - col0 - col2 AS col0 FROM tab0
----
-1233
-1751
-4532
query I rowsort
SELECT DISTINCT 64 + col2 FROM tab0 AS cor0
----
146
65
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1654
SELECT ALL + 55 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL + 55 / - col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 77 * col1 AS col0 FROM tab1 AS cor0
----
1001
2002
770
onlyif mysql # use DIV operator for integer division
query I rowsort label-1656
SELECT ALL 11 DIV - col1 + - ( col1 ) AS col0 FROM tab2 cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL 11 / - col1 + - ( col1 ) AS col0 FROM tab2 cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col1 FROM tab1, tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + col0 * - 25 AS col1 FROM tab2
----
-175
-1950
-1975
query I rowsort
SELECT ALL - col1 + tab0.col0 * + 33 FROM tab0
----
1058
2846
706
query I rowsort
SELECT + + col1 * col0 - + 77 AS col2 FROM tab2 AS cor0
----
1266
140
4525
query I rowsort
SELECT + col2 + + col0 * - ( col0 ) + - col1 AS col0 FROM tab0 AS cor0
----
-1321
-629
-7930
query I rowsort
SELECT DISTINCT + - cor0.col1 * + col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1663
SELECT ALL + col0 * - col1 + CAST( NULL AS SIGNED ) + + 28 * - col1 * cor0.col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL + col0 * - col1 + CAST ( NULL AS INTEGER ) + + 28 * - col1 * cor0.col1 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1664
SELECT DISTINCT + 62 DIV - col1 - - 92 * col0 FROM tab0 AS cor0
----
2208
3220
8188
skipif mysql # not compatible
query I rowsort label-1664
SELECT DISTINCT + 62 / - col1 - - 92 * col0 FROM tab0 AS cor0
----
2208
3220
8188
query I rowsort
SELECT DISTINCT - col0 * - col1 - col0 FROM tab1 AS cor0
----
576
75
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-1666
SELECT ALL cor0.col1 DIV - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 5dfda9abbd009b9f42913cb1893ed11f
skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL cor0.col1 / - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 5dfda9abbd009b9f42913cb1893ed11f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 col2 FROM tab2, tab2 AS cor0
----
-41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1668
SELECT + cor0.col0 / CAST( NULL AS SIGNED ) + col1 + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1668
SELECT + cor0.col0 / CAST ( NULL AS INTEGER ) + col1 + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1669
SELECT + - col2 * + ( - 61 + col1 * + CAST( - col2 AS SIGNED ) ) FROM tab0 AS cor0
----
158
616886
95667
skipif mysql # not compatible
query I rowsort label-1669
SELECT + - col2 * + ( - 61 + col1 * + CAST ( - col2 AS INTEGER ) ) FROM tab0 AS cor0
----
158
616886
95667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - 67 * col2 col1 FROM tab2 AS cor0
----
-45292
-48843
-96748
query I rowsort
SELECT ALL + + col1 * + col1 + - col2 * col1 AS col2 FROM tab2 AS cor0
----
-357
124
1947
query I rowsort
SELECT col2 + 87 * col0 AS col2 FROM tab2
----
636
6812
6911
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1673
SELECT ALL CAST( NULL AS SIGNED ) / - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL CAST ( NULL AS INTEGER ) / - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 * + col2 col0 FROM tab2 AS cor0
----
1638
1701
2394
query I rowsort
SELECT ALL + ( 25 ) * col2 + col0 - col1 AS col2 FROM tab1 AS cor0
----
1327
1479
2467
query I rowsort
SELECT DISTINCT + ( - 48 ) AS col1 FROM tab2 AS cor0
----
-48
onlyif mysql # use DIV operator for integer division
query I rowsort label-1677
SELECT DISTINCT col2 * 66 + col1 * - col2 DIV cor0.col2 FROM tab1 cor0
----
3538
3752
6323
skipif mysql # not compatible
query I rowsort label-1677
SELECT DISTINCT col2 * 66 + col1 * - col2 / cor0.col2 FROM tab1 cor0
----
3538
3752
6323
query I rowsort
SELECT DISTINCT - col1 * - 7 AS col0 FROM tab2 AS cor0
----
119
217
413
query I rowsort
SELECT ALL - + col1 * - col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + col0 + + 47 AS col2 FROM tab1 AS cor0
----
111
127
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col1 col1 FROM tab0, tab2, tab2 AS cor0
----
86
91
97
query I rowsort
SELECT - + 93 + + col0 - col1 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1357
-303
-4617
onlyif mysql # use DIV operator for integer division
query I rowsort label-1683
SELECT - col0 * col1 DIV 17 AS col1 FROM tab1
----
-37
-4
-61
skipif mysql # not compatible
query I rowsort label-1683
SELECT - col0 * col1 / 17 AS col1 FROM tab1
----
-37
-4
-61
query I rowsort
SELECT + + 97 - 42 AS col1 FROM tab2 AS cor0
----
55
55
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-1685
SELECT col2 + + col1 DIV - cor0.col0 AS col0 FROM tab1 AS cor0
----
46
57
96
skipif mysql # not compatible
query I rowsort label-1685
SELECT col2 + + col1 / - cor0.col0 AS col0 FROM tab1 AS cor0
----
46
57
96
query I rowsort
SELECT - 66 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a
query I rowsort
SELECT - 75 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59
query I rowsort
SELECT ALL 48 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e
query I rowsort
SELECT ALL 64 * col0 FROM tab1
----
192
4096
5120
query I rowsort
SELECT cor0.col2 AS col1 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT cor0.col2 * - cor0.col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT + 0 + cor0.col1 * + col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT - 71 AS col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a
query I rowsort
SELECT DISTINCT cor0.col0 - + cor0.col0 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT col2 * - ( + col1 ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + col2 + - col0 * + col0 + col1 * cor0.col0 * + col2 FROM tab2 AS cor0
----
113594
44831
5837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - tab0.col2 - + col1 AS col1 FROM tab0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 * col0 col2 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT ( 91 + + col0 ) FROM tab1
----
155
171
94
query I rowsort
SELECT 87 * 22 AS col1 FROM tab2
----
1914
1914
1914
query I rowsort
SELECT ALL - 76 FROM tab0, tab0 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317
query I rowsort
SELECT cor0.col2 AS col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT + - col0 * col1 * col0 + + cor0.col2 FROM tab2 AS cor0
----
-106059
-1492
-358930
query I rowsort
SELECT - col2 * + cor0.col2 + ( 7 ) FROM tab1 AS cor0
----
-2909
-3242
-9209
query I rowsort
SELECT DISTINCT - 44 * + tab0.col0 AS col2 FROM tab0
----
-1056
-1540
-3916
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1707
SELECT CAST( ( col0 ) AS SIGNED ) + 98 FROM tab2
----
105
176
177
skipif mysql # not compatible
query I rowsort label-1707
SELECT CAST ( ( col0 ) AS INTEGER ) + 98 FROM tab2
----
105
176
177
onlyif mysql # use DIV operator for integer division
query I rowsort label-1708
SELECT ( + col2 ) + - col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-1708
SELECT ( + col2 ) + - col0 / + col0 AS col0 FROM tab2 AS cor0
----
25
26
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1709
SELECT + cor0.col1 * + col0 * - CAST( ( + col0 ) * 16 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
-11533067
-1901297
-792662
skipif mysql # not compatible
query I rowsort label-1709
SELECT + cor0.col1 * + col0 * - CAST ( ( + col0 ) * 16 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
-11533067
-1901297
-792662
onlyif mysql # use DIV operator for integer division
query I rowsort label-1710
SELECT col0 DIV - col0 FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1710
SELECT col0 / - col0 FROM tab2 cor0
----
-1
-1
-1
query I rowsort
SELECT ALL col2 + ( col1 ) - - col0 FROM tab1
----
131
189
83
query I rowsort
SELECT DISTINCT col2 - - ( - col2 + - col1 ) AS col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT - col2 * 35 FROM tab0
----
-1155
-2870
-35
query I rowsort
SELECT ALL - cor1.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT + ( + col2 ) - + col2 * ( + col2 ) * col0 FROM tab2 cor0
----
-114038
-5076
-52702
onlyif mysql # use DIV operator for integer division
query I rowsort label-1716
SELECT DISTINCT ( + cor0.col2 ) DIV col0 AS col2 FROM tab2 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT ( + cor0.col2 ) / col0 AS col2 FROM tab2 AS cor0
----
0
3
query I rowsort
SELECT 99 * 33 + + cor0.col0 FROM tab1 AS cor0
----
3270
3331
3347
query I rowsort
SELECT + + 2 + 72 FROM tab2 AS cor0
----
74
74
74
query I rowsort
SELECT ALL - 65 * - 57 + - col2 AS col2 FROM tab1 AS cor0
----
3609
3648
3651
query I rowsort
SELECT col0 * col0 * + col1 - cor0.col2 FROM tab2 AS cor0
----
106059
1492
358930
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( 2 AS REAL ) * - col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT DISTINCT 99 * + col0 FROM tab1 AS cor0
----
297
6336
7920
query I rowsort
SELECT - col1 * + 50 AS col1 FROM tab2
----
-1550
-2950
-850
query I rowsort
SELECT - col1 * 20 * + tab2.col2 FROM tab2
----
-12920
-16740
-30680
onlyif mysql # use DIV operator for integer division
query I rowsort label-1725
SELECT ALL ( - 87 ) * col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
87
87
87
skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL ( - 87 ) * col0 / - col0 AS col0 FROM tab1 AS cor0
----
87
87
87
query I rowsort
SELECT - col2 * col0 * - col2 + col2 AS col1 FROM tab1 AS cor0
----
207993
737376
8802
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 col1 FROM tab2 AS cor0
----
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 * col0 col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ALL - ( - col2 ) + - 41 AS col0 FROM tab1 AS cor0
----
13
16
55
query I rowsort
SELECT + 91 * - col2 FROM tab0 AS cor0
----
-3003
-7462
-91
query I rowsort
SELECT ALL + 95 * tab2.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8c99833518f2e5463bc15159b6a72819
query I rowsort
SELECT + col1 + - cor0.col1 * + ( col2 ) FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-1733
SELECT col0 + col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-1733
SELECT col0 + col2 / - col2 AS col0 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT ALL + + cor0.col1 * - 75 FROM tab0 AS cor0
----
-6450
-6825
-7275
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 38 * col1 col0 FROM tab1 cor0
----
444
574
991
query I rowsort
SELECT ( + 64 ) * cor0.col2 - 51 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0fe745cf58ac61ab47532354e0d15703
onlyif mysql # use DIV operator for integer division
query I rowsort label-1737
SELECT ALL col2 DIV - col2 AS col0 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1737
SELECT ALL col2 / - col2 AS col0 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + cor0.col1 + 5 FROM tab2 AS cor0
----
22
36
64
query I rowsort
SELECT DISTINCT - col1 + 61 * 88 FROM tab2 AS cor0
----
5309
5337
5351
query I rowsort
SELECT ALL col0 + - col0 * ( + col0 ) AS col0 FROM tab0 AS cor0
----
-1190
-552
-7832
onlyif mysql # use DIV operator for integer division
query I rowsort label-1741
SELECT - col1 + cor0.col1 DIV col1 FROM tab2 AS cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-1741
SELECT - col1 + cor0.col1 / col1 FROM tab2 AS cor0
----
-16
-30
-58
query I rowsort
SELECT DISTINCT - cor0.col0 + - 57 FROM tab1 AS cor0
----
-121
-137
-60
query I rowsort
SELECT ALL + col0 + cor0.col2 * col0 * - col1 FROM tab0 AS cor0
----
-3360
-664029
-68088
query I rowsort
SELECT DISTINCT col0 + 79 * + col0 AS col1 FROM tab1 AS cor0
----
240
5120
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-1745
SELECT - col2 DIV col0 + + col0 AS col1 FROM tab2
----
4
78
79
skipif mysql # not compatible
query I rowsort label-1745
SELECT - col2 / col0 + + col0 AS col1 FROM tab2
----
4
78
79
query I rowsort
SELECT ALL - ( - col0 ) + - tab0.col0 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1747
SELECT DISTINCT + 31 DIV tab2.col1 + + col1 AS col2 FROM tab2
----
18
32
59
skipif mysql # not compatible
query I rowsort label-1747
SELECT DISTINCT + 31 / tab2.col1 + + col1 AS col2 FROM tab2
----
18
32
59
query I rowsort
SELECT ALL cor0.col1 * 74 AS col2 FROM tab0 AS cor0
----
6364
6734
7178
query I rowsort
SELECT DISTINCT + col0 + - col1 + + col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 + CAST ( col2 AS REAL ) * cor0.col2 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT + col1 * + 6 + + col2 AS col0 FROM tab0 AS cor0
----
549
583
628
query I rowsort
SELECT ALL col0 * 93 * + col0 - col0 FROM tab2 AS cor0
----
4550
565734
580334
query I rowsort
SELECT ALL - - cor0.col1 + ( cor0.col0 ) * col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - cor0.col1 + + 28 FROM tab2 AS cor0
----
-3
-31
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-1755
SELECT DISTINCT col0 DIV + col2 - + 84 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1092
-2184
-839
skipif mysql # not compatible
query I rowsort label-1755
SELECT DISTINCT col0 / + col2 - + 84 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1092
-2184
-839
onlyif mysql # use DIV operator for integer division
query I rowsort label-1756
SELECT DISTINCT col1 + - col2 DIV ( col1 ) FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-1756
SELECT DISTINCT col1 + - col2 / ( col1 ) FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1757
SELECT DISTINCT - + 25 + cor0.col1 DIV 37 AS col0 FROM tab1 AS cor0
----
-25
skipif mysql # not compatible
query I rowsort label-1757
SELECT DISTINCT - + 25 + cor0.col1 / 37 AS col0 FROM tab1 AS cor0
----
-25
query I rowsort
SELECT + col1 + col1 * + 23 FROM tab2 AS cor0
----
1416
408
744
query I rowsort
SELECT ( - tab0.col0 ) + + col1 FROM tab0
----
2
62
62
query I rowsort
SELECT ALL 98 + col0 AS col0 FROM tab2
----
105
176
177
query I rowsort
SELECT + col0 + col2 * tab0.col0 FROM tab0
----
70
7387
816
query I rowsort
SELECT 82 + col2 AS col2 FROM tab0
----
115
164
83
query I rowsort
SELECT DISTINCT 50 + col0 FROM tab2
----
128
129
57
query I rowsort
SELECT + + 68 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
query I rowsort
SELECT ALL + cor0.col0 * + col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ( - 60 ) * - col2 * - tab2.col1 AS col1 FROM tab2
----
-38760
-50220
-92040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1767
SELECT CAST( - 36 AS SIGNED ) FROM tab1
----
-36
-36
-36
skipif mysql # not compatible
query I rowsort label-1767
SELECT CAST ( - 36 AS INTEGER ) FROM tab1
----
-36
-36
-36
query I rowsort
SELECT ALL ( + cor0.col0 ) FROM tab1 cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + col2 + col2 * - 30 col1 FROM tab2 cor0
----
-104
-81
304
query I rowsort
SELECT DISTINCT + col0 * 80 AS col1 FROM tab2
----
560
6240
6320
query I rowsort
SELECT DISTINCT - + 54 + + col1 AS col0 FROM tab0 AS cor0
----
32
37
43
query I rowsort
SELECT ALL + - col0 * 29 + col2 AS col0 FROM tab1 AS cor0
----
-1799
-2224
-33
query I rowsort
SELECT DISTINCT 37 AS col2 FROM tab1 cor0
----
37
query I rowsort
SELECT DISTINCT cor0.col1 + col1 + + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-6542
-917
193
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col0 AS REAL ) * col0 + + col2 + 78 FROM tab1 AS cor0
----
-3961
-6226
123
query I rowsort
SELECT ALL col2 * col2 * col0 FROM tab2 AS cor0
----
114076
5103
52728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * 55 + - col0 col2 FROM tab1 AS cor0
----
2967
3071
5200
query I rowsort
SELECT + + ( - col2 ) * - cor0.col2 + - ( + 26 ) FROM tab1 AS cor0
----
2890
3223
9190
query I rowsort
SELECT + 72 * + col2 AS col0 FROM tab2 AS cor0
----
1872
1944
2736
query I rowsort
SELECT - 59 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f
onlyif mysql # use DIV operator for integer division
query I rowsort label-1781
SELECT - ( col2 ) DIV col1 col0 FROM tab1 AS cor0
----
-2
-5
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1781
SELECT - ( col2 ) / col1 col0 FROM tab1 AS cor0
----
-2
-5
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1782
SELECT ALL ( - col0 + col0 ) DIV 88 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1782
SELECT ALL ( - col0 + col0 ) / 88 FROM tab0
----
0
0
0
query I rowsort
SELECT 91 + ( + col0 ) AS col1 FROM tab2
----
169
170
98
query I rowsort
SELECT ALL + - col1 + + ( col2 + + col2 ) * cor0.col2 FROM tab0 AS cor0
----
-95
13357
2092
query I rowsort
SELECT ALL + col0 + + col1 + ( - col0 ) * + col1 FROM tab1 AS cor0
----
-49
-566
-947
query I rowsort
SELECT col0 * - col2 + - 9 + cor0.col0 FROM tab0 cor0
----
-7218
-777
-9
query I rowsort
SELECT col1 + + 38 AS col2 FROM tab0 AS cor0
----
124
129
135
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + col0 col1 FROM tab0
----
-34
-7
9
query I rowsort
SELECT - 0 + + col1 * - ( + 6 * col0 ) FROM tab1
----
-3840
-468
-6240
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1790
SELECT - - col2 * CAST( + ( + col2 ) AS SIGNED ) + + 35 AS col1 FROM tab2 AS cor0
----
1479
711
764
skipif mysql # not compatible
query I rowsort label-1790
SELECT - - col2 * CAST ( + ( + col2 ) AS INTEGER ) + + 35 AS col1 FROM tab2 AS cor0
----
1479
711
764
query I rowsort
SELECT col2 * - col0 - + ( cor0.col2 ) FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT - col1 + 22 * col0 + + col0 FROM tab1
----
1462
1827
43
query I rowsort
SELECT DISTINCT col0 + col2 + + tab2.col1 * - col2 FROM tab2
----
-1430
-529
-803
query I rowsort
SELECT DISTINCT - tab0.col2 + + ( + 84 ) * col0 AS col2 FROM tab0
----
1983
2939
7394
query I rowsort
SELECT - ( + col2 ) * - col0 + - 52 + - col0 AS col2 FROM tab1 AS cor0
----
107
3532
7548
query I rowsort
SELECT + col2 * - 54 FROM tab0 cor0
----
-1782
-4428
-54
query I rowsort
SELECT col2 + col1 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
63
84
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-1798
SELECT - + col2 DIV + ( + cor0.col1 ) + 60 * + 77 + cor0.col1 * 74 AS col0 FROM tab1 AS cor0
----
5355
5575
6542
skipif mysql # not compatible
query I rowsort label-1798
SELECT - + col2 / + ( + cor0.col1 ) + 60 * + 77 + cor0.col1 * 74 AS col0 FROM tab1 AS cor0
----
5355
5575
6542
query I rowsort
SELECT col0 * + col0 * col2 AS col0 FROM tab1
----
233472
486
614400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1800
SELECT + col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1800
SELECT + col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT tab0.col2 * - 10 FROM tab0, tab2 AS cor0
----
9 values hashing to 3ffcb5681d0393dd25ffe1b46ea9478f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1802
SELECT CAST( NULL AS SIGNED ) * + col0 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1802
SELECT CAST ( NULL AS INTEGER ) * + col0 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1803
SELECT - CAST( - 85 AS SIGNED ) + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1004
-6639
84
skipif mysql # not compatible
query I rowsort label-1803
SELECT - CAST ( - 85 AS INTEGER ) + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1004
-6639
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 54 col0 FROM tab2
----
1674
3186
918
query I rowsort
SELECT - 0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT - - 75 * 98 AS col0 FROM tab1, tab0 cor0, tab2, tab0 AS cor1
----
7350
query I rowsort
SELECT ALL ( + 98 ) FROM tab0
----
98
98
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 * - col0 + - col0 * cor0.col0 col2 FROM tab0 AS cor0
----
-13083
-1968
-3255
query I rowsort
SELECT - 69 + + col2 * + col0 * + col2 FROM tab2 cor0
----
114007
5034
52659
query I rowsort
SELECT col1 + - 93 AS col1 FROM tab0 AS cor0
----
-2
-7
4
query I rowsort
SELECT col2 * + 84 AS col2 FROM tab0
----
2772
6888
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-1812
SELECT col2 + + col2 DIV + col2 AS col0 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-1812
SELECT col2 + + col2 / + col2 AS col0 FROM tab0
----
2
34
83
query I rowsort
SELECT ALL + tab2.col0 * - tab2.col1 AS col0 FROM tab2
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 49 + col2 * - 22 col0 FROM tab1 AS cor0
----
-1139
-1205
-2063
query I rowsort
SELECT + 39 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229
query I rowsort
SELECT DISTINCT + + col2 * ( col0 ) + col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT - col1 + + col2 * - col0 * col1 FROM tab0 AS cor0
----
-3492
-664209
-68198
query I rowsort
SELECT ALL 68 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
query I rowsort
SELECT col2 * col1 - + cor0.col2 * - col2 FROM tab2 cor0
----
1566
2090
2210
query I rowsort
SELECT - col1 * col2 + col2 + + col1 * ( - col1 * - col2 ) FROM tab0 AS cor0
----
241263
671662
9313
query I rowsort
SELECT - col2 * 84 + col0 + col0 FROM tab2 cor0
----
-2028
-2254
-3034
onlyif mysql # use DIV operator for integer division
query I rowsort label-1822
SELECT - col0 DIV - ( col1 ) - - col2 FROM tab2 cor0
----
27
27
42
skipif mysql # not compatible
query I rowsort label-1822
SELECT - col0 / - ( col1 ) - - col2 FROM tab2 cor0
----
27
27
42
query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col2 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= NULL
----
query I rowsort
SELECT ALL - col0 * - col1 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-1826
SELECT ALL cor0.col1 DIV + col2 + col2 + + col2 * + col2 FROM tab0 AS cor0
----
1124
6807
99
skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL cor0.col1 / + col2 + col2 + + col2 * + col2 FROM tab0 AS cor0
----
1124
6807
99
query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE NOT - col0 - - col1 NOT IN ( col2 + - col0 * + col1 + + col0 )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 IN ( + tab0.col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1829
SELECT DISTINCT + col2 * + col2 + col1 DIV + tab1.col1 AS col1 FROM tab1
----
2917
3250
9217
skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT + col2 * + col2 + col1 / + tab1.col1 AS col1 FROM tab1
----
2917
3250
9217
query III rowsort
SELECT * FROM tab2 WHERE col2 / col0 = col1
----
query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < col2 + - col0 * - col2 / col0
----
query I rowsort
SELECT ALL col0 + - cor0.col0 * col2 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT + col1 * tab1.col1 + + tab1.col0 FROM tab1
----
164
249
679
query I rowsort
SELECT DISTINCT col0 * + col1 AS col2 FROM tab1 WHERE NOT col2 >= NULL
----
query I rowsort
SELECT ALL col2 + - tab2.col1 AS col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT - col1 * - col0 + col0 AS col2 FROM tab2
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-1837
SELECT DISTINCT + col0 + - col1 DIV + col0 AS col0 FROM tab1
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT + col0 + - col1 / + col0 AS col0 FROM tab1
----
-5
64
80
query I rowsort
SELECT + col1 * col0 * + col1 + col1 AS col2 FROM tab0
----
177590
329412
737100
query I rowsort
SELECT - tab0.col0 * - col2 * + tab0.col1 + - col1 + - col1 AS col2 FROM tab0
----
3201
663936
67940
query I rowsort
SELECT + + cor0.col0 * - col0 + - col0 AS col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT col0 + - col0 * col1 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT - col2 * col0 * - col2 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT DISTINCT + col2 + - col2 * - col1 AS col0 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL col0 + - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL + col1 * - col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT col0 * - col1 + cor0.col0 AS col0 FROM tab1 cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT col2 + col2 * col1 + + col2 AS col1 FROM tab0 AS cor0
----
2904
7626
99
query I rowsort
SELECT DISTINCT - - col0 - - cor0.col0 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT ALL - col2 - cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT + col1 * + col1 * col1 FROM tab2 AS cor0 WHERE col2 * col2 NOT BETWEEN ( NULL ) AND NULL OR NULL NOT IN ( col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL 56 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
query I rowsort
SELECT ALL col2 * col0 * - tab1.col0 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT DISTINCT - 62 FROM tab2, tab1 cor0, tab0 cor1
----
-62
query I rowsort
SELECT + ( col2 ) * ( + col1 ) FROM tab2
----
1534
646
837
skipif mysql # not compatible
query I rowsort
SELECT ALL + - 64 * col1 + CAST ( col0 * + col2 AS REAL ) AS col0 FROM tab2 AS cor0
----
-1748
-1795
1914
query I rowsort
SELECT - + 43 * cor0.col1 + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-12012
-5762
-7566
query I rowsort
SELECT + 40 * - col1 + - ( 6 ) FROM tab2 cor0
----
-1246
-2366
-686
query I rowsort
SELECT + col1 + col2 * + 72 + col2 AS col0 FROM tab2 AS cor0
----
1957
2002
2791
query I rowsort
SELECT DISTINCT + + col2 + 17 * - 4 AS col0 FROM tab0 AS cor0
----
-35
-67
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-1861
SELECT col2 DIV + col0 + 75 AS col0 FROM tab2 AS cor0
----
75
75
78
skipif mysql # not compatible
query I rowsort label-1861
SELECT col2 / + col0 + 75 AS col0 FROM tab2 AS cor0
----
75
75
78
query I rowsort
SELECT DISTINCT cor0.col2 + ( 32 ) * col0 FROM tab0 AS cor0
----
1121
2930
801
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1863
SELECT ALL col0 / CAST( NULL AS SIGNED ) - col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL col0 / CAST ( NULL AS INTEGER ) - col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - cor0.col1 * + col0 + col2 * + col2 AS col0 FROM tab2 AS cor0
----
2787
5278
946
query I rowsort
SELECT + cor0.col0 * 61 AS col2 FROM tab2 AS cor0
----
427
4758
4819
query I rowsort
SELECT + col1 * + 25 + - col0 + col1 FROM tab1 AS cor0
----
196
258
673
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND tab2.col2
----
query III rowsort
SELECT * FROM tab2 WHERE ( col1 / + col0 ) IN ( col0 )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < - col2
----
query I rowsort
SELECT col1 * col1 - - col0 AS col0 FROM tab0
----
7420
8370
9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-1871
SELECT ALL + col2 + - col2 DIV col2 AS col0 FROM tab1
----
53
56
95
skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL + col2 + - col2 / col2 AS col0 FROM tab1
----
53
56
95
query I rowsort
SELECT - col0 * col2 * + col0 + - col0 FROM tab1 WHERE ( NULL ) < col0 - + col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1873
SELECT col1 + + col0 DIV col2 AS col1 FROM tab0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-1873
SELECT col1 + + col0 / col2 AS col1 FROM tab0
----
132
86
92
query I rowsort
SELECT + col2 * - col2 + - col1 FROM tab2 WHERE NOT NULL >= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + tab0.col0 * - tab0.col0 col0 FROM tab0
----
-1128
-490
-7830
query I rowsort
SELECT + col1 + col1 * + col0 FROM tab2
----
1360
248
4661
query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NOT ( + col1 ) > col1
----
1
33
82
query I rowsort
SELECT DISTINCT col1 + tab1.col0 * tab1.col1 AS col2 FROM tab1
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-1879
SELECT ALL + col1 * + col0 + + col0 DIV + col0 FROM tab1
----
1041
641
79
skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL + col1 * + col0 + + col0 / + col0 FROM tab1
----
1041
641
79
query I rowsort
SELECT + col2 + col0 * + col1 AS col0 FROM tab2 cor0
----
1381
244
4628
query I rowsort
SELECT col0 * - col2 + + col0 * col1 FROM tab0
----
1272
3360
801
query I rowsort
SELECT DISTINCT - tab2.col2 + col1 * + col1 + - col0 FROM tab2
----
172
3377
927
query I rowsort
SELECT + col1 * - col2 * + col2 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT ALL + - cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT + - 89 + cor0.col1 FROM tab2 AS cor0
----
-30
-58
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab0 WHERE NULL NOT IN ( tab0.col0 )
----
query I rowsort
SELECT DISTINCT col0 + tab2.col0 * + col0 + col2 FROM tab2
----
6188
6358
83
query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NULL <= ( NULL )
----
query I rowsort
SELECT DISTINCT col0 * col1 * + col0 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT col0 * + tab2.col1 * col1 AS col2 FROM tab2
----
22831
271518
6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-1891
SELECT ALL col1 + + tab0.col1 + col0 DIV col0 AS col1 FROM tab0
----
173
183
195
skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL col1 + + tab0.col1 + col0 / col0 AS col1 FROM tab0
----
173
183
195
query I rowsort
SELECT DISTINCT + 63 + - col2 FROM tab1
----
-33
6
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1893
SELECT - + col0 + 54 DIV col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-1893
SELECT - + col0 + 54 / col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - col2 * col2 + col0 * + col1 * col1 FROM tab0 AS cor0
----
176415
329314
730285
query I rowsort
SELECT col0 * - 9 + - col1 FROM tab1 AS cor0
----
-53
-586
-733
query I rowsort
SELECT - col2 + - 71 * + col0 AS col2 FROM tab0 cor0
----
-1737
-2486
-6401
query I rowsort
SELECT ALL - 71 * col1 FROM tab1
----
-1846
-710
-923
query I rowsort
SELECT 3 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
query I rowsort
SELECT 27 * + col1 FROM tab1
----
270
351
702
query I rowsort
SELECT col0 * col2 * ( col1 ) FROM tab0
----
3395
664118
68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1901
SELECT col0 * - col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1901
SELECT col0 * - col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 30 + - col2 AS col0 FROM tab1
----
-24
-27
-66
query I rowsort
SELECT DISTINCT ( - 15 ) AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-15
query I rowsort
SELECT ALL - 5 * + col0 FROM tab1
----
-15
-320
-400
query I rowsort
SELECT DISTINCT - - cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
3
64
80
query I rowsort
SELECT col2 * - col1 + - col1 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT - col2 + - col1 * + 45 FROM tab1 AS cor0
----
-1224
-507
-681
query I rowsort
SELECT DISTINCT + ( col1 ) + + col0 * 64 AS col2 FROM tab0
----
1622
2337
5787
query I rowsort
SELECT 31 + + 13 FROM tab0
----
44
44
44
query I rowsort
SELECT DISTINCT + col2 * - 80 AS col0 FROM tab2 cor0
----
-2080
-2160
-3040
query I rowsort
SELECT DISTINCT + col2 * + 21 FROM tab0 AS cor0
----
1722
21
693
query I rowsort
SELECT ALL - 79 * + cor0.col0 * - col0 AS col1 FROM tab2 AS cor0
----
3871
480636
493039
query I rowsort
SELECT - 67 * - col0 + + col1 FROM tab1 AS cor0
----
227
4298
5373
query I rowsort
SELECT DISTINCT + + col1 + col2 * + 2 * + col1 AS col2 FROM tab1 AS cor0
----
1150
2509
2834
query I rowsort
SELECT + + ( - col2 ) + col2 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - col0 + col2 * col1 * 9 AS col2 FROM tab0 AS cor0
----
25518
67069
838
query I rowsort
SELECT + col1 * col0 + + col2 * - col1 - + col1 AS col0 FROM tab2 AS cor0
----
-651
3009
680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 0 ) + col2 * ( tab1.col2 ) col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - 44 + + ( + col1 ) * + 33 AS col1 FROM tab0
----
2794
2959
3157
query I rowsort
SELECT col2 * col1 + - col0 * + cor0.col0 - col1 * - col0 FROM tab2 AS cor0
----
-4252
1005
52
query I rowsort
SELECT col0 + - col2 - + col1 FROM tab2 AS cor0
----
-51
-7
24
query I rowsort
SELECT + - 13 * cor0.col0 + - cor0.col0 + col0 * - cor0.col2 FROM tab1 AS cor0
----
-204
-4544
-8800
query I rowsort
SELECT - ( cor0.col1 ) + + col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col0 col1 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT + col1 * + col2 + col2 - col2 AS col0 FROM tab2 cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1926
SELECT + col0 DIV + col0 + - col1 * + col0 FROM tab0 AS cor0
----
-2063
-3394
-8098
skipif mysql # not compatible
query I rowsort label-1926
SELECT + col0 / + col0 + - col1 * + col0 FROM tab0 AS cor0
----
-2063
-3394
-8098
query I rowsort
SELECT + col1 + + col0 * col2 * col1 FROM tab0 AS cor0
----
3492
664209
68198
query I rowsort
SELECT 70 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
query I rowsort
SELECT DISTINCT 29 + col2 FROM tab2 AS cor0
----
55
56
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-1930
SELECT DISTINCT col2 + + col1 DIV col1 + - col0 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
52
55
91
skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT col2 + + col1 / col1 + - col0 / cor0.col1 AS col0 FROM tab1 AS cor0
----
52
55
91
query I rowsort
SELECT + col0 - + 0 AS col1 FROM tab2
----
7
78
79
query I rowsort
SELECT - ( cor2.col0 ) FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to adaea38eae032c1639715f21831dd376
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1933
SELECT ALL - CAST( - col2 AS SIGNED ) * col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776
skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL - CAST ( - col2 AS INTEGER ) * col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT - 72 * col2 + col0 + - col1 AS col1 FROM tab1 AS cor0
----
-3911
-4050
-6845
query I rowsort
SELECT + 15 * - cor0.col1 + col1 AS col2 FROM tab0 AS cor0
----
-1204
-1274
-1358
query I rowsort
SELECT ALL - - ( col0 ) * col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + 66 * - col1 AS col1 FROM tab2
----
-1122
-2046
-3894
onlyif mysql # use DIV operator for integer division
query I rowsort label-1938
SELECT DISTINCT 51 + + col2 DIV - col2 AS col1 FROM tab0 cor0
----
50
skipif mysql # not compatible
query I rowsort label-1938
SELECT DISTINCT 51 + + col2 / - col2 AS col1 FROM tab0 cor0
----
50
query I rowsort
SELECT DISTINCT + cor0.col2 + col1 * + col1 AS col2 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT ALL - + 64 + col0 AS col1 FROM tab2 AS cor0
----
-57
14
15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 * - col2 col2 FROM tab2
----
-1560
-684
-864
query I rowsort
SELECT + col2 + + 64 FROM tab0
----
146
65
97
query I rowsort
SELECT 86 - 96 * col2 FROM tab1
----
-5098
-5386
-9130
query I rowsort
SELECT - 63 - col1 FROM tab2
----
-122
-80
-94
query I rowsort
SELECT + col1 * col1 + + col2 * + col0 AS col2 FROM tab1
----
3748
7849
838
query I rowsort
SELECT 86 * tab2.col0 + - col0 FROM tab2
----
595
6630
6715
query I rowsort
SELECT DISTINCT col1 + ( 71 ) + col2 AS col2 FROM tab1 AS cor0
----
138
151
180
query I rowsort
SELECT - col1 + - ( - col0 ) * col0 AS col1 FROM tab0 cor0
----
1128
490
7830
query I rowsort
SELECT + 6 * col1 * 99 FROM tab0
----
51084
54054
57618
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1950
SELECT + col0 * CAST( NULL AS SIGNED ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1950
SELECT + col0 * CAST ( NULL AS INTEGER ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * ( + 47 ) + col1 FROM tab1 AS cor0
----
1248
480
624
query I rowsort
SELECT - col1 * - col0 + + 48 * col2 FROM tab0 AS cor0
----
12035
3443
3648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1953
SELECT col2 * ( col2 ) / + cor0.col0 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1953
SELECT col2 * ( col2 ) / + cor0.col0 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col1 + + 89 AS col2 FROM tab0 AS cor0
----
-2
-8
3
query I rowsort
SELECT ALL + col1 - col2 * ( 53 ) * - col0 FROM tab0
----
1952
386885
42062
query I rowsort
SELECT ALL - tab2.col2 - col1 AS col2 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT - 44 * - col2 * 11 FROM tab0
----
15972
39688
484
query I rowsort
SELECT DISTINCT 3 * col2 AS col1 FROM tab2
----
114
78
81
query I rowsort
SELECT + col0 * - col1 * + col0 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT + col1 + - col1 - col2 * - col2 FROM tab1
----
2916
3249
9216
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 cor2
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 - - col1 * col0 col0 FROM tab0 AS cor0
----
16198
4128
6790
query I rowsort
SELECT ALL + cor0.col0 + col2 AS col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT + col0 + + ( col2 ) FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - col0 * 79 - - cor0.col0 * + col1 FROM tab1 AS cor0
----
-159
-4416
-5280
onlyif mysql # use DIV operator for integer division
query I rowsort label-1966
SELECT DISTINCT tab1.col1 DIV 56 AS col1 FROM tab1, tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT tab1.col1 / 56 AS col1 FROM tab1, tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1967
SELECT - + col0 + col0 DIV + col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-1967
SELECT - + col0 + col0 / + col1 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1968
SELECT ALL + cor0.col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL + cor0.col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col0 + 57 + col1 FROM tab1 AS cor0
----
131
150
86
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 2270901c73a658a63f841c68db8155ba
query I rowsort
SELECT col0 + ( - col1 ) * + col1 FROM tab0
----
-7372
-8192
-9374
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1972
SELECT ALL col2 + + CAST( + 65 AS SIGNED ) * - col0 FROM tab0
----
-1527
-2274
-5703
skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL col2 + + CAST ( + 65 AS INTEGER ) * - col0 FROM tab0
----
-1527
-2274
-5703
query I rowsort
SELECT DISTINCT + + col2 * - col1 + - col0 * ( cor0.col1 * - col1 + col2 ) AS col1 FROM tab1 AS cor0
----
2182
4592
462
query I rowsort
SELECT ALL - col2 + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT - + 26 - + cor0.col1 AS col2 FROM tab0 AS cor0
----
-112
-117
-123
query I rowsort
SELECT + 50 * col2 * + col0 + - 4 * col2 AS col2 FROM tab2 AS cor0
----
101296
149948
9342
query I rowsort
SELECT ALL - 54 * - 72 AS col0 FROM tab0 cor0
----
3888
3888
3888
query I rowsort
SELECT ALL + - 98 * - col0 + col1 - col2 AS col1 FROM tab2 AS cor0
----
690
7677
7721
onlyif mysql # use DIV operator for integer division
query I rowsort label-1979
SELECT DISTINCT ( col0 ) DIV - col1 + 19 AS col1 FROM tab1 AS cor0
----
13
19
skipif mysql # not compatible
query I rowsort label-1979
SELECT DISTINCT ( col0 ) / - col1 + 19 AS col1 FROM tab1 AS cor0
----
13
19
query I rowsort
SELECT ( + tab0.col1 ) * + tab0.col0 FROM tab0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 * tab2.col2 col2 FROM tab2
----
1924
1998
2812
query I rowsort
SELECT + cor0.col1 + + col0 * - col2 - - col0 * col0 FROM tab0 AS cor0
----
-130
1287
714
query I rowsort
SELECT - + col2 * - col0 * + col1 FROM tab0 AS cor0
----
3395
664118
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 51 col1 FROM tab2 AS cor0
----
-51
-51
-51
query I rowsort
SELECT - col1 * cor0.col1 + col1 * col2 FROM tab1 cor0
----
1079
470
728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1986
SELECT + tab2.col1 * col1 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1986
SELECT + tab2.col1 * col1 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * col2 * col0 AS col2 FROM tab2 cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-1988
SELECT DISTINCT - col0 DIV + col1 + + col1 * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif mysql # not compatible
query I rowsort label-1988
SELECT DISTINCT - col0 / + col1 + + col1 * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT - col0 * - col0 + - 29 FROM tab2 AS cor0
----
20
6055
6212
query I rowsort
SELECT DISTINCT col0 + cor0.col2 * 67 * col0 FROM tab2 AS cor0
----
12670
135954
201213
query I rowsort
SELECT + 42 * - col0 FROM tab1 AS cor0
----
-126
-2688
-3360
query I rowsort
SELECT ALL + col1 * col1 * col2 + - 32 FROM tab0 AS cor0
----
244036
679010
9377
query I rowsort
SELECT - col0 + 42 - - col1 FROM tab2 cor0
----
-20
23
66
query I rowsort
SELECT - col1 + 5 * + col0 AS col2 FROM tab0 AS cor0
----
34
354
78
query I rowsort
SELECT col0 * col2 * + cor0.col2 FROM tab2 cor0
----
114076
5103
52728
query I rowsort
SELECT DISTINCT col2 * + col1 + ( col1 ) AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT - col2 * col1 + col1 + col1 FROM tab2 AS cor0
----
-1416
-612
-775
query I rowsort
SELECT DISTINCT + cor0.col0 + ( - col0 ) * col2 * - 90 - ( col0 ) * col1 FROM tab0 AS cor0
----
-210
648810
69240
onlyif mysql # use DIV operator for integer division
query I rowsort label-1999
SELECT - col2 DIV + col1 + ( - col1 ) - col2 AS col2 FROM tab2 AS cor0
----
-57
-58
-85
skipif mysql # not compatible
query I rowsort label-1999
SELECT - col2 / + col1 + ( - col1 ) - col2 AS col2 FROM tab2 AS cor0
----
-57
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-2000
SELECT + col2 + + col1 DIV - col0 FROM tab0 AS cor0
----
-1
30
81
skipif mysql # not compatible
query I rowsort label-2000
SELECT + col2 + + col1 / - col0 FROM tab0 AS cor0
----
-1
30
81
query I rowsort
SELECT DISTINCT - - cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + 74 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
onlyif mysql # use DIV operator for integer division
query I rowsort label-2003
SELECT DISTINCT col0 DIV + tab2.col0 AS col1 FROM tab2
----
1
skipif mysql # not compatible
query I rowsort label-2003
SELECT DISTINCT col0 / + tab2.col0 AS col1 FROM tab2
----
1
query I rowsort
SELECT ALL - cor0.col0 + - 46 * - col0 AS col2 FROM tab2 AS cor0
----
315
3510
3555
query I rowsort
SELECT + - cor0.col2 * - col2 + col0 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT ALL - ( 97 ) + col1 FROM tab1
----
-71
-84
-87
query I rowsort
SELECT ALL 77 * col1 + col0 AS col0 FROM tab2
----
1388
2394
4621
query I rowsort
SELECT cor0.col1 - cor0.col2 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2009
SELECT ALL + col0 DIV + col0 + - col2 * 22 FROM tab2
----
-571
-593
-835
skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL + col0 / + col0 + - col2 * 22 FROM tab2
----
-571
-593
-835
query I rowsort
SELECT ALL + col2 * col2 * + col1 AS col2 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT DISTINCT - + col2 + col0 + col1 FROM tab0 AS cor0
----
131
77
98
query I rowsort
SELECT - col0 * col1 + - col1 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT ALL - + cor0.col1 - + cor0.col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT + 63 * - tab1.col2 FROM tab1
----
-3402
-3591
-6048
query I rowsort
SELECT 31 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT DISTINCT - ( - ( col1 ) ) FROM tab0
----
86
91
97
query I rowsort
SELECT + cor0.col2 * 16 + col1 AS col2 FROM tab0 AS cor0
----
113
1403
614
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - col2 ) col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL - col0 + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT ALL 51 * - col0 * col0 AS col0 FROM tab1 AS cor0
----
-208896
-326400
-459
query I rowsort
SELECT DISTINCT - col2 + + 83 * - col0 FROM tab1 AS cor0
----
-303
-5369
-6736
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 73 ) col2 FROM tab1
----
-73
-73
-73
query I rowsort
SELECT ALL - 94 AS col1 FROM tab2
----
-94
-94
-94
query I rowsort
SELECT + ( - ( - col2 ) ) * + 65 * - col1 AS col1 FROM tab2 AS cor0
----
-41990
-54405
-99710
query I rowsort
SELECT + 14 * - ( + col0 ) AS col0 FROM tab0 AS cor0
----
-1246
-336
-490
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 * - col1 * ( 41 ) col1 FROM tab0 AS cor0
----
-324392
-343252
-365884
query I rowsort
SELECT - cor0.col2 * cor0.col1 + + 67 + col2 AS col2 FROM tab2 AS cor0
----
-1441
-541
-743
onlyif mysql # use DIV operator for integer division
query I rowsort label-2028
SELECT + cor0.col2 * cor0.col1 DIV - col0 + col0 AS col2 FROM tab2 AS cor0
----
-112
59
71
skipif mysql # not compatible
query I rowsort label-2028
SELECT + cor0.col2 * cor0.col1 / - col0 + col0 AS col2 FROM tab2 AS cor0
----
-112
59
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-2029
SELECT ALL - col2 DIV - col0 col1 FROM tab2 AS cor0
----
0
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2029
SELECT ALL - col2 / - col0 col1 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT - col1 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT + 61 + 53 FROM tab2, tab0 AS cor0
----
9 values hashing to e2d56a39621064cf4b6c94794ecedaba
query I rowsort
SELECT ALL - - 18 + - 32 * col0 FROM tab0 cor0
----
-1102
-2830
-750
onlyif mysql # use DIV operator for integer division
query I rowsort label-2033
SELECT DISTINCT + - col1 * 73 DIV col2 AS col1 FROM tab1 AS cor0
----
-12
-35
-9
skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT + - col1 * 73 / col2 AS col1 FROM tab1 AS cor0
----
-12
-35
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2034
SELECT - 55 DIV + col1 FROM tab2 AS cor0
----
-1
-3
0
skipif mysql # not compatible
query I rowsort label-2034
SELECT - 55 / + col1 FROM tab2 AS cor0
----
-1
-3
0
query I rowsort
SELECT - cor0.col1 * 94 FROM tab2 AS cor0
----
-1598
-2914
-5546
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2036
SELECT + - CAST( 73 AS SIGNED ) AS col0 FROM tab1 cor0
----
-73
-73
-73
skipif mysql # not compatible
query I rowsort label-2036
SELECT + - CAST ( 73 AS INTEGER ) AS col0 FROM tab1 cor0
----
-73
-73
-73
query I rowsort
SELECT DISTINCT - 0 FROM tab0, tab0 cor0, tab1 AS cor1
----
0
query I rowsort
SELECT ALL - col1 * - 74 AS col0 FROM tab1
----
1924
740
962
query I rowsort
SELECT DISTINCT + - ( + 40 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-40
query I rowsort
SELECT 70 + + col1 * + col1 * - 20 FROM tab1
----
-13450
-1930
-3310
onlyif mysql # use DIV operator for integer division
query I rowsort label-2041
SELECT DISTINCT - - col0 DIV - col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT - - col0 / - col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT 81 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + 0 col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + col2 * + ( - cor0.col1 ) * cor0.col1 + col1 * col0 FROM tab1 AS cor0
----
-15184
-36426
-5060
query I rowsort
SELECT DISTINCT col1 * - col2 - - cor0.col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL - - col1 * + col1 * - cor0.col0 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT 94 * cor0.col1 AS col0 FROM tab0, tab0 AS cor0, tab2 cor1
----
8084
8554
9118
query I rowsort
SELECT ALL cor0.col1 * 37 * - col2 FROM tab1 AS cor0
----
-21090
-46176
-51948
onlyif mysql # use DIV operator for integer division
query I rowsort label-2049
SELECT col1 * col1 + 74 DIV - col1 FROM tab0 cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-2049
SELECT col1 * col1 + 74 / - col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT ALL - col2 + + 31 FROM tab1 AS cor0
----
-23
-26
-65
query I rowsort
SELECT DISTINCT - 45 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-45
query I rowsort
SELECT DISTINCT - 58 + tab2.col2 FROM tab2
----
-20
-31
-32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2053
SELECT ALL - - col1 - + CAST( + ( + col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL - - col1 - + CAST ( + ( + col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT 18 AS col0 FROM tab0, tab0 AS cor0
----
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2055
SELECT ALL + CAST( + 68 AS SIGNED ) FROM tab2
----
68
68
68
skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL + CAST ( + 68 AS INTEGER ) FROM tab2
----
68
68
68
query I rowsort
SELECT DISTINCT + 15 FROM tab2, tab0 AS cor0
----
15
query I rowsort
SELECT DISTINCT - ( 89 ) + col1 FROM tab0 AS cor0
----
-3
2
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-2058
SELECT ALL - + col1 + 80 DIV + col1 AS col2 FROM tab2 AS cor0
----
-13
-29
-58
skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL - + col1 + 80 / + col1 AS col2 FROM tab2 AS cor0
----
-13
-29
-58
query I rowsort
SELECT 83 * col0 FROM tab0 cor0
----
1992
2905
7387
onlyif mysql # use DIV operator for integer division
query I rowsort label-2060
SELECT ALL + 91 + + 66 DIV - col1 FROM tab0 AS cor0
----
91
91
91
skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL + 91 + + 66 / - col1 FROM tab0 AS cor0
----
91
91
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-2061
SELECT col2 + - cor0.col1 - cor0.col1 DIV ( col1 ) AS col2 FROM tab0 AS cor0
----
-10
-54
-97
skipif mysql # not compatible
query I rowsort label-2061
SELECT col2 + - cor0.col1 - cor0.col1 / ( col1 ) AS col2 FROM tab0 AS cor0
----
-10
-54
-97
query I rowsort
SELECT DISTINCT - col1 + cor0.col2 * 30 FROM tab0 cor0
----
-67
2369
904
onlyif mysql # use DIV operator for integer division
query I rowsort label-2063
SELECT DISTINCT + 24 DIV + col0 FROM tab2 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT + 24 / + col0 FROM tab2 AS cor0
----
0
3
query I rowsort
SELECT - 17 * col0 + col1 AS col2 FROM tab2 AS cor0
----
-1267
-1326
-88
query I rowsort
SELECT + col2 * - cor0.col0 * + ( col0 ) + col2 - - 8 FROM tab1 AS cor0
----
-233407
-424
-614296
query I rowsort
SELECT DISTINCT + - cor0.col2 + - col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT - tab2.col0 * 53 FROM tab2
----
-371
-4134
-4187
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 88 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT DISTINCT - col1 * + col2 + + ( col0 * - col0 ) + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-6904
-7677
-917
query I rowsort
SELECT + - 61 AS col2 FROM tab0 AS cor0
----
-61
-61
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-2071
SELECT - col0 * col2 DIV col0 col0 FROM tab0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2071
SELECT - col0 * col2 / col0 col0 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - col2 + tab1.col2 + - ( col1 ) FROM tab1
----
-10
-13
-26
query I rowsort
SELECT + col2 - 38 FROM tab2 AS cor0
----
-11
-12
0
query I rowsort
SELECT ALL - 47 * + col0 + - col0 FROM tab2
----
-336
-3744
-3792
query I rowsort
SELECT - 98 + + 86 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0
query I rowsort
SELECT ALL + ( + col0 ) * - 46 + col1 FROM tab2 AS cor0
----
-291
-3529
-3617
query I rowsort
SELECT DISTINCT + col0 * col0 + + ( tab0.col0 * col0 ) + + 30 FROM tab0
----
1182
15872
2480
query I rowsort
SELECT ALL col2 + - 78 FROM tab1
----
-21
-24
18
query I rowsort
SELECT col2 + ( + 44 ) FROM tab0
----
126
45
77
query I rowsort
SELECT - col2 + 83 AS col0 FROM tab1
----
-13
26
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + ( 29 * col1 ) col2 FROM tab1
----
354
457
757
query I rowsort
SELECT ALL cor0.col1 + 66 AS col0 FROM tab0 AS cor0
----
152
157
163
query I rowsort
SELECT DISTINCT - col0 - + 18 * col0 FROM tab2 cor0
----
-133
-1482
-1501
query I rowsort
SELECT DISTINCT - col1 * + ( - col2 ) AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - 8 AS col0 FROM tab0, tab1 AS cor0
----
-8
query I rowsort
SELECT col2 * - 12 AS col2 FROM tab1
----
-1152
-648
-684
query I rowsort
SELECT + tab2.col2 + + col0 * - tab2.col2 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT + 88 * 94 FROM tab0
----
8272
query I rowsort
SELECT - 90 * col2 AS col0 FROM tab1 cor0
----
-4860
-5130
-8640
query I rowsort
SELECT ALL + ( col0 ) * col2 + col2 * col0 AS col0 FROM tab0 AS cor0
----
14596
1584
70
query I rowsort
SELECT DISTINCT 59 FROM tab2 cor0
----
59
query I rowsort
SELECT 70 + - col2 FROM tab2 AS cor0
----
32
43
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2093
SELECT ALL + CAST( NULL AS SIGNED ) + col2 + col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL + CAST ( NULL AS INTEGER ) + col2 + col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 55 + 69 + col0 FROM tab1 AS cor0
----
127
188
204
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2095
SELECT CAST( NULL AS SIGNED ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2095
SELECT CAST ( NULL AS INTEGER ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2096
SELECT DISTINCT - - CAST( - cor0.col2 AS SIGNED ) + + col0 * 41 * - col1 FROM tab1 AS cor0
----
-26297
-3252
-42736
skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT - - CAST ( - cor0.col2 AS INTEGER ) + + col0 * 41 * - col1 FROM tab1 AS cor0
----
-26297
-3252
-42736
query I rowsort
SELECT ALL col2 * - col2 - col2 AS col1 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT ALL - - col0 - cor0.col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT - 20 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee
query I rowsort
SELECT - col2 + - ( col2 ) * - col1 * + 18 FROM tab0 AS cor0
----
134234
1745
51051
onlyif mysql # use DIV operator for integer division
query I rowsort label-2101
SELECT DISTINCT tab2.col2 DIV + 79 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT tab2.col2 / + 79 FROM tab2
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2102
SELECT - + col1 * + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-2102
SELECT - + col1 * + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - 12 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-12
query I rowsort
SELECT - col1 + - cor0.col1 * - 86 * - col2 FROM tab1 AS cor0
----
-107341
-120770
-49030
query I rowsort
SELECT 33 - col0 FROM tab2 AS cor0
----
-45
-46
26
query I rowsort
SELECT - + 66 * 95 + + col0 AS col1 FROM tab1 cor0
----
-6190
-6206
-6267
onlyif mysql # use DIV operator for integer division
query I rowsort label-2107
SELECT - col1 + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
-83
-90
-95
skipif mysql # not compatible
query I rowsort label-2107
SELECT - col1 + col1 / col0 AS col0 FROM tab0 AS cor0
----
-83
-90
-95
query I rowsort
SELECT - - ( + 38 ) * - col2 + col2 * col1 + col1 AS col0 FROM tab2 AS cor0
----
-158
-781
605
query I rowsort
SELECT + - 13 + - 48 * + col0 AS col1 FROM tab1 AS cor0
----
-157
-3085
-3853
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) + + cor0.col1 + + 0 * + col0 AS col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL col2 * + 67 AS col2 FROM tab0
----
2211
5494
67
query I rowsort
SELECT ALL col2 * 23 AS col0 FROM tab1
----
1242
1311
2208
query I rowsort
SELECT 89 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT - - 83 FROM tab0 cor0
----
83
83
83
query I rowsort
SELECT DISTINCT + + ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - col0 * - col0 + - tab0.col1 * - ( - col2 ) AS col2 FROM tab0
----
-2262
1128
459
query I rowsort
SELECT DISTINCT 3 + - col0 AS col2 FROM tab0
----
-21
-32
-86
query I rowsort
SELECT ( + col1 ) * + col2 AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + col1 * + col2 * - col1 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT - ( - col2 + + col1 * col1 ) AS col1 FROM tab1
----
-43
-622
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-2121
SELECT 76 DIV - col0 AS col1 FROM tab2 AS cor0
----
-10
0
0
skipif mysql # not compatible
query I rowsort label-2121
SELECT 76 / - col0 AS col1 FROM tab2 AS cor0
----
-10
0
0
query I rowsort
SELECT - + col0 + 19 AS col2 FROM tab0 AS cor0
----
-16
-5
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2123
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col2 + col1 * col1 AS col1 FROM tab1 AS cor0
----
43
622
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + 96 col1 FROM tab1 AS cor0
----
-1248
-2496
-960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2126
SELECT DISTINCT col2 + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT col2 + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2127
SELECT ALL col2 * - CAST( col1 AS SIGNED ) + + col1 FROM tab0 AS cor0
----
-2752
-7371
0
skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL col2 * - CAST ( col1 AS INTEGER ) + + col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT + + cor0.col2 + 78 FROM tab2 AS cor0
----
104
105
116
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2129
SELECT DISTINCT cor0.col0 * CAST( col1 AS SIGNED ) FROM tab1 cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT cor0.col0 * CAST ( col1 AS INTEGER ) FROM tab1 cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2130
SELECT DISTINCT - col0 DIV col0 + col2 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT - col0 / col0 + col2 / cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2131
SELECT col1 * - CAST( - 23 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1357
391
713
skipif mysql # not compatible
query I rowsort label-2131
SELECT col1 * - CAST ( - 23 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1357
391
713
query I rowsort
SELECT ALL col2 * + col0 - - col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL + + col0 * 40 + col0 FROM tab2 AS cor0
----
287
3198
3239
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + ( + col1 ) col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT + - 41 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf
query I rowsort
SELECT 49 * col1 AS col2 FROM tab2
----
1519
2891
833
query I rowsort
SELECT - + col1 * - ( col1 ) FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT tab0.col0 * - tab0.col1 AS col2 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT 32 * + 60 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 33610ab5092e8df30aebedd163d3df35
query I rowsort
SELECT - + 83 + + col1 AS col2 FROM tab0 AS cor0
----
14
3
8
query I rowsort
SELECT + cor0.col1 + 67 FROM tab1 AS cor0
----
77
80
93
query I rowsort
SELECT + - 69 + col1 - - col2 AS col2 FROM tab1 AS cor0
----
-2
11
40
query I rowsort
SELECT + - 77 + col0 AS col1 FROM tab1 cor0
----
-13
-74
3
query I rowsort
SELECT ALL 8 + - col2 * col0 * tab2.col0 AS col1 FROM tab2
----
-1315
-158176
-237150
query I rowsort
SELECT ALL 68 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
query I rowsort
SELECT DISTINCT + 17 FROM tab1, tab0, tab1 AS cor0
----
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-2147
SELECT - - col1 * col0 * 55 + - col2 DIV col1 AS col1 FROM tab1 AS cor0
----
35195
4288
57193
skipif mysql # not compatible
query I rowsort label-2147
SELECT - - col1 * col0 * 55 + - col2 / col1 AS col1 FROM tab1 AS cor0
----
35195
4288
57193
query I rowsort
SELECT + ( + cor0.col1 ) - + col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT 74 - - col2 * col2 FROM tab1 AS cor0
----
2990
3323
9290
query I rowsort
SELECT ALL + + ( col1 ) AS col2 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT 46 - col1 * + col1 FROM tab1 AS cor0
----
-123
-54
-630
query I rowsort
SELECT ALL - 95 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c
query I rowsort
SELECT - col1 * - ( tab1.col1 ) * col1 - ( col2 ) * + col2 FROM tab1
----
-2249
-7019
14660
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 col1 FROM tab2, tab0 AS cor0
----
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( col1 ) + - col1 col2 FROM tab1
----
1235
1378
560
query I rowsort
SELECT 91 * col1 + - col0 FROM tab1 AS cor0
----
1103
2363
846
onlyif mysql # use DIV operator for integer division
query I rowsort label-2157
SELECT ALL - - 74 + col0 DIV col0 AS col0 FROM tab1 AS cor0
----
75
75
75
skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL - - 74 + col0 / col0 AS col0 FROM tab1 AS cor0
----
75
75
75
query I rowsort
SELECT 64 + 26 FROM tab0 AS cor0
----
90
90
90
query I rowsort
SELECT DISTINCT - ( cor0.col0 ) * + col0 + col0 + col2 FROM tab1 AS cor0
----
-3975
-6224
48
query I rowsort
SELECT ALL - col0 + - 89 FROM tab2 AS cor0
----
-167
-168
-96
query I rowsort
SELECT - col2 * - 56 AS col2 FROM tab0
----
1848
4592
56
query I rowsort
SELECT ALL + ( - tab2.col0 ) + - col1 * - col0 AS col2 FROM tab2
----
1264
210
4524
query I rowsort
SELECT - col0 * + col1 + - col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT + - ( - cor0.col0 ) - col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 * - ( + col1 ) + + ( 6 ) AS col0 FROM tab1 AS cor0
----
-1242
-1398
-564
query I rowsort
SELECT DISTINCT - - ( col2 ) - - col0 * col1 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL - + col0 + - ( + col1 ) FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ( + col1 ) - col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - ( + col1 ) * + cor0.col0 * col2 + 75 * col2 FROM tab1 AS cor0
----
-162
-32205
-92640
query I rowsort
SELECT 68 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 7ff6433dda3248dce73040b2c590f3da
query I rowsort
SELECT ALL + + ( + col1 ) + col0 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL - 83 + col1 + col0 FROM tab2 cor0
----
-45
13
54
query I rowsort
SELECT DISTINCT - ( 95 ) - + col1 FROM tab0 AS cor0
----
-181
-186
-192
query I rowsort
SELECT DISTINCT - 3 AS col0 FROM tab0
----
-3
query I rowsort
SELECT 28 * + cor0.col1 FROM tab0 AS cor0
----
2408
2548
2716
query I rowsort
SELECT col2 * tab0.col2 + - 53 AS col0 FROM tab0
----
-52
1036
6671
query I rowsort
SELECT - col0 * col0 - - tab2.col0 * col1 FROM tab2
----
-1482
-4898
168
query I rowsort
SELECT ALL + 6 AS col2 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
0
query I rowsort
SELECT + + 33 AS col1 FROM tab2 AS cor0
----
33
33
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-2181
SELECT - + 95 * col2 + ( col2 * col0 ) + 76 DIV - col0 AS col2 FROM tab0 AS cor0
----
-2346
-492
-62
skipif mysql # not compatible
query I rowsort label-2181
SELECT - + 95 * col2 + ( col2 * col0 ) + 76 / - col0 AS col2 FROM tab0 AS cor0
----
-2346
-492
-62
query I rowsort
SELECT DISTINCT - col0 + 30 AS col2 FROM tab2 AS cor0
----
-48
-49
23
query I rowsort
SELECT col2 * 67 * + cor0.col1 FROM tab0 AS cor0
----
190146
499954
6499
query I rowsort
SELECT + col0 + + 68 AS col1 FROM tab0 AS cor0
----
103
157
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-2185
SELECT - - col0 + col0 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
3
70
86
skipif mysql # not compatible
query I rowsort label-2185
SELECT - - col0 + col0 / cor0.col1 AS col0 FROM tab1 AS cor0
----
3
70
86
query I rowsort
SELECT ALL - col2 * 88 AS col2 FROM tab0 AS cor0
----
-2904
-7216
-88
query I rowsort
SELECT DISTINCT 38 * + tab1.col2 * 96 AS col2 FROM tab1
----
196992
207936
350208
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 col1 FROM tab0, tab1, tab2 AS cor0
----
63
query I rowsort
SELECT + col0 + + col2 * 95 AS col0 FROM tab0 AS cor0
----
130
3159
7879
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 67 col1 FROM tab0 AS cor0
----
5762
6097
6499
onlyif mysql # use DIV operator for integer division
query I rowsort label-2191
SELECT DISTINCT - + col2 DIV ( ( col2 ) ) FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT - + col2 / ( ( col2 ) ) FROM tab0 AS cor0
----
-1
query I rowsort
SELECT ALL + - col0 * - ( + 35 ) AS col1 FROM tab1 AS cor0
----
105
2240
2800
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2193
SELECT - - col2 * CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-2193
SELECT - - col2 * CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-2194
SELECT - + col2 DIV col0 FROM tab2 cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-2194
SELECT - + col2 / col0 FROM tab2 cor0
----
-3
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2195
SELECT DISTINCT - - col2 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-2195
SELECT DISTINCT - - col2 / cor0.col0 AS col1 FROM tab2 AS cor0
----
0
3
query I rowsort
SELECT - + 48 * 25 FROM tab1 AS cor0
----
-1200
-1200
-1200
query I rowsort
SELECT + - col0 + col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT DISTINCT - col1 * - 52 AS col0 FROM tab2
----
1612
3068
884
onlyif mysql # use DIV operator for integer division
query I rowsort label-2199
SELECT - - cor0.col1 DIV 8 AS col2 FROM tab0 AS cor0
----
10
11
12
skipif mysql # not compatible
query I rowsort label-2199
SELECT - - cor0.col1 / 8 AS col2 FROM tab0 AS cor0
----
10
11
12
query I rowsort
SELECT + 16 * + col0 AS col0 FROM tab2 AS cor0
----
112
1248
1264
onlyif mysql # use DIV operator for integer division
query I rowsort label-2201
SELECT col0 DIV - ( - 34 ) + + col2 * CAST( col2 AS SIGNED ) AS col2 FROM tab0
----
1089
2
6726
skipif mysql # not compatible
query I rowsort label-2201
SELECT col0 / - ( - 34 ) + + col2 * CAST ( col2 AS INTEGER ) AS col2 FROM tab0
----
1089
2
6726
query I rowsort
SELECT ALL 39 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229
query I rowsort
SELECT + + 4 + + col0 AS col1 FROM tab2 AS cor0
----
11
82
83
query I rowsort
SELECT DISTINCT - + 42 * - cor0.col0 + col1 FROM tab2 AS cor0
----
325
3335
query I rowsort
SELECT ALL col1 * - cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT ALL - col2 * - cor0.col1 + + 55 * + ( + col2 * - cor0.col1 ) + - 76 FROM tab1 AS cor0
----
-30856
-67468
-75892
query I rowsort
SELECT ALL + col0 * - cor0.col2 + - 57 * 78 - - col1 FROM tab1 AS cor0
----
-12113
-4582
-8084
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 * + col0 col2 FROM tab1 AS cor0
----
141
3008
3760
query I rowsort
SELECT DISTINCT - + col2 * + col1 + - ( - 35 ) * + col2 FROM tab1 AS cor0
----
1425
2112
486
query I rowsort
SELECT ALL + + col0 + cor0.col0 + - 29 FROM tab2 AS cor0
----
-15
127
129
query I rowsort
SELECT ALL + ( col1 ) + 34 - - col2 FROM tab2 AS cor0
----
119
89
92
query I rowsort
SELECT DISTINCT + ( col0 ) + - col1 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL - - 47 + + col0 FROM tab2 AS cor0
----
125
126
54
query I rowsort
SELECT ALL + 63 - - 13 AS col1 FROM tab1
----
76
76
76
query I rowsort
SELECT ALL - col2 * col0 * col2 + 41 FROM tab2 AS cor0
----
-114035
-5062
-52687
query I rowsort
SELECT DISTINCT ( col2 ) + 29 + + col2 * + col1 AS col0 FROM tab0 cor0
----
127
2900
7573
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2217
SELECT DISTINCT + + col2 * col2 + - CAST( 75 * col0 AS SIGNED ) + + col1 col2 FROM tab1 AS cor0
----
-1541
2717
3229
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT + + col2 * col2 + - CAST ( 75 * col0 AS INTEGER ) + + col1 col2 FROM tab1 AS cor0
----
-1541
2717
3229
query I rowsort
SELECT - 51 + - col1 AS col1 FROM tab2 AS cor0
----
-110
-68
-82
query I rowsort
SELECT ALL - 90 + col0 FROM tab2 AS cor0
----
-11
-12
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-2220
SELECT DISTINCT + + col0 * col2 DIV - 6 + 23 FROM tab2 AS cor0
----
-315
-477
-8
skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT + + col0 * col2 / - 6 + 23 FROM tab2 AS cor0
----
-315
-477
-8
query I rowsort
SELECT DISTINCT - 96 * - col1 + - col2 * col2 FROM tab2 AS cor0
----
188
2247
4988
query I rowsort
SELECT ALL 26 * + col2 AS col1 FROM tab2
----
676
702
988
query I rowsort
SELECT DISTINCT - 14 AS col1 FROM tab0, tab2 AS cor0
----
-14
query I rowsort
SELECT ALL + 29 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-57
-62
-68
query I rowsort
SELECT ALL 18 FROM tab2, tab1 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT DISTINCT 15 * col2 FROM tab2
----
390
405
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * cor0.col1 + - col1 * 71 col0 FROM tab1 cor0
----
-1768
-70
117
query I rowsort
SELECT - ( col0 ) + ( col2 ) * col1 AS col1 FROM tab1 cor0
----
1168
1401
506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + - cor0.col1 col2 FROM tab0 cor0
----
-110
-132
-180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2230
SELECT + + col0 * CAST( - 7 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-49
-546
-553
skipif mysql # not compatible
query I rowsort label-2230
SELECT + + col0 * CAST ( - 7 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-49
-546
-553
onlyif mysql # use DIV operator for integer division
query I rowsort label-2231
SELECT + + col1 DIV + col1 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-2231
SELECT + + col1 / + col1 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
2
34
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 * 22 col1 FROM tab2 AS cor0
----
154
1716
1738
query I rowsort
SELECT 67 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 09fa7af42010457bb3c6ffd0dfea3bc8
onlyif mysql # use DIV operator for integer division
query I rowsort label-2234
SELECT - col2 + + 6 DIV col2 FROM tab0 AS cor0
----
-33
-82
5
skipif mysql # not compatible
query I rowsort label-2234
SELECT - col2 + + 6 / col2 FROM tab0 AS cor0
----
-33
-82
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-2235
SELECT - col2 DIV - 92 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2235
SELECT - col2 / - 92 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - + cor0.col2 * - ( + cor0.col2 ) FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL + col1 * - col2 * col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT + col0 * col1 - + ( col0 + + col0 ) FROM tab2 AS cor0
----
1185
203
4446
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 * + col2 + col0 * - col2 col2 FROM tab0 AS cor0
----
3360
656820
67320
query I rowsort
SELECT - - col0 + + 86 AS col0 FROM tab2 AS cor0
----
164
165
93
query I rowsort
SELECT 9 * + col1 FROM tab0 cor0
----
774
819
873
onlyif mysql # use DIV operator for integer division
query I rowsort label-2242
SELECT - col1 DIV + col1 + - col1 * + 87 FROM tab1 AS cor0
----
-1132
-2263
-871
skipif mysql # not compatible
query I rowsort label-2242
SELECT - col1 / + col1 + - col1 * + 87 FROM tab1 AS cor0
----
-1132
-2263
-871
query I rowsort
SELECT + col0 + + tab1.col1 * tab1.col0 * col0 FROM tab1
----
237
41024
83280
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2244
SELECT - CAST( NULL AS SIGNED ) / + ( + cor0.col1 ) + 83 + cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2244
SELECT - CAST ( NULL AS INTEGER ) / + ( + cor0.col1 ) + 83 + cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - 23 * - col1 FROM tab1 AS cor0
----
-230
-299
-598
query I rowsort
SELECT ( ( - col2 ) ) - col0 * - col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT - col1 * 52 + col2 FROM tab1 cor0
----
-1298
-463
-580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2248
SELECT + CAST( 56 AS SIGNED ) FROM tab0 cor0
----
56
56
56
skipif mysql # not compatible
query I rowsort label-2248
SELECT + CAST ( 56 AS INTEGER ) FROM tab0 cor0
----
56
56
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-2249
SELECT + col0 * + col0 DIV col0 + - 88 + 25 AS col1 FROM tab0 AS cor0
----
-28
-39
26
skipif mysql # not compatible
query I rowsort label-2249
SELECT + col0 * + col0 / col0 + - 88 + 25 AS col1 FROM tab0 AS cor0
----
-28
-39
26
query I rowsort
SELECT ALL - ( col0 ) + + cor0.col2 AS col1 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT - + tab2.col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
onlyif mysql # use DIV operator for integer division
query I rowsort label-2252
SELECT col1 DIV - ( col2 ) col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2252
SELECT col1 / - ( col2 ) col2 FROM tab1
----
0
0
0
query I rowsort
SELECT col1 * - 92 * 66 FROM tab2
----
-103224
-188232
-358248
query I rowsort
SELECT DISTINCT - + 50 * col2 + + cor0.col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-1133
-557
3302
query I rowsort
SELECT DISTINCT - + ( + 69 ) AS col2 FROM tab2 AS cor0
----
-69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 * - col1 + col0 * - col2 col0 FROM tab0 AS cor0
----
-229
-7480
-964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 32 * col2 col1 FROM tab2 AS cor0
----
-1216
-832
-864
onlyif mysql # use DIV operator for integer division
query I rowsort label-2258
SELECT DISTINCT + cor0.col1 DIV + col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT + cor0.col1 / + col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + 57 * col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
1508
1566
2204
query I rowsort
SELECT DISTINCT col1 + cor0.col1 * + col2 AS col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT + - 30 FROM tab2 cor0
----
-30
query I rowsort
SELECT DISTINCT 5 * 99 + - col2 * - tab1.col2 FROM tab1
----
3411
3744
9711
query I rowsort
SELECT ALL col1 + + ( + cor0.col0 ) * - col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL - col1 * col1 - - col1 FROM tab2
----
-272
-3422
-930
onlyif mysql # use DIV operator for integer division
query I rowsort label-2265
SELECT + col1 DIV - ( + 31 ) FROM tab2
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-2265
SELECT + col1 / - ( + 31 ) FROM tab2
----
-1
-1
0
query I rowsort
SELECT + - col1 + 90 FROM tab1 AS cor0
----
64
77
80
query I rowsort
SELECT - col2 * cor0.col2 + ( col1 ) AS col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT ALL + col1 * 97 + + col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
8461
9000
9507
query I rowsort
SELECT col2 + cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT ALL + cor0.col2 + + col1 * col2 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-2271
SELECT - + col1 DIV - ( + col1 ) AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2271
SELECT - + col1 / - ( + col1 ) AS col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + cor0.col2 + ( - col1 + + col2 ) AS col0 FROM tab1 cor0
----
104
179
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2273
SELECT DISTINCT + col1 DIV - CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT + col1 / - CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2274
SELECT DISTINCT + cor0.col0 * 28 * - col0 + - cor0.col1 DIV 98 AS col2 FROM tab0 AS cor0
----
-16128
-221788
-34300
skipif mysql # not compatible
query I rowsort label-2274
SELECT DISTINCT + cor0.col0 * 28 * - col0 + - cor0.col1 / 98 AS col2 FROM tab0 AS cor0
----
-16128
-221788
-34300
query I rowsort
SELECT - col0 + 43 * col0 AS col2 FROM tab1 AS cor0
----
126
2688
3360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2276
SELECT DISTINCT + cor0.col2 * CAST( NULL AS SIGNED ) * + col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2276
SELECT DISTINCT + cor0.col2 * CAST ( NULL AS INTEGER ) * + col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - col1 + + col2 * - col1 AS col1 FROM tab1 cor0
----
-1261
-1430
-580
query I rowsort
SELECT - 59 * col1 + col0 FROM tab0
----
-5050
-5280
-5688
query I rowsort
SELECT - col2 - + col0 AS col2 FROM tab0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 14 col2 FROM tab0 AS cor0
----
103
38
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2281
SELECT - col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2281
SELECT - col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col1 * 34 AS col2 FROM tab2 AS cor0
----
-1054
-2006
-578
query I rowsort
SELECT ALL + - col0 + + ( - 24 ) FROM tab2 AS cor0
----
-102
-103
-31
query I rowsort
SELECT ALL + + col2 + - 76 AS col2 FROM tab1 AS cor0
----
-19
-22
20
query I rowsort
SELECT 47 + 89 FROM tab0, tab0 AS cor0
----
9 values hashing to 241ddcc97f622e1fcc14bd3c6a5bb6f4
query I rowsort
SELECT - + cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT col0 + 82 FROM tab1
----
146
162
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-2288
SELECT - col2 + - col1 DIV + col0 FROM tab2 AS cor0
----
-26
-31
-38
skipif mysql # not compatible
query I rowsort label-2288
SELECT - col2 + - col1 / + col0 FROM tab2 AS cor0
----
-26
-31
-38
query I rowsort
SELECT DISTINCT - col0 + 81 * - cor0.col2 * + col0 FROM tab0 AS cor0
----
-2870
-591227
-64176
query I rowsort
SELECT DISTINCT + col1 + + cor0.col0 * 66 * col2 AS col2 FROM tab0 AS cor0
----
2407
481759
52358
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2291
SELECT ALL col0 + + col2 - + CAST( NULL AS SIGNED ) * col1 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-2291
SELECT ALL col0 + + col2 - + CAST ( NULL AS INTEGER ) * col1 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2292
SELECT DISTINCT col1 * col1 + - CAST( - col2 * + col2 AS SIGNED ) FROM tab1 cor0
----
3349
3592
9385
skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT col1 * col1 + - CAST ( - col2 * + col2 AS INTEGER ) FROM tab1 cor0
----
3349
3592
9385
query I rowsort
SELECT - col0 * 98 FROM tab1
----
-294
-6272
-7840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2294
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab1 cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT 29 * - col2 + + col2 FROM tab1
----
-1512
-1596
-2688
query I rowsort
SELECT + col1 - tab2.col1 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT 22 * tab2.col1 + col1 * + tab2.col1 FROM tab2
----
1643
4779
663
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT + 6 + + col0 * - col2 FROM tab0
----
-29
-7292
-786
query I rowsort
SELECT DISTINCT - 68 * col2 AS col1 FROM tab1
----
-3672
-3876
-6528
onlyif mysql # use DIV operator for integer division
query I rowsort label-2301
SELECT - tab0.col0 + col0 DIV CAST( + 27 AS SIGNED ) FROM tab0
----
-24
-34
-86
skipif mysql # not compatible
query I rowsort label-2301
SELECT - tab0.col0 + col0 / CAST ( + 27 AS INTEGER ) FROM tab0
----
-24
-34
-86
query I rowsort
SELECT + 80 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91
query I rowsort
SELECT + - 86 * col2 + - col0 * 26 AS col0 FROM tab0 cor0
----
-3462
-9366
-996
query I rowsort
SELECT DISTINCT + + cor0.col1 + + col2 AS col0 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + 11 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
11
query I rowsort
SELECT DISTINCT - - col2 * col2 * cor0.col2 AS col0 FROM tab2 cor0
----
17576
19683
54872
onlyif mysql # use DIV operator for integer division
query I rowsort label-2307
SELECT ALL col2 + col0 DIV - col2 AS col1 FROM tab1
----
54
56
96
skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL col2 + col0 / - col2 AS col1 FROM tab1
----
54
56
96
query I rowsort
SELECT ALL - col2 * - tab2.col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT col2 + col2 * - 4 * 5 FROM tab1 AS cor0
----
-1026
-1083
-1824
query I rowsort
SELECT ALL - ( col1 ) + + ( col1 ) * col1 AS col2 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT - 98 * - col2 AS col2 FROM tab2 cor0
----
2548
2646
3724
query I rowsort
SELECT DISTINCT 63 * col1 AS col0 FROM tab1 cor0
----
1638
630
819
query I rowsort
SELECT + + 78 * - col0 + col2 FROM tab2 AS cor0
----
-519
-6058
-6124
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2314
SELECT DISTINCT + - col0 * - ( ( + col0 ) ) + + CAST( 86 * cor0.col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
11158
2715
7703
skipif mysql # not compatible
query I rowsort label-2314
SELECT DISTINCT + - col0 * - ( ( + col0 ) ) + + CAST ( 86 * cor0.col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
11158
2715
7703
query I rowsort
SELECT ALL + col2 * + 53 AS col1 FROM tab2 AS cor0
----
1378
1431
2014
onlyif mysql # use DIV operator for integer division
query I rowsort label-2316
SELECT ALL - col1 DIV 3 AS col2 FROM tab0 AS cor0
----
-28
-30
-32
skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL - col1 / 3 AS col2 FROM tab0 AS cor0
----
-28
-30
-32
query I rowsort
SELECT DISTINCT ( 67 ) AS col2 FROM tab2, tab2 AS cor0
----
67
query I rowsort
SELECT - cor0.col1 + 95 FROM tab1 AS cor0
----
69
82
85
query I rowsort
SELECT + cor0.col2 * + 20 FROM tab2 AS cor0
----
520
540
760
query I rowsort
SELECT 80 * + ( + col1 ) AS col1 FROM tab1
----
1040
2080
800
query I rowsort
SELECT + 55 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT DISTINCT 38 * + 38 AS col2 FROM tab2
----
1444
query I rowsort
SELECT col0 * 0 + col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + + 46 * col1 + + col1 FROM tab1 AS cor0
----
1222
470
611
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2325
SELECT DISTINCT CAST( NULL AS SIGNED ) * 10 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 10 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - + 29 + col2 FROM tab1 AS cor0
----
25
28
67
query I rowsort
SELECT - 7 AS col2 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466
query I rowsort
SELECT DISTINCT - col1 + 28 AS col0 FROM tab2
----
-3
-31
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-2329
SELECT + col2 * ( col0 + 92 ) DIV 4 FROM tab0
----
31
3710
957
skipif mysql # not compatible
query I rowsort label-2329
SELECT + col2 * ( col0 + 92 ) / 4 FROM tab0
----
31
3710
957
query I rowsort
SELECT - ( + 8 ) AS col0 FROM tab1
----
-8
-8
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-2331
SELECT ( - 20 ) DIV col2 FROM tab0
----
-20
0
0
skipif mysql # not compatible
query I rowsort label-2331
SELECT ( - 20 ) / col2 FROM tab0
----
-20
0
0
query I rowsort
SELECT ALL - col0 * + 48 FROM tab2 AS cor0
----
-336
-3744
-3792
onlyif mysql # use DIV operator for integer division
query I rowsort label-2333
SELECT DISTINCT + + CAST( - cor0.col0 AS SIGNED ) DIV col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT + + CAST ( - cor0.col0 AS INTEGER ) / col1 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2334
SELECT col2 * col0 * + cor0.col1 + col0 DIV col2 FROM tab1 AS cor0
----
36481
4212
99840
skipif mysql # not compatible
query I rowsort label-2334
SELECT col2 * col0 * + cor0.col1 + col0 / col2 FROM tab1 AS cor0
----
36481
4212
99840
query I rowsort
SELECT ALL - col1 * - col1 * + col0 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT 84 * - 68 FROM tab1
----
-5712
-5712
-5712
query I rowsort
SELECT - + ( col2 ) + - col0 AS col1 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL + 49 + + 49 * + tab1.col1 + col1 * + col2 FROM tab1
----
1109
1934
2727
query I rowsort
SELECT + ( + cor0.col1 ) * + col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - col2 + - ( - col2 * - 91 ) FROM tab0 AS cor0
----
-3036
-7544
-92
query I rowsort
SELECT ALL + 30 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 * col1 col2 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT ALL 98 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
onlyif mysql # use DIV operator for integer division
query I rowsort label-2344
SELECT ALL col2 + tab1.col1 DIV + col1 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL col2 + tab1.col1 / + col1 FROM tab1
----
55
58
97
query I rowsort
SELECT - 32 + col1 AS col1 FROM tab0
----
54
59
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2346
SELECT ALL col0 * + col2 + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL col0 * + col2 + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL tab2.col1 * + col0 + 32 FROM tab2
----
1375
249
4634
query I rowsort
SELECT DISTINCT - + col0 + col2 AS col1 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT - - cor0.col1 + + col0 * + 51 * 5 AS col2 FROM tab2 AS cor0
----
1816
19949
20162
query I rowsort
SELECT ALL + cor1.col1 AS col0 FROM tab0, tab2, tab0 cor0, tab1 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
onlyif mysql # use DIV operator for integer division
query I rowsort label-2351
SELECT DISTINCT 18 DIV 66 AS col2 FROM tab0, tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT 18 / 66 AS col2 FROM tab0, tab0 AS cor0
----
0
query I rowsort
SELECT - + col2 * + 52 FROM tab0 AS cor0
----
-1716
-4264
-52
query I rowsort
SELECT ( - 28 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115
query I rowsort
SELECT - col1 * col2 + 21 * - cor0.col0 FROM tab0 AS cor0
----
-3342
-832
-9331
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2355
SELECT cor0.col1 * - CAST( NULL AS SIGNED ) + + 96 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2355
SELECT cor0.col1 * - CAST ( NULL AS INTEGER ) + + 96 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - cor0.col1 + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + cor0.col1 - 38 * col1 * col0 FROM tab0 AS cor0
----
-128913
-307671
-78346
query I rowsort
SELECT - - col2 + ( col0 + col2 ) AS col1 FROM tab2 AS cor0
----
130
155
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 - - col0 * - 23 col1 FROM tab2 AS cor0
----
-134
-1768
-1779
query I rowsort
SELECT DISTINCT + col1 - + col0 * 49 FROM tab1
----
-121
-3126
-3907
onlyif mysql # use DIV operator for integer division
query I rowsort label-2361
SELECT + col1 * 64 + col0 DIV col0 + + col1 DIV col0 AS col2 FROM tab1
----
1673
641
833
skipif mysql # not compatible
query I rowsort label-2361
SELECT + col1 * 64 + col0 / col0 + + col1 / col0 AS col2 FROM tab1
----
1673
641
833
query I rowsort
SELECT - tab2.col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT DISTINCT - tab1.col0 * + 10 AS col1 FROM tab1
----
-30
-640
-800
query I rowsort
SELECT + tab2.col2 * ( tab2.col0 ) AS col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT col1 * 92 + 67 * - col0 - - col1 FROM tab2
----
-3712
2414
261
query I rowsort
SELECT + - cor0.col1 * + ( - 32 * cor0.col2 ) FROM tab0 AS cor0
----
238784
3104
90816
query I rowsort
SELECT col0 - + col2 * col0 * 71 FROM tab1 AS cor0
----
-11499
-258944
-545200
query I rowsort
SELECT ALL + cor0.col2 * ( col0 * - cor0.col0 + + col1 ) FROM tab2 AS cor0
----
-156650
-236512
-486
onlyif mysql # use DIV operator for integer division
query I rowsort label-2369
SELECT DISTINCT + cor0.col2 DIV - col1 + col2 AS col2 FROM tab2 AS cor0
----
26
27
36
skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT + cor0.col2 / - col1 + col2 AS col2 FROM tab2 AS cor0
----
26
27
36
query I rowsort
SELECT + 4 * + col1 + + col0 * cor0.col2 FROM tab1 AS cor0
----
266
3688
7732
query I rowsort
SELECT + 37 + - col2 * col1 * ( + ( + cor0.col1 ) ) FROM tab2 AS cor0
----
-10945
-25910
-90469
onlyif mysql # use DIV operator for integer division
query I rowsort label-2372
SELECT ALL cor0.col0 DIV - col0 + col0 + col2 AS col1 FROM tab1 AS cor0
----
120
175
56
skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL cor0.col0 / - col0 + col0 + col2 AS col1 FROM tab1 AS cor0
----
120
175
56
query I rowsort
SELECT + 41 * + 92 + - col0 FROM tab2 cor0
----
3693
3694
3765
query I rowsort
SELECT - ( - col1 ) * col0 - col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT ALL - cor0.col1 + - col2 * + col2 + col1 * 58 FROM tab1 cor0
----
-1434
-2679
-8475
query I rowsort
SELECT - tab0.col1 * 18 AS col2 FROM tab0
----
-1548
-1638
-1746
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - cor0.col2 col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT 72 + + 88 AS col2 FROM tab0 AS cor0
----
160
query I rowsort
SELECT + col2 * 85 AS col1 FROM tab2 AS cor0
----
2210
2295
3230
query I rowsort
SELECT DISTINCT col0 + - cor0.col1 - + col1 FROM tab2 AS cor0
----
-40
-55
45
query I rowsort
SELECT 11 - col1 * col2 * col1 AS col1 FROM tab0 AS cor0
----
-244057
-679031
-9398
query I rowsort
SELECT ALL + 52 * - col1 * col2 + col0 AS col1 FROM tab2 cor0
----
-33513
-43517
-79690
query I rowsort
SELECT 42 * - cor0.col1 FROM tab1 AS cor0
----
-1092
-420
-546
onlyif mysql # use DIV operator for integer division
query I rowsort label-2384
SELECT + col0 * col0 + cor0.col2 * + col1 + col0 DIV + col0 col2 FROM tab1 AS cor0
----
1414
4667
7649
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2384
SELECT + col0 * col0 + cor0.col2 * + col1 + col0 / + col0 col2 FROM tab1 AS cor0
----
1414
4667
7649
onlyif mysql # use DIV operator for integer division
query I rowsort label-2385
SELECT ALL cor0.col0 DIV + col1 AS col0 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL cor0.col0 / + col1 AS col0 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT ALL + 22 * - col1 * + 87 + col0 FROM tab0 AS cor0
----
-164580
-174085
-185623
query I rowsort
SELECT - col0 + col1 * col1 AS col1 FROM tab0 cor0
----
7372
8192
9374
query I rowsort
SELECT - ( col1 ) * ( - col1 ) AS col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT - col2 + + col0 + + col0 * - 94 FROM tab0 cor0
----
-2265
-3256
-8359
query I rowsort
SELECT ALL col0 + ( col1 ) AS col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT - col2 + - ( col2 ) AS col1 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT ALL - col1 * - ( + 54 ) AS col1 FROM tab0 AS cor0
----
4644
4914
5238
query I rowsort
SELECT 33 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2394
SELECT ALL col1 DIV 72 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL col1 / 72 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - + 25 + 49 FROM tab0 AS cor0
----
24
24
24
query I rowsort
SELECT + ( - 91 ) AS col2 FROM tab1 cor0
----
-91
-91
-91
query I rowsort
SELECT ALL - ( col1 ) * - col0 * + col0 FROM tab0 AS cor0
----
118825
49536
720811
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2398
SELECT - + CAST( NULL AS SIGNED ) * 87 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2398
SELECT - + CAST ( NULL AS INTEGER ) * 87 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 1 * col2 * + cor0.col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT ALL - - cor0.col2 + + col0 * + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2401
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * col1 col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2401
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * col1 col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - + 59 AS col1 FROM tab2 cor0
----
-59
query I rowsort
SELECT + 81 + col0 + col2 FROM tab0 cor0
----
117
138
252
query I rowsort
SELECT ALL ( 10 ) + cor0.col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1215
-566
-7911
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( cor0.col1 ) col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - + 36 + + 51 * col0 FROM tab1 AS cor0
----
117
3228
4044
query I rowsort
SELECT + col0 * + col2 + cor0.col2 + - 58 FROM tab1 AS cor0
----
158
3647
7718
query I rowsort
SELECT + 5 * col2 + col2 FROM tab1 AS cor0
----
324
342
576
query I rowsort
SELECT col1 + cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT ALL + + ( + 94 ) AS col1 FROM tab1 AS cor0
----
94
94
94
query I rowsort
SELECT col1 + col0 * + 7 AS col0 FROM tab2 cor0
----
570
605
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2412
SELECT DISTINCT + - 81 + cor0.col0 DIV 59 col2 FROM tab0 AS cor0
----
-80
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2412
SELECT DISTINCT + - 81 + cor0.col0 / 59 col2 FROM tab0 AS cor0
----
-80
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-2413
SELECT + col0 DIV - col2 AS col1 FROM tab0 cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-2413
SELECT + col0 / - col2 AS col1 FROM tab0 cor0
----
-1
-35
0
query I rowsort
SELECT - cor0.col2 + - col0 * + col0 AS col2 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT ALL - cor0.col0 * col0 * ( - col2 * - col0 ) FROM tab2 AS cor0
----
-12338352
-18735482
-9261
query I rowsort
SELECT 50 * 71 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 7100b2bac6d01f28c66aa1cef69f2ec0
query I rowsort
SELECT DISTINCT + + col2 + col1 * ( cor0.col2 + 53 ) AS col1 FROM tab0 AS cor0
----
12367
5239
7429
query I rowsort
SELECT + col2 * + ( + 13 ) - col1 AS col1 FROM tab2 AS cor0
----
279
320
477
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2419
SELECT col0 * CAST( - col0 * + cor0.col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-118825
-49536
-720811
skipif mysql # not compatible
query I rowsort label-2419
SELECT col0 * CAST ( - col0 * + cor0.col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-118825
-49536
-720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + cor0.col2 * + col0 col2 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ALL + cor0.col2 + cor0.col0 * + 97 FROM tab2 AS cor0
----
706
7592
7701
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2422
SELECT DISTINCT - - col1 - + CAST( + 64 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
22
27
33
skipif mysql # not compatible
query I rowsort label-2422
SELECT DISTINCT - - col1 - + CAST ( + 64 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
22
27
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-2423
SELECT DISTINCT col0 DIV col1 + col0 AS col2 FROM tab2 AS cor0
----
7
79
83
skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT col0 / col1 + col0 AS col2 FROM tab2 AS cor0
----
7
79
83
query I rowsort
SELECT col1 - + col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - cor0.col2 + col2 * 4 * - col0 FROM tab0 AS cor0
----
-141
-29274
-3201
query I rowsort
SELECT - col2 * + 98 * + col2 - + col2 FROM tab2 AS cor0
----
-141550
-66274
-71469
query I rowsort
SELECT col2 - - ( + tab2.col1 ) * col2 * ( - col0 ) FROM tab2
----
-119626
-50996
-5832
query I rowsort
SELECT ALL tab0.col1 + + 3 * + col2 FROM tab0
----
100
185
337
query I rowsort
SELECT ALL + col2 + - ( + col1 ) FROM tab2
----
-33
-4
21
query I rowsort
SELECT - col2 - col1 * ( - col2 + col1 ) FROM tab0
----
-4591
-901
-9313
query I rowsort
SELECT ALL - cor0.col2 + + ( + col0 ) AS col0 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2432
SELECT - col0 DIV col0 + col0 FROM tab2
----
6
77
78
skipif mysql # not compatible
query I rowsort label-2432
SELECT - col0 / col0 + col0 FROM tab2
----
6
77
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2433
SELECT DISTINCT - col0 + - col0 DIV + col2 FROM tab1
----
-3
-65
-80
skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT - col0 + - col0 / + col2 FROM tab1
----
-3
-65
-80
query I rowsort
SELECT - 72 + + col2 AS col2 FROM tab2 AS cor0
----
-34
-45
-46
query I rowsort
SELECT DISTINCT - 39 AS col0 FROM tab2, tab1 AS cor0
----
-39
query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT + tab1.col1 + + tab1.col1 * 49 FROM tab1
----
1300
500
650
query I rowsort
SELECT - col2 * ( - col0 ) AS col1 FROM tab2
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT - 67 + - col2 * - col1 + + ( 89 ) FROM tab0
----
119
2860
7484
query I rowsort
SELECT - tab1.col1 AS col0 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT + col2 * - col2 * + col2 AS col0 FROM tab2
----
-17576
-19683
-54872
onlyif mysql # use DIV operator for integer division
query I rowsort label-2443
SELECT DISTINCT - col2 DIV - 52 + cor0.col0 * 55 + - col0 AS col2 FROM tab2 cor0
----
378
4212
4266
skipif mysql # not compatible
query I rowsort label-2443
SELECT DISTINCT - col2 / - 52 + cor0.col0 * 55 + - col0 AS col2 FROM tab2 cor0
----
378
4212
4266
onlyif mysql # use DIV operator for integer division
query I rowsort label-2444
SELECT ALL - + 84 * col2 + cor0.col0 + ( ( cor0.col0 ) ) DIV + col2 FROM tab0 AS cor0
----
-14
-2748
-6798
skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL - + 84 * col2 + cor0.col0 + ( ( cor0.col0 ) ) / + col2 FROM tab0 AS cor0
----
-14
-2748
-6798
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2445
SELECT ALL - - CAST( NULL AS SIGNED ) * ( cor0.col2 ) + 2 + - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL - - CAST ( NULL AS INTEGER ) * ( cor0.col2 ) + 2 + - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - ( - 68 ) - col1 * col0 AS col0 FROM tab2 AS cor0
----
-1411
-285
-4670
query I rowsort
SELECT + + col0 * col2 + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT cor0.col0 + + col0 * - col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT + 7 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
7
query I rowsort
SELECT col2 * tab1.col2 + 14 FROM tab1
----
2930
3263
9230
query I rowsort
SELECT - - cor0.col0 + ( 70 + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
104
174
187
query I rowsort
SELECT DISTINCT + + col1 + 55 FROM tab1 AS cor0
----
65
68
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2453
SELECT ALL + col2 / CAST( NULL AS SIGNED ) + - 53 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL + col2 / CAST ( NULL AS INTEGER ) + - 53 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * ( - col2 ) + col2 * col1 * + cor0.col2 FROM tab2 cor0
----
22788
27550
41912
query I rowsort
SELECT - col1 * - ( + 30 ) FROM tab1 AS cor0
----
300
390
780
onlyif mysql # use DIV operator for integer division
query I rowsort label-2456
SELECT DISTINCT + col0 * 64 DIV - col1 AS col2 FROM tab1 AS cor0
----
-393
-409
-7
skipif mysql # not compatible
query I rowsort label-2456
SELECT DISTINCT + col0 * 64 / - col1 AS col2 FROM tab1 AS cor0
----
-393
-409
-7
query I rowsort
SELECT ALL + col0 * col0 * 46 + col0 AS col2 FROM tab1 AS cor0
----
188480
294480
417
query I rowsort
SELECT ALL - col0 + + 43 AS col0 FROM tab2 cor0
----
-35
-36
36
query I rowsort
SELECT - col1 * col2 - col1 AS col2 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT 98 + - col2 FROM tab1 AS cor0
----
2
41
44
query I rowsort
SELECT ALL - - col0 + + 74 * + col2 FROM tab1 AS cor0
----
3999
4282
7184
query I rowsort
SELECT + col0 * col2 * - col0 FROM tab2 cor0
----
-1323
-158184
-237158
query I rowsort
SELECT ALL + col0 + - 12 * + col1 FROM tab0 AS cor0
----
-1003
-1008
-1129
query I rowsort
SELECT - col1 * - col1 + - cor0.col1 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT + - 91 * - 82 + col2 FROM tab1 AS cor0
----
7516
7519
7558
query I rowsort
SELECT + - 37 AS col2 FROM tab0 AS cor0
----
-37
-37
-37
query I rowsort
SELECT 38 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 87 + tab2.col1 col0 FROM tab2
----
640
6845
6890
query I rowsort
SELECT ALL - - 58 + col2 AS col2 FROM tab2 cor0
----
84
85
96
query I rowsort
SELECT ALL + col2 * - col1 + col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT - 60 * col1 FROM tab2 AS cor0
----
-1020
-1860
-3540
query I rowsort
SELECT tab0.col1 * - col1 * col1 + - col0 * + col2 FROM tab0
----
-636848
-760869
-912708
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + col2 * col2 col0 FROM tab0
----
-1003
-6633
96
query I rowsort
SELECT + col0 + col1 * - ( col0 ) FROM tab2
----
-1264
-210
-4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-2475
SELECT - col0 * - col0 - col2 DIV + col0 AS col0 FROM tab1
----
-9
4096
6399
skipif mysql # not compatible
query I rowsort label-2475
SELECT - col0 * - col0 - col2 / + col0 AS col0 FROM tab1
----
-9
4096
6399
query I rowsort
SELECT DISTINCT col0 * - cor0.col0 * + cor0.col1 + + col2 AS col1 FROM tab2 AS cor0
----
-106059
-1492
-358930
query I rowsort
SELECT ALL 85 - col2 * - 30 AS col0 FROM tab2 cor0
----
1225
865
895
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 22 col2 FROM tab2 AS cor0
----
154
1716
1738
query I rowsort
SELECT col1 * col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
7429
8363
9410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - cor0.col2 * + 9 col0 FROM tab2 AS cor0
----
12996
6084
6561
query I rowsort
SELECT - + col1 * 11 AS col1 FROM tab1 cor0
----
-110
-143
-286
query I rowsort
SELECT ALL + - ( cor0.col1 ) * col1 + - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT ALL - col2 * col0 * col2 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT DISTINCT + 35 AS col2 FROM tab0, tab1 AS cor0
----
35
query I rowsort
SELECT DISTINCT + col0 + + cor0.col2 + + col1 AS col2 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT ALL cor1.col2 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL col0 * + col0 + - 37 * col2 FROM tab0
----
-645
1188
4887
query I rowsort
SELECT + col2 * + 25 + col0 FROM tab0 AS cor0
----
2139
60
849
query I rowsort
SELECT ALL + 57 + + col1 * + col2 FROM tab0
----
154
2895
7519
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 AS col0 FROM tab0 cor0
----
0
query I rowsort
SELECT 35 + col0 * 0 AS col2 FROM tab0 AS cor0
----
35
35
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-2492
SELECT ALL 42 + col0 * col0 DIV tab1.col2 AS col2 FROM tab1
----
108
113
42
skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL 42 + col0 * col0 / tab1.col2 AS col2 FROM tab1
----
108
113
42
query I rowsort
SELECT tab1.col1 * col0 + 82 + col0 * col1 FROM tab1
----
1362
2162
238
onlyif mysql # use DIV operator for integer division
query I rowsort label-2494
SELECT + tab0.col2 DIV + col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2494
SELECT + tab0.col2 / + col2 FROM tab0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT + - col2 + - col1 * col1 FROM tab0 AS cor0
----
-7429
-8363
-9410
query I rowsort
SELECT + col0 * col2 + col2 * col0 + cor0.col0 * - 78 FROM tab2 AS cor0
----
-158
-168
-2028
query I rowsort
SELECT - col2 * ( col0 * - col1 ) FROM tab0
----
3395
664118
68112
query I rowsort
SELECT cor0.col2 * col1 - - col1 * col2 FROM tab2 AS cor0
----
1292
1674
3068
onlyif mysql # use DIV operator for integer division
query I rowsort label-2500
SELECT DISTINCT + col0 + + 79 DIV - col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT + col0 + + 79 / - col1 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col0 + cor0.col0 col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT + cor0.col2 * col2 + - ( - col1 ) FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT col2 + - 7 AS col2 FROM tab1 cor0
----
47
50
89
query I rowsort
SELECT - - col1 + + 18 * col1 FROM tab0 cor0
----
1634
1729
1843
onlyif mysql # use DIV operator for integer division
query I rowsort label-2505
SELECT ALL + col2 + ( 91 ) DIV col0 AS col0 FROM tab2 AS cor0
----
27
39
40
skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL + col2 + ( 91 ) / col0 AS col0 FROM tab2 AS cor0
----
27
39
40
query I rowsort
SELECT ALL col1 + + col1 * 5 AS col1 FROM tab0 AS cor0
----
516
546
582
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + col1 col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL + - col1 + + col0 + - col2 FROM tab2 AS cor0
----
-51
-7
24
query I rowsort
SELECT col2 + col2 * + col1 AS col1 FROM tab1
----
1344
1458
627
query I rowsort
SELECT ALL + 74 * - col1 - + col2 FROM tab0 AS cor0
----
-6397
-6816
-7179
query I rowsort
SELECT col0 * - 58 AS col1 FROM tab2 AS cor0
----
-406
-4524
-4582
query I rowsort
SELECT DISTINCT - 82 * col0 FROM tab1 AS cor0
----
-246
-5248
-6560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 col1 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - 85 + - ( col0 ) AS col0 FROM tab2 AS cor0
----
-163
-164
-92
query I rowsort
SELECT - 15 * 57 FROM tab0 AS cor0
----
-855
-855
-855
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2516
SELECT DISTINCT CAST( 8 AS SIGNED ) - col0 * 29 FROM tab2 AS cor0
----
-195
-2254
-2283
skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT CAST ( 8 AS INTEGER ) - col0 * 29 FROM tab2 AS cor0
----
-195
-2254
-2283
query I rowsort
SELECT ALL + col1 * + col2 AS col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + + 79 - col1 FROM tab0 AS cor0
----
-12
-18
-7
query I rowsort
SELECT 82 * - col1 - - col2 FROM tab2 cor0
----
-1356
-2515
-4812
query I rowsort
SELECT DISTINCT - col2 * col0 + - col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT col1 * col0 + - ( 91 ) AS col1 FROM tab1 AS cor0
----
-13
549
949
query I rowsort
SELECT + col1 * col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
327
3507
988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + col0 col1 FROM tab0 cor0
----
-2
-62
query I rowsort
SELECT ALL col0 * col1 + + ( 54 ) FROM tab0 AS cor0
----
2118
3449
8153
query I rowsort
SELECT - + cor0.col1 * + col2 * - col0 AS col2 FROM tab1 AS cor0
----
36480
4212
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * - col1 col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + - cor0.col1 * cor0.col2 * col1 FROM tab2 AS cor0
----
-10982
-25947
-90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-2528
SELECT ALL - + col2 * col0 DIV + CAST( col0 * + col0 AS SIGNED ) + 28 * 85 AS col1 FROM tab1 AS cor0
----
2362
2379
2380
skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL - + col2 * col0 / + CAST ( col0 * + col0 AS INTEGER ) + 28 * 85 AS col1 FROM tab1 AS cor0
----
2362
2379
2380
query I rowsort
SELECT DISTINCT - + ( + col1 ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - tab2.col2 * - col2 * + col2 AS col1 FROM tab2
----
17576
19683
54872
query I rowsort
SELECT ( + 72 ) + + col0 AS col1 FROM tab1
----
136
152
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - ( col0 ) * - col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + col2 * col0 + - 64 * col1 + + col2 FROM tab1
----
-1448
3065
6944
query I rowsort
SELECT + cor0.col2 + - col1 * - col2 + + col1 FROM tab1 AS cor0
----
1357
1484
637
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2536
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * cor0.col2 / col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * cor0.col2 / col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + col1 + 64 AS col0 FROM tab0 AS cor0
----
150
155
161
query I rowsort
SELECT DISTINCT tab2.col0 * + cor0.col1 * - cor0.col1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 352e615a557292e4ab3457413829ecd2
query I rowsort
SELECT ALL ( - col2 ) * + col2 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + 27 FROM tab2, tab0 cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
query I rowsort
SELECT ALL + ( - 8 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e
query I rowsort
SELECT DISTINCT col0 + - 28 AS col1 FROM tab0 AS cor0
----
-4
61
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2543
SELECT ALL + col1 DIV col0 - col0 AS col1 FROM tab2 AS cor0
----
-3
-78
-79
skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL + col1 / col0 - col0 AS col1 FROM tab2 AS cor0
----
-3
-78
-79
query I rowsort
SELECT + - ( col0 ) + + col0 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + cor0.col1 * cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 16ae0e1090cb09b93854a4788f17716b
query I rowsort
SELECT - cor0.col1 + + col0 + col2 AS col1 FROM tab2 AS cor0
----
100
3
45
query I rowsort
SELECT 72 * + col1 FROM tab1 AS cor0
----
1872
720
936
query I rowsort
SELECT - + 23 * + col1 AS col2 FROM tab2 AS cor0
----
-1357
-391
-713
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2549
SELECT DISTINCT - col0 * - CAST( col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT - col0 * - CAST ( col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + + cor0.col2 * 10 * + col2 AS col0 FROM tab2 AS cor0
----
14440
6760
7290
query I rowsort
SELECT ALL ( + col2 * ( - tab0.col0 ) ) FROM tab0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 * tab1.col1 col1 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT + ( tab2.col2 ) AS col2 FROM tab2
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2554
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2555
SELECT col2 DIV col1 + col2 FROM tab1 AS cor0
----
103
56
62
skipif mysql # not compatible
query I rowsort label-2555
SELECT col2 / col1 + col2 FROM tab1 AS cor0
----
103
56
62
query I rowsort
SELECT DISTINCT - + col0 + + 21 + - col2 AS col1 FROM tab0 AS cor0
----
-15
-150
-36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2557
SELECT + CAST( NULL AS SIGNED ) + + 25 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2557
SELECT + CAST ( NULL AS INTEGER ) + + 25 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + ( + 44 ) * - cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 6417af374ff403fda9c8f49bb0b3529f
query I rowsort
SELECT DISTINCT - cor0.col0 * ( - col0 + - col0 ) AS col2 FROM tab1 AS cor0
----
12800
18
8192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2560
SELECT col1 * CAST( + col0 AS SIGNED ) * col1 + + 5 + - col2 * + cor0.col1 FROM tab2 AS cor0
----
22190
269989
5895
skipif mysql # not compatible
query I rowsort label-2560
SELECT col1 * CAST ( + col0 AS INTEGER ) * col1 + + 5 + - col2 * + cor0.col1 FROM tab2 AS cor0
----
22190
269989
5895
query I rowsort
SELECT ALL - + col1 * + 57 FROM tab1 AS cor0
----
-1482
-570
-741
query I rowsort
SELECT + col0 * col0 + - col2 AS col0 FROM tab1
----
-45
4039
6304
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - ( + 93 ) col2 FROM tab0
----
-2232
-3255
-8277
query I rowsort
SELECT ALL - + 24 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to ad9e2feda1bc3d52e1a836279e031a8b
query I rowsort
SELECT ALL + 50 + 67 * + col0 * - ( col0 ) FROM tab1 cor0
----
-274382
-428750
-553
query I rowsort
SELECT - + col2 * - ( col1 ) FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-2567
SELECT col2 DIV col1 + - 96 * + col0 DIV + tab2.col0 FROM tab2
----
-94
-96
-96
skipif mysql # not compatible
query I rowsort label-2567
SELECT col2 / col1 + - 96 * + col0 / + tab2.col0 FROM tab2
----
-94
-96
-96
query I rowsort
SELECT col2 - tab2.col1 * col1 FROM tab2
----
-251
-3455
-934
onlyif mysql # use DIV operator for integer division
query I rowsort label-2569
SELECT col2 DIV + col2 + + col2 * 94 AS col0 FROM tab0 AS cor0
----
3103
7709
95
skipif mysql # not compatible
query I rowsort label-2569
SELECT col2 / + col2 + + col2 * 94 AS col0 FROM tab0 AS cor0
----
3103
7709
95
query I rowsort
SELECT ALL + - col2 + + cor0.col1 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-2571
SELECT ( + col2 ) DIV - col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-2571
SELECT ( + col2 ) / - col0 FROM tab1
----
-1
-18
0
query I rowsort
SELECT + + 96 + + col2 FROM tab2 AS cor0
----
122
123
134
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2573
SELECT ALL 97 * cor0.col2 + CAST( NULL AS SIGNED ) + col0 * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL 97 * cor0.col2 + CAST ( NULL AS INTEGER ) + col0 * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 - col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT - - 8 + col0 * col1 FROM tab1 AS cor0
----
1048
648
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-2576
SELECT DISTINCT 51 DIV + col2 - - tab0.col2 FROM tab0
----
34
52
82
skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT 51 / + col2 - - tab0.col2 FROM tab0
----
34
52
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 * - tab1.col2 col2 FROM tab1
----
-3618
-3819
-6432
onlyif mysql # use DIV operator for integer division
query I rowsort label-2578
SELECT DISTINCT 78 DIV 34 col1 FROM tab0
----
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT 78 / 34 col1 FROM tab0
----
2
query I rowsort
SELECT + ( col1 + - col0 ) AS col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT DISTINCT 30 * tab2.col1 + col1 AS col2 FROM tab2
----
1829
527
961
query I rowsort
SELECT ALL - tab1.col1 + tab1.col0 * col0 FROM tab1
----
-17
4086
6387
query I rowsort
SELECT ( - col2 ) + 85 * col0 + - col2 FROM tab1
----
147
5326
6608
query I rowsort
SELECT - col0 + col1 * + 27 AS col1 FROM tab1 AS cor0
----
206
271
699
query I rowsort
SELECT - + 92 + + col2 FROM tab0 AS cor0
----
-10
-59
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 * col1 col2 FROM tab1 AS cor0
----
-1092
-420
-546
query I rowsort
SELECT ALL + - 50 * - col0 + 60 * col2 AS col2 FROM tab2 AS cor0
----
1970
5460
6230
query I rowsort
SELECT DISTINCT + 45 + + col1 AS col1 FROM tab0 AS cor0
----
131
136
142
query I rowsort
SELECT + 60 + + col0 + 49 * col0 AS col0 FROM tab1 AS cor0
----
210
3260
4060
query I rowsort
SELECT - col1 * + col2 * + col2 + col2 FROM tab0
----
-611802
-93621
-96
query I rowsort
SELECT DISTINCT - + col0 * col1 - col1 * col2 FROM tab0 AS cor0
----
-15561
-3492
-4902
onlyif mysql # use DIV operator for integer division
query I rowsort label-2591
SELECT DISTINCT - col2 * + cor0.col2 - - col0 DIV cor0.col2 FROM tab0 AS cor0
----
-1089
-6723
34
skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT - col2 * + cor0.col2 - - col0 / cor0.col2 FROM tab0 AS cor0
----
-1089
-6723
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - cor0.col0 col2 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT + col1 * - col1 + - col2 FROM tab2
----
-327
-3507
-988
query I rowsort
SELECT ALL col2 + + col1 * col0 AS col1 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT - - col2 * col0 + + col2 AS col1 FROM tab1 cor0
----
216
3705
7776
query I rowsort
SELECT ALL + col0 * cor0.col0 + col0 FROM tab0 AS cor0
----
1260
600
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-2597
SELECT col0 + cor0.col0 DIV cor0.col0 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-2597
SELECT col0 + cor0.col0 / cor0.col0 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT + col1 * col2 - + col1 * col0 * + col2 AS col1 FROM tab0 cor0
----
-3298
-65274
-656656
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 * col0 col1 FROM tab2
----
-343
-474552
-493039
query I rowsort
SELECT DISTINCT - + col1 + + col1 * + col2 * + cor0.col2 FROM tab1 AS cor0
----
119795
32480
75790
query I rowsort
SELECT + + 37 * col2 + cor0.col0 FROM tab2 cor0
----
1006
1040
1485
onlyif mysql # use DIV operator for integer division
query I rowsort label-2602
SELECT ALL + + col1 DIV cor0.col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2602
SELECT ALL + + col1 / cor0.col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ( col0 * col1 ) + col1 AS col1 FROM tab1
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-2604
SELECT ALL col2 * - col1 + - col1 * - cor0.col1 + cor0.col1 * + col0 DIV col0 col2 FROM tab1 AS cor0
----
-1066
-460
-702
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL col2 * - col1 + - col1 * - cor0.col1 + cor0.col1 * + col0 / col0 col2 FROM tab1 AS cor0
----
-1066
-460
-702
query I rowsort
SELECT ALL col2 * + col2 * - col0 + cor0.col0 * col1 FROM tab2 AS cor0
----
-112733
-48126
-4886
query I rowsort
SELECT DISTINCT + col1 * - col0 + - col2 + col2 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL tab2.col2 + + tab2.col0 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT col1 + col1 * + col2 * - col2 FROM tab1
----
-119795
-32480
-75790
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= col2
----
query I rowsort
SELECT + col0 + - tab1.col2 AS col1 FROM tab1
----
-16
-51
7
query I rowsort
SELECT DISTINCT tab0.col2 - + col1 * + tab0.col1 AS col0 FROM tab0
----
-7363
-8199
-9408
query III rowsort
SELECT ALL * FROM tab2 WHERE col1 + - col2 * col1 < ( NULL )
----
query I rowsort
SELECT col0 * - col2 + tab1.col2 AS col2 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT 6 * col0 FROM tab2 cor0
----
42
468
474
query I rowsort
SELECT ALL col2 + col1 * col1 AS col1 FROM tab2
----
327
3507
988
query I rowsort
SELECT col1 - + col0 * + col1 AS col2 FROM tab1
----
-1027
-52
-630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 + - col0 * tab0.col2 col0 FROM tab0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2619
SELECT ALL col1 DIV col0 + col1 FROM tab0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL col1 / col0 + col1 FROM tab0
----
89
92
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 + + cor0.col1 col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - col2 - col2 * col2 AS col1 FROM tab2
----
-1482
-702
-756
query I rowsort
SELECT DISTINCT tab2.col2 * col2 + - col0 FROM tab2
----
1365
598
722
query I rowsort
SELECT DISTINCT col2 * - col0 * - col0 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT ALL + col0 * col2 * col2 - col0 FROM tab1
----
207872
737200
8745
query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + col1 * - tab2.col1 )
----
query I rowsort
SELECT tab2.col0 * - tab2.col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT + col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col1 )
----
query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE ( NULL ) = ( col1 * + col1 / col2 )
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - col0 + - col2 + col0 )
----
query I rowsort
SELECT DISTINCT - col2 - - col0 AS col1 FROM tab2
----
-20
41
52
query I rowsort
SELECT ALL - col2 + + tab1.col1 * tab1.col0 AS col0 FROM tab1
----
24
583
944
query I rowsort
SELECT + col1 * - col1 + col1 * col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 * col0 * - col0 + + col0 / + col2 AS col1 FROM tab2 WHERE ( NULL ) IN ( col2 )
----
query I rowsort
SELECT - col0 * col2 + col2 AS col1 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE ( NULL ) = - col2 + col1 * col1
----
query I rowsort
SELECT DISTINCT cor1.col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
3
64
80
query I rowsort
SELECT 63 + col1 AS col2 FROM tab0 AS cor0
----
149
154
160
query I rowsort
SELECT DISTINCT - col2 + col2 + ( col0 ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - + 54 * + col2 FROM tab0 AS cor0
----
-1782
-4428
-54
query I rowsort
SELECT DISTINCT ( - tab0.col0 ) AS col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT 3 * col2 - - col1 * - col1 AS col0 FROM tab1
----
-514
119
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-2642
SELECT tab2.col2 DIV col0 + - 17 * + 27 AS col2 FROM tab2
----
-456
-459
-459
skipif mysql # not compatible
query I rowsort label-2642
SELECT tab2.col2 / col0 + - 17 * + 27 AS col2 FROM tab2
----
-456
-459
-459
query I rowsort
SELECT - + 44 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79
query I rowsort
SELECT col0 * + col1 + col1 AS col2 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT - col0 + col2 * col2 * 48 AS col2 FROM tab0
----
13
322663
52248
query I rowsort
SELECT ALL - tab1.col0 * + ( - 82 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 669f1d4f8fa3ee4e77110d388fdff94d
query I rowsort
SELECT ALL col0 * ( - 22 * col2 ) FROM tab1
----
-168960
-3564
-80256
query I rowsort
SELECT DISTINCT 76 AS col1 FROM tab0, tab2 cor0
----
76
query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NULL > NULL
----
query I rowsort
SELECT - col1 * 99 + col1 * - col0 AS col1 FROM tab2 AS cor0
----
-10443
-3026
-3286
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * 18 - cor0.col0 col1 FROM tab1 AS cor0
----
180
234
468
query I rowsort
SELECT ALL - + col1 * + col2 + + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 91 * - col2 col0 FROM tab2 AS cor0
----
2366
2457
3458
query I rowsort
SELECT - col1 + 19 FROM tab1 AS cor0
----
-7
6
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2655
SELECT + CAST( col0 AS SIGNED ) + col0 * cor0.col2 col2 FROM tab0 AS cor0
----
70
7387
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2655
SELECT + CAST ( col0 AS INTEGER ) + col0 * cor0.col2 col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT - ( col1 ) + - col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT + + ( col1 ) + col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT - col0 + + ( 45 * + col0 ) FROM tab1
----
132
2816
3520
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2659
SELECT DISTINCT tab2.col0 * CAST( 1 AS SIGNED ) * - col0 col2 FROM tab2
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT tab2.col0 * CAST ( 1 AS INTEGER ) * - col0 col2 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT - col1 * - col0 * tab1.col0 AS col1 FROM tab1
----
234
40960
83200
query I rowsort
SELECT col1 * col1 + - col0 * - col1 AS col1 FROM tab2 AS cor0
----
1178
1632
8083
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 + + col0 * - col0 * col1 col0 FROM tab1 AS cor0
----
-260
-40970
-83213
query I rowsort
SELECT - + col1 * 36 - cor0.col0 AS col1 FROM tab1 cor0
----
-424
-548
-939
query I rowsort
SELECT col0 * - 56 - + col1 AS col0 FROM tab1
----
-194
-3594
-4493
query I rowsort
SELECT ALL + col2 + 14 FROM tab2
----
40
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 8 * - col0 * col2 col0 FROM tab2 AS cor0
----
-1512
-16224
-24016
onlyif mysql # use DIV operator for integer division
query I rowsort label-2667
SELECT DISTINCT 60 DIV + 10 AS col0 FROM tab1 AS cor0
----
6
skipif mysql # not compatible
query I rowsort label-2667
SELECT DISTINCT 60 / + 10 AS col0 FROM tab1 AS cor0
----
6
query I rowsort
SELECT DISTINCT + + 59 * 96 AS col1 FROM tab2 AS cor0
----
5664
query I rowsort
SELECT DISTINCT + 17 * + cor0.col0 AS col1 FROM tab0, tab0 AS cor0
----
1513
408
595
query I rowsort
SELECT - col1 * + 47 + - col0 * - col0 AS col1 FROM tab1 AS cor0
----
-1213
3626
5789
query I rowsort
SELECT + - 74 * col1 * col1 + col1 AS col1 FROM tab2 AS cor0
----
-21369
-257535
-71083
query I rowsort
SELECT DISTINCT + - col2 + - col0 * col0 AS col2 FROM tab0 cor0
----
-1226
-609
-8003
query I rowsort
SELECT DISTINCT - 82 - col1 * - col0 FROM tab0 AS cor0
----
1982
3313
8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-2674
SELECT 31 DIV + col1 + col0 AS col0 FROM tab1 AS cor0
----
4
67
82
skipif mysql # not compatible
query I rowsort label-2674
SELECT 31 / + col1 + col0 AS col0 FROM tab1 AS cor0
----
4
67
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2675
SELECT ALL 50 + + col1 DIV col0 FROM tab2 AS cor0
----
50
50
54
skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL 50 + + col1 / col0 FROM tab2 AS cor0
----
50
50
54
query I rowsort
SELECT ( col0 ) + col0 AS col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL - col1 * + cor0.col2 * col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT col1 * - col2 + col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT 82 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT - ( + col0 + - col2 ) * - col1 FROM tab0
----
-774
3298
637
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 + + col1 * + col2 col1 FROM tab0
----
15561
3492
4902
query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col2 * 29 FROM tab1 AS cor0
----
1592
1663
2797
query I rowsort
SELECT - - col2 * ( + col0 ) AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL col0 * - col1 - - 42 FROM tab0 AS cor0
----
-2022
-3353
-8057
query I rowsort
SELECT + col0 + + ( ( col1 ) ) AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL col0 * + 56 + - 2 AS col0 FROM tab0 AS cor0
----
1342
1958
4982
query I rowsort
SELECT ALL + col2 * + cor0.col2 * col0 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT ALL col1 - 3 FROM tab0
----
83
88
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2689
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - cor0.col2 FROM tab2, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT - CAST ( NULL AS REAL ) - cor0.col2 FROM tab2, tab1 AS cor0
----
NULL
query I rowsort
SELECT col1 + - col1 - + 12 FROM tab0 AS cor0
----
-12
-12
-12
query I rowsort
SELECT DISTINCT + col1 - - col0 AS col0 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT col0 * - ( 10 * col2 ) FROM tab0 AS cor0
----
-350
-72980
-7920
onlyif mysql # use DIV operator for integer division
query I rowsort label-2693
SELECT + col2 DIV col1 AS col2 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2693
SELECT + col2 / col1 AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 * ( tab0.col2 ) AS col0 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT - col0 * - 23 FROM tab0 AS cor0
----
2047
552
805
query I rowsort
SELECT 43 * - ( + col0 ) * col2 FROM tab0 AS cor0
----
-1505
-313814
-34056
query I rowsort
SELECT + col1 * + 84 AS col2 FROM tab2 AS cor0
----
1428
2604
4956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( 92 * + col0 ) col1 FROM tab2
----
4508
559728
574172
query I rowsort
SELECT col0 + - ( - col1 ) AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT - tab2.col2 * col2 + col2 * col1 FROM tab2
----
-798
108
858
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2701
SELECT col1 * + CAST( NULL AS SIGNED ) * - ( col1 ) + tab0.col2 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2701
SELECT col1 * + CAST ( NULL AS INTEGER ) * - ( col1 ) + tab0.col2 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + + 12 FROM tab2
----
29
43
71
query I rowsort
SELECT 6 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
query I rowsort
SELECT ALL + - 67 * - col0 FROM tab1 AS cor0
----
201
4288
5360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2705
SELECT DISTINCT - + col0 * - col0 + CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT - + col0 * - col0 + CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
query I rowsort
SELECT DISTINCT + + cor0.col1 * col0 + - 49 AS col1 FROM tab2 AS cor0
----
1294
168
4553
query I rowsort
SELECT 41 + col0 AS col0 FROM tab1 cor0
----
105
121
44
query I rowsort
SELECT ALL + - 77 + + col2 FROM tab1 AS cor0
----
-20
-23
19
query I rowsort
SELECT DISTINCT col2 * col1 + - 14 FROM tab0 AS cor0
----
2824
7448
83
query I rowsort
SELECT ALL + + 65 * - col1 + 48 * cor0.col0 FROM tab1 AS cor0
----
-1546
2422
2995
query I rowsort
SELECT + 76 + + col0 FROM tab2 AS cor0
----
154
155
83
query I rowsort
SELECT DISTINCT - - 61 AS col2 FROM tab2 cor0
----
61
query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 + cor0.col2 * cor0.col1 + col0 FROM tab0 AS cor0
----
2070
253
97
query I rowsort
SELECT ALL col2 + ( col2 ) + tab2.col2 AS col2 FROM tab2
----
114
78
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-2715
SELECT ALL + 54 DIV col0 FROM tab2
----
0
0
7
skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL + 54 / col0 FROM tab2
----
0
0
7
query I rowsort
SELECT DISTINCT 30 + + col1 AS col1 FROM tab2 AS cor0
----
47
61
89
query I rowsort
SELECT - - ( col0 ) * col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - col1 * + col0 + 9 FROM tab2 AS cor0
----
-1334
-208
-4593
query I rowsort
SELECT DISTINCT - - cor0.col1 + col1 * - col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT col2 + - ( col1 * + col0 ) AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2721
SELECT ALL + ( col1 * - CAST( - col0 AS SIGNED ) ) FROM tab2
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL + ( col1 * - CAST ( - col0 AS INTEGER ) ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT 7 * + tab0.col0 AS col0 FROM tab0, tab2 AS cor0
----
168
245
623
query I rowsort
SELECT ALL + ( 40 ) FROM tab0, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
onlyif mysql # use DIV operator for integer division
query I rowsort label-2724
SELECT + col0 DIV + 71 + + col0 * + col2 * col2 + col2 col0 FROM tab2 AS cor0
----
114115
5130
52755
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2724
SELECT + col0 / + 71 + + col0 * + col2 * col2 + col2 col0 FROM tab2 AS cor0
----
114115
5130
52755
skipif mysql # not compatible
query I rowsort
SELECT - + col1 * CAST ( + 97 AS REAL ) AS col2 FROM tab0 AS cor0
----
-8342
-8827
-9409
query I rowsort
SELECT + col0 + 38 AS col2 FROM tab1 cor0
----
102
118
41
query I rowsort
SELECT ALL + + col0 * - col0 + col1 FROM tab0 AS cor0
----
-1128
-490
-7830
onlyif mysql # use DIV operator for integer division
query I rowsort label-2728
SELECT col1 + - 53 DIV - col1 + + col1 FROM tab2 AS cor0
----
118
37
63
skipif mysql # not compatible
query I rowsort label-2728
SELECT col1 + - 53 / - col1 + + col1 FROM tab2 AS cor0
----
118
37
63
query I rowsort
SELECT + 86 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
query I rowsort
SELECT - - col0 * 45 AS col1 FROM tab0 AS cor0
----
1080
1575
4005
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2731
SELECT DISTINCT + CAST( + col0 AS SIGNED ) * cor0.col0 - + cor0.col0 AS col2 FROM tab0 cor0
----
1190
552
7832
skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) * cor0.col0 - + cor0.col0 AS col2 FROM tab0 cor0
----
1190
552
7832
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2732
SELECT DISTINCT + + CAST( + col2 AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
109
67
80
skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT + + CAST ( + col2 AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 + + col0 * + cor0.col0 + + col1 AS col0 FROM tab2 AS cor0
----
1041
6547
9624
onlyif mysql # use DIV operator for integer division
query I rowsort label-2734
SELECT ALL col2 + + 85 DIV col2 col0 FROM tab0 AS cor0
----
35
83
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL col2 + + 85 / col2 col0 FROM tab0 AS cor0
----
35
83
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 col0 FROM tab2 cor0
----
38
38
38
query I rowsort
SELECT ALL - - ( - 18 ) + + col1 AS col2 FROM tab0 AS cor0
----
68
73
79
query I rowsort
SELECT - 59 * col1 + + col2 FROM tab1 cor0
----
-1480
-533
-671
query I rowsort
SELECT ( tab1.col2 ) * 92 AS col0 FROM tab1
----
4968
5244
8832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 * 96 + - cor0.col1 * - col2 + 55 col2 FROM tab0 AS cor0
----
201037
326072
785021
query I rowsort
SELECT ALL 38 + - col1 AS col2 FROM tab1 AS cor0
----
12
25
28
query I rowsort
SELECT DISTINCT 49 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
49
query I rowsort
SELECT - col1 * + col1 + 36 FROM tab0 AS cor0
----
-7360
-8245
-9373
query I rowsort
SELECT + + 40 * - col2 FROM tab0 AS cor0
----
-1320
-3280
-40
query I rowsort
SELECT - ( + col1 ) * + col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) + + col2 col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + col2 * + col0 + - cor0.col2 * ( col2 * - col2 ) FROM tab1 cor0
----
157626
188841
892416
query I rowsort
SELECT DISTINCT + + col2 * + 27 FROM tab2 AS cor0
----
1026
702
729
query I rowsort
SELECT - 89 + 59 FROM tab0 cor0
----
-30
-30
-30
query I rowsort
SELECT ALL + 82 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
3
4
75
query I rowsort
SELECT - col1 + - col0 + + cor0.col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - 15 AS col1 FROM tab1 cor0
----
-15
query I rowsort
SELECT DISTINCT 84 * col2 AS col1 FROM tab1
----
4536
4788
8064
query I rowsort
SELECT DISTINCT - 82 + - col2 * + col0 AS col1 FROM tab0 AS cor0
----
-117
-7380
-874
query I rowsort
SELECT ALL + 81 * - col0 FROM tab0 AS cor0
----
-1944
-2835
-7209
query I rowsort
SELECT col0 * ( + col0 ) AS col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT - + col2 - + ( - cor0.col2 ) FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 * - ( + col1 ) + + col1 * 93 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
1068
417
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 91 + col2 * + col0 - col2 col2 FROM tab2 AS cor0
----
10153
799
9100
query I rowsort
SELECT - col0 * col2 - col2 AS col0 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT - - col2 * - col1 + - 74 AS col0 FROM tab2 AS cor0
----
-1608
-720
-911
onlyif mysql # use DIV operator for integer division
query I rowsort label-2761
SELECT + cor0.col2 * cor0.col2 DIV 55 + col1 * col0 FROM tab2 AS cor0
----
1369
230
4614
skipif mysql # not compatible
query I rowsort label-2761
SELECT + cor0.col2 * cor0.col2 / 55 + col1 * col0 FROM tab2 AS cor0
----
1369
230
4614
query I rowsort
SELECT DISTINCT - col1 - + col2 * col2 AS col0 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT tab0.col0 + - ( + col2 ) + + ( 35 ) * col2 FROM tab0
----
1146
2877
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-2764
SELECT + - ( - col0 ) DIV cor0.col1 + ( + col2 ) * - col1 * - col1 FROM tab0 AS cor0
----
244068
679042
9409
skipif mysql # not compatible
query I rowsort label-2764
SELECT + - ( - col0 ) / cor0.col1 + ( + col2 ) * - col1 * - col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT ( ( col2 ) ) * ( - cor0.col0 * + col2 ) + + col1 * - col1 FROM tab0 AS cor0
----
-33532
-606717
-9444
query I rowsort
SELECT - col0 * 27 + + col2 FROM tab1 AS cor0
----
-1671
-2064
-27
query I rowsort
SELECT DISTINCT + tab2.col2 + 24 AS col2 FROM tab2
----
50
51
62
query I rowsort
SELECT - col0 * ( col2 ) * + col1 AS col2 FROM tab0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-2769
SELECT DISTINCT + col2 DIV col2 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT + col2 / col2 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-12
-25
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2770
SELECT ALL CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL 44 * col2 * col2 + - col0 * 56 * - col2 FROM tab0 cor0
----
2004
704544
92268
query I rowsort
SELECT - + 3 + 37 AS col2 FROM tab0 AS cor0
----
34
34
34
query I rowsort
SELECT 54 * 74 + col1 AS col1 FROM tab1 AS cor0
----
4006
4009
4022
query I rowsort
SELECT + + 56 + 44 AS col1 FROM tab2 AS cor0
----
100
100
100
query I rowsort
SELECT - col2 - 13 AS col1 FROM tab1 AS cor0
----
-109
-67
-70
query I rowsort
SELECT DISTINCT 27 + col2 AS col2 FROM tab0 cor0
----
109
28
60
query I rowsort
SELECT ALL 58 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 793ce5fda3f22b0a251dca7e8a07baed
query I rowsort
SELECT + col2 + + col1 * 6 AS col0 FROM tab0
----
549
583
628
query I rowsort
SELECT ALL 22 - cor1.col2 * - cor1.col2 AS col1 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 2a13fb761cc03cac0ac157103d566187
query I rowsort
SELECT 2 + col1 AS col0 FROM tab0
----
88
93
99
query I rowsort
SELECT ALL - + 53 AS col0 FROM tab0 cor0
----
-53
-53
-53
query I rowsort
SELECT DISTINCT - col0 + - col2 * col1 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT DISTINCT col2 * + cor0.col1 * col1 FROM tab0 AS cor0
----
244068
679042
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-2784
SELECT ALL col1 + col0 DIV + col2 FROM tab0 AS cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-2784
SELECT ALL col1 + col0 / + col2 FROM tab0 AS cor0
----
132
86
92
query I rowsort
SELECT DISTINCT - col2 + - 40 AS col1 FROM tab1 AS cor0
----
-136
-94
-97
query I rowsort
SELECT + col2 + + col2 * 4 AS col1 FROM tab0 AS cor0
----
165
410
5
query I rowsort
SELECT ALL + - col2 * col0 + + col1 AS col1 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2788
SELECT DISTINCT - col0 * 43 DIV col2 FROM tab1 AS cor0
----
-2
-35
-48
skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT - col0 * 43 / col2 FROM tab1 AS cor0
----
-2
-35
-48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2789
SELECT DISTINCT - + col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2789
SELECT DISTINCT - + col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - col1 * col2 + + 85 AS col0 FROM tab1 AS cor0
----
-1163
-1319
-485
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 89 - + col2 col2 FROM tab2 AS cor0
----
-89
query I rowsort
SELECT DISTINCT - cor0.col0 * col1 - + cor0.col0 AS col1 FROM tab0 cor0
----
-2088
-3430
-8188
query I rowsort
SELECT + col2 + - col0 * col0 AS col2 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT + tab0.col0 - col0 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + col2 * - ( col2 ) * + col2 AS col1 FROM tab0 AS cor0
----
-1
-35937
-551368
query I rowsort
SELECT DISTINCT cor0.col2 + + ( + col0 ) * col0 * cor0.col2 FROM tab0 cor0
----
1226
19041
649604
query I rowsort
SELECT DISTINCT + col2 * + 63 AS col1 FROM tab0
----
2079
5166
63
query I rowsort
SELECT - tab0.col2 * 70 AS col1 FROM tab0
----
-2310
-5740
-70
query I rowsort
SELECT 80 * tab0.col2 AS col2 FROM tab0
----
2640
6560
80
query I rowsort
SELECT + col2 * + ( + col1 ) + - cor0.col2 AS col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT + 22 * + 36 * col0 FROM tab2 cor0
----
5544
61776
62568
query I rowsort
SELECT DISTINCT + + cor0.col0 * - cor0.col2 + col0 FROM tab0 AS cor0
----
-7209
-768
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2803
SELECT + - CAST( NULL AS SIGNED ) + col1 * - col1 * 33 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2803
SELECT + - CAST ( NULL AS INTEGER ) + col1 * - col1 * 33 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + cor0.col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-2805
SELECT DISTINCT - + col2 DIV + cor0.col1 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-2805
SELECT DISTINCT - + col2 / + cor0.col1 FROM tab2 AS cor0
----
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2806
SELECT ALL col0 DIV col2 + col0 DIV col2 + col2 AS col0 FROM tab0 AS cor0
----
33
71
84
skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL col0 / col2 + col0 / col2 + col2 AS col0 FROM tab0 AS cor0
----
33
71
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-2807
SELECT DISTINCT - col0 DIV col1 - - ( + col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT - col0 / col1 - - ( + col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + col2 * + col2 - + 76 FROM tab1 AS cor0
----
2840
3173
9140
query I rowsort
SELECT 22 * + col0 FROM tab0 AS cor0
----
1958
528
770
query I rowsort
SELECT - col1 * ( col0 ) * + col1 + col0 AS col0 FROM tab2 AS cor0
----
-22752
-271440
-6720
query I rowsort
SELECT DISTINCT - + col0 + + col2 * - 40 FROM tab1 AS cor0
----
-2163
-2344
-3920
query I rowsort
SELECT ALL - col2 * + col0 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-2813
SELECT + cor0.col0 DIV cor0.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 2ee98119c78288c6cb10711ce24bf26c
skipif mysql # not compatible
query I rowsort label-2813
SELECT + cor0.col0 / cor0.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 2ee98119c78288c6cb10711ce24bf26c
query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab2 AS cor2, tab0 cor3
----
13122 values hashing to 753b837e3d667930b4b6e454dff8f620
query I rowsort
SELECT + - col2 + - 32 AS col2 FROM tab0 AS cor0
----
-114
-33
-65
query I rowsort
SELECT ALL + + col2 * col2 * col2 AS col1 FROM tab0 AS cor0
----
1
35937
551368
query I rowsort
SELECT ALL col1 + + col2 * col0 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT - col0 + col1 * ( - cor0.col2 ) FROM tab2 AS cor0
----
-1612
-725
-844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * 40 col1 FROM tab2 AS cor0
----
-1240
-2360
-680
query I rowsort
SELECT DISTINCT - col1 * + col2 * 85 + + tab1.col0 - col0 FROM tab1
----
-106080
-119340
-48450
query I rowsort
SELECT DISTINCT col0 - + col2 AS col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT - col0 + + col1 - + col0 * 22 AS col2 FROM tab1
----
-1462
-1827
-43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2823
SELECT ALL 96 + col2 - - CAST( - 36 AS SIGNED ) * - col2 AS col0 FROM tab0
----
1317
133
3130
skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL 96 + col2 - - CAST ( - 36 AS INTEGER ) * - col2 AS col0 FROM tab0
----
1317
133
3130
query I rowsort
SELECT ALL col0 * ( ( + col2 ) ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - col1 - - ( - 3 ) * col2 * col0 FROM tab1 AS cor0
----
-10954
-23053
-512
onlyif mysql # use DIV operator for integer division
query I rowsort label-2826
SELECT ALL - col1 DIV 39 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL - col1 / 39 FROM tab1 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2827
SELECT DISTINCT + - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2827
SELECT DISTINCT + - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query IIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1 WHERE NOT NULL > - cor1.col2
----
query I rowsort
SELECT DISTINCT + 89 * 83 FROM tab0 cor0
----
7387
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2830
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2830
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL
query I rowsort
SELECT - 48 FROM tab0, tab2 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 70b0cff913cec85654af0aaf3f5f6d85
onlyif mysql # use DIV operator for integer division
query I rowsort label-2832
SELECT DISTINCT col0 + - tab1.col2 DIV - 26 FROM tab1
----
5
66
83
skipif mysql # not compatible
query I rowsort label-2832
SELECT DISTINCT col0 + - tab1.col2 / - 26 FROM tab1
----
5
66
83
query I rowsort
SELECT - ( col2 ) + + col2 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + - col0 + - ( + col1 ) * cor0.col2 FROM tab1 AS cor0
----
-1328
-1407
-634
onlyif mysql # use DIV operator for integer division
query I rowsort label-2835
SELECT + col1 * ( col1 ) DIV 3 col2 FROM tab2 AS cor0
----
1160
320
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2835
SELECT + col1 * ( col1 ) / 3 col2 FROM tab2 AS cor0
----
1160
320
96
query I rowsort
SELECT + 75 - + 7 FROM tab0 AS cor0
----
68
68
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2837
SELECT - + CAST( NULL AS SIGNED ) - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2837
SELECT - + CAST ( NULL AS INTEGER ) - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 + + ( ( - col1 ) ) + col1 * col2 AS col2 FROM tab1
----
1315
1381
624
query I rowsort
SELECT + col1 * - 46 + col0 FROM tab0 AS cor0
----
-3932
-4097
-4427
query I rowsort
SELECT + + cor0.col0 + col0 - - col1 FROM tab0 AS cor0
----
134
167
269
query I rowsort
SELECT ALL + col0 + + ( + tab1.col2 ) * + col1 FROM tab1
----
1328
1407
634
query I rowsort
SELECT ALL + 32 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b
query I rowsort
SELECT 12 * 5 AS col2 FROM tab0
----
60
60
60
query I rowsort
SELECT 5 * col2 + - col1 FROM tab1 AS cor0
----
244
275
467
query I rowsort
SELECT DISTINCT + - ( - cor0.col1 ) + + col1 AS col2 FROM tab0 AS cor0
----
172
182
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-2846
SELECT - + col1 DIV 67 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2846
SELECT - + col1 / 67 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + tab2.col0 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL 46 + col0 AS col1 FROM tab1 AS cor0
----
110
126
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2849
SELECT DISTINCT + col2 + CAST( - col2 * cor0.col2 + col0 AS SIGNED ) FROM tab1 AS cor0
----
-2859
-3128
-9040
skipif mysql # not compatible
query I rowsort label-2849
SELECT DISTINCT + col2 + CAST ( - col2 * cor0.col2 + col0 AS INTEGER ) FROM tab1 AS cor0
----
-2859
-3128
-9040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * ( col1 ) col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + + cor0.col2 * 29 AS col1 FROM tab0 AS cor0
----
2378
29
957
query I rowsort
SELECT + col1 * + col2 * + col2 - + col0 FROM tab1 cor0
----
119728
32426
75813
query I rowsort
SELECT col2 * col1 + 48 - - ( col0 + 79 ) * col0 FROM tab0 AS cor0
----
22462
4135
5358
query I rowsort
SELECT ALL 7 FROM tab0 cor0
----
7
7
7
query I rowsort
SELECT 76 * - col0 FROM tab2 AS cor0
----
-532
-5928
-6004
query I rowsort
SELECT - col0 * - col2 + 26 * - col2 AS col0 FROM tab1 AS cor0
----
-1242
2166
5184
query I rowsort
SELECT ALL + + col2 * 90 AS col1 FROM tab2 AS cor0
----
2340
2430
3420
onlyif mysql # use DIV operator for integer division
query I rowsort label-2858
SELECT DISTINCT col0 DIV + ( 32 ) FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-2858
SELECT DISTINCT col0 / + ( 32 ) FROM tab0 AS cor0
----
0
1
2
query I rowsort
SELECT - col0 * + 52 AS col0 FROM tab1 cor0
----
-156
-3328
-4160
query I rowsort
SELECT + col2 * 51 AS col2 FROM tab0 AS cor0
----
1683
4182
51
query I rowsort
SELECT ( 93 * + cor0.col0 ) + 51 FROM tab0, tab1 AS cor0
----
9 values hashing to 9da9b96aa4425aa15036ef51c16e0555
query I rowsort
SELECT col1 + + 4 FROM tab2 AS cor0
----
21
35
63
query I rowsort
SELECT ALL col1 + + 49 - ( - col0 ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
1102
153
699
query I rowsort
SELECT + - col0 * col2 + + cor0.col2 + cor0.col1 FROM tab1 cor0
----
-3581
-7571
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2865
SELECT col2 * 88 DIV - col0 FROM tab2 AS cor0
----
-29
-339
-42
skipif mysql # not compatible
query I rowsort label-2865
SELECT col2 * 88 / - col0 FROM tab2 AS cor0
----
-29
-339
-42
query I rowsort
SELECT cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-2867
SELECT ALL col2 DIV ( + 2 + col2 ) AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL col2 / ( + 2 + col2 ) AS col2 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2868
SELECT ALL + ( col1 ) DIV + col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL + ( col1 ) / + col2 FROM tab1
----
0
0
0
query I rowsort
SELECT + col0 + col0 * 37 AS col1 FROM tab2 AS cor0
----
266
2964
3002
query I rowsort
SELECT DISTINCT - col0 * - 4 FROM tab0
----
140
356
96
query I rowsort
SELECT ALL - col2 * col0 + col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col2 ) * col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2873
SELECT DISTINCT - col1 * - col2 + CAST( NULL AS SIGNED ) + 14 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT - col1 * - col2 + CAST ( NULL AS INTEGER ) + 14 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - 30 AS col1 FROM tab1, tab0 cor0, tab2 cor1
----
-30
onlyif mysql # use DIV operator for integer division
query I rowsort label-2875
SELECT DISTINCT + 49 DIV - col1 AS col1 FROM tab1 AS cor0
----
-1
-3
-4
skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT + 49 / - col1 AS col1 FROM tab1 AS cor0
----
-1
-3
-4
onlyif mysql # use DIV operator for integer division
query I rowsort label-2876
SELECT DISTINCT + col0 DIV col0 + col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-2876
SELECT DISTINCT + col0 / col0 + col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT ALL cor1.col2 AS col0 FROM tab1, tab0 cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT - cor0.col1 * col1 * - col1 FROM tab1 AS cor0
----
1000
17576
2197
query I rowsort
SELECT tab0.col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
query I rowsort
SELECT + - cor0.col0 * - 71 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e674318d1c1f37f21287c95f3070a6b9
query I rowsort
SELECT + col0 * col2 * - col0 + - col0 + col1 FROM tab1
----
-233526
-463
-614467
query I rowsort
SELECT ALL + 29 * col2 FROM tab0
----
2378
29
957
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 * col1 col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - 39 FROM tab1 cor0
----
-39
-39
-39
query I rowsort
SELECT ALL 1 * - col2 * col2 AS col0 FROM tab1
----
-2916
-3249
-9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2886
SELECT ALL - tab2.col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL - tab2.col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2887
SELECT ALL + tab0.col2 DIV ( + 22 ) + col1 * tab0.col0 FROM tab0
----
2065
3395
8102
skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL + tab0.col2 / ( + 22 ) + col1 * tab0.col0 FROM tab0
----
2065
3395
8102
query I rowsort
SELECT ALL + 42 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
query I rowsort
SELECT + - col0 + cor0.col2 * - col0 FROM tab2 cor0
----
-196
-2106
-3081
query I rowsort
SELECT + - 67 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f
query I rowsort
SELECT col1 * - 63 + 26 * - col2 FROM tab0 AS cor0
----
-6137
-6276
-7865
query I rowsort
SELECT ALL col0 + ( - tab0.col2 ) AS col1 FROM tab0
----
-9
34
7
query I rowsort
SELECT ALL + col1 + 57 * + 41 FROM tab0
----
2423
2428
2434
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 - col0 col1 FROM tab0 AS cor0
----
-39
15
26
query I rowsort
SELECT ALL + 89 AS col1 FROM tab1
----
89
89
89
query I rowsort
SELECT - 9 * 66 + col0 AS col2 FROM tab0 AS cor0
----
-505
-559
-570
query I rowsort
SELECT DISTINCT + col2 * col2 + col0 * col0 AS col1 FROM tab1 AS cor0
----
15616
2925
7345
query I rowsort
SELECT ALL 76 * 41 FROM tab2 AS cor0
----
3116
3116
3116
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col1 * col2 col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + ( - col0 ) + - col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 45 col2 FROM tab1 AS cor0
----
102
141
99
query I rowsort
SELECT ALL 35 + cor0.col2 FROM tab0 AS cor0
----
117
36
68
query I rowsort
SELECT DISTINCT col0 + col1 * + col2 AS col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL col0 + col2 * col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL + - ( - 82 ) * - col0 + col0 AS col2 FROM tab1 AS cor0
----
-243
-5184
-6480
query I rowsort
SELECT + + ( 34 ) AS col1 FROM tab1 AS cor0
----
34
34
34
query I rowsort
SELECT - col1 * col1 + + col2 * col2 AS col2 FROM tab2 AS cor0
----
-232
-2805
1155
query I rowsort
SELECT + tab0.col0 * tab0.col0 FROM tab0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-2909
SELECT col2 * col0 DIV col1 + col1 * col2 * col1 FROM tab2
----
11158
25953
90540
skipif mysql # not compatible
query I rowsort label-2909
SELECT col2 * col0 / col1 + col1 * col2 * col1 FROM tab2
----
11158
25953
90540
onlyif mysql # use DIV operator for integer division
query I rowsort label-2910
SELECT DISTINCT col0 * col1 DIV + col0 AS col2 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2910
SELECT DISTINCT col0 * col1 / + col0 AS col2 FROM tab0
----
86
91
97
query I rowsort
SELECT - - col1 * col1 + - col0 + - col2 AS col1 FROM tab1 cor0
----
-21
-7
619
onlyif mysql # use DIV operator for integer division
query I rowsort label-2912
SELECT - col0 DIV + cor0.col0 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-2912
SELECT - col0 / + cor0.col0 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-2
-34
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2913
SELECT + CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2913
SELECT + CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + 58 - - col2 AS col2 FROM tab2
----
84
85
96
query I rowsort
SELECT - 45 * + 48 + - col0 AS col0 FROM tab2
----
-2167
-2238
-2239
query I rowsort
SELECT DISTINCT + cor0.col1 + 79 FROM tab0 AS cor0
----
165
170
176
query I rowsort
SELECT ALL - - cor0.col0 + - cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 1c0f12b2ac8c8b522b92205460500f94
query I rowsort
SELECT DISTINCT + + 46 AS col1 FROM tab0 AS cor0
----
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2919
SELECT ALL CAST( NULL AS SIGNED ) * tab2.col0 * + col1 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL CAST ( NULL AS INTEGER ) * tab2.col0 * + col1 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * col0 + col1 AS col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT + col1 - col0 * - col0 AS col0 FROM tab2 AS cor0
----
6143
6258
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2922
SELECT ALL - - 7 + col2 DIV col2 AS col2 FROM tab1 AS cor0
----
8
8
8
skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL - - 7 + col2 / col2 AS col2 FROM tab1 AS cor0
----
8
8
8
query I rowsort
SELECT ALL - - cor0.col0 - - col2 * col2 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT + - 72 + col0 AS col0 FROM tab1 AS cor0
----
-69
-8
8
query I rowsort
SELECT + 65 + col2 AS col0 FROM tab2 AS cor0
----
103
91
92
query I rowsort
SELECT ALL col1 + col1 * + col1 AS col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT DISTINCT - cor0.col0 * col2 + + col2 AS col2 FROM tab2 cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL - + col0 - col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT - + col1 * col2 AS col2 FROM tab0 cor0
----
-2838
-7462
-97
query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 NOT IN ( col0 )
----
query I rowsort
SELECT col2 * col2 + - col2 + col2 FROM tab0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + tab2.col1 col1 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL col2 + col2 + col0 AS col2 FROM tab2 WHERE ( + col1 ) BETWEEN - col1 AND col2
----
155
onlyif mysql # use DIV operator for integer division
query I rowsort label-2934
SELECT ALL col1 DIV - col2 - col2 * + col0 * + col0 col1 FROM tab0
----
-1322
-19010
-649523
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL col1 / - col2 - col2 * + col0 * + col0 col1 FROM tab0
----
-1322
-19010
-649523
onlyif mysql # use DIV operator for integer division
query I rowsort label-2935
SELECT DISTINCT - col1 + col1 DIV col0 FROM tab0
----
-83
-90
-95
skipif mysql # not compatible
query I rowsort label-2935
SELECT DISTINCT - col1 + col1 / col0 FROM tab0
----
-83
-90
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab0 WHERE col2 * - col2 IN ( + col2 - + tab0.col0 )
----
query I rowsort
SELECT col0 * tab1.col0 * col2 AS col0 FROM tab1
----
233472
486
614400
query I rowsort
SELECT DISTINCT col0 + - col1 * col0 + col2 FROM tab0
----
-2007
-3359
-7928
query I rowsort
SELECT ALL - col0 * col1 * col1 + col1 + col2 AS col1 FROM tab2
----
-22776
-271433
-6669
query I rowsort
SELECT DISTINCT tab1.col0 + col1 * col1 - + tab1.col2 FROM tab1
----
107
153
625
query I rowsort
SELECT - col2 + col1 * col2 - col1 * col1 AS col2 FROM tab0
----
-4591
-901
-9313
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( - col2 + + col1 )
----
query I rowsort
SELECT DISTINCT + col0 * - col2 + - col1 + col2 * col2 FROM tab0
----
-131
-665
211
query I rowsort
SELECT + col2 * - col2 - + col1 AS col2 FROM tab2
----
-1461
-735
-760
query I rowsort
SELECT + col2 * + col0 * tab2.col0 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT ALL - col1 * tab1.col1 + col2 * + col1 FROM tab1
----
1079
470
728
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > ( - col2 )
----
query I rowsort
SELECT DISTINCT tab1.col1 * col1 AS col2 FROM tab1
----
100
169
676
query I rowsort
SELECT ALL col0 + + col1 * tab2.col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT - col2 + col2 FROM tab0 WHERE NOT + col2 + + col1 NOT BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2951
SELECT - cor0.col2 DIV - col0 + col0 * col1 + - col1 FROM tab2 AS cor0
----
1326
189
4543
skipif mysql # not compatible
query I rowsort label-2951
SELECT - cor0.col2 / - col0 + col0 * col1 + - col1 FROM tab2 AS cor0
----
1326
189
4543
query I rowsort
SELECT + + cor0.col0 * cor0.col1 FROM tab1 cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2953
SELECT + col2 + col2 DIV + col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2953
SELECT + col2 + col2 / + col1 FROM tab0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2954
SELECT + - col0 * cor0.col2 DIV - col1 col1 FROM tab2 AS cor0
----
176
34
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2954
SELECT + - col0 * cor0.col2 / - col1 col1 FROM tab2 AS cor0
----
176
34
6
query I rowsort
SELECT + col2 * col0 + + col0 AS col0 FROM tab0
----
70
7387
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT DISTINCT - 10 + - col2 AS col1 FROM tab2 AS cor0
----
-36
-37
-48
onlyif mysql # use DIV operator for integer division
query I rowsort label-2958
SELECT - 55 * col2 DIV + col1 FROM tab0 AS cor0
----
-21
-49
0
skipif mysql # not compatible
query I rowsort label-2958
SELECT - 55 * col2 / + col1 FROM tab0 AS cor0
----
-21
-49
0
query I rowsort
SELECT ALL col2 * 34 FROM tab2 AS cor0
----
1292
884
918
query I rowsort
SELECT - col2 + - 81 * - col2 FROM tab2
----
2080
2160
3040
query I rowsort
SELECT + col2 * + col2 + - col1 AS col0 FROM tab2
----
1427
617
698
query I rowsort
SELECT ( + 3 ) AS col2 FROM tab1 AS cor0
----
3
3
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) - - col0 col0 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL cor1.col2 * - cor1.col0 AS col1 FROM tab2, tab2 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 6049db922cf615ac02010fbaffaf74d8
query I rowsort
SELECT DISTINCT - col2 * + 13 FROM tab0 AS cor0
----
-1066
-13
-429
query I rowsort
SELECT ALL - 3 * cor0.col1 AS col2 FROM tab2 cor0
----
-177
-51
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col2 FROM tab2 cor0
----
81
81
81
query I rowsort
SELECT ALL 88 + + 25 AS col0 FROM tab2 AS cor0
----
113
113
113
query I rowsort
SELECT + 0 + col0 * col1 AS col1 FROM tab2
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-2970
SELECT cor0.col0 DIV - 70 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f
skipif mysql # not compatible
query I rowsort label-2970
SELECT cor0.col0 / - 70 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f
query I rowsort
SELECT + 60 * + col2 FROM tab1
----
3240
3420
5760
query I rowsort
SELECT - + 10 + + col0 FROM tab0 AS cor0
----
14
25
79
query I rowsort
SELECT col2 * - cor0.col2 * col1 + 88 AS col0 FROM tab1 AS cor0
----
-119720
-32402
-75728
query I rowsort
SELECT DISTINCT - - col0 + - ( - 59 * cor0.col1 ) AS col0 FROM tab1 AS cor0
----
1537
654
847
query I rowsort
SELECT DISTINCT 77 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
77
query I rowsort
SELECT ALL col0 * col2 + 22 FROM tab2 AS cor0
----
2050
211
3024
query I rowsort
SELECT ALL 44 * - cor0.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to aaff498604f54b8520bb2b4c87908e45
query I rowsort
SELECT DISTINCT + + cor0.col2 + col0 * + 11 FROM tab2 AS cor0
----
104
884
907
query I rowsort
SELECT DISTINCT + cor0.col2 * - 23 FROM tab0 AS cor0
----
-1886
-23
-759
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
1
33
82
query I rowsort
SELECT ALL + col2 * - ( 90 ) AS col2 FROM tab1 AS cor0
----
-4860
-5130
-8640
query I rowsort
SELECT DISTINCT col0 * + cor0.col0 * - col1 + + col0 + col0 AS col1 FROM tab2 AS cor0
----
-105939
-1505
-358800
query I rowsort
SELECT + cor0.col0 * + 44 AS col2 FROM tab0 AS cor0
----
1056
1540
3916
onlyif mysql # use DIV operator for integer division
query I rowsort label-2984
SELECT ALL - - col0 DIV col0 - + 4 AS col0 FROM tab0 AS cor0
----
-3
-3
-3
skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL - - col0 / col0 - + 4 AS col0 FROM tab0 AS cor0
----
-3
-3
-3
query I rowsort
SELECT + + cor0.col1 * + 73 FROM tab0 AS cor0
----
6278
6643
7081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2986
SELECT DISTINCT + col1 + CAST( + col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT + col1 + CAST ( + col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT col2 * + cor0.col0 * 4 AS col1 FROM tab0 cor0
----
140
29192
3168
query I rowsort
SELECT - cor0.col0 * ( - 54 ) * col2 AS col0 FROM tab0 AS cor0
----
1890
394092
42768
query I rowsort
SELECT DISTINCT - + cor0.col0 * - 91 + + col1 AS col0 FROM tab0 AS cor0
----
2270
3282
8190
query I rowsort
SELECT DISTINCT - - col2 * + ( col0 ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT cor0.col0 * - ( col0 ) + - col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT DISTINCT col2 + + col1 * 6 FROM tab0 cor0
----
549
583
628
query I rowsort
SELECT DISTINCT + ( col0 ) - - col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT col1 + - 21 AS col0 FROM tab0 AS cor0
----
65
70
76
query I rowsort
SELECT ALL + ( - 30 ) + + col0 FROM tab2 cor0
----
-23
48
49
query I rowsort
SELECT DISTINCT cor0.col0 + 74 FROM tab1 AS cor0
----
138
154
77
query I rowsort
SELECT ALL col1 * col2 * - 19 AS col1 FROM tab0
----
-141778
-1843
-53922
query I rowsort
SELECT - - ( + col0 ) * - ( + col0 * - col1 ) - + col0 AS col1 FROM tab0 AS cor0
----
118790
49512
720722
query I rowsort
SELECT ALL - + cor0.col2 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL + 53 * col2 FROM tab2 AS cor0
----
1378
1431
2014
onlyif mysql # use DIV operator for integer division
query I rowsort label-3001
SELECT col1 DIV cor0.col1 - 98 FROM tab0 AS cor0
----
-97
-97
-97
skipif mysql # not compatible
query I rowsort label-3001
SELECT col1 / cor0.col1 - 98 FROM tab0 AS cor0
----
-97
-97
-97
query I rowsort
SELECT col2 * col0 + + 92 FROM tab2 AS cor0
----
2120
281
3094
onlyif mysql # use DIV operator for integer division
query I rowsort label-3003
SELECT - col1 - 96 DIV + col1 AS col2 FROM tab2
----
-22
-34
-60
skipif mysql # not compatible
query I rowsort label-3003
SELECT - col1 - 96 / + col1 AS col2 FROM tab2
----
-22
-34
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-3004
SELECT DISTINCT - + ( col0 ) * - cor0.col2 DIV col2 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT - + ( col0 ) * - cor0.col2 / col2 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL 34 + - col1 AS col2 FROM tab0 AS cor0
----
-52
-57
-63
query I rowsort
SELECT DISTINCT - 40 AS col2 FROM tab1, tab0 AS cor0
----
-40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 * col0 + - col0 col0 FROM tab2 AS cor0
----
63
702
711
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 col1 FROM tab1
----
14
14
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-3009
SELECT ALL - 21 + - col1 DIV - col0 AS col0 FROM tab0
----
-18
-19
-20
skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL - 21 + - col1 / - col0 AS col0 FROM tab0
----
-18
-19
-20
onlyif mysql # use DIV operator for integer division
query I rowsort label-3010
SELECT ALL - 90 + col1 DIV - 49 + + col2 AS col0 FROM tab0
----
-58
-9
-90
skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL - 90 + col1 / - 49 + + col2 AS col0 FROM tab0
----
-58
-9
-90
query I rowsort
SELECT ALL - + col1 + - 86 FROM tab0 AS cor0
----
-172
-177
-183
query I rowsort
SELECT ALL 92 + - col2 * 67 + ( col1 ) FROM tab0
----
-2033
-5311
122
query I rowsort
SELECT + col2 + + col1 + + col1 AS col1 FROM tab0
----
195
205
264
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + ( cor0.col1 ) ) * cor0.col2 col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7623ebe74018211e6a4da91fc8c37d6d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3015
SELECT tab2.col2 * col2 + CAST( col0 AS SIGNED ) AS col0 FROM tab2
----
1523
736
754
skipif mysql # not compatible
query I rowsort label-3015
SELECT tab2.col2 * col2 + CAST ( col0 AS INTEGER ) AS col0 FROM tab2
----
1523
736
754
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3016
SELECT ALL - + CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL - + CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - 57 * col1 FROM tab1 AS cor0
----
-1482
-570
-741
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * + col0 col2 FROM tab2 cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-3019
SELECT 1 + col0 + + 92 DIV col1 col1 FROM tab1
----
7
74
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3019
SELECT 1 + col0 + + 92 / col1 col1 FROM tab1
----
7
74
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-3020
SELECT ALL ( col1 ) DIV 33 + 78 FROM tab0
----
80
80
80
skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL ( col1 ) / 33 + 78 FROM tab0
----
80
80
80
query I rowsort
SELECT DISTINCT - - tab0.col2 AS col0 FROM tab0, tab1, tab0 AS cor0
----
1
33
82
query I rowsort
SELECT 85 * + col0 AS col2 FROM tab2
----
595
6630
6715
onlyif mysql # use DIV operator for integer division
query I rowsort label-3023
SELECT - col2 DIV tab0.col1 col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3023
SELECT - col2 / tab0.col1 col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + 67 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a
query I rowsort
SELECT ALL + col0 + col0 * 56 FROM tab2 AS cor0
----
399
4446
4503
query I rowsort
SELECT ALL + col1 + col2 * - 78 + 71 * col0 FROM tab0
----
-784
14
2504
query I rowsort
SELECT - 92 AS col0 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83
onlyif mysql # use DIV operator for integer division
query I rowsort label-3028
SELECT DISTINCT col0 DIV + 1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT col0 / + 1 FROM tab0
----
24
35
89
query I rowsort
SELECT - tab0.col0 * 0 + col1 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT - - ( col1 ) + col2 AS col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + col1 * - 72 + col2 FROM tab1 AS cor0
----
-1818
-663
-840
query I rowsort
SELECT DISTINCT + 28 * col0 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
1728
2160
81
query I rowsort
SELECT ALL col0 + - cor0.col0 AS col2 FROM tab0 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3034
SELECT DISTINCT + CAST( col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT + ( - 75 ) * col1 * - 77 FROM tab2 AS cor0
----
179025
340725
98175
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( 79 AS REAL ) FROM tab1 AS cor0
----
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3037
SELECT - CAST( ( + col2 ) AS SIGNED ) * col1 AS col2 FROM tab1 cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-3037
SELECT - CAST ( ( + col2 ) AS INTEGER ) * col1 AS col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL 22 FROM tab0 cor0
----
22
22
22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3039
SELECT CAST( + 28 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
2296
28
924
skipif mysql # not compatible
query I rowsort label-3039
SELECT CAST ( + 28 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
2296
28
924
skipif mysql # not compatible
query I rowsort
SELECT CAST ( 69 * - col1 AS REAL ) FROM tab1
----
-1794
-690
-897
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 91 * + col0 + cor0.col2 col2 FROM tab1 cor0
----
-219
-5767
-7184
query I rowsort
SELECT ALL + 81 * cor0.col2 AS col0 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to cfd2074048939304dd29376161c3465f
query I rowsort
SELECT ALL tab2.col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT - - col0 * col1 + ( + col0 ) FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT + - col0 * cor0.col2 + ( 66 ) * col1 AS col2 FROM tab0 AS cor0
----
-1292
4884
6367
query I rowsort
SELECT + col2 * 30 AS col0 FROM tab0 AS cor0
----
2460
30
990
query I rowsort
SELECT ALL col1 * ( - ( col1 ) * - ( col0 ) ) AS col2 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT + + col0 - - col0 AS col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - col1 * + 71 * 29 AS col1 FROM tab2 cor0
----
-121481
-35003
-63829
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( col2 ) col1 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3051
SELECT - - col2 + CAST( NULL AS DECIMAL ) * cor0.col2 - - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3051
SELECT - - col2 + CAST ( NULL AS REAL ) * cor0.col2 - - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 * 33 AS col2 FROM tab2 AS cor0
----
1254
858
891
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * ( col1 ) col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - col1 + - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT tab0.col2 + 63 FROM tab0
----
145
64
96
query I rowsort
SELECT ALL col1 + - 21 FROM tab2 AS cor0
----
-4
10
38
query I rowsort
SELECT - col1 + + 84 AS col1 FROM tab2 AS cor0
----
25
53
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-3058
SELECT DISTINCT col1 DIV col0 + col1 col1 FROM tab1 AS cor0
----
10
13
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT col1 / col0 + col1 col1 FROM tab1 AS cor0
----
10
13
34
query I rowsort
SELECT DISTINCT + col2 + ( + 18 ) FROM tab2 AS cor0
----
44
45
56
query I rowsort
SELECT DISTINCT + col0 * 62 AS col2 FROM tab2 AS cor0
----
434
4836
4898
onlyif mysql # use DIV operator for integer division
query I rowsort label-3061
SELECT - cor0.col2 DIV 41 FROM tab1 AS cor0
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-3061
SELECT - cor0.col2 / 41 FROM tab1 AS cor0
----
-1
-1
-2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) * + 28 * + col1 col2 FROM tab2
----
128856
37604
6076
query I rowsort
SELECT DISTINCT tab2.col0 + + col2 + + 28 AS col2 FROM tab2
----
132
145
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3064
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - 31 AS REAL ) AS col1 FROM tab0, tab0 AS cor0
----
-31
query I rowsort
SELECT - cor0.col2 * 29 FROM tab2 AS cor0
----
-1102
-754
-783
query I rowsort
SELECT col1 * col1 * col1 + col0 * col1 AS col0 FROM tab2
----
209981
30008
6256
onlyif mysql # use DIV operator for integer division
query I rowsort label-3068
SELECT col1 DIV col2 + - col0 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-3068
SELECT col1 / col2 + - col0 FROM tab1
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3069
SELECT DISTINCT col2 DIV col0 + col0 AS col1 FROM tab0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT col2 / col0 + col0 AS col1 FROM tab0
----
25
35
89
query I rowsort
SELECT ALL 18 + + col0 FROM tab0 AS cor0
----
107
42
53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3071
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab0 cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-3071
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab0 cor1
----
NULL
query I rowsort
SELECT DISTINCT - tab1.col2 * col1 + + tab1.col2 AS col1 FROM tab1
----
-1152
-1350
-513
query III rowsort
SELECT * FROM tab0 WHERE - col0 <> NULL
----
query I rowsort
SELECT DISTINCT col1 * tab1.col0 + - col1 + col1 AS col0 FROM tab1
----
1040
640
78
query III rowsort
SELECT * FROM tab0 WHERE ( col1 - col2 ) < + col1 * + col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT ALL + col1 + col0 + col0 AS col1 FROM tab0
----
134
167
269
query I rowsort
SELECT ALL + col2 + + col0 + + col1 * col1 FROM tab1
----
221
345
733
onlyif mysql # use DIV operator for integer division
query I rowsort label-3078
SELECT ALL col0 DIV col0 + tab0.col2 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL col0 / col0 + tab0.col2 FROM tab0
----
2
34
83
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( + col1 * col2 )
----
query I rowsort
SELECT DISTINCT - tab2.col0 * tab2.col2 * - col1 AS col0 FROM tab2 WHERE NOT ( + col2 * - col2 - - col2 / col1 ) < NULL
----
query I rowsort
SELECT ( col1 ) + + ( + col2 ) AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + 9 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07
query I rowsort
SELECT ALL col2 + + col0 * + 99 FROM tab0
----
2409
3466
8893
onlyif mysql # use DIV operator for integer division
query I rowsort label-3084
SELECT + 91 + col0 DIV col1 + 42 DIV + col1 AS col0 FROM tab0 AS cor0
----
91
91
91
skipif mysql # not compatible
query I rowsort label-3084
SELECT + 91 + col0 / col1 + 42 / + col1 AS col0 FROM tab0 AS cor0
----
91
91
91
query I rowsort
SELECT DISTINCT + + col2 * col1 * 77 + - col2 + - col2 AS col1 FROM tab2 cor0
----
118066
49666
64395
query I rowsort
SELECT DISTINCT 1 * + 47 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 + - col1 col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT ALL - + 17 * col0 + 16 AS col2 FROM tab0 AS cor0
----
-1497
-392
-579
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + col0 col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT DISTINCT - + 24 AS col2 FROM tab0 cor0
----
-24
query I rowsort
SELECT ALL - cor0.col0 + - col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT + + col0 + - col1 - col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - col2 * - col0 + cor0.col0 + + ( col2 ) * - 74 FROM tab0 cor0
----
-1626
-4
1319
query I rowsort
SELECT DISTINCT 50 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 + col1 col1 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT - col1 + + ( col1 ) * cor0.col2 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT DISTINCT - + col2 - 18 * - col1 AS col2 FROM tab1 AS cor0
----
123
138
414
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * ( col2 ) col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + - col0 * + col1 col2 FROM tab0 AS cor0
----
-1488
-178
-2170
query I rowsort
SELECT + col1 * ( col1 ) FROM tab2
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 * cor0.col2 col0 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT ALL + col0 - + col2 * - col1 FROM tab2 cor0
----
1612
725
844
query I rowsort
SELECT ALL 84 + + col2 AS col2 FROM tab2
----
110
111
122
query I rowsort
SELECT DISTINCT - cor0.col2 * - 29 * - 40 AS col2 FROM tab0 AS cor0
----
-1160
-38280
-95120
query I rowsort
SELECT DISTINCT - cor0.col2 * ( + col0 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL ( col0 ) * col0 * col1 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT 40 * cor0.col2 FROM tab0 AS cor0
----
1320
3280
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-3108
SELECT ALL 71 DIV - cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 734470aeecbccfdb5a335a173fa9f444
skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL 71 / - cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 734470aeecbccfdb5a335a173fa9f444
query I rowsort
SELECT DISTINCT + + col2 + - col1 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT ALL - - ( 59 ) FROM tab2 AS cor0
----
59
59
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-3111
SELECT - ( 46 ) DIV + cor0.col0 AS col2 FROM tab2 AS cor0
----
-6
0
0
skipif mysql # not compatible
query I rowsort label-3111
SELECT - ( 46 ) / + cor0.col0 AS col2 FROM tab2 AS cor0
----
-6
0
0
query I rowsort
SELECT DISTINCT cor0.col1 + 86 + cor0.col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
106
112
138
query I rowsort
SELECT col1 * cor0.col0 + 28 FROM tab0 AS cor0
----
2092
3423
8127
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + + col1 col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + ( - col2 ) - + col1 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT + 45 + - col0 * + col1 AS col1 FROM tab0 AS cor0
----
-2019
-3350
-8054
query I rowsort
SELECT DISTINCT + 86 * + col0 FROM tab1 AS cor0
----
258
5504
6880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3118
SELECT CAST( NULL AS SIGNED ) * ( - col2 ) - 53 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3118
SELECT CAST ( NULL AS INTEGER ) * ( - col2 ) - 53 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT tab0.col1 + + col1 * col0 + + 21 * + col1 AS col2 FROM tab0
----
10101
3956
5529
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT 5 + + col0 + - col0 FROM tab0
----
5
5
5
query I rowsort
SELECT DISTINCT - + cor0.col0 * - col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL col1 * + 4 FROM tab1 AS cor0
----
104
40
52
query I rowsort
SELECT DISTINCT + cor0.col0 + ( + col0 ) AS col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT + - col2 * + 63 FROM tab2 cor0
----
-1638
-1701
-2394
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 * + col0 col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + 74 + - 60 AS col0 FROM tab1 AS cor0
----
14
14
14
query I rowsort
SELECT ALL - cor0.col2 FROM tab1, tab0 AS cor0 WHERE ( NULL ) IN ( cor0.col2 )
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3129
SELECT - CAST( - 34 AS SIGNED ) + col0 FROM tab2 cor0
----
112
113
41
skipif mysql # not compatible
query I rowsort label-3129
SELECT - CAST ( - 34 AS INTEGER ) + col0 FROM tab2 cor0
----
112
113
41
query I rowsort
SELECT + col2 * 76 AS col2 FROM tab1 AS cor0
----
4104
4332
7296
query I rowsort
SELECT ALL - 1 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
query I rowsort
SELECT - cor1.col0 + - 70 AS col0 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 2765d37bab3c5b496ad95a6af4dfad90
onlyif mysql # use DIV operator for integer division
query I rowsort label-3133
SELECT 35 + col1 DIV - ( col1 ) FROM tab1 AS cor0
----
34
34
34
skipif mysql # not compatible
query I rowsort label-3133
SELECT 35 + col1 / - ( col1 ) FROM tab1 AS cor0
----
34
34
34
query I rowsort
SELECT - 41 - cor0.col0 FROM tab0 AS cor0
----
-130
-65
-76
query I rowsort
SELECT 78 + col0 * - ( col0 ) FROM tab1
----
-4018
-6322
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-3136
SELECT + col1 * col0 DIV - col1 + + col1 FROM tab1 AS cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-3136
SELECT + col1 * col0 / - col1 + + col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT + tab0.col2 * - col1 FROM tab0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3138
SELECT col0 + tab1.col2 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3138
SELECT col0 + tab1.col2 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 53 * col0 FROM tab0
----
-1272
-1855
-4717
query I rowsort
SELECT col2 + ( 84 ) * col1 FROM tab1 AS cor0
----
1188
2238
897
query I rowsort
SELECT + + cor0.col0 * ( + col2 + col1 ) * - 27 AS col0 FROM tab2 AS cor0
----
-10962
-117315
-179010
query I rowsort
SELECT ALL col1 * - col2 * + col2 AS col1 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT col2 * ( col0 * col1 ) AS col1 FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT - col0 * tab0.col0 * - 30 FROM tab0
----
17280
237630
36750
query I rowsort
SELECT ALL + + 60 * col2 AS col0 FROM tab0 AS cor0
----
1980
4920
60
query I rowsort
SELECT - 72 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888
query I rowsort
SELECT ALL 13 + 93 * col1 * + 27 FROM tab0
----
215959
228514
243580
query I rowsort
SELECT - col2 + + cor0.col0 * + 68 AS col2 FROM tab2 AS cor0
----
449
5278
5334
query I rowsort
SELECT DISTINCT - 81 + 18 * - col2 FROM tab2 AS cor0
----
-549
-567
-765
onlyif mysql # use DIV operator for integer division
query I rowsort label-3150
SELECT CAST( - col0 AS SIGNED ) DIV col0 AS col1 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3150
SELECT CAST ( - col0 AS INTEGER ) / col0 AS col1 FROM tab2
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT + ( col1 * + col2 ) FROM tab2
----
1534
646
837
query I rowsort
SELECT + + cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba
query I rowsort
SELECT + - col2 + - col2 * col0 FROM tab0 cor0
----
-36
-7380
-825
onlyif mysql # use DIV operator for integer division
query I rowsort label-3157
SELECT + 4 DIV col1 col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3157
SELECT + 4 / col1 col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3158
SELECT + - ( + cor0.col1 ) DIV ( + cor0.col1 ) col0 FROM tab0 cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3158
SELECT + - ( + cor0.col1 ) / ( + cor0.col1 ) col0 FROM tab0 cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3159
SELECT + tab1.col1 DIV tab1.col0 + col2 AS col0 FROM tab1
----
57
62
96
skipif mysql # not compatible
query I rowsort label-3159
SELECT + tab1.col1 / tab1.col0 + col2 AS col0 FROM tab1
----
57
62
96
query I rowsort
SELECT ALL - ( - col0 ) + col2 AS col2 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL - col2 * col1 * + col0 + + ( col2 ) FROM tab2
----
-119626
-50996
-5832
query I rowsort
SELECT + col0 + 63 AS col2 FROM tab0
----
152
87
98
query I rowsort
SELECT - 89 - col2 * - col1 AS col2 FROM tab0 cor0
----
2749
7373
8
query I rowsort
SELECT DISTINCT - ( - 69 ) - - col1 FROM tab1 AS cor0
----
79
82
95
query I rowsort
SELECT DISTINCT - col1 * col2 + col1 - 32 FROM tab2 AS cor0
----
-1507
-661
-838
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3166
SELECT DISTINCT - - CAST( + cor0.col0 AS SIGNED ) * col1 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT - - CAST ( + cor0.col0 AS INTEGER ) * col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT cor0.col2 * 89 FROM tab1 AS cor0
----
4806
5073
8544
query I rowsort
SELECT ALL + - ( col0 ) * col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL - 62 * - col1 - - col1 FROM tab2 AS cor0
----
1071
1953
3717
query I rowsort
SELECT DISTINCT 39 + col1 * 27 FROM tab0 AS cor0
----
2361
2496
2658
query I rowsort
SELECT ALL + + ( - col1 ) * col2 + + ( - col2 + 63 ) FROM tab1 cor0
----
-1281
-1395
-564
query I rowsort
SELECT ALL - col0 - + cor0.col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-3173
SELECT - col1 DIV col1 + col0 * - col0 AS col0 FROM tab2 cor0
----
-50
-6085
-6242
skipif mysql # not compatible
query I rowsort label-3173
SELECT - col1 / col1 + col0 * - col0 AS col0 FROM tab2 cor0
----
-50
-6085
-6242
query I rowsort
SELECT ALL col0 * + col1 AS col2 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + + col1 * - col0 + 2 FROM tab2 AS cor0
----
-1341
-215
-4600
query I rowsort
SELECT DISTINCT + 75 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
49
62
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-3177
SELECT DISTINCT - col2 DIV + col0 + col0 FROM tab2 AS cor0
----
4
78
79
skipif mysql # not compatible
query I rowsort label-3177
SELECT DISTINCT - col2 / + col0 + col0 FROM tab2 AS cor0
----
4
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3178
SELECT ALL + ( col0 ) / - col0 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL + ( col0 ) / - col0 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3179
SELECT ALL - 53 DIV + cor0.col2 + + col1 * 68 * - col0 FROM tab1 cor0
----
-43520
-5304
-70720
skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL - 53 / + cor0.col2 + + col1 * 68 * - col0 FROM tab1 cor0
----
-43520
-5304
-70720
query I rowsort
SELECT - col1 + + col1 * col1 * col0 AS col0 FROM tab2 AS cor0
----
22814
271459
6696
onlyif mysql # use DIV operator for integer division
query I rowsort label-3181
SELECT DISTINCT col0 - cor0.col0 DIV cor0.col1 col2 FROM tab1 AS cor0
----
3
58
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT col0 - cor0.col0 / cor0.col1 col2 FROM tab1 AS cor0
----
3
58
74
query I rowsort
SELECT + ( 90 * + col2 ) AS col0 FROM tab2
----
2340
2430
3420
query I rowsort
SELECT ALL + - col1 + + ( col0 ) AS col0 FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - col1 * - 16 col0 FROM tab1 AS cor0
----
10816
1600
2704
onlyif mysql # use DIV operator for integer division
query I rowsort label-3185
SELECT col0 DIV CAST( - 97 AS SIGNED ) + col0 AS col1 FROM tab2 cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-3185
SELECT col0 / CAST ( - 97 AS INTEGER ) + col0 AS col1 FROM tab2 cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-3186
SELECT cor0.col1 + CAST( col0 AS SIGNED ) - cor0.col0 DIV + ( - col2 ) AS col0 FROM tab0 AS cor0
----
110
167
181
skipif mysql # not compatible
query I rowsort label-3186
SELECT cor0.col1 + CAST ( col0 AS INTEGER ) - cor0.col0 / + ( - col2 ) AS col0 FROM tab0 AS cor0
----
110
167
181
query I rowsort
SELECT + col1 * - col1 + + cor0.col0 AS col2 FROM tab2 cor0
----
-210
-3403
-954
query I rowsort
SELECT DISTINCT + - cor0.col2 * col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT col2 * 18 + ( - col1 ) FROM tab1 AS cor0
----
1016
1715
946
query I rowsort
SELECT ALL col0 * ( - col2 ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + col2 * + ( 52 ) + cor0.col1 FROM tab0 AS cor0
----
149
1802
4355
query I rowsort
SELECT - ( col1 ) - + col0 * col0 FROM tab1 AS cor0
----
-35
-4106
-6413
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3193
SELECT ALL - CAST( cor0.col0 AS SIGNED ) FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL - CAST ( cor0.col0 AS INTEGER ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + 1 FROM tab2, tab1 AS cor0, tab1, tab1 AS cor1
----
1
query I rowsort
SELECT - tab0.col0 * tab0.col2 * - col2 FROM tab0
----
26136
35
598436
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3196
SELECT + col1 * CAST( NULL AS SIGNED ) - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3196
SELECT + col1 * CAST ( NULL AS INTEGER ) - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + col2 * - col2 FROM tab0 cor0
----
-1056
-6642
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3198
SELECT + col0 DIV CAST( + col1 AS SIGNED ) + col1 - - 55 FROM tab1
----
71
74
81
skipif mysql # not compatible
query I rowsort label-3198
SELECT + col0 / CAST ( + col1 AS INTEGER ) + col1 - - 55 FROM tab1
----
71
74
81
query I rowsort
SELECT col0 + 93 FROM tab0
----
117
128
182
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) + col1 * - col1 * + ( col0 ) - ( + col2 ) col2 FROM tab0 cor0
----
-177513
-329281
-737002
query I rowsort
SELECT ALL - - col0 * + col1 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT + + 64 + - col0 FROM tab1 AS cor0
----
-16
0
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col0 ) + - col2 - 21 * - 52 col1 FROM tab0 cor0
----
1035
1056
921
query I rowsort
SELECT DISTINCT - col2 * - 15 * col2 FROM tab1
----
138240
43740
48735
query I rowsort
SELECT col0 - + tab0.col2 * + col1 FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT tab1.col1 + - 6 FROM tab1
----
20
4
7
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to ae08f1949fd59e00b049f28175217e60
query I rowsort
SELECT DISTINCT + col2 + 80 FROM tab2
----
106
107
118
query I rowsort
SELECT ALL - 93 FROM tab1, tab2 cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b
query I rowsort
SELECT - col1 * + col1 * col0 + 44 FROM tab2
----
-22787
-271474
-6683
query I rowsort
SELECT + 86 * - col1 * col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-177418
-291873
-696423
query I rowsort
SELECT DISTINCT - + ( + ( col2 ) ) FROM tab2 cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3213
SELECT DISTINCT + CAST( + 0 AS SIGNED ) FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT + CAST ( + 0 AS INTEGER ) FROM tab1 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3214
SELECT + + ( + 10 ) + - col2 * col2 DIV - col0 FROM tab2 AS cor0
----
114
18
28
skipif mysql # not compatible
query I rowsort label-3214
SELECT + + ( + 10 ) + - col2 * col2 / - col0 FROM tab2 AS cor0
----
114
18
28
query I rowsort
SELECT DISTINCT col2 * + col0 * + col2 AS col1 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT DISTINCT + col2 + - col0 + - col0 AS col1 FROM tab2
----
-120
-130
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-3217
SELECT DISTINCT - 45 + cor0.col0 DIV col2 AS col0 FROM tab0 AS cor0
----
-10
-44
-45
skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT - 45 + cor0.col0 / col2 AS col0 FROM tab0 AS cor0
----
-10
-44
-45
query I rowsort
SELECT + col1 * ( col0 ) * + col0 - col0 * col0 FROM tab2 AS cor0
----
1470
352872
99856
query I rowsort
SELECT DISTINCT col0 * - 69 + - cor0.col2 * col1 + col1 * col1 AS col0 FROM tab0 AS cor0
----
-5322
2902
6897
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3220
SELECT DISTINCT + CAST( col1 AS DECIMAL ) + - col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3220
SELECT DISTINCT + CAST ( col1 AS REAL ) + - col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT 19 + - cor0.col1 FROM tab0 AS cor0
----
-67
-72
-78
query I rowsort
SELECT DISTINCT - + 36 + + col0 FROM tab2 cor0
----
-29
42
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-3223
SELECT ALL + col2 DIV col0 AS col1 FROM tab2 cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-3223
SELECT ALL + col2 / col0 AS col1 FROM tab2 cor0
----
0
0
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-3224
SELECT DISTINCT col2 DIV cor0.col1 + cor0.col0 FROM tab1 AS cor0
----
5
69
87
skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT col2 / cor0.col1 + cor0.col0 FROM tab1 AS cor0
----
5
69
87
query I rowsort
SELECT + + 19 * - col1 AS col2 FROM tab2 AS cor0
----
-1121
-323
-589
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 21 col1 FROM tab2
----
21
21
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 * 4 col1 FROM tab2 AS cor0
----
18408
5372
868
query I rowsort
SELECT ALL - cor0.col0 * ( ( col1 ) ) * - cor0.col0 AS col2 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT + col1 + ( col1 ) + col1 AS col0 FROM tab0 AS cor0
----
258
273
291
query I rowsort
SELECT ALL + cor0.col1 * - 41 FROM tab1 AS cor0
----
-1066
-410
-533
query I rowsort
SELECT ALL cor0.col0 * 34 FROM tab0 AS cor0
----
1190
3026
816
query I rowsort
SELECT ALL - col2 * - col1 * + col1 FROM tab2 cor0
----
10982
25947
90506
query I rowsort
SELECT + - col0 * col0 + + 90 FROM tab1 AS cor0
----
-4006
-6310
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-3234
SELECT ALL col1 * - col0 + - col1 DIV col1 + col0 FROM tab2 AS cor0
----
-1265
-211
-4525
skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL col1 * - col0 + - col1 / col1 + col0 FROM tab2 AS cor0
----
-1265
-211
-4525
query I rowsort
SELECT ALL - col2 + + 84 FROM tab2 AS cor0
----
46
57
58
query I rowsort
SELECT ALL + 15 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 + - col1 col0 FROM tab2
----
-15
13
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + 9 col0 FROM tab1 AS cor0
----
105
63
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3239
SELECT DISTINCT CAST( NULL AS SIGNED ) + cor0.col2 + col1 * - col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT CAST ( NULL AS INTEGER ) + cor0.col2 + col1 * - col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - + 42 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-15
-16
-4
query I rowsort
SELECT 73 * col1 + - cor0.col0 FROM tab1 AS cor0
----
1895
666
869
query I rowsort
SELECT ALL + col1 * + col1 * 67 AS col2 FROM tab0
----
495532
554827
630403
onlyif mysql # use DIV operator for integer division
query I rowsort label-3243
SELECT 26 DIV - col0 col0 FROM tab1 AS cor0
----
-8
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3243
SELECT 26 / - col0 col0 FROM tab1 AS cor0
----
-8
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3244
SELECT col0 + CAST( NULL AS SIGNED ) - + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3244
SELECT col0 + CAST ( NULL AS INTEGER ) - + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 22 * + tab2.col1 FROM tab2, tab1 AS cor0
----
1298
374
682
query I rowsort
SELECT DISTINCT - + cor0.col0 - - col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL - col2 * - col2 + - 24 AS col0 FROM tab1 AS cor0
----
2892
3225
9192
query I rowsort
SELECT + - col2 * - 71 - - cor0.col2 AS col0 FROM tab1 cor0
----
3888
4104
6912
onlyif mysql # use DIV operator for integer division
query I rowsort label-3249
SELECT DISTINCT col2 + - ( 78 + - col0 ) DIV col0 col2 FROM tab0 AS cor0
----
0
31
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT col2 + - ( 78 + - col0 ) / col0 col2 FROM tab0 AS cor0
----
0
31
82
query I rowsort
SELECT - col1 - 12 FROM tab0 cor0
----
-103
-109
-98
query I rowsort
SELECT ALL col2 + 8 * + 53 FROM tab1 cor0
----
478
481
520
query I rowsort
SELECT col2 + - ( ( col2 ) ) * - ( + col2 ) + col1 FROM tab1 AS cor0
----
2996
3316
9325
onlyif mysql # use DIV operator for integer division
query I rowsort label-3253
SELECT DISTINCT - - col2 DIV + col2 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-3253
SELECT DISTINCT - - col2 / + col2 FROM tab0 AS cor0
----
1
query I rowsort
SELECT - col2 + - 68 - ( + col1 ) * - 72 FROM tab0 AS cor0
----
6091
6402
6915
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3255
SELECT - CAST( 52 AS SIGNED ) FROM tab1 AS cor0
----
-52
-52
-52
skipif mysql # not compatible
query I rowsort label-3255
SELECT - CAST ( 52 AS INTEGER ) FROM tab1 AS cor0
----
-52
-52
-52
query I rowsort
SELECT col1 + 51 AS col2 FROM tab2 cor0
----
110
68
82
query I rowsort
SELECT ALL - col2 * 12 + col0 AS col1 FROM tab1 AS cor0
----
-1072
-620
-645
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) + - col0 col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + + col1 * cor0.col0 + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT - + col1 * + 18 + col0 * + col2 AS col1 FROM tab2 AS cor0
----
-369
2696
966
query I rowsort
SELECT + ( 5 ) FROM tab1 AS cor0
----
5
5
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3262
SELECT ALL - CAST( NULL AS SIGNED ) + + col2 - + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL - CAST ( NULL AS INTEGER ) + + col2 - + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 52 + - 1 AS col0 FROM tab2 cor0
----
51
51
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 + 17 col2 FROM tab1
----
113
71
74
query I rowsort
SELECT + col2 + - 34 - cor0.col2 AS col1 FROM tab0 cor0
----
-34
-34
-34
query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE ( NULL ) <> ( NULL )
----
query I rowsort
SELECT DISTINCT 51 - + col0 * + col1 FROM tab2
----
-1292
-166
-4551
onlyif mysql # use DIV operator for integer division
query I rowsort label-3268
SELECT - + col2 * 50 + cor0.col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1651
-4101
-51
skipif mysql # not compatible
query I rowsort label-3268
SELECT - + col2 * 50 + cor0.col0 / - col0 AS col0 FROM tab0 AS cor0
----
-1651
-4101
-51
query I rowsort
SELECT 30 - - cor0.col0 AS col1 FROM tab0 AS cor0
----
119
54
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col2 FROM tab1, tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT col1 + 84 FROM tab0
----
170
175
181
query I rowsort
SELECT + col0 + col1 + - col0 * col1 FROM tab2 AS cor0
----
-1247
-179
-4465
onlyif mysql # use DIV operator for integer division
query I rowsort label-3273
SELECT - col1 DIV col1 + col2 - col0 AS col0 FROM tab0 AS cor0
----
-35
-8
8
skipif mysql # not compatible
query I rowsort label-3273
SELECT - col1 / col1 + col2 - col0 AS col0 FROM tab0 AS cor0
----
-35
-8
8
query I rowsort
SELECT + cor0.col0 * cor0.col2 + + ( + col2 ) FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-3275
SELECT ( + ( - col1 ) ) DIV ( tab1.col1 ) AS col0 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3275
SELECT ( + ( - col1 ) ) / ( tab1.col1 ) AS col0 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT ALL - tab0.col2 * - col1 * col0 AS col0 FROM tab0
----
3395
664118
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col0 * - col1 col1 FROM tab1
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3278
SELECT - - col0 DIV - col2 + - col2 FROM tab1 AS cor0
----
-54
-58
-96
skipif mysql # not compatible
query I rowsort label-3278
SELECT - - col0 / - col2 + - col2 FROM tab1 AS cor0
----
-54
-58
-96
query I rowsort
SELECT - 45 * col0 * - col1 + + 69 AS col2 FROM tab1 AS cor0
----
28869
3579
46869
onlyif mysql # use DIV operator for integer division
query I rowsort label-3280
SELECT DISTINCT ( + col0 ) * col1 + - col1 DIV col1 FROM tab1 AS cor0
----
1039
639
77
skipif mysql # not compatible
query I rowsort label-3280
SELECT DISTINCT ( + col0 ) * col1 + - col1 / col1 FROM tab1 AS cor0
----
1039
639
77
query I rowsort
SELECT ALL + - 36 * col1 FROM tab1 AS cor0
----
-360
-468
-936
onlyif mysql # use DIV operator for integer division
query I rowsort label-3282
SELECT col2 * - col0 DIV - tab0.col0 AS col0 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-3282
SELECT col2 * - col0 / - tab0.col0 AS col0 FROM tab0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3283
SELECT CAST( NULL AS SIGNED ) * - ( col1 * CAST( - col0 AS SIGNED ) + col2 * + col0 ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3283
SELECT CAST ( NULL AS INTEGER ) * - ( col1 * CAST ( - col0 AS INTEGER ) + col2 * + col0 ) FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 69 col1 FROM tab0
----
2277
5658
69
query I rowsort
SELECT 8 * + ( + tab0.col0 + + tab0.col0 ) AS col2 FROM tab0
----
1424
384
560
onlyif mysql # use DIV operator for integer division
query I rowsort label-3286
SELECT - col0 DIV + 20 AS col2 FROM tab0 cor0
----
-1
-1
-4
skipif mysql # not compatible
query I rowsort label-3286
SELECT - col0 / + 20 AS col2 FROM tab0 cor0
----
-1
-1
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 * ( + 0 ) col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT 96 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 63ccb67e72ebac679a0221202c067b9e
query I rowsort
SELECT ALL - tab0.col2 + + tab0.col1 * + tab0.col0 AS col1 FROM tab0
----
2031
3394
8017
query I rowsort
SELECT + - cor0.col1 * - 85 FROM tab2 AS cor0
----
1445
2635
5015
query I rowsort
SELECT - + cor0.col1 + + ( 41 ) FROM tab0 AS cor0
----
-45
-50
-56
onlyif mysql # use DIV operator for integer division
query I rowsort label-3293
SELECT col2 DIV - 87 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3293
SELECT col2 / - 87 AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3294
SELECT DISTINCT - 65 DIV - col1 - - 69 FROM tab1
----
71
74
75
skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT - 65 / - col1 - - 69 FROM tab1
----
71
74
75
query I rowsort
SELECT 92 + col0 + - col1 FROM tab2
----
111
154
68
query I rowsort
SELECT - 20 * - tab2.col2 + + 57 + col2 FROM tab2
----
603
624
855
query I rowsort
SELECT 52 - col1 FROM tab2
----
-7
21
35
query I rowsort
SELECT - col2 - cor0.col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL 92 - col2 * + 20 * - 14 FROM tab1
----
15212
16052
26972
query I rowsort
SELECT + 85 * + col1 AS col0 FROM tab2 AS cor0
----
1445
2635
5015
query I rowsort
SELECT ALL col2 * 4 FROM tab2 AS cor0
----
104
108
152
query I rowsort
SELECT ALL - - col1 + + 81 + col2 FROM tab2 AS cor0
----
136
139
166
query I rowsort
SELECT DISTINCT - - col1 * + cor0.col1 + col2 FROM tab0 AS cor0
----
7429
8363
9410
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3304
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) + cor0.col0 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) + cor0.col0 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT col1 + col0 + - col2 AS col0 FROM tab0 AS cor0
----
131
77
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3306
SELECT + + col1 * CAST( NULL AS SIGNED ) - col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3306
SELECT + + col1 * CAST ( NULL AS INTEGER ) - col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * + 92 col2 FROM tab1 AS cor0
----
276
5888
7360
query I rowsort
SELECT - tab1.col2 * col1 * ( - col0 + col2 ) AS col2 FROM tab1
----
-19968
-71604
3990
query I rowsort
SELECT ALL col2 * 42 * 79 - col1 AS col1 FROM tab2 AS cor0
----
126067
86209
89555
onlyif mysql # use DIV operator for integer division
query I rowsort label-3310
SELECT + cor0.col1 * col1 + + col0 DIV col1 AS col2 FROM tab1 AS cor0
----
106
175
676
skipif mysql # not compatible
query I rowsort label-3310
SELECT + cor0.col1 * col1 + + col0 / col1 AS col2 FROM tab1 AS cor0
----
106
175
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3311
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + 1 * 4 FROM tab1 AS cor0
----
4
4
4
query I rowsort
SELECT - + cor0.col0 * col2 * col1 FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL - - col1 * - 2 + col0 * 42 * - col0 - - col1 AS col1 FROM tab1 AS cor0
----
-172042
-268813
-404
query I rowsort
SELECT ( 37 ) + col0 FROM tab0 AS cor0
----
126
61
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-3316
SELECT DISTINCT - col0 * + 64 + + cor0.col0 DIV + 57 FROM tab0 AS cor0
----
-1536
-2240
-5695
skipif mysql # not compatible
query I rowsort label-3316
SELECT DISTINCT - col0 * + 64 + + cor0.col0 / + 57 FROM tab0 AS cor0
----
-1536
-2240
-5695
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3317
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT - - CAST ( NULL AS REAL ) * col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL col1 - 39 FROM tab1 AS cor0
----
-13
-26
-29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3319
SELECT DISTINCT - CAST( cor0.col2 AS SIGNED ) FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT - CAST ( cor0.col2 AS INTEGER ) FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3320
SELECT ALL + CAST( col1 AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-3320
SELECT ALL + CAST ( col1 AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + col1 - + col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-3322
SELECT ALL col1 + - col0 DIV CAST( + col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL col1 + - col0 / CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
12
25
9
query I rowsort
SELECT ALL + col2 * - col1 + col1 * ( + col2 ) AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 85 * + col0 - + 99 FROM tab1 AS cor0
----
156
5341
6701
query I rowsort
SELECT ALL - 75 AS col0 FROM tab1
----
-75
-75
-75
query I rowsort
SELECT + - ( col1 ) * + 91 * - col2 FROM tab0 cor0
----
258258
679042
8827
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - cor0.col1 ) * col0 * - col0 col2 FROM tab0 cor0
----
-118825
-49536
-720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-3328
SELECT DISTINCT + - cor0.col0 DIV col1 AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT + - cor0.col0 / col1 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT col0 * 31 FROM tab1
----
1984
2480
93
query I rowsort
SELECT ALL + - cor0.col1 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + 55 * + col1 FROM tab0 AS cor0
----
4730
5005
5335
query I rowsort
SELECT - col2 + - col1 * 12 FROM tab1
----
-177
-252
-366
query I rowsort
SELECT + ( col0 ) * - col1 + + ( + col0 ) FROM tab1
----
-576
-75
-960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3334
SELECT col2 + CAST( col2 * - col0 AS SIGNED ) FROM tab1
----
-108
-3591
-7584
skipif mysql # not compatible
query I rowsort label-3334
SELECT col2 + CAST ( col2 * - col0 AS INTEGER ) FROM tab1
----
-108
-3591
-7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT col1 + 58 + col1 * tab0.col2 AS col1 FROM tab0
----
252
2982
7611
query I rowsort
SELECT DISTINCT + col2 * - ( - tab0.col1 ) * tab0.col2 + col0 FROM tab0
----
132
611973
93678
onlyif mysql # use DIV operator for integer division
query I rowsort label-3338
SELECT ( - ( + col0 ) ) DIV - 51 + - 36 FROM tab0
----
-35
-36
-36
skipif mysql # not compatible
query I rowsort label-3338
SELECT ( - ( + col0 ) ) / - 51 + - 36 FROM tab0
----
-35
-36
-36
query I rowsort
SELECT DISTINCT ( + ( + col1 ) * 80 ) AS col1 FROM tab2
----
1360
2480
4720
query I rowsort
SELECT - ( tab0.col0 ) * - col2 + col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT + 1 AS col1 FROM tab1
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3342
SELECT + col2 + - col0 + col2 DIV 4 FROM tab2 AS cor0
----
-32
-46
26
skipif mysql # not compatible
query I rowsort label-3342
SELECT + col2 + - col0 + col2 / 4 FROM tab2 AS cor0
----
-32
-46
26
query I rowsort
SELECT ALL + col0 + - cor0.col0 AS col2 FROM tab2 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3344
SELECT ALL - ( + cor0.col2 ) DIV + col0 AS col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL - ( + cor0.col2 ) / + col0 AS col0 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT ALL 70 * col0 FROM tab0 AS cor0
----
1680
2450
6230
query I rowsort
SELECT col2 * + 95 AS col0 FROM tab0
----
3135
7790
95
query I rowsort
SELECT ALL + col2 * - 38 AS col1 FROM tab2 AS cor0
----
-1026
-1444
-988
query I rowsort
SELECT ALL cor0.col2 + - cor0.col2 + cor0.col2 FROM tab0 cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 * col0 + col0 col1 FROM tab0 AS cor0
----
-2208
-3220
-8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-3350
SELECT - cor0.col0 DIV cor0.col2 col2 FROM tab1 cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3350
SELECT - cor0.col0 / cor0.col2 col2 FROM tab1 cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3351
SELECT - col0 + - cor0.col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-3351
SELECT - col0 + - cor0.col1 / + col1 AS col2 FROM tab2 AS cor0
----
-79
-8
-80
query I rowsort
SELECT ALL + col0 + - 39 * + tab1.col1 AS col2 FROM tab1
----
-1011
-326
-427
query I rowsort
SELECT ALL tab2.col0 * col2 + ( col1 ) FROM tab2
----
2087
220
3019
query I rowsort
SELECT ALL + col0 + ( + col1 ) FROM tab1
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 83 col2 FROM tab0 AS cor0
----
-83
-83
-83
query I rowsort
SELECT col0 * + col0 + col2 * - 90 - col1 * - cor0.col0 FROM tab2 AS cor0
----
-2164
4164
8346
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 cor2
----
3645 values hashing to f464d40c605db608927f2c4d66190a23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 * col0 col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT 95 * ( tab1.col2 ) AS col2 FROM tab1
----
5130
5415
9120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3360
SELECT + CAST( 70 AS SIGNED ) * col1 FROM tab1 AS cor0
----
1820
700
910
skipif mysql # not compatible
query I rowsort label-3360
SELECT + CAST ( 70 AS INTEGER ) * col1 FROM tab1 AS cor0
----
1820
700
910
query I rowsort
SELECT col1 + + 39 * col1 AS col0 FROM tab1 AS cor0
----
1040
400
520
query I rowsort
SELECT col0 * - col0 - col1 * col0 AS col1 FROM tab2 AS cor0
----
-10686
-266
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-3363
SELECT col1 DIV 76 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3363
SELECT col1 / 76 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + 59 + + cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 655002971c263ae5d64b5ce13f889d91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 14 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-14
query I rowsort
SELECT ALL - + 39 * cor0.col2 FROM tab0 AS cor0
----
-1287
-3198
-39
query I rowsort
SELECT - 32 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6
query I rowsort
SELECT + col2 * + col0 * col1 + + col2 AS col1 FROM tab0 AS cor0
----
3396
664200
68145
query I rowsort
SELECT tab1.col1 * ( 87 ) FROM tab1
----
1131
2262
870
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 col1 FROM tab1, tab0, tab0 cor0, tab0 cor1
----
81 values hashing to 09fa7af42010457bb3c6ffd0dfea3bc8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3371
SELECT - col1 DIV + ( + cor0.col1 * - cor0.col1 ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3371
SELECT - col1 / + ( + cor0.col1 * - cor0.col1 ) FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + cor0.col2 col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ( + col1 ) * col0 + col2 - col2 AS col2 FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-3374
SELECT ALL col2 * col1 DIV - col2 - + ( tab0.col2 + col1 ) * - ( tab0.col1 ) AS col0 FROM tab0
----
10148
15652
9409
skipif mysql # not compatible
query I rowsort label-3374
SELECT ALL col2 * col1 / - col2 - + ( tab0.col2 + col1 ) * - ( tab0.col1 ) AS col0 FROM tab0
----
10148
15652
9409
query I rowsort
SELECT ALL + 35 + + col0 + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1133
-1366
-471
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) + col1 * 25 col0 FROM tab2 AS cor0
----
1501
463
802
query I rowsort
SELECT + - col0 * + col1 * + col2 - - col0 AS col0 FROM tab0 AS cor0
----
-3360
-664029
-68088
query I rowsort
SELECT ALL - col0 * + col1 + col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT cor2.col1 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0 cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 + col1 col0 FROM tab1 AS cor0
----
-19
-22
-6
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab2 cor1, tab0, tab0 cor2
----
3645 values hashing to f655b6f4c5b9ff73813030f2822ea1fd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 18 * col1 col2 FROM tab1 cor0
----
-180
-234
-468
query I rowsort
SELECT col1 * + 93 + + col1 FROM tab0 AS cor0
----
8084
8554
9118
query I rowsort
SELECT ALL + cor0.col2 - - col2 * + 30 FROM tab2 AS cor0
----
1178
806
837
query I rowsort
SELECT DISTINCT cor0.col1 * ( 87 ) FROM tab2 AS cor0
----
1479
2697
5133
query I rowsort
SELECT DISTINCT - col0 + 52 * + col1 + cor0.col0 FROM tab2 AS cor0
----
1612
3068
884
onlyif mysql # use DIV operator for integer division
query I rowsort label-3388
SELECT ALL + col0 DIV ( col1 ) + col1 AS col0 FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL + col0 / ( col1 ) + col1 AS col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT col0 + - ( 86 ) FROM tab2 AS cor0
----
-7
-79
-8
query I rowsort
SELECT ALL - 58 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a38440572743ed8a3d8af7b49a5388c9
query I rowsort
SELECT - col1 * col0 * 2 AS col2 FROM tab1 AS cor0
----
-1280
-156
-2080
query I rowsort
SELECT - 8 * + col2 FROM tab0 AS cor0
----
-264
-656
-8
query I rowsort
SELECT DISTINCT - col2 * col1 + + tab1.col1 FROM tab1
----
-1235
-1378
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - tab2.col1 col1 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * tab1.col2 + col0 col2 FROM tab1 WHERE NULL NOT IN ( col1 * + col0 * - col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3396
SELECT DISTINCT col0 DIV col2 + + tab0.col2 * col2 AS col1 FROM tab0
----
1089
36
6725
skipif mysql # not compatible
query I rowsort label-3396
SELECT DISTINCT col0 / col2 + + tab0.col2 * col2 AS col1 FROM tab0
----
1089
36
6725
query I rowsort
SELECT ALL + tab1.col1 * + tab1.col1 + col2 FROM tab1
----
157
265
730
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( col2 + + col2 )
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3399
SELECT 0 * tab2.col2 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3399
SELECT 0 * tab2.col2 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + col1 * col2 FROM tab0
----
2805
7380
96
query I rowsort
SELECT ALL + 36 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-3403
SELECT + 52 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3403
SELECT + 52 / - col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 10 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176
query I rowsort
SELECT + 83 * + col2 + col1 AS col2 FROM tab2
----
2217
2272
3171
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3406
SELECT 14 * - tab1.col0 + CAST( NULL AS DECIMAL ) * tab1.col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3406
SELECT 14 * - tab1.col0 + CAST ( NULL AS REAL ) * tab1.col1 FROM tab1
----
NULL
NULL
NULL
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 NOT IN ( + col1 )
----
query I rowsort
SELECT DISTINCT col0 * + tab1.col1 + col0 + col0 AS col2 FROM tab1
----
1200
768
84
query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE col2 * col0 + col2 * col0 IN ( tab1.col2 )
----
query I rowsort
SELECT DISTINCT col0 + + tab1.col1 * - tab1.col1 AS col0 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT col0 * col1 + - col0 * col2 AS col2 FROM tab1
----
-3008
-6640
-84
query I rowsort
SELECT - col0 + + col2 * col1 AS col2 FROM tab1 WHERE NULL BETWEEN col1 AND col0
----
query I rowsort
SELECT + col2 + + col0 * col2 + + tab1.col2 AS col2 FROM tab1
----
270
3762
7872
query I rowsort
SELECT DISTINCT col0 * + tab1.col1 + + col1 * - col1 * col0 AS col2 FROM tab1
----
-12480
-1950
-5760
query I rowsort
SELECT col0 FROM tab1 WHERE NULL <> ( NULL )
----
query I rowsort
SELECT ALL col1 * + col0 + - col2 AS col2 FROM tab1
----
24
583
944
query I rowsort
SELECT ALL - col2 * col0 - col0 * - col0 AS col1 FROM tab2
----
-140
3239
4056
query I rowsort
SELECT DISTINCT + col2 * col2 + col0 FROM tab2
----
1523
736
754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0 WHERE NULL NOT IN ( col2 )
----
query I rowsort
SELECT ALL col0 * col1 * tab1.col1 AS col1 FROM tab1 WHERE NULL >= NULL
----
query I rowsort
SELECT DISTINCT col0 + - col2 * col1 AS col1 FROM tab2
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-3422
SELECT col0 + - tab0.col2 DIV - col2 AS col0 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-3422
SELECT col0 + - tab0.col2 / - col2 AS col0 FROM tab0
----
25
36
90
query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE + col0 NOT IN ( col2 )
----
17
31
59
query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <> - col0
----
query I rowsort
SELECT + col0 * + col1 * - col0 + col0 FROM tab0
----
-118790
-49512
-720722
query I rowsort
SELECT col1 * col0 - + tab2.col0 AS col1 FROM tab2
----
1264
210
4524
query I rowsort
SELECT ALL col0 / col0 AS col1 FROM tab1 WHERE NOT col2 * col0 NOT IN ( - tab1.col0 )
----
query I rowsort
SELECT ALL col0 * col0 + + col0 * + col2 * col0 FROM tab0
----
19584
2450
657443
query I rowsort
SELECT - col0 - col2 * - col2 * tab2.col2 FROM tab2
----
17498
19676
54793
query I rowsort
SELECT DISTINCT - col0 * - col2 + col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT DISTINCT col1 * - col0 + col0 AS col1 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT - col2 * + col1 FROM tab2 WHERE ( NULL ) <> NULL
----
query I rowsort
SELECT + col0 + - col1 * col0 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT + tab0.col0 * + 21 AS col2 FROM tab0
----
1869
504
735
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( col0 ) col0 FROM tab0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 * - 29 + + col2 col2 FROM tab0
----
-1014
-2499
-663
query I rowsort
SELECT DISTINCT - tab2.col0 + cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to b032c2cb3f3f9c03ae8f2399010fea78
query I rowsort
SELECT - 21 + - col2 AS col0 FROM tab2 AS cor0
----
-47
-48
-59
query I rowsort
SELECT - col2 + col1 * col1 AS col1 FROM tab2 cor0
----
251
3455
934
query I rowsort
SELECT ALL + col2 * 77 AS col2 FROM tab2 AS cor0
----
2002
2079
2926
query I rowsort
SELECT 39 + - col0 AS col2 FROM tab1 cor0
----
-25
-41
36
query I rowsort
SELECT DISTINCT + - ( 10 ) - + col0 FROM tab2 AS cor0
----
-17
-88
-89
query I rowsort
SELECT ALL - col0 * + col0 + - col2 AS col0 FROM tab0 AS cor0
----
-1226
-609
-8003
query I rowsort
SELECT DISTINCT - 6 * - col2 + - col2 FROM tab1 AS cor0
----
270
285
480
onlyif mysql # use DIV operator for integer division
query I rowsort label-3445
SELECT + 75 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
0
2
75
skipif mysql # not compatible
query I rowsort label-3445
SELECT + 75 / cor0.col2 AS col1 FROM tab0 AS cor0
----
0
2
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - cor0.col2 col0 FROM tab0 AS cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * + col2 + - 28 col0 FROM tab0 AS cor0
----
-125
-2866
-7490
query I rowsort
SELECT ALL - 77 + + cor0.col0 FROM tab0 AS cor0
----
-42
-53
12
onlyif mysql # use DIV operator for integer division
query I rowsort label-3449
SELECT + ( + cor0.col1 ) DIV + col1 AS col2 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3449
SELECT + ( + cor0.col1 ) / + col1 AS col2 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - 75 * - col0 + 93 AS col1 FROM tab1 AS cor0
----
318
4893
6093
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3451
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3451
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + - 46 * - col0 FROM tab2 AS cor0
----
322
3588
3634
query I rowsort
SELECT - col1 * 38 + ( col1 ) * cor0.col0 FROM tab1 AS cor0
----
-910
260
546
onlyif mysql # use DIV operator for integer division
query I rowsort label-3454
SELECT DISTINCT + col0 + cor0.col1 DIV - 24 FROM tab0 AS cor0
----
21
31
86
skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT + col0 + cor0.col1 / - 24 FROM tab0 AS cor0
----
21
31
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-3455
SELECT ALL cor0.col2 + - col1 * cor0.col1 DIV col2 FROM tab1 AS cor0
----
42
56
95
skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL cor0.col2 + - col1 * cor0.col1 / col2 FROM tab1 AS cor0
----
42
56
95
query I rowsort
SELECT col0 * - 74 FROM tab2
----
-518
-5772
-5846
query I rowsort
SELECT ALL - col0 * - ( - col1 * - col1 ) AS col0 FROM tab2 AS cor0
----
22831
271518
6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col1 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT cor0.col0 + + col2 * + col2 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT + col0 - - 95 * 79 FROM tab1 AS cor0
----
7508
7569
7585
query I rowsort
SELECT DISTINCT + col0 * - 24 FROM tab0 AS cor0
----
-2136
-576
-840
query I rowsort
SELECT - col2 - - ( + col2 ) * col0 AS col2 FROM tab1 AS cor0
----
108
3591
7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3463
SELECT ALL col2 * - CAST( 60 + col0 AS DECIMAL ) * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL col2 * - CAST ( 60 + col0 AS REAL ) * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3464
SELECT ALL col1 * CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL col1 * CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort
SELECT - - cor0.col2 + ( col2 ) * + col0 + CAST ( col2 AS REAL ) FROM tab2 AS cor0
----
2080
243
3078
skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( - 69 AS REAL ) FROM tab0 AS cor0
----
-69
-69
-69
query I rowsort
SELECT ALL + 56 + + cor0.col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2008
-3339
-8043
query I rowsort
SELECT col0 + col0 * col1 AS col1 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT col1 * 75 + 9 * col1 * + col2 AS col0 FROM tab0
----
31992
73983
8148
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 * CAST ( col2 AS INTEGER ) * col0 + CAST ( col2 AS REAL ) col1 FROM tab1
----
207993
737376
8802
query I rowsort
SELECT + 51 * col1 AS col2 FROM tab2 AS cor0
----
1581
3009
867
query I rowsort
SELECT DISTINCT - col2 - - cor0.col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT ALL + 88 * col1 * 63 AS col2 FROM tab2 AS cor0
----
171864
327096
94248
query I rowsort
SELECT ALL 82 * 44 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2f0d2b9c3a79ba5429c30d71424b896d
query I rowsort
SELECT + 92 + + col0 FROM tab1 AS cor0
----
156
172
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 + col1 * ( + col1 ) col2 FROM tab1
----
128
197
704
query I rowsort
SELECT + tab0.col2 AS col2 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT 90 + - col2 * col1 AS col0 FROM tab1 AS cor0
----
-1158
-1314
-480
query I rowsort
SELECT DISTINCT - 13 * - col0 AS col2 FROM tab1 AS cor0
----
1040
39
832
query I rowsort
SELECT DISTINCT + 31 AS col0 FROM tab0, tab2 AS cor0
----
31
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0, tab1 AS cor2
----
3645 values hashing to ea1a922b7fccb9d184b31eb4689e063b
query I rowsort
SELECT col1 + ( + col0 ) * + col0 * + col0 AS col1 FROM tab0
----
13910
42972
705060
query I rowsort
SELECT DISTINCT - 0 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + col0 + col1 * col0 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT ALL + 61 * + col0 FROM tab1
----
183
3904
4880
query I rowsort
SELECT - cor0.col2 + + 27 FROM tab1, tab0 AS cor0
----
9 values hashing to b20191c2bfd0493307d0e1966b9e5006
query I rowsort
SELECT DISTINCT + 6 * col1 AS col1 FROM tab0 AS cor0
----
516
546
582
query I rowsort
SELECT DISTINCT col2 * + col0 * - col0 AS col1 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT ALL - 45 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371
query I rowsort
SELECT DISTINCT + 64 FROM tab1, tab0, tab2 AS cor0, tab2
----
64
query I rowsort
SELECT ALL - 42 * + 9 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to d4eb14663371284a43201c028a7773e8
query I rowsort
SELECT + col1 + + 40 * - col1 AS col0 FROM tab0 AS cor0
----
-3354
-3549
-3783
query I rowsort
SELECT + col0 * cor0.col2 + - col1 AS col0 FROM tab1 AS cor0
----
136
3638
7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT DISTINCT + - col2 - - col0 AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT - 55 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-114
-72
-86
query I rowsort
SELECT - cor0.col1 * + col0 + col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT - - col2 * + ( - col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - - 33 * col0 * col1 AS col1 FROM tab0 cor0
----
112035
267267
68112
query I rowsort
SELECT + 25 * col0 AS col0 FROM tab2 AS cor0
----
175
1950
1975
query I rowsort
SELECT cor0.col1 * - 83 + + col0 * - col0 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-2230
469655
491628
query I rowsort
SELECT DISTINCT + - cor0.col0 - col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT - 0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT col0 * + 92 AS col1 FROM tab1 AS cor0
----
276
5888
7360
query I rowsort
SELECT + col2 * + col1 * col0 AS col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL - - col2 * - col1 AS col0 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT col2 + - col2 * ( + col1 ) FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT 2 AS col1 FROM tab2, tab2 AS cor0
----
2
query I rowsort
SELECT ALL 56 + - col1 AS col1 FROM tab1 cor0
----
30
43
46
query I rowsort
SELECT DISTINCT + col2 + + col2 - - col2 FROM tab2 AS cor0
----
114
78
81
query I rowsort
SELECT DISTINCT 24 + cor0.col1 + - 99 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-49
-62
-65
query I rowsort
SELECT tab1.col0 * - col1 + col0 * col0 FROM tab1
----
-69
3456
5360
onlyif mysql # use DIV operator for integer division
query I rowsort label-3513
SELECT ALL + col2 DIV - cor0.col0 AS col2 FROM tab1 cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL + col2 / - cor0.col0 AS col2 FROM tab1 cor0
----
-1
-18
0
query I rowsort
SELECT DISTINCT 44 * 47 AS col1 FROM tab1
----
2068
query I rowsort
SELECT + + col1 * col2 + 90 + + col2 AS col2 FROM tab0 AS cor0
----
188
2961
7634
query I rowsort
SELECT ALL + 11 * col0 AS col2 FROM tab2 AS cor0
----
77
858
869
query I rowsort
SELECT + col1 * col2 + + col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL + 53 FROM tab0, tab0 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT - + col0 - col2 AS col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT + 7 + col0 AS col1 FROM tab0 AS cor0
----
31
42
96
query I rowsort
SELECT ALL + col0 + - 52 * col2 - + col2 FROM tab0
----
-1725
-18
-4257
query I rowsort
SELECT DISTINCT + col0 - 66 * col2 FROM tab0
----
-2154
-31
-5323
query I rowsort
SELECT ALL 64 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3524
SELECT col2 DIV 89 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3524
SELECT col2 / 89 FROM tab1
----
0
0
1
query I rowsort
SELECT + col1 * col1 + - col2 AS col0 FROM tab0
----
7363
8199
9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-3526
SELECT + col1 DIV + 19 AS col0 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3526
SELECT + col1 / + 19 AS col0 FROM tab1
----
0
0
1
query I rowsort
SELECT + ( 26 ) * + col0 FROM tab0
----
2314
624
910
query I rowsort
SELECT col2 - col2 * col0 AS col0 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT col2 + - col2 * - 37 AS col2 FROM tab1 AS cor0
----
2052
2166
3648
query I rowsort
SELECT ( + col2 ) * col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL cor0.col0 + cor0.col2 * ( 31 ) AS col1 FROM tab1 AS cor0
----
1677
1831
3056
query I rowsort
SELECT DISTINCT + 0 AS col1 FROM tab1 cor0
----
0
query I rowsort
SELECT DISTINCT col1 + col1 + + ( + tab0.col0 ) FROM tab0
----
196
229
271
query I rowsort
SELECT + 79 * col2 * + col1 AS col0 FROM tab0 AS cor0
----
224202
589498
7663
query I rowsort
SELECT tab1.col2 + col0 * col1 AS col1 FROM tab1
----
1136
132
697
query I rowsort
SELECT + col2 * 16 FROM tab2 AS cor0
----
416
432
608
query I rowsort
SELECT 44 * + tab1.col0 - ( col1 ) AS col0 FROM tab1
----
106
2806
3507
query I rowsort
SELECT DISTINCT - col0 * + col2 + col0 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT ALL + tab0.col2 * - col1 * 87 FROM tab0
----
-246906
-649194
-8439
query I rowsort
SELECT DISTINCT + + col2 * + col2 + ( - 9 ) AS col0 FROM tab2 AS cor0
----
1435
667
720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 + - 35 * - col2 col0 FROM tab1
----
1355
1812
2320
query I rowsort
SELECT ALL 6 + col1 FROM tab0
----
103
92
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3543
SELECT col2 * col1 + 61 + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3543
SELECT col2 * col1 + 61 + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + - 20 + ( - cor0.col2 ) * + 78 * + 27 FROM tab2 cor0
----
-54698
-56875
-79969
query I rowsort
SELECT DISTINCT + col0 + col0 * + 34 FROM tab0 AS cor0
----
1225
3115
840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + col2 + col2 col1 FROM tab0 AS cor0
----
253
37
90
query I rowsort
SELECT ALL + col2 + 96 AS col0 FROM tab1 AS cor0
----
150
153
192
query I rowsort
SELECT ALL + 64 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT ALL 97 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
onlyif mysql # use DIV operator for integer division
query I rowsort label-3550
SELECT DISTINCT + col1 DIV CAST( - col0 AS SIGNED ) AS col2 FROM tab1
----
-8
0
skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT + col1 / CAST ( - col0 AS INTEGER ) AS col2 FROM tab1
----
-8
0
query I rowsort
SELECT ALL - col2 - - ( + col0 + col2 ) AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT cor0.col1 + + col1 * + 22 AS col2 FROM tab2 AS cor0
----
1357
391
713
query I rowsort
SELECT - col0 + col1 + col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT col1 + + 56 FROM tab0 cor0
----
142
147
153
query I rowsort
SELECT ALL col2 * - col0 + 84 + cor0.col0 FROM tab1 AS cor0
----
-3500
-75
-7516
query I rowsort
SELECT ALL col0 * + ( col2 ) + + col0 * - 71 + col0 AS col2 FROM tab0 cor0
----
-2415
-888
1068
query I rowsort
SELECT DISTINCT ( 79 ) * cor0.col0 - - col0 AS col1 FROM tab1 AS cor0
----
240
5120
6400
query I rowsort
SELECT DISTINCT - 85 * col1 + col1 * ( - 93 * col1 ) AS col0 FROM tab1 AS cor0
----
-10150
-16822
-65078
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab2, tab0 AS cor1
----
3645 values hashing to 489b7b2b5c4980d50e86e51be30361c3
query I rowsort
SELECT col0 + col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT ALL 92 + + col0 + + col2 * + col1 FROM tab1 cor0
----
1420
1499
726
query I rowsort
SELECT DISTINCT 25 + cor0.col1 FROM tab1 AS cor0
----
35
38
51
query I rowsort
SELECT ALL + ( + 81 ) * - col2 + col0 AS col1 FROM tab2 AS cor0
----
-2028
-2180
-2999
onlyif mysql # use DIV operator for integer division
query I rowsort label-3564
SELECT ALL - + col1 + cor0.col2 DIV col1 FROM tab2 AS cor0
----
-15
-31
-59
skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL - + col1 + cor0.col2 / col1 FROM tab2 AS cor0
----
-15
-31
-59
query I rowsort
SELECT DISTINCT - col2 * col1 * + cor0.col0 + 82 AS col0 FROM tab2 AS cor0
----
-119570
-50952
-5777
query I rowsort
SELECT ALL - 77 * + col0 FROM tab2 AS cor0
----
-539
-6006
-6083
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3567
SELECT ALL - + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL - + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col2 * cor0.col1 + - col1 AS col0 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT DISTINCT - col2 * 69 FROM tab2 AS cor0
----
-1794
-1863
-2622
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3570
SELECT ALL + col0 * cor0.col2 + CAST( ( col1 ) AS SIGNED ) * cor0.col2 FROM tab2 AS cor0
----
1026
3562
3648
skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL + col0 * cor0.col2 + CAST ( ( col1 ) AS INTEGER ) * cor0.col2 FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT col1 * + col0 - 99 * - col2 AS col1 FROM tab0 AS cor0
----
16217
3494
5331
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3572
SELECT ALL + 9 * - col2 - - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-273
-649
26
skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL + 9 * - col2 - - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-273
-649
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-3573
SELECT ALL - col2 + + col1 DIV col1 AS col2 FROM tab2 AS cor0
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL - col2 + + col1 / col1 AS col2 FROM tab2 AS cor0
----
-25
-26
-37
query I rowsort
SELECT ALL ( col0 ) * cor0.col1 + 66 * - col2 FROM tab0 AS cor0
----
-114
2687
3329
query I rowsort
SELECT DISTINCT + - col2 + col1 AS col2 FROM tab1 cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-3576
SELECT + col2 * + col1 - + col2 DIV + col0 FROM tab2 cor0
----
1534
646
834
skipif mysql # not compatible
query I rowsort label-3576
SELECT + col2 * + col1 - + col2 / + col0 FROM tab2 cor0
----
1534
646
834
query I rowsort
SELECT ALL col1 - 11 * col0 FROM tab1
----
-694
-7
-867
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) + col1 col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + tab0.col0 * 12 AS col1 FROM tab0
----
1068
288
420
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 ALL - ( + 4 ) FROM tab0, tab2, tab0 cor0, tab1
----
81 values hashing to df0306664dfa9962994889ea8d5edc5a
query I rowsort
SELECT 21 + 26 * - col0 * 75 FROM tab1 AS cor0
----
-124779
-155979
-5829
query I rowsort
SELECT ( + cor0.col1 ) * col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - col2 + + ( + cor0.col2 ) * - col2 AS col0 FROM tab2 AS cor0
----
-1482
-702
-756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col2 ) * - col1 col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * + col0 AS col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT + ( - 5 ) FROM tab1 cor0
----
-5
-5
-5
query I rowsort
SELECT DISTINCT - 48 * cor0.col2 FROM tab2 AS cor0
----
-1248
-1296
-1824
query I rowsort
SELECT ALL + 49 + + col0 AS col1 FROM tab2 AS cor0
----
127
128
56
query I rowsort
SELECT - cor0.col2 * col0 + - col2 FROM tab0 cor0
----
-36
-7380
-825
query I rowsort
SELECT - cor0.col2 * - col2 + 3 FROM tab2 cor0
----
1447
679
732
query I rowsort
SELECT - col2 * - col1 + col2 AS col0 FROM tab2 cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT col1 + col1 - + 26 AS col2 FROM tab0 AS cor0
----
146
156
168
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3594
SELECT + + col1 * + col1 + - CAST( 62 + col1 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
20124
22204
24832
skipif mysql # not compatible
query I rowsort label-3594
SELECT + + col1 * + col1 + - CAST ( 62 + col1 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
20124
22204
24832
query I rowsort
SELECT - 35 + cor0.col1 FROM tab2 AS cor0
----
-18
-4
24
query I rowsort
SELECT - + col2 + 51 FROM tab1 AS cor0
----
-3
-45
-6
query I rowsort
SELECT + cor0.col0 * - col1 * + col1 AS col2 FROM tab1 AS cor0
----
-13520
-2028
-6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT col1 * - 49 * + ( + col1 ) + + col0 FROM tab2 AS cor0
----
-14082
-170491
-47082
query I rowsort
SELECT - + col0 * - 24 + + 32 AS col1 FROM tab2 cor0
----
1904
1928
200
query I rowsort
SELECT + col2 * + col2 * - col2 - col1 FROM tab1 AS cor0
----
-157490
-185203
-884749
query I rowsort
SELECT + col0 * - col1 * - 5 AS col1 FROM tab2 AS cor0
----
1085
23010
6715
query I rowsort
SELECT + col0 * col0 * col0 AS col2 FROM tab2 AS cor0
----
343
474552
493039
onlyif mysql # use DIV operator for integer division
query I rowsort label-3604
SELECT ALL col2 DIV + col2 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL col2 / + col2 FROM tab0 cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - col1 ) col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + - 50 * + 90 AS col0 FROM tab2 AS cor0
----
-4500
-4500
-4500
query I rowsort
SELECT + - col0 + 44 AS col0 FROM tab2 AS cor0
----
-34
-35
37
query I rowsort
SELECT - 74 * cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64946a9000f012655e306e12de0016fa
query I rowsort
SELECT - 32 * col1 - - col1 FROM tab0 AS cor0
----
-2666
-2821
-3007
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3610
SELECT + 58 - - col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3610
SELECT + 58 - - col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3611
SELECT + col2 DIV col2 - + col2 col1 FROM tab0 AS cor0
----
-32
-81
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3611
SELECT + col2 / col2 - + col2 col1 FROM tab0 AS cor0
----
-32
-81
0
query I rowsort
SELECT - - col0 + cor0.col1 * col2 AS col0 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT + 19 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
19
query I rowsort
SELECT - tab0.col1 * col0 + col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT + - 53 FROM tab0, tab2, tab0 cor0
----
-53
query I rowsort
SELECT 59 + + cor0.col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 442fe1b969adf25d697837db8aab0c8a
query I rowsort
SELECT + col0 + col0 - + col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - + col2 * - col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL + cor0.col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT - + col2 * col0 + 87 * + ( col0 * col2 ) + + ( col2 ) FROM tab0 AS cor0
----
3011
627710
68145
query I rowsort
SELECT - 23 + + col1 FROM tab0
----
63
68
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3622
SELECT ALL - CAST( col0 AS SIGNED ) * - col1 + - col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010
skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL - CAST ( col0 AS INTEGER ) * - col1 + - col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 * - col0 * - ( col0 ) FROM tab1 AS cor0
----
262201
512096
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 19 ) - col0 col0 FROM tab1 AS cor0
----
-45
-61
16
query I rowsort
SELECT + cor0.col0 * + col2 - col2 * + 33 FROM tab1 AS cor0
----
-1620
1767
4512
query I rowsort
SELECT + - 13 + col2 * col2 * + 58 FROM tab1 cor0
----
169115
188429
534515
query I rowsort
SELECT 98 * ( col0 ) * col2 AS col1 FROM tab0
----
3430
715204
77616
query I rowsort
SELECT DISTINCT 99 FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
99
query I rowsort
SELECT ALL ( cor0.col1 ) - col1 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + ( + 14 ) * - col1 + ( + col1 + - col1 ) AS col2 FROM tab1 AS cor0
----
-140
-182
-364
query I rowsort
SELECT ALL - 49 * - col2 + col2 + col2 FROM tab0 AS cor0
----
1683
4182
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-3632
SELECT DISTINCT - col0 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT - col0 / cor0.col1 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + 66 * col1 * + ( cor0.col2 ) FROM tab1 AS cor0
----
37620
82368
92664
onlyif mysql # use DIV operator for integer division
query I rowsort label-3634
SELECT + col2 + col2 DIV col2 AS col1 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-3634
SELECT + col2 + col2 / col2 AS col1 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT col1 - 99 FROM tab1
----
-73
-86
-89
query I rowsort
SELECT + + col1 * col2 + col1 * - col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab0, tab0 AS cor0, tab0 cor1, tab2 AS cor2
----
86
91
97
query I rowsort
SELECT ALL cor1.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT DISTINCT + + col0 + - ( col1 ) * + col2 * + 75 AS col0 FROM tab2 cor0
----
-114972
-48371
-62768
query I rowsort
SELECT DISTINCT - cor0.col2 * col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT ALL + col1 + + 73 * + col2 * - col2 FROM tab0
----
-490761
-79411
24
query I rowsort
SELECT + col1 + - 26 * - tab0.col1 + + col2 FROM tab0
----
2355
2539
2620
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + cor0.col1 + + col0 col2 FROM tab0 AS cor0
----
134
167
269
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3644
SELECT DISTINCT + col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + col2 + 24 AS col1 FROM tab0 AS cor0
----
106
25
57
query I rowsort
SELECT DISTINCT + 29 AS col0 FROM tab2, tab2 AS cor0
----
29
query I rowsort
SELECT DISTINCT ( col0 ) * col1 * - col0 + - col1 * - col0 FROM tab0 cor0
----
-115430
-47472
-712712
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3648
SELECT - + CAST( - col0 AS SIGNED ) - - cor0.col2 * col1 FROM tab2 AS cor0
----
1612
725
844
skipif mysql # not compatible
query I rowsort label-3648
SELECT - + CAST ( - col0 AS INTEGER ) - - cor0.col2 * col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL col2 + + col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL - - ( + col1 ) + + cor0.col2 + - ( - col1 ) FROM tab0 AS cor0
----
195
205
264
query I rowsort
SELECT DISTINCT + 33 * - col0 FROM tab0 AS cor0
----
-1155
-2937
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 * 82 col1 FROM tab2 AS cor0
----
2378
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3653
SELECT CAST( - 65 AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
-30
-41
24
skipif mysql # not compatible
query I rowsort label-3653
SELECT CAST ( - 65 AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
-30
-41
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-3654
SELECT ALL - - col1 + 51 DIV col2 AS col0 FROM tab0 cor0
----
148
87
91
skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL - - col1 + 51 / col2 AS col0 FROM tab0 cor0
----
148
87
91
query I rowsort
SELECT ALL - col1 * - col0 + + col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-3656
SELECT DISTINCT - col0 * ( 99 ) DIV + col1 - + col1 AS col2 FROM tab2
----
-189
-477
-53
skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT - col0 * ( 99 ) / + col1 - + col1 AS col2 FROM tab2
----
-189
-477
-53
query I rowsort
SELECT DISTINCT col2 * - col0 - 9 FROM tab0
----
-44
-7307
-801
query I rowsort
SELECT DISTINCT - col0 - col1 AS col0 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT DISTINCT + 0 * + cor0.col1 FROM tab2, tab2 AS cor0
----
0
query I rowsort
SELECT ALL 66 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT + 72 * + col0 FROM tab2 AS cor0
----
504
5616
5688
query I rowsort
SELECT cor0.col1 * - 72 + col2 * col2 * + col0 AS col1 FROM tab1 AS cor0
----
207216
6876
736344
query I rowsort
SELECT col1 - - col2 * col0 AS col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT col0 * col0 + col1 * + cor0.col2 FROM tab0 AS cor0
----
1322
15383
3414
query I rowsort
SELECT ALL + - col2 * col0 + col0 - - col2 AS col1 FROM tab1 AS cor0
----
-105
-3527
-7504
onlyif mysql # use DIV operator for integer division
query I rowsort label-3666
SELECT col1 * cor0.col0 + col0 * col2 DIV - 38 FROM tab1 AS cor0
----
544
74
838
skipif mysql # not compatible
query I rowsort label-3666
SELECT col1 * cor0.col0 + col0 * col2 / - 38 FROM tab1 AS cor0
----
544
74
838
query I rowsort
SELECT cor1.col1 + 14 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6abd7ac533868bd2e7ec9bae70c264ab
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + cor0.col1 col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL + - 40 * col0 - - col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1716
-2444
449
query I rowsort
SELECT 94 + cor0.col2 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to e8cf7d8eb014743fc75cc93110ba62f4
query I rowsort
SELECT ALL - 75 + - tab1.col0 AS col0 FROM tab1
----
-139
-155
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3672
SELECT - CAST( NULL AS SIGNED ) + + col0 * - col1 + + col0 * 19 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3672
SELECT - CAST ( NULL AS INTEGER ) + + col0 * - col1 + + col0 * 19 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 30 + 28 AS col2 FROM tab0
----
58
58
58
query I rowsort
SELECT - ( tab2.col1 + col1 ) FROM tab2
----
-118
-34
-62
query I rowsort
SELECT ALL - col0 * + cor0.col0 * + col2 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT DISTINCT - 39 * - col1 FROM tab2
----
1209
2301
663
query I rowsort
SELECT + 5 + col1 FROM tab0
----
102
91
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3678
SELECT col1 + - col0 DIV - col0 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-3678
SELECT col1 + - col0 / - col0 FROM tab1
----
11
14
27
query I rowsort
SELECT + 52 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1, tab1 AS cor2, tab2 AS cor3
----
243 values hashing to 168bbc8293a8c2e376fb7b7f70690cc6
onlyif mysql # use DIV operator for integer division
query I rowsort label-3680
SELECT - cor0.col1 DIV + 56 col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3680
SELECT - cor0.col1 / + 56 col0 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3681
SELECT ALL - + col1 * CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL - + col1 * CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3682
SELECT DISTINCT + - col2 DIV 43 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3682
SELECT DISTINCT + - col2 / 43 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col1 + + CAST ( + 9 AS REAL ) * col0 AS col2 FROM tab1 AS cor0
----
53
586
733
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3684
SELECT ALL - col1 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL - col1 + + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * col1 * + col2 FROM tab1 AS cor0
----
-16224
-36504
-5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-3686
SELECT ALL col1 DIV 26 AS col0 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL col1 / 26 AS col0 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + col0 * + 44 FROM tab2 cor0
----
308
3432
3476
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 + col1 col2 FROM tab2 AS cor0
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 * cor0.col2 col0 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT - + 15 AS col1 FROM tab1 AS cor0
----
-15
-15
-15
query I rowsort
SELECT col0 * + 80 FROM tab0
----
1920
2800
7120
query I rowsort
SELECT ALL - ( col2 ) * col1 AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ( col2 ) + - tab1.col1 + - col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT 18 * 2 AS col2 FROM tab2
----
36
36
36
query I rowsort
SELECT - 68 * + col2 AS col2 FROM tab1
----
-3672
-3876
-6528
query I rowsort
SELECT - 20 * - cor0.col1 AS col0 FROM tab1 cor0
----
200
260
520
query I rowsort
SELECT - - 51 + col1 * - col0 FROM tab2 AS cor0
----
-1292
-166
-4551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 24 col2 FROM tab1 cor0
----
24
24
24
query I rowsort
SELECT DISTINCT + tab2.col0 + tab2.col1 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT cor0.col2 - col1 AS col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT + col0 * 22 AS col1 FROM tab2 AS cor0
----
154
1716
1738
query I rowsort
SELECT ALL - col1 + ( - col0 ) * col1 AS col0 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT + tab1.col2 * + 31 FROM tab1
----
1674
1767
2976
query I rowsort
SELECT DISTINCT - + col2 * col1 * + col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT + col2 * cor0.col2 - col1 * + col0 FROM tab1 AS cor0
----
2609
2838
8176
query I rowsort
SELECT ALL col2 * - 53 * - col1 AS col2 FROM tab0 cor0
----
150414
395486
5141
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae
query I rowsort
SELECT DISTINCT - col2 - tab0.col2 * + col1 AS col0 FROM tab0
----
-2871
-7544
-98
query I rowsort
SELECT + col0 * col1 - + col2 FROM tab0 AS cor0
----
2031
3394
8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-3710
SELECT + col0 DIV col0 + col0 - col0 * col2 FROM tab0
----
-7208
-767
1
skipif mysql # not compatible
query I rowsort label-3710
SELECT + col0 / col0 + col0 - col0 * col2 FROM tab0
----
-7208
-767
1
query I rowsort
SELECT DISTINCT col2 + col2 + col2 AS col0 FROM tab2 AS cor0
----
114
78
81
query I rowsort
SELECT col0 * + col2 + + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776
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 + + col0 * + col0 + + col2 AS col2 FROM tab1 AS cor0
----
4153
63
6496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 + - col1 * + col1 + + col2 col0 FROM tab0 AS cor0
----
-6571
-901
-9373
query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT ( col0 * col1 * col0 ) IN ( + col0 / - col1 )
----
7
78
79
query I rowsort
SELECT DISTINCT - col1 * - col1 * - col2 - col1 AS col0 FROM tab2 AS cor0
----
-10999
-25978
-90565
query I rowsort
SELECT - - cor0.col0 + + col0 * col1 AS col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL col1 * - col0 * + col2 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT + - col2 + - col1 * + col1 * col1 AS col1 FROM tab1 AS cor0
----
-1057
-17630
-2293
query I rowsort
SELECT ALL cor0.col0 * + cor0.col1 - col1 * + col1 * + col0 AS col0 FROM tab0 AS cor0
----
-175440
-325920
-728910
onlyif mysql # use DIV operator for integer division
query I rowsort label-3722
SELECT - - col1 DIV col1 + - col1 FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-3722
SELECT - - col1 / col1 + - col1 FROM tab0 AS cor0
----
-85
-90
-96
query I rowsort
SELECT + col1 - cor0.col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 * col0 AS col2 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - + cor0.col2 * - col0 + cor0.col0 * + col1 FROM tab2 AS cor0
----
406
4345
6630
query I rowsort
SELECT DISTINCT - 46 - - col0 AS col0 FROM tab2
----
-39
32
33
query I rowsort
SELECT - ( - 15 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - tab0.col0 col1 FROM tab0
----
-34
-7
9
query I rowsort
SELECT DISTINCT col1 * 17 + - col2 + - col1 FROM tab0
----
1343
1374
1551
query I rowsort
SELECT + col1 * 5 + col1 FROM tab2 AS cor0
----
102
186
354
query I rowsort
SELECT ALL + col0 + col0 * col1 FROM tab1
----
1120
704
81
query I rowsort
SELECT DISTINCT + 20 FROM tab2, tab2 AS cor0, tab2 cor1
----
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-3733
SELECT DISTINCT + col1 * + CAST( - 15 * - col0 AS SIGNED ) + - col2 DIV ( col0 ) AS col1 FROM tab2 AS cor0
----
20145
3252
69030
skipif mysql # not compatible
query I rowsort label-3733
SELECT DISTINCT + col1 * + CAST ( - 15 * - col0 AS INTEGER ) + - col2 / ( col0 ) AS col1 FROM tab2 AS cor0
----
20145
3252
69030
query I rowsort
SELECT ALL + col1 * + 89 AS col0 FROM tab0 cor0
----
7654
8099
8633
query I rowsort
SELECT col0 * - ( 49 ) AS col1 FROM tab1 AS cor0
----
-147
-3136
-3920
query I rowsort
SELECT ALL - cor0.col0 * + cor0.col1 + - col0 AS col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-3737
SELECT ALL + cor0.col0 * col2 + + col1 * + col0 DIV + col0 FROM tab2 AS cor0
----
2087
220
3019
skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL + cor0.col0 * col2 + + col1 * + col0 / + col0 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3738
SELECT DISTINCT + col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT + col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + + col1 - - 67 FROM tab1 AS cor0
----
77
80
93
query I rowsort
SELECT 63 + - ( + tab0.col1 ) * tab0.col1 AS col0 FROM tab0
----
-7333
-8218
-9346
query I rowsort
SELECT DISTINCT ( - 74 ) AS col2 FROM tab2
----
-74
query I rowsort
SELECT ALL - cor0.col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT 84 + + col1 * col1 AS col1 FROM tab2
----
1045
3565
373
query I rowsort
SELECT ALL - cor0.col1 * - col1 + - col0 + ( col2 ) AS col2 FROM tab0 AS cor0
----
7405
8274
9375
query I rowsort
SELECT - - 21 * - cor0.col0 * + col2 AS col1 FROM tab2 AS cor0
----
-3969
-42588
-63042
query I rowsort
SELECT DISTINCT + 79 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-2607
-6478
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 + col1 + col0 col0 FROM tab0 AS cor0
----
167
189
237
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3748
SELECT ALL + 8 + cor0.col1 * + CAST( ( col1 ) AS SIGNED ) + - 57 AS col1 FROM tab0 AS cor0
----
7347
8232
9360
skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL + 8 + cor0.col1 * + CAST ( ( col1 ) AS INTEGER ) + - 57 AS col1 FROM tab0 AS cor0
----
7347
8232
9360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) + col1 * - col1 col2 FROM tab1 cor0
----
-157
-265
-730
query I rowsort
SELECT ALL 41 * col2 + 94 AS col0 FROM tab2 AS cor0
----
1160
1201
1652
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 col0 FROM tab2 cor0
----
68
68
68
query I rowsort
SELECT ALL + col0 * - col1 * - col1 AS col2 FROM tab1 AS cor0
----
13520
2028
6400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3753
SELECT + col0 * col2 + + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
188
3658
7693
skipif mysql # not compatible
query I rowsort label-3753
SELECT + col0 * col2 + + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT - 34 * cor0.col1 + 13 AS col2 FROM tab2 AS cor0
----
-1041
-1993
-565
query I rowsort
SELECT - col2 - + tab0.col2 AS col0 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT + + col2 * + cor0.col1 + 68 AS col1 FROM tab1 AS cor0
----
1316
1472
638
query I rowsort
SELECT ALL - col0 * col0 * + 50 + - cor0.col2 + col2 * - col0 FROM tab1 AS cor0
----
-208505
-327776
-666
query I rowsort
SELECT DISTINCT 10 FROM tab0 cor0
----
10
query I rowsort
SELECT ALL + + 78 + + col1 AS col1 FROM tab0 AS cor0
----
164
169
175
query I rowsort
SELECT DISTINCT - + 61 + col1 FROM tab1 AS cor0
----
-35
-48
-51
query I rowsort
SELECT + - 55 AS col2 FROM tab0 AS cor0
----
-55
-55
-55
query I rowsort
SELECT ALL - 90 + + cor0.col0 FROM tab1, tab1 AS cor0, tab0 cor1, tab2 AS cor2
----
81 values hashing to 371fe9324a1f444d452c2a9953a08121
query I rowsort
SELECT ALL - col1 * + cor0.col0 + - ( - ( + col1 ) ) AS col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT + + col0 + - col0 * + ( col0 ) AS col0 FROM tab1 cor0
----
-4032
-6
-6320
query I rowsort
SELECT DISTINCT 26 * col2 AS col0 FROM tab2
----
676
702
988
query I rowsort
SELECT ALL + 67 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a
onlyif mysql # use DIV operator for integer division
query I rowsort label-3767
SELECT col1 DIV + col1 + ( 81 ) FROM tab2
----
82
82
82
skipif mysql # not compatible
query I rowsort label-3767
SELECT col1 / + col1 + ( 81 ) FROM tab2
----
82
82
82
query I rowsort
SELECT DISTINCT + ( col1 ) * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - 26 + + 86 + + col1 AS col2 FROM tab2 AS cor0
----
119
77
91
query I rowsort
SELECT ( + 44 ) * - col2 + cor0.col0 * - col0 AS col0 FROM tab0 AS cor0
----
-11529
-1269
-2028
query I rowsort
SELECT DISTINCT + 17 * col0 AS col0 FROM tab0 AS cor0
----
1513
408
595
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3772
SELECT CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3772
SELECT CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3773
SELECT + 50 DIV col0 + - cor0.col0 FROM tab1 AS cor0
----
-64
-80
13
skipif mysql # not compatible
query I rowsort label-3773
SELECT + 50 / col0 + - cor0.col0 FROM tab1 AS cor0
----
-64
-80
13
query I rowsort
SELECT ALL - col1 * + col1 + col2 AS col0 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT ALL + + cor0.col0 * - col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + + col0 * - col1 + col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT + 30 * + col2 FROM tab0 AS cor0
----
2460
30
990
query I rowsort
SELECT DISTINCT 95 + - col1 AS col0 FROM tab2 AS cor0
----
36
64
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3779
SELECT ALL tab0.col0 DIV - 22 + col1 + col2 AS col0 FROM tab0
----
118
169
97
skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL tab0.col0 / - 22 + col1 + col2 AS col0 FROM tab0
----
118
169
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT 37 AS col2 FROM tab2, tab1 cor0, tab1, tab0 AS cor1
----
81 values hashing to b8def841e97863779a391f3a05d3eb92
query I rowsort
SELECT + cor0.col0 * - col0 + col1 FROM tab0 cor0
----
-1128
-490
-7830
query I rowsort
SELECT DISTINCT + 48 + 59 FROM tab1 AS cor0
----
107
query I rowsort
SELECT DISTINCT col1 * - 66 FROM tab1 AS cor0
----
-1716
-660
-858
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3786
SELECT ALL col1 * cor0.col2 + + col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3786
SELECT ALL col1 * cor0.col2 + + col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 82 * col2 * + col2 AS col1 FROM tab1
----
239112
266418
755712
query I rowsort
SELECT ALL + tab2.col1 * 90 AS col0 FROM tab2
----
1530
2790
5310
query I rowsort
SELECT - col0 * - cor0.col1 - - cor0.col0 FROM tab1 AS cor0
----
1120
704
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-3790
SELECT DISTINCT col0 DIV col0 - tab2.col2 FROM tab2
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT col0 / col0 - tab2.col2 FROM tab2
----
-25
-26
-37
query I rowsort
SELECT + - ( col0 ) + col0 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3792
SELECT ALL + col0 * + cor0.col0 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL + col0 * + cor0.col0 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col2 + + cor0.col2 + - cor0.col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + ( col1 ) * col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT - 99 + + col0 FROM tab1 AS cor0
----
-19
-35
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3796
SELECT ALL - - col1 DIV - cor0.col1 + - cor0.col2 + - col2 AS col1 FROM tab0 AS cor0
----
-165
-3
-67
skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL - - col1 / - cor0.col1 + - cor0.col2 + - col2 AS col1 FROM tab0 AS cor0
----
-165
-3
-67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3797
SELECT ALL + - col1 * + col0 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL + - col1 * + col0 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 82 AS col0 FROM tab1, tab0 AS cor0
----
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 * tab2.col2 col0 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT - col2 * 87 * col1 AS col0 FROM tab0 cor0
----
-246906
-649194
-8439
query I rowsort
SELECT - col2 + - col1 * 54 FROM tab2 AS cor0
----
-1701
-3212
-956
query I rowsort
SELECT + 92 AS col0 FROM tab0
----
92
92
92
query I rowsort
SELECT DISTINCT + + 73 FROM tab1, tab2, tab0 cor0
----
73
query I rowsort
SELECT ALL 1 * col0 AS col0 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-3805
SELECT DISTINCT + 4 DIV + tab2.col0 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT + 4 / + tab2.col0 FROM tab2
----
0
query I rowsort
SELECT DISTINCT - col1 * - 93 * col2 + col0 AS col2 FROM tab0
----
263958
694055
9056
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 61c64d7c972af4105004f57e1913df08
query I rowsort
SELECT - + cor0.col0 * col1 * + col0 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT ALL - tab1.col1 * cor0.col1 - - tab1.col2 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 61ad9776511d784b347e6b47e10ead0f
query I rowsort
SELECT ALL col0 * - ( - 10 ) AS col2 FROM tab2
----
70
780
790
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3811
SELECT DISTINCT + - CAST( + ( cor0.col2 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT + - CAST ( + ( cor0.col2 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT 48 * - col2 FROM tab0 AS cor0
----
-1584
-3936
-48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3813
SELECT ALL CAST( 44 AS SIGNED ) + + col2 AS col2 FROM tab2 AS cor0
----
70
71
82
skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL CAST ( 44 AS INTEGER ) + + col2 AS col2 FROM tab2 AS cor0
----
70
71
82
query I rowsort
SELECT - ( cor0.col0 ) * col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3815
SELECT + tab2.col2 * - CAST( NULL AS SIGNED ) - col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3815
SELECT + tab2.col2 * - CAST ( NULL AS INTEGER ) - col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + 94 FROM tab1
----
68
81
84
query I rowsort
SELECT - col2 + 48 AS col1 FROM tab1
----
-48
-6
-9
query I rowsort
SELECT DISTINCT + col2 * + 67 * - col2 FROM tab0
----
-450508
-67
-72963
query I rowsort
SELECT ALL col1 - col1 * + col2 * col0 AS col0 FROM tab0
----
-3298
-664027
-68026
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3820
SELECT ALL - CAST( NULL AS DECIMAL ) - + col1 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL - CAST ( NULL AS REAL ) - + col1 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ( 50 ) + tab1.col0 + col1 FROM tab1
----
124
143
79
query I rowsort
SELECT ALL - col0 * ( col1 ) + + col2 * 36 FROM tab2 cor0
----
-3666
25
755
onlyif mysql # use DIV operator for integer division
query I rowsort label-3823
SELECT - col2 DIV - 78 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3823
SELECT - col2 / - 78 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3824
SELECT ALL - CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL - CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3825
SELECT DISTINCT - - col2 DIV 27 FROM tab0 AS cor0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-3825
SELECT DISTINCT - - col2 / 27 FROM tab0 AS cor0
----
0
1
3
query I rowsort
SELECT - - 77 AS col0 FROM tab0 AS cor0
----
77
77
77
query I rowsort
SELECT ALL + col2 + - ( + col2 * + col1 ) AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT col2 + - ( - col0 ) FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-3829
SELECT - ( col0 ) DIV cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3829
SELECT - ( col0 ) / cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + 92 * - cor0.col2 FROM tab2 AS cor0
----
-2392
-2484
-3496
onlyif mysql # use DIV operator for integer division
query I rowsort label-3831
SELECT + - ( - col1 ) * cor0.col2 DIV 34 FROM tab2 AS cor0
----
19
24
45
skipif mysql # not compatible
query I rowsort label-3831
SELECT + - ( - col1 ) * cor0.col2 / 34 FROM tab2 AS cor0
----
19
24
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col1 + - ( - col2 ) * col0 col0 FROM tab0
----
-1272
-3360
-801
query I rowsort
SELECT - 18 + + col1 FROM tab0 cor0
----
68
73
79
query I rowsort
SELECT + + cor0.col1 * + col0 + 65 AS col0 FROM tab0 AS cor0
----
2129
3460
8164
onlyif mysql # use DIV operator for integer division
query I rowsort label-3835
SELECT + col1 DIV 41 FROM tab0 AS cor0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-3835
SELECT + col1 / 41 FROM tab0 AS cor0
----
2
2
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-3836
SELECT ALL + col0 + - col2 DIV col0 col2 FROM tab1 AS cor0
----
-15
64
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL + col0 + - col2 / col0 col2 FROM tab1 AS cor0
----
-15
64
79
query I rowsort
SELECT + col2 * + 6 AS col1 FROM tab1 cor0
----
324
342
576
onlyif mysql # use DIV operator for integer division
query I rowsort label-3838
SELECT + - col1 DIV cor0.col2 AS col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3838
SELECT + - col1 / cor0.col2 AS col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + ( - 43 ) AS col0 FROM tab0 AS cor0
----
-19
-8
46
query I rowsort
SELECT DISTINCT col1 * cor0.col2 + col0 AS col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL + col0 + col2 * - 78 AS col2 FROM tab2 cor0
----
-1950
-2099
-2885
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 * col1 col2 FROM tab1 AS cor0
----
30
39
78
query I rowsort
SELECT ALL - - 60 * col1 + col1 AS col0 FROM tab0 AS cor0
----
5246
5551
5917
query I rowsort
SELECT DISTINCT cor0.col2 * col1 + + col2 * col0 FROM tab1 cor0
----
1566
4218
8928
query I rowsort
SELECT ALL + 45 + + col0 * + ( col0 ) AS col2 FROM tab2 AS cor0
----
6129
6286
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 90 col0 FROM tab1 AS cor0
----
90
query I rowsort
SELECT ALL + 98 + + col1 FROM tab2 AS cor0
----
115
129
157
query I rowsort
SELECT ALL - 1 * - col2 * col2 + - col1 AS col1 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT DISTINCT - 2 - - col1 FROM tab0 AS cor0
----
84
89
95
query I rowsort
SELECT ALL cor0.col2 * col0 * + ( col0 ) AS col2 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT - - col1 - ( 93 ) AS col1 FROM tab1 AS cor0
----
-67
-80
-83
query I rowsort
SELECT + - col1 * - col0 - + ( + col2 * - col2 ) FROM tab0 AS cor0
----
14823
3153
3396
query I rowsort
SELECT ALL tab2.col0 + 87 FROM tab2, tab2 AS cor0
----
9 values hashing to bc3171eda4d1f95ac12eb4ab7ce97c59
query I rowsort
SELECT col2 * col2 + - col1 AS col2 FROM tab2
----
1427
617
698
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3855
SELECT ALL CAST( NULL AS SIGNED ) + col2 * + col0 col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL CAST ( NULL AS INTEGER ) + col2 * + col0 col1 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3856
SELECT - CAST( col2 AS SIGNED ) + col1 * ( - col0 ) AS col0 FROM tab2
----
-1381
-244
-4628
skipif mysql # not compatible
query I rowsort label-3856
SELECT - CAST ( col2 AS INTEGER ) + col1 * ( - col0 ) AS col0 FROM tab2
----
-1381
-244
-4628
query I rowsort
SELECT + col1 + - col1 * - tab0.col0 AS col1 FROM tab0
----
2150
3492
8190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3858
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 42 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3858
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 42 AS col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col2 ) col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + ( 20 ) FROM tab2 AS cor0
----
20
20
20
query I rowsort
SELECT ALL - cor0.col0 * col2 + col2 FROM tab1 cor0
----
-108
-3591
-7584
query I rowsort
SELECT + + 51 + col0 AS col2 FROM tab0 cor0
----
140
75
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( tab2.col1 ) * tab2.col2 col2 FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-3864
SELECT ALL - col2 * col2 DIV col0 FROM tab2
----
-104
-18
-8
skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL - col2 * col2 / col0 FROM tab2
----
-104
-18
-8
query I rowsort
SELECT - ( 14 ) * cor0.col0 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
81 values hashing to 80bf95997fc85403fd63b99e4b9227c8
query I rowsort
SELECT - col0 + col2 * + col0 AS col2 FROM tab1
----
159
3584
7600
query I rowsort
SELECT ALL - 90 FROM tab2, tab1 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5
query I rowsort
SELECT ALL - ( + col0 ) * col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-3869
SELECT DISTINCT col2 DIV + col1 + + cor0.col0 FROM tab1 cor0
----
5
69
87
skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT col2 / + col1 + + cor0.col0 FROM tab1 cor0
----
5
69
87
query I rowsort
SELECT ALL - ( 19 ) FROM tab2
----
-19
-19
-19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 col1 FROM tab0, tab0 cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - cor0.col0 col1 FROM tab1 cor0
----
-128
-160
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - ( col0 ) * col2 + 93 col1 FROM tab0 AS cor0
----
-675
-7116
93
query I rowsort
SELECT ALL 13 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT + col1 * + 70 - 34 AS col1 FROM tab1 AS cor0
----
1786
666
876
query I rowsort
SELECT ALL + col0 * col2 * + ( + col1 ) + - 85 * col0 FROM tab0 AS cor0
----
420
656553
66072
query I rowsort
SELECT ALL + col2 - 82 AS col2 FROM tab2 AS cor0
----
-44
-55
-56
query I rowsort
SELECT + - col0 + 16 AS col2 FROM tab0 AS cor0
----
-19
-73
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * 22 + col1 col0 FROM tab1 cor0
----
-1398
-1747
-40
query I rowsort
SELECT - - cor0.col1 + cor0.col1 + col1 AS col1 FROM tab1 AS cor0
----
30
39
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3881
SELECT + col2 * col2 + + col0 DIV col1 FROM tab2 AS cor0
----
1448
677
729
skipif mysql # not compatible
query I rowsort label-3881
SELECT + col2 * col2 + + col0 / col1 FROM tab2 AS cor0
----
1448
677
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3882
SELECT + + CAST( NULL AS SIGNED ) - ( + col1 ) * - ( - col0 + + cor0.col1 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3882
SELECT + + CAST ( NULL AS INTEGER ) - ( + col1 ) * - ( - col0 + + cor0.col1 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3883
SELECT DISTINCT + CAST( 71 AS SIGNED ) FROM tab1 AS cor0
----
71
skipif mysql # not compatible
query I rowsort label-3883
SELECT DISTINCT + CAST ( 71 AS INTEGER ) FROM tab1 AS cor0
----
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 + + 30 col0 FROM tab0 AS cor0
----
29
29
29
query I rowsort
SELECT ALL - ( cor0.col1 ) + col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT - - 92 * col0 AS col1 FROM tab1 AS cor0
----
276
5888
7360
query I rowsort
SELECT ALL + col2 + 21 * col0 AS col1 FROM tab0
----
1951
537
736
query I rowsort
SELECT col0 + col0 * - cor0.col2 * + col1 FROM tab1 AS cor0
----
-36416
-4209
-99760
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( cor0.col0 AS REAL ) * col1 * col0 + + col2 AS col0 FROM tab2 AS cor0
----
106135
1546
358982
onlyif mysql # use DIV operator for integer division
query I rowsort label-3890
SELECT DISTINCT 40 DIV tab2.col0 AS col0 FROM tab2
----
0
5
skipif mysql # not compatible
query I rowsort label-3890
SELECT DISTINCT 40 / tab2.col0 AS col0 FROM tab2
----
0
5
query I rowsort
SELECT ALL + 5 AS col1 FROM tab0
----
5
5
5
query I rowsort
SELECT - + col0 - + 1 AS col2 FROM tab2 AS cor0
----
-79
-8
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3893
SELECT - col2 + col0 DIV 7 FROM tab1 AS cor0
----
-48
-54
-85
skipif mysql # not compatible
query I rowsort label-3893
SELECT - col2 + col0 / 7 FROM tab1 AS cor0
----
-48
-54
-85
query I rowsort
SELECT col0 * + 58 + col0 FROM tab0 AS cor0
----
1416
2065
5251
query I rowsort
SELECT col0 - col2 * col2 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT - col0 * 50 AS col1 FROM tab2 AS cor0
----
-350
-3900
-3950
query I rowsort
SELECT col0 * + 61 AS col1 FROM tab1 AS cor0
----
183
3904
4880
onlyif mysql # use DIV operator for integer division
query I rowsort label-3898
SELECT - 71 * col2 DIV ( tab0.col1 ) AS col0 FROM tab0
----
-27
-63
0
skipif mysql # not compatible
query I rowsort label-3898
SELECT - 71 * col2 / ( tab0.col1 ) AS col0 FROM tab0
----
-27
-63
0
query I rowsort
SELECT DISTINCT - ( 51 ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-51
query I rowsort
SELECT DISTINCT - col1 * - col2 + 34 FROM tab0 AS cor0
----
131
2872
7496
onlyif mysql # use DIV operator for integer division
query I rowsort label-3901
SELECT ALL col1 * + ( col1 ) + - col1 * 0 DIV - col0 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL col1 * + ( col1 ) + - col1 * 0 / - col0 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - col0 * - 85 FROM tab0 cor0
----
2040
2975
7565
query I rowsort
SELECT ALL col1 + col0 + col0 AS col2 FROM tab2 AS cor0
----
175
215
45
query I rowsort
SELECT ALL + + col0 + 83 * col1 FROM tab2 AS cor0
----
1490
2580
4975
query I rowsort
SELECT DISTINCT - col2 + cor0.col2 + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT 20 * + 50 FROM tab2 AS cor0
----
1000
1000
1000
query I rowsort
SELECT DISTINCT col1 * 92 AS col1 FROM tab0
----
7912
8372
8924
query I rowsort
SELECT ALL - col2 * + 60 * + 53 FROM tab2
----
-120840
-82680
-85860
query I rowsort
SELECT DISTINCT - 38 AS col2 FROM tab0
----
-38
query I rowsort
SELECT ALL + 37 AS col1 FROM tab0
----
37
37
37
query I rowsort
SELECT DISTINCT + 94 * - col1 * - col0 AS col1 FROM tab0
----
194016
319130
761306
query I rowsort
SELECT DISTINCT + + 50 + + col1 AS col2 FROM tab1 AS cor0
----
60
63
76
query I rowsort
SELECT ALL 36 + col1 FROM tab0 AS cor0
----
122
127
133
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3914
SELECT + cor0.col1 * - col2 * - CAST( NULL AS DECIMAL ) + cor0.col1 * col0 + - col1 * 73 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3914
SELECT + cor0.col1 * - col2 * - CAST ( NULL AS REAL ) + cor0.col1 * col0 + - col1 * 73 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col2 * - col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-3916
SELECT ALL col1 DIV cor0.col0 AS col1 FROM tab2 cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL col1 / cor0.col0 AS col1 FROM tab2 cor0
----
0
0
4
query I rowsort
SELECT ALL - 93 + - col0 AS col1 FROM tab0 AS cor0
----
-117
-128
-182
query I rowsort
SELECT + 61 AS col1 FROM tab2 cor0
----
61
61
61
query I rowsort
SELECT ALL + cor0.col2 - col1 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-3920
SELECT ALL + ( col2 ) DIV ( - col0 * col0 ) + + CAST( + col0 + col1 AS SIGNED ) FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL + ( col2 ) / ( - col0 * col0 ) + + CAST ( + col0 + col1 AS INTEGER ) FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3921
SELECT DISTINCT ( col0 ) + + col1 DIV col1 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-3921
SELECT DISTINCT ( col0 ) + + col1 / col1 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT DISTINCT col1 * + cor0.col2 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT 31 * ( + col2 ) FROM tab0
----
1023
2542
31
query I rowsort
SELECT 37 * + col0 - - col0 FROM tab0
----
1330
3382
912
query I rowsort
SELECT 80 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 91 col0 FROM tab0
----
7826
8281
8827
onlyif mysql # use DIV operator for integer division
query I rowsort label-3927
SELECT ALL + 57 DIV col0 AS col2 FROM tab1
----
0
0
19
skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL + 57 / col0 AS col2 FROM tab1
----
0
0
19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + tab1.col2 col0 FROM tab1
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-3929
SELECT col0 + + col0 DIV ( 29 ) col0 FROM tab0
----
24
36
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3929
SELECT col0 + + col0 / ( 29 ) col0 FROM tab0
----
24
36
92
query I rowsort
SELECT ALL + col1 * 28 FROM tab0
----
2408
2548
2716
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 * tab1.col0 col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT tab2.col0 * - 31 AS col1 FROM tab2, tab1 AS cor0, tab1, tab2 cor1
----
81 values hashing to 905e9b98c5e4997a28313f848ed5273f
query I rowsort
SELECT ALL col2 - - col0 AS col0 FROM tab1
----
121
176
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3934
SELECT - col0 * + CAST( + 26 AS SIGNED ) + - tab1.col0 - - tab1.col0 * col1 FROM tab1
----
-1088
-1120
-3
skipif mysql # not compatible
query I rowsort label-3934
SELECT - col0 * + CAST ( + 26 AS INTEGER ) + - tab1.col0 - - tab1.col0 * col1 FROM tab1
----
-1088
-1120
-3
query I rowsort
SELECT - 83 * col1 + + col0 + - col1 FROM tab1 cor0
----
-1012
-2181
-776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3936
SELECT ALL CAST( NULL AS SIGNED ) + col0 * - col1 col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL CAST ( NULL AS INTEGER ) + col0 * - col1 col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 89 + col0 + - col1 FROM tab2
----
108
151
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 + - 34 col1 FROM tab2
----
-125
-125
-125
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + col1 col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT - 49 * col2 + col2 AS col2 FROM tab1 AS cor0
----
-2592
-2736
-4608
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3941
SELECT ALL - - CAST( NULL AS DECIMAL ) + + col2 * - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL - - CAST ( NULL AS REAL ) + + col2 * - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + 78 * + cor0.col0 FROM tab1 AS cor0
----
237
5056
6320
query I rowsort
SELECT - col2 * - 93 AS col1 FROM tab2 AS cor0
----
2418
2511
3534
onlyif mysql # use DIV operator for integer division
query I rowsort label-3945
SELECT DISTINCT - cor0.col2 + - col0 DIV - col1 + cor0.col1 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-3945
SELECT DISTINCT - cor0.col2 + - col0 / - col1 + cor0.col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT col1 - - col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT + col1 + 33 FROM tab2 AS cor0
----
50
64
92
query I rowsort
SELECT ALL + cor0.col1 * col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
636056
753571
912673
query I rowsort
SELECT DISTINCT col1 + 71 FROM tab0 AS cor0
----
157
162
168
onlyif mysql # use DIV operator for integer division
query I rowsort label-3950
SELECT + cor0.col1 + + col2 DIV + cor0.col0 FROM tab0 AS cor0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-3950
SELECT + cor0.col1 + + col2 / + cor0.col0 FROM tab0 AS cor0
----
87
91
97
query I rowsort
SELECT - cor0.col2 * 5 AS col2 FROM tab0 cor0
----
-165
-410
-5
query I rowsort
SELECT DISTINCT + col1 - + col0 AS col0 FROM tab2 cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 90 + col2 col2 FROM tab1 AS cor0
----
4914
5187
8736
query I rowsort
SELECT ALL + col1 + ( - col2 ) FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort
SELECT ALL cor0.col1 + CAST ( - 4 AS REAL ) + + col2 / col0 AS col1 FROM tab1 AS cor0
----
10
40
6
query I rowsort
SELECT DISTINCT 19 + + col2 + col1 AS col2 FROM tab1 AS cor0
----
128
86
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-3957
SELECT + cor0.col1 DIV + col1 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3957
SELECT + cor0.col1 / + col1 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - 97 AS col0 FROM tab0, tab2 cor0
----
-97
query I rowsort
SELECT + col1 - ( col0 ) FROM tab1
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-3960
SELECT ALL col1 DIV - col0 - col1 AS col0 FROM tab2 cor0
----
-17
-35
-59
skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL col1 / - col0 - col1 AS col0 FROM tab2 cor0
----
-17
-35
-59
query I rowsort
SELECT DISTINCT - - 28 + - col2 * + cor0.col0 FROM tab1 AS cor0
----
-134
-3620
-7652
query I rowsort
SELECT 13 + col1 FROM tab0 AS cor0
----
104
110
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-3963
SELECT ALL cor0.col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL cor0.col2 / + col0 AS col2 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT ALL - - cor0.col0 - col2 AS col0 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-3965
SELECT ALL + ( 81 ) - - col2 DIV - col0 FROM tab2
----
78
81
81
skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL + ( 81 ) - - col2 / - col0 FROM tab2
----
78
81
81
query I rowsort
SELECT ALL + col2 - + col2 * + col1 AS col2 FROM tab0
----
-2805
-7380
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col2 * 35 col2 FROM tab0 AS cor0
----
235340
35
38115
onlyif mysql # use DIV operator for integer division
query I rowsort label-3968
SELECT + col1 + col0 DIV 99 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-3968
SELECT + col1 + col0 / 99 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT - col2 * 22 AS col2 FROM tab0 AS cor0
----
-1804
-22
-726
query I rowsort
SELECT ALL - col0 * ( col1 ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - ( + col0 ) + - ( + col1 ) * + col2 FROM tab0
----
-132
-2862
-7551
query I rowsort
SELECT ALL - + 32 * + col0 AS col0 FROM tab0 AS cor0
----
-1120
-2848
-768
query I rowsort
SELECT ALL - col1 * col1 + - col1 AS col2 FROM tab0
----
-7482
-8372
-9506
query I rowsort
SELECT ALL tab0.col0 + + col0 AS col1 FROM tab0
----
178
48
70
query I rowsort
SELECT 43 + col0 FROM tab0
----
132
67
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab2.col0 ) col1 FROM tab2
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 + + col2 col1 FROM tab1
----
137
140
179
query I rowsort
SELECT DISTINCT - col0 + col0 * col0 AS col2 FROM tab0
----
1190
552
7832
query I rowsort
SELECT - col0 + + ( col2 ) * + col0 * col2 AS col2 FROM tab1 AS cor0
----
207872
737200
8745
query I rowsort
SELECT DISTINCT - 79 + - col0 FROM tab0
----
-103
-114
-168
query I rowsort
SELECT DISTINCT ( cor0.col2 ) FROM tab2, tab1 AS cor0, tab1 cor1
----
54
57
96
query I rowsort
SELECT tab0.col1 * + 36 FROM tab0
----
3096
3276
3492
query I rowsort
SELECT ALL - 39 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3984
SELECT - col2 * CAST( col2 AS SIGNED ) + - col2 AS col1 FROM tab1 AS cor0
----
-2970
-3306
-9312
skipif mysql # not compatible
query I rowsort label-3984
SELECT - col2 * CAST ( col2 AS INTEGER ) + - col2 AS col1 FROM tab1 AS cor0
----
-2970
-3306
-9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-3985
SELECT DISTINCT ( 11 ) DIV col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT ( 11 ) / col1 FROM tab0
----
0
query I rowsort
SELECT DISTINCT + col2 * - 10 AS col0 FROM tab0
----
-10
-330
-820
query I rowsort
SELECT col1 + 62 AS col1 FROM tab1
----
72
75
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-3988
SELECT DISTINCT + 98 * - col1 + + col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
-1273
-2547
-979
skipif mysql # not compatible
query I rowsort label-3988
SELECT DISTINCT + 98 * - col1 + + col0 / + col0 AS col2 FROM tab1 AS cor0
----
-1273
-2547
-979
query I rowsort
SELECT ALL - - 47 * 80 AS col0 FROM tab0 AS cor0
----
3760
3760
3760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3990
SELECT - col0 + col0 - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3990
SELECT - col0 + col0 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col2 + col0 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT col0 * cor0.col2 + + col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT - + 41 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-38
23
39
query I rowsort
SELECT - 89 * col0 - + col2 AS col1 FROM tab2 AS cor0
----
-650
-6968
-7069
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3995
SELECT ALL col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * + col2 col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ( 8 ) * - col1 + + col0 FROM tab1
----
-16
-205
-24
query I rowsort
SELECT ALL + 5 FROM tab1
----
5
5
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-3999
SELECT col1 DIV tab0.col1 + + col0 AS col0 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-3999
SELECT col1 / tab0.col1 + + col0 AS col0 FROM tab0
----
25
36
90
query I rowsort
SELECT ALL 12 * - 47 FROM tab0
----
-564
-564
-564
query I rowsort
SELECT ALL + ( - 24 ) FROM tab0
----
-24
-24
-24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4002
SELECT + CAST( 25 AS SIGNED ) FROM tab0 AS cor0
----
25
25
25
skipif mysql # not compatible
query I rowsort label-4002
SELECT + CAST ( 25 AS INTEGER ) FROM tab0 AS cor0
----
25
25
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-4003
SELECT - - 50 DIV - col0 col2 FROM tab0 AS cor0
----
-1
-2
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4003
SELECT - - 50 / - col0 col2 FROM tab0 AS cor0
----
-1
-2
0
query I rowsort
SELECT + col1 * col1 * - col1 FROM tab1 AS cor0
----
-1000
-17576
-2197
query I rowsort
SELECT DISTINCT ( col1 + - col1 ) * 99 AS col1 FROM tab2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5
query I rowsort
SELECT 56 * - col1 FROM tab1
----
-1456
-560
-728
onlyif mysql # use DIV operator for integer division
query I rowsort label-4008
SELECT DISTINCT + 86 DIV tab1.col2 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-4008
SELECT DISTINCT + 86 / tab1.col2 FROM tab1
----
0
1
query I rowsort
SELECT col1 * col1 + + col2 FROM tab2 cor0
----
327
3507
988
query I rowsort
SELECT + cor0.col1 * col1 + - col2 * cor0.col0 + col2 AS col2 FROM tab2 AS cor0
----
-2675
1479
799
query I rowsort
SELECT + cor0.col2 + col1 * col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL - + col2 + - col0 + 30 * col1 AS col0 FROM tab0 AS cor0
----
2523
2559
2874
query I rowsort
SELECT - - col0 + - cor0.col1 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT 16 * - col2 FROM tab2
----
-416
-432
-608
onlyif mysql # use DIV operator for integer division
query I rowsort label-4015
SELECT col2 + + col0 * + col2 + col0 DIV col2 FROM tab0 AS cor0
----
71
7381
825
skipif mysql # not compatible
query I rowsort label-4015
SELECT col2 + + col0 * + col2 + col0 / col2 FROM tab0 AS cor0
----
71
7381
825
query I rowsort
SELECT ALL col2 * - col0 + + col0 * + col2 * col0 FROM tab2
----
1134
156156
234156
query I rowsort
SELECT ALL col1 + col1 * + col2 FROM tab2
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-4018
SELECT DISTINCT + col0 + col0 DIV - col2 AS col1 FROM tab0
----
0
24
88
skipif mysql # not compatible
query I rowsort label-4018
SELECT DISTINCT + col0 + col0 / - col2 AS col1 FROM tab0
----
0
24
88
query I rowsort
SELECT ALL - col0 * + cor0.col2 + - col0 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT ALL col1 - col1 * - col0 FROM tab1 AS cor0
----
104
1053
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + col2 * - col1 - cor0.col0 col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + - col1 + - col0 + - col1 AS col2 FROM tab1 cor0
----
-106
-55
-84
query I rowsort
SELECT DISTINCT + - col1 * + cor0.col0 + col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL - cor0.col1 + + cor0.col1 - col0 * cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4025
SELECT DISTINCT col0 + - col1 DIV cor0.col1 FROM tab2 AS cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT col0 + - col1 / cor0.col1 FROM tab2 AS cor0
----
6
77
78
query I rowsort
SELECT DISTINCT + cor0.col0 + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT col1 + + col0 + col1 * - col2 FROM tab1 AS cor0
----
-1155
-1375
-496
query I rowsort
SELECT DISTINCT - - col2 + cor0.col2 FROM tab0 cor0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + col0 * col2 col1 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT - tab2.col1 - + col2 * col0 AS col0 FROM tab2
----
-2087
-220
-3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-4031
SELECT ALL col1 + col2 DIV col1 FROM tab1
----
15
20
28
skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL col1 + col2 / col1 FROM tab1
----
15
20
28
query I rowsort
SELECT + + cor0.col0 + - cor0.col1 * + col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT col0 * col1 + + col0 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
4736
7440
87
query I rowsort
SELECT DISTINCT + col2 * tab1.col0 + + col0 AS col2 FROM tab1
----
165
3712
7760
query I rowsort
SELECT ALL ( + col1 ) * - cor0.col0 + + col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL - col0 * + col0 + col0 AS col2 FROM tab1 cor0
----
-4032
-6
-6320
query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) - col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL - col1 * - col1 + - cor0.col0 + cor0.col2 * + col0 FROM tab2 cor0
----
1143
3212
5431
query I rowsort
SELECT ALL - ( col0 ) * col2 + col1 FROM tab1 cor0
----
-136
-3638
-7667
query I rowsort
SELECT - + 44 * col2 - cor0.col0 FROM tab2 AS cor0
----
-1195
-1222
-1751
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * col1 - col0 col2 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT col1 + col0 * - col0 FROM tab0 cor0
----
-1128
-490
-7830
query I rowsort
SELECT - ( col2 ) * col2 - + col1 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT ALL - col1 * + tab0.col1 AS col2 FROM tab0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - col2 col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + col1 + col1 + - col2 * + col2 FROM tab1 cor0
----
-2864
-3229
-9190
query I rowsort
SELECT DISTINCT - col2 * col2 - col0 * + col2 * col1 AS col2 FROM tab1 AS cor0
----
-109056
-39729
-7128
query I rowsort
SELECT + + 53 * - col2 AS col1 FROM tab0 AS cor0
----
-1749
-4346
-53
query I rowsort
SELECT ALL + 4 * + col1 AS col2 FROM tab2 cor0
----
124
236
68
query I rowsort
SELECT - ( + tab2.col0 ) * + col0 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT col0 + - col2 * tab0.col0 - col2 AS col0 FROM tab0
----
-1
-7291
-801
onlyif mysql # use DIV operator for integer division
query I rowsort label-4052
SELECT + ( + col1 ) * - col1 + col1 DIV col0 AS col0 FROM tab1 AS cor0
----
-100
-169
-668
skipif mysql # not compatible
query I rowsort label-4052
SELECT + ( + col1 ) * - col1 + col1 / col0 AS col0 FROM tab1 AS cor0
----
-100
-169
-668
query I rowsort
SELECT ALL tab1.col2 * - col1 * - tab1.col1 - tab1.col2 * + col2 FROM tab1
----
2451
33588
7008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + col0 * + col2 col1 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT ( ( + col1 ) * - col0 ) + col2 * col1 FROM tab2
----
-3068
-697
620
onlyif mysql # use DIV operator for integer division
query I rowsort label-4056
SELECT DISTINCT - + 83 + + cor0.col0 DIV + col1 FROM tab0 cor0
----
-83
skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT - + 83 + + cor0.col0 / + col1 FROM tab0 cor0
----
-83
query I rowsort
SELECT 23 * + col0 + col2 FROM tab2 cor0
----
1820
1855
188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4058
SELECT ALL + CAST( - col2 AS SIGNED ) + - col2 * col1 FROM tab0
----
-2871
-7544
-98
skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL + CAST ( - col2 AS INTEGER ) + - col2 * col1 FROM tab0
----
-2871
-7544
-98
query I rowsort
SELECT ALL 12 * col1 * + tab0.col0 + 32 FROM tab0
----
24800
40772
97220
query I rowsort
SELECT + col2 * col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - 70 * + col1 AS col2 FROM tab0 AS cor0
----
-6020
-6370
-6790
onlyif mysql # use DIV operator for integer division
query I rowsort label-4062
SELECT col2 DIV + col0 + - col0 + 2 * + col2 AS col2 FROM tab2 AS cor0
----
-26
-3
50
skipif mysql # not compatible
query I rowsort label-4062
SELECT col2 / + col0 + - col0 + 2 * + col2 AS col2 FROM tab2 AS cor0
----
-26
-3
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4063
SELECT + + col0 * - col1 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4063
SELECT + + col0 * - col1 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 52 * col2 FROM tab2 AS cor0
----
1352
1404
1976
query I rowsort
SELECT DISTINCT - - 56 + col0 FROM tab2 cor0
----
134
135
63
query I rowsort
SELECT col2 * + col0 * - col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT 48 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to df6d12001a34fdcf5cfb2ca3a4a22108
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4068
SELECT + - col1 + CAST( ( - col0 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-29
-74
-93
skipif mysql # not compatible
query I rowsort label-4068
SELECT + - col1 + CAST ( ( - col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT - cor0.col1 + 70 AS col1 FROM tab1 AS cor0
----
44
57
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4070
SELECT DISTINCT - col2 / ( - col0 ) + col1 * + CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4070
SELECT DISTINCT - col2 / ( - col0 ) + col1 * + CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - col2 * + 14 FROM tab2 AS cor0
----
-364
-378
-532
query I rowsort
SELECT DISTINCT + col1 + - 89 * col1 * - col2 AS col2 FROM tab1 AS cor0
----
111085
124982
50740
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL - - col0 * - CAST ( col2 AS REAL ) + - col0 * + col0 - - col0 col1 FROM tab2 AS cor0
----
-231
-8034
-9164
query I rowsort
SELECT ALL - col0 + 14 * col2 FROM tab2 AS cor0
----
286
371
453
query I rowsort
SELECT ALL - col2 + col2 * - col0 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT col1 + + 48 * col2 FROM tab0 AS cor0
----
145
1670
4027
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4077
SELECT ALL + CAST( NULL AS DECIMAL ) * col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL + CAST ( NULL AS REAL ) * col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 * - 50 + cor0.col1 FROM tab0 AS cor0
----
-1114
-1653
-4359
query I rowsort
SELECT - 22 + col2 AS col0 FROM tab1 AS cor0
----
32
35
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 96 * ( + col0 ) + 51 col0 FROM tab0 cor0
----
2355
3411
8595
query I rowsort
SELECT ALL + - ( ( col0 ) ) + - 95 FROM tab2 AS cor0
----
-102
-173
-174
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4082
SELECT + + CAST( - cor0.col1 AS SIGNED ) - + col1 FROM tab2 AS cor0
----
-118
-34
-62
skipif mysql # not compatible
query I rowsort label-4082
SELECT + + CAST ( - cor0.col1 AS INTEGER ) - + col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT ALL col1 - ( + col1 ) FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4084
SELECT + 69 DIV + cor0.col0 AS col0 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-4084
SELECT + 69 / + cor0.col0 AS col0 FROM tab0 AS cor0
----
0
1
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-4085
SELECT ALL col1 + cor0.col2 DIV col1 FROM tab1 AS cor0
----
15
20
28
skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL col1 + cor0.col2 / col1 FROM tab1 AS cor0
----
15
20
28
query I rowsort
SELECT + col1 * ( tab2.col1 ) AS col0 FROM tab2
----
289
3481
961
query I rowsort
SELECT DISTINCT - col0 + + ( + col2 ) * col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT + col0 - - cor0.col1 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + ( + 99 ) + col2 FROM tab2 AS cor0
----
125
126
137
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4090
SELECT - - CAST( NULL AS SIGNED ) + + col2 * col2 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4090
SELECT - - CAST ( NULL AS INTEGER ) + + col2 * col2 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - ( 94 ) AS col1 FROM tab0 AS cor0
----
-94
-94
-94
query I rowsort
SELECT - + col1 * + col2 - + 59 FROM tab1 AS cor0
----
-1307
-1463
-629
onlyif mysql # use DIV operator for integer division
query I rowsort label-4093
SELECT cor0.col0 DIV - col0 + + 53 AS col0 FROM tab0 AS cor0
----
52
52
52
skipif mysql # not compatible
query I rowsort label-4093
SELECT cor0.col0 / - col0 + + 53 AS col0 FROM tab0 AS cor0
----
52
52
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 * 86 * + col2 col0 FROM tab2
----
16254
174408
258172
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 25 col0 FROM tab0
----
2150
2275
2425
query I rowsort
SELECT DISTINCT col0 * col2 * + ( - 40 ) FROM tab0
----
-1400
-291920
-31680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col0 col2 FROM tab1, tab2 cor0
----
-3
-64
-80
query I rowsort
SELECT - tab1.col2 * ( + col1 ) + col0 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT tab2.col0 + + 91 * col0 FROM tab2
----
644
7176
7268
query I rowsort
SELECT DISTINCT + col1 * + 86 FROM tab2
----
1462
2666
5074
query I rowsort
SELECT DISTINCT - - col2 + 22 AS col0 FROM tab2 AS cor0
----
48
49
60
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 * CAST ( - 30 AS REAL ) AS col1 FROM tab2 AS cor0
----
-1140
-780
-810
query I rowsort
SELECT - 60 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f
query I rowsort
SELECT + - col0 * 23 FROM tab0 AS cor0
----
-2047
-552
-805
query I rowsort
SELECT + - cor0.col0 * + col0 + + 14 AS col2 FROM tab1 AS cor0
----
-4082
-6386
5
query I rowsort
SELECT col2 * 59 FROM tab1
----
3186
3363
5664
query I rowsort
SELECT DISTINCT + 39 + 10 AS col1 FROM tab0, tab2 AS cor0
----
49
query I rowsort
SELECT ALL + col1 + - ( + ( tab2.col0 ) + col0 ) * 3 AS col0 FROM tab2
----
-11
-409
-457
query I rowsort
SELECT - cor0.col1 * - col1 + 17 FROM tab0 AS cor0
----
7413
8298
9426
query I rowsort
SELECT 49 * + cor0.col2 + cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 44bc5334d6e7adab2bd9631469888c1e
query I rowsort
SELECT ALL col0 * tab1.col2 + - col0 FROM tab1
----
159
3584
7600
query I rowsort
SELECT DISTINCT tab1.col1 + - 72 AS col0 FROM tab1, tab0, tab1 AS cor0
----
-46
-59
-62
query I rowsort
SELECT ALL + 64 + ( col0 ) FROM tab2
----
142
143
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4114
SELECT + col1 * col1 + - CAST( NULL AS SIGNED ) * + 51 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4114
SELECT + col1 * col1 + - CAST ( NULL AS INTEGER ) * + 51 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 3 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
onlyif mysql # use DIV operator for integer division
query I rowsort label-4116
SELECT ALL col2 + col0 DIV - col2 col1 FROM tab1
----
54
56
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL col2 + col0 / - col2 col1 FROM tab1
----
54
56
96
query I rowsort
SELECT ALL - ( - col0 * - col1 ) FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + - 9 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a
query I rowsort
SELECT + + col2 * + col1 + 49 AS col2 FROM tab0 AS cor0
----
146
2887
7511
query I rowsort
SELECT 46 + col2 - - col0 * + col1 FROM tab2 AS cor0
----
1427
290
4674
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4121
SELECT - + col0 * + col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4121
SELECT - + col0 * + col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * - col1 * 7 AS col2 FROM tab2 AS cor0
----
2023
24367
6727
query I rowsort
SELECT DISTINCT 95 - col2 FROM tab0
----
13
62
94
query I rowsort
SELECT ALL 45 + tab1.col0 - col2 FROM tab1
----
-6
29
52
query I rowsort
SELECT DISTINCT 95 + + col0 * col1 - + ( tab2.col2 + + 1 ) FROM tab2
----
1399
284
4670
onlyif mysql # use DIV operator for integer division
query I rowsort label-4126
SELECT DISTINCT - col1 * - col1 + col0 * 51 DIV col1 FROM tab1 AS cor0
----
426
482
681
skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT - col1 * - col1 + col0 * 51 / col1 FROM tab1 AS cor0
----
426
482
681
query I rowsort
SELECT - col1 + col0 * 3 + 97 FROM tab2
----
272
317
87
query I rowsort
SELECT - + col1 * - ( 17 ) - col2 AS col0 FROM tab2 AS cor0
----
251
500
977
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 14 col0 FROM tab1 cor0
----
-50
-66
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-4130
SELECT DISTINCT - col1 + ( ( col2 ) ) * col0 DIV - col0 FROM tab0 AS cor0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT - col1 + ( ( col2 ) ) * col0 / - col0 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT + - col0 + + 96 * + col2 FROM tab2 AS cor0
----
2418
2585
3569
onlyif mysql # use DIV operator for integer division
query I rowsort label-4132
SELECT DISTINCT - col1 DIV - col1 + col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-4132
SELECT DISTINCT - col1 / - col1 + col0 FROM tab1 AS cor0
----
4
65
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-4133
SELECT - - col0 DIV + cor0.col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4133
SELECT - - col0 / + cor0.col0 FROM tab2 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4134
SELECT ALL + col2 DIV - col0 AS col2 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL + col2 / - col0 AS col2 FROM tab2 AS cor0
----
-3
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4135
SELECT + CAST( NULL AS SIGNED ) * - 89 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4135
SELECT + CAST ( NULL AS INTEGER ) * - 89 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( 3 ) FROM tab0 AS cor0
----
3
query I rowsort
SELECT ALL - - 4 + col1 * col0 AS col1 FROM tab0 AS cor0
----
2068
3399
8103
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4138
SELECT ALL - - col0 * + col2 + - col0 + - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL - - col0 * + col2 + - col0 + - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 - col1 FROM tab1 cor0
----
0
query I rowsort
SELECT - ( + col0 ) * col0 * 47 AS col2 FROM tab1 AS cor0
----
-192512
-300800
-423
query I rowsort
SELECT 97 * ( col0 ) AS col0 FROM tab0 cor0
----
2328
3395
8633
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4142
SELECT CAST( NULL AS DECIMAL ) + col0 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4142
SELECT CAST ( NULL AS REAL ) + col0 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - cor0.col1 * + col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + - ( - col2 ) * col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT + 55 * - col1 AS col1 FROM tab0 AS cor0
----
-4730
-5005
-5335
onlyif mysql # use DIV operator for integer division
query I rowsort label-4146
SELECT DISTINCT - - cor0.col0 DIV col2 + + cor0.col2 FROM tab1 AS cor0
----
54
58
96
skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT - - cor0.col0 / col2 + + cor0.col2 FROM tab1 AS cor0
----
54
58
96
query I rowsort
SELECT DISTINCT + col2 + + col0 * col0 + - tab2.col2 AS col1 FROM tab2
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-4148
SELECT + col0 * - col0 DIV tab2.col0 AS col0 FROM tab2
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-4148
SELECT + col0 * - col0 / tab2.col0 AS col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT + col0 * col0 - - col2 FROM tab1
----
4153
63
6496
query I rowsort
SELECT - col0 + col1 * - col1 * + col0 AS col0 FROM tab2
----
-22910
-271596
-6734
query III rowsort
SELECT ALL * FROM tab2 WHERE col0 NOT IN ( col2 * col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
onlyif mysql # use DIV operator for integer division
query I rowsort label-4152
SELECT ALL - col0 DIV - tab2.col1 AS col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL - col0 / - tab2.col1 AS col1 FROM tab2
----
0
1
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-4153
SELECT DISTINCT col0 * + col0 DIV col0 col2 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT col0 * + col0 / col0 col2 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL - col0 + col1 * + col2 * col2 + - col2 FROM tab1
----
119632
32369
75759
query I rowsort
SELECT ALL + tab1.col0 + tab1.col0 AS col1 FROM tab1
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-4156
SELECT col0 * - col0 DIV tab0.col0 + col0 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4156
SELECT col0 * - col0 / tab0.col0 + col0 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - tab0.col2 * - col0 * tab0.col1 AS col0 FROM tab0
----
3395
664118
68112
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) < ( + col2 )
----
query I rowsort
SELECT + col0 + col2 + + col0 * - col2 FROM tab2
----
-155
-1924
-2885
query I rowsort
SELECT ALL tab1.col1 * + col1 AS col1 FROM tab1
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-4161
SELECT col1 * col2 DIV tab2.col1 + - col1 * - col0 AS col2 FROM tab2
----
1381
244
4628
skipif mysql # not compatible
query I rowsort label-4161
SELECT col1 * col2 / tab2.col1 + - col1 * - col0 AS col2 FROM tab2
----
1381
244
4628
query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT IN ( + tab0.col1 )
----
query III rowsort
SELECT * FROM tab2 WHERE + col1 * - col1 > NULL
----
query I rowsort
SELECT col2 + + col0 * - col0 AS col2 FROM tab1
----
-4039
-6304
45
query I rowsort
SELECT DISTINCT col1 - col1 * + col2 AS col1 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT col2 * - col0 + + col2 FROM tab1
----
-108
-3591
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-4167
SELECT - col2 * col0 - col2 DIV col1 AS col2 FROM tab0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-4167
SELECT - col2 * col0 - col2 / col1 AS col2 FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-4168
SELECT ALL + col0 DIV - col1 + col2 * - col0 * + cor0.col0 FROM tab0 cor0
----
-1225
-19008
-649522
skipif mysql # not compatible
query I rowsort label-4168
SELECT ALL + col0 / - col1 + col2 * - col0 * + cor0.col0 FROM tab0 cor0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL - - col0 + col0 AS col1 FROM tab1 cor0
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col2 FROM tab2, tab0 AS cor0
----
-86
-91
-97
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = cor0.col1
----
query I rowsort
SELECT ALL col0 AS col0 FROM tab2 cor0 WHERE NOT NULL NOT IN ( cor0.col2 )
----
query I rowsort
SELECT + 73 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT ALL 61 * 69 FROM tab0, tab2 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 747da5f20cab7fab6748aeb527a0d82e
query I rowsort
SELECT ALL + - col2 * - 7 + col2 FROM tab1 AS cor0
----
432
456
768
onlyif mysql # use DIV operator for integer division
query I rowsort label-4176
SELECT DISTINCT col0 * col1 + ( col2 ) DIV cor0.col1 FROM tab1 AS cor0
----
1047
645
80
skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT col0 * col1 + ( col2 ) / cor0.col1 FROM tab1 AS cor0
----
1047
645
80
query I rowsort
SELECT DISTINCT + - col1 + col2 * col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL - col1 + - 88 * + col0 FROM tab2 cor0
----
-647
-6923
-6969
onlyif mysql # use DIV operator for integer division
query I rowsort label-4179
SELECT DISTINCT + col1 DIV - 2 + 93 AS col0 FROM tab2 AS cor0
----
64
78
85
skipif mysql # not compatible
query I rowsort label-4179
SELECT DISTINCT + col1 / - 2 + 93 AS col0 FROM tab2 AS cor0
----
64
78
85
query I rowsort
SELECT + 58 * + col1 AS col2 FROM tab2 AS cor0
----
1798
3422
986
query I rowsort
SELECT col2 * + 96 AS col0 FROM tab1 AS cor0
----
5184
5472
9216
query I rowsort
SELECT ALL tab0.col1 * cor1.col2 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 644c5ead65c52a5710ebe2f03958c49a
onlyif mysql # use DIV operator for integer division
query I rowsort label-4183
SELECT ( col0 ) + col0 DIV 54 AS col2 FROM tab2 AS cor0
----
7
79
80
skipif mysql # not compatible
query I rowsort label-4183
SELECT ( col0 ) + col0 / 54 AS col2 FROM tab2 AS cor0
----
7
79
80
query I rowsort
SELECT ALL cor0.col1 * col1 - col0 * col1 * + col0 AS col1 FROM tab1 AS cor0
----
-40860
-83031
442
onlyif mysql # use DIV operator for integer division
query I rowsort label-4185
SELECT cor0.col0 + 76 DIV - 96 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
skipif mysql # not compatible
query I rowsort label-4185
SELECT cor0.col0 + 76 / - 96 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + cor0.col1 * + ( - col2 ) col2 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT ALL + - col1 + col2 * + 92 FROM tab2 AS cor0
----
2333
2453
3479
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - tab2.col0 * col1 * col2 + + col1 )
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4189
SELECT + - col1 + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-172
-182
-194
skipif mysql # not compatible
query I rowsort label-4189
SELECT + - col1 + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-172
-182
-194
onlyif mysql # use DIV operator for integer division
query I rowsort label-4190
SELECT col2 DIV col1 + col0 AS col0 FROM tab1
----
5
69
87
skipif mysql # not compatible
query I rowsort label-4190
SELECT col2 / col1 + col0 AS col0 FROM tab1
----
5
69
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col1 * col0 col0 FROM tab2
----
-1326
-186
-4543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4192
SELECT DISTINCT CAST( - col2 AS SIGNED ) + + col2 col1 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4192
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + + col2 col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - + cor0.col1 * - col1 - cor0.col2 * + col1 * col0 AS col1 FROM tab0 AS cor0
----
-60716
-655837
6014
query I rowsort
SELECT ALL + - 92 + + cor0.col1 + col0 FROM tab2 AS cor0
----
-54
4
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4195
SELECT + + CAST( NULL AS SIGNED ) * - 4 - - col2 col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4195
SELECT + + CAST ( NULL AS INTEGER ) * - 4 - - col2 col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + + ( + col0 ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + ( 35 ) + + col2 AS col0 FROM tab1 AS cor0
----
131
89
92
query I rowsort
SELECT 72 * col1 + col1 * - ( 40 ) FROM tab2 cor0
----
1888
544
992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4199
SELECT - CAST( - col2 AS SIGNED ) * col2 FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-4199
SELECT - CAST ( - col2 AS INTEGER ) * col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + col2 + - cor0.col1 * + col1 FROM tab0 cor0
----
-7363
-8199
-9408
query I rowsort
SELECT ALL 84 + - col2 FROM tab0 AS cor0
----
2
51
83
query I rowsort
SELECT - + col0 * col2 + col1 AS col2 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ( 15 ) AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
query I rowsort
SELECT ALL 38 + cor0.col0 AS col2 FROM tab0 AS cor0
----
127
62
73
query I rowsort
SELECT ALL col2 * + col0 + - col2 FROM tab2 AS cor0
----
162
2002
2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4206
SELECT + - col1 + CAST( + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-4206
SELECT + - col1 + CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL - 93 * col2 * - col1 FROM tab1
----
116064
130572
53010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4208
SELECT DISTINCT cor0.col1 + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4208
SELECT DISTINCT cor0.col1 + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col1 - 31 AS col1 FROM tab1 AS cor0
----
-18
-21
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-4210
SELECT ALL - - ( + col1 ) DIV + col1 - - col0 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL - - ( + col1 ) / + col1 - - col0 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT DISTINCT col2 * - col1 * col1 - col0 * 87 AS col2 FROM tab1 AS cor0
----
-11268
-23184
-36765
query I rowsort
SELECT - col2 * 48 - - col2 AS col2 FROM tab2 cor0
----
-1222
-1269
-1786
query I rowsort
SELECT DISTINCT - 40 + col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-31
4056
6360
onlyif mysql # use DIV operator for integer division
query I rowsort label-4214
SELECT ALL 43 DIV - col2 - + col2 * + cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-4214
SELECT ALL 43 / - col2 - + col2 * + cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + 40 + + 93 FROM tab0 AS cor0
----
133
133
133
query I rowsort
SELECT tab2.col0 * - col0 * - col0 - col1 * - 92 FROM tab2
----
3195
479980
494603
query I rowsort
SELECT + col1 * col0 * 90 - + col0 AS col0 FROM tab1
----
57536
7017
93520
onlyif mysql # use DIV operator for integer division
query I rowsort label-4218
SELECT ALL + col0 * cor0.col1 DIV col1 + + 65 FROM tab0 AS cor0
----
100
154
89
skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL + col0 * cor0.col1 / col1 + + 65 FROM tab0 AS cor0
----
100
154
89
query I rowsort
SELECT col0 + - 25 AS col1 FROM tab0 AS cor0
----
-1
10
64
query I rowsort
SELECT ALL + 70 * - cor0.col2 + + col0 * - col0 AS col2 FROM tab1 cor0
----
-13120
-3789
-8086
query I rowsort
SELECT DISTINCT + 21 * col2 - col1 AS col1 FROM tab1 cor0
----
1108
1187
2003
query I rowsort
SELECT DISTINCT 18 + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-68
-73
-79
query I rowsort
SELECT ALL + 5 FROM tab2, tab0 cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
query I rowsort
SELECT - 62 FROM tab1, tab0 cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c
query I rowsort
SELECT + - 59 * 9 AS col0 FROM tab0 AS cor0
----
-531
-531
-531
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab0 cor1, tab2 AS cor2
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c
query I rowsort
SELECT col1 * ( col2 ) + col0 FROM tab2
----
1612
725
844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 - col2 col1 FROM tab1
----
-135
-138
-177
query I rowsort
SELECT col2 * + col1 + + col1 - + col0 * col2 FROM tab2
----
-2339
-435
679
query I rowsort
SELECT DISTINCT ( - col2 ) - + tab2.col1 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT ALL ( - 47 ) - col2 AS col0 FROM tab2
----
-73
-74
-85
query I rowsort
SELECT DISTINCT - col1 * - 5 AS col1 FROM tab1 AS cor0
----
130
50
65
query I rowsort
SELECT DISTINCT cor1.col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
1
33
82
query I rowsort
SELECT DISTINCT + 72 AS col0 FROM tab0 cor0
----
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 * col1 col1 FROM tab1 AS cor0
----
1118
2236
860
query I rowsort
SELECT - 53 + + cor0.col1 * - 96 * - 87 FROM tab0, tab0 AS cor0
----
9 values hashing to 4b0c945301bca71d900115ac347005ca
query I rowsort
SELECT ALL + ( - col2 ) * + col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + 80 + + 25 FROM tab1
----
105
105
105
query I rowsort
SELECT + col1 * col1 * 64 AS col0 FROM tab1
----
10816
43264
6400
query I rowsort
SELECT col1 + ( - 91 ) + col2 FROM tab0 AS cor0
----
28
7
82
query I rowsort
SELECT + ( tab0.col0 ) * - 87 AS col2 FROM tab0
----
-2088
-3045
-7743
query I rowsort
SELECT ALL cor0.col0 * - cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 9bb5096fcd17e3f131152e7a67a5338f
query I rowsort
SELECT col1 * - col2 + 75 + 88 AS col1 FROM tab2 AS cor0
----
-1371
-483
-674
onlyif mysql # use DIV operator for integer division
query I rowsort label-4244
SELECT - col1 DIV col2 + ( 44 ) FROM tab0 AS cor0
----
-53
42
43
skipif mysql # not compatible
query I rowsort label-4244
SELECT - col1 / col2 + ( 44 ) FROM tab0 AS cor0
----
-53
42
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-4245
SELECT DISTINCT - col1 + - col0 DIV - col0 AS col1 FROM tab2
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT - col1 + - col0 / - col0 AS col1 FROM tab2
----
-16
-30
-58
query I rowsort
SELECT ALL col0 + col2 * col1 * - col2 AS col1 FROM tab0 AS cor0
----
-611795
-62
-93630
query I rowsort
SELECT col2 * - col0 + ( col2 ) FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT + col0 + + col0 + - col2 AS col2 FROM tab0 AS cor0
----
15
69
96
query I rowsort
SELECT ALL + cor0.col0 * 14 FROM tab2 AS cor0
----
1092
1106
98
query I rowsort
SELECT DISTINCT + + cor0.col0 * - ( + col2 ) * - col0 AS col1 FROM tab1 AS cor0
----
233472
486
614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-4251
SELECT DISTINCT - + col2 + - 76 DIV col1 AS col0 FROM tab0 cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-4251
SELECT DISTINCT - + col2 + - 76 / col1 AS col0 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - col2 + - 6 FROM tab1 AS cor0
----
-102
-60
-63
onlyif mysql # use DIV operator for integer division
query I rowsort label-4253
SELECT ALL + cor0.col2 DIV col0 AS col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL + cor0.col2 / col0 AS col0 FROM tab1 AS cor0
----
0
1
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4254
SELECT ALL col2 * + CAST( ( + col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL col2 * + CAST ( ( + col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4255
SELECT ( col2 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4255
SELECT ( col2 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - tab1.col2 FROM tab1, tab0, tab0 AS cor0, tab2
----
-54
-57
-96
query I rowsort
SELECT ALL 72 + - col1 FROM tab1 cor0
----
46
59
62
query I rowsort
SELECT 21 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
query I rowsort
SELECT - col2 + + ( - cor0.col0 * cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT col0 * - 12 AS col2 FROM tab1 cor0
----
-36
-768
-960
query I rowsort
SELECT ( col2 ) * - 15 + 36 FROM tab1
----
-1404
-774
-819
query I rowsort
SELECT - 79 * + col2 + col0 AS col2 FROM tab2 AS cor0
----
-1976
-2126
-2923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4263
SELECT CAST( NULL AS DECIMAL ) * 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-4263
SELECT CAST ( NULL AS REAL ) * col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4264
SELECT ALL 45 DIV 31 - col2 AS col1 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL 45 / 31 - col2 AS col1 FROM tab1 AS cor0
----
-53
-56
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) + cor0.col2 * 87 col1 FROM tab0 AS cor0
----
184
2957
7225
query I rowsort
SELECT DISTINCT + cor0.col1 + - col1 AS col0 FROM tab1 cor0
----
0
query I rowsort
SELECT DISTINCT - col1 + - col0 + + col2 FROM tab2 AS cor0
----
-11
-111
-58
query I rowsort
SELECT ALL - col2 * col0 - col0 AS col0 FROM tab0 cor0
----
-70
-7387
-816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 71 * col0 + + col1 col0 FROM tab1 AS cor0
----
239
4554
5693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4270
SELECT + CAST( - col0 AS SIGNED ) * cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-4270
SELECT + CAST ( - col0 AS INTEGER ) * cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4271
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 39 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 39 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - col2 * + 17 FROM tab1 AS cor0
----
-1632
-918
-969
query I rowsort
SELECT ALL - ( - 96 ) FROM tab0 cor0
----
96
96
96
query I rowsort
SELECT DISTINCT + col1 * 44 + - col2 AS col0 FROM tab1
----
1090
383
476
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 + col2 col2 FROM tab2 AS cor0
----
30
31
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - 0 col2 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT ( 80 ) * col2 FROM tab1
----
4320
4560
7680
query I rowsort
SELECT DISTINCT - 56 FROM tab2, tab2 AS cor0, tab1, tab2 AS cor1
----
-56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4279
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col1 col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col1 col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + + col2 - 82 FROM tab1 AS cor0
----
-25
-28
14
query I rowsort
SELECT 86 + cor0.col1 * + col2 FROM tab2 AS cor0
----
1620
732
923
query I rowsort
SELECT ALL + ( 35 ) * col0 AS col0 FROM tab2 AS cor0
----
245
2730
2765
onlyif mysql # use DIV operator for integer division
query I rowsort label-4283
SELECT DISTINCT tab0.col1 DIV 50 + tab0.col1 - 69 AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
18
23
29
skipif mysql # not compatible
query I rowsort label-4283
SELECT DISTINCT tab0.col1 / 50 + tab0.col1 - 69 AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
18
23
29
query I rowsort
SELECT - 72 + col0 AS col2 FROM tab0 AS cor0
----
-37
-48
17
query I rowsort
SELECT - ( + col2 ) * col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 16 ) col0 FROM tab0
----
16
16
16
query I rowsort
SELECT DISTINCT + 71 * col2 FROM tab1
----
3834
4047
6816
query I rowsort
SELECT 77 * col2 * col0 FROM tab1
----
12474
280896
591360
query I rowsort
SELECT DISTINCT + 57 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
57
query I rowsort
SELECT cor0.col0 * + col0 + + 83 + col2 * + col0 * + col1 AS col2 FROM tab1 cor0
----
106323
40659
4304
query I rowsort
SELECT - col2 * + col0 * + 83 + 18 * + col2 FROM tab1 AS cor0
----
-12474
-301758
-635712
query I rowsort
SELECT + col1 * - cor0.col1 + col1 FROM tab2 AS cor0
----
-272
-3422
-930
onlyif mysql # use DIV operator for integer division
query I rowsort label-4293
SELECT + col0 DIV col1 + - col2 * cor0.col1 - 33 AS col2 FROM tab0 AS cor0
----
-130
-2871
-7495
skipif mysql # not compatible
query I rowsort label-4293
SELECT + col0 / col1 + - col2 * cor0.col1 - 33 AS col2 FROM tab0 AS cor0
----
-130
-2871
-7495
query I rowsort
SELECT ALL - col1 * - ( + ( col0 ) ) AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT col2 + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT + col0 * - col2 + - col1 - - col1 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + col1 * - ( 61 ) + + col2 AS col0 FROM tab0 cor0
----
-5213
-5469
-5916
query I rowsort
SELECT DISTINCT - col2 * col1 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col0 col1 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4300
SELECT ALL col1 DIV - 54 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL col1 / - 54 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT - 42 * ( col2 ) AS col2 FROM tab2 AS cor0
----
-1092
-1134
-1596
query I rowsort
SELECT - cor1.col1 + - cor0.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7b5b9cceefef23d4ffdf9852fd8d61bb
onlyif mysql # use DIV operator for integer division
query I rowsort label-4303
SELECT - ( - cor0.col1 ) DIV + col1 AS col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4303
SELECT - ( - cor0.col1 ) / + col1 AS col1 FROM tab2 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + col2 * ( + col0 ) + + ( col0 ) * col0 col2 FROM tab2 AS cor0
----
120317
5152
58812
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + ( + col2 ) col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + col2 + + 4 - + col0 FROM tab0 AS cor0
----
-3
-30
13
query I rowsort
SELECT DISTINCT - cor0.col2 + col1 * - col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-3396
-664200
-68145
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + cor0.col0 * + col1 - col0 * col2 col0 FROM tab1 AS cor0
----
-2951
-30
-6544
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 58 ) * - col1 + + col1 * - col2 col2 FROM tab2 cor0
----
-1632
-2635
-4956
query I rowsort
SELECT + + ( cor0.col1 ) + - col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT cor0.col0 * - cor0.col0 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to bfa29ac72730a1b8452f6f2702fbe6b9
query I rowsort
SELECT - - 68 + 3 AS col1 FROM tab1 AS cor0
----
71
71
71
query I rowsort
SELECT ALL 52 + - col2 FROM tab0 AS cor0
----
-30
19
51
query I rowsort
SELECT - - col1 + col1 * col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT - 15 * col1 AS col1 FROM tab0
----
-1290
-1365
-1455
onlyif mysql # use DIV operator for integer division
query I rowsort label-4316
SELECT ALL + + col1 + col1 DIV - col0 FROM tab0 AS cor0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL + + col1 + col1 / - col0 FROM tab0 AS cor0
----
83
90
95
query I rowsort
SELECT DISTINCT - 69 AS col0 FROM tab0, tab2 AS cor0
----
-69
query I rowsort
SELECT ALL - ( + col2 ) * - col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT 79 * - col1 AS col0 FROM tab1 cor0
----
-1027
-2054
-790
query I rowsort
SELECT ALL 33 + col0 AS col2 FROM tab1 AS cor0
----
113
36
97
query I rowsort
SELECT 55 - col2 * col2 FROM tab1
----
-2861
-3194
-9161
query I rowsort
SELECT ALL 48 * - col2 * col0 AS col2 FROM tab2
----
-144096
-9072
-97344
query I rowsort
SELECT DISTINCT + 1 + col2 AS col0 FROM tab2 AS cor0
----
27
28
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 + + col2 col2 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT + + 77 FROM tab2, tab0, tab1 cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125
query I rowsort
SELECT ALL + 71 AS col0 FROM tab2
----
71
71
71
query I rowsort
SELECT DISTINCT col1 + 69 + cor0.col1 FROM tab0 AS cor0
----
241
251
263
query I rowsort
SELECT ALL - col0 * - 7 + ( col1 ) FROM tab0 AS cor0
----
254
342
714
onlyif mysql # use DIV operator for integer division
query I rowsort label-4329
SELECT + + col1 DIV + CAST( col2 * - col0 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4329
SELECT + + col1 / + CAST ( col2 * - col0 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4330
SELECT 82 DIV tab1.col0 + col2 * tab1.col2 AS col2 FROM tab1
----
2943
3250
9217
skipif mysql # not compatible
query I rowsort label-4330
SELECT 82 / tab1.col0 + col2 * tab1.col2 AS col2 FROM tab1
----
2943
3250
9217
onlyif mysql # use DIV operator for integer division
query I rowsort label-4331
SELECT + + col0 * - cor0.col0 + col0 DIV 42 AS col0 FROM tab1 AS cor0
----
-4095
-6399
-9
skipif mysql # not compatible
query I rowsort label-4331
SELECT + + col0 * - cor0.col0 + col0 / 42 AS col0 FROM tab1 AS cor0
----
-4095
-6399
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 - + 54 col1 FROM tab0 AS cor0
----
-140
-145
-151
onlyif mysql # use DIV operator for integer division
query I rowsort label-4333
SELECT DISTINCT - + 51 * + col2 + col2 DIV col2 AS col2 FROM tab1 AS cor0
----
-2753
-2906
-4895
skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT - + 51 * + col2 + col2 / col2 AS col2 FROM tab1 AS cor0
----
-2753
-2906
-4895
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * - col0 - col2 * col0 col2 FROM tab1 cor0
----
-3008
-6640
-84
query I rowsort
SELECT cor0.col1 + 33 * + col0 * + col2 FROM tab0 AS cor0
----
1252
240925
26222
query I rowsort
SELECT - tab0.col0 * 57 AS col1 FROM tab0
----
-1368
-1995
-5073
query I rowsort
SELECT ALL - - ( 62 ) + col0 * + 83 AS col1 FROM tab0 AS cor0
----
2054
2967
7449
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 4 + - col2 col2 FROM tab0 cor0
----
-29
-78
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-4339
SELECT DISTINCT + 7 DIV col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT + 7 / col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - 65 + 14 AS col0 FROM tab0 AS cor0
----
-51
-51
-51
query I rowsort
SELECT - col1 * 10 AS col0 FROM tab1 cor0
----
-100
-130
-260
query I rowsort
SELECT DISTINCT col1 + 6 - + col0 AS col0 FROM tab1
----
-48
-61
29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4343
SELECT col0 * CAST( - col2 AS SIGNED ) FROM tab1
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-4343
SELECT col0 * CAST ( - col2 AS INTEGER ) FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL + tab0.col0 * ( 48 + col1 ) FROM tab0
----
12371
3216
5075
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab1.col1 ) col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + 30 col0 FROM tab0
----
-6
5
59
query I rowsort
SELECT - col0 * + tab2.col0 + 95 + + col1 FROM tab2
----
-5930
-6129
77
query I rowsort
SELECT - col2 * + 68 AS col2 FROM tab1
----
-3672
-3876
-6528
query I rowsort
SELECT - ( - col2 ) + - col1 + ( + 21 ) * col1 FROM tab1
----
257
356
574
query I rowsort
SELECT + + 34 * 4 + col1 AS col2 FROM tab1 AS cor0
----
146
149
162
query I rowsort
SELECT + + ( + 28 ) + - col2 FROM tab1 AS cor0
----
-26
-29
-68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4352
SELECT 51 * cor0.col2 + col0 * - CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3344
-381
-3917
skipif mysql # not compatible
query I rowsort label-4352
SELECT 51 * cor0.col2 + col0 * - CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3344
-381
-3917
onlyif mysql # use DIV operator for integer division
query I rowsort label-4353
SELECT - ( + col1 ) * + col2 DIV - ( + col2 ) AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-4353
SELECT - ( + col1 ) * + col2 / - ( + col2 ) AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT 8 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
8
query I rowsort
SELECT ALL - - col2 + 11 AS col2 FROM tab2 AS cor0
----
37
38
49
query I rowsort
SELECT 59 * + cor0.col2 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 57ea2d95e3652b35596e4b75d096ea05
query I rowsort
SELECT col2 * - 41 FROM tab2 AS cor0
----
-1066
-1107
-1558
onlyif mysql # use DIV operator for integer division
query I rowsort label-4358
SELECT DISTINCT 57 DIV - cor0.col0 + - CAST( cor1.col0 AS SIGNED ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-11
-3
-64
-72
-80
-88
skipif mysql # not compatible
query I rowsort label-4358
SELECT DISTINCT 57 / - cor0.col0 + - CAST ( cor1.col0 AS INTEGER ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-11
-3
-64
-72
-80
-88
query I rowsort
SELECT DISTINCT - - col1 * 73 + col2 FROM tab2 AS cor0
----
1279
2290
4333
onlyif mysql # use DIV operator for integer division
query I rowsort label-4360
SELECT ALL + col2 + 51 DIV - col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL + col2 + 51 / - col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL 4 * col1 AS col0 FROM tab2 AS cor0
----
124
236
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4362
SELECT - - cor0.col0 + ( + col2 ) * CAST( NULL AS SIGNED ) * 88 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-4362
SELECT - - cor0.col0 + ( + col2 ) * CAST ( NULL AS INTEGER ) * 88 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 82 * - col2 col2 FROM tab2 AS cor0
----
-2054
-2207
-3037
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4364
SELECT CAST( - col2 AS SIGNED ) * col0 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-4364
SELECT CAST ( - col2 AS INTEGER ) * col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + col0 * - 42 FROM tab0 AS cor0
----
-1008
-1470
-3738
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4366
SELECT ALL CAST( - col1 AS SIGNED ) * + cor0.col0 + CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL CAST ( - col1 AS INTEGER ) * + cor0.col0 + CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 93 + - col2 * + col1 FROM tab1 AS cor0
----
-1341
-1497
-663
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4368
SELECT ALL + CAST( NULL AS SIGNED ) * + col0 / + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL + CAST ( NULL AS INTEGER ) * + col0 / + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4369
SELECT DISTINCT + col0 + + col2 * col1 DIV 29 AS col0 FROM tab0 AS cor0
----
121
346
38
skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT + col0 + + col2 * col1 / 29 AS col0 FROM tab0 AS cor0
----
121
346
38
query I rowsort
SELECT + 54 + col0 AS col0 FROM tab0 AS cor0
----
143
78
89
query I rowsort
SELECT - col0 * 33 + + col1 FROM tab1 AS cor0
----
-2102
-2627
-73
query I rowsort
SELECT + col0 + cor0.col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT col2 * 42 AS col0 FROM tab0 AS cor0
----
1386
3444
42
query I rowsort
SELECT ALL - - 89 * col0 FROM tab2 AS cor0
----
623
6942
7031
query I rowsort
SELECT DISTINCT - cor0.col2 * col0 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT + ( col1 ) + - 23 AS col1 FROM tab0 AS cor0
----
63
68
74
query I rowsort
SELECT + 72 * + 95 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 36dce895aa28e744df2676e2b26e802d
query I rowsort
SELECT ALL - col1 + - col1 * col1 AS col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT + + 89 + + col0 FROM tab2 AS cor0
----
167
168
96
query I rowsort
SELECT - - cor0.col2 + + col0 * 20 FROM tab0 AS cor0
----
1862
513
701
query I rowsort
SELECT ALL - - col1 * col0 + 68 FROM tab1 AS cor0
----
1108
146
708
query I rowsort
SELECT 3 - + col1 FROM tab1 AS cor0
----
-10
-23
-7
query I rowsort
SELECT DISTINCT col1 + - col1 + - 79 AS col0 FROM tab0 AS cor0
----
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 - col0 col1 FROM tab1 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * col0 + 83 + 31 col2 FROM tab0 AS cor0
----
2178
3509
8213
query I rowsort
SELECT DISTINCT - 8 + cor0.col1 AS col2 FROM tab2 AS cor0
----
23
51
9
query I rowsort
SELECT - 61 * col1 + + col0 AS col2 FROM tab1 AS cor0
----
-1583
-546
-713
onlyif mysql # use DIV operator for integer division
query I rowsort label-4388
SELECT - + col1 + + col0 DIV - col1 FROM tab2 AS cor0
----
-21
-31
-60
skipif mysql # not compatible
query I rowsort label-4388
SELECT - + col1 + + col0 / - col1 FROM tab2 AS cor0
----
-21
-31
-60
query I rowsort
SELECT - 2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
query I rowsort
SELECT - cor0.col0 * + 75 FROM tab2 AS cor0
----
-525
-5850
-5925
query I rowsort
SELECT - 11 * + col2 * col2 FROM tab0
----
-11
-11979
-73964
query I rowsort
SELECT DISTINCT col0 * col1 + + ( col2 ) FROM tab1
----
1136
132
697
query I rowsort
SELECT DISTINCT - 14 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-14
query I rowsort
SELECT col0 + - tab1.col0 * - col2 FROM tab1
----
165
3712
7760
query I rowsort
SELECT DISTINCT + + ( cor0.col1 ) + cor1.col2 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b8b62762005dc0d7237145d0538edb34
query I rowsort
SELECT DISTINCT 14 + - col1 FROM tab1
----
-12
1
4
query I rowsort
SELECT + 6 * + tab1.col2 FROM tab1
----
324
342
576
onlyif mysql # use DIV operator for integer division
query I rowsort label-4398
SELECT col1 - ( - col1 ) DIV col0 AS col2 FROM tab1 AS cor0
----
10
13
34
skipif mysql # not compatible
query I rowsort label-4398
SELECT col1 - ( - col1 ) / col0 AS col2 FROM tab1 AS cor0
----
10
13
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * 43 col0 FROM tab0 AS cor0
----
1032
1505
3827
query I rowsort
SELECT ALL + col2 * + col2 * + tab1.col0 + - 67 + + col2 * ( 89 ) AS col1 FROM tab1
----
13487
212942
745757
query I rowsort
SELECT ALL tab2.col0 + - col2 * col2 FROM tab2
----
-1365
-598
-722
query I rowsort
SELECT ALL + col0 + + col1 * col1 FROM tab0
----
7420
8370
9444
query I rowsort
SELECT ALL tab1.col1 + col2 * + col0 FROM tab1
----
188
3658
7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4404
SELECT DISTINCT - CAST( col1 + col0 AS SIGNED ) AS col1 FROM tab2
----
-137
-38
-96
skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT - CAST ( col1 + col0 AS INTEGER ) AS col1 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT + + tab0.col2 * ( 1 ) AS col1 FROM tab0, tab1, tab2 AS cor0, tab2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
query I rowsort
SELECT ALL + 13 * - cor0.col0 + - col1 AS col0 FROM tab0 AS cor0
----
-1248
-398
-552
onlyif mysql # use DIV operator for integer division
query I rowsort label-4407
SELECT + 14 + + cor0.col2 DIV - ( tab1.col0 ) AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to e036d396d2756050e2ae8ec9f400fe7c
skipif mysql # not compatible
query I rowsort label-4407
SELECT + 14 + + cor0.col2 / - ( tab1.col0 ) AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to e036d396d2756050e2ae8ec9f400fe7c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 col1 FROM tab2, tab0, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT - cor1.col2 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
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-4411
SELECT DISTINCT + 74 DIV col0 FROM tab1 AS cor0
----
0
1
24
skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT + 74 / col0 FROM tab1 AS cor0
----
0
1
24
query I rowsort
SELECT + col1 - col1 * - col0 * col0 AS col1 FROM tab0 AS cor0
----
118922
49622
720902
query I rowsort
SELECT DISTINCT - 5 * col1 FROM tab2 cor0
----
-155
-295
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4414
SELECT ALL - col2 + col2 * - CAST( cor0.col0 AS SIGNED ) FROM tab2 AS cor0
----
-2054
-216
-3040
skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL - col2 + col2 * - CAST ( cor0.col0 AS INTEGER ) FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT - col2 + col1 + col1 * col1 FROM tab2 AS cor0
----
268
3514
965
query I rowsort
SELECT + ( + col0 ) + col2 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ( col2 ) + - cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT - + col2 * cor0.col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + col2 * col2 * + col2 FROM tab0 AS cor0
----
1
35937
551368
query I rowsort
SELECT DISTINCT - ( + col0 + col2 ) FROM tab0
----
-171
-36
-57
query I rowsort
SELECT ALL + col0 + + col0 * ( cor0.col0 ) FROM tab2 AS cor0
----
56
6162
6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4422
SELECT ALL + CAST( NULL AS SIGNED ) * cor0.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL + CAST ( NULL AS INTEGER ) * cor0.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + col0 * col0 - - col0 * - tab2.col2 FROM tab2
----
-140
3239
4056
query I rowsort
SELECT DISTINCT + 30 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 cor1, tab0 cor2, tab2 AS cor3
----
30
query I rowsort
SELECT + 83 * + 72 FROM tab1, tab1 AS cor0
----
9 values hashing to de533f02358a82ebccd3232f56b65b94
query I rowsort
SELECT - col0 * - 6 FROM tab2 AS cor0
----
42
468
474
query I rowsort
SELECT DISTINCT + col1 * - 50 AS col2 FROM tab0 AS cor0
----
-4300
-4550
-4850
query I rowsort
SELECT ALL - col2 * + 56 + + col1 + - col2 FROM tab1
----
-3052
-3239
-5459
query I rowsort
SELECT + col2 * 2 + col2 FROM tab0 AS cor0
----
246
3
99
skipif mysql # not compatible
query I rowsort
SELECT ALL col2 - CAST ( col2 AS REAL ) FROM tab2
----
0
0
0
query I rowsort
SELECT ALL - 30 + col0 AS col1 FROM tab1
----
-27
34
50
query I rowsort
SELECT 39 AS col1 FROM tab1, tab1 cor0, tab1 AS cor1, tab2 cor2
----
81 values hashing to 9c9fbbb9cf0068f5900dff6ceb1046eb
query I rowsort
SELECT ALL + col0 * + col1 + col1 * tab2.col1 AS col1 FROM tab2
----
1178
1632
8083
query I rowsort
SELECT 89 * 27 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 170069b88625f110cf25f2946810a540
query I rowsort
SELECT DISTINCT + 3 + + col1 * + col2 AS col2 FROM tab1
----
1251
1407
573
query I rowsort
SELECT + col1 - + tab0.col2 FROM tab0
----
53
9
96
query I rowsort
SELECT ALL - 62 * - 41 AS col0 FROM tab2 AS cor0
----
2542
2542
2542
query I rowsort
SELECT 10 + + col0 FROM tab1 cor0
----
13
74
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL col2 + - 38 * tab2.col1 + - ( col0 ) FROM tab2
----
-1158
-2294
-687
query I rowsort
SELECT DISTINCT 95 + ( col2 ) AS col1 FROM tab2
----
121
122
133
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 61 * + col1 col2 FROM tab1 AS cor0
----
1640
667
889
query I rowsort
SELECT DISTINCT - col2 * + 20 + col1 FROM tab2 AS cor0
----
-461
-509
-743
query I rowsort
SELECT - col0 + + col1 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT + - col1 + - col2 * - col0 AS col0 FROM tab1 cor0
----
136
3638
7667
query I rowsort
SELECT + col0 * 40 * col1 FROM tab0 AS cor0
----
135800
323960
82560
query I rowsort
SELECT - - cor0.col2 + + ( cor0.col1 ) * - 17 FROM tab0 AS cor0
----
-1429
-1465
-1648
query I rowsort
SELECT - 88 * col0 * 10 AS col0 FROM tab1
----
-2640
-56320
-70400
query I rowsort
SELECT DISTINCT 0 * - col0 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4450
SELECT + col1 + - col0 DIV - cor0.col0 + 78 FROM tab0 AS cor0
----
165
170
176
skipif mysql # not compatible
query I rowsort label-4450
SELECT + col1 + - col0 / - cor0.col0 + 78 FROM tab0 AS cor0
----
165
170
176
query I rowsort
SELECT DISTINCT + - 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-4452
SELECT ALL + col0 * - col0 + - CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL + col0 * - col0 + - CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( + col1 ) + + 8 AS col0 FROM tab1 AS cor0
----
18
21
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 * col2 col0 FROM tab0 cor0
----
2541
6314
77
query I rowsort
SELECT col0 * - col1 + - col1 FROM tab2 AS cor0
----
-1360
-248
-4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-4456
SELECT + col0 DIV - 81 AS col0 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4456
SELECT + col0 / - 81 AS col0 FROM tab0
----
-1
0
0
query I rowsort
SELECT DISTINCT - 80 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT col2 + tab1.col1 * - col1 AS col1 FROM tab1
----
-43
-622
-73
query I rowsort
SELECT - col2 + + ( - col0 ) * - col0 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT 14 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
query I rowsort
SELECT DISTINCT col1 + + ( ( col1 ) ) FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL - col0 + - ( ( + col0 ) ) FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT + - 96 * col0 FROM tab0 cor0
----
-2304
-3360
-8544
query I rowsort
SELECT ALL col1 * - 64 + + col0 AS col0 FROM tab2 AS cor0
----
-1009
-1977
-3698
query I rowsort
SELECT DISTINCT - 49 * + col0 FROM tab0 AS cor0
----
-1176
-1715
-4361
onlyif mysql # use DIV operator for integer division
query I rowsort label-4467
SELECT - col0 + - col0 DIV col2 AS col0 FROM tab0 AS cor0
----
-24
-70
-90
skipif mysql # not compatible
query I rowsort label-4467
SELECT - col0 + - col0 / col2 AS col0 FROM tab0 AS cor0
----
-24
-70
-90
query I rowsort
SELECT ALL - + 58 * + col0 FROM tab0 AS cor0
----
-1392
-2030
-5162
onlyif mysql # use DIV operator for integer division
query I rowsort label-4469
SELECT DISTINCT ( - cor0.col0 ) + col2 DIV + 27 + + col0 AS col0 FROM tab0 AS cor0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-4469
SELECT DISTINCT ( - cor0.col0 ) + col2 / + 27 + + col0 AS col0 FROM tab0 AS cor0
----
0
1
3
query I rowsort
SELECT + - 95 + cor0.col0 * col0 FROM tab0 AS cor0
----
1130
481
7826
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4471
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 col1 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL col1 - + col0 * 98 FROM tab0
----
-2266
-3333
-8631
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4473
SELECT DISTINCT + col2 * CAST( + ( col1 ) AS SIGNED ) + col0 AS col2 FROM tab2
----
1612
725
844
skipif mysql # not compatible
query I rowsort label-4473
SELECT DISTINCT + col2 * CAST ( + ( col1 ) AS INTEGER ) + col0 AS col2 FROM tab2
----
1612
725
844
query I rowsort
SELECT col0 + ( 85 ) - + col0 FROM tab2
----
85
85
85
query I rowsort
SELECT - col0 + 32 + + col1 AS col0 FROM tab1
----
-22
-35
55
query I rowsort
SELECT ALL - col2 + - col1 * + col1 FROM tab2
----
-327
-3507
-988
query I rowsort
SELECT + cor0.col2 * col1 * - col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT ( col0 ) > NULL
----
query I rowsort
SELECT + tab2.col2 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( - col0 * col0 )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT IN ( - tab2.col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4481
SELECT ALL col0 * + col0 + col0 DIV - col1 FROM tab0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL col0 * + col0 + col0 / - col1 FROM tab0
----
1225
576
7921
query I rowsort
SELECT DISTINCT + col0 + - tab1.col2 AS col0 FROM tab1
----
-16
-51
7
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= ( col2 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 NOT BETWEEN col2 AND NULL
----
7
31
27
query I rowsort
SELECT ALL + tab1.col0 - - tab1.col1 FROM tab1
----
29
74
93
query I rowsort
SELECT - col2 * col1 + col0 FROM tab2
----
-1456
-567
-830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + - col0 col0 FROM tab0 WHERE NOT ( - col1 ) BETWEEN NULL AND col0 + col2 + col0 * - col2
----
-1113
-6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-4488
SELECT DISTINCT col1 - + col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT col1 - + col2 / - col2 AS col2 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT DISTINCT col2 * col1 * col1 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT col0 + cor0.col0 * + col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT col2 * - col1 * col2 AS col1 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT col0 * - col0 - + col1 * + col2 * col1 AS col0 FROM tab2
----
-17223
-25996
-96590
query I rowsort
SELECT DISTINCT col1 * + tab2.col0 * + col2 AS col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT - tab1.col2 * tab1.col1 + + col2 AS col0 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT + tab0.col0 + - col0 AS col2 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - col1 col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - col1 + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-35
-4106
-6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 + + col0 col2 FROM tab2
----
196
2106
3081
query I rowsort
SELECT ALL - col2 * - col2 * + col1 AS col2 FROM tab0
----
611884
93654
97
query I rowsort
SELECT ALL cor0.col1 * col0 + col2 + + col0 * - col2 FROM tab1 AS cor0
----
-2951
-30
-6544
query I rowsort
SELECT - col1 * col1 + + col2 - + col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT - + col2 * + col2 + col1 AS col1 FROM tab2 AS cor0
----
-1427
-617
-698
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 col0 FROM tab2 cor0
----
104
117
34
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col2 ) IN ( col0 * col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT ALL + tab2.col1 * tab2.col2 * + col2 FROM tab2
----
22599
24548
39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-4506
SELECT DISTINCT cor0.col2 + + cor0.col2 DIV col0 AS col2 FROM tab2 AS cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-4506
SELECT DISTINCT cor0.col2 + + cor0.col2 / col0 AS col2 FROM tab2 AS cor0
----
26
30
38
query I rowsort
SELECT - - col0 + - col2 * col2 * col1 - + col0 FROM tab1 cor0
----
-119808
-32490
-75816
query I rowsort
SELECT - + col1 + col0 * - col2 FROM tab2 AS cor0
----
-2087
-220
-3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-4509
SELECT ALL col1 - tab1.col0 DIV col2 AS col1 FROM tab1
----
13
26
9
skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL col1 - tab1.col0 / col2 AS col1 FROM tab1
----
13
26
9
query I rowsort
SELECT + + col0 * - col1 + col0 - col1 * + col2 AS col1 FROM tab1 AS cor0
----
-1146
-1479
-2208
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 * + col2 col2 FROM tab2 AS cor0
----
1508
1566
2204
onlyif mysql # use DIV operator for integer division
query I rowsort label-4512
SELECT + col1 DIV + cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-4512
SELECT + col1 / + cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT - col0 * + cor0.col2 + cor0.col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT + cor0.col2 * + ( + col1 ) + cor0.col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT + + col1 + - 30 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-2369
-904
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-4516
SELECT col2 DIV + col1 + 44 * + col0 AS col2 FROM tab1 AS cor0
----
134
2821
3527
skipif mysql # not compatible
query I rowsort label-4516
SELECT col2 / + col1 + 44 * + col0 AS col2 FROM tab1 AS cor0
----
134
2821
3527
onlyif mysql # use DIV operator for integer division
query I rowsort label-4517
SELECT - + col0 DIV 16 col0 FROM tab1 AS cor0
----
-4
-5
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4517
SELECT - + col0 / 16 col0 FROM tab1 AS cor0
----
-4
-5
0
query I rowsort
SELECT cor0.col2 + - col2 - col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL 53 FROM tab2, tab2 cor0, tab2 cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col0 + col2 * - col2 col2 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT ALL - col0 * col0 + col1 * col0 FROM tab0
----
1488
178
2170
onlyif mysql # use DIV operator for integer division
query I rowsort label-4522
SELECT - col2 * col0 * - col2 + + col2 DIV col2 + col0 * tab1.col2 FROM tab1
----
211585
744961
8911
skipif mysql # not compatible
query I rowsort label-4522
SELECT - col2 * col0 * - col2 + + col2 / col2 + col0 * tab1.col2 FROM tab1
----
211585
744961
8911
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col1 col2 FROM tab0
----
0
query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 + + col2 col2 FROM tab1
----
108
114
192
query I rowsort
SELECT ALL tab2.col2 * col2 + col0 AS col0 FROM tab2
----
1523
736
754
query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT col1 * tab0.col2 + + col0 * - col0 FROM tab0
----
-1128
-459
2262
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 * + col0 col0 FROM tab0 WHERE col0 >= NULL
----
query I rowsort
SELECT - tab1.col2 + col2 AS col0 FROM tab1 WHERE col1 BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL tab0.col0 + tab0.col1 FROM tab0
----
110
132
180
query III rowsort
SELECT * FROM tab0 WHERE NULL >= + col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc
query I rowsort
SELECT ALL col2 * + col0 + ( - col0 * - col0 ) + col1 * - col0 AS col1 FROM tab2 AS cor0
----
21
3510
7900
query I rowsort
SELECT DISTINCT col1 * tab0.col0 + + col2 AS col0 FROM tab0
----
2097
3396
8181
query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 * col1 ) = NULL
----
query I rowsort
SELECT ALL col2 + col1 * tab0.col1 * + col0 FROM tab0
----
177537
329316
737091
query I rowsort
SELECT DISTINCT - col1 * + tab2.col1 + col2 FROM tab2
----
-251
-3455
-934
query I rowsort
SELECT + col1 * col0 + + col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT cor0.col0 + 82 * + ( - cor0.col1 + 45 ) FROM tab2 cor0
----
-1070
1155
2375
query I rowsort
SELECT col2 + + 72 AS col0 FROM tab2 AS cor0
----
110
98
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-4542
SELECT ALL - - col1 + col0 DIV col1 col2 FROM tab2 AS cor0
----
21
31
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL - - col1 + col0 / col1 col2 FROM tab2 AS cor0
----
21
31
60
query I rowsort
SELECT + - col0 * + col0 + - ( - col0 + 60 ) AS col2 FROM tab0 AS cor0
----
-1250
-612
-7892
query I rowsort
SELECT DISTINCT col2 * ( - col1 ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - col0 + 64 + - cor0.col1 * - col1 FROM tab2 cor0
----
1018
274
3467
onlyif mysql # use DIV operator for integer division
query I rowsort label-4546
SELECT DISTINCT + cor0.col0 DIV - col2 FROM tab0 cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-4546
SELECT DISTINCT + cor0.col0 / - col2 FROM tab0 cor0
----
-1
-35
0
query I rowsort
SELECT + + col1 + 40 FROM tab2 AS cor0
----
57
71
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-4548
SELECT DISTINCT - col0 + col1 + 99 DIV - col0 AS col1 FROM tab1 cor0
----
-10
-55
-68
skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT - col0 + col1 + 99 / - col0 AS col1 FROM tab1 cor0
----
-10
-55
-68
query I rowsort
SELECT - col1 * + 92 + 51 FROM tab0 AS cor0
----
-7861
-8321
-8873
onlyif mysql # use DIV operator for integer division
query I rowsort label-4550
SELECT col0 DIV 12 + col2 FROM tab2 cor0
----
27
32
44
skipif mysql # not compatible
query I rowsort label-4550
SELECT col0 / 12 + col2 FROM tab2 cor0
----
27
32
44
query I rowsort
SELECT DISTINCT - col0 * ( col2 ) + - col0 AS col1 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT ALL + + col1 * ( col1 ) - - col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT - 86 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 cor1
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af
query I rowsort
SELECT ALL - 45 * - col1 + - col2 * 41 FROM tab1 AS cor0
----
-1044
-1887
-3351
query I rowsort
SELECT - col1 * 69 AS col1 FROM tab2
----
-1173
-2139
-4071
query I rowsort
SELECT DISTINCT col1 + + 58 FROM tab1
----
68
71
84
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab0 cor1, tab0 AS cor2
----
972 values hashing to 04d825fa29899c3ee2704c26a542267d
skipif mysql # not compatible
query I rowsort
SELECT - cor0.col0 + col1 - + CAST ( - col0 AS REAL ) FROM tab1 cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 + col0 col1 FROM tab1 AS cor0
----
-50
11
27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4560
SELECT DISTINCT col0 * cor0.col0 - + CAST( NULL AS SIGNED ) * + col2 * col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT col0 * cor0.col0 - + CAST ( NULL AS INTEGER ) * + col2 * col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4561
SELECT col2 DIV - col2 - col2 DIV ( col0 ) AS col1 FROM tab1 cor0
----
-1
-19
-2
skipif mysql # not compatible
query I rowsort label-4561
SELECT col2 / - col2 - col2 / ( col0 ) AS col1 FROM tab1 cor0
----
-1
-19
-2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + + col2 * - cor0.col2 col0 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT 67 * col0 + col1 + col1 FROM tab2
----
531
5327
5344
query I rowsort
SELECT col0 + - col2 + + col2 * col2 AS col1 FROM tab0
----
1080
35
6731
query I rowsort
SELECT - col1 * - col2 + 98 * + col1 FROM tab2 AS cor0
----
2312
3875
7316
query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT + col1 + + cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-4568
SELECT ALL col1 + col0 DIV col2 FROM tab0 AS cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL col1 + col0 / col2 FROM tab0 AS cor0
----
132
86
92
query I rowsort
SELECT ALL - 25 * col2 - + tab0.col1 AS col1 FROM tab0
----
-122
-2141
-911
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + tab1.col1 col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT + 53 AS col1 FROM tab0 AS cor0
----
53
53
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-4572
SELECT ALL + 29 DIV - col1 + - col0 AS col1 FROM tab1 AS cor0
----
-4
-66
-82
skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL + 29 / - col1 + - col0 AS col1 FROM tab1 AS cor0
----
-4
-66
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col2 * col2 col1 FROM tab1
----
-2913
-3185
-9136
query I rowsort
SELECT + 60 * col0 FROM tab0
----
1440
2100
5340
query I rowsort
SELECT + col0 * col2 + + ( col1 * 54 ) FROM tab1 AS cor0
----
1566
4188
8382
query I rowsort
SELECT ALL - + col2 + + cor0.col0 FROM tab1 AS cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 - ( ( - col2 ) ) col1 FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * col0 col1 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4579
SELECT ALL - cor0.col0 DIV + 73 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL - cor0.col0 / + 73 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT col0 * - 78 AS col0 FROM tab1 AS cor0
----
-234
-4992
-6240
query I rowsort
SELECT - col2 + col0 * col2 AS col1 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT ALL col2 - cor0.col2 * 73 AS col2 FROM tab2 AS cor0
----
-1872
-1944
-2736
query I rowsort
SELECT DISTINCT + col0 + 70 AS col0 FROM tab1 cor0
----
134
150
73
query I rowsort
SELECT col0 * col1 + 38 FROM tab0 AS cor0
----
2102
3433
8137
onlyif mysql # use DIV operator for integer division
query I rowsort label-4585
SELECT + + cor0.col0 DIV + col1 - + 48 AS col0 FROM tab1 AS cor0
----
-42
-42
-48
skipif mysql # not compatible
query I rowsort label-4585
SELECT + + cor0.col0 / + col1 - + 48 AS col0 FROM tab1 AS cor0
----
-42
-42
-48
query I rowsort
SELECT ALL + 13 FROM tab0, tab0 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4587
SELECT DISTINCT CAST( NULL AS SIGNED ) / + col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + col1 FROM tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4588
SELECT - CAST( NULL AS SIGNED ) - + col1 / tab0.col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4588
SELECT - CAST ( NULL AS INTEGER ) - + col1 / tab0.col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + tab0.col0 AS col2 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT - ( 21 ) FROM tab1 AS cor0
----
-21
-21
-21
query I rowsort
SELECT DISTINCT col0 * - col2 * + col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4592
SELECT ALL + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( + ( - col1 ) ) FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + + 60 + + 44 AS col2 FROM tab0 AS cor0
----
104
query I rowsort
SELECT DISTINCT col0 * + col1 * cor0.col1 + col1 FROM tab0 AS cor0
----
177590
329412
737100
query I rowsort
SELECT + ( - col0 ) + col0 * + col1 * + col0 FROM tab0 AS cor0
----
118790
49512
720722
query I rowsort
SELECT ALL + 41 + col2 * - 96 FROM tab1 AS cor0
----
-5143
-5431
-9175
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 * col2 col2 FROM tab1 cor0
----
1890
1995
3360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 * - col2 col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - + col0 * + col2 AS col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + 51 + col1 * col0 FROM tab0 AS cor0
----
2115
3446
8150
query I rowsort
SELECT DISTINCT 49 * - col0 FROM tab2 AS cor0
----
-343
-3822
-3871
query I rowsort
SELECT ALL - - cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - - 30 FROM tab1 cor0
----
30
30
30
query I rowsort
SELECT ALL - 11 * col2 AS col2 FROM tab0
----
-11
-363
-902
query I rowsort
SELECT DISTINCT 45 * col1 AS col1 FROM tab0 AS cor0
----
3870
4095
4365
query I rowsort
SELECT ALL + 12 AS col0 FROM tab0 cor0
----
12
12
12
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4608
SELECT DISTINCT - ( + col1 ) + - CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT - ( + col1 ) + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - col1 * col2 * + col1 AS col1 FROM tab0 cor0
----
-244068
-679042
-9409
query I rowsort
SELECT ALL - cor0.col2 + col0 * cor0.col1 AS col2 FROM tab0 cor0
----
2031
3394
8017
query I rowsort
SELECT col1 + 28 * col2 + - ( col2 ) FROM tab2 AS cor0
----
1043
760
761
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2, tab1 cor0, tab0 cor1
----
10
13
26
query I rowsort
SELECT - col2 * cor0.col0 - col1 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT DISTINCT - ( ( - cor0.col0 ) ) + - cor0.col0 * col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT + 57 * + 27 - - col1 AS col2 FROM tab2 AS cor0
----
1556
1570
1598
query I rowsort
SELECT DISTINCT - col1 * - col1 - - cor0.col0 AS col1 FROM tab2 cor0
----
3559
368
968
query I rowsort
SELECT col1 - - 4 AS col0 FROM tab1 AS cor0
----
14
17
30
query I rowsort
SELECT ALL 37 - cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to d5df1e3652855b857aae2959bdf920ce
query I rowsort
SELECT col0 * - col0 - - col1 AS col2 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT ALL + 0 + col2 FROM tab2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-4621
SELECT ALL + 49 + col1 * col1 DIV - col0 AS col0 FROM tab1
----
-176
47
48
skipif mysql # not compatible
query I rowsort label-4621
SELECT ALL + 49 + col1 * col1 / - col0 AS col0 FROM tab1
----
-176
47
48
query I rowsort
SELECT cor0.col0 * + col0 - - col1 AS col2 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT 95 + + col0 + col1 FROM tab2
----
133
191
232
query I rowsort
SELECT + ( + 70 ) * col0 * col0 AS col0 FROM tab2
----
3430
425880
436870
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col1 col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + 73 AS col0 FROM tab2, tab2 AS cor0
----
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4627
SELECT ALL - + col0 + CAST( + ( col2 ) AS SIGNED ) FROM tab2 cor0
----
-41
-52
20
skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL - + col0 + CAST ( + ( col2 ) AS INTEGER ) FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT ALL + col2 * 30 * - col2 FROM tab1 AS cor0
----
-276480
-87480
-97470
query I rowsort
SELECT DISTINCT - cor0.col2 * ( col1 ) AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - col0 + + col2 * - 43 AS col1 FROM tab2 AS cor0
----
-1168
-1196
-1713
query I rowsort
SELECT DISTINCT + col1 + ( + col2 ) FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - col0 * col0 + + 88 * col2 FROM tab1 AS cor0
----
2048
4743
920
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4633
SELECT + col0 * + CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4633
SELECT + col0 * + CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * - 19 - - cor0.col1 FROM tab1 AS cor0
----
-1206
-1507
-31
query I rowsort
SELECT + + col0 + + 98 AS col1 FROM tab2 AS cor0
----
105
176
177
query I rowsort
SELECT ALL col2 * cor0.col1 - col2 * + cor0.col0 FROM tab2 AS cor0
----
-2356
-494
648
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + col0 * - CAST ( 74 AS REAL ) FROM tab2 AS cor0
----
-518
-5772
-5846
query I rowsort
SELECT DISTINCT - col2 * col0 * col2 AS col1 FROM tab1
----
-207936
-737280
-8748
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 * cor0.col1 - - cor0.col1 col2 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to a165fd6136c82137315360b60e23c544
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4640
SELECT DISTINCT + col2 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4640
SELECT DISTINCT + col2 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
query I rowsort
SELECT tab1.col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-4642
SELECT - - col2 DIV - 41 AS col2 FROM tab0 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-4642
SELECT - - col2 / - 41 AS col2 FROM tab0 AS cor0
----
-2
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col2 col1 FROM tab0, tab2 cor0, tab0 AS cor1
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col0 col0 FROM tab1
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4645
SELECT ALL - col1 * + CAST( NULL AS SIGNED ) / col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ) / col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - ( cor0.col0 ) + + cor0.col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - ( 63 ) FROM tab1 AS cor0
----
-63
-63
-63
onlyif mysql # use DIV operator for integer division
query I rowsort label-4648
SELECT - - col2 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4648
SELECT - - col2 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 * col0 col1 FROM tab0 AS cor0
----
-2136
-576
-840
query I rowsort
SELECT + - ( 32 ) FROM tab1 AS cor0
----
-32
-32
-32
query I rowsort
SELECT col0 * col0 + + col2 * - col0 * col2 + col0 AS col1 FROM tab2 cor0
----
-107756
-46566
-5047
query I rowsort
SELECT ALL - - col1 + - cor0.col1 * col2 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT - col0 * cor0.col1 + col2 + col2 FROM tab1 AS cor0
----
-526
-848
30
query I rowsort
SELECT 64 * cor0.col0 + + ( + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
475
5018
5094
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col1 + 91 col2 FROM tab0 AS cor0
----
201
223
271
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4656
SELECT ( cor0.col0 ) + CAST( - col1 AS SIGNED ) * + col1 + col1 AS col1 FROM tab0 AS cor0
----
-7286
-8101
-9277
skipif mysql # not compatible
query I rowsort label-4656
SELECT ( cor0.col0 ) + CAST ( - col1 AS INTEGER ) * + col1 + col1 AS col1 FROM tab0 AS cor0
----
-7286
-8101
-9277
query I rowsort
SELECT - col0 + col2 + col2 FROM tab2 AS cor0
----
-26
-3
47
query I rowsort
SELECT ALL + 3 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4659
SELECT DISTINCT col0 * col0 + + col0 * col1 - - col1 * + col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT col0 * col0 + + col0 * col1 - - col1 * + col1 * CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 + - col1 ) * tab2.col2 col2 FROM tab2
----
-648
2356
494
query I rowsort
SELECT DISTINCT 44 + - 2 - + col2 FROM tab1
----
-12
-15
-54
query I rowsort
SELECT tab2.col0 * - col1 + tab2.col0 + - 43 FROM tab2
----
-1307
-253
-4567
query I rowsort
SELECT - col1 - ( + cor0.col2 * ( 51 ) ) AS col2 FROM tab2 AS cor0
----
-1385
-1408
-1955
query I rowsort
SELECT - 7 * col1 * - col2 + 88 - - col2 AS col0 FROM tab1 AS cor0
----
4135
8920
9970
query I rowsort
SELECT ALL col2 * 34 AS col1 FROM tab0 AS cor0
----
1122
2788
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4666
SELECT - CAST( NULL AS SIGNED ) / col2 + cor0.col1 / + 25 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4666
SELECT - CAST ( NULL AS INTEGER ) / col2 + cor0.col1 / + 25 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + ( - col0 ) + col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT - 34 * - col2 + col0 * col0 AS col1 FROM tab2
----
6968
7533
967
query I rowsort
SELECT ALL col0 + + 85 AS col0 FROM tab0
----
109
120
174
query I rowsort
SELECT 7 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
query I rowsort
SELECT DISTINCT tab0.col0 * - ( + col0 ) + ( tab0.col1 ) + col1 FROM tab0
----
-1031
-404
-7739
query I rowsort
SELECT + cor0.col1 * - col0 + - 74 * - col1 AS col1 FROM tab2 AS cor0
----
-236
-85
2077
query I rowsort
SELECT - col2 + col0 * - col0 * col1 AS col1 FROM tab1 AS cor0
----
-288
-41017
-83296
query I rowsort
SELECT ALL - - 97 * col1 AS col1 FROM tab1 cor0
----
1261
2522
970
query I rowsort
SELECT - 16 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34
query I rowsort
SELECT - - 10 + - col0 FROM tab0 cor0
----
-14
-25
-79
query I rowsort
SELECT DISTINCT - + 60 * - col0 FROM tab2 AS cor0
----
420
4680
4740
query I rowsort
SELECT + col1 + col1 * + 5 FROM tab2 AS cor0
----
102
186
354
query I rowsort
SELECT ALL + + col1 + + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 69 + cor0.col1 col1 FROM tab2 AS cor0
----
-10
-38
-52
query I rowsort
SELECT ALL 13 AS col1 FROM tab2 AS cor0
----
13
13
13
query I rowsort
SELECT + + cor0.col2 - col0 AS col0 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT - - cor0.col2 + + col0 * col0 FROM tab2 AS cor0
----
6110
6279
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + - col2 col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT col0 * col1 * ( col2 ) AS col2 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT + + 64 * col0 + ( + 23 ) + col1 AS col2 FROM tab2 cor0
----
502
5074
5096
skipif mysql # not compatible
query I rowsort
SELECT - col0 + col1 * - CAST ( + col1 AS REAL ) FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT DISTINCT + - 23 + + col1 * col1 FROM tab2 cor0
----
266
3458
938
query I rowsort
SELECT 80 * + col2 * ( col1 ) AS col1 FROM tab2 AS cor0
----
122720
51680
66960
query I rowsort
SELECT col0 * - 95 AS col0 FROM tab1 AS cor0
----
-285
-6080
-7600
query I rowsort
SELECT DISTINCT + - col2 + - 5 * col1 FROM tab1 AS cor0
----
-107
-161
-184
query I rowsort
SELECT ALL - cor0.col0 * + 15 AS col1 FROM tab0 AS cor0
----
-1335
-360
-525
query I rowsort
SELECT DISTINCT + + col0 * cor0.col2 + col2 * + col1 FROM tab0 AS cor0
----
132
14760
3630
query I rowsort
SELECT ALL cor0.col1 + ( + col0 ) AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + cor0.col0 * cor0.col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL - col1 * 46 AS col1 FROM tab0 AS cor0
----
-3956
-4186
-4462
query I rowsort
SELECT ALL + col0 * + 34 FROM tab2 AS cor0
----
238
2652
2686
query I rowsort
SELECT + - col1 * - col2 - - col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT 99 + cor0.col0 + - col0 AS col2 FROM tab1 AS cor0
----
99
query I rowsort
SELECT DISTINCT + - 75 * - col0 + col0 FROM tab0 AS cor0
----
1824
2660
6764
query I rowsort
SELECT ALL - col2 * - 68 + - col2 FROM tab1 AS cor0
----
3618
3819
6432
query I rowsort
SELECT col0 - ( + col2 ) * col2 FROM tab2
----
-1365
-598
-722
query I rowsort
SELECT + ( 5 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
onlyif mysql # use DIV operator for integer division
query I rowsort label-4704
SELECT ALL - col2 + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
-51
-54
-90
skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL - col2 + col0 / col1 AS col1 FROM tab1 AS cor0
----
-51
-54
-90
query I rowsort
SELECT ALL ( + 74 ) + - col0 * col0 FROM tab0 AS cor0
----
-1151
-502
-7847
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 6 col1 FROM tab0 AS cor0
----
516
546
582
query I rowsort
SELECT ALL - col0 * 58 + + col2 AS col1 FROM tab0 AS cor0
----
-1359
-2029
-5080
query I rowsort
SELECT ALL - + col0 * 61 * col0 + + cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
-249286
-389152
855
query I rowsort
SELECT ( + col1 ) * cor0.col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-4710
SELECT DISTINCT + col0 + + 63 DIV col0 - col0 * col2 AS col2 FROM tab1 AS cor0
----
-138
-3584
-7600
skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT + col0 + + 63 / col0 - col0 * col2 AS col2 FROM tab1 AS cor0
----
-138
-3584
-7600
query I rowsort
SELECT ALL cor0.col0 + + col1 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL - cor0.col2 * + col0 + + col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT + col0 + col0 * + col2 AS col2 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT ALL ( - col0 ) * + col0 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + - ( - col2 ) + col0 * col2 + - 83 FROM tab0 AS cor0
----
-47
7297
742
query I rowsort
SELECT ALL + - cor0.col2 * col0 + - col2 + col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col1 + 84 AS col2 FROM tab0 AS cor0
----
170
175
181
query I rowsort
SELECT + ( - ( col2 ) ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT col0 * 71 - col1 FROM tab2
----
466
5479
5592
query I rowsort
SELECT - col2 * + col0 - col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT col0 + ( ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL col2 * 62 FROM tab2 AS cor0
----
1612
1674
2356
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4724
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - col1 * ( 96 ) * + col2 AS col0 FROM tab0 AS cor0
----
-272448
-716352
-9312
query I rowsort
SELECT DISTINCT - 46 + col1 AS col1 FROM tab0
----
40
45
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4727
SELECT DISTINCT col1 + - col2 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT col1 + - col2 * + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
query I rowsort
SELECT ALL - col1 + + col1 * ( col2 ) AS col2 FROM tab2
----
1475
629
806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col2 col2 FROM tab1
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4730
SELECT + col1 + CAST( NULL AS SIGNED ) * + tab0.col2 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4730
SELECT + col1 + CAST ( NULL AS INTEGER ) * + tab0.col2 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 28 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
query I rowsort
SELECT - 42 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329
query I rowsort
SELECT col0 - + ( + col0 ) AS col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 + 40 * col0 col1 FROM tab0 AS cor0
----
10858
1435
1752
query I rowsort
SELECT DISTINCT + - cor0.col2 * 95 FROM tab2 AS cor0
----
-2470
-2565
-3610
query I rowsort
SELECT + + 22 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT 67 + cor0.col1 FROM tab1 cor0
----
77
80
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-4738
SELECT 2 DIV + col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4738
SELECT 2 / + col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 99 * col1 AS col2 FROM tab1 AS cor0
----
1287
2574
990
query I rowsort
SELECT + 51 + + col1 FROM tab2 AS cor0
----
110
68
82
query I rowsort
SELECT ALL + 0 * + col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4742
SELECT + + 53 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4742
SELECT + + 53 / + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4743
SELECT col0 DIV 36 col2 FROM tab2 cor0
----
0
2
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4743
SELECT col0 / 36 col2 FROM tab2 cor0
----
0
2
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4744
SELECT CAST( cor1.col0 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
skipif mysql # not compatible
query I rowsort label-4744
SELECT CAST ( cor1.col0 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT + - col1 + - cor0.col2 * col2 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT ALL + cor0.col1 + col1 * cor0.col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT - 61 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1
query I rowsort
SELECT - ( - col1 + col2 ) * - col2 FROM tab1
----
1512
2679
7968
onlyif mysql # use DIV operator for integer division
query I rowsort label-4749
SELECT ALL - col2 DIV + col0 + - col1 AS col1 FROM tab1 AS cor0
----
-10
-14
-44
skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL - col2 / + col0 + - col1 AS col1 FROM tab1 AS cor0
----
-10
-14
-44
query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab0, tab2 cor0, tab1 cor1
----
54
57
96
query I rowsort
SELECT - - cor0.col2 + col0 * col0 * col0 FROM tab1 AS cor0
----
262201
512096
81
query I rowsort
SELECT DISTINCT - col1 * - col2 + - col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT - col2 + + col1 * col1 + col2 FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-4754
SELECT - + 21 DIV - col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4754
SELECT - + 21 / - col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4755
SELECT CAST( NULL AS SIGNED ) + col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4755
SELECT CAST ( NULL AS INTEGER ) + col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( tab0.col0 * col2 ) + - col1 * col1 * - col0 FROM tab0
----
176712
329280
729711
query I rowsort
SELECT - ( - col2 ) + + 35 AS col0 FROM tab2 AS cor0
----
61
62
73
query I rowsort
SELECT ( col1 ) * - col1 AS col0 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT - + 59 AS col0 FROM tab1 AS cor0
----
-59
-59
-59
query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL 16 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
query I rowsort
SELECT - 67 * col2 FROM tab1
----
-3618
-3819
-6432
query I rowsort
SELECT DISTINCT + + col1 * col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL - + 24 * + col0 FROM tab0 AS cor0
----
-2136
-576
-840
query I rowsort
SELECT 32 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b
query I rowsort
SELECT cor0.col2 * 30 FROM tab0, tab2 AS cor0
----
9 values hashing to 387c5a092dca2619969b8e6e32bd3af6
onlyif mysql # use DIV operator for integer division
query I rowsort label-4767
SELECT DISTINCT - col1 * col2 + - cor0.col1 * col0 + ( col1 ) DIV col2 AS col1 FROM tab0 AS cor0
----
-15560
-3395
-4900
skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT - col1 * col2 + - cor0.col1 * col0 + ( col1 ) / col2 AS col1 FROM tab0 AS cor0
----
-15560
-3395
-4900
query I rowsort
SELECT ALL + col2 * 26 + col0 FROM tab0 AS cor0
----
2221
61
882
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 + - col1 ) col2 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 * + tab1.col0 * + col0 + - col2 * col2 col1 FROM tab1
----
-2196
324431
502784
onlyif mysql # use DIV operator for integer division
query I rowsort label-4771
SELECT ALL col0 DIV - col0 + col1 col2 FROM tab1
----
12
25
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL col0 / - col0 + col1 col2 FROM tab1
----
12
25
9
query I rowsort
SELECT ALL col2 * col1 + 32 + - col2 * + tab0.col1 FROM tab0
----
32
32
32
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 - col1 + cor0.col2 * col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT ALL + ( + cor0.col0 ) AS col2 FROM tab0, tab1 cor0 CROSS JOIN tab1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL + 93 + col1 + - col2 AS col2 FROM tab0
----
102
146
189
query I rowsort
SELECT - 40 + + col1 FROM tab2 cor0
----
-23
-9
19
onlyif mysql # use DIV operator for integer division
query I rowsort label-4778
SELECT - 36 + - 24 * col0 DIV - col1 FROM tab0 AS cor0
----
-13
-28
-30
skipif mysql # not compatible
query I rowsort label-4778
SELECT - 36 + - 24 * col0 / - col1 FROM tab0 AS cor0
----
-13
-28
-30
query I rowsort
SELECT + - 14 FROM tab0 cor0
----
-14
-14
-14
query I rowsort
SELECT col1 * col0 * col2 - col0 AS col2 FROM tab0 AS cor0
----
3360
664029
68088
query I rowsort
SELECT col0 * + col0 + + col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT DISTINCT tab2.col1 * 76 AS col2 FROM tab2, tab1 AS cor0
----
1292
2356
4484
query I rowsort
SELECT ALL col0 * - ( + 3 * col1 ) AS col1 FROM tab2 AS cor0
----
-13806
-4029
-651
query I rowsort
SELECT cor0.col1 * - 57 AS col1 FROM tab2 AS cor0
----
-1767
-3363
-969
query I rowsort
SELECT DISTINCT cor0.col1 + + ( col0 ) * - col0 AS col0 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT ALL col1 * - col1 * 56 - tab2.col0 FROM tab2
----
-16263
-195014
-53823
onlyif mysql # use DIV operator for integer division
query I rowsort label-4787
SELECT ALL col1 DIV cor0.col1 - - col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL col1 / cor0.col1 - - col0 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT DISTINCT col0 * 1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + + col0 + + ( 54 ) + - col0 * + col2 * col0 AS col0 FROM tab0 AS cor0
----
-1136
-18930
-649379
query I rowsort
SELECT DISTINCT + - cor0.col0 * - ( col2 ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL - col1 * col1 + cor0.col1 * - col2 AS col1 FROM tab2 cor0
----
-1798
-5015
-935
query I rowsort
SELECT DISTINCT + - col0 + 29 * - 38 * - cor0.col0 AS col1 FROM tab0 cor0
----
26424
38535
97989
query I rowsort
SELECT + col1 * - col1 - col2 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT - + col2 * - col2 + col2 AS col0 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT DISTINCT + + col0 * - 58 + col1 AS col0 FROM tab2 AS cor0
----
-375
-4465
-4565
query I rowsort
SELECT DISTINCT - - col1 - col1 AS col0 FROM tab2 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4797
SELECT - + col2 DIV col2 + col0 * - col2 * - cor0.col1 FROM tab1 AS cor0
----
36479
4211
99839
skipif mysql # not compatible
query I rowsort label-4797
SELECT - + col2 / col2 + col0 * - col2 * - cor0.col1 FROM tab1 AS cor0
----
36479
4211
99839
query I rowsort
SELECT ALL - + col1 + col2 * 87 AS col2 FROM tab2 AS cor0
----
2203
2318
3289
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4799
SELECT col0 + - col0 * + col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4799
SELECT col0 + - col0 * + col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + tab2.col2 * col2 + - col0 FROM tab2
----
1365
598
722
query I rowsort
SELECT ALL 19 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) + + col1 col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT + - 15 * col1 * - col1 FROM tab1 AS cor0
----
10140
1500
2535
query I rowsort
SELECT 14 + cor0.col1 FROM tab0 cor0
----
100
105
111
onlyif mysql # use DIV operator for integer division
query I rowsort label-4805
SELECT col1 + col2 DIV 64 AS col1 FROM tab1 AS cor0
----
10
14
26
skipif mysql # not compatible
query I rowsort label-4805
SELECT col1 + col2 / 64 AS col1 FROM tab1 AS cor0
----
10
14
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4806
SELECT DISTINCT CAST( NULL AS SIGNED ) * 16 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 16 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
NULL
query I rowsort
SELECT - 92 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-644
-7176
-7268
query I rowsort
SELECT DISTINCT - - 77 FROM tab2 cor0
----
77
query I rowsort
SELECT DISTINCT - 28 * + col1 AS col1 FROM tab1 AS cor0
----
-280
-364
-728
query I rowsort
SELECT ALL + + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + ( col1 * col0 ) AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL cor0.col1 * col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT + col0 + + cor0.col0 * cor0.col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT col0 * col2 * col1 + - col0 AS col1 FROM tab0 AS cor0
----
3360
664029
68088
query I rowsort
SELECT ALL col1 + - col1 * + col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT - + 43 + col2 * col2 FROM tab1 AS cor0
----
2873
3206
9173
query I rowsort
SELECT DISTINCT - 83 * + col2 + - col0 * - col1 FROM tab0 AS cor0
----
-675
1293
3312
query I rowsort
SELECT DISTINCT - + ( - col0 ) + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 * col0 * + col1 col2 FROM tab0 AS cor0
----
118728
49450
720720
onlyif mysql # use DIV operator for integer division
query I rowsort label-4820
SELECT + cor0.col2 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-4820
SELECT + cor0.col2 / col0 AS col2 FROM tab2 AS cor0
----
0
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col0 col2 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT col1 * col1 - - col1 FROM tab1
----
110
182
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-4823
SELECT ALL 96 DIV + tab1.col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL 96 / + tab1.col2 FROM tab1
----
1
1
1
query I rowsort
SELECT + + col2 * + cor0.col0 + col1 AS col2 FROM tab0 AS cor0
----
132
7389
878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT ALL - ( + col2 ) * - cor0.col2 FROM tab0 AS cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col1 AS REAL ) col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + 98 - + 91 * - col1 AS col1 FROM tab1 AS cor0
----
1008
1281
2464
query I rowsort
SELECT DISTINCT col1 - - col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + col1 * 60 AS col1 FROM tab0 AS cor0
----
5160
5460
5820
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4831
SELECT ALL CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col0 + - 91 * + col0 - col2 AS col0 FROM tab1 AS cor0
----
-324
-5817
-7296
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col2 AS REAL ) + + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT 17 + 99 FROM tab0, tab0 AS cor0
----
9 values hashing to 1b203c14e07bd085fccb96893918131a
query I rowsort
SELECT + col1 - 21 * + col1 FROM tab2
----
-1180
-340
-620
query I rowsort
SELECT - - 18 - + col1 AS col1 FROM tab2 cor0
----
-13
-41
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 - col2 col2 FROM tab0 AS cor0
----
-13
36
68
query I rowsort
SELECT ALL + tab0.col0 * - 23 - - col2 FROM tab0
----
-1965
-519
-804
query I rowsort
SELECT DISTINCT ( tab1.col0 ) + + tab1.col1 FROM tab1
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * + col0 col1 FROM tab0
----
1128
490
7830
onlyif mysql # use DIV operator for integer division
query I rowsort label-4841
SELECT + ( tab1.col0 ) DIV - col0 + - col1 AS col1 FROM tab1
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-4841
SELECT + ( tab1.col0 ) / - col0 + - col1 AS col1 FROM tab1
----
-11
-14
-27
query I rowsort
SELECT ALL + col2 + col1 + - col2 AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT - col0 + col0 + - col2 FROM tab1
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 66 col1 FROM tab0
----
148
67
99
query I rowsort
SELECT + col2 * 88 * col2 FROM tab2
----
127072
59488
64152
query I rowsort
SELECT ALL 38 + + 78 FROM tab0
----
116
116
116
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * tab2.col1 col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 4307a5c67912e63c47b74283c0988b96
query I rowsort
SELECT DISTINCT 69 + 63 AS col1 FROM tab1
----
132
query I rowsort
SELECT + 52 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT ALL - + col2 + col1 + - col2 AS col1 FROM tab2 cor0
----
-23
-59
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4851
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 74 FROM tab2, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 74 FROM tab2, tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4852
SELECT DISTINCT + tab1.col0 DIV + col1 FROM tab1
----
0
6
skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT + tab1.col0 / + col1 FROM tab1
----
0
6
query I rowsort
SELECT + col2 + + 41 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-260
-3172
-3201
query I rowsort
SELECT 98 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT cor0.col2 * - 84 + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-2317
-8268
-9433
onlyif mysql # use DIV operator for integer division
query I rowsort label-4856
SELECT cor0.col1 DIV + col2 + 31 + - col0 AS col2 FROM tab0 AS cor0
----
-57
9
93
skipif mysql # not compatible
query I rowsort label-4856
SELECT cor0.col1 / + col2 + 31 + - col0 AS col2 FROM tab0 AS cor0
----
-57
9
93
query I rowsort
SELECT ( ( cor0.col2 ) ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + cor1.col1 FROM tab0, tab1 cor0, tab0 cor1, tab1, tab2 cor2
----
243 values hashing to c6425afc100dd55de8d45dec18c469ea
query I rowsort
SELECT ALL 84 * - 27 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 599bb0108bb7ea41c49b19b0477ae66e
query I rowsort
SELECT DISTINCT + - 84 AS col2 FROM tab1 AS cor0
----
-84
query I rowsort
SELECT - - col2 * col2 - + 13 * cor0.col1 * col2 FROM tab0 cor0
----
-1260
-35805
-90282
onlyif mysql # use DIV operator for integer division
query I rowsort label-4862
SELECT col1 - - col1 DIV - col0 FROM tab0 cor0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-4862
SELECT col1 - - col1 / - col0 FROM tab0 cor0
----
83
90
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-4863
SELECT + + col1 DIV col2 + - col1 * - cor0.col0 FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-4863
SELECT + + col1 / col2 + - col1 * - cor0.col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + 96 * col0 AS col0 FROM tab0 AS cor0
----
2304
3360
8544
onlyif mysql # use DIV operator for integer division
query I rowsort label-4865
SELECT col0 DIV ( 72 + col1 ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4865
SELECT col0 / ( 72 + col1 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + cor0.col1 + ( - col0 ) * + col0 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT + - col2 * - col2 + - 81 FROM tab0 AS cor0
----
-80
1008
6643
query I rowsort
SELECT DISTINCT col2 * - ( + 10 + + cor0.col1 ) FROM tab1 AS cor0
----
-1140
-1944
-2208
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4869
SELECT + col0 + - CAST( 25 AS SIGNED ) * col0 FROM tab0 AS cor0
----
-2136
-576
-840
skipif mysql # not compatible
query I rowsort label-4869
SELECT + col0 + - CAST ( 25 AS INTEGER ) * col0 FROM tab0 AS cor0
----
-2136
-576
-840
query I rowsort
SELECT DISTINCT + col0 + col1 * 4 + + ( col1 ) AS col0 FROM tab1
----
114
133
145
onlyif mysql # use DIV operator for integer division
query I rowsort label-4871
SELECT ALL col2 + - col0 * 62 DIV - col0 + - col2 * ( tab0.col2 ) FROM tab0
----
-6580
-994
62
skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL col2 + - col0 * 62 / - col0 + - col2 * ( tab0.col2 ) FROM tab0
----
-6580
-994
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4872
SELECT 79 + col0 * 48 DIV - col1 AS col1 FROM tab1
----
-216
-228
74
skipif mysql # not compatible
query I rowsort label-4872
SELECT 79 + col0 * 48 / - col1 AS col1 FROM tab1
----
-216
-228
74
query I rowsort
SELECT + 59 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
query I rowsort
SELECT col1 * col2 + col0 + col2 AS col1 FROM tab1 cor0
----
1424
1461
691
query I rowsort
SELECT DISTINCT + col2 + + ( tab2.col1 ) * col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT + + cor0.col2 * col1 - 25 FROM tab0 AS cor0
----
2813
72
7437
query I rowsort
SELECT col0 * + tab1.col1 + col0 * + col0 + + ( 36 ) AS col2 FROM tab1
----
123
4772
7476
query I rowsort
SELECT - + col2 + + ( col0 ) FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT 91 * + col2 FROM tab0 cor0
----
3003
7462
91
query I rowsort
SELECT ALL col2 * ( + 26 ) * tab0.col2 FROM tab0
----
174824
26
28314
query I rowsort
SELECT + + 76 + - col2 FROM tab0 AS cor0
----
-6
43
75
query I rowsort
SELECT - + 75 * col0 AS col1 FROM tab2 AS cor0
----
-525
-5850
-5925
query I rowsort
SELECT col2 * + col1 + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT + 32 * - col0 AS col1 FROM tab1 AS cor0
----
-2048
-2560
-96
query I rowsort
SELECT DISTINCT + - 52 + + 71 FROM tab2 AS cor0
----
19
query I rowsort
SELECT DISTINCT - - col0 + col2 + + col1 AS col2 FROM tab1 AS cor0
----
131
189
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-4887
SELECT - col2 DIV - col0 col0 FROM tab2
----
0
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4887
SELECT - col2 / - col0 col0 FROM tab2
----
0
0
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-4888
SELECT col0 - col1 DIV - 15 FROM tab1
----
4
64
80
skipif mysql # not compatible
query I rowsort label-4888
SELECT col0 - col1 / - 15 FROM tab1
----
4
64
80
query I rowsort
SELECT DISTINCT tab2.col1 - - tab2.col0 * tab2.col2 AS col2 FROM tab2
----
2087
220
3019
query I rowsort
SELECT + tab0.col1 - + ( tab0.col0 ) AS col0 FROM tab0
----
2
62
62
query I rowsort
SELECT - col0 * - tab1.col1 * 48 FROM tab1
----
30720
3744
49920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 + - cor0.col1 col2 FROM tab0 cor0
----
-42
-47
-53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4893
SELECT + CAST( - 55 AS SIGNED ) AS col1 FROM tab1
----
-55
-55
-55
skipif mysql # not compatible
query I rowsort label-4893
SELECT + CAST ( - 55 AS INTEGER ) AS col1 FROM tab1
----
-55
-55
-55
query I rowsort
SELECT ALL 7 + tab0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 846f3d0e9cb5a61a1928b56585f3dcf0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4895
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4895
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + col2 + + col1 + + col0 AS col1 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT + 43 + + col1 * + col0 FROM tab1 AS cor0
----
1083
121
683
query I rowsort
SELECT DISTINCT 18 * col1 * 83 FROM tab1 cor0
----
14940
19422
38844
query I rowsort
SELECT DISTINCT col1 + col0 * col1 FROM tab2 AS cor0
----
1360
248
4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 * - cor0.col0 col1 FROM tab1 AS cor0
----
285
6080
7600
query I rowsort
SELECT tab0.col2 + 65 * - col1 AS col1 FROM tab0
----
-5557
-5833
-6304
query I rowsort
SELECT DISTINCT + - col0 * col1 + col2 + cor0.col1 FROM tab1 cor0
----
-573
-931
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + + cor0.col1 * col0 col2 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT ALL + col0 * - 36 + + 16 * - col2 + ( - col1 ) * + cor0.col2 FROM tab1 AS cor0
----
-2376
-3786
-5664
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT col2 + - 60 FROM tab2 AS cor0
----
-22
-33
-34
query I rowsort
SELECT DISTINCT + ( tab2.col1 + + 1 ) * - col1 FROM tab2
----
-306
-3540
-992
query I rowsort
SELECT ALL + col1 * col0 * 7 AS col0 FROM tab2
----
1519
32214
9401
query I rowsort
SELECT - + 18 * - col1 AS col0 FROM tab2 AS cor0
----
1062
306
558
query I rowsort
SELECT ALL - - 55 AS col0 FROM tab2 AS cor0
----
55
55
55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4911
SELECT DISTINCT - - CAST( NULL AS SIGNED ) - cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4911
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + 70 + 3 FROM tab1 AS cor0
----
73
73
73
query I rowsort
SELECT ALL + - col2 * - col2 * col1 - - 82 * col2 FROM tab0 AS cor0
----
179
618608
96360
query I rowsort
SELECT DISTINCT 14 + + col2 AS col2 FROM tab0 AS cor0
----
15
47
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4915
SELECT DISTINCT CAST( - col0 AS SIGNED ) - col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6
skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT CAST ( - col0 AS INTEGER ) - col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT ALL + col0 - + ( col1 ) * - 8 FROM tab2 AS cor0
----
215
255
550
onlyif mysql # use DIV operator for integer division
query I rowsort label-4917
SELECT DISTINCT 45 DIV + cor0.col2 col2 FROM tab0 AS cor0
----
0
1
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4917
SELECT DISTINCT 45 / + cor0.col2 col2 FROM tab0 AS cor0
----
0
1
45
query I rowsort
SELECT + col2 - + tab0.col0 * col1 * + col2 AS col2 FROM tab0
----
-3394
-664036
-68079
query I rowsort
SELECT ALL col0 * ( 48 * col1 ) - col2 AS col1 FROM tab1
----
30663
3690
49824
query I rowsort
SELECT DISTINCT + col2 - - tab2.col0 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL col0 + col0 * + col1 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT ( + col0 ) + col0 * 81 FROM tab2
----
574
6396
6478
query I rowsort
SELECT + tab1.col1 * 72 FROM tab1
----
1872
720
936
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4924
SELECT CAST( - col2 AS SIGNED ) + + cor0.col2 * ( 59 ) AS col0 FROM tab0 AS cor0
----
1914
4756
58
skipif mysql # not compatible
query I rowsort label-4924
SELECT CAST ( - col2 AS INTEGER ) + + cor0.col2 * ( 59 ) AS col0 FROM tab0 AS cor0
----
1914
4756
58
query I rowsort
SELECT ALL 3 + 91 AS col1 FROM tab1 cor0
----
94
94
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-4926
SELECT DISTINCT - 70 DIV + cor0.col0 + - col1 col2 FROM tab1 AS cor0
----
-11
-13
-49
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT - 70 / + cor0.col0 + - col1 col2 FROM tab1 AS cor0
----
-11
-13
-49
query I rowsort
SELECT DISTINCT - col1 * + col2 + - col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT + cor0.col0 * + col1 * col1 + cor0.col0 FROM tab1 AS cor0
----
13600
2031
6464
query I rowsort
SELECT DISTINCT 20 * col1 + col0 AS col1 FROM tab1 AS cor0
----
264
340
523
query I rowsort
SELECT 37 + - col0 FROM tab0 AS cor0
----
-52
13
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-4931
SELECT ALL + ( col0 ) DIV col1 + col0 AS col0 FROM tab1 cor0
----
3
70
86
skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL + ( col0 ) / col1 + col0 AS col0 FROM tab1 cor0
----
3
70
86
query I rowsort
SELECT col2 * + 92 * + tab1.col1 FROM tab1
----
114816
129168
52440
query I rowsort
SELECT ( - col0 ) * + col1 + 51 FROM tab1
----
-27
-589
-989
query I rowsort
SELECT - - cor0.col2 + 78 AS col2 FROM tab1 AS cor0
----
132
135
174
query I rowsort
SELECT ALL - 66 + - 4 FROM tab0
----
-70
-70
-70
query I rowsort
SELECT DISTINCT + ( col2 * col2 ) + col2 AS col0 FROM tab1
----
2970
3306
9312
query I rowsort
SELECT DISTINCT 57 * cor0.col0 FROM tab0, tab1 AS cor0
----
171
3648
4560
query I rowsort
SELECT + 21 + 9 * - col2 AS col0 FROM tab0
----
-276
-717
12
query I rowsort
SELECT - ( col2 ) + - 41 * + 63 FROM tab2 cor0
----
-2609
-2610
-2621
query I rowsort
SELECT col2 + - col1 * + col1 * - col0 FROM tab1 AS cor0
----
13616
2082
6457
onlyif mysql # use DIV operator for integer division
query I rowsort label-4941
SELECT DISTINCT - tab2.col0 * tab2.col2 + + col2 DIV - CAST( - 58 AS SIGNED ) + - col0 * - 65 FROM tab2
----
2133
266
3042
skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT - tab2.col0 * tab2.col2 + + col2 / - CAST ( - 58 AS INTEGER ) + - col0 * - 65 FROM tab2
----
2133
266
3042
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4942
SELECT CAST( col2 AS SIGNED ) + col2 AS col2 FROM tab0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-4942
SELECT CAST ( col2 AS INTEGER ) + col2 AS col2 FROM tab0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-4943
SELECT ( col0 ) * + col0 + + col1 DIV col0 + col2 FROM tab2
----
6110
6279
80
skipif mysql # not compatible
query I rowsort label-4943
SELECT ( col0 ) * + col0 + + col1 / col0 + col2 FROM tab2
----
6110
6279
80
query I rowsort
SELECT col0 * - 99 + + col1 FROM tab1 AS cor0
----
-271
-6326
-7907
query I rowsort
SELECT ALL - ( - col2 ) * - col1 * + col2 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT col1 + - ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - 19 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662
query I rowsort
SELECT + 85 * col0 + + ( 18 ) AS col0 FROM tab0 AS cor0
----
2058
2993
7583
query I rowsort
SELECT ALL + + col0 + cor0.col2 AS col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - 31 * col2 FROM tab0 AS cor0
----
-1023
-2542
-31
onlyif mysql # use DIV operator for integer division
query I rowsort label-4951
SELECT - 49 DIV col2 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-4951
SELECT - 49 / col2 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4952
SELECT ALL cor0.col2 * - col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL cor0.col2 * - col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * col1 - col1 * - col2 FROM tab0 AS cor0
----
15561
3492
4902
query I rowsort
SELECT col2 * - ( - col2 ) * + col1 AS col2 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT DISTINCT + cor0.col1 + 60 + 48 FROM tab1 AS cor0
----
118
121
134
onlyif mysql # use DIV operator for integer division
query I rowsort label-4956
SELECT - col0 + - 55 DIV col2 col0 FROM tab1 AS cor0
----
-4
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4956
SELECT - col0 + - 55 / col2 col0 FROM tab1 AS cor0
----
-4
-64
-80
query I rowsort
SELECT DISTINCT - - col2 * + 45 AS col1 FROM tab2 AS cor0
----
1170
1215
1710
query I rowsort
SELECT DISTINCT + - cor0.col1 + + col2 * col0 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT ALL - col2 + - 82 * col2 FROM tab2 AS cor0
----
-2158
-2241
-3154
query I rowsort
SELECT ALL + col0 * + 26 AS col2 FROM tab2 AS cor0
----
182
2028
2054
query I rowsort
SELECT DISTINCT - - col2 + col0 * col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-4962
SELECT - 37 DIV - 93 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4962
SELECT - 37 / - 93 AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4963
SELECT DISTINCT + col0 + - cor0.col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
-62
22
88
skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT + col0 + - cor0.col1 / + col2 AS col1 FROM tab0 AS cor0
----
-62
22
88
query I rowsort
SELECT ALL cor1.col2 AS col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4965
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - - 65 + + 62 * col0 FROM tab1 cor0
----
251
4033
5025
query I rowsort
SELECT + - col0 * ( col0 + col2 ) FROM tab2 AS cor0
----
-238
-8112
-9243
query I rowsort
SELECT - col2 * - 47 + - 66 FROM tab1 AS cor0
----
2472
2613
4446
query I rowsort
SELECT cor0.col1 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4970
SELECT - col1 + - col1 DIV col0 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-4970
SELECT - col1 + - col1 / col0 col2 FROM tab1 AS cor0
----
-10
-13
-34
query I rowsort
SELECT - + col1 + 11 AS col0 FROM tab2 AS cor0
----
-20
-48
-6
query I rowsort
SELECT col0 + + 30 * 53 * - col1 FROM tab0 AS cor0
----
-136716
-144601
-154195
query I rowsort
SELECT ALL - + 88 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32
query I rowsort
SELECT DISTINCT - 62 + col0 * - col2 FROM tab2
----
-2090
-251
-3064
query I rowsort
SELECT ALL + 76 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
query I rowsort
SELECT + col2 + + 28 + - 94 AS col2 FROM tab0 cor0
----
-33
-65
16
skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( col1 AS REAL ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4978
SELECT col2 + col1 DIV + col0 - tab0.col1 FROM tab0
----
-50
-8
-94
skipif mysql # not compatible
query I rowsort label-4978
SELECT col2 + col1 / + col0 - tab0.col1 FROM tab0
----
-50
-8
-94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680
query I rowsort
SELECT ALL - cor0.col1 + 23 AS col0 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 2262f4630c5a347ee8f31c0b279468ae
query I rowsort
SELECT + col1 * col0 * + col1 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT - col2 - cor0.col2 AS col1 FROM tab0 cor0
----
-164
-2
-66
query I rowsort
SELECT - + ( col2 ) * 1 + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - + 58 * col1 FROM tab2 AS cor0
----
-1798
-3422
-986
query I rowsort
SELECT + - cor0.col1 * + cor0.col2 * cor0.col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT + col2 * tab2.col0 * col2 AS col2 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT col1 * col1 + ( col1 ) FROM tab0 AS cor0
----
7482
8372
9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4988
SELECT col0 * CAST( NULL AS DECIMAL ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4988
SELECT col0 * CAST ( NULL AS REAL ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4989
SELECT + col2 * - CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4989
SELECT + col2 * - CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + - col0 * col1 - + col2 AS col2 FROM tab1
----
-1056
-129
-633
query I rowsort
SELECT - col2 - + 1 * - 35 AS col0 FROM tab0
----
-47
2
34
query I rowsort
SELECT ALL - col0 - 55 AS col0 FROM tab0 AS cor0
----
-144
-79
-90
query I rowsort
SELECT + + col0 * 0 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4994
SELECT + - cor0.col0 + - 73 DIV + col0 AS col0 FROM tab1 AS cor0
----
-27
-65
-80
skipif mysql # not compatible
query I rowsort label-4994
SELECT + - cor0.col0 + - 73 / + col0 AS col0 FROM tab1 AS cor0
----
-27
-65
-80
query I rowsort
SELECT DISTINCT + col2 * - 45 AS col1 FROM tab0 AS cor0
----
-1485
-3690
-45
query I rowsort
SELECT - cor0.col1 + - ( - 17 ) FROM tab2 AS cor0
----
-14
-42
0
query I rowsort
SELECT DISTINCT - + col1 - col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT 39 + tab0.col2 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 5de53199516d39b4c062739dfa5c2bd8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * col1 + + col1 * + col2 col2 FROM tab2
----
1798
5015
935
onlyif mysql # use DIV operator for integer division
query I rowsort label-5000
SELECT + 22 DIV col1 AS col2 FROM tab1 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-5000
SELECT + 22 / col1 AS col2 FROM tab1 AS cor0
----
0
1
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5001
SELECT + CAST( - col2 AS SIGNED ) * col2 AS col1 FROM tab1 cor0
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-5001
SELECT + CAST ( - col2 AS INTEGER ) * col2 AS col1 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT col0 * + col1 + - ( col1 ) FROM tab2 cor0
----
1326
186
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-5003
SELECT 80 + col1 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
80
80
80
skipif mysql # not compatible
query I rowsort label-5003
SELECT 80 + col1 / cor0.col2 AS col2 FROM tab1 AS cor0
----
80
80
80
query I rowsort
SELECT DISTINCT + + col0 + col2 * + 37 AS col2 FROM tab2 AS cor0
----
1006
1040
1485
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col2 col2 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5006
SELECT - - 60 + + cor0.col1 DIV - col0 FROM tab2 cor0
----
56
60
60
skipif mysql # not compatible
query I rowsort label-5006
SELECT - - 60 + + cor0.col1 / - col0 FROM tab2 cor0
----
56
60
60
query I rowsort
SELECT + - 47 * - col0 * 87 AS col0 FROM tab2 cor0
----
28623
318942
323031
query I rowsort
SELECT + ( + 94 + - col1 * + col1 ) AS col0 FROM tab0
----
-7302
-8187
-9315
query I rowsort
SELECT - ( + col0 + + col1 ) FROM tab2
----
-137
-38
-96
query I rowsort
SELECT ALL + col2 + - ( 73 ) * col0 FROM tab2
----
-484
-5668
-5729
onlyif mysql # use DIV operator for integer division
query I rowsort label-5011
SELECT DISTINCT col1 DIV col1 + col2 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-5011
SELECT DISTINCT col1 / col1 + col2 FROM tab0
----
2
34
83
query I rowsort
SELECT ALL col1 * 66 + + col0 * - col0 + + col0 AS col0 FROM tab1
----
-3372
-5462
1710
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5013
SELECT DISTINCT + + col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT + + col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5014
SELECT DISTINCT + - col2 + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-55
-58
-85
skipif mysql # not compatible
query I rowsort label-5014
SELECT DISTINCT + - col2 + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT col0 + col2 * col0 + - col1 FROM tab2 AS cor0
----
165
2047
3064
query I rowsort
SELECT ALL - - col0 * - 10 FROM tab1 AS cor0
----
-30
-640
-800
query I rowsort
SELECT ALL col0 * 5 FROM tab2 AS cor0
----
35
390
395
onlyif mysql # use DIV operator for integer division
query I rowsort label-5018
SELECT ALL - col2 DIV + col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL - col2 / + col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT ALL col0 * - cor0.col1 + - col2 + col1 * + col1 FROM tab0 cor0
----
100
5299
6013
query I rowsort
SELECT DISTINCT + + 31 * - 82 FROM tab2 AS cor0
----
-2542
query I rowsort
SELECT ALL - + cor0.col0 + - ( col0 ) FROM tab2 AS cor0
----
-14
-156
-158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5022
SELECT - - CAST( col1 AS SIGNED ) * col1 col1 FROM tab1 AS cor0
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5022
SELECT - - CAST ( col1 AS INTEGER ) * col1 col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + cor0.col2 * + ( col1 * ( + 74 ) ) AS col1 FROM tab2 cor0
----
113516
47804
61938
query I rowsort
SELECT - - 81 * - col0 AS col0 FROM tab1 AS cor0
----
-243
-5184
-6480
query I rowsort
SELECT ALL - - 11 * + col2 FROM tab2 AS cor0
----
286
297
418
query I rowsort
SELECT DISTINCT + 28 * 29 * + col0 AS col2 FROM tab2 AS cor0
----
5684
63336
64148
onlyif mysql # use DIV operator for integer division
query I rowsort label-5027
SELECT DISTINCT col1 DIV - 86 AS col1 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT col1 / - 86 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - 34 + - col2 FROM tab1 cor0
----
-130
-88
-91
query I rowsort
SELECT + col1 + col2 + + col1 AS col2 FROM tab2 cor0
----
144
72
89
query I rowsort
SELECT col0 - ( + col0 * col2 ) FROM tab1
----
-159
-3584
-7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c
query I rowsort
SELECT ALL - tab0.col2 + + col0 FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT - + ( + 55 ) AS col1 FROM tab2 AS cor0
----
-55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5034
SELECT ALL - CAST( NULL AS SIGNED ) + - 61 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL - CAST ( NULL AS INTEGER ) + - 61 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * - ( 45 ) FROM tab2
----
1170
1215
1710
onlyif mysql # use DIV operator for integer division
query I rowsort label-5036
SELECT DISTINCT col1 + + 98 DIV + col1 AS col0 FROM tab1
----
19
20
29
skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT col1 + + 98 / + col1 AS col0 FROM tab1
----
19
20
29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5037
SELECT + col0 * col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5037
SELECT + col0 * col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( + col1 ) * cor0.col1 + + col2 * col2 AS col0 FROM tab2 AS cor0
----
1690
1733
4157
query I rowsort
SELECT DISTINCT - col1 * col2 + - 65 FROM tab0 AS cor0
----
-162
-2903
-7527
query I rowsort
SELECT ALL + + 21 * + cor0.col0 - 25 FROM tab1 cor0
----
1319
1655
38
query I rowsort
SELECT - - 37 - col0 * 22 FROM tab0 AS cor0
----
-1921
-491
-733
query I rowsort
SELECT DISTINCT + 94 * col0 AS col2 FROM tab1 AS cor0
----
282
6016
7520
query I rowsort
SELECT DISTINCT col1 * - col2 + ( ( - col1 ) ) FROM tab0 AS cor0
----
-194
-2924
-7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-5044
SELECT + col1 * col1 + + col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
168
675
99
skipif mysql # not compatible
query I rowsort label-5044
SELECT + col1 * col1 + + col0 / - col0 AS col0 FROM tab1 AS cor0
----
168
675
99
query I rowsort
SELECT cor0.col0 - + col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL + 45 * col1 * 56 + - col1 AS col1 FROM tab1 cor0
----
25190
32747
65494
query I rowsort
SELECT DISTINCT 26 AS col1 FROM tab1 AS cor0
----
26
query I rowsort
SELECT + col2 * col0 + col1 * col2 FROM tab0 cor0
----
132
14760
3630
query I rowsort
SELECT ALL - 7 - - col2 FROM tab2
----
19
20
31
query I rowsort
SELECT - col2 + ( - 58 ) FROM tab1 AS cor0
----
-112
-115
-154
query I rowsort
SELECT ALL - col1 + col0 * col2 AS col0 FROM tab2
----
158
1969
2985
query I rowsort
SELECT ALL tab0.col0 * col0 + 27 * col1 - tab0.col2 FROM tab0
----
10296
2865
3843
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 * 43 col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5813d16dd44414cbc01273716778e75d
query I rowsort
SELECT col0 * - col2 + + col2 * + col2 FROM tab2 cor0
----
-1352
-1558
540
query I rowsort
SELECT - col2 - + 41 AS col1 FROM tab1 AS cor0
----
-137
-95
-98
query I rowsort
SELECT DISTINCT + col0 - ( - col2 ) * - col2 AS col0 FROM tab2 AS cor0
----
-1365
-598
-722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * 78 - col1 * col1 col2 FROM tab0 cor0
----
-14104
-15379
-16975
query I rowsort
SELECT ALL col1 + col0 + - 88 FROM tab1 AS cor0
----
-14
-59
5
query I rowsort
SELECT - - col0 - + ( - col0 ) AS col1 FROM tab0 cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-5060
SELECT - col2 DIV - col1 + + col1 AS col0 FROM tab2 AS cor0
----
19
31
59
skipif mysql # not compatible
query I rowsort label-5060
SELECT - col2 / - col1 + + col1 AS col0 FROM tab2 AS cor0
----
19
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-5061
SELECT + 91 DIV - col2 + ( + col1 ) * - col2 FROM tab1
----
-1248
-1405
-571
skipif mysql # not compatible
query I rowsort label-5061
SELECT + 91 / - col2 + ( + col1 ) * - col2 FROM tab1
----
-1248
-1405
-571
query I rowsort
SELECT DISTINCT - 71 + col0 * ( col2 ) AS col1 FROM tab2
----
118
1957
2931
query I rowsort
SELECT 8 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
query I rowsort
SELECT DISTINCT + col0 - + col0 * 6 AS col0 FROM tab0
----
-120
-175
-445
onlyif mysql # use DIV operator for integer division
query I rowsort label-5065
SELECT col2 + - col0 DIV 43 AS col0 FROM tab0
----
1
33
80
skipif mysql # not compatible
query I rowsort label-5065
SELECT col2 + - col0 / 43 AS col0 FROM tab0
----
1
33
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5066
SELECT col2 * col2 + - CAST( NULL AS SIGNED ) * - col1 * + col1 + 75 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5066
SELECT col2 * col2 + - CAST ( NULL AS INTEGER ) * - col1 * + col1 + 75 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 4 AS col0 FROM tab0, tab1 AS cor0
----
4
query I rowsort
SELECT col2 * + ( + col2 ) + - tab1.col0 * tab1.col0 + - col2 AS col2 FROM tab1
----
-904
2720
2853
query I rowsort
SELECT DISTINCT - col2 * - col0 + - cor0.col1 + cor0.col1 AS col2 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - 3 col2 FROM tab0 AS cor0
----
36
4
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 * - col0 + - col2 col2 FROM tab1 AS cor0
----
-288
-41017
-83296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5072
SELECT + col1 * + CAST( + col2 * + col1 AS SIGNED ) + + cor0.col1 AS col1 FROM tab0 AS cor0
----
244154
679133
9506
skipif mysql # not compatible
query I rowsort label-5072
SELECT + col1 * + CAST ( + col2 * + col1 AS INTEGER ) + + cor0.col1 AS col1 FROM tab0 AS cor0
----
244154
679133
9506
query I rowsort
SELECT DISTINCT + col0 * 56 FROM tab1 cor0
----
168
3584
4480
query I rowsort
SELECT ALL + col1 * + col1 + - col2 AS col0 FROM tab0 AS cor0
----
7363
8199
9408
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5075
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-5075
SELECT ALL - + col1 + CAST ( NULL AS INTEGER ) * - col0 - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 11 AS col1 FROM tab1, tab0 AS cor0
----
11
query I rowsort
SELECT ALL - cor0.col0 * + col0 + - cor0.col2 + - col2 AS col1 FROM tab1 AS cor0
----
-117
-4210
-6592
query I rowsort
SELECT + - col1 * ( col2 ) + cor0.col1 FROM tab0 cor0
----
-2752
-7371
0
query I rowsort
SELECT col0 + - 53 AS col1 FROM tab2
----
-46
25
26
query I rowsort
SELECT DISTINCT - 82 AS col2 FROM tab0, tab2 cor0
----
-82
query I rowsort
SELECT DISTINCT - ( + 7 ) FROM tab2
----
-7
query I rowsort
SELECT + + col0 + + 90 * - col1 * + 50 AS col1 FROM tab0 cor0
----
-386976
-409411
-436465
query I rowsort
SELECT - col0 * + col0 * 62 FROM tab0 AS cor0
----
-35712
-491102
-75950
query I rowsort
SELECT DISTINCT - col2 + col1 * - col0 FROM tab1 AS cor0
----
-1136
-132
-697
onlyif mysql # use DIV operator for integer division
query I rowsort label-5085
SELECT DISTINCT col2 + + col2 DIV - cor0.col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-5085
SELECT DISTINCT col2 + + col2 / - cor0.col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + + col1 * cor0.col0 + col1 * col1 + + cor0.col2 FROM tab2 AS cor0
----
1205
1670
8109
query I rowsort
SELECT 30 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0
query I rowsort
SELECT DISTINCT - col0 * - col0 + col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT 89 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad
query I rowsort
SELECT ALL + + col2 + - 16 FROM tab1 AS cor0
----
38
41
80
query I rowsort
SELECT ALL + - ( col1 ) * col1 + ( + 7 ) * - col1 FROM tab1 AS cor0
----
-170
-260
-858
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5092
SELECT - CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-5092
SELECT - CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - ( + col1 ) - + col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT 66 - + col2 * + col2 AS col1 FROM tab1 AS cor0
----
-2850
-3183
-9150
onlyif mysql # use DIV operator for integer division
query I rowsort label-5095
SELECT col0 DIV + cor0.col0 AS col1 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5095
SELECT col0 / + cor0.col0 AS col1 FROM tab0 cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5096
SELECT ALL + 29 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL + 29 / + col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - 55 - + cor0.col2 FROM tab0 AS cor0
----
-137
-56
-88
query I rowsort
SELECT - col2 + + col2 * - col2 FROM tab2
----
-1482
-702
-756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 col1 FROM tab1
----
29
74
93
query I rowsort
SELECT + + col1 + ( - 71 ) AS col2 FROM tab1 AS cor0
----
-45
-58
-61
query I rowsort
SELECT - col2 * 10 AS col1 FROM tab0 AS cor0
----
-10
-330
-820
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 96 col0 FROM tab0 AS cor0
----
8256
8736
9312
query I rowsort
SELECT ALL 52 * tab0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c378936897eb3339abc1e15b39a9c48a
query I rowsort
SELECT - col0 + 95 * col0 FROM tab0
----
2256
3290
8366
query I rowsort
SELECT + cor0.col0 AS col1 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT - + cor0.col1 + - 32 AS col1 FROM tab1 cor0
----
-42
-45
-58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 col0 FROM tab0, tab0 AS cor0
----
-83
query I rowsort
SELECT ALL + 66 * col2 FROM tab0 cor0
----
2178
5412
66
query I rowsort
SELECT ALL col1 * + col2 * + col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT - ( ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + + ( - col0 ) + + col0 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT 27 AS col1 FROM tab2 AS cor0
----
27
query I rowsort
SELECT col0 + + 38 FROM tab0
----
127
62
73
query I rowsort
SELECT DISTINCT col2 + + tab2.col0 * + 0 FROM tab2
----
26
27
38
query I rowsort
SELECT col0 - + col2 * col0 * col0 FROM tab0
----
-1190
-18984
-649433
query I rowsort
SELECT - - 90 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
query I rowsort
SELECT + col2 + + col2 * - col2 FROM tab1
----
-2862
-3192
-9120
query I rowsort
SELECT 4 + col2 FROM tab2
----
30
31
42
query I rowsort
SELECT + cor0.col1 + - 84 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to c1ffda6ca9c620c9836edc45e92a9bf1
query I rowsort
SELECT ALL - col2 * 59 + + col1 FROM tab1 AS cor0
----
-3160
-3353
-5651
query I rowsort
SELECT - ( 88 ) AS col0 FROM tab2 AS cor0
----
-88
-88
-88
query I rowsort
SELECT + - 7 FROM tab0 cor0
----
-7
-7
-7
query I rowsort
SELECT 39 * + col0 AS col2 FROM tab2
----
273
3042
3081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5124
SELECT + ( cor0.col1 ) - CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-21
33
4
skipif mysql # not compatible
query I rowsort label-5124
SELECT + ( cor0.col1 ) - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT col1 * - col0 + col2 * col1 * + col0 FROM tab0
----
0
656019
66048
query I rowsort
SELECT - col1 * 39 * col2 AS col0 FROM tab2 cor0
----
-25194
-32643
-59826
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( + col0 ) + cor0.col2 col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT + col2 * 79 FROM tab2 AS cor0
----
2054
2133
3002
query I rowsort
SELECT - cor0.col2 - col1 * + 62 AS col0 FROM tab0 AS cor0
----
-5365
-5724
-6015
query I rowsort
SELECT ALL + ( col2 ) - col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT col0 + - col2 * col0 + 80 AS col0 FROM tab2
----
-102
-1870
-2843
query I rowsort
SELECT - 67 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99
query I rowsort
SELECT DISTINCT col1 * - col2 + + cor0.col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT + 56 + - tab1.col2 FROM tab1
----
-1
-40
2
query I rowsort
SELECT ALL - - 58 * col0 + - ( + col0 ) FROM tab1 AS cor0
----
171
3648
4560
query I rowsort
SELECT + 8 + cor0.col0 * + ( + col2 ) AS col0 FROM tab1 cor0
----
170
3656
7688
query I rowsort
SELECT ALL + - col1 + + col0 - col2 AS col1 FROM tab0 AS cor0
----
-63
-84
-95
query I rowsort
SELECT ALL + col2 + - col2 * - ( + col0 ) * cor0.col2 AS col0 FROM tab1 AS cor0
----
207993
737376
8802
query I rowsort
SELECT DISTINCT col2 * col2 * - 56 + + col0 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-163290
-181816
-515936
onlyif mysql # use DIV operator for integer division
query I rowsort label-5140
SELECT ALL tab0.col1 DIV ( + tab0.col1 ) FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL tab0.col1 / ( + tab0.col1 ) FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 * CAST ( - col0 AS REAL ) FROM tab0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * - col1 col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + col1 * 36 FROM tab0 AS cor0
----
3096
3276
3492
query I rowsort
SELECT col1 * 77 + ( + col0 ) * - col1 FROM tab0
----
-1092
4074
4558
onlyif mysql # use DIV operator for integer division
query I rowsort label-5145
SELECT - col1 * col2 DIV + col1 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-5145
SELECT - col1 * col2 / + col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + col0 * + 71 FROM tab0 AS cor0
----
1704
2485
6319
query I rowsort
SELECT - 26 + - col0 * - col2 FROM tab1 cor0
----
136
3622
7654
query I rowsort
SELECT ALL + col2 * - ( col1 ) AS col1 FROM tab0 cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5149
SELECT + - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5149
SELECT + - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( 24 ) * + col1 FROM tab0 AS cor0
----
2064
2184
2328
query I rowsort
SELECT - - col1 + - cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT 52 * col0 FROM tab2 AS cor0
----
364
4056
4108
query I rowsort
SELECT DISTINCT col2 + col0 + + col1 FROM tab1 AS cor0
----
131
189
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5154
SELECT ALL + col0 - col1 DIV cor0.col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL + col0 - col1 / cor0.col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + - col1 * + col1 + col2 AS col1 FROM tab0 cor0
----
-7363
-8199
-9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-5156
SELECT + col1 * tab0.col1 DIV col1 - col0 * + 67 FROM tab0
----
-1522
-2248
-5872
skipif mysql # not compatible
query I rowsort label-5156
SELECT + col1 * tab0.col1 / col1 - col0 * + 67 FROM tab0
----
-1522
-2248
-5872
onlyif mysql # use DIV operator for integer division
query I rowsort label-5157
SELECT + + ( + 31 ) DIV col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5157
SELECT + + ( + 31 ) / col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT + + 92 * - cor0.col0 FROM tab2 AS cor0
----
-644
-7176
-7268
query I rowsort
SELECT - + col2 * 48 FROM tab2 AS cor0
----
-1248
-1296
-1824
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 26 col0 FROM tab0 AS cor0
----
-2236
-2366
-2522
onlyif mysql # use DIV operator for integer division
query I rowsort label-5161
SELECT DISTINCT cor0.col0 + ( col2 ) DIV 42 FROM tab0 AS cor0
----
24
35
90
skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT cor0.col0 + ( col2 ) / 42 FROM tab0 AS cor0
----
24
35
90
query I rowsort
SELECT DISTINCT + - col0 * 79 FROM tab2 AS cor0
----
-553
-6162
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 + + col0 col2 FROM tab0 AS cor0
----
134
167
269
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + col2 * col1 + col2 - - col0 AS col1 FROM tab2 cor0
----
1638
763
871
onlyif mysql # use DIV operator for integer division
query I rowsort label-5166
SELECT + 1 * col0 + col1 DIV + cor0.col1 - col0 * col0 FROM tab1 AS cor0
----
-4031
-5
-6319
skipif mysql # not compatible
query I rowsort label-5166
SELECT + 1 * col0 + col1 / + cor0.col1 - col0 * col0 FROM tab1 AS cor0
----
-4031
-5
-6319
query I rowsort
SELECT + 27 * + col1 FROM tab2 AS cor0
----
1593
459
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-5168
SELECT + + cor0.col0 + cor0.col0 * col1 DIV - col0 - - cor0.col0 * col1 FROM tab0 AS cor0
----
2002
3333
8097
skipif mysql # not compatible
query I rowsort label-5168
SELECT + + cor0.col0 + cor0.col0 * col1 / - col0 - - cor0.col0 * col1 FROM tab0 AS cor0
----
2002
3333
8097
query I rowsort
SELECT - 49 + col0 FROM tab1
----
-46
15
31
query I rowsort
SELECT 44 + + tab2.col0 * + col0 FROM tab2
----
6128
6285
93
query I rowsort
SELECT + col0 + 78 AS col2 FROM tab0
----
102
113
167
query I rowsort
SELECT DISTINCT + 82 * 47 FROM tab2
----
3854
query I rowsort
SELECT ALL - + col0 * 56 AS col2 FROM tab1 AS cor0
----
-168
-3584
-4480
query I rowsort
SELECT col1 * col2 * col0 + cor0.col2 * + col1 AS col1 FROM tab2 AS cor0
----
121186
51680
6696
query I rowsort
SELECT DISTINCT + - col0 + 59 FROM tab1 AS cor0
----
-21
-5
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 + col2 * - col0 col1 FROM tab1 AS cor0
----
-14080
-171
-7744
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * col2 + + col1 col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL - cor0.col0 + + col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT col0 * cor0.col2 + 30 AS col2 FROM tab1 AS cor0
----
192
3678
7710
query I rowsort
SELECT ALL cor0.col1 * cor0.col1 + cor0.col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT DISTINCT col2 + 95 * col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-127547
-20588
-437164
query I rowsort
SELECT DISTINCT - col0 * tab2.col1 + + 97 AS col0 FROM tab2
----
-120
-1246
-4505
query I rowsort
SELECT ALL col1 + + col2 * 48 AS col0 FROM tab0
----
145
1670
4027
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5184
SELECT + col2 * CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5184
SELECT + col2 * CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5185
SELECT col2 - + col0 / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5185
SELECT col2 - + col0 / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + 15 * - col2 AS col0 FROM tab2
----
-390
-405
-570
query I rowsort
SELECT cor0.col1 AS col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-5188
SELECT + col0 + col1 DIV tab1.col0 FROM tab1
----
11
64
80
skipif mysql # not compatible
query I rowsort label-5188
SELECT + col0 + col1 / tab1.col0 FROM tab1
----
11
64
80
query I rowsort
SELECT - 51 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
query I rowsort
SELECT ALL 1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
onlyif mysql # use DIV operator for integer division
query I rowsort label-5191
SELECT + + col1 DIV + cor0.col2 col0 FROM tab0 AS cor0
----
1
2
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5191
SELECT + + col1 / + cor0.col2 col0 FROM tab0 AS cor0
----
1
2
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5192
SELECT DISTINCT - cor0.col2 DIV + cor0.col0 AS col0 FROM tab2 AS cor0
----
-3
0
skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT - cor0.col2 / + cor0.col0 AS col0 FROM tab2 AS cor0
----
-3
0
query I rowsort
SELECT ALL + + col0 + 8 AS col1 FROM tab2 AS cor0
----
15
86
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5194
SELECT DISTINCT - col2 * CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT - col2 * CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-5195
SELECT + tab1.col0 DIV tab1.col0 + - 24 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5
skipif mysql # not compatible
query I rowsort label-5195
SELECT + tab1.col0 / tab1.col0 + - 24 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5
query I rowsort
SELECT DISTINCT + tab1.col0 * - 63 FROM tab1, tab2 cor0, tab0 cor1
----
-189
-4032
-5040
query I rowsort
SELECT ALL + 67 * col0 AS col0 FROM tab1
----
201
4288
5360
query I rowsort
SELECT DISTINCT - - col1 * + cor0.col2 - 96 FROM tab1 AS cor0
----
1152
1308
474
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5199
SELECT DISTINCT + col1 * + CAST( - 48 AS SIGNED ) FROM tab1 cor0
----
-1248
-480
-624
skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT + col1 * + CAST ( - 48 AS INTEGER ) FROM tab1 cor0
----
-1248
-480
-624
query I rowsort
SELECT ALL col2 + col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT - ( - 40 ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 * 74 col2 FROM tab0 cor0
----
-6278
-6643
-7081
query I rowsort
SELECT - col1 * - cor0.col1 * col0 AS col1 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT ALL ( ( - col2 ) ) * + 93 AS col2 FROM tab0 AS cor0
----
-3069
-7626
-93
query I rowsort
SELECT ( 0 ) * - col2 * - col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + + col2 * - 2 AS col1 FROM tab0 cor0
----
-164
-2
-66
query I rowsort
SELECT + col1 * - cor0.col0 + col1 AS col1 FROM tab1 cor0
----
-1027
-52
-630
query I rowsort
SELECT col0 * - col1 + - col0 + col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - ( - col2 ) + col2 AS col1 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT DISTINCT + 7 * 99 AS col1 FROM tab2
----
693
query I rowsort
SELECT DISTINCT - 62 * - cor0.col2 + 99 FROM tab2 AS cor0
----
1711
1773
2455
query I rowsort
SELECT ALL - col2 + + col1 * - col1 * col1 FROM tab2 AS cor0
----
-205405
-29818
-4951
query I rowsort
SELECT + col2 + + col0 * col2 * col0 + + col2 FROM tab2 AS cor0
----
1377
158236
237234
query I rowsort
SELECT - - col2 + - col1 + + col0 FROM tab2 cor0
----
100
3
45
query I rowsort
SELECT col1 + - col0 * - 26 FROM tab0 AS cor0
----
1007
2405
710
query I rowsort
SELECT DISTINCT + - 46 AS col0 FROM tab2 AS cor0
----
-46
query I rowsort
SELECT ALL + col0 + - col2 * col1 AS col0 FROM tab2 cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL + + 89 + col1 + col2 FROM tab2 AS cor0
----
144
147
174
query I rowsort
SELECT 50 * - col1 + + 52 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-1186
1106
3258
query I rowsort
SELECT ALL cor0.col1 * + col2 + + 13 * 90 AS col2 FROM tab0 AS cor0
----
1267
4008
8632
onlyif mysql # use DIV operator for integer division
query I rowsort label-5221
SELECT DISTINCT - col2 * col1 + - col0 DIV + col0 AS col2 FROM tab0
----
-2839
-7463
-98
skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT - col2 * col1 + - col0 / + col0 AS col2 FROM tab0
----
-2839
-7463
-98
query I rowsort
SELECT ALL - tab2.col1 * col1 * 4 + - 64 * tab2.col1 FROM tab2
----
-17700
-2244
-5828
query I rowsort
SELECT ALL 95 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2, tab0 AS cor3
----
243 values hashing to a96f63df7f05a6c9b4b5ff9a176b4494
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5224
SELECT ALL + col2 * + col0 - + col2 * CAST( col0 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
107520
40128
4374
skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL + col2 * + col0 - + col2 * CAST ( col0 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
107520
40128
4374
query I rowsort
SELECT 1 * col0 - col2 AS col1 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5226
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / ( col2 ) - ( ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / ( col2 ) - ( ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL 84 * cor0.col1 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to bf5d0040fbd7fb88d76fe768ab001543
query I rowsort
SELECT - tab1.col2 * + col1 * col0 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT - col2 + + col2 * - col2 * - 56 FROM tab0
----
376462
55
60951
query I rowsort
SELECT DISTINCT - ( tab2.col1 ) + tab2.col0 AS col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT - 99 * - 58 + col1 AS col2 FROM tab0
----
5828
5833
5839
query I rowsort
SELECT col2 + 69 + - col1 * + col1 FROM tab1 AS cor0
----
-4
-553
26
query I rowsort
SELECT DISTINCT 30 + + ( + col0 ) AS col0 FROM tab0
----
119
54
65
query I rowsort
SELECT + 22 - - tab2.col1 * col2 FROM tab2
----
1556
668
859
query I rowsort
SELECT col1 * col1 * col1 AS col0 FROM tab1
----
1000
17576
2197
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - cor0.col1 - col0 col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL col0 * + col0 + cor0.col1 AS col0 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT DISTINCT + ( - ( + col2 ) ) + col0 * col2 AS col2 FROM tab0 cor0
----
34
7216
759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5239
SELECT DISTINCT - + CAST( 93 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
-36
-39
3
skipif mysql # not compatible
query I rowsort label-5239
SELECT DISTINCT - + CAST ( 93 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
-36
-39
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-5240
SELECT DISTINCT col2 + - col0 DIV - col1 FROM tab2 AS cor0
----
27
42
skipif mysql # not compatible
query I rowsort label-5240
SELECT DISTINCT col2 + - col0 / - col1 FROM tab2 AS cor0
----
27
42
query I rowsort
SELECT tab0.col0 - + 26 * col0 FROM tab0
----
-2225
-600
-875
query I rowsort
SELECT DISTINCT - 56 + col0 * col2 AS col2 FROM tab1
----
106
3592
7624
query I rowsort
SELECT ( - ( - col1 ) + + ( - col1 ) * col1 ) FROM tab2
----
-272
-3422
-930
query I rowsort
SELECT DISTINCT 29 * 84 + col2 FROM tab0
----
2437
2469
2518
query I rowsort
SELECT col1 * - col1 + col2 + tab1.col0 * ( - col1 ) FROM tab1
----
-1113
-683
-700
query I rowsort
SELECT DISTINCT + 22 + - col0 FROM tab1
----
-42
-58
19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5247
SELECT col0 * col1 - - col0 * - CAST( - ( - col2 ) AS SIGNED ) FROM tab2
----
-1659
2574
28
skipif mysql # not compatible
query I rowsort label-5247
SELECT col0 * col1 - - col0 * - CAST ( - ( - col2 ) AS INTEGER ) FROM tab2
----
-1659
2574
28
query I rowsort
SELECT DISTINCT - 29 - col1 FROM tab2
----
-46
-60
-88
query I rowsort
SELECT DISTINCT col2 * - col0 - col1 FROM tab2
----
-2087
-220
-3019
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5250
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab0
----
NULL
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab1 cor1, tab0, tab1 AS cor2
----
3645 values hashing to f9101173abc9e524c6310e6c0eeefb0c
query I rowsort
SELECT ALL - - 81 * 17 FROM tab2 AS cor0
----
1377
1377
1377
query I rowsort
SELECT DISTINCT 98 + + col1 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
1346
1502
668
onlyif mysql # use DIV operator for integer division
query I rowsort label-5254
SELECT ALL + col1 + - 66 DIV - cor0.col1 AS col0 FROM tab2 AS cor0
----
20
33
60
skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL + col1 + - 66 / - cor0.col1 AS col0 FROM tab2 AS cor0
----
20
33
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5255
SELECT CAST( 84 AS SIGNED ) AS col2 FROM tab2 cor0
----
84
84
84
skipif mysql # not compatible
query I rowsort label-5255
SELECT CAST ( 84 AS INTEGER ) AS col2 FROM tab2 cor0
----
84
84
84
query I rowsort
SELECT ALL ( + col1 ) * + col0 * col1 + + col1 FROM tab1
----
13533
2054
6410
query I rowsort
SELECT DISTINCT 7 + col2 FROM tab0
----
40
8
89
query I rowsort
SELECT DISTINCT col1 + + col2 + col0 FROM tab2
----
134
163
65
query I rowsort
SELECT DISTINCT + col0 * cor0.col1 + 49 AS col2 FROM tab1 AS cor0
----
1089
127
689
onlyif mysql # use DIV operator for integer division
query I rowsort label-5260
SELECT ALL col1 * + col2 DIV col2 + col2 FROM tab0 AS cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL col1 * + col2 / col2 + col2 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5261
SELECT DISTINCT + - col0 + - ( + col0 ) - - col2 DIV ( + col2 ) AS col2 FROM tab1 AS cor0
----
-127
-159
-5
skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT + - col0 + - ( + col0 ) - - col2 / ( + col2 ) AS col2 FROM tab1 AS cor0
----
-127
-159
-5
query I rowsort
SELECT ALL + col2 * + 23 AS col0 FROM tab2 AS cor0
----
598
621
874
onlyif mysql # use DIV operator for integer division
query I rowsort label-5263
SELECT cor0.col1 DIV + tab0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 18b9270771be6515394326511a0bd7b6
skipif mysql # not compatible
query I rowsort label-5263
SELECT cor0.col1 / + tab0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 18b9270771be6515394326511a0bd7b6
query I rowsort
SELECT - 27 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 0259a67676b131a4843853be4811b775
query I rowsort
SELECT DISTINCT - + 51 AS col0 FROM tab2, tab1 AS cor0
----
-51
query I rowsort
SELECT + col1 + col2 * - col1 AS col0 FROM tab2 cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT 48 + + col1 AS col2 FROM tab2
----
107
65
79
query I rowsort
SELECT ALL - col1 + + col0 * col2 * + col1 FROM tab0
----
3298
664027
68026
query I rowsort
SELECT DISTINCT 46 + tab0.col0 * + col1 + - tab0.col1 AS col0 FROM tab0
----
2024
3344
8054
query I rowsort
SELECT ALL - col0 + + 35 * - col0 AS col0 FROM tab0 AS cor0
----
-1260
-3204
-864
query I rowsort
SELECT ALL + col1 * 10 * 33 AS col1 FROM tab1 AS cor0
----
3300
4290
8580
query I rowsort
SELECT DISTINCT + col2 * + 84 FROM tab0 AS cor0
----
2772
6888
84
query I rowsort
SELECT + col2 * col1 * + col2 + col1 * - 64 FROM tab2 AS cor0
----
20615
23460
36108
onlyif mysql # use DIV operator for integer division
query I rowsort label-5274
SELECT DISTINCT - + col1 - 11 DIV - cor0.col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-5274
SELECT DISTINCT - + col1 - 11 / - cor0.col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + col1 + + 46 FROM tab0 AS cor0
----
132
137
143
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5276
SELECT DISTINCT - cor0.col1 * - CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-5276
SELECT DISTINCT - cor0.col1 * - CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5277
SELECT ALL + col2 * 10 DIV + col1 + + col2 AS col1 FROM tab2 AS cor0
----
30
35
60
skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL + col2 * 10 / + col1 + + col2 AS col1 FROM tab2 AS cor0
----
30
35
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5278
SELECT + - col1 + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5278
SELECT + - col1 + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col2 * + 21 + cor0.col0 FROM tab1 AS cor0
----
-1131
-1133
-1936
onlyif mysql # use DIV operator for integer division
query I rowsort label-5280
SELECT DISTINCT col0 DIV 25 FROM tab1
----
0
2
3
skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT col0 / 25 FROM tab1
----
0
2
3
query I rowsort
SELECT col0 * + 84 * + col0 AS col2 FROM tab2
----
4116
511056
524244
onlyif mysql # use DIV operator for integer division
query I rowsort label-5282
SELECT ALL - + col1 + - cor0.col2 DIV ( + cor0.col0 ) FROM tab2 AS cor0
----
-17
-34
-59
skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL - + col1 + - cor0.col2 / ( + cor0.col0 ) FROM tab2 AS cor0
----
-17
-34
-59
query I rowsort
SELECT + + col2 + - col1 * - cor0.col0 + + col0 AS col2 FROM tab2 AS cor0
----
1460
251
4706
query I rowsort
SELECT tab2.col1 * 32 AS col1 FROM tab2
----
1888
544
992
query I rowsort
SELECT 12 * cor1.col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3a3e10451026ada38fc46c115002bfd5
query I rowsort
SELECT cor1.col0 + + cor0.col2 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 8bd72de8d7a75bcbd2619bca60945947
query I rowsort
SELECT DISTINCT ( - ( col1 ) ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + - 87 AS col1 FROM tab0 AS cor0
----
-87
-87
-87
query I rowsort
SELECT ALL + col0 * + cor0.col2 * cor0.col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ( 79 ) + col2 FROM tab0 AS cor0
----
112
161
80
query I rowsort
SELECT ALL + 39 * + cor0.col0 FROM tab2 AS cor0
----
273
3042
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-5292
SELECT + col1 + col2 DIV col0 FROM tab0 AS cor0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-5292
SELECT + col1 + col2 / col0 FROM tab0 AS cor0
----
87
91
97
query I rowsort
SELECT DISTINCT - ( col0 ) + col2 * + 13 FROM tab2 AS cor0
----
260
344
415
query I rowsort
SELECT DISTINCT - + cor0.col0 + - col1 + 24 AS col1 FROM tab2 AS cor0
----
-113
-14
-72
query I rowsort
SELECT + col0 * + col1 * col2 + col2 * col1 AS col0 FROM tab1
----
101088
37050
5616
query I rowsort
SELECT col1 * - col1 * 42 AS col2 FROM tab0
----
-310632
-347802
-395178
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + col1 ) * col2 col1 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5298
SELECT ALL + - col1 + - col0 * - CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1027
52
630
skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL + - col1 + - col0 * - CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT + 65 * col1 + 81 * + col2 + col0 FROM tab1 AS cor0
----
5331
6067
8701
query I rowsort
SELECT DISTINCT - + 81 * + col0 AS col1 FROM tab2 AS cor0
----
-567
-6318
-6399
query I rowsort
SELECT - 71 * col0 AS col0 FROM tab2 cor0
----
-497
-5538
-5609
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 + - col0 col0 FROM tab0 AS cor0
----
-5
-59
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + - col1 col0 FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5304
SELECT ALL - - cor0.col2 + cor0.col0 DIV + col2 + col1 col1 FROM tab1 AS cor0
----
109
68
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL - - cor0.col2 + cor0.col0 / + col2 + col1 col1 FROM tab1 AS cor0
----
109
68
80
query I rowsort
SELECT - col1 + - cor0.col0 * ( col0 ) AS col0 FROM tab2 cor0
----
-6143
-6258
-80
query I rowsort
SELECT DISTINCT 25 * + col1 FROM tab2 AS cor0
----
1475
425
775
query I rowsort
SELECT - col1 + col1 * - col0 + tab2.col1 AS col2 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-5308
SELECT ALL + col2 DIV col0 + - 64 FROM tab0
----
-63
-64
-64
skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL + col2 / col0 + - 64 FROM tab0
----
-63
-64
-64
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2 OR NOT col2 NOT BETWEEN - col1 * col1 + col0 AND NULL
----
query I rowsort
SELECT - + cor0.col2 * - col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT col1 - col0 * + tab0.col0 AS col2 FROM tab0
----
-1128
-490
-7830
query I rowsort
SELECT - cor0.col2 * col1 AS col1 FROM tab2 cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-5313
SELECT DISTINCT - - 6 DIV + col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT - - 6 / + col2 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col0 + - cor0.col2 col2 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT - + ( col1 ) * - cor0.col2 AS col2 FROM tab1 cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 * col2 * + tab1.col1 col2 FROM tab1
----
19950
43680
49140
query I rowsort
SELECT + 96 * col0 AS col2 FROM tab0
----
2304
3360
8544
query I rowsort
SELECT DISTINCT + col1 - col0 * - col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - - col0 * - col1 + + col0 * col1 * col1 AS col0 FROM tab1 AS cor0
----
12480
1950
5760
query I rowsort
SELECT + - col1 + + col0 * col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT ALL + col2 - - cor0.col0 * + cor0.col0 FROM tab0 cor0
----
1226
609
8003
query I rowsort
SELECT + cor0.col2 + + col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT + + col1 * - col0 * col2 - col2 * col0 AS col1 FROM tab0 AS cor0
----
-3430
-671416
-68904
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT col0 + col1 * + tab2.col0 - col0 FROM tab2
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-5326
SELECT DISTINCT col2 * col0 + col0 + col1 DIV col1 FROM tab1
----
166
3713
7761
skipif mysql # not compatible
query I rowsort label-5326
SELECT DISTINCT col2 * col0 + col0 + col1 / col1 FROM tab1
----
166
3713
7761
query I rowsort
SELECT ALL col2 * - col0 + col0 + col2 FROM tab1
----
-105
-3527
-7504
query I rowsort
SELECT DISTINCT + col2 * col0 + + col2 FROM tab2 WHERE NOT NULL IN ( col1 / col0 - col0 )
----
query I rowsort
SELECT DISTINCT - tab2.col1 + + col1 + - col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL col2 + col2 + col2 FROM tab0
----
246
3
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-5331
SELECT ALL tab1.col0 DIV + col0 AS col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL tab1.col0 / + col0 AS col1 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT + col2 + col0 * - tab1.col0 + col2 AS col1 FROM tab1
----
-3982
-6208
99
query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 + col1 + - col1 BETWEEN ( col1 ) AND + col2 + col1 + col0
----
query I rowsort
SELECT - col1 * col2 + - col0 AS col2 FROM tab1
----
-1328
-1407
-634
query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NULL NOT IN ( - col2 * col0 )
----
query I rowsort
SELECT ALL - tab2.col1 * col0 + tab2.col0 + col2 * col2 FROM tab2
----
-3848
180
519
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 + + col1 col2 FROM tab0
----
195
205
264
query I rowsort
SELECT ALL col1 * - tab2.col2 AS col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT col0 * col0 + + col2 FROM tab0
----
1226
609
8003
query I rowsort
SELECT DISTINCT 63 * col0 AS col1 FROM tab0 AS cor0
----
1512
2205
5607
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5341
SELECT + 9 * col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5341
SELECT + 9 * col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + col0 * - ( 94 ) AS col1 FROM tab0 AS cor0
----
-2342
-3387
-8457
query I rowsort
SELECT col1 * + tab1.col2 + col1 * - col2 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5344
SELECT ALL + col1 + col0 * col2 DIV col1 + + tab1.col1 AS col1 FROM tab1
----
384
58
616
skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL + col1 + col0 * col2 / col1 + + tab1.col1 AS col1 FROM tab1
----
384
58
616
onlyif mysql # use DIV operator for integer division
query I rowsort label-5345
SELECT DISTINCT - col1 DIV - tab0.col2 AS col1 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT - col1 / - tab0.col2 AS col1 FROM tab0
----
1
2
97
query I rowsort
SELECT DISTINCT - 88 * - cor0.col2 + + 53 * + col0 + + col0 AS col1 FROM tab2 AS cor0
----
2754
6500
7610
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = + col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5348
SELECT cor0.col0 + - cor0.col1 DIV + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 68def394c5b6e775828970dd38070bbf
skipif mysql # not compatible
query I rowsort label-5348
SELECT cor0.col0 + - cor0.col1 / + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 68def394c5b6e775828970dd38070bbf
onlyif mysql # use DIV operator for integer division
query I rowsort label-5349
SELECT DISTINCT + col0 + + col2 DIV + cor0.col0 + cor0.col0 FROM tab2 AS cor0
----
156
158
17
skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT + col0 + + col2 / + cor0.col0 + cor0.col0 FROM tab2 AS cor0
----
156
158
17
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < ( NULL )
----
query I rowsort
SELECT DISTINCT col1 * col2 + col2 + + col1 AS col0 FROM tab2 AS cor0
----
1619
701
895
query I rowsort
SELECT ALL col2 + - col0 * col1 * col2 FROM tab0
----
-3394
-664036
-68079
query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT - col0 IN ( col0 )
----
1
33
82
query I rowsort
SELECT ALL col0 * tab0.col1 FROM tab0 WHERE ( col2 ) IN ( - col0 * + col0 )
----
query I rowsort
SELECT col2 + - col0 * + col0 AS col1 FROM tab0
----
-1224
-543
-7839
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= - col1
----
query I rowsort
SELECT - col1 + - col0 * col1 AS col1 FROM tab1
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT + cor0.col2 + + col0 AS col1 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5359
SELECT 27 DIV - col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5359
SELECT 27 / - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - tab2.col1 FROM tab2, tab0 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
onlyif mysql # use DIV operator for integer division
query I rowsort label-5361
SELECT DISTINCT - 7 DIV col1 AS col1 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT - 7 / col1 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT cor0.col1 * + col0 + 1 * + cor0.col1 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT 18 * - col2 AS col1 FROM tab2 AS cor0
----
-468
-486
-684
query I rowsort
SELECT ALL + col2 * col0 + + 24 * + col1 FROM tab0 AS cor0
----
2363
2856
9482
onlyif mysql # use DIV operator for integer division
query I rowsort label-5365
SELECT ALL - 45 DIV + col0 + + 16 col2 FROM tab0 AS cor0
----
15
15
16
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL - 45 / + col0 + + 16 col2 FROM tab0 AS cor0
----
15
15
16
query I rowsort
SELECT + - col0 + cor0.col0 * - cor0.col0 FROM tab0 cor0
----
-1260
-600
-8010
query I rowsort
SELECT ALL 88 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
53
64
query I rowsort
SELECT - 53 + 75 AS col0 FROM tab2 AS cor0
----
22
22
22
query I rowsort
SELECT ALL 39 + + ( + col2 ) * + 13 AS col2 FROM tab2 cor0
----
377
390
533
query I rowsort
SELECT + + col2 + col0 AS col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT + col1 + col0 + - col2 AS col0 FROM tab0 AS cor0
----
131
77
98
query I rowsort
SELECT ALL - 6 + 45 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229
query I rowsort
SELECT + 46 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 086e8f56201fbf4c0ce74087e710811d
query I rowsort
SELECT ALL - cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT 28 * - 7 + col0 FROM tab1
----
-116
-132
-193
query I rowsort
SELECT DISTINCT + tab2.col0 + 90 * - col0 AS col0 FROM tab2
----
-623
-6942
-7031
query I rowsort
SELECT DISTINCT ( tab2.col1 ) + col1 * - col2 + - tab2.col0 FROM tab2
----
-1553
-708
-813
query I rowsort
SELECT ALL - 64 + - col0 + col2 FROM tab0
----
-55
-71
-98
query I rowsort
SELECT DISTINCT + 36 + col0 AS col0 FROM tab1
----
100
116
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5380
SELECT ALL + CAST( + col0 AS SIGNED ) * - col0 FROM tab0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL + CAST ( + col0 AS INTEGER ) * - col0 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - - 83 + - col2 AS col0 FROM tab1 AS cor0
----
-13
26
29
query I rowsort
SELECT col0 + cor0.col0 + - col1 AS col1 FROM tab0 AS cor0
----
-27
-38
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-5383
SELECT ALL - col2 + col0 DIV col0 FROM tab0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL - col2 + col0 / col0 FROM tab0
----
-32
-81
0
query I rowsort
SELECT ALL + 80 * 66 + col1 * col0 AS col0 FROM tab0
----
13379
7344
8675
query I rowsort
SELECT ALL + ( tab0.col0 ) + + col1 AS col1 FROM tab0
----
110
132
180
query I rowsort
SELECT - 90 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c0d96679aba507520916e8654e5a6618
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 * 61 ) col1 FROM tab2
----
1586
1647
2318
query I rowsort
SELECT ALL - 57 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505
query I rowsort
SELECT - 0 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT - 15 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 91b10a00c89b36b5bf0bed723e656ccc
query I rowsort
SELECT ALL - 74 - col1 FROM tab2 cor0
----
-105
-133
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
-69
query I rowsort
SELECT - col1 * - col0 + cor0.col0 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT 19 - + 99 AS col2 FROM tab1, tab1 cor0
----
-80
query I rowsort
SELECT - col2 + + col2 * - col0 FROM tab2
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT - col2 + 87 FROM tab2
----
49
60
61
query I rowsort
SELECT + col2 * col2 + + col1 AS col2 FROM tab1
----
2942
3259
9229
query I rowsort
SELECT col2 * - col2 * 95 FROM tab2
----
-137180
-64220
-69255
onlyif mysql # use DIV operator for integer division
query I rowsort label-5399
SELECT - col0 + tab0.col1 DIV tab0.col2 + col2 AS col1 FROM tab0
----
-6
11
63
skipif mysql # not compatible
query I rowsort label-5399
SELECT - col0 + tab0.col1 / tab0.col2 + col2 AS col1 FROM tab0
----
-6
11
63
query I rowsort
SELECT ALL col2 + + ( 62 ) FROM tab1
----
116
119
158
query I rowsort
SELECT DISTINCT cor0.col0 * - 51 + ( col2 ) FROM tab2 AS cor0
----
-330
-3952
-3991
query I rowsort
SELECT ALL - col2 * + ( - col2 ) + col1 AS col0 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT - cor0.col1 + + 28 AS col0 FROM tab1 AS cor0
----
15
18
2
query I rowsort
SELECT ALL tab1.col0 * ( + 48 ) AS col1 FROM tab1
----
144
3072
3840
query I rowsort
SELECT - ( - 68 ) * cor0.col2 + + col0 FROM tab0 AS cor0
----
103
2268
5665
query I rowsort
SELECT DISTINCT + - 2 * 86 - + col0 FROM tab2 AS cor0
----
-179
-250
-251
onlyif mysql # use DIV operator for integer division
query I rowsort label-5407
SELECT DISTINCT + 75 * + 27 + + col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
2026
skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT + 75 * + 27 + + col2 / + col2 AS col1 FROM tab1 AS cor0
----
2026
query I rowsort
SELECT DISTINCT + col0 + ( col0 ) - 12 FROM tab1 AS cor0
----
-6
116
148
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5409
SELECT ALL + - CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + 1 + 59 AS col0 FROM tab0 AS cor0
----
60
60
60
query I rowsort
SELECT ALL + 97 + 55 * col2 FROM tab2 AS cor0
----
1527
1582
2187
query I rowsort
SELECT - + col1 + cor0.col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 + - cor0.col2 + col0 AS col2 FROM tab2 cor0
----
11
111
58
query I rowsort
SELECT + 61 * + col0 FROM tab1 AS cor0
----
183
3904
4880
query I rowsort
SELECT + + 50 + + 23 * col1 FROM tab2 AS cor0
----
1407
441
763
query I rowsort
SELECT + 34 * col0 + col1 AS col0 FROM tab1 cor0
----
128
2186
2733
query I rowsort
SELECT - cor0.col1 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-29
-74
-93
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-5419
SELECT - - col0 - + CAST( + 0 AS SIGNED ) DIV cor0.col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-5419
SELECT - - col0 - + CAST ( + 0 AS INTEGER ) / cor0.col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + col1 + ( + col0 + cor0.col2 ) FROM tab0 cor0
----
133
143
262
query I rowsort
SELECT - col0 * - 79 FROM tab0 cor0
----
1896
2765
7031
query I rowsort
SELECT - col2 * + 67 + + col1 FROM tab1 AS cor0
----
-3592
-3809
-6419
query I rowsort
SELECT - + col2 + 79 AS col1 FROM tab2 AS cor0
----
41
52
53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5424
SELECT DISTINCT - CAST( - 66 AS SIGNED ) * col1 col1 FROM tab1 AS cor0
----
1716
660
858
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5424
SELECT DISTINCT - CAST ( - 66 AS INTEGER ) * col1 col1 FROM tab1 AS cor0
----
1716
660
858
query I rowsort
SELECT ( cor0.col0 ) * - col2 + + ( 8 ) AS col1 FROM tab0 AS cor0
----
-27
-7290
-784
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5426
SELECT - CAST( NULL AS SIGNED ) * cor0.col2 + col0 + ( 84 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5426
SELECT - CAST ( NULL AS INTEGER ) * cor0.col2 + col0 + ( 84 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5427
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL - CAST ( NULL AS INTEGER ) * - col0 + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * - 44 FROM tab0
----
-3784
-4004
-4268
query I rowsort
SELECT col0 * + 13 - - col1 FROM tab1
----
1053
65
842
onlyif mysql # use DIV operator for integer division
query I rowsort label-5430
SELECT - col2 + ( col2 ) DIV col1 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-5430
SELECT - col2 + ( col2 ) / col1 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT + cor0.col2 * + 76 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to ead492b68e7387812e0cee12492de318
query I rowsort
SELECT + - col0 + col2 * 99 FROM tab1 AS cor0
----
5343
5579
9424
query I rowsort
SELECT ALL ( + col0 * col2 + ( col2 ) ) FROM tab1
----
216
3705
7776
query I rowsort
SELECT - tab2.col0 + tab2.col0 * + col2 AS col0 FROM tab2
----
182
1950
2923
query I rowsort
SELECT ALL + ( col0 * - col2 ) AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT + col2 + - col2 * ( + col0 ) FROM tab2 AS cor0
----
-162
-2002
-2964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - col0 col2 FROM tab0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5438
SELECT ALL col0 DIV CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL col0 / CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT DISTINCT - - col0 + col0 * col0 AS col1 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT DISTINCT - col1 + col0 * + ( cor0.col0 ) AS col0 FROM tab2 cor0
----
18
6025
6224
query I rowsort
SELECT DISTINCT col1 - + 99 AS col2 FROM tab2 AS cor0
----
-40
-68
-82
query I rowsort
SELECT + + col2 * 11 - - col2 AS col2 FROM tab1 cor0
----
1152
648
684
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * - ( + cor0.col2 ) * cor0.col1 col1 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT + col0 + + ( + col2 ) FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - col0 * + col0 - - 41 FROM tab1
----
-4055
-6359
32
query I rowsort
SELECT 76 + - col1 AS col0 FROM tab1
----
50
63
66
query I rowsort
SELECT DISTINCT - 54 FROM tab0, tab2, tab2 AS cor0
----
-54
query I rowsort
SELECT col0 * ( col2 ) + col0 + 98 AS col1 FROM tab2
----
2204
294
3179
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5449
SELECT + col2 * CAST( NULL AS SIGNED ) - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5449
SELECT + col2 * CAST ( NULL AS INTEGER ) - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + + 23 * + ( col1 + + col1 ) AS col2 FROM tab1 AS cor0
----
1222
470
611
query I rowsort
SELECT ALL - - cor0.col1 * col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT + col2 * ( - 67 ) AS col1 FROM tab1 AS cor0
----
-3618
-3819
-6432
query I rowsort
SELECT ALL col2 * 32 + col2 * col2 FROM tab2 AS cor0
----
1508
1593
2660
query I rowsort
SELECT col2 - col2 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT + col2 * 34 * ( - col0 ) - col1 FROM tab1 AS cor0
----
-124042
-261133
-5534
query I rowsort
SELECT ALL + + cor0.col1 - 4 * col0 AS col2 FROM tab2 AS cor0
----
-253
-299
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-5457
SELECT DISTINCT + col0 DIV - CAST( col2 AS SIGNED ) - col1 AS col0 FROM tab0 AS cor0
----
-132
-86
-92
skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT + col0 / - CAST ( col2 AS INTEGER ) - col1 AS col0 FROM tab0 AS cor0
----
-132
-86
-92
query I rowsort
SELECT ALL - cor0.col1 * + col2 + + col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT cor0.col2 + - tab0.col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
81 values hashing to e4463240791ee384efec66d72a5e3bfb
query I rowsort
SELECT DISTINCT ( - 99 ) AS col0 FROM tab0
----
-99
query I rowsort
SELECT + 64 * col1 + - col2 * col1 FROM tab2
----
1147
2242
442
query I rowsort
SELECT ALL + ( - col2 ) * - col0 + tab1.col1 AS col2 FROM tab1
----
188
3658
7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-5463
SELECT - ( + col1 ) * cor0.col2 DIV col0 AS col2 FROM tab2 AS cor0
----
-119
-19
-8
skipif mysql # not compatible
query I rowsort label-5463
SELECT - ( + col1 ) * cor0.col2 / col0 AS col2 FROM tab2 AS cor0
----
-119
-19
-8
query I rowsort
SELECT - + col1 + col1 * + col2 * ( ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
-194
-611975
-93740
query I rowsort
SELECT 66 + + ( col0 ) + + 73 * - col2 AS col2 FROM tab2 AS cor0
----
-1754
-1898
-2629
query I rowsort
SELECT + + 69 * 23 FROM tab1 AS cor0
----
1587
1587
1587
query I rowsort
SELECT + + col0 * 29 + col2 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
115
1903
2403
query I rowsort
SELECT - + 69 + col2 AS col2 FROM tab2 AS cor0
----
-31
-42
-43
query I rowsort
SELECT DISTINCT col1 * cor0.col1 * + 77 + 82 AS col0 FROM tab1 AS cor0
----
13095
52134
7782
query I rowsort
SELECT + 23 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658
query I rowsort
SELECT DISTINCT - 47 FROM tab0, tab2 AS cor0
----
-47
query I rowsort
SELECT DISTINCT cor0.col1 + col0 * - col0 FROM tab1 cor0
----
-4086
-6387
17
query I rowsort
SELECT - col0 * - 43 FROM tab2
----
301
3354
3397
query I rowsort
SELECT ALL - + col1 + col1 + + col2 * + col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL + col2 * - 34 + - ( - col2 ) FROM tab0 cor0
----
-1089
-2706
-33
query I rowsort
SELECT ALL + col0 * 45 FROM tab0 AS cor0
----
1080
1575
4005
query I rowsort
SELECT + col1 * - 17 - ( - col0 ) FROM tab0 AS cor0
----
-1438
-1458
-1614
query I rowsort
SELECT ALL col1 * 76 AS col2 FROM tab1 AS cor0
----
1976
760
988
query I rowsort
SELECT + col2 + - ( + cor0.col2 + - col0 ) AS col2 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT col1 * - 3 AS col0 FROM tab1 AS cor0
----
-30
-39
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5481
SELECT + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5481
SELECT + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 19 + col0 * col1 FROM tab2 AS cor0
----
1362
236
4621
query I rowsort
SELECT cor0.col2 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 95 ) col1 FROM tab1 AS cor0
----
-95
-95
-95
query I rowsort
SELECT ALL - - 10 + col1 * + col1 AS col1 FROM tab0 AS cor0
----
7406
8291
9419
query I rowsort
SELECT - col0 * 21 + + col1 FROM tab1
----
-1334
-1667
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 26 - + col2 col1 FROM tab1 AS cor0
----
-122
-80
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 + 37 * - col2 col0 FROM tab1 AS cor0
----
-2024
-2119
-3565
query I rowsort
SELECT ALL - + 75 FROM tab1 AS cor0
----
-75
-75
-75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 + col2 col2 FROM tab0 AS cor0
----
125
44
76
query I rowsort
SELECT DISTINCT + + 84 * col2 * - col1 + + col2 AS col0 FROM tab2 AS cor0
----
-128830
-54226
-70281
query I rowsort
SELECT DISTINCT col0 * col2 * + ( col0 ) + tab2.col0 + + 86 * col1 AS col0 FROM tab2
----
163336
238699
3996
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 + tab1.col0 * 87 * - 10 + col2 col0 FROM tab1
----
-2516
-55583
-69464
query I rowsort
SELECT ( + cor0.col2 ) AS col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT - col2 * col1 - 87 AS col2 FROM tab2 AS cor0
----
-1621
-733
-924
onlyif mysql # use DIV operator for integer division
query I rowsort label-5496
SELECT DISTINCT - col2 DIV col0 + 79 DIV col0 FROM tab2 AS cor0
----
1
8
skipif mysql # not compatible
query I rowsort label-5496
SELECT DISTINCT - col2 / col0 + 79 / col0 FROM tab2 AS cor0
----
1
8
query I rowsort
SELECT DISTINCT + 25 * - col1 + col0 * cor0.col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-638
3910
6155
query I rowsort
SELECT - 87 + + col0 FROM tab2 AS cor0
----
-8
-80
-9
query I rowsort
SELECT DISTINCT + col1 * col0 + col2 FROM tab0 AS cor0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-5500
SELECT + col2 DIV 7 AS col1 FROM tab0 AS cor0
----
0
11
4
skipif mysql # not compatible
query I rowsort label-5500
SELECT + col2 / 7 AS col1 FROM tab0 AS cor0
----
0
11
4
query I rowsort
SELECT DISTINCT - - col1 * 72 * - 71 AS col2 FROM tab1 AS cor0
----
-132912
-51120
-66456
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col2 col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - cor0.col0 * - 81 AS col0 FROM tab0 cor0
----
1944
2835
7209
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 + - cor0.col0 * col2 col2 FROM tab0 AS cor0
----
-15397
-2856
-3430
query I rowsort
SELECT DISTINCT 21 * col1 + - 61 + + col1 * + col1 FROM tab1
----
1161
249
381
query I rowsort
SELECT DISTINCT 56 * + col1 + + 85 AS col0 FROM tab1
----
1541
645
813
query I rowsort
SELECT ( + col0 * - col2 ) + 93 FROM tab0
----
-699
-7205
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-5508
SELECT tab2.col0 + col2 + - 80 DIV + 52 col2 FROM tab2
----
103
116
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5508
SELECT tab2.col0 + col2 + - 80 / + 52 col2 FROM tab2
----
103
116
33
query I rowsort
SELECT + col0 * col2 + - col0 AS col1 FROM tab0
----
0
7209
768
query I rowsort
SELECT - 9 + tab0.col2 AS col0 FROM tab0
----
-8
24
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-5511
SELECT col1 DIV + tab0.col1 + - col1 - - col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5511
SELECT col1 / + tab0.col1 + - col1 - - col1 FROM tab0
----
1
1
1
query I rowsort
SELECT ( - col1 * - col1 ) AS col2 FROM tab1
----
100
169
676
query I rowsort
SELECT ALL - 8 * col1 * ( - tab1.col1 ) - col1 FROM tab1
----
1339
5382
790
query I rowsort
SELECT - col0 * + col2 + - 0 * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - col2 * + col1 + + 87 * + col0 * - cor0.col0 + col1 * col0 FROM tab2 AS cor0
----
-4883
-526240
-542270
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5516
SELECT + - col2 - + CAST( + 8 AS SIGNED ) FROM tab2 AS cor0
----
-34
-35
-46
skipif mysql # not compatible
query I rowsort label-5516
SELECT + - col2 - + CAST ( + 8 AS INTEGER ) FROM tab2 AS cor0
----
-34
-35
-46
query I rowsort
SELECT + col2 - + 85 AS col0 FROM tab0 AS cor0
----
-3
-52
-84
query I rowsort
SELECT - + col1 - 62 * cor0.col1 FROM tab2 AS cor0
----
-1071
-1953
-3717
query I rowsort
SELECT ALL + col2 * 61 + + col2 * tab0.col2 AS col0 FROM tab0
----
11726
3102
62
query I rowsort
SELECT tab0.col0 + + 75 AS col1 FROM tab0
----
110
164
99
query I rowsort
SELECT + tab2.col1 + col2 + ( - col0 ) AS col1 FROM tab2
----
-24
51
7
query I rowsort
SELECT - - 89 + 41 + + col0 FROM tab0 AS cor0
----
154
165
219
query I rowsort
SELECT DISTINCT col1 * + 22 FROM tab0
----
1892
2002
2134
query I rowsort
SELECT 15 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
query I rowsort
SELECT ALL 39 AS col0 FROM tab1
----
39
39
39
query I rowsort
SELECT DISTINCT + ( ( - col1 ) + 19 ) FROM tab2
----
-12
-40
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 * col0 col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT 14 * col1 AS col2 FROM tab2 AS cor0
----
238
434
826
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 * + ( col2 ) FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT ALL - + 75 + - cor0.col2 FROM tab2 AS cor0
----
-101
-102
-113
query I rowsort
SELECT ALL + - 78 AS col2 FROM tab1 AS cor0
----
-78
-78
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col2 col0 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + col1 + + 78 col0 FROM tab2 AS cor0
----
1612
724
915
query I rowsort
SELECT ALL - 90 * ( col1 + + ( - col2 ) ) * - col0 AS col1 FROM tab0
----
114480
302400
72090
query I rowsort
SELECT DISTINCT - 92 FROM tab0, tab0 cor0
----
-92
query I rowsort
SELECT 64 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5537
SELECT - CAST( NULL AS SIGNED ) * 91 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5537
SELECT - CAST ( NULL AS INTEGER ) * 91 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5538
SELECT CAST( NULL AS SIGNED ) + col2 * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5538
SELECT CAST ( NULL AS INTEGER ) + col2 * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + + cor0.col2 * - col0 FROM tab1 cor0
----
-136
-3638
-7667
query I rowsort
SELECT - col2 * + 34 AS col2 FROM tab1 AS cor0
----
-1836
-1938
-3264
onlyif mysql # use DIV operator for integer division
query I rowsort label-5541
SELECT + 88 DIV - 71 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5541
SELECT + 88 / - 71 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT 76 * col0 AS col1 FROM tab0 AS cor0
----
1824
2660
6764
query I rowsort
SELECT + cor0.col1 AS col0 FROM tab1, tab2 cor0, tab1 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT - col1 * + col0 - col1 * col0 FROM tab1 AS cor0
----
-1280
-156
-2080
query I rowsort
SELECT - ( - col1 ) * col1 * + 84 FROM tab1 AS cor0
----
14196
56784
8400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * + col0 * 72 col2 FROM tab2 AS cor0
----
30744
342576
346968
query I rowsort
SELECT - - col1 * col1 + + col2 AS col1 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT 4 * + col2 + + 34 - + col1 * + col2 FROM tab0 AS cor0
----
-2672
-59
-7100
query I rowsort
SELECT - + 26 * col2 + col0 FROM tab1 AS cor0
----
-1401
-1418
-2416
query I rowsort
SELECT DISTINCT + - 94 FROM tab2 AS cor0
----
-94
query I rowsort
SELECT ALL 65 AS col1 FROM tab0 cor0
----
65
65
65
query I rowsort
SELECT ALL - col1 * col2 * + col2 FROM tab1 cor0
----
-119808
-32490
-75816
query I rowsort
SELECT + - col0 * - 87 * col0 AS col0 FROM tab2 AS cor0
----
4263
529308
542967
query I rowsort
SELECT + col0 * - 31 AS col0 FROM tab0 AS cor0
----
-1085
-2759
-744
onlyif mysql # use DIV operator for integer division
query I rowsort label-5555
SELECT + - col1 * col0 DIV + 62 FROM tab0 AS cor0
----
-130
-33
-54
skipif mysql # not compatible
query I rowsort label-5555
SELECT + - col1 * col0 / + 62 FROM tab0 AS cor0
----
-130
-33
-54
query I rowsort
SELECT DISTINCT + 96 * - tab0.col1 FROM tab0
----
-8256
-8736
-9312
query I rowsort
SELECT + - ( ( col2 ) ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + + 42 * - cor0.col1 + - cor0.col0 FROM tab1 AS cor0
----
-1095
-484
-626
query I rowsort
SELECT - 15 AS col0 FROM tab1 cor0
----
-15
-15
-15
query I rowsort
SELECT DISTINCT - - ( col0 ) + - cor0.col2 * ( 71 ) AS col0 FROM tab2 cor0
----
-1768
-1910
-2619
query I rowsort
SELECT DISTINCT + ( - col1 ) + - col0 + + col0 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - ( - col2 ) + col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT - + ( col2 ) * - col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL 6 * - cor0.col2 FROM tab2 AS cor0
----
-156
-162
-228
query I rowsort
SELECT DISTINCT - 31 + col1 * col0 AS col1 FROM tab0 AS cor0
----
2033
3364
8068
query I rowsort
SELECT ALL + col2 + - cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL 79 + tab1.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 64cd424bdcae28a63ef41eb19d10e1c0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5568
SELECT + tab0.col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5568
SELECT + tab0.col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) + col2 AS col2 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT - col1 + + col1 * col0 AS col1 FROM tab0
----
1978
3298
8008
query I rowsort
SELECT - col1 - ( col1 ) FROM tab2
----
-118
-34
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5572
SELECT - - ( col1 ) DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5572
SELECT - - ( col1 ) / - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5573
SELECT - ( + ( col2 ) ) DIV + ( + col1 * - col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5573
SELECT - ( + ( col2 ) ) / + ( + col1 * - col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + ( 41 ) + - col1 FROM tab2 AS cor0
----
-18
10
24
query I rowsort
SELECT ALL - col1 * - ( col2 + col0 ) AS col1 FROM tab1 AS cor0
----
1210
1482
2288
query I rowsort
SELECT DISTINCT - - col2 + 31 FROM tab2 AS cor0
----
57
58
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5577
SELECT ALL - col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL - col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 * col1 + - col2 FROM tab2
----
-327
-3507
-988
query I rowsort
SELECT ALL - + col2 + 5 FROM tab2 AS cor0
----
-21
-22
-33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5580
SELECT DISTINCT - - col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT - - col0 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT col0 + - 4 * + 64 FROM tab1 AS cor0
----
-176
-192
-253
query I rowsort
SELECT + cor0.col2 * cor0.col1 * + col0 + + col0 FROM tab1 AS cor0
----
36544
4215
99920
query I rowsort
SELECT + col1 + 80 FROM tab0 AS cor0
----
166
171
177
query I rowsort
SELECT + + col0 + - 82 + - col1 AS col2 FROM tab0 AS cor0
----
-144
-144
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-5585
SELECT DISTINCT col0 DIV - CAST( 68 AS SIGNED ) + - col0 col2 FROM tab0 AS cor0
----
-24
-35
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5585
SELECT DISTINCT col0 / - CAST ( 68 AS INTEGER ) + - col0 col2 FROM tab0 AS cor0
----
-24
-35
-90
query I rowsort
SELECT + + cor0.col1 * - col1 + + 14 FROM tab1 AS cor0
----
-155
-662
-86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5587
SELECT DISTINCT 25 * col0 * + ( col0 ) + - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT 25 * col0 * + ( col0 ) + - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
query I rowsort
SELECT col0 * + col1 + - 42 + - 31 FROM tab0
----
1991
3322
8026
query I rowsort
SELECT ALL - 81 * - 39 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 07a3cf42abb2acc2bc136b8f7c8d3c46
query I rowsort
SELECT ALL 81 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
query I rowsort
SELECT col2 * - cor0.col2 + 70 * col1 AS col0 FROM tab0 AS cor0
----
-354
4931
6789
query I rowsort
SELECT DISTINCT + col1 + - col2 * - col0 AS col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL + + col2 * 38 FROM tab1 AS cor0
----
2052
2166
3648
query I rowsort
SELECT + cor0.col2 * - ( + col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
query I rowsort
SELECT + col2 - col0 * - 80 FROM tab2 AS cor0
----
587
6266
6358
onlyif mysql # use DIV operator for integer division
query I rowsort label-5597
SELECT DISTINCT - col2 DIV col0 + - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-111
-132
-180
skipif mysql # not compatible
query I rowsort label-5597
SELECT DISTINCT - col2 / col0 + - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-111
-132
-180
query I rowsort
SELECT DISTINCT - + cor0.col1 + - col0 * - col0 AS col2 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT DISTINCT + col2 * - col2 + + col0 AS col2 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT ALL tab2.col1 * + col1 + - col2 AS col0 FROM tab2
----
251
3455
934
query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 NOT IN ( col0 + col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col0 * - col1 + + col1 col2 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT + tab2.col2 + col0 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL col0 * + col0 * - col2 + - tab0.col0 AS col1 FROM tab0
----
-1260
-19032
-649611
query I rowsort
SELECT col2 + col0 * + col2 + + tab1.col2 * col1 FROM tab1
----
1620
4275
9024
onlyif mysql # use DIV operator for integer division
query I rowsort label-5606
SELECT + col0 + col1 * + col1 DIV col1 FROM tab1
----
29
74
93
skipif mysql # not compatible
query I rowsort label-5606
SELECT + col0 + col1 * + col1 / col1 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT + col2 * col2 * + col1 AS col1 FROM tab0 AS cor0
----
611884
93654
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 * 20 col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0fa874976a153df9b23db84ee9e9dbb2
query I rowsort
SELECT DISTINCT + - col0 + + col2 * col2 * 54 FROM tab2 cor0
----
36426
39359
77897
query I rowsort
SELECT + 88 * col0 * col1 AS col1 FROM tab1
----
56320
6864
91520
query I rowsort
SELECT DISTINCT + 41 + col2 * - ( + 52 ) AS col2 FROM tab1 AS cor0
----
-2767
-2923
-4951
query I rowsort
SELECT ALL - - 32 * + col2 + col1 FROM tab2 cor0
----
1233
891
895
query I rowsort
SELECT DISTINCT + - cor0.col2 * col0 - + col1 AS col0 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT + - col1 * - col1 + col0 * col1 FROM tab0 AS cor0
----
12804
16380
9460
query I rowsort
SELECT - cor0.col2 * col2 * - col1 AS col1 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT col2 * - col1 * + 51 FROM tab2 AS cor0
----
-32946
-42687
-78234
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5617
SELECT + - cor0.col2 + col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5617
SELECT + - cor0.col2 + col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5618
SELECT - col2 DIV col0 col1 FROM tab2 cor0
----
-3
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5618
SELECT - col2 / col0 col1 FROM tab2 cor0
----
-3
0
0
query I rowsort
SELECT + col2 * - col1 - - col0 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-788
4550
5595
query I rowsort
SELECT - - col1 * - cor0.col1 + col1 AS col2 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT cor0.col2 * ( + col1 ) * col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT col1 * - col0 - col1 * col1 AS col1 FROM tab1 AS cor0
----
-1209
-740
-754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602
query I rowsort
SELECT cor0.col1 * - 63 AS col1 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to b5715d95609322c67b1b9bc17db7867a
onlyif mysql # use DIV operator for integer division
query I rowsort label-5625
SELECT ALL + - ( col1 ) DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL + - ( col1 ) / + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col1 + + col2 + - col2 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + 61 * + col1 AS col2 FROM tab2 AS cor0
----
1037
1891
3599
query I rowsort
SELECT ALL + + cor1.col2 * cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 cor1, tab1, tab0 AS cor2
----
243 values hashing to 69bd00d891d14e224496ce5d1490ec58
query I rowsort
SELECT + ( cor0.col1 ) * col1 AS col0 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-5630
SELECT DISTINCT - tab0.col0 DIV + tab0.col0 AS col0 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-5630
SELECT DISTINCT - tab0.col0 / + tab0.col0 AS col0 FROM tab0
----
-1
query I rowsort
SELECT DISTINCT - ( col2 * + col2 + + col1 ) FROM tab2
----
-1461
-735
-760
query I rowsort
SELECT col1 * + ( col1 ) * + col2 AS col2 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT + tab2.col0 AS col2 FROM tab2, tab0 cor0
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5634
SELECT CAST( NULL AS SIGNED ) * - 40 * tab1.col1 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5634
SELECT CAST ( NULL AS INTEGER ) * - 40 * tab1.col1 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 * col2 + col1 AS col0 FROM tab2 AS cor0
----
1461
735
760
onlyif mysql # use DIV operator for integer division
query I rowsort label-5636
SELECT - col0 DIV - cor0.col1 AS col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5636
SELECT - col0 / - cor0.col1 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL col1 * col2 + - col1 + cor0.col2 FROM tab2 AS cor0
----
1501
667
833
onlyif mysql # use DIV operator for integer division
query I rowsort label-5638
SELECT ALL - col0 * col2 DIV col1 FROM tab1
----
-364
-590
-6
skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL - col0 * col2 / col1 FROM tab1
----
-364
-590
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col2 * col1 col2 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT - col1 * + tab2.col2 AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT col2 * - ( + tab0.col1 ) FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + + col1 * col0 + cor0.col1 * col1 AS col1 FROM tab1 cor0
----
1209
740
754
query I rowsort
SELECT 11 * + col0 AS col0 FROM tab2
----
77
858
869
query I rowsort
SELECT DISTINCT col0 + - 54 FROM tab0
----
-19
-30
35
query I rowsort
SELECT cor0.col2 + cor0.col1 * - col2 * - col0 FROM tab0 AS cor0
----
3396
664200
68145
query I rowsort
SELECT + 66 + + col1 FROM tab0
----
152
157
163
query I rowsort
SELECT col1 * + col1 * + col1 AS col2 FROM tab2 cor0
----
205379
29791
4913
query I rowsort
SELECT 68 * + col1 * col1 AS col2 FROM tab2 AS cor0
----
19652
236708
65348
query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE col1 <> NULL
----
query I rowsort
SELECT col2 * - col2 + + col1 FROM tab1
----
-2890
-3239
-9203
query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + col2 * col2 <= NULL
----
query I rowsort
SELECT DISTINCT col1 * col2 + - col2 AS col0 FROM tab2
----
1508
608
810
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 + col2 * - col2 NOT IN ( col2 * - tab2.col2 + col1 * - col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 + + col0 * tab1.col2 col2 FROM tab1
----
15360
324
7296
onlyif mysql # use DIV operator for integer division
query I rowsort label-5655
SELECT col2 DIV col1 + col0 AS col2 FROM tab0 cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-5655
SELECT col2 / col1 + col0 AS col2 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE col0 IN ( + col0 + - col2 + cor0.col0 )
----
query I rowsort
SELECT ALL + col2 * col0 * + col2 + + col2 AS col0 FROM tab1
----
207993
737376
8802
query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE ( col1 ) > ( NULL )
----
query I rowsort
SELECT DISTINCT col1 * + col2 * tab0.col2 AS col2 FROM tab0
----
611884
93654
97
query I rowsort
SELECT + col0 FROM tab0 WHERE NOT NULL IN ( col2 + col2 * - col2 )
----
query I rowsort
SELECT DISTINCT - col1 - - col0 * + col1 AS col0 FROM tab2
----
1326
186
4543
query I rowsort
SELECT ALL col0 * - col0 * + col2 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT + col1 * - col0 + col2 FROM tab1 WHERE NOT ( NULL ) >= ( col2 )
----
query I rowsort
SELECT DISTINCT - cor0.col0 * + col2 * col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-5665
SELECT DISTINCT + cor0.col2 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5665
SELECT DISTINCT + cor0.col2 / - col1 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT col0 + col1 * + col1 - + col0 AS col2 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-5667
SELECT + - col1 DIV col0 col2 FROM tab0 AS cor0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5667
SELECT + - col1 / col0 col2 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT col2 - + col0 AS col2 FROM tab1 cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-5669
SELECT + - col2 DIV + cor0.col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-5669
SELECT + - col2 / + cor0.col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT - tab2.col1 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
onlyif mysql # use DIV operator for integer division
query I rowsort label-5671
SELECT ALL + col1 DIV - tab1.col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5671
SELECT ALL + col1 / - tab1.col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + - col1 * - col2 * - col2 AS col0 FROM tab2 AS cor0
----
-22592
-24469
-39806
onlyif mysql # use DIV operator for integer division
query I rowsort label-5673
SELECT + + col2 - + col0 DIV - col1 AS col0 FROM tab1 AS cor0
----
102
54
63
skipif mysql # not compatible
query I rowsort label-5673
SELECT + + col2 - + col0 / - col1 AS col0 FROM tab1 AS cor0
----
102
54
63
query I rowsort
SELECT DISTINCT + + col2 + col0 + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-105
-3527
-7504
onlyif mysql # use DIV operator for integer division
query I rowsort label-5675
SELECT ALL cor0.col1 DIV + col0 AS col2 FROM tab1 cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL cor0.col1 / + col0 AS col2 FROM tab1 cor0
----
0
0
8
query I rowsort
SELECT + cor0.col1 * + col2 * cor0.col2 + cor0.col2 * col1 FROM tab1 AS cor0
----
121056
33060
77220
query I rowsort
SELECT DISTINCT + col1 + col2 * + col0 AS col1 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-5678
SELECT - col1 DIV col0 - col2 * + tab1.col1 AS col2 FROM tab1
----
-1248
-1412
-570
skipif mysql # not compatible
query I rowsort label-5678
SELECT - col1 / col0 - col2 * + tab1.col1 AS col2 FROM tab1
----
-1248
-1412
-570
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5680
SELECT DISTINCT - cor0.col1 DIV cor0.col0 col1 FROM tab1 AS cor0
----
-8
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT - cor0.col1 / cor0.col0 col1 FROM tab1 AS cor0
----
-8
0
query I rowsort
SELECT ALL col1 + + col2 * + tab0.col0 AS col0 FROM tab0
----
132
7389
878
query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) <= + col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 + + col1 + col2 col0 FROM tab1
----
-2836
-3182
-9107
onlyif mysql # use DIV operator for integer division
query I rowsort label-5684
SELECT ALL tab0.col1 * col1 + col0 DIV - col0 FROM tab0
----
7395
8280
9408
skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL tab0.col1 * col1 + col0 / - col0 FROM tab0
----
7395
8280
9408
query I rowsort
SELECT DISTINCT 13 AS col2 FROM tab1 AS cor0
----
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-5686
SELECT 2 DIV col2 FROM tab0 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-5686
SELECT 2 / col2 FROM tab0 AS cor0
----
0
0
2
query I rowsort
SELECT ALL - 64 * col0 AS col0 FROM tab1 cor0
----
-192
-4096
-5120
query I rowsort
SELECT ALL 20 * - col0 AS col1 FROM tab0 AS cor0
----
-1780
-480
-700
onlyif mysql # use DIV operator for integer division
query I rowsort label-5689
SELECT DISTINCT + + col1 * - col0 + + col2 DIV col0 AS col1 FROM tab0 AS cor0
----
-2063
-3395
-8099
skipif mysql # not compatible
query I rowsort label-5689
SELECT DISTINCT + + col1 * - col0 + + col2 / col0 AS col1 FROM tab0 AS cor0
----
-2063
-3395
-8099
query I rowsort
SELECT DISTINCT - + 98 * - 63 FROM tab0 AS cor0
----
6174
onlyif mysql # use DIV operator for integer division
query I rowsort label-5691
SELECT ALL + 93 * ( col1 ) DIV - 42 FROM tab0 AS cor0
----
-190
-201
-214
skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL + 93 * ( col1 ) / - 42 FROM tab0 AS cor0
----
-190
-201
-214
query I rowsort
SELECT ALL 39 * + col0 AS col0 FROM tab1 AS cor0
----
117
2496
3120
query I rowsort
SELECT - cor0.col0 * + col1 * + cor0.col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT + col2 * - 68 AS col1 FROM tab1 AS cor0
----
-3672
-3876
-6528
query I rowsort
SELECT + 76 + col1 FROM tab2 AS cor0
----
107
135
93
query I rowsort
SELECT ALL col1 * 83 * col2 FROM tab2
----
127322
53618
69471
query I rowsort
SELECT - ( - 89 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT ALL + ( 58 ) FROM tab1 cor0
----
58
58
58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5699
SELECT DISTINCT + ( + col1 ) * cor0.col2 + - CAST( - 86 AS SIGNED ) * col2 FROM tab2 AS cor0
----
3159
3770
3914
skipif mysql # not compatible
query I rowsort label-5699
SELECT DISTINCT + ( + col1 ) * cor0.col2 + - CAST ( - 86 AS INTEGER ) * col2 FROM tab2 AS cor0
----
3159
3770
3914
query I rowsort
SELECT ALL 30 + + col0 * - col1 FROM tab1
----
-1010
-48
-610
query I rowsort
SELECT ALL + cor1.col2 * 22 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e3295b171871080f98abf951fa3e401a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col1 col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * - ( + 68 ) * col1 + col2 col1 FROM tab1 AS cor0
----
38817
84960
95526
query I rowsort
SELECT ALL col1 + col0 * - col0 * - cor0.col2 FROM tab1 AS cor0
----
233482
512
614413
query I rowsort
SELECT DISTINCT + ( col2 ) + col2 FROM tab0
----
164
2
66
query I rowsort
SELECT col1 + - ( - col1 ) AS col2 FROM tab0
----
172
182
194
query I rowsort
SELECT DISTINCT col2 * 79 AS col2 FROM tab1 AS cor0
----
4266
4503
7584
query I rowsort
SELECT ALL + col2 + + ( col0 ) * col0 FROM tab2 AS cor0
----
6110
6279
76
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1, tab0 cor2
----
3645 values hashing to 9046c86f4ecdb3416770671e3173d46c
query I rowsort
SELECT ALL col0 * - ( 74 * + col1 ) FROM tab1 AS cor0
----
-47360
-5772
-76960
query I rowsort
SELECT - 18 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5712
SELECT + CAST( NULL AS SIGNED ) * 66 col0 FROM tab2 AS cor0 CROSS JOIN tab2, 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-5712
SELECT + CAST ( NULL AS INTEGER ) * 66 col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ( 74 ) FROM tab2 AS cor0
----
74
74
74
query I rowsort
SELECT ( 25 ) * - col1 AS col2 FROM tab1 AS cor0
----
-250
-325
-650
query I rowsort
SELECT + 25 + col0 AS col2 FROM tab2 AS cor0
----
103
104
32
query I rowsort
SELECT ALL - - 99 * cor0.col0 FROM tab0 AS cor0
----
2376
3465
8811
query I rowsort
SELECT DISTINCT cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + cor0.col2 + 99 FROM tab2, tab2 AS cor0
----
9 values hashing to ab399b070ca2e21b0820d3fb4d3cfd38
query I rowsort
SELECT + cor0.col1 + 57 * - col0 * col1 AS col2 FROM tab1 AS cor0
----
-36470
-4420
-59267
query I rowsort
SELECT col1 + - ( 15 ) AS col0 FROM tab2 AS cor0
----
16
2
44
query I rowsort
SELECT DISTINCT + + col1 - + 17 * - col0 FROM tab0 AS cor0
----
1604
494
692
query I rowsort
SELECT + - col1 * + 63 FROM tab0 AS cor0
----
-5418
-5733
-6111
query I rowsort
SELECT - col1 * + 36 FROM tab1 cor0
----
-360
-468
-936
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5724
SELECT ALL + col0 + - col1 * CAST( col1 AS SIGNED ) FROM tab0
----
-7372
-8192
-9374
skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL + col0 + - col1 * CAST ( col1 AS INTEGER ) FROM tab0
----
-7372
-8192
-9374
query I rowsort
SELECT + cor0.col0 + - ( - cor0.col1 ) * col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT 67 FROM tab2, tab2 cor0, tab2 AS cor1
----
67
query I rowsort
SELECT DISTINCT + col1 * + col1 + - col2 + + col0 FROM tab0
----
7387
8288
9443
query I rowsort
SELECT - 24 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f
onlyif mysql # use DIV operator for integer division
query I rowsort label-5729
SELECT + col2 DIV 34 + - col0 FROM tab2 cor0
----
-7
-78
-78
skipif mysql # not compatible
query I rowsort label-5729
SELECT + col2 / 34 + - col0 FROM tab2 cor0
----
-7
-78
-78
query I rowsort
SELECT DISTINCT col1 + + col0 * + col0 AS col1 FROM tab1
----
35
4106
6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-5731
SELECT ALL + 36 + col1 DIV 99 FROM tab0 AS cor0
----
36
36
36
skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL + 36 + col1 / 99 FROM tab0 AS cor0
----
36
36
36
query I rowsort
SELECT - 2 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to fbbdc69ed4bc9a68f44d1ba867b620b3
query I rowsort
SELECT DISTINCT 80 * - col0 AS col1 FROM tab0 AS cor0
----
-1920
-2800
-7120
query I rowsort
SELECT + cor0.col1 * 90 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 6477b3b9180241fe0e05056bac51d468
onlyif mysql # use DIV operator for integer division
query I rowsort label-5735
SELECT DISTINCT + 29 DIV col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-5735
SELECT DISTINCT + 29 / col1 FROM tab0
----
0
query I rowsort
SELECT - col0 * 23 * + col1 AS col0 FROM tab2
----
-105846
-30889
-4991
onlyif mysql # use DIV operator for integer division
query I rowsort label-5737
SELECT col0 DIV col0 col0 FROM tab2
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5737
SELECT col0 / col0 col0 FROM tab2
----
1
1
1
query I rowsort
SELECT col1 + cor0.col2 * + col2 FROM tab0 AS cor0
----
1175
6815
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5739
SELECT ALL + - col2 DIV + col1 + col1 * + 66 FROM tab0 AS cor0
----
5676
6006
6402
skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL + - col2 / + col1 + col1 * + 66 FROM tab0 AS cor0
----
5676
6006
6402
query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 + col2 * ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-15397
-2856
-3430
onlyif mysql # use DIV operator for integer division
query I rowsort label-5741
SELECT ( + col1 ) * cor0.col1 DIV + 61 - col0 AS col0 FROM tab2 AS cor0
----
-21
-75
8
skipif mysql # not compatible
query I rowsort label-5741
SELECT ( + col1 ) * cor0.col1 / + 61 - col0 AS col0 FROM tab2 AS cor0
----
-21
-75
8
query I rowsort
SELECT - ( cor0.col1 ) - col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT - - col2 * col0 + + col1 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT - 78 FROM tab0, tab0 cor0
----
-78
query I rowsort
SELECT ALL 31 FROM tab2, tab2 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
onlyif mysql # use DIV operator for integer division
query I rowsort label-5746
SELECT 48 DIV 57 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-5746
SELECT 48 / 57 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT + col0 * - 47 - col2 * 42 FROM tab2 AS cor0
----
-1463
-4758
-5309
query I rowsort
SELECT + 21 * 21 + col1 + col2 FROM tab0 AS cor0
----
539
560
614
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5749
SELECT + CAST( - col1 AS SIGNED ) * col2 + - col0 FROM tab2 AS cor0
----
-1612
-725
-844
skipif mysql # not compatible
query I rowsort label-5749
SELECT + CAST ( - col1 AS INTEGER ) * col2 + - col0 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT + ( col2 ) + col0 AS col2 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT col2 + + 18 AS col2 FROM tab0
----
100
19
51
query I rowsort
SELECT ALL - col2 + + 48 * + col0 FROM tab0
----
1119
1679
4190
query I rowsort
SELECT col0 * ( + col1 * - col1 ) + tab0.col1 FROM tab0
----
-177418
-329218
-736918
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5754
SELECT ALL + ( ( + col0 ) * + CAST( NULL AS DECIMAL ) ) - - col2 * col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL + ( ( + col0 ) * + CAST ( NULL AS REAL ) ) - - col2 * col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * + col2 + cor0.col0 FROM tab2 cor0
----
196
2106
3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 * + col1 + - col1 col1 FROM tab2 AS cor0
----
-1416
-408
-744
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5757
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 + col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5757
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 + col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5758
SELECT ALL - ( col2 ) DIV col1 - - col0 col0 FROM tab1 AS cor0
----
1
59
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL - ( col2 ) / col1 - - col0 col0 FROM tab1 AS cor0
----
1
59
73
query I rowsort
SELECT DISTINCT + cor0.col2 + 43 AS col0 FROM tab2 AS cor0
----
69
70
81
query I rowsort
SELECT col2 * col1 + col1 + + col1 AS col0 FROM tab2
----
1652
680
899
query I rowsort
SELECT DISTINCT ( 69 ) + tab0.col2 AS col0 FROM tab0
----
102
151
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 7 + 31 col0 FROM tab0
----
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-5763
SELECT 84 DIV + 73 AS col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5763
SELECT 84 / + 73 AS col0 FROM tab2
----
1
1
1
query I rowsort
SELECT ALL + - cor0.col0 + - col2 * - ( 94 ) AS col2 FROM tab0 AS cor0
----
3078
59
7619
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5765
SELECT + + cor0.col0 * cor0.col0 / CAST( NULL AS SIGNED ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5765
SELECT + + cor0.col0 * cor0.col0 / CAST ( NULL AS INTEGER ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + + cor0.col0 * col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT ALL + col1 * cor0.col2 + - col0 AS col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT DISTINCT - col0 - - col0 FROM tab2 cor0
----
0
query I rowsort
SELECT ALL col1 + + col2 * col1 * + col2 FROM tab2 AS cor0
----
22630
24565
39943
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5770
SELECT DISTINCT + - col2 * + col2 - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-1113
-36
-6813
skipif mysql # not compatible
query I rowsort label-5770
SELECT DISTINCT + - col2 * + col2 - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT - - 16 * col1 + col1 * - col0 * + col2 AS col0 FROM tab2 AS cor0
----
-118708
-50762
-5363
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - 96 ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT - + 26 * col2 + - col2 AS col0 FROM tab1 cor0
----
-1458
-1539
-2592
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5774
SELECT DISTINCT + col1 * col0 - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5774
SELECT DISTINCT + col1 * col0 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
query I rowsort
SELECT - ( cor0.col1 ) - cor0.col0 * col2 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT ALL col1 * col2 * - col2 AS col0 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT + col2 + ( 45 ) * col2 FROM tab2 AS cor0
----
1196
1242
1748
onlyif mysql # use DIV operator for integer division
query I rowsort label-5778
SELECT - col0 DIV - 88 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5778
SELECT - col0 / - 88 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5779
SELECT ALL - - col1 DIV - ( col1 ) FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5779
SELECT ALL - - col1 / - ( col1 ) FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT col1 + cor0.col0 * + 57 FROM tab1 AS cor0
----
197
3658
4573
onlyif mysql # use DIV operator for integer division
query I rowsort label-5781
SELECT DISTINCT - col2 + + ( col2 ) DIV cor0.col2 FROM tab0 cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-5781
SELECT DISTINCT - col2 + + ( col2 ) / cor0.col2 FROM tab0 cor0
----
-32
-81
0
query I rowsort
SELECT ALL col1 * ( 66 ) AS col1 FROM tab1 AS cor0
----
1716
660
858
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 28 col0 FROM tab2 AS cor0
----
-50
-51
21
query I rowsort
SELECT ALL cor0.col2 + 63 AS col1 FROM tab1 cor0
----
117
120
159
query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col0 FROM tab2, tab0 AS cor0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 + ( cor0.col1 ) * col2 * cor0.col0 col1 FROM tab1 AS cor0
----
36422
4154
99782
query I rowsort
SELECT 35 + + col2 AS col2 FROM tab1 AS cor0
----
131
89
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-5788
SELECT DISTINCT ( 38 ) DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-5788
SELECT DISTINCT ( 38 ) / - col0 AS col0 FROM tab0 AS cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 col0 FROM tab2 AS cor0
----
43
43
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col1 FROM tab2, tab1 cor0
----
54
57
96
query I rowsort
SELECT + 87 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 - col0 col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + cor0.col1 * - 51 FROM tab1 AS cor0
----
-1326
-510
-663
query I rowsort
SELECT DISTINCT - 32 AS col0 FROM tab0
----
-32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 col0 FROM tab1
----
68
68
68
query I rowsort
SELECT DISTINCT - 1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-1
query I rowsort
SELECT - + cor0.col2 * 65 + + 75 FROM tab0 AS cor0
----
-2070
-5255
10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5798
SELECT - col2 + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5798
SELECT - col2 + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - ( - 64 ) col0 FROM tab0 AS cor0
----
153
88
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5800
SELECT DISTINCT cor0.col1 + - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-5800
SELECT DISTINCT cor0.col1 + - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL + cor0.col1 + + 57 + 28 * col1 AS col2 FROM tab1 AS cor0
----
347
434
811
query I rowsort
SELECT DISTINCT - cor0.col2 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT + col2 * col0 * - cor0.col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT ALL - col1 * + ( col0 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + col1 * cor0.col1 + - col2 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT + col2 + + col0 + - col2 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - + col2 * + col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5808
SELECT DISTINCT + CAST( col0 AS SIGNED ) * + col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-5808
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * + col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5809
SELECT - - CAST( NULL AS SIGNED ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5809
SELECT - - CAST ( NULL AS INTEGER ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - cor0.col2 * cor0.col0 * col2 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT ALL - - cor0.col1 + + col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + 0 AS col0 FROM tab1 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5813
SELECT + col2 + + col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-5813
SELECT + col2 + + col2 / + col1 AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - cor1.col2 - - tab0.col0 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a6223670b883f5db59a931cbe751f88b
query I rowsort
SELECT + col2 * 7 + + cor0.col0 FROM tab1 AS cor0
----
381
463
752
query I rowsort
SELECT DISTINCT - ( + 87 ) * col2 FROM tab1 cor0
----
-4698
-4959
-8352
onlyif mysql # use DIV operator for integer division
query I rowsort label-5817
SELECT - cor0.col0 DIV - col0 - col2 AS col0 FROM tab2 AS cor0
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-5817
SELECT - cor0.col0 / - col0 - col2 AS col0 FROM tab2 AS cor0
----
-25
-26
-37
query I rowsort
SELECT DISTINCT - ( + 35 ) FROM tab2 AS cor0
----
-35
query I rowsort
SELECT ALL + - ( col1 ) * col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT 35 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT - ( - cor0.col2 ) * ( + col1 ) FROM tab0 AS cor0
----
2838
7462
97
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0 CROSS JOIN tab2, tab2 cor1, tab0 AS cor2
----
3645 values hashing to 35998cdc87c8b13ea047f14c9f5dc8d6
query I rowsort
SELECT - cor0.col1 + col1 + 36 * col0 FROM tab1 AS cor0
----
108
2304
2880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5824
SELECT - 85 + - col0 + CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-23
-23
-83
skipif mysql # not compatible
query I rowsort label-5824
SELECT - 85 + - col0 + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-23
-23
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5825
SELECT col1 + + col1 * - CAST( NULL AS SIGNED ) + col2 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5825
SELECT col1 + + col1 * - CAST ( NULL AS INTEGER ) + col2 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - cor0.col1 * - col0 + + cor0.col1 + - col0 AS col0 FROM tab1 AS cor0
----
-1107
-55
-694
onlyif mysql # use DIV operator for integer division
query I rowsort label-5827
SELECT - col0 DIV - col2 AS col0 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-5827
SELECT - col0 / - col2 AS col0 FROM tab0
----
0
1
35
query I rowsort
SELECT col0 * col2 * - col2 + - 8 AS col1 FROM tab1 AS cor0
----
-207944
-737288
-8756
query I rowsort
SELECT + ( - tab2.col0 ) * 11 * + tab2.col2 FROM tab2
----
-2079
-22308
-33022
query I rowsort
SELECT - 53 * - col2 AS col1 FROM tab1
----
2862
3021
5088
query I rowsort
SELECT ALL - tab1.col1 + - col0 AS col2 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT cor0.col0 * - col1 * - 48 + + 84 * col0 AS col1 FROM tab2 AS cor0
----
11004
227448
71100
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae
query I rowsort
SELECT col1 * + col1 - col2 * + col0 FROM tab2 AS cor0
----
-2713
1453
772
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 53 * col0 col2 FROM tab2
----
2597
322452
330773
query I rowsort
SELECT + 22 * col1 - col1 FROM tab1 AS cor0
----
210
273
546
query I rowsort
SELECT + ( - 65 ) + - col2 FROM tab1 cor0
----
-119
-122
-161
query I rowsort
SELECT + + ( 64 ) * col2 + cor0.col2 * - 8 FROM tab0 cor0
----
1848
4592
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-5839
SELECT ALL - - 16 DIV - col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5839
SELECT ALL - - 16 / - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + + col2 * + col0 + - cor0.col1 AS col1 FROM tab2 cor0
----
158
1969
2985
query I rowsort
SELECT DISTINCT + + cor0.col0 + + 16 * - col0 AS col1 FROM tab1 cor0
----
-1200
-45
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-5842
SELECT + - col0 DIV + ( - col1 ) AS col2 FROM tab2 cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-5842
SELECT + - col0 / + ( - col1 ) AS col2 FROM tab2 cor0
----
0
1
4
query I rowsort
SELECT ALL - - cor0.col1 * 47 AS col2 FROM tab0 AS cor0
----
4042
4277
4559
onlyif mysql # use DIV operator for integer division
query I rowsort label-5844
SELECT col0 * col0 DIV col0 + col0 * - col0 * + col0 FROM tab2 AS cor0
----
-336
-474474
-492960
skipif mysql # not compatible
query I rowsort label-5844
SELECT col0 * col0 / col0 + col0 * - col0 * + col0 FROM tab2 AS cor0
----
-336
-474474
-492960
onlyif mysql # use DIV operator for integer division
query I rowsort label-5845
SELECT - col0 DIV + ( - 14 ) AS col1 FROM tab0 AS cor0
----
1
2
6
skipif mysql # not compatible
query I rowsort label-5845
SELECT - col0 / + ( - 14 ) AS col1 FROM tab0 AS cor0
----
1
2
6
query I rowsort
SELECT - col1 + col0 - - 64 * + col2 AS col2 FROM tab2 cor0
----
1683
1704
2494
onlyif mysql # use DIV operator for integer division
query I rowsort label-5847
SELECT col0 * ( ( + col0 ) ) DIV - col2 + + col0 AS col1 FROM tab0 AS cor0
----
-1190
-7
7
skipif mysql # not compatible
query I rowsort label-5847
SELECT col0 * ( ( + col0 ) ) / - col2 + + col0 AS col1 FROM tab0 AS cor0
----
-1190
-7
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5848
SELECT cor0.col2 * CAST( col2 AS SIGNED ) * - cor0.col1 + - cor0.col2 FROM tab1 AS cor0
----
-119904
-32547
-75870
skipif mysql # not compatible
query I rowsort label-5848
SELECT cor0.col2 * CAST ( col2 AS INTEGER ) * - cor0.col1 + - cor0.col2 FROM tab1 AS cor0
----
-119904
-32547
-75870
query I rowsort
SELECT DISTINCT - col2 - + 20 AS col0 FROM tab2 cor0
----
-46
-47
-58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * 86 col1 FROM tab2 AS cor0
----
-1462
-2666
-5074
query I rowsort
SELECT DISTINCT + + 48 * - col0 AS col2 FROM tab0 AS cor0
----
-1152
-1680
-4272
query I rowsort
SELECT DISTINCT + col1 * 53 AS col2 FROM tab2
----
1643
3127
901
query I rowsort
SELECT ALL + col0 + - 56 * tab0.col2 AS col2 FROM tab0
----
-1824
-21
-4503
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 91 * col1 col1 FROM tab1 AS cor0
----
1183
2366
910
onlyif mysql # use DIV operator for integer division
query I rowsort label-5855
SELECT 95 DIV col2 col2 FROM tab1 AS cor0
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5855
SELECT 95 / col2 col2 FROM tab1 AS cor0
----
0
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5856
SELECT DISTINCT - 34 DIV cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-5856
SELECT DISTINCT - 34 / cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
-1
-2
-3
query I rowsort
SELECT ALL ( - 79 ) FROM tab0
----
-79
-79
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5858
SELECT DISTINCT + ( col1 ) DIV col0 AS col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-5858
SELECT DISTINCT + ( col1 ) / col0 AS col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT ALL 19 * col0 + 29 AS col1 FROM tab2 AS cor0
----
1511
1530
162
onlyif mysql # use DIV operator for integer division
query I rowsort label-5860
SELECT ALL tab0.col1 DIV 34 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
skipif mysql # not compatible
query I rowsort label-5860
SELECT ALL tab0.col1 / 34 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
query I rowsort
SELECT DISTINCT - col1 * + 48 * + cor0.col2 + - col2 FROM tab1 AS cor0
----
-27417
-60000
-67446
query I rowsort
SELECT DISTINCT col1 + col1 * + 30 FROM tab2 AS cor0
----
1829
527
961
query I rowsort
SELECT ALL + col1 * 22 + cor0.col1 * - cor0.col1 FROM tab0 AS cor0
----
-5504
-6279
-7275
query I rowsort
SELECT - col1 + - 27 * col2 FROM tab0 AS cor0
----
-124
-2305
-977
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5865
SELECT ALL col2 - CAST( col2 AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810
skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL col2 - CAST ( col2 AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * cor0.col1 + - col2 col2 FROM tab0 AS cor0
----
7363
8199
9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-5867
SELECT + col0 DIV + 41 - - col0 AS col0 FROM tab2 AS cor0
----
7
79
80
skipif mysql # not compatible
query I rowsort label-5867
SELECT + col0 / + 41 - - col0 AS col0 FROM tab2 AS cor0
----
7
79
80
query I rowsort
SELECT DISTINCT + - col1 * - ( - 66 + col2 ) AS col0 FROM tab0 AS cor0
----
-2838
-6305
1456
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5869
SELECT DISTINCT - col1 + 39 * tab0.col2 * - col0 + - CAST( NULL AS SIGNED ) * col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-5869
SELECT DISTINCT - col1 + 39 * tab0.col2 * - col0 + - CAST ( NULL AS INTEGER ) * col2 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT col0 * 95 + - col2 FROM tab0
----
2247
3324
8373
query I rowsort
SELECT col2 + - ( + tab2.col1 * col1 ) + 71 FROM tab2
----
-180
-3384
-863
query I rowsort
SELECT + col0 * + ( col2 ) * - col1 + col2 AS col2 FROM tab2
----
-119626
-50996
-5832
query I rowsort
SELECT - tab1.col1 + col2 + col2 FROM tab1
----
104
179
82
query I rowsort
SELECT col0 + tab1.col2 + + col1 AS col1 FROM tab1
----
131
189
83
query I rowsort
SELECT DISTINCT tab2.col0 + + ( tab2.col2 * - col0 ) + - col0 FROM tab2
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 22 col1 FROM tab1 AS cor0
----
32
35
48
query I rowsort
SELECT ALL col0 + + 90 FROM tab1 AS cor0
----
154
170
93
query I rowsort
SELECT DISTINCT + tab2.col0 + - 78 * - col1 + tab2.col0 AS col1 FROM tab2
----
1484
2432
4758
query I rowsort
SELECT DISTINCT - 72 + + col1 FROM tab1
----
-46
-59
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 - col0 col0 FROM tab1
----
0
0
0
query I rowsort
SELECT + ( col0 ) - + tab1.col2 AS col0 FROM tab1
----
-16
-51
7
query I rowsort
SELECT 56 + + col1 AS col2 FROM tab0
----
142
147
153
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5883
SELECT ALL - cor0.col2 + col0 * - CAST( NULL AS DECIMAL ) * 55 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL - cor0.col2 + col0 * - CAST ( NULL AS REAL ) * 55 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5884
SELECT CAST( NULL AS SIGNED ) * - ( - col2 + tab2.col0 * - col2 ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5884
SELECT CAST ( NULL AS INTEGER ) * - ( - col2 + tab2.col0 * - col2 ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 * 31 FROM tab2 AS cor0
----
1829
527
961
query I rowsort
SELECT ( col1 ) * col1 + - col0 AS col1 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT ALL - + col2 * + col2 + col1 + col0 AS col0 FROM tab1 AS cor0
----
-2887
-3175
-9123
onlyif mysql # use DIV operator for integer division
query I rowsort label-5888
SELECT DISTINCT col2 DIV - col0 + cor0.col2 FROM tab0 AS cor0
----
1
32
82
skipif mysql # not compatible
query I rowsort label-5888
SELECT DISTINCT col2 / - col0 + cor0.col2 FROM tab0 AS cor0
----
1
32
82
query I rowsort
SELECT ALL 65 AS col1 FROM tab1 cor0
----
65
65
65
query I rowsort
SELECT - - cor0.col1 + col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT 89 * col0 * col0 + + ( + col0 ) FROM tab0 AS cor0
----
109060
51288
705058
query I rowsort
SELECT ALL + col0 + + col2 + - col1 AS col0 FROM tab2 AS cor0
----
100
3
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 + - cor0.col2 * - ( col2 ) col0 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT DISTINCT + - col2 * col0 * + ( col2 ) + + col1 * - ( col0 ) * + col1 + ( - ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-1335534
-203664
-329385
query I rowsort
SELECT ALL col0 + + col1 * ( - col1 ) FROM tab1 AS cor0
----
-36
-673
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5896
SELECT DISTINCT col2 * + col1 + + 63 DIV col2 FROM tab1 AS cor0
----
1248
1405
571
skipif mysql # not compatible
query I rowsort label-5896
SELECT DISTINCT col2 * + col1 + + 63 / col2 FROM tab1 AS cor0
----
1248
1405
571
onlyif mysql # use DIV operator for integer division
query I rowsort label-5897
SELECT ALL + col2 DIV + col0 + - 84 AS col0 FROM tab2 AS cor0
----
-81
-84
-84
skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL + col2 / + col0 + - 84 AS col0 FROM tab2 AS cor0
----
-81
-84
-84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 83 * + col0 + + col0 col1 FROM tab0
----
2940
605823
65760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 + 70 col1 FROM tab2
----
1413
287
4672
query I rowsort
SELECT - 28 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115
query I rowsort
SELECT ALL + + cor0.col2 + 22 * col0 + col0 AS col0 FROM tab2 AS cor0
----
1820
1855
188
query I rowsort
SELECT col2 * col0 * + col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT ALL - ( col2 ) + + col1 * 34 FROM tab2 AS cor0
----
1027
1980
540
query I rowsort
SELECT DISTINCT - - col2 * + ( + col1 ) + - col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL + - cor0.col0 * - 11 FROM tab0 AS cor0
----
264
385
979
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col2 col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - ( cor0.col2 ) * - cor0.col0 + + 94 FROM tab0 AS cor0
----
129
7392
886
query I rowsort
SELECT - + 13 + col0 * col0 FROM tab0 AS cor0
----
1212
563
7908
query I rowsort
SELECT col1 * + cor0.col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + 31 + 93 FROM tab1 AS cor0
----
124
query I rowsort
SELECT + + 82 + - col2 FROM tab0 AS cor0
----
0
49
81
query I rowsort
SELECT DISTINCT ( ( + col1 ) ) * col1 + cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
3585
406
995
query I rowsort
SELECT ALL - col0 * - 49 - + col2 FROM tab0 AS cor0
----
1143
1714
4279
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 * - col2 col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT cor0.col0 - 38 AS col0 FROM tab1, tab2 AS cor0
----
-31
40
41
query I rowsort
SELECT + 5 * col2 AS col2 FROM tab1
----
270
285
480
query I rowsort
SELECT ALL - 62 + + col1 FROM tab2
----
-3
-31
-45
query I rowsort
SELECT ALL + - 95 AS col1 FROM tab1 AS cor0
----
-95
-95
-95
query I rowsort
SELECT - col1 * cor0.col2 * + ( - 50 * col1 ) + col1 AS col1 FROM tab2 AS cor0
----
1297381
4525359
549117
query I rowsort
SELECT ALL - 92 * col2 AS col0 FROM tab2 AS cor0
----
-2392
-2484
-3496
query I rowsort
SELECT + col2 * + ( cor0.col1 ) + + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL + - cor0.col2 + + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 - - ( - ( - col1 ) ) * col1 * - 66 col0 FROM tab2 AS cor0
----
-19091
-229805
-63457
query I rowsort
SELECT ALL ( cor0.col1 ) FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL + - cor0.col1 + ( col1 + + col1 * - col1 ) FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - + col1 + ( col2 ) * col2 * + 37 - + 9 * - cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
34475
38759
59225
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * - ( + 47 ) + col1 * + col1 + col0 col2 FROM tab1 AS cor0
----
-2844
-3511
538
onlyif mysql # use DIV operator for integer division
query I rowsort label-5928
SELECT DISTINCT - col0 * + col2 + - ( col0 ) DIV + 69 - col2 col1 FROM tab0 AS cor0
----
-36
-7381
-825
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5928
SELECT DISTINCT - col0 * + col2 + - ( col0 ) / + 69 - col2 col1 FROM tab0 AS cor0
----
-36
-7381
-825
query I rowsort
SELECT + 24 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT - 0 + col1 * 27 AS col2 FROM tab0
----
2322
2457
2619
onlyif mysql # use DIV operator for integer division
query I rowsort label-5931
SELECT - col0 DIV col0 + + col0 - + cor0.col2 DIV - col0 AS col1 FROM tab2 cor0
----
77
78
9
skipif mysql # not compatible
query I rowsort label-5931
SELECT - col0 / col0 + + col0 - + cor0.col2 / - col0 AS col1 FROM tab2 cor0
----
77
78
9
query I rowsort
SELECT - cor0.col0 + + 32 + cor0.col0 AS col0 FROM tab1 AS cor0
----
32
32
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 56 col0 FROM tab0 AS cor0
----
1344
1960
4984
query I rowsort
SELECT - col1 + 39 * cor0.col2 FROM tab0 AS cor0
----
-58
1201
3107
query I rowsort
SELECT - + col2 + - 8 - + 46 FROM tab2 cor0
----
-80
-81
-92
query I rowsort
SELECT - 85 + - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1333
-1489
-655
query I rowsort
SELECT ALL col0 * - 30 AS col0 FROM tab2
----
-210
-2340
-2370
query I rowsort
SELECT - - cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
onlyif mysql # use DIV operator for integer division
query I rowsort label-5939
SELECT - - 33 + col2 DIV col2 AS col0 FROM tab1 AS cor0
----
34
34
34
skipif mysql # not compatible
query I rowsort label-5939
SELECT - - 33 + col2 / col2 AS col0 FROM tab1 AS cor0
----
34
34
34
query I rowsort
SELECT - 9 + - col0 * col0 AS col1 FROM tab0
----
-1234
-585
-7930
query I rowsort
SELECT + - col0 * - 39 FROM tab1 AS cor0
----
117
2496
3120
query I rowsort
SELECT tab0.col1 * + tab0.col2 + col0 * + tab0.col0 * col0 FROM tab0
----
16662
42972
712431
query I rowsort
SELECT ALL - - 2 + + col2 FROM tab0 AS cor0
----
3
35
84
query I rowsort
SELECT + ( + col2 ) + + col1 AS col1 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT tab1.col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5946
SELECT + - ( 80 ) DIV cor0.col1 FROM tab2 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-5946
SELECT + - ( 80 ) / cor0.col1 FROM tab2 AS cor0
----
-1
-2
-4
query I rowsort
SELECT - 66 * col1 * col0 - - ( + 69 ) FROM tab0
----
-136155
-224001
-534465
query I rowsort
SELECT col1 * - col2 - - col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-5949
SELECT + + col1 + + col2 DIV 3 FROM tab0 AS cor0
----
118
97
97
skipif mysql # not compatible
query I rowsort label-5949
SELECT + + col1 + + col2 / 3 FROM tab0 AS cor0
----
118
97
97
query I rowsort
SELECT - 89 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc
query I rowsort
SELECT DISTINCT + + 68 AS col0 FROM tab1, tab0 AS cor0
----
68
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2, tab1, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT 56 - col1 * 29 AS col0 FROM tab1
----
-234
-321
-698
query I rowsort
SELECT + col1 + col2 + col0 AS col2 FROM tab2
----
134
163
65
query I rowsort
SELECT - - cor0.col1 - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col2 + - col1 + - 5 FROM tab0 AS cor0
----
-103
-124
-178
query I rowsort
SELECT ALL - cor0.col2 * col2 + 42 - + 30 FROM tab1 AS cor0
----
-2904
-3237
-9204
query I rowsort
SELECT col0 + - 34 FROM tab1 AS cor0
----
-31
30
46
query I rowsort
SELECT DISTINCT col0 * col2 * - 62 AS col1 FROM tab1
----
-10044
-226176
-476160
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5960
SELECT - - col2 * + CAST( 29 AS SIGNED ) FROM tab1 AS cor0
----
1566
1653
2784
skipif mysql # not compatible
query I rowsort label-5960
SELECT - - col2 * + CAST ( 29 AS INTEGER ) FROM tab1 AS cor0
----
1566
1653
2784
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5961
SELECT DISTINCT CAST( ( + col0 ) AS SIGNED ) * col2 + + col2 FROM tab2 AS cor0
----
2054
216
3040
skipif mysql # not compatible
query I rowsort label-5961
SELECT DISTINCT CAST ( ( + col0 ) AS INTEGER ) * col2 + + col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT - ( + 30 ) * col2 + ( + col2 ) AS col1 FROM tab0 cor0
----
-2378
-29
-957
query I rowsort
SELECT DISTINCT cor0.col2 - - col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT + - col0 * 81 AS col1 FROM tab0 AS cor0
----
-1944
-2835
-7209
query I rowsort
SELECT ALL ( col0 ) * + col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - col2 * 16 FROM tab2 AS cor0
----
-416
-432
-608
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5967
SELECT + + CAST( NULL AS SIGNED ) * cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5967
SELECT + + CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 - + cor0.col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-5969
SELECT DISTINCT + 18 * col1 DIV + col2 AS col1 FROM tab0 cor0
----
1746
19
46
skipif mysql # not compatible
query I rowsort label-5969
SELECT DISTINCT + 18 * col1 / + col2 AS col1 FROM tab0 cor0
----
1746
19
46
query I rowsort
SELECT DISTINCT + col0 * - ( 45 ) FROM tab0
----
-1080
-1575
-4005
query I rowsort
SELECT ALL + - 39 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-2106
-2223
-3744
query I rowsort
SELECT ALL - col1 + + 33 * + col2 FROM tab1 cor0
----
1756
1871
3155
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) * col0 * 66 col1 FROM tab1 cor0
----
10692
240768
506880
onlyif mysql # use DIV operator for integer division
query I rowsort label-5974
SELECT col0 + - col2 DIV - col1 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-5974
SELECT col0 + - col2 / - col1 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT tab1.col2 + + tab1.col1 * - col1 AS col1 FROM tab1
----
-43
-622
-73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5976
SELECT - - CAST( NULL AS SIGNED ) + col0 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5976
SELECT - - CAST ( NULL AS INTEGER ) + col0 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 4 + - cor0.col1 * col1 FROM tab2 AS cor0
----
-293
-3485
-965
query I rowsort
SELECT DISTINCT - 70 + ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-13
-16
26
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to f1682f477bbed24d681925c633bed9db
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 62 col2 FROM tab1 AS cor0
----
-62
query I rowsort
SELECT ALL cor0.col0 * - 40 AS col2 FROM tab1 AS cor0
----
-120
-2560
-3200
onlyif mysql # use DIV operator for integer division
query I rowsort label-5982
SELECT - + 14 DIV + col2 AS col2 FROM tab0 AS cor0
----
-14
0
0
skipif mysql # not compatible
query I rowsort label-5982
SELECT - + 14 / + col2 AS col2 FROM tab0 AS cor0
----
-14
0
0
query I rowsort
SELECT ALL + - ( 33 ) + - col1 AS col1 FROM tab0 AS cor0
----
-119
-124
-130
query I rowsort
SELECT - 38 + col1 FROM tab1 AS cor0
----
-12
-25
-28
query I rowsort
SELECT DISTINCT - col2 * + 20 * col1 FROM tab2 AS cor0
----
-12920
-16740
-30680
query I rowsort
SELECT DISTINCT col2 * - 28 FROM tab0
----
-2296
-28
-924
query I rowsort
SELECT DISTINCT 31 AS col2 FROM tab1, tab0 cor0
----
31
query I rowsort
SELECT DISTINCT - + col1 * + col2 + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-1798
-5015
-935
onlyif mysql # use DIV operator for integer division
query I rowsort label-5989
SELECT ALL - ( - col0 ) DIV col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5989
SELECT ALL - ( - col0 ) / col0 FROM tab1
----
1
1
1
query I rowsort
SELECT col1 + + 89 AS col0 FROM tab0
----
175
180
186
query I rowsort
SELECT DISTINCT - - col2 * col1 + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT cor0.col1 * col0 + + cor0.col1 * col1 FROM tab2 AS cor0
----
1178
1632
8083
query I rowsort
SELECT + 97 + - tab1.col2 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 474c98eef58f0d304c8b0ac4850a7c9c
onlyif mysql # use DIV operator for integer division
query I rowsort label-5994
SELECT - col1 + - CAST( 64 AS SIGNED ) + + col1 DIV - col2 FROM tab0 AS cor0
----
-152
-156
-258
skipif mysql # not compatible
query I rowsort label-5994
SELECT - col1 + - CAST ( 64 AS INTEGER ) + + col1 / - col2 FROM tab0 AS cor0
----
-152
-156
-258
query I rowsort
SELECT DISTINCT col0 + col2 * - col1 + - col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT col0 * - 87 AS col1 FROM tab1 AS cor0
----
-261
-5568
-6960
query I rowsort
SELECT + - col0 * 79 + - 65 + col0 * 8 AS col2 FROM tab0 AS cor0
----
-1769
-2550
-6384
onlyif mysql # use DIV operator for integer division
query I rowsort label-5998
SELECT DISTINCT ( + col1 ) * 58 + + 97 DIV tab2.col0 FROM tab2
----
1811
3423
987
skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT ( + col1 ) * 58 + + 97 / tab2.col0 FROM tab2
----
1811
3423
987
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5999
SELECT + 52 + col0 - + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5999
SELECT + 52 + col0 - + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + col2 * tab0.col2 FROM tab0
----
1113
36
6813
query I rowsort
SELECT DISTINCT - 73 + - col1 * col2 * col0 AS col1 FROM tab0
----
-3468
-664191
-68185
query I rowsort
SELECT DISTINCT - 58 - + col2 AS col0 FROM tab2
----
-84
-85
-96
query I rowsort
SELECT ALL - ( cor1.col2 ) + + cor0.col1 - 13 * + 88 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 cor1
----
27 values hashing to 1ca430e6b07277ed2698fe74d8ad216a
query I rowsort
SELECT DISTINCT + col0 + - 30 + - cor0.col2 FROM tab1 AS cor0
----
-23
-46
-81
query I rowsort
SELECT DISTINCT - col0 * 59 * + 32 + col2 AS col0 FROM tab0 cor0
----
-167950
-45279
-66079
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6006
SELECT ALL col0 + CAST( cor0.col0 AS SIGNED ) FROM tab1 AS cor0
----
128
160
6
skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL col0 + CAST ( cor0.col0 AS INTEGER ) FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT - 40 + 42 FROM tab2, tab0 AS cor0
----
2
query I rowsort
SELECT + col0 - 23 FROM tab0 AS cor0
----
1
12
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-6009
SELECT ALL col1 DIV - col1 + col1 FROM tab2 cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL col1 / - col1 + col1 FROM tab2 cor0
----
16
30
58
query I rowsort
SELECT ALL - col1 * + col2 + + 15 * + cor0.col2 FROM tab0 AS cor0
----
-2343
-6232
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6011
SELECT + cor0.col2 DIV - col0 + - col1 * col1 AS col0 FROM tab2 cor0
----
-289
-3481
-964
skipif mysql # not compatible
query I rowsort label-6011
SELECT + cor0.col2 / - col0 + - col1 * col1 AS col0 FROM tab2 cor0
----
-289
-3481
-964
query I rowsort
SELECT ALL - col2 + + col1 * col1 AS col1 FROM tab1
----
43
622
73
query I rowsort
SELECT - + col2 + + cor0.col0 - 73 FROM tab2 cor0
----
-21
-32
-93
query I rowsort
SELECT - col1 + col0 - ( cor0.col0 ) * - ( col0 + - cor0.col1 ) FROM tab2 cor0
----
-192
1501
4960
query I rowsort
SELECT DISTINCT - tab2.col1 + + col2 * tab2.col2 * + col0 FROM tab2
----
114059
5072
52669
query I rowsort
SELECT - 74 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6017
SELECT - CAST( col0 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-6017
SELECT - CAST ( col0 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6018
SELECT ALL col2 DIV - ( + col2 ) AS col0 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL col2 / - ( + col2 ) AS col0 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT ALL - cor0.col1 * + 57 FROM tab1, tab1 cor0
----
9 values hashing to b3c8b5d59b492d1f7afa6ee176eab00d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6020
SELECT + col0 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6020
SELECT + col0 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
query I rowsort
SELECT + 23 * col1 AS col2 FROM tab2 AS cor0
----
1357
391
713
query I rowsort
SELECT ( 6 * - col2 ) AS col2 FROM tab0
----
-198
-492
-6
query I rowsort
SELECT - col0 * col2 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT DISTINCT + col0 + cor0.col0 * ( 85 * col2 ) FROM tab2 cor0
----
16072
172458
255249
query I rowsort
SELECT DISTINCT + cor0.col2 * - col1 + - col1 AS col0 FROM tab2 AS cor0
----
-1593
-663
-868
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6027
SELECT ( col2 * - CAST( col2 AS SIGNED ) ) AS col2 FROM tab0
----
-1
-1089
-6724
skipif mysql # not compatible
query I rowsort label-6027
SELECT ( col2 * - CAST ( col2 AS INTEGER ) ) AS col2 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT col0 * tab1.col0 - + 48 FROM tab1
----
-39
4048
6352
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 + - col1 col0 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT DISTINCT col1 - - col1 * ( col1 * + 1 ) FROM tab0
----
7482
8372
9506
query I rowsort
SELECT ALL + col1 * 41 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
1063
346
453
query I rowsort
SELECT - cor0.col0 * cor0.col1 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 09a48fec24dd5ded01e53ec00cd6a7a1
query I rowsort
SELECT col1 * col1 + + cor0.col0 * + col1 + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1907
3076
8759
onlyif mysql # use DIV operator for integer division
query I rowsort label-6034
SELECT - 2 * + col0 * cor0.col0 + col2 DIV - cor0.col2 FROM tab0 AS cor0
----
-1153
-15843
-2451
skipif mysql # not compatible
query I rowsort label-6034
SELECT - 2 * + col0 * cor0.col0 + col2 / - cor0.col2 FROM tab0 AS cor0
----
-1153
-15843
-2451
query I rowsort
SELECT + cor0.col0 * - 66 + + col2 AS col0 FROM tab2 AS cor0
----
-435
-5122
-5176
query I rowsort
SELECT + 1 * col0 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 45 ) col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 col1 FROM tab2, tab1 cor0
----
19
query I rowsort
SELECT ALL - ( - col0 ) * - col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT - 56 * + col2 AS col2 FROM tab2 AS cor0
----
-1456
-1512
-2128
query I rowsort
SELECT ALL + cor0.col1 + + col1 * col2 FROM tab1 cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-6042
SELECT ( + col0 ) DIV col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6042
SELECT ( + col0 ) / col0 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( col0 ) ) + cor0.col1 col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - col1 * - col1 + col2 AS col1 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT ALL - col1 + 56 * - col2 FROM tab1 AS cor0
----
-3050
-3202
-5389
onlyif mysql # use DIV operator for integer division
query I rowsort label-6046
SELECT DISTINCT - 67 DIV - col2 + col0 * + ( - 51 ) AS col0 FROM tab1 AS cor0
----
-152
-3263
-4080
skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT - 67 / - col2 + col0 * + ( - 51 ) AS col0 FROM tab1 AS cor0
----
-152
-3263
-4080
onlyif mysql # use DIV operator for integer division
query I rowsort label-6047
SELECT - - 24 + - col1 DIV - col0 AS col1 FROM tab0 AS cor0
----
25
26
27
skipif mysql # not compatible
query I rowsort label-6047
SELECT - - 24 + - col1 / - col0 AS col1 FROM tab0 AS cor0
----
25
26
27
query I rowsort
SELECT ALL col0 * 66 + col2 FROM tab2 AS cor0
----
489
5174
5252
query I rowsort
SELECT ALL + col2 * + ( - col2 * col1 ) FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT + cor0.col1 + - cor0.col0 * + col0 * col0 AS col2 FROM tab2 AS cor0
----
-312
-474493
-493022
query I rowsort
SELECT - 68 + - 27 * + col0 AS col2 FROM tab1
----
-149
-1796
-2228
query I rowsort
SELECT + col0 * - 16 AS col0 FROM tab2 AS cor0
----
-112
-1248
-1264
onlyif mysql # use DIV operator for integer division
query I rowsort label-6053
SELECT ALL - 21 + ( col2 ) DIV col0 FROM tab2 AS cor0
----
-18
-21
-21
skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL - 21 + ( col2 ) / col0 FROM tab2 AS cor0
----
-18
-21
-21
query I rowsort
SELECT ALL - ( + tab1.col0 ) AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT DISTINCT - col2 + 50 AS col0 FROM tab0 AS cor0
----
-32
17
49
query I rowsort
SELECT DISTINCT - tab1.col2 * + 48 AS col0 FROM tab1, tab2 AS cor0
----
-2592
-2736
-4608
query I rowsort
SELECT 89 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad
query I rowsort
SELECT - col0 + - ( + col0 + col2 ) FROM tab2
----
-182
-196
-41
query I rowsort
SELECT col0 + + col2 * tab0.col0 FROM tab0
----
70
7387
816
query I rowsort
SELECT ALL col2 * - ( + tab1.col0 ) AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - col2 * - ( col2 ) * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT ALL - col0 + - ( col2 ) FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL + - col0 + - cor0.col1 * - 66 AS col1 FROM tab1 AS cor0
----
1713
596
778
query I rowsort
SELECT - - col0 * + col1 + - col0 * col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * - 0 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - col0 + col0 * col0 FROM tab1
----
4032
6
6320
query I rowsort
SELECT cor1.col0 * cor1.col0 * cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 900516f8d8bec83cb00ef2af42bfcf00
query I rowsort
SELECT DISTINCT - cor0.col2 * ( 14 ) FROM tab0 AS cor0
----
-1148
-14
-462
query I rowsort
SELECT col2 * + col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT - - col0 + - 21 * - 60 FROM tab0 AS cor0
----
1284
1295
1349
query I rowsort
SELECT - col2 * + cor0.col1 * - ( col0 * cor0.col1 ) FROM tab1 AS cor0
----
109512
1297920
364800
query I rowsort
SELECT ALL + cor0.col2 + ( col2 ) AS col1 FROM tab0 AS cor0
----
164
2
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6073
SELECT tab0.col0 + - CAST( - col0 AS SIGNED ) + + col0 FROM tab0
----
105
267
72
skipif mysql # not compatible
query I rowsort label-6073
SELECT tab0.col0 + - CAST ( - col0 AS INTEGER ) + + col0 FROM tab0
----
105
267
72
query I rowsort
SELECT ALL + cor0.col2 * - col1 - - col0 * col2 * + col2 FROM tab1 AS cor0
----
207366
7344
736032
query I rowsort
SELECT ALL - 19 * 58 * cor0.col1 FROM tab2 AS cor0
----
-18734
-34162
-65018
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col0 ) col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL 58 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT ALL + + col2 * col2 + col0 FROM tab1 AS cor0
----
2919
3313
9296
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - 11 AS REAL ) * + col2 AS col0 FROM tab1 AS cor0
----
-1056
-594
-627
query I rowsort
SELECT ALL - col2 + 31 FROM tab2 AS cor0
----
-7
4
5
query I rowsort
SELECT + + ( cor0.col1 ) * col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-6082
SELECT + 87 * + cor0.col2 + 95 * 84 - - cor0.col0 DIV + 2 FROM tab2, tab1 cor0
----
9 values hashing to ccf9839682942869ac778458edeeb4cb
skipif mysql # not compatible
query I rowsort label-6082
SELECT + 87 * + cor0.col2 + 95 * 84 - - cor0.col0 / + 2 FROM tab2, tab1 cor0
----
9 values hashing to ccf9839682942869ac778458edeeb4cb
query I rowsort
SELECT 93 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT - 44 + col1 FROM tab0 AS cor0
----
42
47
53
query I rowsort
SELECT 48 + cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to a7a60230f8b4d424b3bff16920003b45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col0 col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT col2 * col0 - col1 AS col1 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT DISTINCT - cor0.col0 + col0 * cor0.col2 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT - 27 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0259a67676b131a4843853be4811b775
query I rowsort
SELECT + 25 * col2 AS col0 FROM tab0
----
2050
25
825
query I rowsort
SELECT ALL cor0.col0 + + 2 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 5f3a7140bcecd8bbe7958b334a07ccfa
query I rowsort
SELECT ALL + - ( + cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - col2 * - col2 + col1 * cor0.col2 FROM tab1 AS cor0
----
10464
3819
4320
query I rowsort
SELECT - + col0 - + col2 AS col1 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT ALL col0 * col2 * 64 FROM tab2 AS cor0
----
12096
129792
192128
onlyif mysql # use DIV operator for integer division
query I rowsort label-6096
SELECT ALL - col1 DIV + col0 + col0 FROM tab2 AS cor0
----
3
78
79
skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL - col1 / + col0 + col0 FROM tab2 AS cor0
----
3
78
79
query I rowsort
SELECT ALL + + cor0.col2 * 24 + 83 * + col0 AS col2 FROM tab1 AS cor0
----
1545
6680
8944
query I rowsort
SELECT - col2 + cor0.col1 * col1 AS col2 FROM tab1 cor0
----
43
622
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6099
SELECT ALL col2 + col2 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL col2 + col2 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 91 + - col0 AS col1 FROM tab2
----
12
13
84
query I rowsort
SELECT - tab0.col0 * col2 + col0 + col0 FROM tab0
----
-7120
-744
35
query I rowsort
SELECT 38 * col0 FROM tab2
----
266
2964
3002
query I rowsort
SELECT DISTINCT col1 * + col1 + col2 AS col0 FROM tab1
----
157
265
730
query I rowsort
SELECT + 84 + - col2 FROM tab2
----
46
57
58
query I rowsort
SELECT DISTINCT col1 - tab1.col2 * ( col1 ) FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT - 43 * - col2 FROM tab0
----
1419
3526
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 + col0 + 9 col0 FROM tab0
----
22
33
87
query I rowsort
SELECT - - col1 * - 19 FROM tab2 AS cor0
----
-1121
-323
-589
query I rowsort
SELECT - 94 FROM tab2, tab2 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e
query I rowsort
SELECT DISTINCT - cor0.col2 * 6 AS col1 FROM tab2 AS cor0
----
-156
-162
-228
query I rowsort
SELECT + ( + 66 ) * + col0 AS col2 FROM tab0 AS cor0
----
1584
2310
5874
query I rowsort
SELECT ( - col1 ) * + col1 * + col1 AS col2 FROM tab2 AS cor0
----
-205379
-29791
-4913
query I rowsort
SELECT - 35 * col1 * + col1 - + col0 FROM tab1 AS cor0
----
-23663
-3564
-5995
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6114
SELECT + col1 + col2 * + CAST( col0 + + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
14687
167
1670
skipif mysql # not compatible
query I rowsort label-6114
SELECT + col1 + col2 * + CAST ( col0 + + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
14687
167
1670
query I rowsort
SELECT col0 + col1 * ( - cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT 25 + col0 FROM tab1 AS cor0
----
105
28
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6117
SELECT - - 21 DIV col1 + col2 * - 54 col1 FROM tab1 cor0
----
-2916
-3076
-5183
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6117
SELECT - - 21 / col1 + col2 * - 54 col1 FROM tab1 cor0
----
-2916
-3076
-5183
onlyif mysql # use DIV operator for integer division
query I rowsort label-6118
SELECT + col1 DIV cor0.col1 - - col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-6118
SELECT + col1 / cor0.col1 - - col1 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT ALL + col1 * tab2.col0 + + col1 + ( col0 ) AS col0 FROM tab2
----
1439
255
4739
query I rowsort
SELECT + - col1 + + 35 + + 85 * + col2 AS col2 FROM tab1 AS cor0
----
4599
4870
8182
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + ( col2 ) col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT - + col1 * - ( - col1 ) AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL - + col0 * 27 AS col1 FROM tab2 AS cor0
----
-189
-2106
-2133
query I rowsort
SELECT + - col2 + 30 * - col2 * col0 FROM tab2 AS cor0
----
-5697
-60866
-90098
query I rowsort
SELECT ALL + col1 * + cor0.col2 AS col2 FROM tab1 cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6126
SELECT + col0 * + tab2.col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6126
SELECT + col0 * + tab2.col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 91 + - tab0.col2 AS col0 FROM tab0
----
-124
-173
-92
query I rowsort
SELECT ALL 81 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - cor0.col2 * col2 col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT DISTINCT - 47 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2, tab0 AS cor3
----
-47
query I rowsort
SELECT + 80 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
onlyif mysql # use DIV operator for integer division
query I rowsort label-6132
SELECT DISTINCT + col2 + col2 DIV - col2 FROM tab1 cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-6132
SELECT DISTINCT + col2 + col2 / - col2 FROM tab1 cor0
----
53
56
95
query I rowsort
SELECT + 14 AS col0 FROM tab2 cor0
----
14
14
14
query I rowsort
SELECT ALL - - 73 + cor0.col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1175
-1331
-497
query I rowsort
SELECT ALL + 58 * - tab1.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 602e314951d1f9e90efb50f7e8809d97
query I rowsort
SELECT - cor1.col2 FROM tab0, tab0 cor0, tab2 cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT - 39 * col0 * + col0 FROM tab1 AS cor0
----
-159744
-249600
-351
query I rowsort
SELECT + 37 * - col0 FROM tab1 AS cor0
----
-111
-2368
-2960
query I rowsort
SELECT + cor0.col2 + + col0 * col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT - 21 AS col0 FROM tab0
----
-21
query I rowsort
SELECT 53 + cor1.col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 6de72cfdc7ce4f6b03b2c8d379f7cb8e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - cor0.col1 col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + - 30 + + col1 - + 20 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-1719
-424
-633
query I rowsort
SELECT + + 58 * - cor0.col2 + col1 - 92 * - col0 FROM tab0 AS cor0
----
3259
3523
380
query I rowsort
SELECT - col2 * 5 + + col0 AS col1 FROM tab0 AS cor0
----
-141
-321
30
query I rowsort
SELECT - - col2 + 95 FROM tab1 AS cor0
----
149
152
191
query I rowsort
SELECT col0 * + 33 AS col1 FROM tab2
----
231
2574
2607
query I rowsort
SELECT ALL - 36 * col2 * - 75 FROM tab1 cor0
----
145800
153900
259200
query I rowsort
SELECT DISTINCT - - 63 FROM tab0 cor0
----
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6150
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-6150
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL
query I rowsort
SELECT + ( tab0.col2 ) * - 38 AS col0 FROM tab0
----
-1254
-3116
-38
query I rowsort
SELECT DISTINCT + 61 + cor0.col1 AS col1 FROM tab2 cor0
----
120
78
92
query I rowsort
SELECT ALL - 63 * col2 FROM tab0 AS cor0
----
-2079
-5166
-63
query I rowsort
SELECT DISTINCT + - 34 AS col1 FROM tab2 cor0
----
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6155
SELECT col1 + + col0 + col0 DIV col2 col2 FROM tab0 AS cor0
----
110
167
181
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6155
SELECT col1 + + col0 + col0 / col2 col2 FROM tab0 AS cor0
----
110
167
181
query I rowsort
SELECT + col0 + + col1 + + col1 FROM tab2 cor0
----
113
196
69
query I rowsort
SELECT ALL - col1 - - ( - ( - col0 ) ) * - ( + col2 ) FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT 27 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
27
query I rowsort
SELECT + + 5 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d
query I rowsort
SELECT ALL - cor0.col0 * col2 + + col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT + col2 * - col0 + + col1 AS col1 FROM tab0 cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT + col1 + ( + col0 + + cor0.col1 ) FROM tab2 AS cor0
----
113
196
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-6163
SELECT tab0.col0 DIV col0 - - ( col2 ) FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-6163
SELECT tab0.col0 / col0 - - ( col2 ) FROM tab0
----
2
34
83
query I rowsort
SELECT ALL cor0.col2 * + col1 + + cor0.col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT - 73 * 45 - + col2 * 46 AS col0 FROM tab2 AS cor0
----
-4481
-4527
-5033
query I rowsort
SELECT ALL - ( 91 ) * + col2 AS col2 FROM tab1 cor0
----
-4914
-5187
-8736
query I rowsort
SELECT DISTINCT 62 AS col1 FROM tab2, tab2 AS cor0
----
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 col1 FROM tab1, tab0 AS cor0
----
60
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 cor2
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c
query I rowsort
SELECT ( - ( tab1.col2 ) ) + col2 * 99 FROM tab1
----
5292
5586
9408
query I rowsort
SELECT DISTINCT + 26 * 29 * + col0 + - col1 AS col2 FROM tab1
----
2236
48246
60307
query I rowsort
SELECT DISTINCT 89 * - col1 AS col0 FROM tab2
----
-1513
-2759
-5251
onlyif mysql # use DIV operator for integer division
query I rowsort label-6173
SELECT 94 * + col2 + - col2 DIV - col0 AS col2 FROM tab0 AS cor0
----
3103
7708
94
skipif mysql # not compatible
query I rowsort label-6173
SELECT 94 * + col2 + - col2 / - col0 AS col2 FROM tab0 AS cor0
----
3103
7708
94
query I rowsort
SELECT + 18 + + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1462
694
747
onlyif mysql # use DIV operator for integer division
query I rowsort label-6175
SELECT DISTINCT + col2 * + col1 * + col2 + col0 DIV col2 AS col0 FROM tab0
----
132
611885
93654
skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT + col2 * + col1 * + col2 + col0 / col2 AS col0 FROM tab0
----
132
611885
93654
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6176
SELECT CAST( + col0 AS SIGNED ) * + col2 + - 2 FROM tab1
----
160
3646
7678
skipif mysql # not compatible
query I rowsort label-6176
SELECT CAST ( + col0 AS INTEGER ) * + col2 + - 2 FROM tab1
----
160
3646
7678
query I rowsort
SELECT - col1 * - col1 - - tab2.col1 FROM tab2
----
306
3540
992
query I rowsort
SELECT - col2 + + tab1.col0 * + col2 FROM tab1
----
108
3591
7584
query I rowsort
SELECT ALL + tab0.col0 * - 74 AS col1 FROM tab1, tab1 cor0 CROSS JOIN tab0
----
27 values hashing to f11eef2d3c260a3092692393bd4de77d
query I rowsort
SELECT ALL col1 * - cor0.col2 + cor0.col1 + col2 FROM tab1 cor0
----
-1139
-1324
-503
query I rowsort
SELECT 68 + + col1 AS col0 FROM tab1
----
78
81
94
query I rowsort
SELECT + 9 * - col2 + cor0.col2 FROM tab1 AS cor0
----
-432
-456
-768
query I rowsort
SELECT ALL + - col1 + - col0 * + ( - cor0.col0 ) + cor0.col0 * col0 * col2 AS col1 FROM tab2 AS cor0
----
1341
164209
243382
query I rowsort
SELECT cor0.col0 * col0 + - col2 AS col2 FROM tab0 AS cor0
----
1224
543
7839
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6185
SELECT + col0 + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6185
SELECT + col0 + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + + col1 * 47 AS col2 FROM tab2 cor0
----
1484
2799
837
query I rowsort
SELECT DISTINCT 94 FROM tab2, tab1 AS cor0, tab1 cor1
----
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-6188
SELECT DISTINCT - col2 + col0 DIV col0 AS col0 FROM tab0 cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT - col2 + col0 / col0 AS col0 FROM tab0 cor0
----
-32
-81
0
query I rowsort
SELECT ALL - cor0.col2 * + ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT - col0 * - col2 - col0 * 53 AS col0 FROM tab1 AS cor0
----
256
3
3440
query I rowsort
SELECT DISTINCT ( ( col2 ) ) + col0 * col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT + - 38 + - cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
-135
-2876
-7500
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6193
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col1 * + cor0.col1 + col1 / col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6193
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col1 * + cor0.col1 + col1 / col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + + col0 * + 53 - col0 * 40 AS col2 FROM tab0 AS cor0
----
1157
312
455
query I rowsort
SELECT - + col1 * + col2 - col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT ALL 56 * + col1 AS col2 FROM tab1 AS cor0
----
1456
560
728
query I rowsort
SELECT DISTINCT - ( col2 ) + + col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + - ( - col1 ) - col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6199
SELECT DISTINCT + col2 * 0 + cor0.col2 DIV - 56 + + 18 AS col2 FROM tab0 AS cor0
----
17
18
skipif mysql # not compatible
query I rowsort label-6199
SELECT DISTINCT + col2 * 0 + cor0.col2 / - 56 + + 18 AS col2 FROM tab0 AS cor0
----
17
18
query I rowsort
SELECT DISTINCT - + ( - col1 ) + - col0 FROM tab0 cor0
----
2
62
query I rowsort
SELECT DISTINCT + col0 * + col1 - cor0.col2 AS col1 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT ALL - col2 + + col0 * + col0 AS col0 FROM tab0 cor0
----
1224
543
7839
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6203
SELECT ALL - + CAST( NULL AS SIGNED ) + - col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL - + CAST ( NULL AS INTEGER ) + - col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6204
SELECT ALL - col1 * col0 - col2 * 64 DIV col0 AS col2 FROM tab2 AS cor0
----
-1373
-4623
-463
skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL - col1 * col0 - col2 * 64 / col0 AS col2 FROM tab2 AS cor0
----
-1373
-4623
-463
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + col0 col1 FROM tab1 AS cor0
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) - + col1 * col2 col0 FROM tab0 AS cor0
----
-2752
-7371
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6207
SELECT ALL col2 * col1 DIV ( - col0 ) + + cor0.col0 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
-105
137
150
skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL col2 * col1 / ( - col0 ) + + cor0.col0 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
-105
137
150
query I rowsort
SELECT DISTINCT - 23 FROM tab2, tab2 AS cor0, tab0 cor1
----
-23
onlyif mysql # use DIV operator for integer division
query I rowsort label-6209
SELECT ALL - 0 DIV - 77 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-6209
SELECT ALL - 0 / - 77 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL cor0.col1 * + 37 FROM tab2, tab2 AS cor0
----
9 values hashing to 94de0e41710bf3fdbda3e5ce4b23e12d
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 4c0813b2179303fdf58f082d81d6d03c
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab2 cor1, tab2, tab2 AS cor2
----
3645 values hashing to f23c9ebf4a57b11b108cf933fe3c62aa
onlyif mysql # use DIV operator for integer division
query I rowsort label-6213
SELECT - col2 DIV + ( 22 ) FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6213
SELECT - col2 / + ( 22 ) FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - 0 AS col2 FROM tab0, tab0 cor0
----
0
query I rowsort
SELECT 28 * col1 AS col2 FROM tab1 AS cor0
----
280
364
728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6216
SELECT + + CAST( NULL AS SIGNED ) + + col2 * cor0.col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6216
SELECT + + CAST ( NULL AS INTEGER ) + + col2 * cor0.col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + 12 * - col1 - col1 AS col2 FROM tab2 AS cor0
----
187
341
649
onlyif mysql # use DIV operator for integer division
query I rowsort label-6218
SELECT ALL + + 93 DIV col1 FROM tab1 AS cor0
----
3
7
9
skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL + + 93 / col1 FROM tab1 AS cor0
----
3
7
9
query I rowsort
SELECT + col0 * 8 + - col0 FROM tab0 AS cor0
----
168
245
623
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6220
SELECT cor1.col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-6220
SELECT cor1.col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - col0 + - col2 * + 91 * - col0 FROM tab2 AS cor0
----
17192
184470
273103
query I rowsort
SELECT + 90 * - col0 + + col0 AS col0 FROM tab1 AS cor0
----
-267
-5696
-7120
query I rowsort
SELECT ALL - col2 * col1 + col2 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT ALL 78 * + col0 + col2 AS col1 FROM tab0
----
1905
2731
7024
query I rowsort
SELECT ( 69 ) * - col2 AS col1 FROM tab1
----
-3726
-3933
-6624
query I rowsort
SELECT - col0 * - col1 + - cor0.col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT - 74 * col1 AS col0 FROM tab2 AS cor0
----
-1258
-2294
-4366
query I rowsort
SELECT + ( col1 ) * 79 + - col1 AS col1 FROM tab1 AS cor0
----
1014
2028
780
query I rowsort
SELECT DISTINCT ( + col0 ) + ( - tab1.col2 ) FROM tab1
----
-16
-51
7
query I rowsort
SELECT DISTINCT col1 + col2 + col2 FROM tab2
----
111
85
93
query I rowsort
SELECT DISTINCT 74 + col2 AS col2 FROM tab2
----
100
101
112
onlyif mysql # use DIV operator for integer division
query I rowsort label-6232
SELECT DISTINCT 66 DIV col1 col2 FROM tab1 AS cor0
----
2
5
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6232
SELECT DISTINCT 66 / col1 col2 FROM tab1 AS cor0
----
2
5
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-6233
SELECT + + col2 DIV - col2 + 1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6233
SELECT + + col2 / - col2 + 1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 + col1 + + col2 * - col2 FROM tab1 AS cor0
----
-2836
-3182
-9107
onlyif mysql # use DIV operator for integer division
query I rowsort label-6235
SELECT ALL + col1 DIV ( col0 ) + cor0.col1 AS col1 FROM tab0 AS cor0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL + col1 / ( col0 ) + cor0.col1 AS col1 FROM tab0 AS cor0
----
89
92
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col0 col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT col1 + ( + col0 ) AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + col1 * - col0 + 21 * col2 AS col0 FROM tab0 AS cor0
----
-1371
-3374
-6377
onlyif mysql # use DIV operator for integer division
query I rowsort label-6239
SELECT tab0.col0 + + col0 DIV + tab0.col2 AS col1 FROM tab0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-6239
SELECT tab0.col0 + + col0 / + tab0.col2 AS col1 FROM tab0
----
24
70
90
query I rowsort
SELECT + 8 + col0 * 81 FROM tab1
----
251
5192
6488
onlyif mysql # use DIV operator for integer division
query I rowsort label-6241
SELECT col2 + + col0 DIV + col1 FROM tab2 AS cor0
----
27
27
42
skipif mysql # not compatible
query I rowsort label-6241
SELECT col2 + + col0 / + col1 FROM tab2 AS cor0
----
27
27
42
query I rowsort
SELECT - cor0.col0 - - 42 AS col2 FROM tab0 cor0
----
-47
18
7
query I rowsort
SELECT + 85 + + ( cor0.col2 ) * col0 AS col1 FROM tab1 AS cor0
----
247
3733
7765
query I rowsort
SELECT + 27 * - col2 AS col0 FROM tab1 AS cor0
----
-1458
-1539
-2592
query I rowsort
SELECT ( cor0.col2 ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT DISTINCT col2 * 79 + + col1 - tab2.col1 FROM tab2
----
2054
2133
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-6247
SELECT - 81 + ( + col1 ) + col1 * - col1 DIV + col1 FROM tab2
----
-81
-81
-81
skipif mysql # not compatible
query I rowsort label-6247
SELECT - 81 + ( + col1 ) + col1 * - col1 / + col1 FROM tab2
----
-81
-81
-81
query I rowsort
SELECT + col0 * ( 30 ) FROM tab2
----
210
2340
2370
query I rowsort
SELECT DISTINCT - col1 * - col1 + col1 FROM tab0
----
7482
8372
9506
query I rowsort
SELECT + col1 + + col2 + col1 AS col0 FROM tab1
----
106
122
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col1 * ( - col1 ) - + col1 col2 FROM tab2
----
272
3422
930
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6252
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) / col0 - col1 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6252
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) / col0 - col1 AS col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6253
SELECT + col1 - col1 DIV + col1 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-6253
SELECT + col1 - col1 / + col1 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT DISTINCT - cor0.col0 + col0 * col2 * cor0.col2 FROM tab2 AS cor0
----
113997
5096
52650
query I rowsort
SELECT col1 * col2 + + 47 FROM tab1 AS cor0
----
1295
1451
617
query I rowsort
SELECT + col2 + + col2 * col2 + + col1 FROM tab2
----
1499
761
787
query I rowsort
SELECT - ( - 30 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6258
SELECT - 34 DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-34
0
skipif mysql # not compatible
query I rowsort label-6258
SELECT - 34 / col2 AS col0 FROM tab0 AS cor0
----
-1
-34
0
query I rowsort
SELECT DISTINCT + + 63 + col1 * + col2 FROM tab0 AS cor0
----
160
2901
7525
onlyif mysql # use DIV operator for integer division
query I rowsort label-6260
SELECT ALL - cor0.col0 + - ( + col0 ) DIV + CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3
-70
-86
skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL - cor0.col0 + - ( + col0 ) / + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3
-70
-86
query I rowsort
SELECT ALL + col0 + 14 * col0 FROM tab2 AS cor0
----
105
1170
1185
query I rowsort
SELECT - - col1 + - 71 AS col1 FROM tab1 AS cor0
----
-45
-58
-61
query I rowsort
SELECT ALL ( - col2 ) * col0 AS col1 FROM tab2 cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 * + col0 col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT - ( + 15 * col0 ) FROM tab0
----
-1335
-360
-525
query I rowsort
SELECT DISTINCT + col0 * + 57 + - col0 FROM tab2 AS cor0
----
392
4368
4424
query I rowsort
SELECT ALL - cor0.col1 + + col1 - - cor0.col1 AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + ( cor0.col0 ) + col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT ALL - ( col0 ) * col1 + 62 FROM tab2 AS cor0
----
-1281
-155
-4540
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6270
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 35 + + col1 * + 80 - - cor0.col2 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6270
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 35 + + col1 * + 80 - - cor0.col2 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL 75 + + col0 * col0 + col2 AS col1 FROM tab1 AS cor0
----
138
4228
6571
query I rowsort
SELECT DISTINCT + cor0.col2 * col0 * - col2 + col1 * - 0 AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT ALL + + ( - col2 ) + col0 + 44 * + col0 * col0 FROM tab2 AS cor0
----
2136
267748
274645
query I rowsort
SELECT DISTINCT + ( 71 ) AS col0 FROM tab1 AS cor0
----
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-6275
SELECT ALL + ( - col1 ) * col0 + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
-1034
-634
-78
skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL + ( - col1 ) * col0 + col0 / col1 AS col1 FROM tab1 AS cor0
----
-1034
-634
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col1 ) col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - 21 * - col1 FROM tab1 cor0
----
210
273
546
query I rowsort
SELECT + 59 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6279
SELECT - ( col2 ) * + CAST( + col2 AS SIGNED ) * col1 AS col2 FROM tab0 cor0
----
-611884
-93654
-97
skipif mysql # not compatible
query I rowsort label-6279
SELECT - ( col2 ) * + CAST ( + col2 AS INTEGER ) * col1 AS col2 FROM tab0 cor0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT + 65 * - cor0.col2 + 64 * 61 AS col1 FROM tab2 AS cor0
----
1434
2149
2214
onlyif mysql # use DIV operator for integer division
query I rowsort label-6281
SELECT ALL + col1 DIV - col2 col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL + col1 / - col2 col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT cor0.col1 * + col1 + - col0 AS col1 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT ALL - col0 * col1 - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT + col1 * - col2 * col2 AS col2 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT 17 * cor0.col1 AS col1 FROM tab0 AS cor0
----
1462
1547
1649
query I rowsort
SELECT DISTINCT + col2 + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + - col0 * ( cor0.col1 ) + - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT DISTINCT - col0 * col1 + 32 - col2 AS col0 FROM tab1 AS cor0
----
-100
-1104
-665
query I rowsort
SELECT col1 - + 1 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT col1 * - tab1.col1 + col2 * - col2 FROM tab1
----
-3349
-3592
-9385
onlyif mysql # use DIV operator for integer division
query I rowsort label-6291
SELECT ALL - - col0 * 36 + 19 * - col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
1279
3223
883
skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL - - col0 * 36 + 19 * - col0 / - col0 AS col1 FROM tab0 AS cor0
----
1279
3223
883
query I rowsort
SELECT - cor0.col1 + ( 40 ) * - col2 FROM tab0 AS cor0
----
-137
-1406
-3371
query I rowsort
SELECT DISTINCT + col1 - 73 FROM tab0 cor0
----
13
18
24
query I rowsort
SELECT DISTINCT + cor0.col1 + col0 * - 94 FROM tab2 AS cor0
----
-627
-7273
-7409
query I rowsort
SELECT DISTINCT col2 * + cor0.col2 * col0 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT DISTINCT - col1 + - 50 * col2 AS col1 FROM tab0 AS cor0
----
-147
-1736
-4191
query I rowsort
SELECT DISTINCT + cor2.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab2 AS cor2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6298
SELECT + col1 DIV + 88 FROM tab0 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-6298
SELECT + col1 / + 88 FROM tab0 AS cor0
----
0
1
1
query I rowsort
SELECT DISTINCT - + col2 * 97 AS col2 FROM tab2 AS cor0
----
-2522
-2619
-3686
query I rowsort
SELECT DISTINCT - col0 * - 73 - col2 AS col2 FROM tab2 AS cor0
----
484
5668
5729
query I rowsort
SELECT - + cor0.col0 * + col2 * - col0 FROM tab1 AS cor0
----
233472
486
614400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6302
SELECT DISTINCT - col2 * + col1 * CAST( col1 AS SIGNED ) FROM tab2
----
-10982
-25947
-90506
skipif mysql # not compatible
query I rowsort label-6302
SELECT DISTINCT - col2 * + col1 * CAST ( col1 AS INTEGER ) FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT + cor0.col1 * + 10 AS col0 FROM tab0 AS cor0
----
860
910
970
query I rowsort
SELECT + + 90 + col0 * col0 - 95 AS col1 FROM tab1 AS cor0
----
4
4091
6395
query I rowsort
SELECT ALL + col0 * tab2.col1 + 65 FROM tab2
----
1408
282
4667
onlyif mysql # use DIV operator for integer division
query I rowsort label-6306
SELECT DISTINCT - ( + col0 ) + - col1 DIV col1 FROM tab2 AS cor0
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-6306
SELECT DISTINCT - ( + col0 ) + - col1 / col1 FROM tab2 AS cor0
----
-79
-8
-80
query I rowsort
SELECT DISTINCT col1 + - col2 * + 76 AS col1 FROM tab0 AS cor0
----
-2422
-6141
21
query I rowsort
SELECT ALL - 32 * - tab0.col0 FROM tab0
----
1120
2848
768
onlyif mysql # use DIV operator for integer division
query I rowsort label-6309
SELECT - col1 * col0 DIV + 18 FROM tab2 AS cor0
----
-12
-255
-74
skipif mysql # not compatible
query I rowsort label-6309
SELECT - col1 * col0 / + 18 FROM tab2 AS cor0
----
-12
-255
-74
query I rowsort
SELECT - - cor0.col0 + col0 * 27 FROM tab0 AS cor0
----
2492
672
980
query I rowsort
SELECT + ( col2 ) * 92 FROM tab2 cor0
----
2392
2484
3496
query I rowsort
SELECT DISTINCT tab0.col0 * col1 * tab0.col1 FROM tab0
----
177504
329315
737009
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= ( - col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 * tab2.col1 col2 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT ALL col2 * - col0 + tab1.col1 AS col1 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT ALL col1 * col2 FROM tab2 WHERE NOT NULL < NULL
----
query I rowsort
SELECT ALL + col0 FROM tab0 WHERE col2 + + col0 + col2 * - col0 IN ( col0 * col1 * col0 )
----
query I rowsort
SELECT tab0.col2 + + tab0.col0 + + col1 FROM tab0
----
133
143
262
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 * + col2 col1 FROM tab1
----
233472
486
614400
query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 + + col2 * col2 ) IN ( + tab2.col2 + + col1 * - col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT ALL col1 + + col1 * - col0 AS col0 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT cor0.col2 + + 93 AS col1 FROM tab0, tab2 cor0
----
119
120
131
onlyif mysql # use DIV operator for integer division
query I rowsort label-6323
SELECT 52 + col0 DIV + col1 FROM tab1 AS cor0
----
52
58
58
skipif mysql # not compatible
query I rowsort label-6323
SELECT 52 + col0 / + col1 FROM tab1 AS cor0
----
52
58
58
query I rowsort
SELECT + 9 + + col1 + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1317
-177
-4534
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6325
SELECT DISTINCT - - tab2.col1 * + CAST( NULL AS SIGNED ) col1 FROM tab2, tab0, tab0 cor0, tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6325
SELECT DISTINCT - - tab2.col1 * + CAST ( NULL AS INTEGER ) col1 FROM tab2, tab0, tab0 cor0, tab1
----
NULL
query I rowsort
SELECT - col2 * + tab2.col2 * - col2 FROM tab2
----
17576
19683
54872
query I rowsort
SELECT tab1.col0 * col0 * - col0 FROM tab1
----
-262144
-27
-512000
query I rowsort
SELECT DISTINCT - tab1.col1 + tab1.col0 * col2 FROM tab1
----
136
3638
7667
query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 + col2 / col0 ) = NULL
----
query I rowsort
SELECT + col2 * - col1 * col2 FROM tab0
----
-611884
-93654
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6331
SELECT col0 DIV tab2.col0 + col1 AS col0 FROM tab2
----
18
32
60
skipif mysql # not compatible
query I rowsort label-6331
SELECT col0 / tab2.col0 + col1 AS col0 FROM tab2
----
18
32
60
query I rowsort
SELECT ALL - col0 + col0 + col2 AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL + col2 + - tab2.col2 AS col2 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( - col2 ) AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6334
SELECT col2 DIV col1 + - tab0.col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-6334
SELECT col2 / col1 + - tab0.col2 FROM tab0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6335
SELECT + col2 DIV col0 - + col1 FROM tab1
----
-10
-12
-8
skipif mysql # not compatible
query I rowsort label-6335
SELECT + col2 / col0 - + col1 FROM tab1
----
-10
-12
-8
query I rowsort
SELECT ALL col0 * tab2.col2 * - col0 + col1 FROM tab2 WHERE NOT ( col0 * - col0 + - col0 ) IN ( col2 * tab2.col0 + col2 )
----
-1292
-158125
-237141
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col2 * col2 col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT DISTINCT col0 * col0 + + col2 + + tab1.col2 AS col1 FROM tab1
----
117
4210
6592
onlyif mysql # use DIV operator for integer division
query I rowsort label-6339
SELECT ALL + tab2.col1 DIV col1 + col2 AS col2 FROM tab2
----
27
28
39
skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL + tab2.col1 / col1 + col2 AS col2 FROM tab2
----
27
28
39
query I rowsort
SELECT col0 * col1 * col0 FROM tab1 cor0
----
234
40960
83200
query I rowsort
SELECT + col0 + - col1 * col0 + + col1 FROM tab0 WHERE ( col2 ) >= col2
----
-1954
-3263
-7919
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + tab0.col0 - - tab0.col0 col0 FROM tab0
----
1260
600
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-6343
SELECT + col1 * col1 DIV - col1 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-6343
SELECT + col1 * col1 / - col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT col1 + - col2 * + tab1.col1 FROM tab1 WHERE NOT ( NULL ) < - col0 * + col0 + col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * tab0.col2 + + col0 col0 FROM tab0
----
1113
36
6813
query I rowsort
SELECT + tab2.col1 * col0 * + col1 + col2 AS col0 FROM tab2
----
22869
271544
6754
query I rowsort
SELECT + tab2.col2 * col0 * tab2.col2 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT ALL tab0.col1 + tab0.col1 * - col0 + col2 AS col2 FROM tab0
----
-1945
-3297
-7926
query I rowsort
SELECT ALL col1 + col0 - - col1 AS col2 FROM tab1
----
106
55
84
query I rowsort
SELECT col2 + + tab0.col0 * col2 * col0 AS col2 FROM tab0
----
1226
19041
649604
query I rowsort
SELECT ALL + col0 * - tab0.col1 + + col1 + - col1 AS col2 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT col0 * col1 * tab0.col0 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT col2 * col1 * col2 + col0 AS col1 FROM tab2
----
22606
24627
39962
query I rowsort
SELECT ALL + tab1.col0 - - 86 AS col0 FROM tab1
----
150
166
89
query I rowsort
SELECT DISTINCT 94 * + col1 FROM tab2
----
1598
2914
5546
query I rowsort
SELECT ALL ( 80 ) AS col2 FROM tab0
----
80
80
80
query I rowsort
SELECT col1 * 27 AS col0 FROM tab1
----
270
351
702
query I rowsort
SELECT + 48 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab1 cor2
----
81 values hashing to df6d12001a34fdcf5cfb2ca3a4a22108
query I rowsort
SELECT col0 + - 96 AS col2 FROM tab1 cor0
----
-16
-32
-93
query I rowsort
SELECT - 22 + col0 FROM tab1 AS cor0
----
-19
42
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-6361
SELECT + col2 DIV col1 + - 47 * col1 col2 FROM tab1 AS cor0
----
-1220
-465
-604
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6361
SELECT + col2 / col1 + - 47 * col1 col2 FROM tab1 AS cor0
----
-1220
-465
-604
query I rowsort
SELECT + col2 * - col0 + - col0 * col2 AS col0 FROM tab1 cor0
----
-15360
-324
-7296
query I rowsort
SELECT DISTINCT + 77 * cor0.col0 FROM tab2 AS cor0
----
539
6006
6083
onlyif mysql # use DIV operator for integer division
query I rowsort label-6364
SELECT DISTINCT col2 + col0 DIV - 27 + - col2 DIV cor0.col2 FROM tab0 cor0
----
-1
32
78
skipif mysql # not compatible
query I rowsort label-6364
SELECT DISTINCT col2 + col0 / - 27 + - col2 / cor0.col2 FROM tab0 cor0
----
-1
32
78
query I rowsort
SELECT - + col2 - + cor0.col2 * col2 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT DISTINCT ( - tab0.col0 * col2 ) FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT - 0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT ALL + 90 AS col1 FROM tab1
----
90
90
90
query I rowsort
SELECT DISTINCT - + 77 + + cor0.col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2993
-3326
-9293
query I rowsort
SELECT ALL - cor0.col2 * + col2 * - col0 - - col0 AS col2 FROM tab1 AS cor0
----
208000
737360
8751
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 * + col0 + + 61 * + col0 col0 FROM tab0 AS cor0
----
2208
3220
8188
query I rowsort
SELECT ALL + + col0 * col2 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ( + col1 ) + - 41 AS col1 FROM tab1 cor0
----
-15
-28
-31
query I rowsort
SELECT ALL - cor0.col0 + - col1 * + col1 - 17 AS col1 FROM tab1 AS cor0
----
-181
-266
-696
query I rowsort
SELECT DISTINCT + col1 + - col0 * ( + col1 + col1 ) AS col2 FROM tab1 AS cor0
----
-1270
-130
-2067
query I rowsort
SELECT - - cor0.col1 + - col1 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + cor0.col1 * 64 FROM tab1 AS cor0
----
1664
640
832
query I rowsort
SELECT - cor0.col0 * 10 FROM tab1 AS cor0
----
-30
-640
-800
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6379
SELECT + + cor0.col0 * CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-6379
SELECT + + cor0.col0 * CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + cor0.col1 * - 33 FROM tab2 AS cor0
----
-1023
-1947
-561
query I rowsort
SELECT DISTINCT col0 - - 84 AS col2 FROM tab1 AS cor0
----
148
164
87
query I rowsort
SELECT DISTINCT - - 1 * col2 + col0 FROM tab0 cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 col1 FROM tab2, tab1 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT 35 - col1 FROM tab0
----
-51
-56
-62
query I rowsort
SELECT ALL - col1 * col2 + - col0 * - col0 AS col1 FROM tab2 AS cor0
----
-788
4550
5595
onlyif mysql # use DIV operator for integer division
query I rowsort label-6386
SELECT DISTINCT + col0 * + col0 DIV - col0 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT + col0 * + col0 / - col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + col0 * + col1 - - col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT - 85 * cor0.col2 FROM tab1 AS cor0
----
-4590
-4845
-8160
query I rowsort
SELECT - ( + col2 ) + - col1 * - col2 * col2 FROM tab2 AS cor0
----
22572
24510
39858
query I rowsort
SELECT + col0 - 57 FROM tab1
----
-54
23
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 col1 FROM tab0
----
80
query I rowsort
SELECT DISTINCT + ( - col2 * - col1 ) AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - 50 FROM tab1, tab2 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8
query I rowsort
SELECT DISTINCT - ( tab2.col0 + + tab2.col0 ) FROM tab2
----
-14
-156
-158
query I rowsort
SELECT ALL tab1.col0 + - col1 + col1 AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL 66 + + col0 AS col0 FROM tab1
----
130
146
69
query I rowsort
SELECT ALL - col2 * + col0 + cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT col0 * col1 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 col2 FROM tab0 cor0
----
-178
-48
-70
query I rowsort
SELECT - 91 * col0 - + cor0.col1 FROM tab1 AS cor0
----
-299
-5834
-7293
query I rowsort
SELECT - cor0.col2 * col0 + + col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT + 57 - - col2 FROM tab1 AS cor0
----
111
114
153
query I rowsort
SELECT DISTINCT - - col1 * col1 + + col2 FROM tab2 cor0
----
327
3507
988
query I rowsort
SELECT cor0.col2 * - cor0.col2 FROM tab1 cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-6405
SELECT col1 + col0 DIV tab1.col2 FROM tab1
----
11
13
26
skipif mysql # not compatible
query I rowsort label-6405
SELECT col1 + col0 / tab1.col2 FROM tab1
----
11
13
26
query I rowsort
SELECT + col0 * + 57 + + col2 AS col1 FROM tab0 AS cor0
----
1401
1996
5155
query I rowsort
SELECT DISTINCT + + ( col1 ) + - col2 * col1 FROM tab1 AS cor0
----
-1235
-1378
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 + col0 * col1 col1 FROM tab1 AS cor0
----
1107
55
694
query I rowsort
SELECT + 32 FROM tab2, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 * + col1 col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT + - 41 + + col0 AS col1 FROM tab1 AS cor0
----
-38
23
39
query I rowsort
SELECT DISTINCT + - ( + col1 ) + col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT + cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
1
33
82
query I rowsort
SELECT DISTINCT + col1 * + ( col0 ) + + col0 + + col2 FROM tab0 AS cor0
----
2121
3431
8270
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6415
SELECT DISTINCT CAST( cor0.col0 AS SIGNED ) * - col1 + col1 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630
skipif mysql # not compatible
query I rowsort label-6415
SELECT DISTINCT CAST ( cor0.col0 AS INTEGER ) * - col1 + col1 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <> + col0
----
query I rowsort
SELECT ALL - col2 * + cor0.col1 + cor0.col1 AS col1 FROM tab0 cor0
----
-2752
-7371
0
query I rowsort
SELECT + col2 * col0 + tab0.col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT + - col1 * cor0.col2 * + col0 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT - col0 + + col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1168
1401
506
onlyif mysql # use DIV operator for integer division
query I rowsort label-6421
SELECT ALL + col0 DIV col0 + + col2 FROM tab0 cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-6421
SELECT ALL + col0 / col0 + + col2 FROM tab0 cor0
----
2
34
83
query I rowsort
SELECT - - col2 + - col0 * col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT - col1 * col1 + - col2 AS col0 FROM tab1
----
-157
-265
-730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - col1 col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab1, tab0 cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 + - col0 col1 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT - 42 * tab2.col1 + + col0 FROM tab2
----
-1295
-2400
-635
query I rowsort
SELECT DISTINCT + - col2 + - col2 * col2 FROM tab2 cor0
----
-1482
-702
-756
onlyif mysql # use DIV operator for integer division
query I rowsort label-6429
SELECT DISTINCT - tab0.col2 + - col0 DIV - col1 + col2 DIV col0 FROM tab0
----
-1
-32
-82
skipif mysql # not compatible
query I rowsort label-6429
SELECT DISTINCT - tab0.col2 + - col0 / - col1 + col2 / col0 FROM tab0
----
-1
-32
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col1 col2 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT ALL col0 * col2 * - col2 AS col1 FROM tab0
----
-26136
-35
-598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-6432
SELECT ALL + col1 + + col2 DIV - col1 AS col2 FROM tab2
----
15
31
59
skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL + col1 + + col2 / - col1 AS col2 FROM tab2
----
15
31
59
query I rowsort
SELECT - tab1.col2 * col1 * col2 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT + cor0.col0 - - cor0.col0 * - cor0.col2 * col0 FROM tab2 AS cor0
----
-1316
-158106
-237079
query I rowsort
SELECT + col2 * + 70 AS col0 FROM tab0
----
2310
5740
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6436
SELECT + - col1 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6436
SELECT + - col1 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * - 25 + col2 AS col0 FROM tab2 AS cor0
----
-624
-648
-912
query I rowsort
SELECT - 6 + col1 FROM tab1 AS cor0
----
20
4
7
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6440
SELECT + 97 + + col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6440
SELECT + 97 + + col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6441
SELECT DISTINCT + 16 DIV + tab0.col2 FROM tab0
----
0
16
skipif mysql # not compatible
query I rowsort label-6441
SELECT DISTINCT + 16 / + tab0.col2 FROM tab0
----
0
16
query I rowsort
SELECT col0 + col0 * - ( + col1 * + col0 ) AS col2 FROM tab1
----
-231
-40896
-83120
query I rowsort
SELECT ALL 67 * + col1 FROM tab2
----
1139
2077
3953
query I rowsort
SELECT ALL - - 27 * + cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
17280
2106
28080
query I rowsort
SELECT - tab2.col1 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6446
SELECT DISTINCT col2 + CAST( col1 AS SIGNED ) + - col2 * - col0 FROM tab0 cor0
----
133
7471
911
skipif mysql # not compatible
query I rowsort label-6446
SELECT DISTINCT col2 + CAST ( col1 AS INTEGER ) + - col2 * - col0 FROM tab0 cor0
----
133
7471
911
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6447
SELECT ALL - col1 * + CAST( NULL AS SIGNED ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6448
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) + + col2 * cor0.col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6448
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) + + col2 * cor0.col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - - cor0.col0 + col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT - 71 + cor1.col2 AS col0 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to cd7a99032bd597bd19faed1e37f92b22
query I rowsort
SELECT ALL - 93 AS col0 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba
query I rowsort
SELECT ALL - ( cor1.col1 ) AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT cor0.col0 + cor0.col1 - cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT ALL - + col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL col1 * - ( ( col2 ) ) AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT cor0.col2 * col1 + - col2 * - col1 + col1 AS col0 FROM tab1 AS cor0
----
1150
2509
2834
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 14 * col1 col1 FROM tab1
----
1092
14560
8960
query I rowsort
SELECT col2 * + col0 * 19 FROM tab1 AS cor0
----
145920
3078
69312
query I rowsort
SELECT + + col1 * - 16 AS col1 FROM tab0 AS cor0
----
-1376
-1456
-1552
query I rowsort
SELECT col1 * 70 AS col1 FROM tab1 AS cor0
----
1820
700
910
query I rowsort
SELECT ALL + tab0.col2 * + ( col1 ) FROM tab0
----
2838
7462
97
query I rowsort
SELECT - col1 * + ( + col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - - 2 * - ( tab0.col2 ) FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 1d5749dba9e60eff96be70fcb36a7c9d
onlyif mysql # use DIV operator for integer division
query I rowsort label-6464
SELECT DISTINCT + col0 DIV + col2 + col1 * + col2 FROM tab0
----
132
2838
7463
skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT + col0 / + col2 + col1 * + col2 FROM tab0
----
132
2838
7463
query I rowsort
SELECT - + 16 * col2 FROM tab0 AS cor0
----
-1312
-16
-528
query I rowsort
SELECT 56 * col1 AS col0 FROM tab0 AS cor0
----
4816
5096
5432
query I rowsort
SELECT DISTINCT + + 6 * - col0 AS col2 FROM tab2 AS cor0
----
-42
-468
-474
query I rowsort
SELECT 45 * - col0 FROM tab0 AS cor0
----
-1080
-1575
-4005
query I rowsort
SELECT ALL + 27 * - col1 + col0 * 22 AS col2 FROM tab2 cor0
----
-683
123
1279
query I rowsort
SELECT + - ( col0 ) * + col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 80 col1 FROM tab1 AS cor0
----
80
80
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6472
SELECT - - col0 + - 3 DIV + col0 FROM tab1 AS cor0
----
2
64
80
skipif mysql # not compatible
query I rowsort label-6472
SELECT - - col0 + - 3 / + col0 FROM tab1 AS cor0
----
2
64
80
query I rowsort
SELECT DISTINCT - - 20 * + col1 + + col1 FROM tab1 AS cor0
----
210
273
546
query I rowsort
SELECT - ( - 24 ) AS col2 FROM tab1 AS cor0
----
24
24
24
query I rowsort
SELECT 54 + col0 AS col0 FROM tab1 cor0
----
118
134
57
query I rowsort
SELECT - + col1 * col0 * + col1 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT - + 32 * - col2 FROM tab1 AS cor0
----
1728
1824
3072
query I rowsort
SELECT ALL 59 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 cor2
----
81 values hashing to 05f41d0d3fd0b5c29af79ab9209cab27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6479
SELECT + CAST( + col2 AS SIGNED ) + - col0 AS col0 FROM tab0 cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-6479
SELECT + CAST ( + col2 AS INTEGER ) + - col0 AS col0 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT ALL col0 * - 57 AS col2 FROM tab1 cor0
----
-171
-3648
-4560
query I rowsort
SELECT ( - col1 ) * 70 * - cor0.col1 FROM tab2 AS cor0
----
20230
243670
67270
query I rowsort
SELECT DISTINCT cor0.col2 * + col1 - - col2 AS col0 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT + col2 * + cor0.col2 AS col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT - - col2 * col0 * - 57 FROM tab0 AS cor0
----
-1995
-415986
-45144
query I rowsort
SELECT col0 + 4 AS col0 FROM tab1
----
68
7
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-6486
SELECT ALL - + col2 DIV + 98 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL - + col2 / + 98 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 * + col0 * col0 AS col1 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT ALL + + col2 * 80 AS col2 FROM tab1 AS cor0
----
4320
4560
7680
query I rowsort
SELECT + - col0 + - 22 * col1 * - col0 FROM tab1 AS cor0
----
14016
1713
22800
query I rowsort
SELECT DISTINCT + col1 * + ( col0 ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099
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 col0 + - col2 * tab0.col1 + - 52 AS col1 FROM tab0
----
-114
-2866
-7425
query I rowsort
SELECT DISTINCT - ( col1 ) * col0 * 85 + + col0 AS col1 FROM tab1
----
-54336
-6627
-88320
query I rowsort
SELECT ALL col0 + tab1.col2 + col0 FROM tab1
----
185
256
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6495
SELECT - cor0.col1 * CAST( - col0 * + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
22831
271518
6727
skipif mysql # not compatible
query I rowsort label-6495
SELECT - cor0.col1 * CAST ( - col0 * + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT + - col0 + + ( col2 ) + - col0 AS col0 FROM tab0 cor0
----
-15
-69
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6497
SELECT - cor0.col1 + col1 + + col1 DIV cor0.col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6497
SELECT - cor0.col1 + col1 + + col1 / cor0.col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - - col0 * 86 FROM tab2 AS cor0
----
602
6708
6794
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6499
SELECT ALL + + col1 * + CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL + + col1 * + CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT col1 * + cor0.col1 + col0 + - cor0.col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT col1 * 55 * col0 FROM tab0
----
113520
186725
445445
query I rowsort
SELECT + col2 * - 41 AS col2 FROM tab0
----
-1353
-3362
-41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6503
SELECT col2 + + CAST( NULL AS DECIMAL ) col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6503
SELECT col2 + + CAST ( NULL AS REAL ) col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor1.col1 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT + tab0.col0 * 27 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
2403
648
945
query I rowsort
SELECT ALL - + col1 + - 77 * + col1 FROM tab1 cor0
----
-1014
-2028
-780
query I rowsort
SELECT - cor1.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT ( + 7 ) + col0 FROM tab0 AS cor0
----
31
42
96
query I rowsort
SELECT DISTINCT + cor0.col0 + - 32 * + col1 AS col1 FROM tab2 AS cor0
----
-1810
-465
-985
onlyif mysql # use DIV operator for integer division
query I rowsort label-6510
SELECT 44 + + 80 DIV col1 AS col0 FROM tab0 AS cor0
----
44
44
44
skipif mysql # not compatible
query I rowsort label-6510
SELECT 44 + + 80 / col1 AS col0 FROM tab0 AS cor0
----
44
44
44
query I rowsort
SELECT - col0 + + cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT ALL + col1 * + 94 FROM tab0 AS cor0
----
8084
8554
9118
query I rowsort
SELECT + 88 * 88 AS col2 FROM tab0 cor0
----
7744
7744
7744
onlyif mysql # use DIV operator for integer division
query I rowsort label-6514
SELECT - + col2 DIV - 38 FROM tab1 AS cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-6514
SELECT - + col2 / - 38 FROM tab1 AS cor0
----
1
1
2
query I rowsort
SELECT - 55 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3
query I rowsort
SELECT ALL 13 * tab0.col1 + + col0 * 16 AS col2 FROM tab0
----
1502
1821
2607
onlyif mysql # use DIV operator for integer division
query I rowsort label-6517
SELECT - + col2 DIV - col0 - - 72 AS col1 FROM tab2 cor0
----
72
72
75
skipif mysql # not compatible
query I rowsort label-6517
SELECT - + col2 / - col0 - - 72 AS col1 FROM tab2 cor0
----
72
72
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * + col0 col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL - cor0.col0 + col1 + + 58 FROM tab2 AS cor0
----
-4
39
82
query I rowsort
SELECT DISTINCT - + col1 * col1 - col2 * - col0 AS col1 FROM tab2 AS cor0
----
-1453
-772
2713
query I rowsort
SELECT DISTINCT - + 71 * col1 - - 70 FROM tab1 AS cor0
----
-1776
-640
-853
query I rowsort
SELECT + + 10 FROM tab2 cor0
----
10
10
10
query I rowsort
SELECT col1 * - col2 * + col0 AS col2 FROM tab2
----
-119652
-51034
-5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6524
SELECT ALL - 36 + + cor0.col1 + CAST( col2 AS SIGNED ) * + col1 AS col2 FROM tab1 AS cor0
----
1225
1394
544
skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL - 36 + + cor0.col1 + CAST ( col2 AS INTEGER ) * + col1 AS col2 FROM tab1 AS cor0
----
1225
1394
544
query I rowsort
SELECT + + col0 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT 33 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
33
query I rowsort
SELECT + col2 + ( 30 ) AS col1 FROM tab0 AS cor0
----
112
31
63
query I rowsort
SELECT ALL - col0 * ( col0 ) * + cor0.col1 + col1 - col0 AS col1 FROM tab2 AS cor0
----
-106159
-1495
-358975
query I rowsort
SELECT col0 + cor0.col0 + - 69 * col1 AS col1 FROM tab0 AS cor0
----
-5886
-6101
-6623
query I rowsort
SELECT DISTINCT - + col0 + + ( - col2 ) + - col1 FROM tab2 AS cor0
----
-134
-163
-65
query I rowsort
SELECT DISTINCT + - cor0.col1 * + col0 + col0 + col2 AS col1 FROM tab0 AS cor0
----
-2007
-3359
-7928
onlyif mysql # use DIV operator for integer division
query I rowsort label-6532
SELECT + 77 DIV - 72 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
skipif mysql # not compatible
query I rowsort label-6532
SELECT + 77 / - 72 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
query I rowsort
SELECT + cor0.col0 * + col1 - + col2 FROM tab1 cor0
----
24
583
944
query I rowsort
SELECT DISTINCT + ( tab0.col1 ) AS col2 FROM tab0, tab1 AS cor0
----
86
91
97
query I rowsort
SELECT 1 + 58 AS col0 FROM tab0 cor0
----
59
59
59
query I rowsort
SELECT + col2 * 9 AS col0 FROM tab0 cor0
----
297
738
9
query I rowsort
SELECT DISTINCT + 82 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6538
SELECT + - 12 + - col0 * + CAST( - 57 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
387
4434
4491
skipif mysql # not compatible
query I rowsort label-6538
SELECT + - 12 + - col0 * + CAST ( - 57 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
387
4434
4491
query I rowsort
SELECT + 51 * + col0 + col2 * - cor0.col2 * + col2 AS col2 FROM tab2 AS cor0
----
-13598
-19326
-50843
query I rowsort
SELECT DISTINCT - - 57 + + col1 AS col1 FROM tab2 AS cor0
----
116
74
88
query I rowsort
SELECT 46 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602
query I rowsort
SELECT col0 - + col0 * ( + col1 ) * cor0.col0 FROM tab0 AS cor0
----
-118790
-49512
-720722
query I rowsort
SELECT + + col0 + col0 * + 54 AS col2 FROM tab0 AS cor0
----
1320
1925
4895
query I rowsort
SELECT ALL - - col0 * ( col0 ) - cor0.col0 FROM tab2 cor0
----
42
6006
6162
query I rowsort
SELECT + cor0.col0 * + 32 AS col2 FROM tab1 AS cor0
----
2048
2560
96
query I rowsort
SELECT DISTINCT - + cor1.col1 AS col2 FROM tab1, tab0 cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
-10
-13
-26
query I rowsort
SELECT col2 * - col1 + - col0 + + col1 AS col0 FROM tab1 AS cor0
----
-1315
-1381
-624
query I rowsort
SELECT + + col1 * - 72 FROM tab2 AS cor0
----
-1224
-2232
-4248
query I rowsort
SELECT + + 84 * - col2 FROM tab1 AS cor0
----
-4536
-4788
-8064
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6550
SELECT - CAST( 73 AS SIGNED ) + col1 FROM tab1 AS cor0
----
-47
-60
-63
skipif mysql # not compatible
query I rowsort label-6550
SELECT - CAST ( 73 AS INTEGER ) + col1 FROM tab1 AS cor0
----
-47
-60
-63
query I rowsort
SELECT col0 * 96 FROM tab0 cor0
----
2304
3360
8544
query I rowsort
SELECT + - col2 * 28 FROM tab2 AS cor0
----
-1064
-728
-756
onlyif mysql # use DIV operator for integer division
query I rowsort label-6553
SELECT + col1 * 90 DIV - col1 AS col2 FROM tab1 AS cor0
----
-90
-90
-90
skipif mysql # not compatible
query I rowsort label-6553
SELECT + col1 * 90 / - col1 AS col2 FROM tab1 AS cor0
----
-90
-90
-90
query I rowsort
SELECT DISTINCT cor0.col1 * - 49 FROM tab0, tab1, tab1 AS cor0
----
-1274
-490
-637
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 60 col0 FROM tab1
----
-180
-3840
-4800
onlyif mysql # use DIV operator for integer division
query I rowsort label-6556
SELECT + 56 DIV - cor0.col0 FROM tab1, tab0 cor0
----
9 values hashing to ccd77e2770d5a834e59c1674defa88fa
skipif mysql # not compatible
query I rowsort label-6556
SELECT + 56 / - cor0.col0 FROM tab1, tab0 cor0
----
9 values hashing to ccd77e2770d5a834e59c1674defa88fa
query I rowsort
SELECT + cor0.col2 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT - - col2 + + 2 * col0 AS col2 FROM tab1 AS cor0
----
185
256
60
query I rowsort
SELECT col0 * tab0.col2 * col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT - ( + col2 ) * + col0 * col2 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT + tab1.col0 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL + ( + col2 * + col0 ) AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT + cor0.col0 * 1 FROM tab0, tab1 AS cor0, tab2 cor1
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6564
SELECT - CAST( NULL AS SIGNED ) - 27 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6564
SELECT - CAST ( NULL AS INTEGER ) - 27 AS col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6565
SELECT ALL - CAST( 88 AS SIGNED ) * - col2 FROM tab0
----
2904
7216
88
skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL - CAST ( 88 AS INTEGER ) * - col2 FROM tab0
----
2904
7216
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col2 col0 FROM tab1
----
121
176
57
query I rowsort
SELECT - cor0.col2 * 61 + col2 AS col2 FROM tab0 AS cor0
----
-1980
-4920
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 + col0 * cor0.col1 * - ( + cor0.col2 + col1 ) col1 FROM tab0 AS cor0
----
-1409226
-247680
-336105
query I rowsort
SELECT + - col0 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL - col0 - 77 AS col2 FROM tab2 cor0
----
-155
-156
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-6571
SELECT ALL cor0.col1 * + CAST( col0 AS SIGNED ) DIV - col0 + + col0 FROM tab2 AS cor0
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL cor0.col1 * + CAST ( col0 AS INTEGER ) / - col0 + + col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT - tab1.col0 * - cor0.col2 FROM tab0, tab2, tab0 AS cor0, tab1
----
9 values hashing to 819103d3cf87b5ea7ab7d6e1018478a0
query I rowsort
SELECT ALL - col0 - col1 * + col0 FROM tab0
----
-2088
-3430
-8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 * - col0 * - 89 col1 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL - 6 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 8be8910507908e6353d02a545b748252
query I rowsort
SELECT + tab1.col0 * + 53 * ( - col0 * - ( - col2 ) ) FROM tab1
----
-12374016
-25758
-32563200
query I rowsort
SELECT - + col0 + + 90 FROM tab0 AS cor0
----
1
55
66
query I rowsort
SELECT col1 * col0 + + 54 FROM tab2 AS cor0
----
1397
271
4656
query I rowsort
SELECT + col1 + - cor0.col1 * col1 + - cor0.col0 * - ( cor0.col0 ) * + col2 FROM tab2 AS cor0
----
154762
236886
393
query I rowsort
SELECT - tab0.col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT DISTINCT ( - tab0.col0 + + col2 ) * - 39 AS col0 FROM tab0
----
-351
1326
273
query I rowsort
SELECT col0 * col2 + 8 AS col0 FROM tab0
----
43
7306
800
query I rowsort
SELECT ALL + 91 AS col1 FROM tab1 cor0
----
91
91
91
query I rowsort
SELECT DISTINCT + - col2 * col2 - - cor0.col1 * col2 * - col1 AS col1 FROM tab1 AS cor0
----
-25440
-39420
-8949
query I rowsort
SELECT + 2 + col0 * 88 FROM tab2 AS cor0
----
618
6866
6954
query I rowsort
SELECT ALL + ( + col1 ) - + 98 * - col1 FROM tab0 AS cor0
----
8514
9009
9603
query I rowsort
SELECT ALL + col0 + col1 + 66 * col0 AS col0 FROM tab2 cor0
----
500
5285
5310
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6588
SELECT ALL - - col1 / - col2 + col1 + cor0.col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL - - col1 / - col2 + col1 + cor0.col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col1 * - col0 col2 FROM tab1 AS cor0
----
-104
-1053
-650
onlyif mysql # use DIV operator for integer division
query I rowsort label-6590
SELECT ALL - col0 DIV + cor0.col1 + + col1 + - col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL - col0 / + cor0.col1 + + col1 + - col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT ALL - col2 * - col0 + + 86 FROM tab2 AS cor0
----
2114
275
3088
query I rowsort
SELECT ALL cor0.col2 - col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + - col0 - cor0.col1 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT ALL + col2 + ( col0 ) AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + ( col2 ) + 78 * + col0 AS col1 FROM tab1
----
288
5049
6336
query I rowsort
SELECT DISTINCT col1 + col0 * - col0 FROM tab2
----
-18
-6025
-6224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6597
SELECT col1 * col1 - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6597
SELECT col1 * col1 - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col0 - col0 * - 42 FROM tab1
----
129
2752
3440
query I rowsort
SELECT DISTINCT ( - ( col0 ) ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + - 57 - cor0.col1 AS col0 FROM tab0 AS cor0
----
-143
-148
-154
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6601
SELECT DISTINCT CAST( NULL AS SIGNED ) - - col0 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6601
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - col0 AS col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6602
SELECT CAST( NULL AS SIGNED ) - - col0 * + col0 * - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6602
SELECT CAST ( NULL AS INTEGER ) - - col0 * + col0 * - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6604
SELECT + col2 DIV - col0 + col1 FROM tab2 AS cor0
----
17
28
59
skipif mysql # not compatible
query I rowsort label-6604
SELECT + col2 / - col0 + col1 FROM tab2 AS cor0
----
17
28
59
query I rowsort
SELECT ALL - ( col2 ) * col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT + ( 65 ) * + col0 AS col0 FROM tab2 AS cor0
----
455
5070
5135
query I rowsort
SELECT ALL + - col2 + + 26 * - col0 FROM tab0 AS cor0
----
-2396
-657
-911
query I rowsort
SELECT DISTINCT + - 10 + - 46 * + col0 FROM tab1 AS cor0
----
-148
-2954
-3690
onlyif mysql # use DIV operator for integer division
query I rowsort label-6609
SELECT ALL + + col0 DIV col2 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL + + col0 / col2 FROM tab1 cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - 14 col2 FROM tab0 cor0
----
72
77
83
query I rowsort
SELECT - + cor0.col0 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-6612
SELECT col2 DIV 56 - + col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-6612
SELECT col2 / 56 - + col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + + 95 FROM tab1 cor0
----
95
query I rowsort
SELECT - ( - col2 ) + col1 * cor0.col0 AS col2 FROM tab0 cor0
----
2097
3396
8181
query I rowsort
SELECT + 16 - + tab0.col2 * col1 AS col1 FROM tab0
----
-2822
-7446
-81
query I rowsort
SELECT DISTINCT - - 0 * col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + + 79 + col0 * - col1 FROM tab1 cor0
----
-561
-961
1
query I rowsort
SELECT + 54 * cor0.col2 FROM tab0 AS cor0
----
1782
4428
54
query I rowsort
SELECT + 62 FROM tab1, tab2 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 0bc652564a158b9c0f7952026f90b60a
query I rowsort
SELECT - col0 + - col1 * - ( col2 ) FROM tab1 cor0
----
1168
1401
506
onlyif mysql # use DIV operator for integer division
query I rowsort label-6621
SELECT 71 DIV col2 FROM tab0 AS cor0
----
0
2
71
skipif mysql # not compatible
query I rowsort label-6621
SELECT 71 / col2 FROM tab0 AS cor0
----
0
2
71
query I rowsort
SELECT DISTINCT - - 36 * col2 + 80 AS col1 FROM tab1 AS cor0
----
2024
2132
3536
query I rowsort
SELECT ALL 30 FROM tab1 cor0
----
30
30
30
query I rowsort
SELECT DISTINCT col0 + 5 * col0 AS col2 FROM tab1
----
18
384
480
onlyif mysql # use DIV operator for integer division
query I rowsort label-6625
SELECT ( col1 ) DIV col1 AS col2 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6625
SELECT ( col1 ) / col1 AS col2 FROM tab2
----
1
1
1
query I rowsort
SELECT - col0 * col1 * col2 AS col2 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT + col1 + + tab1.col1 * - tab1.col2 + - col2 AS col2 FROM tab1
----
-1331
-1432
-617
query I rowsort
SELECT 71 * - cor0.col2 + + 68 FROM tab2 AS cor0
----
-1778
-1849
-2630
query I rowsort
SELECT DISTINCT + - cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - ( - col2 ) + + col2 + + cor0.col2 FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT ALL - 25 * - col2 FROM tab2 cor0
----
650
675
950
query I rowsort
SELECT ALL - - col0 + - cor0.col2 * 26 FROM tab0 AS cor0
----
-2043
-834
9
query I rowsort
SELECT col0 * + col2 * + col2 + - cor0.col1 * + col0 + - 28 * + col1 AS col1 FROM tab1 AS cor0
----
207016
735876
7942
query I rowsort
SELECT DISTINCT - col2 * + col0 * 85 AS col1 FROM tab0 AS cor0
----
-2975
-620330
-67320
onlyif mysql # use DIV operator for integer division
query I rowsort label-6635
SELECT col2 DIV 13 + + col1 AS col2 FROM tab2
----
19
33
61
skipif mysql # not compatible
query I rowsort label-6635
SELECT col2 / 13 + + col1 AS col2 FROM tab2
----
19
33
61
query I rowsort
SELECT ALL - + col2 - - ( - col0 ) FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT 50 + 36 AS col1 FROM tab0
----
86
86
86
query I rowsort
SELECT ALL - 20 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6639
SELECT DISTINCT CAST( - 99 AS SIGNED ) * col1 + + col2 AS col2 FROM tab2 AS cor0
----
-1645
-3042
-5815
skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT CAST ( - 99 AS INTEGER ) * col1 + + col2 AS col2 FROM tab2 AS cor0
----
-1645
-3042
-5815
query I rowsort
SELECT DISTINCT + 18 + 34 * cor0.col2 * + ( + col0 ) FROM tab1 AS cor0
----
124050
261138
5526
query I rowsort
SELECT + + ( col0 ) * - cor0.col0 FROM tab0 cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-6642
SELECT DISTINCT - CAST( + 92 AS SIGNED ) * - col2 + col0 DIV + cor0.col2 FROM tab0 AS cor0
----
127
3036
7545
skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT - CAST ( + 92 AS INTEGER ) * - col2 + col0 / + cor0.col2 FROM tab0 AS cor0
----
127
3036
7545
query I rowsort
SELECT DISTINCT tab2.col2 + - col2 * + tab2.col1 FROM tab2
----
-1508
-608
-810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 + col1 col1 FROM tab1
----
188
3658
7693
query I rowsort
SELECT tab2.col0 + col2 * + col0 FROM tab2
----
196
2106
3081
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col1 - + col1 )
----
query I rowsort
SELECT ALL - col1 * + tab0.col2 FROM tab0 WHERE NOT col2 * - col2 NOT BETWEEN + tab0.col2 AND + col2
----
query I rowsort
SELECT DISTINCT col1 * col2 + col0 AS col1 FROM tab0
----
132
2862
7551
query I rowsort
SELECT col2 + - tab2.col0 * tab2.col2 + - col1 FROM tab2
----
-193
-2061
-2981
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 * col1 col1 FROM tab0 WHERE + col1 > NULL
----
query I rowsort
SELECT DISTINCT tab2.col2 + col1 * - col0 * col0 FROM tab2
----
-106059
-1492
-358930
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN col1 * col1 AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6653
SELECT ALL - col2 + col0 DIV col2 FROM tab1
----
-54
-56
-96
skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL - col2 + col0 / col2 FROM tab1
----
-54
-56
-96
query I rowsort
SELECT ALL tab2.col0 + + tab2.col0 * col0 AS col0 FROM tab2
----
56
6162
6320
query I rowsort
SELECT ALL - col0 + col0 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col0 * col0
----
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + col0 * + col0 )
----
query I rowsort
SELECT DISTINCT - col2 * + col1 * col0 + - col0 FROM tab2 WHERE NOT ( NULL ) IN ( - col1 )
----
query I rowsort
SELECT + cor0.col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT - col2 + col1 * + col1 AS col2 FROM tab2
----
251
3455
934
query I rowsort
SELECT - + col0 + - col0 * - col2 AS col2 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT col1 * + col0 + + cor0.col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT - col1 + - col2 * col2 AS col2 FROM tab0 AS cor0
----
-1175
-6815
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-6663
SELECT DISTINCT tab2.col0 * col0 DIV + col1 FROM tab2
----
1
103
367
skipif mysql # not compatible
query I rowsort label-6663
SELECT DISTINCT tab2.col0 * col0 / + col1 FROM tab2
----
1
103
367
query I rowsort
SELECT col2 * + tab0.col2 + + col1 * + col0 FROM tab0
----
14823
3153
3396
query I rowsort
SELECT ALL - tab1.col1 + col0 - col2 AS col0 FROM tab1
----
-29
-3
-77
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN ( col0 ) AND ( - col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6667
SELECT cor0.col0 DIV col0 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-6667
SELECT cor0.col0 / col0 col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + col0 + 59 AS col2 FROM tab2 AS cor0
----
137
138
66
query I rowsort
SELECT ALL - col1 + - 7 FROM tab2 AS cor0
----
-24
-38
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * - col2 + 78 col2 FROM tab2 cor0
----
-1366
-598
-651
query I rowsort
SELECT DISTINCT col0 * - ( + col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + - col0 * col2 + - col0 FROM tab0 cor0
----
-70
-7387
-816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6673
SELECT DISTINCT - col2 * - 11 + - 32 - + col1 * CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT - col2 * - 11 + - 32 - + col1 * CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL col1 + - 62 FROM tab2 AS cor0
----
-3
-31
-45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - col1 col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT col1 * cor0.col1 - col2 AS col0 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT + col0 * + col1 + col1 AS col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT - + 31 + + cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
1009
47
609
query I rowsort
SELECT DISTINCT - ( col0 ) * + col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT ( 1 ) AS col1 FROM tab2 AS cor0
----
1
query I rowsort
SELECT ALL - col2 * - ( + col0 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab2, tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT - col1 * + 46 FROM tab0
----
-3956
-4186
-4462
query I rowsort
SELECT DISTINCT col2 + col2 * + ( - col1 ) AS col0 FROM tab2
----
-1508
-608
-810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6685
SELECT CAST( NULL AS SIGNED ) * + 64 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6685
SELECT CAST ( NULL AS INTEGER ) * + 64 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 52 * cor0.col1 FROM tab1 AS cor0
----
1352
520
676
query I rowsort
SELECT + col1 * - tab2.col1 + - 51 AS col0 FROM tab2
----
-1012
-340
-3532
query I rowsort
SELECT ALL 19 - - tab2.col1 FROM tab2
----
36
50
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 + col1 * + ( + col1 ) * + col1 col0 FROM tab2 AS cor0
----
205414
29826
4948
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * - col1 <> NULL
----
query I rowsort
SELECT col0 + col0 * - col1 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL - 6 - - col2 FROM tab1 AS cor0
----
48
51
90
query I rowsort
SELECT - cor0.col1 + col2 * - col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT ALL - col0 + ( + col1 ) AS col1 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT DISTINCT + + col0 * col0 - col1 * col0 FROM tab1 AS cor0
----
-69
3456
5360
query I rowsort
SELECT ALL + + col2 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT col0 * - ( cor0.col2 * + col2 ) AS col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT ALL - col2 + + 46 AS col0 FROM tab0 cor0
----
-36
13
45
query I rowsort
SELECT + cor0.col0 * col2 * col1 + - col1 FROM tab2 AS cor0
----
119593
51017
5828
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col1 col2 FROM tab2
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 - 11 col0 FROM tab0
----
2053
3384
8088
query I rowsort
SELECT tab2.col1 * 3 + - 61 * col2 AS col1 FROM tab2
----
-1409
-1554
-2267
query I rowsort
SELECT tab2.col1 FROM tab2, tab2 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
query I rowsort
SELECT ALL + tab1.col0 * col1 + col1 * col1 FROM tab1
----
1209
740
754
query I rowsort
SELECT + col1 * col2 + 93 FROM tab0
----
190
2931
7555
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6706
SELECT CAST( NULL AS SIGNED ) * + col1 * + col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6706
SELECT CAST ( NULL AS INTEGER ) * + col1 * + col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + 36 * col1 + + col0 FROM tab1
----
424
548
939
onlyif mysql # use DIV operator for integer division
query I rowsort label-6708
SELECT + col2 DIV + tab2.col1 + - col0 * col0 FROM tab2
----
-49
-6084
-6239
skipif mysql # not compatible
query I rowsort label-6708
SELECT + col2 / + tab2.col1 + - col0 * col0 FROM tab2
----
-49
-6084
-6239
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 79 * - col1 col0 FROM tab1
----
-50560
-6162
-82160
query I rowsort
SELECT ALL 68 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6711
SELECT ALL CAST( 90 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
90
90
90
skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL CAST ( 90 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
90
90
90
query I rowsort
SELECT ALL 75 * + col0 FROM tab1 AS cor0
----
225
4800
6000
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - CAST ( 29 AS REAL ) + - col2 * col2 FROM tab1 AS cor0
----
-2887
-3220
-9187
query I rowsort
SELECT + ( 51 ) + + cor0.col2 AS col0 FROM tab1 AS cor0
----
105
108
147
query I rowsort
SELECT + + 48 AS col1 FROM tab1 AS cor0
----
48
48
48
query I rowsort
SELECT ALL - 82 * + col1 AS col0 FROM tab1 AS cor0
----
-1066
-2132
-820
query I rowsort
SELECT DISTINCT - - 35 * col0 + ( col0 ) AS col2 FROM tab0 AS cor0
----
1260
3204
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-6718
SELECT DISTINCT + col0 DIV col0 + + ( ( col0 ) ) AS col1 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-6718
SELECT DISTINCT + col0 / col0 + + ( ( col0 ) ) AS col1 FROM tab1 AS cor0
----
4
65
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + 39 * col0 col2 FROM tab0 AS cor0
----
1366
3553
969
query I rowsort
SELECT - col2 * col0 * + 46 - cor0.col2 * - col2 FROM tab0 AS cor0
----
-1609
-328984
-35343
query I rowsort
SELECT ALL - - cor0.col0 + - col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT - + col0 * + col1 - + 86 FROM tab1 AS cor0
----
-1126
-164
-726
query I rowsort
SELECT + cor0.col0 * cor0.col1 - + col1 AS col2 FROM tab0 cor0
----
1978
3298
8008
query I rowsort
SELECT ALL + col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL col1 * + ( + col2 ) + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT - col0 * + 32 AS col0 FROM tab0 AS cor0
----
-1120
-2848
-768
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 - col0 * - cor0.col0 col1 FROM tab0 AS cor0
----
10634
16202
7972
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6728
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6728
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6729
SELECT ALL + col0 + 1 DIV + col2 col1 FROM tab0 AS cor0
----
24
36
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL + col0 + 1 / + col2 col1 FROM tab0 AS cor0
----
24
36
89
query I rowsort
SELECT - - cor0.col2 * - 39 AS col2 FROM tab2 cor0
----
-1014
-1053
-1482
onlyif mysql # use DIV operator for integer division
query I rowsort label-6731
SELECT + col1 * col1 * + col1 - col2 DIV col0 FROM tab0 AS cor0
----
636055
753571
912673
skipif mysql # not compatible
query I rowsort label-6731
SELECT + col1 * col1 * + col1 - col2 / col0 FROM tab0 AS cor0
----
636055
753571
912673
query I rowsort
SELECT DISTINCT col2 * cor0.col1 + + ( + col0 ) FROM tab0 AS cor0
----
132
2862
7551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col1 col1 FROM tab0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-6734
SELECT col0 * col1 * + cor0.col1 - col0 * + col0 DIV cor0.col0 FROM tab0 AS cor0
----
177480
329280
736920
skipif mysql # not compatible
query I rowsort label-6734
SELECT col0 * col1 * + cor0.col1 - col0 * + col0 / cor0.col0 FROM tab0 AS cor0
----
177480
329280
736920
query I rowsort
SELECT - + cor0.col1 * col2 + + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT + col0 * col1 + + cor0.col2 AS col2 FROM tab0 cor0
----
2097
3396
8181
query I rowsort
SELECT col0 * col1 FROM tab2 WHERE NOT ( NULL ) >= ( + col2 ) AND NOT - col1 IN ( col1 )
----
query I rowsort
SELECT ALL + col1 * - col2 + col2 AS col0 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT col1 * - col1 + col0 + col1 FROM tab0
----
-7286
-8101
-9277
query I rowsort
SELECT + col1 * col1 * col0 AS col2 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT DISTINCT col1 * + col1 + col1 * - col1 AS col1 FROM tab0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6742
SELECT col0 * col0 + col1 DIV - col1 + col1 FROM tab2
----
6142
6257
79
skipif mysql # not compatible
query I rowsort label-6742
SELECT col0 * col0 + col1 / - col1 + col1 FROM tab2
----
6142
6257
79
query I rowsort
SELECT + - cor0.col2 * col2 AS col2 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL - ( + col2 ) * col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL - col0 + cor0.col0 * col2 FROM tab1 AS cor0
----
159
3584
7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-6746
SELECT DISTINCT - - col1 DIV col0 FROM tab0 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT - - col1 / col0 FROM tab0 cor0
----
1
2
3
query I rowsort
SELECT DISTINCT tab1.col1 + - tab1.col0 * col1 + - tab1.col0 FROM tab1
----
-1107
-55
-694
query I rowsort
SELECT + 17 * + col2 + + col1 * col0 AS col2 FROM tab2 cor0
----
1989
5044
676
query I rowsort
SELECT - + col2 + col1 * + col2 AS col0 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT ( + tab1.col0 ) + col2 FROM tab1
----
121
176
57
query I rowsort
SELECT col0 + col2 * col0 * + tab0.col1 FROM tab0
----
3430
664207
68136
query I rowsort
SELECT DISTINCT 44 * col2 AS col0 FROM tab1
----
2376
2508
4224
query I rowsort
SELECT ALL + + 78 FROM tab1 AS cor0
----
78
78
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * cor0.col1 + col0 * cor0.col1 col1 FROM tab1 AS cor0
----
1210
1482
2288
query I rowsort
SELECT - col0 * + col0 * - 63 FROM tab1 AS cor0
----
258048
403200
567
query I rowsort
SELECT + 59 + col0 FROM tab2 cor0
----
137
138
66
query I rowsort
SELECT - + col1 + cor0.col1 * + ( + col1 + - col0 ) * ( + col2 ) AS col2 FROM tab2 cor0
----
-29205
-40069
20057
query I rowsort
SELECT - - ( - col2 ) + + col2 * + 53 FROM tab1 AS cor0
----
2808
2964
4992
query I rowsort
SELECT 79 * - col0 * 27 + + col2 AS col2 FROM tab0 AS cor0
----
-189755
-51159
-74654
query I rowsort
SELECT DISTINCT col1 * - 11 AS col0 FROM tab0
----
-1001
-1067
-946
onlyif mysql # use DIV operator for integer division
query I rowsort label-6761
SELECT ALL - 72 DIV tab0.col2 AS col2 FROM tab0
----
-2
-72
0
skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL - 72 / tab0.col2 AS col2 FROM tab0
----
-2
-72
0
query I rowsort
SELECT + cor0.col2 + - col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + ( col2 ) + + tab0.col1 * ( + col2 + - col0 ) FROM tab0
----
-3297
-555
807
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6764
SELECT - - 98 + col1 + - CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
121
31
44
skipif mysql # not compatible
query I rowsort label-6764
SELECT - - 98 + col1 + - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
121
31
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6765
SELECT DISTINCT ( tab0.col2 ) * 60 * ( col1 + CAST( - 14 AS SIGNED ) ) AS col0 FROM tab0
----
142560
378840
4980
skipif mysql # not compatible
query I rowsort label-6765
SELECT DISTINCT ( tab0.col2 ) * 60 * ( col1 + CAST ( - 14 AS INTEGER ) ) AS col0 FROM tab0
----
142560
378840
4980
query I rowsort
SELECT + cor0.col0 + ( 13 ) FROM tab2 AS cor0
----
20
91
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6767
SELECT ALL col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6767
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6768
SELECT - 60 DIV - cor0.col2 FROM tab1 cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-6768
SELECT - 60 / - cor0.col2 FROM tab1 cor0
----
0
1
1
query I rowsort
SELECT - - col0 * col2 * col2 - + col2 * ( - col2 ) FROM tab0 AS cor0
----
27225
36
605160
skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( + col0 AS REAL ) - + col1 AS col1 FROM tab1 cor0
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-6771
SELECT - tab2.col0 DIV 67 FROM tab2
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-6771
SELECT - tab2.col0 / 67 FROM tab2
----
-1
-1
0
query I rowsort
SELECT - col2 * + col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT - col0 - + tab2.col2 AS col0 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT ALL cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * cor0.col0 col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT + col0 * + tab0.col2 * - col2 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT ALL 2 * - col0 AS col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT ALL 35 FROM tab2, tab0 cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT ALL + + 32 * col2 + 95 AS col1 FROM tab0 AS cor0
----
1151
127
2719
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 26 * cor0.col2 col1 FROM tab2 AS cor0
----
676
702
988
query I rowsort
SELECT + - col2 - col1 AS col1 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT - col1 * + cor0.col2 * + ( + col2 ) - col2 AS col1 FROM tab0 cor0
----
-611966
-93687
-98
query I rowsort
SELECT DISTINCT 67 + + 5 FROM tab2, tab1 AS cor0
----
72
query I rowsort
SELECT DISTINCT col0 + + 13 AS col0 FROM tab2 AS cor0
----
20
91
92
query I rowsort
SELECT + + cor0.col0 * - 38 AS col1 FROM tab2 AS cor0
----
-266
-2964
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-6786
SELECT ALL 63 + - col0 DIV col1 AS col0 FROM tab0 AS cor0
----
63
63
63
skipif mysql # not compatible
query I rowsort label-6786
SELECT ALL 63 + - col0 / col1 AS col0 FROM tab0 AS cor0
----
63
63
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-6787
SELECT DISTINCT + ( col2 ) DIV + col2 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6787
SELECT DISTINCT + ( col2 ) / + col2 FROM tab1 AS cor0
----
1
query I rowsort
SELECT DISTINCT - + 59 * col2 FROM tab0 AS cor0
----
-1947
-4838
-59
query I rowsort
SELECT + ( ( + col1 ) ) * col0 + 9 FROM tab0 AS cor0
----
2073
3404
8108
query I rowsort
SELECT + col0 + 55 AS col0 FROM tab2 cor0
----
133
134
62
query I rowsort
SELECT ALL + ( - ( + col0 ) ) * - 39 + col1 * - col2 FROM tab2 AS cor0
----
-564
1508
2435
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 69 + col2 col2 FROM tab0 AS cor0
----
-36
-68
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-6793
SELECT - cor0.col1 DIV tab0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 84121aa1482bef4dd60423454938e366
skipif mysql # not compatible
query I rowsort label-6793
SELECT - cor0.col1 / tab0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 84121aa1482bef4dd60423454938e366
query I rowsort
SELECT - - col1 + - col2 * - cor0.col1 AS col0 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT - - col1 + col2 - - 39 AS col1 FROM tab1 AS cor0
----
106
119
148
query I rowsort
SELECT DISTINCT 86 * 22 AS col0 FROM tab2, tab0 AS cor0
----
1892
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + ( col2 ) * + col0 col2 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT col0 + ( cor0.col1 ) * - col0 - 54 * - 34 FROM tab0 AS cor0
----
-1524
-204
-6174
query I rowsort
SELECT DISTINCT - col2 + ( col0 ) * + col1 FROM tab1 AS cor0
----
24
583
944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - ( - col0 ) * col1 col0 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT 4 * col0 - ( col2 ) * col0 FROM tab0
----
-6942
-696
105
query I rowsort
SELECT DISTINCT col2 + ( - col1 ) + + col1 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 35 * - col1 + col0 col1 FROM tab1
----
-23657
-3436
-5835
query I rowsort
SELECT - col1 * - 75 AS col2 FROM tab0
----
6450
6825
7275
query I rowsort
SELECT + col0 + ( + 52 ) * col2 * - col2 + col2 * col2 FROM tab1
----
-148713
-165635
-469936
query I rowsort
SELECT + col2 * - 60 FROM tab2
----
-1560
-1620
-2280
query I rowsort
SELECT - 33 + 5 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115
query I rowsort
SELECT + col1 + 87 AS col1 FROM tab1
----
100
113
97
query I rowsort
SELECT ALL + col2 + ( - ( + cor0.col1 ) ) * ( ( col1 ) ) FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT DISTINCT + tab0.col1 * + col1 * + col0 + + col0 AS col1 FROM tab0
----
177528
329350
737098
onlyif mysql # use DIV operator for integer division
query I rowsort label-6811
SELECT DISTINCT col2 DIV + ( + 12 ) + - tab0.col0 AS col1 FROM tab0
----
-22
-35
-83
skipif mysql # not compatible
query I rowsort label-6811
SELECT DISTINCT col2 / + ( + 12 ) + - tab0.col0 AS col1 FROM tab0
----
-22
-35
-83
query I rowsort
SELECT DISTINCT - col0 + tab1.col1 AS col1 FROM tab1
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 col1 FROM tab1
----
32
32
32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6814
SELECT DISTINCT + CAST( - 13 AS SIGNED ) AS col2 FROM tab2
----
-13
skipif mysql # not compatible
query I rowsort label-6814
SELECT DISTINCT + CAST ( - 13 AS INTEGER ) AS col2 FROM tab2
----
-13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6815
SELECT CAST( NULL AS SIGNED ) + - col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6815
SELECT CAST ( NULL AS INTEGER ) + - col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 58 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT + col1 * + col0 + col0 AS col2 FROM tab2 cor0
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6818
SELECT + 4 DIV 23 AS col2 FROM tab1, tab2, tab1 cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-6818
SELECT + 4 / 23 AS col2 FROM tab1, tab2, tab1 cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT - 88 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2
query I rowsort
SELECT 5 * 81 + col0 * tab1.col2 AS col1 FROM tab1
----
4053
567
8085
query I rowsort
SELECT ALL + col2 * + col0 + + ( + ( col0 ) ) * + col2 FROM tab0 cor0
----
14596
1584
70
query I rowsort
SELECT DISTINCT - 69 + col0 AS col1 FROM tab2 cor0
----
-62
10
9
query I rowsort
SELECT ALL - ( col2 ) * col0 + + ( col0 ) * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-15397
-2856
-3430
query I rowsort
SELECT ALL + col0 * + col1 + - 29 AS col1 FROM tab0 AS cor0
----
2035
3366
8070
query I rowsort
SELECT DISTINCT - 89 + col1 * + ( col1 ) AS col0 FROM tab0 AS cor0
----
7307
8192
9320
query I rowsort
SELECT DISTINCT - 90 * col1 FROM tab0 cor0
----
-7740
-8190
-8730
query I rowsort
SELECT - - col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 33 col0 FROM tab0 AS cor0
----
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-6829
SELECT + 18 DIV col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6829
SELECT + 18 / col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL col0 + col0 * col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT + 48 * - cor0.col0 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to a025a79b87c6155cc6a9089757e0d57f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 20 col1 FROM tab0
----
20
query I rowsort
SELECT DISTINCT - + 0 * + col2 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - col1 + cor0.col2 * col1 AS col0 FROM tab2 cor0
----
1475
629
806
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 6726a15019c52908f1f1d0df0cd4c1b8
onlyif mysql # use DIV operator for integer division
query I rowsort label-6836
SELECT col2 + + col2 DIV + col0 FROM tab1 AS cor0
----
57
72
97
skipif mysql # not compatible
query I rowsort label-6836
SELECT col2 + + col2 / + col0 FROM tab1 AS cor0
----
57
72
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6837
SELECT ALL + + cor0.col1 + CAST( NULL AS DECIMAL ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL + + cor0.col1 + CAST ( NULL AS REAL ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col0 * - 31 AS col2 FROM tab0 cor0
----
1085
2759
744
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6839
SELECT DISTINCT + - col2 * CAST( 71 AS SIGNED ) + - cor0.col0 + - 73 AS col2 FROM tab0 AS cor0
----
-179
-2440
-5984
skipif mysql # not compatible
query I rowsort label-6839
SELECT DISTINCT + - col2 * CAST ( 71 AS INTEGER ) + - cor0.col0 + - 73 AS col2 FROM tab0 AS cor0
----
-179
-2440
-5984
onlyif mysql # use DIV operator for integer division
query I rowsort label-6840
SELECT - col0 + - col2 DIV 93 col0 FROM tab1
----
-3
-64
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6840
SELECT - col0 + - col2 / 93 col0 FROM tab1
----
-3
-64
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6841
SELECT - CAST( NULL AS SIGNED ) + + ( - col2 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6841
SELECT - CAST ( NULL AS INTEGER ) + + ( - col2 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6842
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - 2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT CAST ( NULL AS REAL ) + - 2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + 12 * col1 AS col2 FROM tab2 AS cor0
----
204
372
708
query I rowsort
SELECT ALL - col1 * 65 + - cor0.col1 FROM tab2 AS cor0
----
-1122
-2046
-3894
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - col0 col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT + + 55 FROM tab1, tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
55
query I rowsort
SELECT col1 * - 52 FROM tab2
----
-1612
-3068
-884
query I rowsort
SELECT + ( 82 ) + + col1 FROM tab2 cor0
----
113
141
99
query I rowsort
SELECT DISTINCT - 90 AS col0 FROM tab0 AS cor0
----
-90
query I rowsort
SELECT ALL + col2 * + 28 AS col1 FROM tab0 AS cor0
----
2296
28
924
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 - - 41 col2 FROM tab0 AS cor0
----
114
114
114
query I rowsort
SELECT 27 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-27
-30
-69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 + + col2 col0 FROM tab1 cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT col0 * + col0 + - col1 * col1 AS col1 FROM tab2 AS cor0
----
-912
2603
5952
query I rowsort
SELECT DISTINCT col0 * col0 - + cor0.col1 AS col1 FROM tab2 AS cor0
----
18
6025
6224
onlyif mysql # use DIV operator for integer division
query I rowsort label-6856
SELECT - 22 DIV - 45 + col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-6856
SELECT - 22 / - 45 + col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT 27 + col0 FROM tab0 AS cor0
----
116
51
62
query I rowsort
SELECT ALL + col1 * 8 FROM tab1 AS cor0
----
104
208
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6859
SELECT - CAST( NULL AS SIGNED ) * - 42 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6859
SELECT - CAST ( NULL AS INTEGER ) * - 42 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col0 * - col0 + + col1 * - col1 + + col2 * - col0 FROM tab0 AS cor0
----
-10669
-23500
-8764
query I rowsort
SELECT DISTINCT - 80 + col1 FROM tab0 cor0
----
11
17
6
query I rowsort
SELECT ALL - cor0.col0 + col0 * + col2 AS col0 FROM tab0 AS cor0
----
0
7209
768
onlyif mysql # use DIV operator for integer division
query I rowsort label-6863
SELECT - col2 DIV ( - col2 ) + + 11 * 79 FROM tab1 cor0
----
870
870
870
skipif mysql # not compatible
query I rowsort label-6863
SELECT - col2 / ( - col2 ) + + 11 * 79 FROM tab1 cor0
----
870
870
870
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 * col1 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 * 67 FROM tab0 AS cor0
----
-5762
-6097
-6499
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + cor0.col0 - col2 AS col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + + cor0.col0 * - 41 AS col2 FROM tab0 AS cor0
----
-1435
-3649
-984
query I rowsort
SELECT DISTINCT + - col2 * - col0 + + col0 * + 73 FROM tab1 AS cor0
----
13520
381
8320
query I rowsort
SELECT DISTINCT ( - 99 ) + + col1 * + col1 * 2 AS col1 FROM tab1 AS cor0
----
101
1253
239
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 94 col2 FROM tab1 cor0
----
94
94
94
query I rowsort
SELECT ALL 84 FROM tab0 cor0
----
84
84
84
query I rowsort
SELECT - + cor0.col1 * col2 * + col0 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT - ( col2 ) * col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + - ( col0 ) * col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + ( col0 ) + - ( 63 ) FROM tab1 AS cor0
----
-60
1
17
query I rowsort
SELECT DISTINCT cor0.col1 * col1 + - col2 AS col2 FROM tab0 cor0
----
7363
8199
9408
query I rowsort
SELECT ALL + col0 - 25 FROM tab0 AS cor0
----
-1
10
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-6879
SELECT col1 * cor0.col2 DIV + cor0.col0 FROM tab2 AS cor0
----
119
19
8
skipif mysql # not compatible
query I rowsort label-6879
SELECT col1 * cor0.col2 / + cor0.col0 FROM tab2 AS cor0
----
119
19
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * 95 col0 FROM tab2 AS cor0
----
-665
-7410
-7505
query I rowsort
SELECT + col2 * - 37 FROM tab0 AS cor0
----
-1221
-3034
-37
onlyif mysql # use DIV operator for integer division
query I rowsort label-6882
SELECT ALL col1 DIV 25 FROM tab0 AS cor0
----
3
3
3
skipif mysql # not compatible
query I rowsort label-6882
SELECT ALL col1 / 25 FROM tab0 AS cor0
----
3
3
3
query I rowsort
SELECT DISTINCT + - col2 + 40 * col2 AS col2 FROM tab2 AS cor0
----
1014
1053
1482
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6884
SELECT - col0 * CAST( col2 + col2 AS SIGNED ) * 1 FROM tab0 AS cor0
----
-14596
-1584
-70
skipif mysql # not compatible
query I rowsort label-6884
SELECT - col0 * CAST ( col2 + col2 AS INTEGER ) * 1 FROM tab0 AS cor0
----
-14596
-1584
-70
query I rowsort
SELECT ALL - - col0 + 46 FROM tab0 AS cor0
----
135
70
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * ( col0 ) col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + col0 + + 90 * - ( col0 ) AS col1 FROM tab2 AS cor0
----
-623
-6942
-7031
query I rowsort
SELECT ( 85 ) FROM tab2, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT - tab2.col2 * + ( col2 ) + col0 AS col1 FROM tab2
----
-1365
-598
-722
query I rowsort
SELECT + - col0 * 98 FROM tab2 AS cor0
----
-686
-7644
-7742
query I rowsort
SELECT DISTINCT - col0 * - col0 * col1 AS col2 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT ALL col1 + col1 + + col1 AS col2 FROM tab2
----
177
51
93
query I rowsort
SELECT ALL - 89 * ( col0 ) * col2 + 29 + tab1.col0 AS col1 FROM tab1
----
-14386
-324579
-683411
query I rowsort
SELECT DISTINCT + 74 AS col2 FROM tab1, tab1 AS cor0
----
74
query I rowsort
SELECT - col2 + + col0 * cor0.col1 + cor0.col2 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - col1 * + col2 + col2 * - ( + col1 ) - + col2 * - 72 FROM tab2
----
-1196
1444
270
query I rowsort
SELECT ALL - 78 + + col1 * cor0.col2 FROM tab2 AS cor0
----
1456
568
759
query I rowsort
SELECT DISTINCT - + col1 * col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6899
SELECT CAST( NULL AS SIGNED ) + - cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6899
SELECT CAST ( NULL AS INTEGER ) + - cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 16 + col2 * cor0.col1 AS col0 FROM tab0 cor0
----
2822
7446
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6901
SELECT ALL col2 + + 82 + + col1 * - CAST( NULL AS SIGNED ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6901
SELECT ALL col2 + + 82 + + col1 * - CAST ( NULL AS INTEGER ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 68 * col1 + + col2 FROM tab0 AS cor0
----
5881
6270
6597
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6903
SELECT DISTINCT CAST( + col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6903
SELECT DISTINCT CAST ( + col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - col2 + col2 * col0 + + 67 * col0 FROM tab2 AS cor0
----
631
7228
8257
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6905
SELECT DISTINCT CAST( 42 AS SIGNED ) * + col0 + - 87 + col0 AS col2 FROM tab2 AS cor0
----
214
3267
3310
skipif mysql # not compatible
query I rowsort label-6905
SELECT DISTINCT CAST ( 42 AS INTEGER ) * + col0 + - 87 + col0 AS col2 FROM tab2 AS cor0
----
214
3267
3310
query I rowsort
SELECT DISTINCT - col2 + + ( col1 ) + 98 FROM tab0 AS cor0
----
107
151
194
query I rowsort
SELECT + col1 * + 13 AS col1 FROM tab0 AS cor0
----
1118
1183
1261
onlyif mysql # use DIV operator for integer division
query I rowsort label-6908
SELECT ALL col1 * cor0.col2 DIV + 88 + + 79 + - col1 AS col2 FROM tab2 cor0
----
37
57
69
skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL col1 * cor0.col2 / + 88 + + 79 + - col1 AS col2 FROM tab2 cor0
----
37
57
69
query I rowsort
SELECT cor1.col0 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT - 41 * - col1 * col0 AS col1 FROM tab2 AS cor0
----
188682
55063
8897
onlyif mysql # use DIV operator for integer division
query I rowsort label-6911
SELECT - col1 * col1 DIV - 9 FROM tab0 AS cor0
----
1045
821
920
skipif mysql # not compatible
query I rowsort label-6911
SELECT - col1 * col1 / - 9 FROM tab0 AS cor0
----
1045
821
920
query I rowsort
SELECT ALL - col2 * - 89 * - 57 AS col0 FROM tab2 AS cor0
----
-131898
-136971
-192774
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + 67 * - col0 col2 FROM tab1 AS cor0
----
-175
-4278
-5347
query I rowsort
SELECT + 97 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 611d3670a56910ef3403752a59daf048
query I rowsort
SELECT DISTINCT - - 53 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
53
query I rowsort
SELECT - 0 * - col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - + 16 * ( - cor0.col0 ) + - 92 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1156
1172
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 7 * - 33 col0 FROM tab1
----
-12474
-13167
-22176
query I rowsort
SELECT DISTINCT - col1 + - col2 * col0 * - col1 AS col2 FROM tab2
----
119593
51017
5828
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + + col1 col0 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6921
SELECT col2 DIV 22 - - col1 AS col0 FROM tab2
----
18
32
60
skipif mysql # not compatible
query I rowsort label-6921
SELECT col2 / 22 - - col1 AS col0 FROM tab2
----
18
32
60
query I rowsort
SELECT cor0.col0 AS col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT cor1.col1 * 65 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 9ef329f168c312678e07bd24d6a79595
query I rowsort
SELECT + 40 * col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
25840
33480
61360
query I rowsort
SELECT col2 + - ( + col2 ) * col1 * col1 FROM tab2 AS cor0
----
-10944
-25920
-90480
query I rowsort
SELECT ALL + 36 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT DISTINCT 3 FROM tab1, tab1 cor0
----
3
query I rowsort
SELECT DISTINCT cor0.col2 + 78 FROM tab0, tab0 cor0
----
111
160
79
query I rowsort
SELECT ALL - ( 99 ) * - col1 AS col1 FROM tab2
----
1683
3069
5841
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6930
SELECT CAST( - col1 AS SIGNED ) * col1 AS col1 FROM tab2
----
-289
-3481
-961
skipif mysql # not compatible
query I rowsort label-6930
SELECT CAST ( - col1 AS INTEGER ) * col1 AS col1 FROM tab2
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 * + tab0.col2 col1 FROM tab0
----
-2460
-30
-990
query I rowsort
SELECT DISTINCT - col2 * - 30 FROM tab0
----
2460
30
990
query I rowsort
SELECT ( + 32 ) * - tab1.col1 FROM tab1
----
-320
-416
-832
query I rowsort
SELECT DISTINCT col2 * + col1 + - 39 FROM tab0
----
2799
58
7423
onlyif mysql # use DIV operator for integer division
query I rowsort label-6935
SELECT DISTINCT - + 92 - tab1.col1 DIV 1 FROM tab1, tab2, tab2 cor0
----
-102
-105
-118
skipif mysql # not compatible
query I rowsort label-6935
SELECT DISTINCT - + 92 - tab1.col1 / 1 FROM tab1, tab2, tab2 cor0
----
-102
-105
-118
query I rowsort
SELECT DISTINCT + 1 + col2 FROM tab2
----
27
28
39
query I rowsort
SELECT col0 + col2 + col2 AS col0 FROM tab2
----
130
155
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 97 + col2 col0 FROM tab1 AS cor0
----
151
154
193
query I rowsort
SELECT DISTINCT - + col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL - - cor0.col1 * + cor0.col2 + 86 FROM tab1 AS cor0
----
1334
1490
656
onlyif mysql # use DIV operator for integer division
query I rowsort label-6941
SELECT - col0 DIV + col2 AS col2 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6941
SELECT - col0 / + col2 AS col2 FROM tab1
----
-1
0
0
query I rowsort
SELECT 26 * - tab0.col2 FROM tab0
----
-2132
-26
-858
query I rowsort
SELECT DISTINCT - col0 * + col1 + 71 AS col1 FROM tab2 cor0
----
-1272
-146
-4531
query I rowsort
SELECT DISTINCT col1 + 37 AS col2 FROM tab2 AS cor0
----
54
68
96
query I rowsort
SELECT ALL - + col0 * col0 * col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT - col1 * ( - col2 ) * + col2 AS col1 FROM tab1 cor0
----
119808
32490
75816
query I rowsort
SELECT + - col2 - + 14 * - col1 * col1 FROM tab2 AS cor0
----
13427
4008
48708
onlyif mysql # use DIV operator for integer division
query I rowsort label-6948
SELECT ALL + col1 + + cor0.col1 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-6948
SELECT ALL + col1 + + cor0.col1 / cor0.col2 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + cor0.col2 + ( col0 ) FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6950
SELECT DISTINCT tab1.col0 DIV - col0 col2 FROM tab1
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6950
SELECT DISTINCT tab1.col0 / - col0 col2 FROM tab1
----
-1
query I rowsort
SELECT - col2 * - 32 FROM tab2
----
1216
832
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-6952
SELECT + col0 + + ( + col2 ) DIV - col1 FROM tab1 AS cor0
----
1
59
73
skipif mysql # not compatible
query I rowsort label-6952
SELECT + col0 + + ( + col2 ) / - col1 FROM tab1 AS cor0
----
1
59
73
query I rowsort
SELECT DISTINCT + 27 AS col1 FROM tab0
----
27
query I rowsort
SELECT ALL + 26 * + col1 + 6 + ( + col2 + col1 ) * - col1 FROM tab1 AS cor0
----
-1073
-1398
-404
query I rowsort
SELECT ALL + 28 AS col1 FROM tab1 AS cor0
----
28
28
28
query I rowsort
SELECT - 27 * col1 + - tab1.col0 FROM tab1
----
-334
-431
-705
query I rowsort
SELECT DISTINCT 11 * 30 AS col0 FROM tab2
----
330
onlyif mysql # use DIV operator for integer division
query I rowsort label-6958
SELECT ALL + col1 DIV 7 FROM tab0
----
12
13
13
skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL + col1 / 7 FROM tab0
----
12
13
13
query I rowsort
SELECT - ( + cor0.col2 ) + + col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT - - col1 * + col1 - + col1 AS col0 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT cor0.col0 - cor0.col0 AS col1 FROM tab2 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6962
SELECT 26 + + col0 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6962
SELECT 26 + + col0 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 * col1 col0 FROM tab2
----
1298
374
682
query I rowsort
SELECT ALL 24 * - col0 AS col2 FROM tab0 AS cor0
----
-2136
-576
-840
query I rowsort
SELECT DISTINCT - + cor0.col2 + + col1 * col2 FROM tab0 cor0
----
2805
7380
96
query I rowsort
SELECT - + 34 * + 18 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 4bec890ee8d04553f27ba02ae784f8ed
query I rowsort
SELECT - - col2 * col2 + col2 FROM tab2 cor0
----
1482
702
756
query I rowsort
SELECT col1 * - ( - 48 ) FROM tab0
----
4128
4368
4656
query I rowsort
SELECT - col1 + ( + col2 ) AS col0 FROM tab0 AS cor0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 58 * + col0 col0 FROM tab2 AS cor0
----
413
4602
4661
query I rowsort
SELECT - - col0 * + 32 AS col0 FROM tab1 AS cor0
----
2048
2560
96
query I rowsort
SELECT 79 * + col1 FROM tab0 AS cor0
----
6794
7189
7663
query I rowsort
SELECT cor0.col0 * cor0.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5
onlyif mysql # use DIV operator for integer division
query I rowsort label-6974
SELECT col0 * col2 + col0 + - col1 * col0 DIV col0 FROM tab1 cor0
----
139
3702
7747
skipif mysql # not compatible
query I rowsort label-6974
SELECT col0 * col2 + col0 + - col1 * col0 / col0 FROM tab1 cor0
----
139
3702
7747
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6975
SELECT - CAST( NULL AS SIGNED ) * ( cor0.col1 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6975
SELECT - CAST ( NULL AS INTEGER ) * ( cor0.col1 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 98 AS col2 FROM tab0 cor0
----
98
query I rowsort
SELECT DISTINCT - col2 * ( cor0.col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-6978
SELECT ALL + - col2 DIV + col2 + - col1 * col0 + - col0 FROM tab1 cor0
----
-1121
-705
-82
skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL + - col2 / + col2 + - col1 * col0 + - col0 FROM tab1 cor0
----
-1121
-705
-82
query I rowsort
SELECT - + ( 2 ) * col2 + + col2 * - col0 FROM tab2 AS cor0
----
-2080
-243
-3078
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6980
SELECT + - CAST( NULL AS SIGNED ) + col2 * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6980
SELECT + - CAST ( NULL AS INTEGER ) + col2 * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( - col0 ) - + col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT ALL - col1 * col0 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT - 55 * - ( + cor0.col0 ) + - col2 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
12193
1960
2112
onlyif mysql # use DIV operator for integer division
query I rowsort label-6984
SELECT DISTINCT col2 * - col0 - col0 DIV + 56 FROM tab1 AS cor0
----
-162
-3649
-7681
skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT col2 * - col0 - col0 / + 56 FROM tab1 AS cor0
----
-162
-3649
-7681
query I rowsort
SELECT DISTINCT + col0 + col2 + - col1 * + col2 FROM tab2 AS cor0
----
-1430
-529
-803
query I rowsort
SELECT DISTINCT - - cor0.col1 - + 4 * col1 AS col0 FROM tab2 AS cor0
----
-177
-51
-93
query I rowsort
SELECT ALL - cor0.col1 * col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT + 0 + - col2 * + ( + col0 * + col2 ) FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT 53 + - 91 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + col1 * col2 col0 FROM tab0 AS cor0
----
0
2752
7371
onlyif mysql # use DIV operator for integer division
query I rowsort label-6991
SELECT DISTINCT + col1 DIV col2 + cor0.col0 FROM tab0 AS cor0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-6991
SELECT DISTINCT + col1 / col2 + cor0.col0 FROM tab0 AS cor0
----
132
26
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-6992
SELECT ALL - + col2 DIV - col0 + + col1 AS col0 FROM tab0 AS cor0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL - + col2 / - col0 + + col1 AS col0 FROM tab0 AS cor0
----
87
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6993
SELECT + col2 + + col2 DIV col1 col1 FROM tab2
----
26
27
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6993
SELECT + col2 + + col2 / col1 col1 FROM tab2
----
26
27
40
query I rowsort
SELECT - col0 * - 57 - - col1 FROM tab1 AS cor0
----
197
3658
4573
query I rowsort
SELECT - col1 - - 21 AS col1 FROM tab1 AS cor0
----
-5
11
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6996
SELECT + col0 * CAST( NULL AS SIGNED ) * ( col0 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6996
SELECT + col0 * CAST ( NULL AS INTEGER ) * ( col0 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * - ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 col2 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6999
SELECT DISTINCT col1 DIV col2 + col1 AS col0 FROM tab0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-6999
SELECT DISTINCT col1 / col2 + col1 AS col0 FROM tab0
----
194
88
92
query I rowsort
SELECT DISTINCT - ( 68 ) AS col2 FROM tab2, tab1 cor0
----
-68
query I rowsort
SELECT ALL col1 + ( tab0.col0 ) FROM tab0
----
110
132
180
query I rowsort
SELECT col1 * - 55 + col1 AS col2 FROM tab2 cor0
----
-1674
-3186
-918
query I rowsort
SELECT DISTINCT + col2 + - 92 FROM tab1
----
-35
-38
4
query I rowsort
SELECT tab2.col0 + + ( 41 ) + col1 * col2 AS col0 FROM tab2
----
1653
766
885
query I rowsort
SELECT ALL + 25 AS col1 FROM tab1
----
25
25
25
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7006
SELECT col0 + + col1 * - CAST( col2 * + col2 AS SIGNED ) AS col0 FROM tab1
----
-119728
-32426
-75813
skipif mysql # not compatible
query I rowsort label-7006
SELECT col0 + + col1 * - CAST ( col2 * + col2 AS INTEGER ) AS col0 FROM tab1
----
-119728
-32426
-75813
query I rowsort
SELECT ALL - - col2 + col1 * + cor0.col0 * col2 + col1 FROM tab1 AS cor0
----
36547
4292
99949
query I rowsort
SELECT - cor0.col1 + + col0 AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL + + col0 + col0 * - col2 * col2 FROM tab0 AS cor0
----
-26112
-598347
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7010
SELECT DISTINCT + col2 DIV - cor0.col1 + cor0.col0 * col0 col2 FROM tab0 AS cor0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7010
SELECT DISTINCT + col2 / - cor0.col1 + cor0.col0 * col0 col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - col1 * + col1 * - 1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT - 53 * col0 * ( + col0 ) FROM tab0 AS cor0
----
-30528
-419813
-64925
query I rowsort
SELECT DISTINCT + cor0.col0 * - cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ALL cor0.col0 + cor0.col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL tab2.col0 * - 53 * tab2.col1 FROM tab2
----
-11501
-243906
-71179
onlyif mysql # use DIV operator for integer division
query I rowsort label-7016
SELECT DISTINCT - col1 DIV + 31 FROM tab0
----
-2
-3
skipif mysql # not compatible
query I rowsort label-7016
SELECT DISTINCT - col1 / + 31 FROM tab0
----
-2
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-7017
SELECT ALL - + cor0.col1 + 85 DIV col2 AS col1 FROM tab1 AS cor0
----
-13
-25
-9
skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL - + cor0.col1 + 85 / col2 AS col1 FROM tab1 AS cor0
----
-13
-25
-9
query I rowsort
SELECT DISTINCT + col0 + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506
onlyif mysql # use DIV operator for integer division
query I rowsort label-7019
SELECT + + col1 DIV + ( col1 ) AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7019
SELECT + + col1 / + ( col1 ) AS col1 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7020
SELECT 96 * - ( col1 ) + col2 DIV col1 FROM tab0 cor0
----
-8256
-8736
-9312
skipif mysql # not compatible
query I rowsort label-7020
SELECT 96 * - ( col1 ) + col2 / col1 FROM tab0 cor0
----
-8256
-8736
-9312
query I rowsort
SELECT + col2 * col1 * col2 + - 79 + col0 FROM tab0
----
53
611894
93599
onlyif mysql # use DIV operator for integer division
query I rowsort label-7022
SELECT ALL + - ( + col2 ) DIV col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-7022
SELECT ALL + - ( + col2 ) / col0 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col1 AS col0 FROM tab0, tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - 86 AS col2 FROM tab0, tab0 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to 1ef7453f3d4bc7d93f06fc98b5d59841
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7025
SELECT CAST( - col1 AS SIGNED ) + col2 FROM tab2
----
-33
-4
21
skipif mysql # not compatible
query I rowsort label-7025
SELECT CAST ( - col1 AS INTEGER ) + col2 FROM tab2
----
-33
-4
21
query I rowsort
SELECT 68 * col2 + col1 + - ( - 15 ) * col0 FROM tab0
----
2690
690
7002
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 - tab0.col0 * col1 * + col1 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT DISTINCT + col1 + + 75 AS col2 FROM tab1
----
101
85
88
query I rowsort
SELECT ALL col0 + 7 FROM tab0 cor0
----
31
42
96
query I rowsort
SELECT DISTINCT - 15 * - 40 FROM tab0 AS cor0
----
600
query I rowsort
SELECT DISTINCT - 45 + 18 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
-27
query I rowsort
SELECT ALL cor0.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to c6425afc100dd55de8d45dec18c469ea
query I rowsort
SELECT DISTINCT + col2 - col0 * - col2 * + 85 AS col2 FROM tab0 AS cor0
----
2976
620412
67353
query I rowsort
SELECT - 6 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934
query I rowsort
SELECT ALL + - col0 * - col1 + col0 AS col0 FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT ALL + 11 + - cor0.col2 FROM tab1 AS cor0
----
-43
-46
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7038
SELECT ALL + - col0 DIV col2 col0 FROM tab1 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7038
SELECT ALL + - col0 / col2 col0 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT - + col2 * - col0 + ( - col0 ) AS col1 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT 91 + - col0 AS col1 FROM tab1 cor0
----
11
27
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-7041
SELECT + + col1 DIV + col1 - + ( + col0 ) * col0 AS col0 FROM tab0 AS cor0
----
-1224
-575
-7920
skipif mysql # not compatible
query I rowsort label-7041
SELECT + + col1 / + col1 - + ( + col0 ) * col0 AS col0 FROM tab0 AS cor0
----
-1224
-575
-7920
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7042
SELECT + col1 * col1 + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7042
SELECT + col1 * col1 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + 30 + + col1 + col0 AS col0 FROM tab0 AS cor0
----
102
150
80
query I rowsort
SELECT 11 + cor0.col2 FROM tab0 AS cor0
----
12
44
93
query I rowsort
SELECT DISTINCT - col1 * cor0.col0 + 88 FROM tab1 AS cor0
----
-552
-952
10
query I rowsort
SELECT ALL + - 7 - - cor0.col1 AS col1 FROM tab2 AS cor0
----
10
24
52
query I rowsort
SELECT DISTINCT + col0 * + col2 + cor0.col1 FROM tab0 cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-7048
SELECT ALL ( + col2 ) DIV col1 + + tab1.col1 col1 FROM tab1
----
15
20
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL ( + col2 ) / col1 + + tab1.col1 col1 FROM tab1
----
15
20
28
query I rowsort
SELECT + col1 * col1 + col2 + + ( + col1 * - tab2.col2 ) AS col0 FROM tab2
----
-319
151
1973
query I rowsort
SELECT DISTINCT - 83 * + 84 * col0 + + 42 FROM tab2
----
-48762
-543774
-550746
onlyif mysql # use DIV operator for integer division
query I rowsort label-7051
SELECT ALL - col0 DIV - 71 + tab0.col2 FROM tab0
----
1
33
83
skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL - col0 / - 71 + tab0.col2 FROM tab0
----
1
33
83
query I rowsort
SELECT + col2 * - col2 - + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT - + 0 * - col2 + col2 * + col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + + 46 * - col1 - + col1 FROM tab2 cor0
----
-1457
-2773
-799
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT - ( + 54 ) + - col1 FROM tab0
----
-140
-145
-151
query I rowsort
SELECT DISTINCT + col1 * - tab1.col2 AS col0 FROM tab1
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort
SELECT - - col1 * + col1 / - ( - col1 ) + CAST ( + ( - col0 ) AS REAL ) FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT col1 * - col0 + - col0 AS col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT - cor0.col2 * + ( + col2 ) + col2 * + col0 FROM tab2 AS cor0
----
-540
1352
1558
query I rowsort
SELECT 69 + + 46 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 6c283896387f7b811ffd29c508bbde86
query I rowsort
SELECT - - 16 + 51 * + col0 AS col2 FROM tab1 cor0
----
169
3280
4096
query I rowsort
SELECT ALL 1 FROM tab2, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
onlyif mysql # use DIV operator for integer division
query I rowsort label-7064
SELECT + col0 + - ( cor0.col1 ) DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-7064
SELECT + col0 + - ( cor0.col1 ) / cor0.col1 AS col2 FROM tab2 AS cor0
----
6
77
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7065
SELECT + - ( col2 ) DIV col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-7065
SELECT + - ( col2 ) / col0 FROM tab2 AS cor0
----
-3
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * ( - col1 ) * col1 col1 FROM tab1
----
-1000
-17576
-2197
query I rowsort
SELECT ALL 4 * + 69 FROM tab1
----
276
276
276
query I rowsort
SELECT DISTINCT + cor0.col0 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - col0 * 16 AS col2 FROM tab1 AS cor0
----
-1024
-1280
-48
query I rowsort
SELECT ALL - + 46 + + col2 FROM tab0 AS cor0
----
-13
-45
36
query I rowsort
SELECT ALL - + 53 * - 1 FROM tab2 AS cor0
----
53
53
53
query I rowsort
SELECT DISTINCT - + ( + col0 ) * cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-7073
SELECT ALL + col0 + - 2 * cor0.col2 DIV 36 AS col1 FROM tab0 AS cor0
----
23
35
85
skipif mysql # not compatible
query I rowsort label-7073
SELECT ALL + col0 + - 2 * cor0.col2 / 36 AS col1 FROM tab0 AS cor0
----
23
35
85
query I rowsort
SELECT ALL ( - 0 ) FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7075
SELECT + - CAST( + 50 AS SIGNED ) FROM tab0 AS cor0
----
-50
-50
-50
skipif mysql # not compatible
query I rowsort label-7075
SELECT + - CAST ( + 50 AS INTEGER ) FROM tab0 AS cor0
----
-50
-50
-50
query I rowsort
SELECT - + 64 + col1 * + col2 FROM tab2 AS cor0
----
1470
582
773
query I rowsort
SELECT DISTINCT 16 * - col1 AS col2 FROM tab1 AS cor0
----
-160
-208
-416
query I rowsort
SELECT DISTINCT + ( col2 ) + + col1 FROM tab2 AS cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 * + col2 col1 FROM tab2 AS cor0
----
-2496
-2592
-3648
query I rowsort
SELECT DISTINCT - - 82 FROM tab1 cor0
----
82
query I rowsort
SELECT DISTINCT 90 AS col0 FROM tab2, tab0 AS cor0
----
90
query I rowsort
SELECT col0 * - ( col0 ) * + col0 AS col1 FROM tab1
----
-262144
-27
-512000
query I rowsort
SELECT col0 * 62 AS col0 FROM tab0
----
1488
2170
5518
query I rowsort
SELECT - ( col1 ) * - col2 * + ( - cor0.col1 + - col1 ) AS col1 FROM tab0 AS cor0
----
-1358084
-18818
-488136
query I rowsort
SELECT + - 74 + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-2102
-263
-3076
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7086
SELECT ALL CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7086
SELECT ALL CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 * - col0 col0 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT - col1 * tab1.col0 - - col2 AS col0 FROM tab1
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-7089
SELECT ALL + col1 DIV + col1 - col1 AS col2 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-7089
SELECT ALL + col1 / + col1 - col1 AS col2 FROM tab1 AS cor0
----
-12
-25
-9
query I rowsort
SELECT DISTINCT 72 * col1 AS col1 FROM tab0 AS cor0
----
6192
6552
6984
query I rowsort
SELECT ALL + col0 * - col2 + + cor0.col0 * + col1 FROM tab0 AS cor0
----
1272
3360
801
query I rowsort
SELECT cor0.col2 * 26 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to ca879b43ffbc7af715778159c414d0b8
query I rowsort
SELECT DISTINCT col2 * col1 * + col2 AS col0 FROM tab0
----
611884
93654
97
query I rowsort
SELECT + - cor0.col1 + + 90 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-661
-7079
-7127
query I rowsort
SELECT DISTINCT - cor0.col0 * + ( col0 + col2 ) AS col0 FROM tab0 AS cor0
----
-1260
-1368
-15219
onlyif mysql # use DIV operator for integer division
query I rowsort label-7096
SELECT ALL + col0 DIV 27 FROM tab2 cor0
----
0
2
2
skipif mysql # not compatible
query I rowsort label-7096
SELECT ALL + col0 / 27 FROM tab2 cor0
----
0
2
2
query I rowsort
SELECT ALL - tab2.col0 * col1 - + col0 FROM tab2
----
-1422
-224
-4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col1 ) col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ALL + tab0.col0 * + tab0.col0 AS col0 FROM tab0
----
1225
576
7921
query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab0 AS cor2, tab1 AS cor3
----
13122 values hashing to 0ace18fd5a1a12629fe0319524ae51f5
query I rowsort
SELECT ALL 89 + + 94 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 1696f391cb4289960f708d07aec8f8a0
query I rowsort
SELECT col0 * ( col1 + col2 ) AS col0 FROM tab2 AS cor0
----
406
4345
6630
query I rowsort
SELECT + col2 * + col2 + - col1 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT cor0.col2 + 45 * col1 * col0 AS col2 FROM tab1 AS cor0
----
28857
3564
46896
query I rowsort
SELECT - - col0 + 69 * - 74 AS col1 FROM tab2 cor0
----
-5027
-5028
-5099
query I rowsort
SELECT + col1 * 48 FROM tab1
----
1248
480
624
query I rowsort
SELECT + 82 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + tab0.col1 + + col1 col1 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT tab1.col1 + - col1 * - col1 * tab1.col0 + - col2 AS col2 FROM tab1
----
13437
2000
6353
query I rowsort
SELECT ALL - tab1.col0 + - col2 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT ALL col2 + - col0 + - 93 * - col1 FROM tab1
----
1225
2469
923
query I rowsort
SELECT ALL + col2 + 13 + - col0 FROM tab2
----
-28
-39
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + cor0.col0 col1 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7114
SELECT - + col1 - CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-137
-38
-96
skipif mysql # not compatible
query I rowsort label-7114
SELECT - + col1 - CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT - col0 * 63 FROM tab1 AS cor0
----
-189
-4032
-5040
query I rowsort
SELECT DISTINCT col2 * ( col0 ) + + cor0.col1 + col2 AS col2 FROM tab2 cor0
----
2113
247
3057
query I rowsort
SELECT col0 * + col0 + + col1 * - col2 + - col2 AS col1 FROM tab0 AS cor0
----
-2295
1127
377
query I rowsort
SELECT - 62 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c
query I rowsort
SELECT tab1.col2 + - tab1.col1 AS col1 FROM tab1
----
28
47
83
query I rowsort
SELECT ALL - ( 80 ) AS col0 FROM tab2 AS cor0
----
-80
-80
-80
query I rowsort
SELECT DISTINCT + 79 + - col0 FROM tab0 AS cor0
----
-10
44
55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7122
SELECT + CAST( NULL AS SIGNED ) + - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7122
SELECT + CAST ( NULL AS INTEGER ) + - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col0 + - col1 * col0 + - cor0.col0 AS col2 FROM tab2 cor0
----
-1501
-231
-4758
query I rowsort
SELECT DISTINCT - ( col2 ) * col2 + - col0 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT ALL + 98 * - 63 + col0 FROM tab2 cor0
----
-6095
-6096
-6167
onlyif mysql # use DIV operator for integer division
query I rowsort label-7126
SELECT + col0 DIV - col1 AS col0 FROM tab1 cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-7126
SELECT + col0 / - col1 AS col0 FROM tab1 cor0
----
-6
-6
0
query I rowsort
SELECT col0 + - 60 + col0 * col1 FROM tab2 AS cor0
----
1362
164
4620
query I rowsort
SELECT ALL - col2 + + col1 * + col0 AS col1 FROM tab1 AS cor0
----
24
583
944
onlyif mysql # use DIV operator for integer division
query I rowsort label-7129
SELECT DISTINCT col1 * 5 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-7129
SELECT DISTINCT col1 * 5 / + col2 AS col2 FROM tab1 AS cor0
----
0
2
query I rowsort
SELECT - col2 + 92 FROM tab1 AS cor0
----
-4
35
38
query I rowsort
SELECT - - cor0.col2 * cor0.col1 + cor0.col2 * - col1 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + + col1 + ( - col0 ) + 75 AS col1 FROM tab2 AS cor0
----
13
56
99
query I rowsort
SELECT - - col0 * - 23 * - col2 AS col1 FROM tab2 AS cor0
----
4347
46644
69046
query I rowsort
SELECT - - col0 + 8 AS col1 FROM tab2 AS cor0
----
15
86
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7135
SELECT DISTINCT CAST( col2 AS SIGNED ) * + col0 + 65 AS col1 FROM tab1 cor0
----
227
3713
7745
skipif mysql # not compatible
query I rowsort label-7135
SELECT DISTINCT CAST ( col2 AS INTEGER ) * + col0 + 65 AS col1 FROM tab1 cor0
----
227
3713
7745
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7136
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - col2 * col0 + + CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7136
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - col2 * col0 + + CAST ( NULL AS INTEGER ) * + col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - col1 + 71 FROM tab2 AS cor0
----
12
40
54
query I rowsort
SELECT - 64 * col0 + + col0 AS col0 FROM tab1 AS cor0
----
-189
-4032
-5040
query I rowsort
SELECT - ( - col1 ) * col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - 86 AS col1 FROM tab0 cor0
----
-86
-86
-86
query I rowsort
SELECT DISTINCT + - cor0.col1 * + cor0.col0 + + col0 * + 43 * + col0 AS col0 FROM tab2 cor0
----
1890
257010
267020
onlyif mysql # use DIV operator for integer division
query I rowsort label-7142
SELECT DISTINCT + cor0.col2 + + col1 DIV + 23 AS col1 FROM tab1 AS cor0
----
55
57
96
skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT + cor0.col2 + + col1 / + 23 AS col1 FROM tab1 AS cor0
----
55
57
96
query I rowsort
SELECT DISTINCT + col2 + col2 * + 18 AS col2 FROM tab2 cor0
----
494
513
722
query I rowsort
SELECT DISTINCT - + col2 - 77 AS col2 FROM tab1 AS cor0
----
-131
-134
-173
query I rowsort
SELECT DISTINCT cor0.col1 * col2 - col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-1512
-2679
-7968
query I rowsort
SELECT ALL - - cor0.col1 * 70 + col1 FROM tab1 AS cor0
----
1846
710
923
query I rowsort
SELECT + 4 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
query I rowsort
SELECT DISTINCT - - cor0.col2 * + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1444
676
729
query I rowsort
SELECT DISTINCT - 83 * - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
1411
2573
4897
onlyif mysql # use DIV operator for integer division
query I rowsort label-7150
SELECT + 98 DIV + col0 - cor0.col0 DIV 13 FROM tab0 cor0
----
-5
0
3
skipif mysql # not compatible
query I rowsort label-7150
SELECT + 98 / + col0 - cor0.col0 / 13 FROM tab0 cor0
----
-5
0
3
query I rowsort
SELECT + col2 * - col1 * - ( 63 ) FROM tab1 AS cor0
----
35910
78624
88452
query I rowsort
SELECT + col1 + - col2 * + col1 FROM tab0 AS cor0
----
-2752
-7371
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7153
SELECT ALL - ( - tab0.col1 ) + - col1 * col0 DIV - 11 AS col2 FROM tab0
----
273
405
827
skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL - ( - tab0.col1 ) + - col1 * col0 / - 11 AS col2 FROM tab0
----
273
405
827
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7154
SELECT ALL CAST( NULL AS DECIMAL ) + col2 * col1 + col1 / col1 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7154
SELECT ALL CAST ( NULL AS REAL ) + col2 * col1 + col1 / col1 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col1 + - cor0.col1 * + col2 + + col1 col0 FROM tab0 cor0
----
-15470
-3395
-4816
query I rowsort
SELECT cor0.col2 * + col0 * - ( - ( + col1 ) ) + col1 * ( + col1 ) AS col1 FROM tab0 cor0
----
12804
672399
75508
query I rowsort
SELECT DISTINCT + + 86 + col0 * + cor0.col1 FROM tab2 AS cor0
----
1429
303
4688
query I rowsort
SELECT ALL + col2 * col2 - ( - col1 ) AS col2 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT ALL + - cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - + ( - col2 ) * + col1 - - ( cor0.col0 ) FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT + 80 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-16
23
26
query I rowsort
SELECT + - 33 - - col2 AS col2 FROM tab1 AS cor0
----
21
24
63
query I rowsort
SELECT - 93 * + col2 AS col1 FROM tab1
----
-5022
-5301
-8928
onlyif mysql # use DIV operator for integer division
query I rowsort label-7164
SELECT - + col1 DIV - 52 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7164
SELECT - + col1 / - 52 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 * + tab1.col2 * + tab1.col0 AS col1 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT - col0 + + ( col0 ) FROM tab2
----
0
0
0
query I rowsort
SELECT + 42 * col2 + + col1 FROM tab0 AS cor0
----
139
1472
3535
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7168
SELECT DISTINCT CAST( col0 AS SIGNED ) * - col2 + + col0 * - col2 FROM tab2 cor0
----
-378
-4056
-6004
skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT CAST ( col0 AS INTEGER ) * - col2 + + col0 * - col2 FROM tab2 cor0
----
-378
-4056
-6004
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 col0 FROM tab0 AS cor0
----
61
61
61
query I rowsort
SELECT DISTINCT 46 + 91 AS col2 FROM tab2
----
137
onlyif mysql # use DIV operator for integer division
query I rowsort label-7171
SELECT tab0.col1 DIV tab0.col2 AS col1 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-7171
SELECT tab0.col1 / tab0.col2 AS col1 FROM tab0
----
1
2
97
query I rowsort
SELECT ALL + 88 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT ALL - - col0 * 80 + col2 * cor0.col0 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
780
8327
9339
query I rowsort
SELECT - - ( 82 ) * - col1 AS col0 FROM tab2 AS cor0
----
-1394
-2542
-4838
query I rowsort
SELECT + + 74 + - col1 FROM tab1 AS cor0
----
48
61
64
query I rowsort
SELECT + col1 * - ( col2 ) AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7177
SELECT - - CAST( + col1 AS SIGNED ) * - col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif mysql # not compatible
query I rowsort label-7177
SELECT - - CAST ( + col1 AS INTEGER ) * - col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - + col2 * - col0 - ( + 34 * + col1 ) AS col1 FROM tab2 AS cor0
----
-865
22
2424
query I rowsort
SELECT - + col0 - - col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT - col0 * col0 - col2 AS col2 FROM tab0 AS cor0
----
-1226
-609
-8003
query I rowsort
SELECT col2 * col2 * col0 AS col1 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT cor1.col1 FROM tab2, tab0 cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL col1 * - 13 FROM tab2 AS cor0
----
-221
-403
-767
query I rowsort
SELECT 3 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
query I rowsort
SELECT + ( + 50 ) * col1 + + col0 * ( col0 ) FROM tab2 AS cor0
----
1599
7091
9034
query I rowsort
SELECT - + 65 * col2 + + col0 AS col0 FROM tab0 AS cor0
----
-2121
-30
-5241
query I rowsort
SELECT 46 * + tab1.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 1cd935e612b4c432effb9b66fa7bca63
query I rowsort
SELECT - - 9 + + col1 * + cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
244077
679051
9418
query I rowsort
SELECT DISTINCT - ( col0 ) * - col1 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7190
SELECT DISTINCT + + cor0.col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT + + cor0.col2 / + col1 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + 59 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT + 67 + + cor0.col2 * + 1 FROM tab2 AS cor0
----
105
93
94
query I rowsort
SELECT ALL - cor0.col1 * - col0 - ( col1 ) FROM tab0 cor0
----
1978
3298
8008
query I rowsort
SELECT ALL + col1 + - col0 * - col0 AS col0 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT ALL - col1 * + 19 FROM tab0 AS cor0
----
-1634
-1729
-1843
query I rowsort
SELECT - col0 + + col1 * col0 * col1 FROM tab0 cor0
----
177480
329280
736920
query I rowsort
SELECT ALL + col1 + col1 * - col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT - col2 + 46 AS col2 FROM tab1 AS cor0
----
-11
-50
-8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7199
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) * - col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7199
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) * - col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT col0 * - cor0.col2 + col0 * + col0 FROM tab1 AS cor0
----
-1280
-153
448
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7201
SELECT DISTINCT + col2 + ( 4 ) * col2 + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7201
SELECT DISTINCT + col2 + ( 4 ) * col2 + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + + ( cor0.col1 ) + col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT 60 * - col0 + - col0 AS col1 FROM tab2 AS cor0
----
-427
-4758
-4819
query I rowsort
SELECT + + col1 - - col2 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT col0 + + col2 * - col1 - - col0 AS col1 FROM tab0 AS cor0
----
-27
-2790
-7284
query I rowsort
SELECT ALL + 95 FROM tab2 cor0
----
95
95
95
query I rowsort
SELECT ALL col0 * - col1 * - col0 AS col1 FROM tab2
----
106097
1519
358956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 * 70 col0 FROM tab0
----
1750
1750
1750
query I rowsort
SELECT ALL 32 AS col1 FROM tab1, tab0 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 6bef041528d0147be26f7de162c66a5f
query I rowsort
SELECT DISTINCT 10 * col1 FROM tab2
----
170
310
590
query I rowsort
SELECT + col1 + - 25 + - col1 AS col1 FROM tab0
----
-25
-25
-25
query I rowsort
SELECT + - 94 * col2 - + col2 FROM tab2 AS cor0
----
-2470
-2565
-3610
onlyif mysql # use DIV operator for integer division
query I rowsort label-7213
SELECT ALL 88 DIV - col1 FROM tab2 AS cor0
----
-1
-2
-5
skipif mysql # not compatible
query I rowsort label-7213
SELECT ALL 88 / - col1 FROM tab2 AS cor0
----
-1
-2
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-7214
SELECT DISTINCT CAST( col0 AS SIGNED ) DIV col1 AS col2 FROM tab1
----
0
6
skipif mysql # not compatible
query I rowsort label-7214
SELECT DISTINCT CAST ( col0 AS INTEGER ) / col1 AS col2 FROM tab1
----
0
6
query I rowsort
SELECT DISTINCT 98 + - col2 * + tab0.col1 - col2 AS col1 FROM tab0
----
-2773
-7446
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7216
SELECT 61 DIV 61 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7216
SELECT 61 / 61 FROM tab0
----
1
1
1
query I rowsort
SELECT - 76 - col2 AS col1 FROM tab2
----
-102
-103
-114
query I rowsort
SELECT DISTINCT - col2 + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT col1 + col0 * col2 - + cor0.col2 FROM tab0 AS cor0
----
131
7307
845
query I rowsort
SELECT ALL + 21 AS col0 FROM tab2 cor0
----
21
21
21
query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) * col2 * + col1 AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 * + col1 col1 FROM tab2 AS cor0
----
1767
3363
969
query I rowsort
SELECT + + col2 - + col2 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - 87 * + col0 AS col1 FROM tab1 AS cor0
----
-261
-5568
-6960
onlyif mysql # use DIV operator for integer division
query I rowsort label-7225
SELECT ALL - + ( - col0 ) DIV + 81 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL - + ( - col0 ) / + 81 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 5 * + 63 FROM tab1
----
-315
-315
-315
query I rowsort
SELECT ALL ( 1 ) AS col2 FROM tab2
----
1
1
1
query I rowsort
SELECT 33 * col2 - + col1 FROM tab0
----
-64
1003
2615
query I rowsort
SELECT DISTINCT 25 - 1 * + col0 FROM tab1
----
-39
-55
22
query I rowsort
SELECT ALL 41 + col1 AS col0 FROM tab2
----
100
58
72
query I rowsort
SELECT 84 * col2 AS col1 FROM tab2
----
2184
2268
3192
query I rowsort
SELECT 23 * col0 + 47 FROM tab1 AS cor0
----
116
1519
1887
query I rowsort
SELECT DISTINCT - - 40 * col2 FROM tab2 cor0
----
1040
1080
1520
query I rowsort
SELECT ALL col2 * - col0 * col0 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT ALL - 75 * - col0 FROM tab0 AS cor0
----
1800
2625
6675
query I rowsort
SELECT + - 28 * col2 FROM tab0 AS cor0
----
-2296
-28
-924
query I rowsort
SELECT ALL - + 50 * + col2 AS col0 FROM tab2 cor0
----
-1300
-1350
-1900
onlyif mysql # use DIV operator for integer division
query I rowsort label-7238
SELECT DISTINCT + 79 DIV col0 AS col0 FROM tab2 AS cor0
----
1
11
skipif mysql # not compatible
query I rowsort label-7238
SELECT DISTINCT + 79 / col0 AS col0 FROM tab2 AS cor0
----
1
11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7239
SELECT - col2 * col2 + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-2913
-3185
-9136
skipif mysql # not compatible
query I rowsort label-7239
SELECT - col2 * col2 + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT ALL + ( col2 ) * col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - col1 + col2 * + col2 * - ( col2 + + col0 ) FROM tab2 AS cor0
----
-168965
-24817
-70363
onlyif mysql # use DIV operator for integer division
query I rowsort label-7242
SELECT ALL 76 DIV + col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-7242
SELECT ALL 76 / + col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT DISTINCT + col1 * + col0 + + 71 AS col1 FROM tab2 AS cor0
----
1414
288
4673
query I rowsort
SELECT - col0 - cor0.col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT col1 * col1 * - 90 - - tab0.col1 FROM tab0
----
-665554
-745199
-846713
query I rowsort
SELECT DISTINCT - - col2 * - col2 + 9 FROM tab2 cor0
----
-1435
-667
-720
onlyif mysql # use DIV operator for integer division
query I rowsort label-7247
SELECT + - cor0.col1 DIV + 20 FROM tab0 AS cor0
----
-4
-4
-4
skipif mysql # not compatible
query I rowsort label-7247
SELECT + - cor0.col1 / + 20 FROM tab0 AS cor0
----
-4
-4
-4
query I rowsort
SELECT + - col2 + 88 * cor0.col2 FROM tab2 AS cor0
----
2262
2349
3306
query I rowsort
SELECT DISTINCT - col2 * col0 * - cor0.col0 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT ALL + col1 * 99 + col0 + + 68 AS col1 FROM tab2 cor0
----
1830
3144
5987
query I rowsort
SELECT DISTINCT - col0 * + tab0.col0 * col1 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT ALL + 9 * col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
36864
57600
81
query I rowsort
SELECT - col0 * - 9 AS col1 FROM tab2 AS cor0
----
63
702
711
onlyif mysql # use DIV operator for integer division
query I rowsort label-7254
SELECT ALL + ( 73 ) + - col0 DIV 42 col2 FROM tab2 AS cor0
----
72
72
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL + ( 73 ) + - col0 / 42 col2 FROM tab2 AS cor0
----
72
72
73
query I rowsort
SELECT ( cor0.col2 ) * col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - + ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7257
SELECT + CAST( col0 AS SIGNED ) DIV col2 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7257
SELECT + CAST ( col0 AS INTEGER ) / col2 FROM tab1 cor0
----
0
0
1
query I rowsort
SELECT DISTINCT col1 * - ( - 45 ) AS col0 FROM tab1 AS cor0
----
1170
450
585
query I rowsort
SELECT DISTINCT - col2 + - col2 AS col1 FROM tab2 cor0
----
-52
-54
-76
query I rowsort
SELECT + col0 - ( col1 ) AS col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT - col2 + 70 FROM tab0 AS cor0
----
-12
37
69
query I rowsort
SELECT DISTINCT - col1 * 86 + - 4 FROM tab0 AS cor0
----
-7400
-7830
-8346
onlyif mysql # use DIV operator for integer division
query I rowsort label-7263
SELECT ALL col0 DIV 7 - col0 AS col0 FROM tab1 AS cor0
----
-3
-55
-69
skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL col0 / 7 - col0 AS col0 FROM tab1 AS cor0
----
-3
-55
-69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7264
SELECT col1 * CAST( - col2 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-132
-2862
-7551
skipif mysql # not compatible
query I rowsort label-7264
SELECT col1 * CAST ( - col2 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT DISTINCT + cor0.col2 * - ( col2 ) * + col0 FROM tab0 cor0
----
-26136
-35
-598436
query I rowsort
SELECT - col1 + + 14 AS col2 FROM tab0 AS cor0
----
-72
-77
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT ALL - col1 * + 99 + col1 FROM tab1
----
-1274
-2548
-980
query I rowsort
SELECT 77 * - col0 - - cor0.col0 FROM tab0 AS cor0
----
-1824
-2660
-6764
query I rowsort
SELECT cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT - 53 + col2 FROM tab0 AS cor0
----
-20
-52
29
query I rowsort
SELECT ALL - cor0.col1 + col2 * 91 AS col0 FROM tab0 AS cor0
----
-6
2917
7371
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 * - col0 col2 FROM tab2
----
-322
-3588
-3634
onlyif mysql # use DIV operator for integer division
query I rowsort label-7274
SELECT DISTINCT ( col1 ) * col2 DIV - col0 FROM tab1
----
-15
-468
-8
skipif mysql # not compatible
query I rowsort label-7274
SELECT DISTINCT ( col1 ) * col2 / - col0 FROM tab1
----
-15
-468
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7275
SELECT ALL 62 DIV col2 + - col2 * 99 FROM tab0 AS cor0
----
-3266
-37
-8118
skipif mysql # not compatible
query I rowsort label-7275
SELECT ALL 62 / col2 + - col2 * 99 FROM tab0 AS cor0
----
-3266
-37
-8118
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7276
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
query I rowsort
SELECT + 37 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2
onlyif mysql # use DIV operator for integer division
query I rowsort label-7278
SELECT - col1 DIV col1 - - col2 * + col2 AS col0 FROM tab2
----
1443
675
728
skipif mysql # not compatible
query I rowsort label-7278
SELECT - col1 / col1 - - col2 * + col2 AS col0 FROM tab2
----
1443
675
728
query I rowsort
SELECT - + col0 * - col1 * + col1 AS col1 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT + 38 AS col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
query I rowsort
SELECT - ( 94 ) AS col2 FROM tab1, tab2 cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e
query I rowsort
SELECT ALL tab1.col0 * tab1.col1 FROM tab1, tab2 cor0
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775
query I rowsort
SELECT DISTINCT col1 * 39 * - col0 FROM tab2
----
-179478
-52377
-8463
query I rowsort
SELECT + ( - cor0.col1 ) FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT ALL - 33 AS col0 FROM tab1, tab2 AS cor0, tab2 cor1, tab2, tab1 AS cor2
----
243 values hashing to c83b7d9de1afb54a54faf0360b5d1a63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 50 col1 FROM tab2 cor0
----
-350
-3900
-3950
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7287
SELECT ALL - CAST( + col2 * + col1 AS SIGNED ) FROM tab0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL - CAST ( + col2 * + col1 AS INTEGER ) FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + - 25 * + 84 - col1 * - 52 AS col2 FROM tab1 AS cor0
----
-1424
-1580
-748
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 + 95 col1 FROM tab1 AS cor0
----
135
135
135
query I rowsort
SELECT ALL + col0 + col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT ALL + ( 10 ) + - col2 FROM tab1 AS cor0
----
-44
-47
-86
query I rowsort
SELECT DISTINCT - col0 * 2 + + col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT 83 + 83 * col1 FROM tab2
----
1494
2656
4980
onlyif mysql # use DIV operator for integer division
query I rowsort label-7295
SELECT 60 DIV + col1 AS col1 FROM tab1 AS cor0
----
2
4
6
skipif mysql # not compatible
query I rowsort label-7295
SELECT 60 / + col1 AS col1 FROM tab1 AS cor0
----
2
4
6
query I rowsort
SELECT 93 * col2 FROM tab1
----
5022
5301
8928
query I rowsort
SELECT + 32 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b
onlyif mysql # use DIV operator for integer division
query I rowsort label-7298
SELECT DISTINCT - - ( col0 ) * - col2 DIV - col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-7298
SELECT DISTINCT - - ( col0 ) * - col2 / - col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - + 88 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-88
query I rowsort
SELECT DISTINCT + tab2.col1 - - col0 * 76 AS col2 FROM tab2
----
563
5987
6021
query I rowsort
SELECT - + col2 - + col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT + col1 * - col1 + col0 AS col2 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT col2 * - col0 + - col2 * - 99 * col1 AS col0 FROM tab2 AS cor0
----
149838
60952
82674
query I rowsort
SELECT 0 + + 11 + col0 FROM tab1
----
14
75
91
query I rowsort
SELECT ALL + 88 + cor0.col1 * 49 + + 62 FROM tab2, tab2 cor0
----
9 values hashing to a433693fe041cc3e20e8317fa33c3ee8
query I rowsort
SELECT ALL 82 AS col1 FROM tab2 cor0
----
82
82
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7307
SELECT ALL - 35 DIV cor0.col1 FROM tab1 cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-7307
SELECT ALL - 35 / cor0.col1 FROM tab1 cor0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 * - col2 col1 FROM tab0 AS cor0
----
-1287
-3198
-39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7309
SELECT CAST( NULL AS DECIMAL ) * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7309
SELECT CAST ( NULL AS REAL ) * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col1 * - col0 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL + col0 + - 81 FROM tab1 AS cor0
----
-1
-17
-78
query I rowsort
SELECT ALL cor0.col0 * 31 * - col2 AS col1 FROM tab0 AS cor0
----
-1085
-226238
-24552
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 + col2 ) col2 FROM tab1
----
109
67
80
query I rowsort
SELECT - 38 + + col2 AS col2 FROM tab0
----
-37
-5
44
query I rowsort
SELECT + ( - col0 * + col0 + - col0 ) FROM tab0
----
-1260
-600
-8010
query I rowsort
SELECT - col0 + + col2 * + 59 * + col1 AS col2 FROM tab0
----
167418
440169
5688
query I rowsort
SELECT - col1 + - col1 * ( 25 ) FROM tab2 AS cor0
----
-1534
-442
-806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + - cor0.col2 col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT ALL + col1 + + 13 + col2 FROM tab2 AS cor0
----
68
71
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7320
SELECT DISTINCT + + col2 DIV col0 col1 FROM tab0 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT + + col2 / col0 col1 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT + cor0.col2 * + 74 FROM tab2 AS cor0
----
1924
1998
2812
onlyif mysql # use DIV operator for integer division
query I rowsort label-7322
SELECT DISTINCT col2 DIV - col2 + col1 + col1 * ( col0 ) DIV col0 col2 FROM tab1 AS cor0
----
19
25
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7322
SELECT DISTINCT col2 / - col2 + col1 + col1 * ( col0 ) / col0 col2 FROM tab1 AS cor0
----
19
25
51
query I rowsort
SELECT DISTINCT - col2 * col2 + ( + col1 ) * col1 FROM tab1 AS cor0
----
-2240
-3149
-9047
onlyif mysql # use DIV operator for integer division
query I rowsort label-7324
SELECT ALL + col1 + 0 + - 32 DIV col1 FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL + col1 + 0 + - 32 / col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT DISTINCT col0 + ( + 82 * col0 ) AS col2 FROM tab2 AS cor0
----
581
6474
6557
query I rowsort
SELECT + - col1 * - 6 AS col0 FROM tab1 AS cor0
----
156
60
78
query I rowsort
SELECT ALL + col2 + + ( - col1 ) AS col1 FROM tab1 cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - ( + col0 ) col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + col1 * 4 + + col1 FROM tab1
----
130
50
65
query I rowsort
SELECT DISTINCT + col2 + col2 * - 38 FROM tab1 AS cor0
----
-1998
-2109
-3552
query I rowsort
SELECT DISTINCT col0 + + ( col1 ) * col2 * 83 AS col0 FROM tab2 AS cor0
----
127400
53697
69478
query I rowsort
SELECT + col2 + col1 * - ( col2 ) FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT - ( - cor0.col1 ) * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL - - 16 * + col0 + col2 FROM tab2 cor0
----
1274
1302
139
query I rowsort
SELECT - 63 * col1 + + cor0.col0 FROM tab1 AS cor0
----
-1635
-566
-739
onlyif mysql # use DIV operator for integer division
query I rowsort label-7336
SELECT DISTINCT col2 DIV - 42 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7336
SELECT DISTINCT col2 / - 42 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + - ( col2 ) + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT + col2 + + ( col1 ) AS col1 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT - + ( + col2 ) * col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + 9 + - col2 * ( cor0.col2 ) FROM tab0 AS cor0
----
-1080
-6715
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7341
SELECT 36 + col1 + col2 DIV + 83 FROM tab0 cor0
----
122
127
133
skipif mysql # not compatible
query I rowsort label-7341
SELECT 36 + col1 + col2 / + 83 FROM tab0 cor0
----
122
127
133
query I rowsort
SELECT ALL - + 55 * col0 AS col0 FROM tab1 AS cor0
----
-165
-3520
-4400
query I rowsort
SELECT ALL - 45 * - col2 - + col2 FROM tab1 AS cor0
----
2376
2508
4224
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + ( - col2 ) * CAST ( col1 AS REAL ) AS col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT 3 + + 85 AS col0 FROM tab0
----
88
88
88
query I rowsort
SELECT + col0 + col1 + + col2 FROM tab1
----
131
189
83
query I rowsort
SELECT DISTINCT - col0 + 74 FROM tab1
----
-6
10
71
query I rowsort
SELECT - 15 * - 24 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9dba7d2d6acb691eda7c570407f5a5e5
query I rowsort
SELECT DISTINCT - + 76 + + cor0.col0 FROM tab0 AS cor0
----
-41
-52
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col1 * ( cor0.col0 ) col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT - 54 + cor0.col1 AS col2 FROM tab0 cor0
----
32
37
43
query I rowsort
SELECT DISTINCT - col1 + cor0.col0 + - ( 4 ) FROM tab1 AS cor0
----
-27
50
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 col0 FROM tab0 AS cor0
----
-38
-38
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7354
SELECT DISTINCT + - ( col1 ) + CAST( col0 AS SIGNED ) * cor0.col2 FROM tab0 AS cor0
----
-62
706
7207
skipif mysql # not compatible
query I rowsort label-7354
SELECT DISTINCT + - ( col1 ) + CAST ( col0 AS INTEGER ) * cor0.col2 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT ALL - col0 * ( - col1 ) * + ( col2 ) AS col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT + 11 + col1 AS col0 FROM tab2 AS cor0
----
28
42
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-7357
SELECT + - 41 + + col0 DIV col0 AS col0 FROM tab1 AS cor0
----
-40
-40
-40
skipif mysql # not compatible
query I rowsort label-7357
SELECT + - 41 + + col0 / col0 AS col0 FROM tab1 AS cor0
----
-40
-40
-40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - 73 col2 FROM tab2 AS cor0
----
-1241
-2263
-4307
query I rowsort
SELECT + 73 * col2 AS col1 FROM tab0 AS cor0
----
2409
5986
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-7360
SELECT - + 8 DIV + col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7360
SELECT - + 8 / + col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 13 * + col1 AS col1 FROM tab1
----
130
169
338
query I rowsort
SELECT 62 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1612
620
806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7363
SELECT CAST( NULL AS SIGNED ) * + 76 + - col0 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7363
SELECT CAST ( NULL AS INTEGER ) * + 76 + - col0 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) + col1 / 74 AS col1 FROM tab1
----
3
64
80
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 cor0.col1 * - 90 * 12 + col0 * + 63 AS col2 FROM tab1 AS cor0
----
-27891
-6768
-9000
query I rowsort
SELECT + - col2 * - col1 + 70 AS col2 FROM tab2 AS cor0
----
1604
716
907
query I rowsort
SELECT ALL - col1 + cor0.col1 * - col1 FROM tab2 AS cor0
----
-306
-3540
-992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7369
SELECT ALL - - col1 + CAST( NULL AS SIGNED ) - - 92 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7369
SELECT ALL - - col1 + CAST ( NULL AS INTEGER ) - - 92 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7370
SELECT DISTINCT col2 DIV - ( + col2 ) FROM tab0 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT col2 / - ( + col2 ) FROM tab0 cor0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7371
SELECT ALL col2 DIV + ( col1 ) + col2 AS col1 FROM tab1 AS cor0
----
103
56
62
skipif mysql # not compatible
query I rowsort label-7371
SELECT ALL col2 / + ( col1 ) + col2 AS col1 FROM tab1 AS cor0
----
103
56
62
query I rowsort
SELECT + - col0 * - cor0.col2 + 27 FROM tab0 AS cor0
----
62
7325
819
query I rowsort
SELECT DISTINCT + - col2 * + 23 + col1 AS col0 FROM tab2 AS cor0
----
-539
-590
-857
query I rowsort
SELECT + cor0.col0 * 72 + - 25 FROM tab1 AS cor0
----
191
4583
5735
query I rowsort
SELECT DISTINCT - col2 * 36 - 64 * cor0.col0 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
2204
464120
49500
query I rowsort
SELECT DISTINCT + col2 - cor0.col1 * 84 * col2 AS col1 FROM tab1 AS cor0
----
-104736
-117882
-47823
query I rowsort
SELECT - - col1 + + 77 AS col1 FROM tab1 AS cor0
----
103
87
90
query I rowsort
SELECT DISTINCT cor0.col2 + 44 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
70
71
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7379
SELECT 92 DIV + 93 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-7379
SELECT 92 / + 93 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL - ( tab0.col2 * - tab0.col1 ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to b2e5b025b1c725661248b0f29aaef908
query I rowsort
SELECT 46 * + col1 + - col0 FROM tab0 AS cor0
----
3932
4097
4427
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 49 * + ( col0 ) col2 FROM tab1 AS cor0
----
-147
-3136
-3920
query I rowsort
SELECT col0 * 71 + cor0.col0 FROM tab0 AS cor0
----
1728
2520
6408
onlyif mysql # use DIV operator for integer division
query I rowsort label-7384
SELECT - col1 * 81 + cor0.col1 DIV col2 AS col1 FROM tab1 AS cor0
----
-1053
-2106
-810
skipif mysql # not compatible
query I rowsort label-7384
SELECT - col1 * 81 + cor0.col1 / col2 AS col1 FROM tab1 AS cor0
----
-1053
-2106
-810
query I rowsort
SELECT col0 * + ( col1 ) + col1 * - col0 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL 24 + 96 FROM tab2 AS cor0
----
120
120
120
query I rowsort
SELECT ( 4 ) * cor0.col0 * - 8 FROM tab1 AS cor0
----
-2048
-2560
-96
query I rowsort
SELECT DISTINCT - + col0 + 84 * + cor0.col2 FROM tab0 AS cor0
----
2748
49
6799
query I rowsort
SELECT ALL - - cor0.col0 + + col0 * ( - col2 ) * - col2 AS col2 FROM tab2 AS cor0
----
114155
5110
52806
query I rowsort
SELECT ALL - col2 * + col0 * col2 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7391
SELECT ALL col1 + col0 * - CAST( - ( col2 ) AS SIGNED ) + - col2 FROM tab1 AS cor0
----
134
3601
7597
skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL col1 + col0 * - CAST ( - ( col2 ) AS INTEGER ) + - col2 FROM tab1 AS cor0
----
134
3601
7597
query I rowsort
SELECT 50 + + 15 AS col0 FROM tab1
----
65
65
65
query I rowsort
SELECT DISTINCT ( col0 ) * + col0 + col2 FROM tab0
----
1226
609
8003
query I rowsort
SELECT + 6 * ( + col1 ) AS col0 FROM tab1 AS cor0
----
156
60
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7395
SELECT col0 * CAST( col0 AS SIGNED ) col2 FROM tab1
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7395
SELECT col0 * CAST ( col0 AS INTEGER ) col2 FROM tab1
----
4096
6400
9
query I rowsort
SELECT DISTINCT - 15 * + tab2.col0 FROM tab2, tab0 AS cor0
----
-105
-1170
-1185
query I rowsort
SELECT tab2.col2 * + 0 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT cor0.col0 - ( ( col1 ) ) FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + col0 + - col2 - + col2 * cor0.col2 FROM tab1 AS cor0
----
-2967
-3242
-9232
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 - 73 col1 FROM tab0, tab1 cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND ( + col2 )
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND col2
----
query I rowsort
SELECT DISTINCT col2 + col2 - col1 FROM tab2
----
-7
23
59
query I rowsort
SELECT tab0.col1 * - col1 * + col2 FROM tab0
----
-244068
-679042
-9409
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - col1 + + tab1.col2 + + col2 * + col2 )
----
query I rowsort
SELECT ALL col1 + + col0 - col0 * col2 FROM tab0
----
-682
-7118
97
query I rowsort
SELECT - col0 * col1 * col1 FROM tab2
----
-22831
-271518
-6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 * - col2 + + col2 + col2 col2 FROM tab0
----
2904
7626
99
query I rowsort
SELECT - col2 + - col1 * + tab1.col2 FROM tab1
----
-1344
-1458
-627
onlyif mysql # use DIV operator for integer division
query I rowsort label-7410
SELECT ALL - col0 * - col0 + col2 + col1 DIV col1 AS col2 FROM tab2
----
6111
6280
77
skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL - col0 * - col0 + col2 + col1 / col1 AS col2 FROM tab2
----
6111
6280
77
query I rowsort
SELECT col0 - + col0 * col0 AS col0 FROM tab0
----
-1190
-552
-7832
onlyif mysql # use DIV operator for integer division
query I rowsort label-7412
SELECT ALL + cor0.col0 DIV - cor0.col2 + col0 + + col2 AS col2 FROM tab1 cor0
----
120
176
57
skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL + cor0.col0 / - cor0.col2 + col0 + + col2 AS col2 FROM tab1 cor0
----
120
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7413
SELECT DISTINCT col2 + col2 DIV col0 AS col2 FROM tab1
----
57
72
97
skipif mysql # not compatible
query I rowsort label-7413
SELECT DISTINCT col2 + col2 / col0 AS col2 FROM tab1
----
57
72
97
query I rowsort
SELECT ALL col0 + - col2 FROM tab1 AS cor0 WHERE NULL <> NULL
----
query I rowsort
SELECT DISTINCT + col0 * - col0 + col0 * + col2 AS col1 FROM tab0
----
-1190
-623
216
query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT + + cor0.col1 + - col0 + col2 AS col1 FROM tab1 cor0
----
29
3
77
query I rowsort
SELECT col1 * - col1 + - col2 + + col0 AS col2 FROM tab1 AS cor0
----
-185
-727
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 - col2 col1 FROM tab2
----
1305
190
4576
query I rowsort
SELECT col1 + - col2 * - col2 AS col0 FROM tab1
----
2942
3259
9229
query I rowsort
SELECT + col2 * tab1.col1 * col2 - - col2 FROM tab1
----
119904
32547
75870
query I rowsort
SELECT ALL - tab0.col0 * col0 * - col1 + col1 * - col0 * + col0 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7423
SELECT - cor0.col1 + col0 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
-13
-31
-58
skipif mysql # not compatible
query I rowsort label-7423
SELECT - cor0.col1 + col0 / cor0.col1 AS col2 FROM tab2 AS cor0
----
-13
-31
-58
query I rowsort
SELECT + col2 * - cor0.col0 + + col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT - + col1 + col2 * col0 * col1 FROM tab2 AS cor0
----
119593
51017
5828
query I rowsort
SELECT DISTINCT + col1 * col2 + col1 * - col2 FROM tab0 cor0
----
0
query I rowsort
SELECT DISTINCT + col1 * - col0 * col0 AS col2 FROM tab0 AS cor0
----
-118825
-49536
-720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL + col0 + cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL + col0 * + col2 + - cor0.col1 FROM tab1 AS cor0
----
136
3638
7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-7431
SELECT + col2 DIV - cor0.col0 col2 FROM tab0 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7431
SELECT + col2 / - cor0.col0 col2 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT - col1 * cor0.col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - + col2 * - 15 AS col2 FROM tab2 AS cor0
----
390
405
570
query I rowsort
SELECT ALL + cor0.col1 * + 43 + + col0 AS col0 FROM tab0 AS cor0
----
3722
4002
4206
query I rowsort
SELECT ALL - col2 * ( col2 ) + - col0 + + 10 * - cor0.col1 FROM tab2 AS cor0
----
-1046
-1344
-1693
onlyif mysql # use DIV operator for integer division
query I rowsort label-7436
SELECT DISTINCT + col0 DIV CAST( ( + col0 ) AS SIGNED ) + ( ( col0 ) * 95 ) AS col2 FROM tab0 AS cor0
----
2281
3326
8456
skipif mysql # not compatible
query I rowsort label-7436
SELECT DISTINCT + col0 / CAST ( ( + col0 ) AS INTEGER ) + ( ( col0 ) * 95 ) AS col2 FROM tab0 AS cor0
----
2281
3326
8456
query I rowsort
SELECT DISTINCT + col0 * col0 + - col0 * - col1 FROM tab2 AS cor0
----
10686
266
7584
query I rowsort
SELECT DISTINCT - - col2 * + col1 + col2 + cor0.col0 FROM tab0 AS cor0
----
133
2895
7633
query I rowsort
SELECT DISTINCT + 8 FROM tab2, tab0, tab1 cor0
----
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7440
SELECT + col2 DIV + col2 - ( col0 ) * - col0 FROM tab0
----
1226
577
7922
skipif mysql # not compatible
query I rowsort label-7440
SELECT + col2 / + col2 - ( col0 ) * - col0 FROM tab0
----
1226
577
7922
query I rowsort
SELECT + col2 * + col2 * col1 + + ( + col1 ) AS col2 FROM tab2
----
22630
24565
39943
onlyif mysql # use DIV operator for integer division
query I rowsort label-7442
SELECT col1 DIV col2 - col0 FROM tab0
----
-22
-88
62
skipif mysql # not compatible
query I rowsort label-7442
SELECT col1 / col2 - col0 FROM tab0
----
-22
-88
62
query I rowsort
SELECT col2 + col1 * tab1.col0 AS col2 FROM tab1
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-7444
SELECT DISTINCT col0 * col2 DIV + col1 + col1 DIV - tab0.col1 FROM tab0
----
-1
79
8
skipif mysql # not compatible
query I rowsort label-7444
SELECT DISTINCT col0 * col2 / + col1 + col1 / - tab0.col1 FROM tab0
----
-1
79
8
query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * + col2 + col0 < NULL
----
query I rowsort
SELECT DISTINCT + col2 * - tab0.col0 FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-7447
SELECT ALL + col1 DIV - col1 + col1 * - col1 FROM tab0
----
-7397
-8282
-9410
skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL + col1 / - col1 + col1 * - col1 FROM tab0
----
-7397
-8282
-9410
query I rowsort
SELECT ALL col1 + + tab2.col2 * col1 FROM tab2
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-7449
SELECT ALL + col1 DIV - col0 + col2 AS col1 FROM tab1
----
46
57
96
skipif mysql # not compatible
query I rowsort label-7449
SELECT ALL + col1 / - col0 + col2 AS col1 FROM tab1
----
46
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7450
SELECT ALL col0 + - col2 * col2 DIV col2 AS col2 FROM tab0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL col0 + - col2 * col2 / col2 AS col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT col1 * - col0 + col0 * - col1 AS col2 FROM tab1
----
-1280
-156
-2080
onlyif mysql # use DIV operator for integer division
query I rowsort label-7452
SELECT + col2 + - col1 * + col2 + col2 DIV col1 AS col0 FROM tab0
----
-2805
-7380
-96
skipif mysql # not compatible
query I rowsort label-7452
SELECT + col2 + - col1 * + col2 + col2 / col1 AS col0 FROM tab0
----
-2805
-7380
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 + + col2 col2 FROM tab0
----
260
71
81
query I rowsort
SELECT DISTINCT col1 * col0 * col2 FROM tab2
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-7455
SELECT - col1 * tab2.col2 DIV - col1 + col2 - - tab2.col1 * col1 col1 FROM tab2
----
1015
3533
365
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7455
SELECT - col1 * tab2.col2 / - col1 + col2 - - tab2.col1 * col1 col1 FROM tab2
----
1015
3533
365
query I rowsort
SELECT DISTINCT + col2 * - col0 + + col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT tab2.col0 * col1 * col2 FROM tab2
----
119652
51034
5859
query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * col1 + col0 * col2 >= NULL
----
query I rowsort
SELECT ALL col1 FROM tab2 WHERE NULL NOT IN ( col0 - col0 * - tab2.col1 * - col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 * col2 col0 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT - col2 * + tab1.col2 + - col0 + col1 AS col2 FROM tab1
----
-2893
-3303
-9283
query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NULL NOT IN ( - col0 )
----
query I rowsort
SELECT DISTINCT + col2 + - col2 + + col2 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7464
SELECT ALL - col0 + col0 * col1 DIV col1 + - col1 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL - col0 + col0 * col1 / col1 + - col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT DISTINCT tab0.col2 * - tab0.col2 AS col2 FROM tab0
----
-1
-1089
-6724
query III rowsort
SELECT * FROM tab1 WHERE col1 + col1 < - col2
----
query I rowsort
SELECT + ( col0 * - 53 ) + col0 FROM tab0
----
-1248
-1820
-4628
query I rowsort
SELECT col0 * + col2 * 86 FROM tab2
----
16254
174408
258172
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 + col2 col0 FROM tab1
----
108
111
150
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab1, tab0, tab0 AS cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - tab2.col2 * - tab2.col2 col2 FROM tab2
----
-22599
-24548
-39884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7472
SELECT + ( col1 ) * + CAST( col0 AS SIGNED ) * + col1 col0 FROM tab0
----
177504
329315
737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7472
SELECT + ( col1 ) * + CAST ( col0 AS INTEGER ) * + col1 col0 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT + 81 * + col0 AS col0 FROM tab1
----
243
5184
6480
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7474
SELECT DISTINCT CAST( NULL AS SIGNED ) / - tab0.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-7474
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - tab0.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
NULL
query I rowsort
SELECT DISTINCT 9 * col2 * ( tab2.col1 ) AS col2 FROM tab2
----
13806
5814
7533
query I rowsort
SELECT DISTINCT - 51 * 14 AS col1 FROM tab2, tab2 cor0
----
-714
onlyif mysql # use DIV operator for integer division
query I rowsort label-7477
SELECT + + col1 DIV 16 AS col0 FROM tab2 AS cor0
----
1
1
3
skipif mysql # not compatible
query I rowsort label-7477
SELECT + + col1 / 16 AS col0 FROM tab2 AS cor0
----
1
1
3
query I rowsort
SELECT + col0 * 98 + + col0 * col1 AS col1 FROM tab0 AS cor0
----
16821
4416
6825
query I rowsort
SELECT DISTINCT + cor0.col0 + 66 * 18 AS col0 FROM tab1 AS cor0
----
1191
1252
1268
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7480
SELECT ALL + + col2 + CAST( NULL AS SIGNED ) * 43 / - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL + + col2 + CAST ( NULL AS INTEGER ) * 43 / - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 5 * cor0.col1 col1 FROM tab1 AS cor0
----
-3200
-390
-5200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - ( - col2 ) + - 42 col0 FROM tab2
----
147
1986
2960
query I rowsort
SELECT DISTINCT - - ( ( - col0 ) ) * ( - col2 ) + col1 AS col2 FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-7484
SELECT ALL - col2 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL - col2 / cor0.col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT - 87 * col0 - col2 AS col2 FROM tab2 AS cor0
----
-636
-6812
-6911
query I rowsort
SELECT ALL + - cor0.col1 + 94 FROM tab2 cor0
----
35
63
77
query I rowsort
SELECT ( + col2 ) * + col2 * - col0 + 50 FROM tab1 AS cor0
----
-207886
-737230
-8698
onlyif mysql # use DIV operator for integer division
query I rowsort label-7488
SELECT DISTINCT + col2 DIV - col2 + + col0 * col0 FROM tab0 AS cor0
----
1224
575
7920
skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT + col2 / - col2 + + col0 * col0 FROM tab0 AS cor0
----
1224
575
7920
query I rowsort
SELECT ALL ( col1 ) * - col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - ( + 97 ) - + col0 * + 26 AS col0 FROM tab1 AS cor0
----
-175
-1761
-2177
query I rowsort
SELECT DISTINCT - + 94 * - col1 * + col2 AS col2 FROM tab2 AS cor0
----
144196
60724
78678
query I rowsort
SELECT - + cor0.col0 + - col1 AS col0 FROM tab2 cor0
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 * + 28 col2 FROM tab0 AS cor0
----
476
476
476
query I rowsort
SELECT DISTINCT + - 77 AS col1 FROM tab1 AS cor0
----
-77
query I rowsort
SELECT 4 + - col0 * col0 + + 24 AS col1 FROM tab0 AS cor0
----
-1197
-548
-7893
query I rowsort
SELECT DISTINCT - + 58 * cor0.col0 AS col1 FROM tab1 cor0
----
-174
-3712
-4640
query I rowsort
SELECT ( + col0 ) * 79 FROM tab0 AS cor0
----
1896
2765
7031
onlyif mysql # use DIV operator for integer division
query I rowsort label-7498
SELECT DISTINCT - 56 DIV - cor0.col1 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
20
32
59
skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT - 56 / - cor0.col1 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
20
32
59
query I rowsort
SELECT ALL - 88 * - col2 + cor0.col1 AS col1 FROM tab2 AS cor0
----
2347
2407
3361
query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT - - cor0.col0 + + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ( col1 ) * col0 + col0 + col0 * + col1 FROM tab2
----
2765
441
9282
query I rowsort
SELECT DISTINCT col1 - + col1 * - col1 FROM tab0
----
7482
8372
9506
query I rowsort
SELECT + + 10 * cor0.col0 + col1 FROM tab1 AS cor0
----
56
650
813
query I rowsort
SELECT 83 AS col1 FROM tab1 AS cor0
----
83
83
83
query I rowsort
SELECT 47 * + col1 - + col1 * col0 AS col2 FROM tab2 AS cor0
----
-1829
-544
1240
query I rowsort
SELECT + 43 * + col0 - col2 AS col2 FROM tab1 AS cor0
----
2695
3344
75
query I rowsort
SELECT 25 * col0 AS col1 FROM tab1
----
1600
2000
75
query I rowsort
SELECT - 79 * ( + col2 ) + + col1 AS col0 FROM tab0 AS cor0
----
-2521
-6387
18
query I rowsort
SELECT - - ( + 90 ) * - col1 AS col2 FROM tab2 AS cor0
----
-1530
-2790
-5310
query I rowsort
SELECT - col1 * + col1 * - col1 + + col2 FROM tab1
----
1057
17630
2293
query I rowsort
SELECT DISTINCT + col2 + 74 FROM tab2
----
100
101
112
query I rowsort
SELECT + ( + col1 + col1 ) AS col2 FROM tab2
----
118
34
62
query I rowsort
SELECT DISTINCT - col1 + cor0.col1 * + col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL + col1 + 25 FROM tab2
----
42
56
84
query I rowsort
SELECT DISTINCT 97 + col1 AS col2 FROM tab1
----
107
110
123
query I rowsort
SELECT ALL - tab2.col0 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT 48 * col0 FROM tab1 AS cor0
----
144
3072
3840
query I rowsort
SELECT DISTINCT - ( + col1 ) AS col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT DISTINCT col2 + - col0 * col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL + 1 * col1 AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + ( ( + col0 ) ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL 75 - - col1 AS col1 FROM tab0 cor0
----
161
166
172
onlyif mysql # use DIV operator for integer division
query I rowsort label-7524
SELECT DISTINCT - cor0.col1 + - cor0.col2 * col1 DIV + col2 + cor0.col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-7524
SELECT DISTINCT - cor0.col1 + - cor0.col2 * col1 / + col2 + cor0.col1 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7525
SELECT DISTINCT + - CAST( 53 AS SIGNED ) + - col1 * + 56 AS col0 FROM tab2 AS cor0
----
-1005
-1789
-3357
skipif mysql # not compatible
query I rowsort label-7525
SELECT DISTINCT + - CAST ( 53 AS INTEGER ) + - col1 * + 56 AS col0 FROM tab2 AS cor0
----
-1005
-1789
-3357
query I rowsort
SELECT ALL + col0 * col1 + - col2 AS col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT col0 * + ( col2 ) - 1 FROM tab0 AS cor0
----
34
7297
791
onlyif mysql # use DIV operator for integer division
query I rowsort label-7528
SELECT DISTINCT 82 DIV + col0 AS col0 FROM tab1 cor0
----
1
27
skipif mysql # not compatible
query I rowsort label-7528
SELECT DISTINCT 82 / + col0 AS col0 FROM tab1 cor0
----
1
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-7529
SELECT ALL - 91 DIV + ( + col1 ) + 81 * - col1 FROM tab0 AS cor0
----
-6967
-7372
-7857
skipif mysql # not compatible
query I rowsort label-7529
SELECT ALL - 91 / + ( + col1 ) + 81 * - col1 FROM tab0 AS cor0
----
-6967
-7372
-7857
query I rowsort
SELECT 97 * cor0.col1 AS col0 FROM tab0 cor0
----
8342
8827
9409
query I rowsort
SELECT ALL + col1 * - col2 + - col0 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT - ( col2 ) * col1 + + cor0.col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1054
-1989
-6136
query I rowsort
SELECT 8 * + 2 AS col2 FROM tab0 AS cor0
----
16
16
16
query I rowsort
SELECT ALL + col1 - + 37 FROM tab0 AS cor0
----
49
54
60
query I rowsort
SELECT + ( + col2 ) * col0 + + 42 * - col2 * col2 FROM tab0 AS cor0
----
-275110
-44946
-7
query I rowsort
SELECT ALL + col1 + + 51 + - col2 AS col0 FROM tab0 AS cor0
----
104
147
60
query I rowsort
SELECT DISTINCT 72 * cor0.col2 * - col2 + col0 * - col2 + ( cor0.col0 ) * - col1 FROM tab0 cor0
----
-3502
-499525
-81264
query I rowsort
SELECT DISTINCT - + col1 + col1 * col2 FROM tab2 AS cor0
----
1475
629
806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 54 * col0 col0 FROM tab0 AS cor0
----
-1296
-1890
-4806
query I rowsort
SELECT DISTINCT + - cor0.col1 + - col1 AS col2 FROM tab0 cor0
----
-172
-182
-194
onlyif mysql # use DIV operator for integer division
query I rowsort label-7541
SELECT + + col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-7541
SELECT + + col2 / - col1 AS col1 FROM tab2 AS cor0
----
-2
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7542
SELECT - 55 * col1 DIV ( - 95 ) FROM tab0 AS cor0
----
49
52
56
skipif mysql # not compatible
query I rowsort label-7542
SELECT - 55 * col1 / ( - 95 ) FROM tab0 AS cor0
----
49
52
56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7543
SELECT DISTINCT col1 + col2 + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7543
SELECT DISTINCT col1 + col2 + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7544
SELECT ALL + - col1 DIV 8 AS col0 FROM tab1 AS cor0
----
-1
-1
-3
skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL + - col1 / 8 AS col0 FROM tab1 AS cor0
----
-1
-1
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + 21 * col1 col1 FROM tab1 AS cor0
----
200
260
520
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7546
SELECT DISTINCT - - col1 - + CAST( NULL AS SIGNED ) * ( - col1 ) col0 FROM tab1 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT - - col1 - + CAST ( NULL AS INTEGER ) * ( - col1 ) col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT ALL + + col2 * cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
22599
24548
39884
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col1 * CAST ( - cor0.col0 AS REAL ) * col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT col1 - col1 * + col0 AS col0 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT col0 * col2 * 98 + col2 FROM tab0 AS cor0
----
3431
715286
77649
onlyif mysql # use DIV operator for integer division
query I rowsort label-7551
SELECT ALL col2 DIV 44 + col2 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-7551
SELECT ALL col2 / 44 + col2 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT col0 + ( + 20 * + col0 ) FROM tab1
----
1344
1680
63
query I rowsort
SELECT DISTINCT - col1 + 93 * + col2 AS col1 FROM tab0
----
-4
2983
7535
onlyif mysql # use DIV operator for integer division
query I rowsort label-7554
SELECT DISTINCT + col2 DIV - col0 + tab0.col1 AS col1 FROM tab0
----
85
91
97
skipif mysql # not compatible
query I rowsort label-7554
SELECT DISTINCT + col2 / - col0 + tab0.col1 AS col1 FROM tab0
----
85
91
97
query I rowsort
SELECT + tab2.col2 + - 82 * + tab2.col1 FROM tab2
----
-1356
-2515
-4812
query I rowsort
SELECT + + 2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT - + cor0.col1 + + col0 * + col1 * 88 AS col1 FROM tab1 AS cor0
----
56310
6838
91507
query I rowsort
SELECT ( ( tab2.col2 ) + col1 ) * - 98 FROM tab2
----
-5390
-5684
-8330
query I rowsort
SELECT + 87 * + 13 AS col2 FROM tab1
----
1131
1131
1131
query I rowsort
SELECT col0 * + 16 + - tab2.col1 * 57 FROM tab2
----
-1655
-2115
295
query I rowsort
SELECT ALL - - ( col1 ) + col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT col2 * col0 * - col1 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL + - 3 AS col1 FROM tab1 AS cor0
----
-3
-3
-3
query I rowsort
SELECT DISTINCT + 94 * cor0.col1 FROM tab1, tab0, tab0 cor0
----
8084
8554
9118
onlyif mysql # use DIV operator for integer division
query I rowsort label-7565
SELECT DISTINCT + col2 DIV col0 AS col0 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-7565
SELECT DISTINCT + col2 / col0 AS col0 FROM tab0
----
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7566
SELECT - col1 + + col2 * CAST( col0 * + col2 AS SIGNED ) FROM tab0 AS cor0
----
-62
26050
598345
skipif mysql # not compatible
query I rowsort label-7566
SELECT - col1 + + col2 * CAST ( col0 * + col2 AS INTEGER ) FROM tab0 AS cor0
----
-62
26050
598345
skipif mysql # not compatible
query I rowsort
SELECT ALL - col1 * CAST ( - col0 + + col2 AS REAL ) FROM tab2 AS cor0
----
-620
3068
697
query I rowsort
SELECT DISTINCT - col0 * ( cor0.col0 ) AS col0 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT col0 * - 50 FROM tab0 cor0
----
-1200
-1750
-4450
query I rowsort
SELECT - - col0 + 36 AS col2 FROM tab2 AS cor0
----
114
115
43
query I rowsort
SELECT col2 * - col0 - ( col2 ) * - col2 FROM tab1 AS cor0
----
-399
1536
2754
onlyif mysql # use DIV operator for integer division
query I rowsort label-7572
SELECT ALL + col2 DIV + 74 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL + col2 / + 74 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT col2 * - 81 FROM tab1 AS cor0
----
-4374
-4617
-7776
query I rowsort
SELECT col2 - - 88 FROM tab1 AS cor0
----
142
145
184
query I rowsort
SELECT - cor0.col1 + cor0.col1 * col1 AS col0 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT - - col2 * col2 - ( - col2 + ( + col1 ) ) * - col1 FROM tab0 AS cor0
----
5647
7543
9313
query I rowsort
SELECT col0 * col0 * - col2 + col0 AS col1 FROM tab0
----
-1190
-18984
-649433
query I rowsort
SELECT + 7 + - col0 + + ( 52 ) AS col0 FROM tab1
----
-21
-5
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-7579
SELECT DISTINCT - + col2 * col2 DIV ( col2 * cor0.col1 ) AS col0 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-7579
SELECT DISTINCT - + col2 * col2 / ( col2 * cor0.col1 ) AS col0 FROM tab0 cor0
----
0
query I rowsort
SELECT col1 * col0 + + ( col0 + - col0 ) FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT col0 + - col1 * col2 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT - 71 + col2 * + col1 FROM tab0
----
26
2767
7391
query I rowsort
SELECT 2 - cor0.col0 AS col2 FROM tab2 cor0
----
-5
-76
-77
query I rowsort
SELECT ALL - 75 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59
query I rowsort
SELECT + 28 * col0 FROM tab2
----
196
2184
2212
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7586
SELECT + 30 + + tab1.col1 * + CAST( NULL AS SIGNED ) * - tab1.col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7586
SELECT + 30 + + tab1.col1 * + CAST ( NULL AS INTEGER ) * - tab1.col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 69 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40
query I rowsort
SELECT + + col0 * col0 + - col0 FROM tab2 AS cor0
----
42
6006
6162
onlyif mysql # use DIV operator for integer division
query I rowsort label-7589
SELECT ALL + col1 * 77 DIV + col0 + col2 AS col2 FROM tab0 AS cor0
----
160
214
308
skipif mysql # not compatible
query I rowsort label-7589
SELECT ALL + col1 * 77 / + col0 + col2 AS col2 FROM tab0 AS cor0
----
160
214
308
query I rowsort
SELECT - + col2 * col1 + col1 AS col2 FROM tab1 cor0
----
-1235
-1378
-560
query I rowsort
SELECT - 71 * + tab0.col1 AS col2 FROM tab0
----
-6106
-6461
-6887
query I rowsort
SELECT - ( col0 ) * - col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT col1 * + ( + col2 + col1 ) * - ( + cor0.col1 + col0 ) FROM tab1 AS cor0
----
-131781
-49580
-60320
query I rowsort
SELECT ALL + 33 * cor0.col2 FROM tab0, tab1 cor0
----
9 values hashing to 4fcc035ca0f30ddb72bcd54efe2440af
query I rowsort
SELECT ALL ( 17 ) + tab2.col0 FROM tab2
----
24
95
96
query I rowsort
SELECT ALL cor1.col1 + 34 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9f11e16e5a127401006df5d5e3f9af14
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7597
SELECT ALL + + CAST( - col2 AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-7597
SELECT ALL + + CAST ( - col2 AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-7598
SELECT DISTINCT col1 DIV + cor0.col0 FROM tab2 cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-7598
SELECT DISTINCT col1 / + cor0.col0 FROM tab2 cor0
----
0
4
query I rowsort
SELECT - + 22 + + col0 * col0 FROM tab1 cor0
----
-13
4074
6378
query I rowsort
SELECT + 95 + col0 AS col1 FROM tab1 AS cor0
----
159
175
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7601
SELECT DISTINCT + CAST( + cor0.col0 AS SIGNED ) + + col1 FROM tab2 cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT + CAST ( + cor0.col0 AS INTEGER ) + + col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT ALL + col0 + - 12 * - cor0.col0 FROM tab2 AS cor0
----
1014
1027
91
query I rowsort
SELECT DISTINCT 73 + - col0 * col2 AS col1 FROM tab1 AS cor0
----
-3575
-7607
-89
query I rowsort
SELECT DISTINCT - + ( col1 ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT col1 * - ( - col2 + + ( 25 ) ) AS col0 FROM tab2 AS cor0
----
221
59
62
query I rowsort
SELECT - ( 64 * col2 + - ( - col0 ) ) FROM tab0
----
-2136
-5337
-99
query I rowsort
SELECT ALL + tab1.col0 * col1 AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT + + 88 FROM tab0 AS cor0
----
88
query I rowsort
SELECT - 74 * - col1 AS col0 FROM tab0 AS cor0
----
6364
6734
7178
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT 10 * - col1 + 57 FROM tab1 AS cor0
----
-203
-43
-73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col0 + ( col2 ) col2 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7613
SELECT DISTINCT + + col0 + col0 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7613
SELECT DISTINCT + + col0 + col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - - 85 AS col2 FROM tab1 AS cor0
----
85
85
85
query I rowsort
SELECT ALL + 32 * cor0.col2 FROM tab0 AS cor0
----
1056
2624
32
query I rowsort
SELECT + col2 * col0 + 3 * col0 - cor0.col1 AS col2 FROM tab1 cor0
----
145
3830
7907
query I rowsort
SELECT - col0 * - col2 + col1 - 95 FROM tab1 cor0
----
3563
7598
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-7618
SELECT DISTINCT + col1 DIV tab1.col0 FROM tab1
----
0
8
skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT + col1 / tab1.col0 FROM tab1
----
0
8
query I rowsort
SELECT + col1 * + col0 + - cor0.col2 AS col1 FROM tab0 cor0
----
2031
3394
8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-7620
SELECT - - ( - col2 ) DIV col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7620
SELECT - - ( - col2 ) / col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7621
SELECT - 84 DIV - col1 AS col0 FROM tab1 AS cor0
----
3
6
8
skipif mysql # not compatible
query I rowsort label-7621
SELECT - 84 / - col1 AS col0 FROM tab1 AS cor0
----
3
6
8
query I rowsort
SELECT ALL + 39 * - 23 FROM tab2 AS cor0
----
-897
-897
-897
query I rowsort
SELECT + 58 * + col2 FROM tab0
----
1914
4756
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-7624
SELECT ALL cor0.col2 DIV + 84 + - cor0.col0 FROM tab1, tab2 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL cor0.col2 / + 84 + - cor0.col0 FROM tab1, tab2 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT ALL col2 * tab0.col1 + col1 * - col1 AS col1 FROM tab0
----
-4558
-819
-9312
query I rowsort
SELECT col1 * col2 + + col1 + 34 FROM tab0 AS cor0
----
228
2958
7587
query I rowsort
SELECT + + col2 + col2 + col1 AS col2 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT - 91 * + col2 - ( - 81 ) * col0 FROM tab2 AS cor0
----
-1890
2941
3952
onlyif mysql # use DIV operator for integer division
query I rowsort label-7629
SELECT - col2 DIV ( col2 * col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7629
SELECT - col2 / ( col2 * col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col0 * + 30 FROM tab2 cor0
----
210
2340
2370
onlyif mysql # use DIV operator for integer division
query I rowsort label-7631
SELECT DISTINCT + col0 DIV cor0.col1 AS col2 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT + col0 / cor0.col1 AS col2 FROM tab0 cor0
----
0
query I rowsort
SELECT DISTINCT tab1.col0 + + tab1.col2 + 7 * - tab1.col1 * col2 AS col0 FROM tab1
----
-3869
-8560
-9771
query I rowsort
SELECT ALL - + col1 * + ( + col0 ) + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL col2 + ( col0 ) FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT cor1.col1 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT + - 93 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-93
query I rowsort
SELECT + - ( - 90 ) AS col1 FROM tab2 AS cor0
----
90
90
90
query I rowsort
SELECT DISTINCT + + col2 * 77 AS col1 FROM tab2 AS cor0
----
2002
2079
2926
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 col1 FROM tab0, tab1 AS cor0
----
45
query I rowsort
SELECT 7 * col2 AS col2 FROM tab1
----
378
399
672
query I rowsort
SELECT - + col0 * col1 + col2 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NULL NOT IN ( + cor0.col0 )
----
query I rowsort
SELECT ALL + - cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 12 col1 FROM tab2 AS cor0
----
-5
66
67
query I rowsort
SELECT ALL + + col1 * col1 + col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT + col0 + - cor0.col0 * + col1 AS col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT + 40 * + col2 AS col2 FROM tab2 cor0
----
1040
1080
1520
query I rowsort
SELECT DISTINCT - + cor0.col0 * - col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - cor0.col1 * cor1.col0 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 5353a988753c2a3d5236085229cfe510
query I rowsort
SELECT ALL col2 * col2 * col2 + col1 FROM tab0 AS cor0
----
36023
551459
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7651
SELECT DISTINCT CAST( col2 * col0 AS SIGNED ) AS col0 FROM tab2
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-7651
SELECT DISTINCT CAST ( col2 * col0 AS INTEGER ) AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT - col1 + - col2 + + col0 * + col0 AS col2 FROM tab2 AS cor0
----
-9
5999
6186
query I rowsort
SELECT 52 + cor0.col0 + col0 FROM tab0 AS cor0
----
100
122
230
onlyif mysql # use DIV operator for integer division
query I rowsort label-7654
SELECT ALL - col0 DIV - col0 + - col2 * col0 FROM tab2 AS cor0
----
-188
-2027
-3001
skipif mysql # not compatible
query I rowsort label-7654
SELECT ALL - col0 / - col0 + - col2 * col0 FROM tab2 AS cor0
----
-188
-2027
-3001
query I rowsort
SELECT + 67 * - cor0.col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
-5676
-6006
-6402
query I rowsort
SELECT ALL col0 * col0 * ( - col2 * cor0.col0 ) + 23 AS col2 FROM tab1 cor0
----
-1435
-14942185
-49151977
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7657
SELECT DISTINCT col1 + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT col1 + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7658
SELECT ALL + col0 + ( col0 * - tab0.col0 ) - 50 DIV tab0.col2 FROM tab0
----
-1240
-553
-7832
skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL + col0 + ( col0 * - tab0.col0 ) - 50 / tab0.col2 FROM tab0
----
-1240
-553
-7832
query I rowsort
SELECT ALL - tab1.col1 * col2 - - col1 FROM tab1
----
-1235
-1378
-560
onlyif mysql # use DIV operator for integer division
query I rowsort label-7660
SELECT ALL CAST( col0 AS SIGNED ) DIV - col1 - + col0 DIV 59 AS col0 FROM tab2
----
-2
-5
0
skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL CAST ( col0 AS INTEGER ) / - col1 - + col0 / 59 AS col0 FROM tab2
----
-2
-5
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7661
SELECT DISTINCT CAST( + col1 AS SIGNED ) * tab1.col1 - - ( 32 ) FROM tab1
----
132
201
708
skipif mysql # not compatible
query I rowsort label-7661
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * tab1.col1 - - ( 32 ) FROM tab1
----
132
201
708
query I rowsort
SELECT DISTINCT 1 * - col0 - col2 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT - col0 - col2 * col1 AS col0 FROM tab2 cor0
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT 51 + cor0.col0 FROM tab1 AS cor0
----
115
131
54
query I rowsort
SELECT DISTINCT - col2 + col1 + 96 * cor0.col1 FROM tab2 AS cor0
----
1611
2980
5697
query I rowsort
SELECT col0 * + col1 - col0 AS col2 FROM tab2 cor0
----
1264
210
4524
query I rowsort
SELECT ALL - + col0 - - col0 * + 80 * col0 AS col2 FROM tab1 cor0
----
327616
511920
717
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 col1 FROM tab0
----
10
10
10
query I rowsort
SELECT + 49 - + col0 AS col0 FROM tab0
----
-40
14
25
query I rowsort
SELECT - 91 * col0 * - col2 AS col2 FROM tab2
----
17199
184548
273182
query I rowsort
SELECT col2 * + col1 * - 9 FROM tab1
----
-11232
-12636
-5130
query I rowsort
SELECT ALL - col2 + + col2 AS col1 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7673
SELECT ALL col2 + + col0 + ( col2 + + cor0.col1 ) DIV - col1 FROM tab1 AS cor0
----
115
168
54
skipif mysql # not compatible
query I rowsort label-7673
SELECT ALL col2 + + col0 + ( col2 + + cor0.col1 ) / - col1 FROM tab1 AS cor0
----
115
168
54
query I rowsort
SELECT ALL - + 89 * col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1434
-2752
-5173
onlyif mysql # use DIV operator for integer division
query I rowsort label-7675
SELECT - col0 + ( col1 + + col2 ) DIV + 55 FROM tab2
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-7675
SELECT - col0 + ( col1 + + col2 ) / + 55 FROM tab2
----
-6
-77
-78
query I rowsort
SELECT ALL + col0 + col2 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT DISTINCT - + ( - col2 ) + col2 FROM tab2 AS cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + tab0.col0 col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT 71 AS col0 FROM tab1, tab0 AS cor0
----
71
query I rowsort
SELECT DISTINCT + 20 AS col2 FROM tab0, tab2 cor0
----
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 col1 FROM tab0 AS cor0
----
-94
-94
-94
query I rowsort
SELECT col0 * col2 * + col0 AS col2 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT DISTINCT - col2 * + 69 AS col0 FROM tab0 AS cor0
----
-2277
-5658
-69
query I rowsort
SELECT - ( + col0 ) + + col1 * - 43 AS col2 FROM tab2
----
-1340
-2615
-810
query I rowsort
SELECT + col1 + - 7 FROM tab2 AS cor0
----
10
24
52
query I rowsort
SELECT DISTINCT + - col1 - col0 * col2 * 50 AS col1 FROM tab1 cor0
----
-182410
-384013
-8126
query I rowsort
SELECT ALL col2 - - 26 * + col2 AS col0 FROM tab2 AS cor0
----
1026
702
729
query I rowsort
SELECT ALL - + col2 * + 46 FROM tab0 AS cor0
----
-1518
-3772
-46
query I rowsort
SELECT ALL + col2 * ( col2 ) AS col1 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-7690
SELECT ALL - ( + 1 ) + col1 DIV - 76 FROM tab0 AS cor0
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL - ( + 1 ) + col1 / - 76 FROM tab0 AS cor0
----
-2
-2
-2
query I rowsort
SELECT + ( col2 ) * - col2 FROM tab1 cor0
----
-2916
-3249
-9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7692
SELECT ALL + CAST( - col0 AS SIGNED ) * + col0 + + 6 AS col0 FROM tab0 cor0
----
-1219
-570
-7915
skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL + CAST ( - col0 AS INTEGER ) * + col0 + + 6 AS col0 FROM tab0 cor0
----
-1219
-570
-7915
onlyif mysql # use DIV operator for integer division
query I rowsort label-7693
SELECT - - ( col2 ) DIV cor0.col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7693
SELECT - - ( col2 ) / cor0.col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT + - col1 * col1 + - 53 AS col2 FROM tab2 AS cor0
----
-1014
-342
-3534
query I rowsort
SELECT ALL + col1 + 14 AS col0 FROM tab2 AS cor0
----
31
45
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-7696
SELECT DISTINCT + col0 DIV 60 AS col0 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-7696
SELECT DISTINCT + col0 / 60 AS col0 FROM tab1
----
0
1
query I rowsort
SELECT - cor0.col1 + 84 * + 77 FROM tab0 AS cor0
----
6371
6377
6382
query I rowsort
SELECT - 52 * + col0 FROM tab1 cor0
----
-156
-3328
-4160
query I rowsort
SELECT + ( col1 ) * - col2 + - col1 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT - cor0.col2 * - col0 - col0 * col0 AS col0 FROM tab0 AS cor0
----
-1190
-623
216
query I rowsort
SELECT + ( col0 ) + + col0 + 84 AS col1 FROM tab0 AS cor0
----
132
154
262
query I rowsort
SELECT + 21 * - col2 FROM tab1 AS cor0
----
-1134
-1197
-2016
query I rowsort
SELECT - + ( 20 ) * cor0.col1 FROM tab0 AS cor0
----
-1720
-1820
-1940
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7704
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) + 51 + col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7704
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) + 51 + col0 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT col1 + 23 + col2 FROM tab1
----
103
132
90
query I rowsort
SELECT - ( 14 ) - cor0.col1 FROM tab2 cor0
----
-31
-45
-73
query I rowsort
SELECT - + col2 * - col0 + - 87 AS col1 FROM tab1 AS cor0
----
3561
75
7593
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 + col1 + - ( col1 + col2 ) col0 FROM tab1 cor0
----
-23
-26
-65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 + + col1 - + cor0.col1 col0 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT 32 * + col0 AS col2 FROM tab2 AS cor0
----
224
2496
2528
onlyif mysql # use DIV operator for integer division
query I rowsort label-7711
SELECT ALL 55 DIV - cor0.col1 + 78 FROM tab2 AS cor0
----
75
77
78
skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL 55 / - cor0.col1 + 78 FROM tab2 AS cor0
----
75
77
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7712
SELECT DISTINCT - cor0.col2 - + col2 DIV - col2 AS col0 FROM tab0 cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-7712
SELECT DISTINCT - cor0.col2 - + col2 / - col2 AS col0 FROM tab0 cor0
----
-32
-81
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 * col0 col0 FROM tab2 AS cor0
----
-56
-624
-632
query I rowsort
SELECT ALL - col0 * cor0.col0 * + ( col2 ) + + col1 FROM tab1 cor0
----
-233462
-460
-614387
query I rowsort
SELECT + col2 + - col2 * - col1 FROM tab2
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-7716
SELECT - tab2.col2 + 44 DIV + col1 AS col0 FROM tab2
----
-26
-26
-36
skipif mysql # not compatible
query I rowsort label-7716
SELECT - tab2.col2 + 44 / + col1 AS col0 FROM tab2
----
-26
-26
-36
query I rowsort
SELECT tab2.col1 * - 64 + - col2 FROM tab2
----
-1126
-2011
-3802
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7718
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7718
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - ( - col0 + + 92 * + 40 ) FROM tab1
----
-3600
-3616
-3677
query I rowsort
SELECT 33 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT ALL + 71 + + 19 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT - 36 + + col0 AS col1 FROM tab0 AS cor0
----
-1
-12
53
query I rowsort
SELECT DISTINCT + 84 * col0 + - col2 FROM tab2 AS cor0
----
561
6526
6598
query I rowsort
SELECT DISTINCT - col0 * - 14 FROM tab0 cor0
----
1246
336
490
query I rowsort
SELECT col2 + col0 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT col1 * + 0 * 98 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col0 + col2 * col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT - + col2 * cor0.col2 + 82 * + cor0.col2 FROM tab0 AS cor0
----
0
1617
81
query I rowsort
SELECT + 54 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query I rowsort
SELECT ALL + cor0.col0 + tab1.col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 8217d522e32ec5cc4f9826fb5b492e52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7731
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7731
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + - col0 + 22 AS col2 FROM tab1 AS cor0
----
-42
-58
19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7733
SELECT col1 * CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7733
SELECT col1 * CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( + col1 + col0 ) * 59 * - 4 AS col2 FROM tab0
----
-25960
-31152
-42480
query I rowsort
SELECT + 63 + - col2 + cor0.col0 * 35 AS col1 FROM tab2 AS cor0
----
2767
2790
281
onlyif mysql # use DIV operator for integer division
query I rowsort label-7736
SELECT + ( - cor0.col0 ) DIV cor0.col0 - - cor0.col0 FROM tab2 AS cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-7736
SELECT + ( - cor0.col0 ) / cor0.col0 - - cor0.col0 FROM tab2 AS cor0
----
6
77
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + ( col2 ) col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + col2 * - col2 + + col0 * - ( 77 ) * - cor0.col1 + + cor0.col0 FROM tab1 AS cor0
----
3093
46095
70944
query I rowsort
SELECT DISTINCT - 8 * + col2 FROM tab1
----
-432
-456
-768
query I rowsort
SELECT + ( col1 ) * col2 AS col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - + col0 + + col0 * - ( - 51 ) + col0 FROM tab2 AS cor0
----
357
3978
4029
query I rowsort
SELECT 42 + + col0 * - 11 FROM tab1
----
-662
-838
9
query I rowsort
SELECT 81 * - col0 - ( + 80 ) * + col2 AS col0 FROM tab0
----
-13769
-2915
-4584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7744
SELECT ALL + 98 + + col0 + + CAST( 16 AS SIGNED ) FROM tab1
----
117
178
194
skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL + 98 + + col0 + + CAST ( 16 AS INTEGER ) FROM tab1
----
117
178
194
query I rowsort
SELECT tab2.col0 + + tab2.col0 * + col1 AS col2 FROM tab2
----
1422
224
4680
query I rowsort
SELECT 99 * - col0 FROM tab0 AS cor0
----
-2376
-3465
-8811
onlyif mysql # use DIV operator for integer division
query I rowsort label-7747
SELECT ALL col2 - col2 DIV - col2 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL col2 - col2 / - col2 FROM tab1
----
55
58
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7748
SELECT + col0 - col1 DIV - col0 AS col1 FROM tab1
----
11
64
80
skipif mysql # not compatible
query I rowsort label-7748
SELECT + col0 - col1 / - col0 AS col1 FROM tab1
----
11
64
80
query I rowsort
SELECT DISTINCT + col0 + + col1 - - col0 AS col1 FROM tab1
----
138
173
32
query I rowsort
SELECT col1 - col0 * col1 AS col0 FROM tab2
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + col1 col2 FROM tab2
----
0
0
0
query I rowsort
SELECT - col2 - - col1 AS col1 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT + + col0 + - col1 AS col2 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 + + col2 - col2 col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - - col2 + col0 + col1 AS col2 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT - - col2 * - col2 - - col0 FROM tab2 cor0
----
-1365
-598
-722
query I rowsort
SELECT DISTINCT - - col1 * + col0 * col1 + + col0 * col0 * col1 FROM tab1 AS cor0
----
2262
47360
96720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * col1 + - col0 col1 FROM tab2
----
22752
271440
6720
onlyif mysql # use DIV operator for integer division
query I rowsort label-7759
SELECT ALL + col1 + col1 * col1 - col1 DIV + col1 AS col1 FROM tab2
----
305
3539
991
skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL + col1 + col1 * col1 - col1 / + col1 AS col1 FROM tab2
----
305
3539
991
onlyif mysql # use DIV operator for integer division
query I rowsort label-7760
SELECT - col0 + + col1 DIV col2 col0 FROM tab1
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7760
SELECT - col0 + + col1 / col2 col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + col1 * + col1 * col1 + col1 - col1 FROM tab1
----
1000
17576
2197
query I rowsort
SELECT col2 + col2 - - tab0.col2 AS col0 FROM tab0
----
246
3
99
query I rowsort
SELECT ALL + col2 - + col2 AS col2 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col1 - - col2 col0 FROM tab1
----
124
134
205
query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE ( NULL ) <= ( NULL )
----
query I rowsort
SELECT ALL - col1 * col2 + col0 AS col2 FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT col1 * + col0 + - tab1.col2 AS col1 FROM tab1
----
24
583
944
query I rowsort
SELECT DISTINCT + tab2.col2 + - col2 AS col2 FROM tab2
----
0
query I rowsort
SELECT + col0 + - col2 - col2 AS col1 FROM tab2 AS cor0
----
-47
26
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-7770
SELECT - col0 DIV col2 + - col2 DIV cor0.col1 FROM tab1 AS cor0
----
-2
-6
-7
skipif mysql # not compatible
query I rowsort label-7770
SELECT - col0 / col2 + - col2 / cor0.col1 FROM tab1 AS cor0
----
-2
-6
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - col0 * - cor0.col1 col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL + - col2 * col0 + - col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT col1 * - col2 * + col0 - - col1 FROM tab2 AS cor0
----
-119593
-51017
-5828
query I rowsort
SELECT ALL cor0.col2 * col1 AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + col1 + col1 * col1 * + col1 AS col2 FROM tab1 AS cor0
----
1010
17602
2210
query I rowsort
SELECT 82 * col2 * - cor0.col2 FROM tab2 AS cor0
----
-118408
-55432
-59778
query I rowsort
SELECT DISTINCT col2 * cor0.col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT cor0.col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + cor0.col0 * - col0 * col0 + + col2 AS col2 FROM tab2 cor0
----
-316
-474526
-493001
query I rowsort
SELECT DISTINCT + col1 + cor0.col1 * col2 * + col0 FROM tab0 AS cor0
----
3492
664209
68198
query I rowsort
SELECT DISTINCT + - col0 * cor0.col1 + + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-7782
SELECT + cor0.col0 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7782
SELECT + cor0.col0 / col2 AS col2 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + col0 col1 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT - col2 NOT IN ( - tab1.col1 - - col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * col1 BETWEEN ( NULL ) AND tab0.col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - tab2.col2 col0 FROM tab2
----
0
0
0
query I rowsort
SELECT - col1 - - col1 * col2 AS col0 FROM tab1
----
1235
1378
560
query I rowsort
SELECT col1 + + tab2.col0 * col1 * tab2.col1 AS col0 FROM tab2
----
22848
271577
6758
query I rowsort
SELECT DISTINCT col2 * col0 + - tab0.col1 * + col0 * + col0 AS col2 FROM tab0
----
-118790
-48744
-713513
query I rowsort
SELECT - col2 + col0 * - col2 AS col0 FROM tab2
----
-2054
-216
-3040
query I rowsort
SELECT + col2 - + col0 AS col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT ALL col1 + + tab1.col2 * + col0 AS col1 FROM tab1
----
188
3658
7693
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col1 * col0 )
----
query I rowsort
SELECT DISTINCT col0 + + tab1.col2 * - col2 * col0 AS col0 FROM tab1
----
-207872
-737200
-8745
query I rowsort
SELECT - col0 * col1 * col0 FROM tab2 WHERE NOT NULL IN ( - tab2.col0 )
----
query I rowsort
SELECT ALL col1 FROM tab2 cor0 WHERE col2 * + col2 - col1 < NULL
----
query I rowsort
SELECT + cor0.col2 - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IN ( col1 )
----
query I rowsort
SELECT DISTINCT tab1.col2 + + col0 AS col1 FROM tab1
----
121
176
57
query I rowsort
SELECT col0 + + tab2.col1 * + col1 * col2 AS col2 FROM tab2
----
11061
25954
90584
query I rowsort
SELECT - col0 / col1 FROM tab1 WHERE - col1 = NULL
----
query I rowsort
SELECT ALL col1 * + col2 + - col0 AS col1 FROM tab0
----
2814
62
7373
query I rowsort
SELECT + col1 + col2 + col2 * tab1.col1 FROM tab1
----
1357
1484
637
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab0 WHERE ( NULL ) >= NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) < col0
----
query I rowsort
SELECT DISTINCT col0 * + col0 + + col2 AS col0 FROM tab0
----
1226
609
8003
onlyif mysql # use DIV operator for integer division
query I rowsort label-7806
SELECT ALL - tab0.col0 DIV col2 - col2 AS col2 FROM tab0
----
-33
-36
-83
skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL - tab0.col0 / col2 - col2 AS col2 FROM tab0
----
-33
-36
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7807
SELECT ALL - col2 DIV + col0 - col1 AS col0 FROM tab0
----
-87
-91
-97
skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL - col2 / + col0 - col1 AS col0 FROM tab0
----
-87
-91
-97
query I rowsort
SELECT ( + col1 + tab0.col0 ) FROM tab0
----
110
132
180
query I rowsort
SELECT ALL cor0.col2 * + cor0.col2 - + col0 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT + cor0.col1 * + col0 + + col2 * 3 FROM tab2 AS cor0
----
1457
298
4680
query I rowsort
SELECT - 31 * col1 + ( + col1 ) FROM tab2
----
-1770
-510
-930
query I rowsort
SELECT ALL - tab1.col1 * tab1.col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ( + tab0.col2 * col2 ) AS col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT DISTINCT col2 * ( col2 ) AS col0 FROM tab0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-7815
SELECT ALL - col2 * tab2.col2 DIV - tab2.col0 AS col0 FROM tab2
----
104
18
8
skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL - col2 * tab2.col2 / - tab2.col0 AS col0 FROM tab2
----
104
18
8
query I rowsort
SELECT + 25 FROM tab2, tab0 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
query I rowsort
SELECT + col0 * + col2 * - col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT - col1 * - 27 + + cor0.col2 FROM tab2 AS cor0
----
1619
497
864
query I rowsort
SELECT DISTINCT - col2 * col0 + 81 FROM tab1 AS cor0
----
-3567
-7599
-81
query I rowsort
SELECT - col2 * - col2 * + col1 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT + - cor0.col1 + + col0 + + cor0.col0 FROM tab1 AS cor0
----
-20
118
147
skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( + col2 AS REAL ) * col2 + + cor0.col1 * - col1 + col0 AS col0 FROM tab2 AS cor0
----
-225
-2727
1234
query I rowsort
SELECT + + ( - col1 ) * - cor0.col1 + + col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT - 46 * - col0 FROM tab1
----
138
2944
3680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7825
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 90 + + col1 + - col0 * tab2.col1 * - col2 AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7825
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 90 + + col1 + - col0 * tab2.col1 * - col2 AS col1 FROM tab2
----
NULL
query I rowsort
SELECT - tab1.col0 + + col0 * - col1 FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT ALL + col2 * col0 + - col0 + tab1.col2 AS col0 FROM tab1
----
213
3641
7696
query I rowsort
SELECT DISTINCT + col2 + + col2 * + col1 + tab1.col1 * col2 FROM tab1
----
1197
2592
2862
query I rowsort
SELECT ALL - - cor0.col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - ( 82 ) AS col1 FROM tab0 AS cor0
----
-82
-82
-82
query I rowsort
SELECT DISTINCT cor2.col1 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
17
31
59
query I rowsort
SELECT DISTINCT 97 * col1 FROM tab1 AS cor0
----
1261
2522
970
onlyif mysql # use DIV operator for integer division
query I rowsort label-7833
SELECT cor0.col0 DIV cor0.col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7833
SELECT cor0.col0 / cor0.col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL 58 + - col0 FROM tab1 AS cor0
----
-22
-6
55
query I rowsort
SELECT + col2 * - cor0.col0 * col0 AS col1 FROM tab1 cor0
----
-233472
-486
-614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * + cor0.col2 col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - ( cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7838
SELECT ALL - col1 + - col1 DIV col1 AS col1 FROM tab0 cor0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL - col1 + - col1 / col1 AS col1 FROM tab0 cor0
----
-87
-92
-98
query I rowsort
SELECT DISTINCT - col2 + + col2 * col0 FROM tab2
----
162
2002
2964
query I rowsort
SELECT ALL ( + col2 ) * col2 + col1 * + col0 * tab0.col2 AS col1 FROM tab0
----
3396
670842
69201
query I rowsort
SELECT - col0 + 67 AS col0 FROM tab2 AS cor0
----
-11
-12
60
query I rowsort
SELECT DISTINCT col2 * + col2 - - col0 * + col1 * + col2 FROM tab0 AS cor0
----
3396
670842
69201
query I rowsort
SELECT + col2 * col2 - col2 AS col0 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT + col2 * + 97 * + col2 + - col0 FROM tab2 cor0
----
139989
65494
70706
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7845
SELECT + + col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7845
SELECT + + col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - col0 + col0 col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT tab1.col2 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT 33 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
query I rowsort
SELECT + - col1 - ( + col2 * - col1 ) AS col0 FROM tab0 AS cor0
----
0
2752
7371
onlyif mysql # use DIV operator for integer division
query I rowsort label-7850
SELECT DISTINCT col2 DIV col2 - col2 AS col0 FROM tab0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-7850
SELECT DISTINCT col2 / col2 - col2 AS col0 FROM tab0
----
-32
-81
0
query I rowsort
SELECT + - col0 + + col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT DISTINCT - 1 * 14 FROM tab2, tab1 AS cor0
----
-14
query I rowsort
SELECT DISTINCT + col2 + col0 * + ( col1 ) FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT cor0.col0 + - 56 * 9 - cor0.col0 FROM tab1 AS cor0
----
-504
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-7856
SELECT DISTINCT + + col1 DIV - ( col0 ) + + col1 FROM tab2 AS cor0
----
17
27
59
skipif mysql # not compatible
query I rowsort label-7856
SELECT DISTINCT + + col1 / - ( col0 ) + + col1 FROM tab2 AS cor0
----
17
27
59
query I rowsort
SELECT ALL + col0 + ( + col2 ) + - col0 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + + col1 col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - col0 + - tab1.col2 AS col1 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT ALL - cor0.col0 + + col2 * 47 FROM tab2 AS cor0
----
1144
1262
1707
query I rowsort
SELECT DISTINCT + col2 * - col0 + col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT col2 + col2 AS col2 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT ALL - - col1 * + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - - 77 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT ALL + - cor0.col0 + col0 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT DISTINCT - col0 * + 92 FROM tab2
----
-644
-7176
-7268
query I rowsort
SELECT DISTINCT - ( tab0.col1 ) + + tab0.col0 * ( - tab0.col0 ) FROM tab0
----
-1322
-662
-8012
query I rowsort
SELECT col0 + 30 * tab1.col1 FROM tab1
----
364
470
783
query I rowsort
SELECT DISTINCT col1 + col2 + + col2 AS col1 FROM tab1
----
124
134
205
query I rowsort
SELECT - 62 - - col2 * + ( col2 ) FROM tab2
----
1382
614
667
query I rowsort
SELECT 43 + col1 * 89 FROM tab0
----
7697
8142
8676
query I rowsort
SELECT 5 + col2 * + ( + ( col1 ) ) FROM tab0
----
102
2843
7467
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7873
SELECT ALL + ( col0 ) * + CAST( col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL + ( col0 ) * + CAST ( col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7874
SELECT + cor0.col2 * col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7874
SELECT + cor0.col2 * col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * + col1 + + col0 AS col0 FROM tab1 cor0
----
-36
-673
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 col0 FROM tab0
----
14
14
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-7877
SELECT ALL + + 34 DIV - col2 + ( + ( col2 ) ) * col1 + col1 * col0 FROM tab0 AS cor0
----
15561
3458
4901
skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL + + 34 / - col2 + ( + ( col2 ) ) * col1 + col1 * col0 FROM tab0 AS cor0
----
15561
3458
4901
query I rowsort
SELECT - - col0 * + col1 + col2 + ( col1 ) AS col2 FROM tab1 AS cor0
----
1149
158
707
query I rowsort
SELECT DISTINCT - 2 * + cor0.col2 FROM tab0 cor0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - ( cor0.col0 ) * col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL col0 * col0 * col0 FROM tab1 AS cor0
----
262144
27
512000
query I rowsort
SELECT + - cor0.col2 * + 14 * col1 AS col0 FROM tab2 AS cor0
----
-11718
-21476
-9044
query I rowsort
SELECT - col2 * - 57 * + col0 FROM tab2 AS cor0
----
10773
115596
171114
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 * + col0 col0 FROM tab1
----
1792
2240
84
query I rowsort
SELECT - col2 + - 23 AS col0 FROM tab1 AS cor0
----
-119
-77
-80
query I rowsort
SELECT + 87 * + col2 - col1 FROM tab0 AS cor0
----
-10
2785
7043
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7888
SELECT DISTINCT - CAST( - col2 AS SIGNED ) AS col2 FROM tab0 cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-7888
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT - 59 * - col2 + col1 + - 34 AS col1 FROM tab1
----
3178
3339
5643
query I rowsort
SELECT DISTINCT + tab1.col2 * cor0.col1 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 24458b87d784ecaf9184f99bd12fb51a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 col1 FROM tab2
----
26
26
26
query I rowsort
SELECT ALL - - col0 * + col0 - - cor0.col1 * - 94 AS col0 FROM tab1 AS cor0
----
-2435
3156
5178
query I rowsort
SELECT + col1 - col0 * - col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL 63 + col2 FROM tab2 AS cor0
----
101
89
90
query I rowsort
SELECT DISTINCT - - 78 * col1 + cor0.col0 * 16 AS col0 FROM tab0 AS cor0
----
7092
8126
8522
query I rowsort
SELECT - 72 - - col0 AS col2 FROM tab2 AS cor0
----
-65
6
7
query I rowsort
SELECT DISTINCT col1 * + 67 + + col0 + 19 * + col2 FROM tab2 cor0
----
1940
2597
4525
onlyif mysql # use DIV operator for integer division
query I rowsort label-7898
SELECT ALL + - col2 - - col1 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL + - col2 - - col1 / cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - col0 + - cor0.col2 * + col1 AS col2 FROM tab1 cor0
----
-1328
-1407
-634
query I rowsort
SELECT DISTINCT + ( + col0 ) AS col1 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT + col1 + + col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL 37 * col1 AS col0 FROM tab1 AS cor0
----
370
481
962
query I rowsort
SELECT 52 * + col0 FROM tab1 cor0
----
156
3328
4160
query I rowsort
SELECT ALL + ( - ( tab1.col2 ) ) * + 14 + - col2 * + col2 AS col0 FROM tab1
----
-10560
-3672
-4047
onlyif mysql # use DIV operator for integer division
query I rowsort label-7905
SELECT ALL - 91 DIV col1 + col1 * 79 + - col2 FROM tab1
----
1997
724
924
skipif mysql # not compatible
query I rowsort label-7905
SELECT ALL - 91 / col1 + col1 * 79 + - col2 FROM tab1
----
1997
724
924
query I rowsort
SELECT - 74 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28
query I rowsort
SELECT - col2 + col2 * - tab0.col0 FROM tab0
----
-36
-7380
-825
query I rowsort
SELECT - 71 * + col0 * - tab0.col2 AS col0 FROM tab0
----
2485
518158
56232
query I rowsort
SELECT + col0 * col1 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - + 29 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 5 col0 FROM tab2
----
155
295
85
query I rowsort
SELECT - tab2.col0 * 90 FROM tab2
----
-630
-7020
-7110
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col1 col0 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT ALL cor0.col1 + + 90 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to f7b9f30036666a8382a7bfa9a4fe2984
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + + 98 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 2d69dc5c941866b03e7767fe6ea3b57c
query I rowsort
SELECT ALL 41 AS col2 FROM tab0
----
41
41
41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7917
SELECT CAST( + 98 AS SIGNED ) AS col1 FROM tab0
----
98
98
98
skipif mysql # not compatible
query I rowsort label-7917
SELECT CAST ( + 98 AS INTEGER ) AS col1 FROM tab0
----
98
98
98
query I rowsort
SELECT + 93 FROM tab2, tab2 cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
onlyif mysql # use DIV operator for integer division
query I rowsort label-7919
SELECT ALL + col2 DIV + col0 + col0 * col2 AS col2 FROM tab2
----
192
2028
3002
skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL + col2 / + col0 + col0 * col2 AS col2 FROM tab2
----
192
2028
3002
query I rowsort
SELECT DISTINCT + col2 * - col2 + + tab0.col1 AS col0 FROM tab0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT col0 + + cor0.col0 * col0 AS col1 FROM tab0 cor0
----
1260
600
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-7922
SELECT + 30 DIV col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7922
SELECT + 30 / col2 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7923
SELECT ALL col1 + 16 * + ( col1 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL col1 + 16 * + ( col1 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * 84 AS col0 FROM tab2 AS cor0
----
1428
2604
4956
query I rowsort
SELECT - - col1 * col0 + - col0 * col2 FROM tab1 AS cor0
----
-3008
-6640
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-7926
SELECT - cor0.col0 + + col1 DIV 44 FROM tab0 AS cor0
----
-23
-33
-87
skipif mysql # not compatible
query I rowsort label-7926
SELECT - cor0.col0 + + col1 / 44 FROM tab0 AS cor0
----
-23
-33
-87
query I rowsort
SELECT - - col1 * - col1 + + col2 FROM tab2 AS cor0
----
-251
-3455
-934
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7928
SELECT - col0 + - CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-7928
SELECT - col0 + - CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT col2 * cor0.col2 - col2 AS col2 FROM tab1 cor0
----
2862
3192
9120
query I rowsort
SELECT DISTINCT + col1 * + ( - col1 ) FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT + + cor0.col1 * 67 * - col1 - col1 * col0 * 16 AS col2 FROM tab1 cor0
----
-16940
-27963
-46540
query I rowsort
SELECT DISTINCT + col2 * ( col2 ) - - col2 AS col0 FROM tab2
----
1482
702
756
onlyif mysql # use DIV operator for integer division
query I rowsort label-7933
SELECT + cor0.col0 + - col2 DIV + 23 FROM tab1 AS cor0
----
1
62
76
skipif mysql # not compatible
query I rowsort label-7933
SELECT + cor0.col0 + - col2 / + 23 FROM tab1 AS cor0
----
1
62
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7934
SELECT DISTINCT col1 * ( col2 ) + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7934
SELECT DISTINCT col1 * ( col2 ) + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7935
SELECT 46 + - col1 DIV - cor0.col1 AS col1 FROM tab0 AS cor0
----
47
47
47
skipif mysql # not compatible
query I rowsort label-7935
SELECT 46 + - col1 / - cor0.col1 AS col1 FROM tab0 AS cor0
----
47
47
47
query I rowsort
SELECT - - 87 + + col1 + + col0 AS col0 FROM tab1 cor0
----
116
161
180
query I rowsort
SELECT 87 * col0 + col2 FROM tab1 AS cor0
----
315
5625
7056
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7938
SELECT - ( col0 ) + col2 * ( - col0 + + col2 * CAST( + col0 AS SIGNED ) ) FROM tab1 AS cor0
----
204224
729520
8583
skipif mysql # not compatible
query I rowsort label-7938
SELECT - ( col0 ) + col2 * ( - col0 + + col2 * CAST ( + col0 AS INTEGER ) ) FROM tab1 AS cor0
----
204224
729520
8583
onlyif mysql # use DIV operator for integer division
query I rowsort label-7939
SELECT col2 + - col0 DIV - col0 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-7939
SELECT col2 + - col0 / - col0 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT DISTINCT + 46 * - cor1.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-1196
-460
-598
query I rowsort
SELECT - 74 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28
query I rowsort
SELECT ALL - 40 + col1 * cor0.col1 FROM tab1 AS cor0
----
129
60
636
query I rowsort
SELECT + 11 + 70 + - col2 * 51 FROM tab0 AS cor0
----
-1602
-4101
30
query I rowsort
SELECT ALL 42 + - col1 * col1 AS col2 FROM tab1 AS cor0
----
-127
-58
-634
query I rowsort
SELECT ALL 40 + col1 FROM tab0 AS cor0
----
126
131
137
onlyif mysql # use DIV operator for integer division
query I rowsort label-7946
SELECT col2 DIV cor0.col0 FROM tab1 cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-7946
SELECT col2 / cor0.col0 FROM tab1 cor0
----
0
1
18
query I rowsort
SELECT + 52 + col0 AS col2 FROM tab0 AS cor0
----
141
76
87
query I rowsort
SELECT ALL 72 + + col2 * col1 + - 34 AS col0 FROM tab2 AS cor0
----
1572
684
875
onlyif mysql # use DIV operator for integer division
query I rowsort label-7949
SELECT DISTINCT - + col0 * + col0 + + 89 DIV - cor0.col2 + + ( + col0 ) FROM tab1 AS cor0
----
-4033
-6320
-7
skipif mysql # not compatible
query I rowsort label-7949
SELECT DISTINCT - + col0 * + col0 + + 89 / - cor0.col2 + + ( + col0 ) FROM tab1 AS cor0
----
-4033
-6320
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7950
SELECT - col1 + col2 * col0 DIV col1 AS col2 FROM tab0 AS cor0
----
-11
-77
-97
skipif mysql # not compatible
query I rowsort label-7950
SELECT - col1 + col2 * col0 / col1 AS col2 FROM tab0 AS cor0
----
-11
-77
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * cor0.col0 col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + 81 * 1 FROM tab0
----
81
query I rowsort
SELECT - col1 + + 4 * col0 FROM tab0
----
10
265
43
query I rowsort
SELECT DISTINCT + ( tab0.col0 + - col1 ) * col1 AS col1 FROM tab0
----
-182
-5332
-6014
query I rowsort
SELECT DISTINCT + col2 * - col0 + col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-7956
SELECT DISTINCT - 13 DIV + col2 FROM tab0 AS cor0
----
-13
0
skipif mysql # not compatible
query I rowsort label-7956
SELECT DISTINCT - 13 / + col2 FROM tab0 AS cor0
----
-13
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7957
SELECT + - ( col0 ) * + col0 DIV + ( col0 ) AS col2 FROM tab1 cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-7957
SELECT + - ( col0 ) * + col0 / + ( col0 ) AS col2 FROM tab1 cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7958
SELECT DISTINCT - - CAST( - 45 AS SIGNED ) + cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
1489
601
792
skipif mysql # not compatible
query I rowsort label-7958
SELECT DISTINCT - - CAST ( - 45 AS INTEGER ) + cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
1489
601
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-7959
SELECT ALL 80 DIV col0 AS col1 FROM tab1 cor0
----
1
1
26
skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL 80 / col0 AS col1 FROM tab1 cor0
----
1
1
26
query I rowsort
SELECT - col0 + col0 * 36 AS col1 FROM tab2 AS cor0
----
245
2730
2765
query I rowsort
SELECT 52 * col1 AS col2 FROM tab1 cor0
----
1352
520
676
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 * col2 AS col1 FROM tab2 AS cor0
----
1323
158184
237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-7963
SELECT DISTINCT + + 0 - + col2 DIV col0 FROM tab2 AS cor0
----
-3
0
skipif mysql # not compatible
query I rowsort label-7963
SELECT DISTINCT + + 0 - + col2 / col0 FROM tab2 AS cor0
----
-3
0
query I rowsort
SELECT ALL - - col2 * - col1 * + 27 FROM tab1 AS cor0
----
-15390
-33696
-37908
query I rowsort
SELECT ALL 62 AS col0 FROM tab2 cor0
----
62
62
62
query I rowsort
SELECT DISTINCT - 17 * - col2 FROM tab2
----
442
459
646
query I rowsort
SELECT 14 + col2 AS col0 FROM tab1
----
110
68
71
query I rowsort
SELECT 27 * cor0.col1 FROM tab0 AS cor0
----
2322
2457
2619
query I rowsort
SELECT 97 + 31 * col2 AS col1 FROM tab2
----
1275
903
934
query I rowsort
SELECT col0 + - ( - col2 * col1 + 37 ) AS col0 FROM tab1 AS cor0
----
1291
1370
597
query I rowsort
SELECT ALL cor0.col2 * 39 + col1 * - col0 FROM tab1 AS cor0
----
1583
2028
2704
query I rowsort
SELECT ALL + col0 + - 36 FROM tab1 AS cor0
----
-33
28
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7973
SELECT + col2 + CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7973
SELECT + col2 + CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + 93 * col1 FROM tab0 cor0
----
7912
8372
8924
query I rowsort
SELECT - col1 * + ( col2 * cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT - col2 * - 9 * + col1 + - col2 * 31 FROM tab1 AS cor0
----
10962
3363
8256
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7977
SELECT DISTINCT + col0 * - ( col1 ) + cor0.col1 + + ( + col1 + col1 ) / - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7977
SELECT DISTINCT + col0 * - ( col1 ) + cor0.col1 + + ( + col1 + col1 ) / - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 col2 FROM tab1
----
-76
query I rowsort
SELECT col1 * cor0.col0 * + col1 + + col2 AS col0 FROM tab0 cor0
----
177537
329316
737091
query I rowsort
SELECT ALL - + col0 * ( ( col2 ) ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - cor0.col1 * + ( col2 ) + col2 + - col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - cor0.col2 + + col2 * + 43 AS col1 FROM tab1 AS cor0
----
2268
2394
4032
onlyif mysql # use DIV operator for integer division
query I rowsort label-7983
SELECT + col0 * col2 - 91 DIV + col0 AS col0 FROM tab1 AS cor0
----
132
3647
7679
skipif mysql # not compatible
query I rowsort label-7983
SELECT + col0 * col2 - 91 / + col0 AS col0 FROM tab1 AS cor0
----
132
3647
7679
query I rowsort
SELECT ALL - + col0 * 25 - - col0 FROM tab1 AS cor0
----
-1536
-1920
-72
query I rowsort
SELECT col0 + - ( col0 * + col1 ) AS col0 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT ALL 58 AS col1 FROM tab0, tab2 cor0, tab1, tab2 AS cor1
----
81 values hashing to 793ce5fda3f22b0a251dca7e8a07baed
onlyif mysql # use DIV operator for integer division
query I rowsort label-7987
SELECT - + cor0.col2 + + 91 DIV col0 FROM tab0 AS cor0
----
-30
-81
1
skipif mysql # not compatible
query I rowsort label-7987
SELECT - + cor0.col2 + + 91 / col0 FROM tab0 AS cor0
----
-30
-81
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7988
SELECT - + col0 + - col0 DIV col0 FROM tab1 cor0
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-7988
SELECT - + col0 + - col0 / col0 FROM tab1 cor0
----
-4
-65
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-7989
SELECT - ( col0 ) DIV + col2 + + col1 * 75 AS col0 FROM tab0 cor0
----
6450
6824
7240
skipif mysql # not compatible
query I rowsort label-7989
SELECT - ( col0 ) / + col2 + + col1 * 75 AS col0 FROM tab0 cor0
----
6450
6824
7240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * col2 + - col2 * + col2 col2 FROM tab0 AS cor0
----
1749
738
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7991
SELECT - col0 DIV 53 + col0 + col1 AS col0 FROM tab2
----
136
38
95
skipif mysql # not compatible
query I rowsort label-7991
SELECT - col0 / 53 + col0 + col1 AS col0 FROM tab2
----
136
38
95
query I rowsort
SELECT ALL + col2 + ( + col0 ) * + col2 AS col0 FROM tab1
----
216
3705
7776
query I rowsort
SELECT ALL - col1 * col0 + + ( tab2.col1 ) * ( col0 ) AS col1 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7994
SELECT tab0.col1 + + CAST( 37 AS SIGNED ) FROM tab0
----
123
128
134
skipif mysql # not compatible
query I rowsort label-7994
SELECT tab0.col1 + + CAST ( 37 AS INTEGER ) FROM tab0
----
123
128
134
query I rowsort
SELECT ALL - tab2.col0 * 34 FROM tab2, tab2 AS cor0
----
9 values hashing to 084eb7f6d2e434c1a92d97f46838c084
query I rowsort
SELECT ALL ( col0 * - tab0.col0 ) FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT ALL + + ( 63 ) FROM tab0 AS cor0
----
63
63
63
query I rowsort
SELECT - 5 * - col1 + - col2 AS col1 FROM tab1 AS cor0
----
-31
-7
76
query I rowsort
SELECT ALL + 81 + 29 AS col2 FROM tab0 AS cor0
----
110
110
110
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8000
SELECT DISTINCT + + ( col1 ) * + col0 - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8000
SELECT DISTINCT + + ( col1 ) * + col0 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT ALL - 77 + - col0 * col0 FROM tab1 AS cor0
----
-4173
-6477
-86
query I rowsort
SELECT + col2 + - 93 AS col0 FROM tab0 cor0
----
-11
-60
-92
query I rowsort
SELECT DISTINCT + 84 + col2 AS col1 FROM tab2 AS cor0
----
110
111
122
onlyif mysql # use DIV operator for integer division
query I rowsort label-8004
SELECT - + 93 DIV col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-8004
SELECT - + 93 / col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT - col0 + - cor0.col0 * col1 FROM tab2 AS cor0
----
-1422
-224
-4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * 42 + ( col1 + + 92 * 34 ) col0 FROM tab1
----
5422
5532
7173
query I rowsort
SELECT DISTINCT + - col2 * 40 + cor0.col0 FROM tab0 AS cor0
----
-1296
-3191
-5
query I rowsort
SELECT ALL + - cor0.col2 * col2 - col1 AS col0 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT + col2 * col1 + 28 AS col1 FROM tab2 AS cor0
----
1562
674
865
query I rowsort
SELECT ALL tab2.col0 - - tab2.col1 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 45123676d9d30ad294b9a8d42384b2df
query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-24
-35
-89
query I rowsort
SELECT + col2 * 64 FROM tab0
----
2112
5248
64
query I rowsort
SELECT + cor0.col0 * - 90 FROM tab0, tab2 AS cor0
----
9 values hashing to 0873da4bd41fd13f4335562b4f865b12
query I rowsort
SELECT + col0 * col1 + - 35 - + col1 FROM tab0 AS cor0
----
1943
3263
7973
query I rowsort
SELECT col1 + 31 * col0 - + col2 * - 3 AS col2 FROM tab2 AS cor0
----
2555
2580
329
query I rowsort
SELECT col1 + + col2 * col0 - - col1 AS col0 FROM tab0 cor0
----
229
7480
964
query I rowsort
SELECT + + col2 - + col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8018
SELECT + ( col2 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8018
SELECT + ( col2 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + cor0.col0 + + col0 * - ( + col0 ) * col0 + + col1 FROM tab1 AS cor0
----
-262070
-511907
2
query I rowsort
SELECT + 56 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT - col2 * col2 - col1 * col2 FROM tab1 AS cor0
----
-10464
-3819
-4320
query I rowsort
SELECT DISTINCT - - col1 + - cor0.col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + - cor0.col0 * ( 28 ) AS col1 FROM tab0 AS cor0
----
-2492
-672
-980
query I rowsort
SELECT + + 71 AS col2 FROM tab1 AS cor0
----
71
71
71
query I rowsort
SELECT + col2 + 2 AS col0 FROM tab2 AS cor0
----
28
29
40
query I rowsort
SELECT 81 FROM tab2, tab0 AS cor0, tab2 cor1, tab0 cor2
----
81 values hashing to 50d500b1082f81e0b02096b2afac91cd
query I rowsort
SELECT DISTINCT + 41 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-8028
SELECT + tab1.col0 DIV + tab1.col0 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
skipif mysql # not compatible
query I rowsort label-8028
SELECT + tab1.col0 / + tab1.col0 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 cor2, tab2 AS cor3
----
3645 values hashing to b050f98b2d07c1b092b73ecf6b5b347c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - tab1.col1 ) col1 FROM tab1, tab0 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + + cor0.col0 * col0 + + 26 FROM tab2 cor0
----
6110
6267
75
query I rowsort
SELECT 0 * col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 + 55 + + col2 FROM tab0
----
153
174
228
query I rowsort
SELECT ALL - cor0.col2 * col2 + + 13 AS col2 FROM tab2 AS cor0
----
-1431
-663
-716
query I rowsort
SELECT DISTINCT 94 * 8 FROM tab2
----
752
query I rowsort
SELECT ALL + col0 + col1 * - col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT 57 AS col1 FROM tab1, tab0 AS cor0
----
57
query I rowsort
SELECT DISTINCT 63 AS col2 FROM tab1, tab1 AS cor0
----
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-8039
SELECT ALL + col1 DIV - col1 - + col1 FROM tab0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL + col1 / - col1 - + col1 FROM tab0
----
-87
-92
-98
query I rowsort
SELECT 66 * col2 AS col1 FROM tab0
----
2178
5412
66
query I rowsort
SELECT DISTINCT tab0.col2 - + col2 AS col0 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * tab2.col1 - 64 col1 FROM tab2
----
1279
153
4538
query I rowsort
SELECT - ( col1 ) * ( 33 ) AS col2 FROM tab0 AS cor0
----
-2838
-3003
-3201
query I rowsort
SELECT ALL col2 * + col0 + - col2 AS col0 FROM tab1
----
108
3591
7584
query I rowsort
SELECT ALL col1 * + ( + col1 + - col2 ) * + ( col0 * col0 ) FROM tab0
----
11407200
2625408
6487299
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + col2 col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL tab2.col2 + - tab2.col1 + - col0 FROM tab2
----
-11
-111
-58
query I rowsort
SELECT col1 - 52 FROM tab0
----
34
39
45
query I rowsort
SELECT - + 56 + + col1 * + col1 * + col2 FROM tab0 cor0
----
244012
678986
9353
query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT - - ( - 70 ) * + col0 AS col1 FROM tab0 AS cor0
----
-1680
-2450
-6230
query I rowsort
SELECT ALL - col1 + - 79 * col2 FROM tab1 cor0
----
-4292
-4513
-7597
query I rowsort
SELECT ALL + + 92 * 59 FROM tab0 AS cor0
----
5428
5428
5428
query I rowsort
SELECT DISTINCT - 31 * - 14 FROM tab1 cor0
----
434
query I rowsort
SELECT + 38 * - col2 AS col2 FROM tab0 cor0
----
-1254
-3116
-38
query I rowsort
SELECT ALL 23 * col0 AS col0 FROM tab0 AS cor0
----
2047
552
805
query I rowsort
SELECT ( + 51 ) * + cor0.col1 FROM tab0 AS cor0
----
4386
4641
4947
query I rowsort
SELECT ALL col0 * + col1 + + col1 AS col0 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT - 35 + tab1.col1 FROM tab1, tab0, tab2 AS cor0
----
-22
-25
-9
query I rowsort
SELECT DISTINCT 34 + col1 * - col2 * col2 + col0 FROM tab0
----
-28
-611761
-93596
query I rowsort
SELECT ALL 64 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT - 82 + col1 FROM tab2
----
-23
-51
-65
query I rowsort
SELECT + - 90 - col2 FROM tab0 AS cor0
----
-123
-172
-91
query I rowsort
SELECT DISTINCT - col1 * col2 + - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1566
-2090
-2210
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8066
SELECT + tab1.col0 * - col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8066
SELECT + tab1.col0 * - col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 16 + - tab0.col0 AS col1 FROM tab0
----
-19
-73
-8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8068
SELECT DISTINCT - col0 + - col1 * ( - ( col1 ) ) + ( + tab0.col0 ) * col1 * - CAST( col1 AS SIGNED ) FROM tab0
----
-170132
-319941
-728817
skipif mysql # not compatible
query I rowsort label-8068
SELECT DISTINCT - col0 + - col1 * ( - ( col1 ) ) + ( + tab0.col0 ) * col1 * - CAST ( col1 AS INTEGER ) FROM tab0
----
-170132
-319941
-728817
query I rowsort
SELECT - cor0.col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT ALL - col0 + ( col1 ) FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT cor0.col2 + col1 * - 44 AS col1 FROM tab1 AS cor0
----
-1090
-383
-476
query I rowsort
SELECT DISTINCT col2 + + 72 AS col2 FROM tab0 AS cor0
----
105
154
73
query I rowsort
SELECT ALL + col1 + - 10 AS col0 FROM tab1 AS cor0
----
0
16
3
query I rowsort
SELECT cor0.col1 + ( col1 * + col0 ) + col2 FROM tab2 AS cor0
----
1398
275
4687
query I rowsort
SELECT ALL - + col2 * ( + col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + col2 + + cor0.col1 AS col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT cor0.col2 * ( - cor0.col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 * col2 col1 FROM tab2
----
1461
735
760
query I rowsort
SELECT + - col0 * col0 + + ( col1 ) FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT ALL col2 * 70 AS col1 FROM tab2 cor0
----
1820
1890
2660
query I rowsort
SELECT DISTINCT col0 * 40 AS col2 FROM tab2 AS cor0
----
280
3120
3160
query I rowsort
SELECT - + col2 * 34 AS col0 FROM tab2 AS cor0
----
-1292
-884
-918
query I rowsort
SELECT - - col1 * + 84 + 13 + - col2 FROM tab2 AS cor0
----
1403
2590
4943
query I rowsort
SELECT ALL - col0 + 35 FROM tab2 AS cor0
----
-43
-44
28
query I rowsort
SELECT + - cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - - col1 + 23 FROM tab2 AS cor0
----
40
54
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 col2 FROM tab0
----
-1
-1089
-6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8088
SELECT CAST( NULL AS SIGNED ) + col0 + - col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8088
SELECT CAST ( NULL AS INTEGER ) + col0 + - col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - + 59 * 43 AS col2 FROM tab0 cor0
----
-2537
-2537
-2537
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8090
SELECT DISTINCT CAST( 75 AS SIGNED ) FROM tab1 cor0
----
75
skipif mysql # not compatible
query I rowsort label-8090
SELECT DISTINCT CAST ( 75 AS INTEGER ) FROM tab1 cor0
----
75
query I rowsort
SELECT + cor0.col0 + ( + col1 ) FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + 12 + + 34 FROM tab0 AS cor0
----
46
46
46
query I rowsort
SELECT DISTINCT cor0.col2 + - 48 - cor0.col2 FROM tab1 cor0
----
-48
query I rowsort
SELECT ALL - col2 + - 76 * - col2 FROM tab1 AS cor0
----
4050
4275
7200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8095
SELECT ALL - CAST( col0 AS DECIMAL ) + - cor0.col2 * CAST( NULL AS SIGNED ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL - CAST ( col0 AS REAL ) + - cor0.col2 * CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8096
SELECT - + CAST( 91 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-91
-91
-91
skipif mysql # not compatible
query I rowsort label-8096
SELECT - + CAST ( 91 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-91
-91
-91
query I rowsort
SELECT DISTINCT 18 * col0 FROM tab1 AS cor0
----
1152
1440
54
query I rowsort
SELECT DISTINCT - - col1 * - col0 AS col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - - col1 * + col1 + cor0.col1 * + col2 * col1 FROM tab1 AS cor0
----
16393
37180
5800
query I rowsort
SELECT ALL 25 * + col1 + + col2 * 97 + + col1 AS col1 FROM tab2 AS cor0
----
3425
4056
4128
onlyif mysql # use DIV operator for integer division
query I rowsort label-8101
SELECT ALL + 11 DIV cor0.col1 col0 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8101
SELECT ALL + 11 / cor0.col1 col0 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT - - 87 + col2 * - ( - col0 ) FROM tab1 AS cor0
----
249
3735
7767
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8103
SELECT - - col0 * col2 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8103
SELECT - - col0 * col2 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8104
SELECT DISTINCT + + col0 * + col1 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8104
SELECT DISTINCT + + col0 * + col1 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 52 AS col2 FROM tab2 AS cor0
----
52
query I rowsort
SELECT DISTINCT + + 1 + col0 FROM tab0 AS cor0
----
25
36
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 - + ( - 69 ) col2 FROM tab1 cor0
----
1109
147
709
onlyif mysql # use DIV operator for integer division
query I rowsort label-8108
SELECT ALL cor0.col1 * + col2 + + cor0.col0 DIV - cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL cor0.col1 * + col2 + + cor0.col0 / - cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8109
SELECT DISTINCT + 43 + col2 * - CAST( + col0 AS SIGNED ) * col2 FROM tab2 cor0
----
-114033
-5060
-52685
skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT + 43 + col2 * - CAST ( + col0 AS INTEGER ) * col2 FROM tab2 cor0
----
-114033
-5060
-52685
query I rowsort
SELECT DISTINCT + - ( col1 ) + cor0.col0 AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT + col2 + + col1 * - col2 AS col2 FROM tab0 cor0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT - 47 * - col0 * + 77 AS col1 FROM tab0 cor0
----
126665
322091
86856
query I rowsort
SELECT ALL - col2 + col0 * ( - col0 ) FROM tab1 AS cor0
----
-4153
-63
-6496
onlyif mysql # use DIV operator for integer division
query I rowsort label-8114
SELECT DISTINCT - 74 DIV col1 FROM tab2 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT - 74 / col1 FROM tab2 AS cor0
----
-1
-2
-4
query I rowsort
SELECT - 84 + cor0.col0 * col0 * col2 FROM tab2 AS cor0
----
1239
158100
237074
query I rowsort
SELECT + cor1.col1 FROM tab2, tab2 cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8117
SELECT col1 + CAST( NULL AS SIGNED ) * - 86 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8117
SELECT col1 + CAST ( NULL AS INTEGER ) * - 86 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( col1 ) * col2 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT - - col1 + 77 FROM tab2 AS cor0
----
108
136
94
query I rowsort
SELECT + ( cor0.col2 ) * - col0 + + col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT cor1.col2 AS col2 FROM tab2, tab1 cor0, tab1 AS cor1
----
54
57
96
query I rowsort
SELECT - + 27 * col2 FROM tab0 AS cor0
----
-2214
-27
-891
query I rowsort
SELECT DISTINCT ( 29 ) AS col0 FROM tab1, tab0 cor0
----
29
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS cor2
----
972 values hashing to 4c0813b2179303fdf58f082d81d6d03c
query I rowsort
SELECT col0 * - 9 AS col1 FROM tab1 AS cor0
----
-27
-576
-720
query I rowsort
SELECT + 75 - ( col0 ) FROM tab1 AS cor0
----
-5
11
72
query I rowsort
SELECT + + 71 + - col0 FROM tab2 AS cor0
----
-7
-8
64
query I rowsort
SELECT cor0.col2 * - cor0.col2 + - col2 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT ALL + col2 - + tab0.col1 AS col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT ( + col2 ) * + col1 + + 3 AS col2 FROM tab2 AS cor0
----
1537
649
840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 15 * - col1 col1 FROM tab2 AS cor0
----
20145
3255
69030
onlyif mysql # use DIV operator for integer division
query I rowsort label-8132
SELECT - 69 + 98 DIV col2 AS col2 FROM tab0 AS cor0
----
-67
-68
29
skipif mysql # not compatible
query I rowsort label-8132
SELECT - 69 + 98 / col2 AS col2 FROM tab0 AS cor0
----
-67
-68
29
query I rowsort
SELECT + + col1 * col1 + + col1 * 70 - - col1 AS col0 FROM tab2 AS cor0
----
1496
3162
7670
query I rowsort
SELECT DISTINCT - col0 + - col1 * + col1 AS col0 FROM tab0
----
-7420
-8370
-9444
query I rowsort
SELECT ALL + cor1.col1 AS col1 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT + ( + cor0.col0 ) AS col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT tab1.col0 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8138
SELECT + - ( + col1 ) * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8138
SELECT + - ( + col1 ) * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8139
SELECT + col0 DIV 54 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-8139
SELECT + col0 / 54 FROM tab2 AS cor0
----
0
1
1
query I rowsort
SELECT - + col1 * 6 FROM tab1 AS cor0
----
-156
-60
-78
query I rowsort
SELECT ALL - col0 * - ( col0 * - cor0.col1 ) FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT + + col1 + + ( - ( col2 ) ) FROM tab0 AS cor0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8143
SELECT DISTINCT + col0 + - CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT + col0 + - CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8144
SELECT ALL - col0 DIV ( col0 ) + - col2 + - CAST( col1 AS SIGNED ) DIV col0 AS col1 FROM tab2 AS cor0
----
-27
-32
-39
skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL - col0 / ( col0 ) + - col2 + - CAST ( col1 AS INTEGER ) / col0 AS col1 FROM tab2 AS cor0
----
-27
-32
-39
query I rowsort
SELECT DISTINCT - col1 * + ( - col1 ) FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT col2 * col2 + - col1 AS col2 FROM tab1
----
2890
3239
9203
query I rowsort
SELECT - col0 - ( + col1 ) FROM tab0
----
-110
-132
-180
query I rowsort
SELECT + col2 - - col1 AS col1 FROM tab1
----
109
67
80
query I rowsort
SELECT ALL + - ( col2 ) + cor0.col1 AS col2 FROM tab0 AS cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - col0 col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL ( + 20 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT col0 + - ( col0 ) AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT col0 + + ( - 20 ) * col0 FROM tab0
----
-1691
-456
-665
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ( - col1 ) * col0 AS col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL - 24 + cor0.col1 FROM tab0 AS cor0
----
62
67
73
query I rowsort
SELECT DISTINCT + col0 * - col2 - col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT DISTINCT col1 + - col0 * col1 FROM tab2 cor0
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + cor0.col2 + - 11 col2 FROM tab1 AS cor0
----
-2927
-3260
-9227
query I rowsort
SELECT - + cor0.col1 + col1 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8161
SELECT DISTINCT - col0 * + col1 - ( col2 + col1 ) DIV 14 col0 FROM tab0 AS cor0
----
-2072
-3402
-8111
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8161
SELECT DISTINCT - col0 * + col1 - ( col2 + col1 ) / 14 col0 FROM tab0 AS cor0
----
-2072
-3402
-8111
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8162
SELECT ( col2 ) * - CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8162
SELECT ( col2 ) * - CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 7 - col1 FROM tab2
----
-24
-38
-66
query I rowsort
SELECT ALL - tab2.col1 - + ( col2 * col0 ) FROM tab2
----
-2087
-220
-3019
query I rowsort
SELECT - 43 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 2f72bd9cab68c8d8c38874510a290a3c
query I rowsort
SELECT + col1 - - col1 * + 10 AS col1 FROM tab2
----
187
341
649
query I rowsort
SELECT + col1 + - col0 * 20 AS col2 FROM tab2 AS cor0
----
-109
-1501
-1563
query I rowsort
SELECT cor0.col1 * col1 - ( 85 ) * - col1 AS col1 FROM tab1 AS cor0
----
1274
2886
950
query I rowsort
SELECT + cor0.col0 * col0 - ( col0 * - col2 ) FROM tab0 AS cor0
----
1260
1368
15219
query I rowsort
SELECT ALL col2 * + col1 + 80 FROM tab1 AS cor0
----
1328
1484
650
query I rowsort
SELECT ALL col0 + - col0 + col2 AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - - 62 * col0 + 62 AS col2 FROM tab0 AS cor0
----
1550
2232
5580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8173
SELECT + 51 / + tab1.col2 + - col1 / - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8173
SELECT + 51 / + tab1.col2 + - col1 / - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - ( col2 ) - ( 54 * - col0 ) FROM tab1 AS cor0
----
108
3399
4224
query I rowsort
SELECT ALL - 63 * col1 + tab2.col2 AS col2 FROM tab2
----
-1033
-1926
-3691
query I rowsort
SELECT + col0 + + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL tab2.col1 + + col0 * 26 AS col0 FROM tab2
----
2071
2087
213
query I rowsort
SELECT ALL col2 + col1 * - col0 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT ALL - 46 * + col2 * col1 + col2 + col2 FROM tab2 AS cor0
----
-29640
-38448
-70512
query I rowsort
SELECT ALL - + 93 - col1 AS col1 FROM tab1 AS cor0
----
-103
-106
-119
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8181
SELECT - col2 * + col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8181
SELECT - col2 * + col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - ( + tab1.col0 ) * + col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + col1 - - ( 17 * col0 ) AS col0 FROM tab2
----
1360
1385
150
onlyif mysql # use DIV operator for integer division
query I rowsort label-8184
SELECT DISTINCT + ( - 63 ) DIV col2 FROM tab0 cor0
----
-1
-63
0
skipif mysql # not compatible
query I rowsort label-8184
SELECT DISTINCT + ( - 63 ) / col2 FROM tab0 cor0
----
-1
-63
0
query I rowsort
SELECT tab0.col0 + col2 * + tab0.col0 FROM tab0
----
70
7387
816
query I rowsort
SELECT tab2.col2 * col1 + + ( col2 ) FROM tab2
----
1560
684
864
query I rowsort
SELECT ALL - - col1 * 74 + + col1 AS col1 FROM tab1 AS cor0
----
1950
750
975
onlyif mysql # use DIV operator for integer division
query I rowsort label-8188
SELECT ALL 25 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL 25 / cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT + 90 + + col1 FROM tab1 AS cor0
----
100
103
116
query I rowsort
SELECT ALL - 31 + - 88 FROM tab0 AS cor0
----
-119
-119
-119
query I rowsort
SELECT 46 * col2 FROM tab0 cor0
----
1518
3772
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8192
SELECT ALL - + CAST( 70 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-70
-70
-70
skipif mysql # not compatible
query I rowsort label-8192
SELECT ALL - + CAST ( 70 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-70
-70
-70
query I rowsort
SELECT DISTINCT col2 * cor0.col0 AS col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL + - col2 * 51 AS col2 FROM tab2 AS cor0
----
-1326
-1377
-1938
query I rowsort
SELECT DISTINCT 10 * - col0 - + col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1329
-351
-7614
query I rowsort
SELECT DISTINCT + 34 + 0 FROM tab1 AS cor0
----
34
query I rowsort
SELECT DISTINCT + - 20 + ( col0 ) AS col1 FROM tab0 AS cor0
----
15
4
69
query I rowsort
SELECT DISTINCT - + col0 - col0 * + cor0.col2 FROM tab0 AS cor0
----
-70
-7387
-816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * 75 * col0 col1 FROM tab2 AS cor0
----
-3675
-456300
-468075
onlyif mysql # use DIV operator for integer division
query I rowsort label-8200
SELECT ALL - col1 DIV + col1 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL - col1 / + col1 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT 59 AS col2 FROM tab2, tab1, tab0 AS cor0
----
59
query I rowsort
SELECT 21 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
onlyif mysql # use DIV operator for integer division
query I rowsort label-8203
SELECT DISTINCT + CAST( + col2 + col0 AS SIGNED ) DIV 74 AS col2 FROM tab1
----
0
1
2
skipif mysql # not compatible
query I rowsort label-8203
SELECT DISTINCT + CAST ( + col2 + col0 AS INTEGER ) / 74 AS col2 FROM tab1
----
0
1
2
query I rowsort
SELECT ( 59 ) AS col2 FROM tab2 cor0
----
59
59
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-8205
SELECT - - col0 DIV - col0 col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8205
SELECT - - col0 / - col0 col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL 4 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT DISTINCT - ( 15 ) FROM tab0 AS cor0
----
-15
query I rowsort
SELECT - 29 * + col0 FROM tab0 AS cor0
----
-1015
-2581
-696
query I rowsort
SELECT + 68 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-21
33
44
query I rowsort
SELECT ALL + cor0.col1 * + col1 * - col1 FROM tab0 AS cor0
----
-636056
-753571
-912673
onlyif mysql # use DIV operator for integer division
query I rowsort label-8211
SELECT DISTINCT col2 + cor0.col2 DIV + col1 FROM tab2 AS cor0
----
26
27
40
skipif mysql # not compatible
query I rowsort label-8211
SELECT DISTINCT col2 + cor0.col2 / + col1 FROM tab2 AS cor0
----
26
27
40
query I rowsort
SELECT DISTINCT - col0 * + ( - col1 ) + col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT + col1 * 66 * - col0 + - col0 FROM tab1 AS cor0
----
-42304
-5151
-68720
query I rowsort
SELECT - col0 + 65 + - cor0.col2 FROM tab2 AS cor0
----
-39
-52
31
query I rowsort
SELECT ALL - cor0.col0 * - cor0.col2 AS col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - col0 * 28 + col2 + col1 FROM tab1 AS cor0
----
-1725
-2131
-4
query I rowsort
SELECT col2 * ( - col2 ) + + col1 * + ( 49 ) + col0 AS col0 FROM tab1 AS cor0
----
-1639
-2695
-8499
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + - col0 col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - cor0.col0 * col0 + col1 + + col0 AS col1 FROM tab2 AS cor0
----
-11
-5947
-6145
query I rowsort
SELECT cor0.col0 + 17 AS col2 FROM tab2 AS cor0
----
24
95
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col2 col1 FROM tab2 AS cor0
----
1444
676
729
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab1 cor2
----
3645 values hashing to d95cefa45985203e212af5af5dd9be5b
query I rowsort
SELECT DISTINCT + 84 * 57 AS col1 FROM tab2, tab1 AS cor0
----
4788
onlyif mysql # use DIV operator for integer division
query I rowsort label-8224
SELECT ALL - col0 DIV - 43 AS col1 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL - col0 / - 43 AS col1 FROM tab1
----
0
1
1
query I rowsort
SELECT ALL - col2 * - ( + col1 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + cor0.col0 + - 5 * + col2 AS col2 FROM tab1 AS cor0
----
-221
-267
-400
query I rowsort
SELECT DISTINCT + - col1 + col1 + + 0 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - - col2 + ( - col2 ) FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8229
SELECT + cor0.col2 * CAST( NULL AS SIGNED ) * 17 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8229
SELECT + cor0.col2 * CAST ( NULL AS INTEGER ) * 17 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8230
SELECT DISTINCT - cor0.col2 * + 58 + + col2 DIV col2 AS col1 FROM tab1 AS cor0
----
-3131
-3305
-5567
skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT - cor0.col2 * + 58 + + col2 / col2 AS col1 FROM tab1 AS cor0
----
-3131
-3305
-5567
query I rowsort
SELECT ALL + 78 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048
onlyif mysql # use DIV operator for integer division
query I rowsort label-8232
SELECT ALL 35 DIV + 80 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL 35 / + 80 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL tab1.col1 + col2 * + col2 * col1 AS col2 FROM tab1
----
119821
32500
75842
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= col2
----
query III rowsort
SELECT * FROM tab0 WHERE col1 IN ( col0 + + tab0.col0 + + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8236
SELECT DISTINCT - col0 DIV - col0 + + col2 FROM tab2
----
27
28
39
skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT - col0 / - col0 + + col2 FROM tab2
----
27
28
39
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < + col0 * - col0 / col1 + col2 / - col2
----
query I rowsort
SELECT col2 * tab1.col1 * col1 AS col0 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT DISTINCT + col2 + + col0 + - col1 FROM tab1
----
111
163
31
query I rowsort
SELECT - col0 + - col2 * - col1 + col2 * + col2 AS col0 FROM tab1
----
10384
3755
4317
onlyif mysql # use DIV operator for integer division
query I rowsort label-8241
SELECT tab2.col0 DIV col1 + + col0 * - col1 DIV tab2.col1 + col2 AS col2 FROM tab2
----
-37
-51
20
skipif mysql # not compatible
query I rowsort label-8241
SELECT tab2.col0 / col1 + + col0 * - col1 / tab2.col1 + col2 AS col2 FROM tab2
----
-37
-51
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8242
SELECT + - 3 * cor0.col2 + - CAST( col0 AS SIGNED ) FROM tab0 cor0
----
-123
-335
-38
skipif mysql # not compatible
query I rowsort label-8242
SELECT + - 3 * cor0.col2 + - CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
-123
-335
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 * col0 * - col1 col1 FROM tab1
----
-41600
-5070
-67600
query I rowsort
SELECT DISTINCT - 98 FROM tab2, tab1, tab1 AS cor0
----
-98
query I rowsort
SELECT - col2 * - col0 * 38 AS col2 FROM tab1
----
138624
291840
6156
onlyif mysql # use DIV operator for integer division
query I rowsort label-8246
SELECT col0 * + col0 * col2 + 59 + col1 DIV 28 AS col1 FROM tab1 AS cor0
----
233531
545
614459
skipif mysql # not compatible
query I rowsort label-8246
SELECT col0 * + col0 * col2 + 59 + col1 / 28 AS col1 FROM tab1 AS cor0
----
233531
545
614459
query I rowsort
SELECT 4 * - col2 FROM tab2
----
-104
-108
-152
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 * - col2 col2 FROM tab2 AS cor0
----
-182
-189
-266
onlyif mysql # use DIV operator for integer division
query I rowsort label-8249
SELECT DISTINCT col0 DIV - col1 + + 88 * col2 FROM tab2 AS cor0
----
2287
2376
3340
skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT col0 / - col1 + + 88 * col2 FROM tab2 AS cor0
----
2287
2376
3340
query I rowsort
SELECT - + 40 * col0 AS col1 FROM tab2 AS cor0
----
-280
-3120
-3160
query I rowsort
SELECT + + col1 + col2 + + col0 FROM tab2 cor0
----
134
163
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 - - 64 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 68c47867df5782a3cadf19aa278dd68c
onlyif mysql # use DIV operator for integer division
query I rowsort label-8253
SELECT col0 * 12 DIV col2 col2 FROM tab0 AS cor0
----
13
420
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8253
SELECT col0 * 12 / col2 col2 FROM tab0 AS cor0
----
13
420
8
query I rowsort
SELECT DISTINCT + col0 + - ( col1 ) AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT - 83 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-8256
SELECT col2 DIV tab1.col0 + + col1 AS col2 FROM tab1
----
10
14
44
skipif mysql # not compatible
query I rowsort label-8256
SELECT col2 / tab1.col0 + + col1 AS col2 FROM tab1
----
10
14
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8257
SELECT - col1 + - CAST( NULL AS SIGNED ) * 59 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8257
SELECT - col1 + - CAST ( NULL AS INTEGER ) * 59 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col0 + - 50 FROM tab2 AS cor0
----
-128
-129
-57
query I rowsort
SELECT DISTINCT + col1 * + col2 * + col1 AS col0 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT col1 * col0 * cor0.col2 - - cor0.col0 AS col1 FROM tab2 cor0
----
119730
51113
5866
query I rowsort
SELECT - ( col2 ) - cor0.col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT ( - col0 ) * + col1 + col0 FROM tab2 cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT - ( + 33 ) * col1 FROM tab0 AS cor0
----
-2838
-3003
-3201
query I rowsort
SELECT ALL - + col1 * - cor0.col0 + col1 * 67 FROM tab2 AS cor0
----
2294
2482
8555
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8265
SELECT CAST( NULL AS SIGNED ) - + col2 / col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8265
SELECT CAST ( NULL AS INTEGER ) - + col2 / col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor1.col0 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
7
78
79
query I rowsort
SELECT ALL + col1 + + 84 FROM tab1 AS cor0
----
110
94
97
query I rowsort
SELECT - col2 - + cor0.col1 FROM tab1 cor0
----
-109
-67
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8269
SELECT + CAST( col0 AS SIGNED ) * + tab2.col0 FROM tab2
----
49
6084
6241
skipif mysql # not compatible
query I rowsort label-8269
SELECT + CAST ( col0 AS INTEGER ) * + tab2.col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT tab0.col1 * col1 * + col0 AS col2 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT + 3 * + ( + col1 ) FROM tab1
----
30
39
78
query I rowsort
SELECT ALL - col1 * col0 * - 7 AS col2 FROM tab1 AS cor0
----
4480
546
7280
query I rowsort
SELECT DISTINCT - 65 * - col1 FROM tab2 AS cor0
----
1105
2015
3835
query I rowsort
SELECT DISTINCT col1 - - col2 * col2 FROM tab1
----
2942
3259
9229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 33 * col2 - col1 col1 FROM tab2
----
6206
66865
99049
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8276
SELECT ALL CAST( - col0 AS SIGNED ) - - col1 FROM tab2
----
-19
-62
24
skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL CAST ( - col0 AS INTEGER ) - - col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT ALL ( - col1 ) * col1 - - 8 AS col2 FROM tab0
----
-7388
-8273
-9401
query I rowsort
SELECT ALL tab1.col0 * col1 + col1 - 85 AS col2 FROM tab1
----
19
565
968
query I rowsort
SELECT ALL cor0.col2 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT DISTINCT + cor0.col1 + + ( col0 ) + + col0 AS col0 FROM tab2 AS cor0
----
175
215
45
query I rowsort
SELECT DISTINCT col1 * ( - col0 ) FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL + + col0 * + 86 + - col1 FROM tab2 AS cor0
----
571
6649
6777
query I rowsort
SELECT ALL + col2 * + col1 + - 29 AS col1 FROM tab1 AS cor0
----
1219
1375
541
query I rowsort
SELECT ALL + col0 + - ( col2 * col1 + cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-1482
-605
-857
query I rowsort
SELECT ALL col0 + - col0 + 61 AS col1 FROM tab1 AS cor0
----
61
61
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8286
SELECT - - CAST( NULL AS SIGNED ) - - 25 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8286
SELECT - - CAST ( NULL AS INTEGER ) - - 25 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 - + cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - ( - 39 ) AS col2 FROM tab2 AS cor0
----
39
39
39
query I rowsort
SELECT ALL col2 * + ( - cor0.col1 ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + col1 + col2 - + col1 AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - col2 + 97 * + col0 FROM tab2
----
652
7540
7625
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT ALL - tab2.col2 * 39 FROM tab2
----
-1014
-1053
-1482
query I rowsort
SELECT + col2 * - 65 + col0 AS col1 FROM tab1
----
-3507
-3641
-6160
query I rowsort
SELECT ALL - col0 * - col2 * + cor0.col2 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT ALL ( - cor0.col0 ) - 56 * 30 FROM tab0 AS cor0
----
-1704
-1715
-1769
query I rowsort
SELECT ALL - + col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - 80 AS col0 FROM tab0 cor0
----
-80
-80
-80
query I rowsort
SELECT ( - col1 ) * col2 * + col0 + col2 AS col2 FROM tab0 AS cor0
----
-3394
-664036
-68079
query I rowsort
SELECT DISTINCT - + 5 + + col1 AS col1 FROM tab1 AS cor0
----
21
5
8
query I rowsort
SELECT DISTINCT - - ( + col2 ) * - col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT 27 * - col0 * 37 FROM tab0 AS cor0
----
-23976
-34965
-88911
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * col2 col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT 80 * cor0.col0 + col0 AS col2 FROM tab0 AS cor0
----
1944
2835
7209
query I rowsort
SELECT ALL + col1 + col2 + + col2 AS col1 FROM tab1 AS cor0
----
124
134
205
query I rowsort
SELECT DISTINCT + 29 + col0 AS col0 FROM tab1 AS cor0
----
109
32
93
query I rowsort
SELECT DISTINCT + col0 * - col2 + 75 FROM tab2 AS cor0
----
-114
-1953
-2927
onlyif mysql # use DIV operator for integer division
query I rowsort label-8308
SELECT col0 * col1 DIV col1 + col0 * + col1 FROM tab1 AS cor0
----
1120
704
81
skipif mysql # not compatible
query I rowsort label-8308
SELECT col0 * col1 / col1 + col0 * + col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT col0 + + tab2.col2 AS col1 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL - ( + col2 ) + col0 * + col2 AS col1 FROM tab1
----
108
3591
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 + 11 col2 FROM tab2
----
-20
-48
-6
query I rowsort
SELECT ALL - 96 * col1 * - tab1.col1 + - ( col1 + col0 ) * col0 AS col0 FROM tab1
----
4864
64809
8784
query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - + 30 - col0 FROM tab0 AS cor0
----
-119
-54
-65
query I rowsort
SELECT + 72 + col0 FROM tab0 cor0
----
107
161
96
query I rowsort
SELECT ALL - col1 + - col2 * cor0.col1 + - cor0.col2 * col2 AS col0 FROM tab1 AS cor0
----
-10477
-3829
-4346
query I rowsort
SELECT ALL + cor0.col2 * - col0 + ( - col0 ) * cor0.col2 + - 72 * + col2 FROM tab0 AS cor0
----
-142
-20500
-3960
query I rowsort
SELECT - + col0 * cor0.col0 + 41 * col0 FROM tab1 AS cor0
----
-1472
-3120
114
query I rowsort
SELECT ALL 69 * col0 + cor0.col1 FROM tab0 AS cor0
----
1742
2512
6232
query I rowsort
SELECT + tab0.col2 + col0 AS col0 FROM tab0
----
171
36
57
query I rowsort
SELECT ( - col2 + 93 ) FROM tab1
----
-3
36
39
query I rowsort
SELECT ALL + 48 * - col2 FROM tab0
----
-1584
-3936
-48
query I rowsort
SELECT ( col2 ) + col0 AS col1 FROM tab0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8324
SELECT - cor0.col2 DIV - col1 + + 94 + - col2 AS col0 FROM tab2 AS cor0
----
58
67
68
skipif mysql # not compatible
query I rowsort label-8324
SELECT - cor0.col2 / - col1 + + 94 + - col2 AS col0 FROM tab2 AS cor0
----
58
67
68
query I rowsort
SELECT DISTINCT + col1 * col2 - col2 * + col0 FROM tab0 AS cor0
----
164
2046
62
query I rowsort
SELECT + col1 * + 53 + - col2 FROM tab0 cor0
----
4525
4741
5140
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 69 col1 FROM tab0
----
1656
2415
6141
onlyif mysql # use DIV operator for integer division
query I rowsort label-8328
SELECT cor0.col1 DIV 81 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8328
SELECT cor0.col1 / 81 AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8329
SELECT DISTINCT + col2 + ( - col2 ) DIV col1 FROM tab2 AS cor0
----
26
27
36
skipif mysql # not compatible
query I rowsort label-8329
SELECT DISTINCT + col2 + ( - col2 ) / col1 FROM tab2 AS cor0
----
26
27
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8330
SELECT DISTINCT + + col0 * + col0 + - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8330
SELECT DISTINCT + + col0 * + col0 + - col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + - 66 + col2 * cor0.col0 AS col2 FROM tab2 cor0
----
123
1962
2936
query I rowsort
SELECT - col0 + - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT DISTINCT + 17 + + 98 FROM tab1 AS cor0
----
115
onlyif mysql # use DIV operator for integer division
query I rowsort label-8334
SELECT 28 DIV 57 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8334
SELECT 28 / 57 AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8335
SELECT + + 8 * col0 + - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8335
SELECT + + 8 * col0 + - col1 * 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-8336
SELECT DISTINCT col2 DIV - col0 col2 FROM tab0 AS cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8336
SELECT DISTINCT col2 / - col0 col2 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT + col0 * col0 + + ( + 14 ) FROM tab2 cor0
----
6098
6255
63
query I rowsort
SELECT ( + ( col0 ) ) AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT col0 * + ( col0 ) + 5 AS col1 FROM tab1
----
14
4101
6405
query I rowsort
SELECT - 47 * - col2 FROM tab2 cor0
----
1222
1269
1786
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 12 ) col2 FROM tab0 AS cor0
----
-12
-12
-12
query I rowsort
SELECT col0 * 11 AS col2 FROM tab0 AS cor0
----
264
385
979
query I rowsort
SELECT DISTINCT - ( col1 ) + + col2 * cor0.col0 * - 14 - + cor0.col0 FROM tab0 AS cor0
----
-102352
-11198
-622
query I rowsort
SELECT DISTINCT col2 * - 30 AS col2 FROM tab1 AS cor0
----
-1620
-1710
-2880
query I rowsort
SELECT ALL + 97 * 87 + + col1 AS col1 FROM tab1 cor0
----
8449
8452
8465
onlyif mysql # use DIV operator for integer division
query I rowsort label-8346
SELECT ALL - - 63 DIV col1 AS col0 FROM tab2 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL - - 63 / col1 AS col0 FROM tab2 AS cor0
----
1
2
3
query I rowsort
SELECT DISTINCT cor1.col2 * cor0.col2 + cor1.col0 + cor0.col2 AS col0 FROM tab2, tab0 AS cor0, tab0 cor1
----
9 values hashing to 6dd71be6fb16a53b73199109cd389958
query I rowsort
SELECT ALL - col0 * col1 + col0 FROM tab0 cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT + - col1 * col1 + - col0 * cor0.col0 FROM tab2 AS cor0
----
-1010
-6530
-9565
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8350
SELECT CAST( NULL AS SIGNED ) * + 83 + + tab2.col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8350
SELECT CAST ( NULL AS INTEGER ) * + 83 + + tab2.col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + cor0.col0 * - col2 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT + col0 * 35 - ( + col1 + + col0 ) AS col1 FROM tab2 AS cor0
----
207
2593
2669
query I rowsort
SELECT - ( - tab0.col2 ) * ( + col1 ) * col0 AS col2 FROM tab0
----
3395
664118
68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8354
SELECT col2 * CAST( ( + col1 ) + - col1 * ( col0 ) AS SIGNED ) AS col2 FROM tab2
----
-118118
-5022
-50388
skipif mysql # not compatible
query I rowsort label-8354
SELECT col2 * CAST ( ( + col1 ) + - col1 * ( col0 ) AS INTEGER ) AS col2 FROM tab2
----
-118118
-5022
-50388
query I rowsort
SELECT - col1 * 47 AS col1 FROM tab1
----
-1222
-470
-611
query I rowsort
SELECT 49 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to 5e90817546f910a557285348e10199b6
query I rowsort
SELECT + col2 - + cor0.col0 * ( + cor0.col2 ) FROM tab2 AS cor0
----
-162
-2002
-2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8358
SELECT + + col0 + CAST( + 25 AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
1664
2080
78
skipif mysql # not compatible
query I rowsort label-8358
SELECT + + col0 + CAST ( + 25 AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
1664
2080
78
query I rowsort
SELECT ALL 81 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
query I rowsort
SELECT + - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8361
SELECT + col2 + - CAST( NULL AS SIGNED ) + col2 col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8361
SELECT + col2 + - CAST ( NULL AS INTEGER ) + col2 col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 + + col1 + col2 FROM tab1
----
106
122
77
query I rowsort
SELECT - col1 + + 73 - 74 * + col0 AS col2 FROM tab1 AS cor0
----
-175
-4673
-5860
query I rowsort
SELECT + col1 + 15 FROM tab2 AS cor0
----
32
46
74
query I rowsort
SELECT + col2 * 18 FROM tab1
----
1026
1728
972
query I rowsort
SELECT ( + 75 ) * + cor0.col2 + + col1 AS col0 FROM tab2 AS cor0
----
2009
2056
2867
query I rowsort
SELECT ALL - 26 * + ( - col2 ) FROM tab2 cor0
----
676
702
988
query I rowsort
SELECT ALL + 26 - + 77 FROM tab1 AS cor0
----
-51
-51
-51
query I rowsort
SELECT ALL - cor0.col2 * col1 - + col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT + ( ( + col0 ) ) + 6 FROM tab1
----
70
86
9
query I rowsort
SELECT + ( tab2.col2 ) * - col2 FROM tab2
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-8372
SELECT 61 DIV - col1 + col1 + - ( 30 * + col1 ) FROM tab1
----
-296
-381
-756
skipif mysql # not compatible
query I rowsort label-8372
SELECT 61 / - col1 + col1 + - ( 30 * + col1 ) FROM tab1
----
-296
-381
-756
query I rowsort
SELECT - col2 * col2 - + col2 * cor0.col0 FROM tab1 AS cor0
----
-16896
-3078
-6897
query I rowsort
SELECT ALL - ( 49 ) * + col1 AS col2 FROM tab2 AS cor0
----
-1519
-2891
-833
query I rowsort
SELECT DISTINCT 84 * col2 AS col1 FROM tab0 AS cor0
----
2772
6888
84
query I rowsort
SELECT + + 83 * + 63 * - col1 AS col2 FROM tab1 AS cor0
----
-135954
-52290
-67977
query I rowsort
SELECT + col0 - - col2 AS col1 FROM tab2
----
104
117
34
query I rowsort
SELECT col0 * col1 + - ( tab0.col1 ) FROM tab0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT + 23 * + tab1.col0 FROM tab1
----
1472
1840
69
query I rowsort
SELECT DISTINCT col0 * col1 * 61 AS col2 FROM tab0
----
125904
207095
494039
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col0 FROM tab1, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT col1 * + col0 + 73 FROM tab2
----
1416
290
4675
query I rowsort
SELECT DISTINCT - col2 * - col0 + col1 AS col1 FROM tab0 cor0
----
132
7389
878
query I rowsort
SELECT 57 AS col1 FROM tab2 AS cor0
----
57
57
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8385
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8385
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT + cor0.col1 + 25 FROM tab1 AS cor0
----
35
38
51
query I rowsort
SELECT + col2 * - ( col2 * + col0 ) AS col0 FROM tab0 cor0
----
-26136
-35
-598436
query I rowsort
SELECT - col0 * + 67 + - ( col1 ) FROM tab0 AS cor0
----
-1694
-2442
-6054
query I rowsort
SELECT ALL col0 * - 3 FROM tab2 AS cor0
----
-21
-234
-237
query I rowsort
SELECT - - col0 * 25 AS col2 FROM tab0 cor0
----
2225
600
875
query I rowsort
SELECT ALL cor0.col0 + + 12 FROM tab0 AS cor0
----
101
36
47
skipif mysql # not compatible
query I rowsort
SELECT - col1 + - CAST ( + col0 AS REAL ) * - col1 * - col1 AS col1 FROM tab2 AS cor0
----
-22848
-271577
-6758
query I rowsort
SELECT ALL col2 * + 55 FROM tab1 AS cor0
----
2970
3135
5280
query I rowsort
SELECT DISTINCT 5 AS col1 FROM tab1, tab1 AS cor0
----
5
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to 59bb9dc93b6f10de841a7db8eb3857e9
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1, tab1 AS cor1
----
3645 values hashing to 6156c969b7e054b8a333fdb86aee82f2
query I rowsort
SELECT ALL - - 80 * col1 + - col2 AS col1 FROM tab0 AS cor0
----
6847
7198
7759
query I rowsort
SELECT + + 55 + + col1 AS col2 FROM tab1 cor0
----
65
68
81
query I rowsort
SELECT ALL col2 * 89 * - col1 AS col0 FROM tab1 AS cor0
----
-111072
-124956
-50730
query I rowsort
SELECT + 39 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229
query I rowsort
SELECT DISTINCT - + col1 + + col1 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT 11 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
query I rowsort
SELECT + tab1.col0 * - col2 * tab1.col0 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT - - col1 + - 49 AS col0 FROM tab0 AS cor0
----
37
42
48
query I rowsort
SELECT col0 + 94 AS col2 FROM tab0 AS cor0
----
118
129
183
query I rowsort
SELECT + col1 * ( + col0 ) + col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL + col1 * + col1 + col0 FROM tab1
----
164
249
679
query I rowsort
SELECT - col1 + + 70 AS col1 FROM tab0
----
-16
-21
-27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8409
SELECT DISTINCT + col2 / tab2.col1 + - tab2.col0 * - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-8409
SELECT DISTINCT + col2 / tab2.col1 + - tab2.col0 * - col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col2 col2 FROM tab0
----
53
9
96
query I rowsort
SELECT - 75 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 37 col0 FROM tab1 AS cor0
----
111
2368
2960
query I rowsort
SELECT ALL cor0.col1 + + cor0.col1 AS col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT DISTINCT - col0 + ( col1 ) * + col1 * col2 FROM tab0 AS cor0
----
244044
678953
9374
query I rowsort
SELECT ALL - cor0.col0 * + cor0.col1 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + col0 + - ( - cor0.col2 ) AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - 12 * - col1 + - col2 * col2 * cor0.col0 + col0 * + col1 AS col0 FROM tab1 cor0
----
-207176
-736084
-8358
query I rowsort
SELECT - 92 + + col1 * col2 + col2 AS col1 FROM tab1 cor0
----
1252
1366
535
query I rowsort
SELECT + + 10 AS col2 FROM tab1 AS cor0
----
10
10
10
query I rowsort
SELECT DISTINCT + + ( + col0 ) AS col2 FROM tab0 cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8421
SELECT + col2 DIV - col2 + + cor0.col0 DIV ( cor0.col1 ) FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8421
SELECT + col2 / - col2 + + cor0.col0 / ( cor0.col1 ) FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + col2 + + 76 FROM tab1 AS cor0
----
130
133
172
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + col2 col2 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8424
SELECT ALL col0 * CAST( NULL AS SIGNED ) + + col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL col0 * CAST ( NULL AS INTEGER ) + + col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * tab0.col0 + + 7 * col0 + col0 AS col0 FROM tab0
----
315
8010
984
query I rowsort
SELECT DISTINCT col2 * - ( + col1 ) + + col0 + 26 FROM tab2
----
-1430
-541
-804
query I rowsort
SELECT - - 34 + - col1 + col2 FROM tab2 cor0
----
1
30
55
query I rowsort
SELECT + 77 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
onlyif mysql # use DIV operator for integer division
query I rowsort label-8429
SELECT ALL ( 80 ) + + cor0.col2 + col2 DIV col2 FROM tab1 AS cor0
----
135
138
177
skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL ( 80 ) + + cor0.col2 + col2 / col2 FROM tab1 AS cor0
----
135
138
177
query I rowsort
SELECT - + ( + col0 ) AS col1 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT - - col0 + 37 AS col2 FROM tab2 AS cor0
----
115
116
44
query I rowsort
SELECT 87 * col2 * col0 AS col1 FROM tab0
----
3045
634926
68904
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8433
SELECT CAST( NULL AS SIGNED ) * col2 * - tab2.col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8433
SELECT CAST ( NULL AS INTEGER ) * col2 * - tab2.col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - + 45 + col1 FROM tab1 cor0
----
-19
-32
-35
onlyif mysql # use DIV operator for integer division
query I rowsort label-8435
SELECT + ( col2 + col0 ) DIV - col2 FROM tab0
----
-1
-2
-36
skipif mysql # not compatible
query I rowsort label-8435
SELECT + ( col2 + col0 ) / - col2 FROM tab0
----
-1
-2
-36
query I rowsort
SELECT cor0.col0 * - cor1.col2 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to eb134c943d8802485a50c5ec3c3edc94
query I rowsort
SELECT DISTINCT + 33 + + tab1.col1 FROM tab1, tab0 AS cor0
----
43
46
59
query I rowsort
SELECT col1 * col0 * - col2 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT col1 + 52 FROM tab1 AS cor0
----
62
65
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 + - col1 * col1 col2 FROM tab2
----
-257
-3449
-929
query I rowsort
SELECT DISTINCT tab1.col2 FROM tab1, tab2, tab1 cor0
----
54
57
96
query I rowsort
SELECT 11 + + col1 * 69 AS col0 FROM tab1
----
1805
701
908
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 54f94bc315b13bb4d5a30c251c64c399
query I rowsort
SELECT DISTINCT - col0 * - col0 + + ( col2 ) FROM tab1
----
4153
63
6496
query I rowsort
SELECT ALL + col2 * 79 * 42 FROM tab2
----
126084
86268
89586
query I rowsort
SELECT 90 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT ALL + col0 * + col2 + + col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT - cor0.col2 + + 5 + 19 * - col0 FROM tab2 AS cor0
----
-1503
-1534
-155
query I rowsort
SELECT DISTINCT col0 * + 25 + col2 FROM tab1 AS cor0
----
129
1657
2096
query I rowsort
SELECT + col0 * col1 + - 13 AS col2 FROM tab2 AS cor0
----
1330
204
4589
query I rowsort
SELECT - col0 + + 37 FROM tab2 AS cor0
----
-41
-42
30
query I rowsort
SELECT DISTINCT - 71 * + cor0.col0 FROM tab1, tab0, tab2 AS cor0
----
-497
-5538
-5609
query I rowsort
SELECT ALL + 30 - col2 AS col1 FROM tab0
----
-3
-52
29
query I rowsort
SELECT col0 * col1 - + 71 * + col0 AS col1 FROM tab0 AS cor0
----
1780
360
910
query I rowsort
SELECT DISTINCT - col1 + col2 * + 10 FROM tab1 AS cor0
----
514
560
947
onlyif mysql # use DIV operator for integer division
query I rowsort label-8456
SELECT DISTINCT + cor0.col2 - col2 DIV + col2 col0 FROM tab1 AS cor0
----
53
56
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT + cor0.col2 - col2 / + col2 col0 FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT + col0 * ( + 45 ) FROM tab0 AS cor0
----
1080
1575
4005
query I rowsort
SELECT DISTINCT cor0.col2 + 77 * - 95 FROM tab1 AS cor0
----
-7219
-7258
-7261
onlyif mysql # use DIV operator for integer division
query I rowsort label-8459
SELECT col1 + 53 DIV 9 FROM tab1 AS cor0
----
15
18
31
skipif mysql # not compatible
query I rowsort label-8459
SELECT col1 + 53 / 9 FROM tab1 AS cor0
----
15
18
31
query I rowsort
SELECT DISTINCT + col2 + 65 AS col0 FROM tab2 AS cor0
----
103
91
92
query I rowsort
SELECT ALL - + col2 - - col1 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8462
SELECT + col0 * CAST( col0 * col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1225
19008
649522
skipif mysql # not compatible
query I rowsort label-8462
SELECT + col0 * CAST ( col0 * col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT + cor0.col0 * + 5 AS col2 FROM tab2 cor0
----
35
390
395
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8464
SELECT - CAST( NULL AS DECIMAL ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8464
SELECT - CAST ( NULL AS REAL ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 86 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + 39 ) col2 FROM tab2 AS cor0
----
-39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8467
SELECT DISTINCT + ( - 56 ) * col1 + CAST( NULL AS SIGNED ) / - col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8467
SELECT DISTINCT + ( - 56 ) * col1 + CAST ( NULL AS INTEGER ) / - col2 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8468
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 + col2 * col2 + col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8468
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 + col2 * col2 + col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8469
SELECT + 15 DIV 92 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8469
SELECT + 15 / 92 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + col0 col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + col2 * + cor0.col1 + cor0.col1 - - col0 AS col0 FROM tab1 AS cor0
----
1341
1433
644
query I rowsort
SELECT ALL - col2 + col1 * cor0.col0 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT ( - col2 + tab1.col0 * - col0 ) AS col1 FROM tab1
----
-4153
-63
-6496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8474
SELECT ALL CAST( 47 + + col2 AS SIGNED ) * - ( + col1 ) FROM tab0
----
-11739
-4656
-6880
skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL CAST ( 47 + + col2 AS INTEGER ) * - ( + col1 ) FROM tab0
----
-11739
-4656
-6880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8475
SELECT + 83 * + col2 * + CAST( col0 + + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
224432
369018
76194
skipif mysql # not compatible
query I rowsort label-8475
SELECT + 83 * + col2 * + CAST ( col0 + + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
224432
369018
76194
query I rowsort
SELECT 59 + cor0.col1 * 29 AS col2 FROM tab1 AS cor0
----
349
436
813
query I rowsort
SELECT ALL - 76 + col2 * col1 * - col1 AS col1 FROM tab2 AS cor0
----
-11058
-26023
-90582
query I rowsort
SELECT DISTINCT - + col2 * - col2 + col0 * col0 FROM tab2 AS cor0
----
6760
7685
778
query I rowsort
SELECT DISTINCT - col2 * + col2 + - col0 * - col1 FROM tab0 AS cor0
----
1375
3394
975
onlyif mysql # use DIV operator for integer division
query I rowsort label-8480
SELECT ALL - 3 DIV - col0 + + col2 - col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL - 3 / - col0 + + col2 - col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + 26 * cor0.col2 FROM tab2 AS cor0
----
676
702
988
query I rowsort
SELECT DISTINCT - cor0.col0 * col1 + + col2 FROM tab2 AS cor0
----
-1305
-190
-4576
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8483
SELECT DISTINCT CAST( + tab2.col0 AS SIGNED ) AS col0 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-8483
SELECT DISTINCT CAST ( + tab2.col0 AS INTEGER ) AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT + cor0.col0 + cor0.col0 * + col1 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8485
SELECT ALL + col0 + col0 DIV - 64 AS col0 FROM tab2 AS cor0
----
7
77
78
skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL + col0 + col0 / - 64 AS col0 FROM tab2 AS cor0
----
7
77
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8486
SELECT ALL 7 DIV col2 + 1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL 7 / col2 + 1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT + - col0 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8488
SELECT - col2 + + col1 * CAST( + col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
1508
608
810
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8488
SELECT - col2 + + col1 * CAST ( + col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT - 82 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8490
SELECT col2 + tab0.col1 DIV - 40 AS col0 FROM tab0
----
-1
31
80
skipif mysql # not compatible
query I rowsort label-8490
SELECT col2 + tab0.col1 / - 40 AS col0 FROM tab0
----
-1
31
80
query I rowsort
SELECT - ( - col1 + tab0.col1 ) AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - col2 * + 36 + col1 FROM tab2
----
-1351
-877
-941
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - cor0.col0 + + col0 col0 FROM tab1 AS cor0
----
-4032
-6
-6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8494
SELECT - CAST( NULL AS SIGNED ) * - cor0.col0 * - col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8494
SELECT - CAST ( NULL AS INTEGER ) * - cor0.col0 * - col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * 36 FROM tab0 cor0
----
3096
3276
3492
query I rowsort
SELECT DISTINCT - col0 + col1 * - col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT DISTINCT - cor1.col1 AS col2 FROM tab1 cor0 CROSS JOIN tab2, tab1 AS cor1
----
-10
-13
-26
query I rowsort
SELECT ALL cor2.col0 + + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 cor2
----
81 values hashing to f3074f8a566b666f385bacf19865fa28
query I rowsort
SELECT DISTINCT 35 AS col2 FROM tab1, tab2 AS cor0
----
35
query I rowsort
SELECT + ( 6 ) + col0 FROM tab2
----
13
84
85
query I rowsort
SELECT + 60 + + col1 AS col2 FROM tab0
----
146
151
157
query I rowsort
SELECT ALL 64 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT DISTINCT + ( + 84 ) + col2 * + ( + col2 ) AS col2 FROM tab2 AS cor0
----
1528
760
813
query I rowsort
SELECT ALL + col2 * + cor0.col1 + col0 * + col0 AS col0 FROM tab1 AS cor0
----
1413
4666
7648
query I rowsort
SELECT - ( - 67 ) FROM tab1 cor0
----
67
67
67
query I rowsort
SELECT DISTINCT - ( + col1 ) + col0 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT cor0.col2 + - 6 FROM tab2 AS cor0
----
20
21
32
query I rowsort
SELECT ( col1 ) * - col1 AS col0 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT + col0 * - cor0.col0 * col0 FROM tab2 AS cor0
----
-343
-474552
-493039
query I rowsort
SELECT col0 + tab1.col0 * - col1 AS col1 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1, tab2, tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 - - col1 col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT + col1 + col1 * + tab1.col0 - tab1.col0 FROM tab1
----
101
586
973
query I rowsort
SELECT ALL col0 + + col2 - col2 AS col2 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + col1 * - col2 col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT DISTINCT + - ( col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8517
SELECT DISTINCT - - CAST( col0 AS SIGNED ) * col2 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-8517
SELECT DISTINCT - - CAST ( col0 AS INTEGER ) * col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - - 47 * + ( col2 ) FROM tab1 cor0
----
2538
2679
4512
query I rowsort
SELECT ALL - + ( col0 ) * + col0 AS col1 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT 38 + col1 FROM tab2 cor0
----
55
69
97
query I rowsort
SELECT DISTINCT + - col0 * col1 + + col1 - cor0.col0 FROM tab2 AS cor0
----
-1405
-193
-4621
query I rowsort
SELECT + 8 * - cor0.col0 + - col2 AS col1 FROM tab1 AS cor0
----
-569
-736
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8523
SELECT ( - col2 ) * col2 + col2 DIV cor0.col2 AS col1 FROM tab1 cor0
----
-2915
-3248
-9215
skipif mysql # not compatible
query I rowsort label-8523
SELECT ( - col2 ) * col2 + col2 / cor0.col2 AS col1 FROM tab1 cor0
----
-2915
-3248
-9215
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + col1 ) - - col0 col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT 41 * + col0 + col1 - col0 * col0 FROM tab1 cor0
----
-1462
-3107
140
query I rowsort
SELECT DISTINCT + 24 - + tab0.col2 AS col1 FROM tab0
----
-58
-9
23
query I rowsort
SELECT - 77 * + col2 + - col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-112
-13612
-3333
onlyif mysql # use DIV operator for integer division
query I rowsort label-8528
SELECT col1 + col0 DIV col1 + - col2 col0 FROM tab0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8528
SELECT col1 + col0 / col1 + - col2 col0 FROM tab0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8529
SELECT 3 * + col2 DIV col2 AS col2 FROM tab1
----
3
3
3
skipif mysql # not compatible
query I rowsort label-8529
SELECT 3 * + col2 / col2 AS col2 FROM tab1
----
3
3
3
query I rowsort
SELECT + 98 + + 87 * col0 FROM tab0
----
2186
3143
7841
query I rowsort
SELECT ALL - col0 * col2 * col1 FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL col2 * col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 * cor0.col0 + col2 AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8533
SELECT + tab0.col2 + + col0 DIV col1 AS col0 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-8533
SELECT + tab0.col2 + + col0 / col1 AS col0 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * tab1.col0 - col2 col0 FROM tab1
----
-216
-3705
-7776
query I rowsort
SELECT DISTINCT col2 * - col0 + - col0 FROM tab0
----
-70
-7387
-816
query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE ( NULL ) BETWEEN NULL AND + col0 * - col0 * col2
----
query I rowsort
SELECT col0 / + col2 FROM tab0 WHERE NOT col2 = NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8538
SELECT col0 DIV + col1 + col2 AS col2 FROM tab1
----
102
54
63
skipif mysql # not compatible
query I rowsort label-8538
SELECT col0 / + col1 + col2 AS col2 FROM tab1
----
102
54
63
query I rowsort
SELECT + col1 * - col0 AS col2 FROM tab0 AS cor0 WHERE NULL < + col1 * + col2
----
query I rowsort
SELECT DISTINCT - tab1.col2 FROM tab1 WHERE NOT - col0 + - col0 >= NULL
----
query I rowsort
SELECT - col1 - - col2 FROM tab2 WHERE col2 * + col0 + col1 IN ( col2 )
----
query I rowsort
SELECT col2 * + tab2.col1 * col1 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT DISTINCT col2 + + col2 * col2 * - col1 FROM tab2
----
-22572
-24510
-39858
query I rowsort
SELECT ALL + col1 * tab0.col1 * - col0 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT tab2.col2 + + tab2.col2 + + col1 AS col0 FROM tab2
----
111
85
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-8546
SELECT DISTINCT col2 * - col0 + col1 DIV col1 + + col0 * + col2 FROM tab2
----
1
skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT col2 * - col0 + col1 / col1 + + col0 * + col2 FROM tab2
----
1
query I rowsort
SELECT tab1.col2 * col2 + col0 * col1 FROM tab1
----
10256
2994
3889
query I rowsort
SELECT ALL + col1 + - col1 * - col0 + - col0 * + col1 * col2 FROM tab0
----
-655928
-65962
97
query I rowsort
SELECT DISTINCT col1 + - col0 * - col1 AS col1 FROM tab1
----
104
1053
650
query I rowsort
SELECT + tab2.col2 * - col1 + tab2.col0 AS col2 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT + col1 * col1 * - col2 AS col0 FROM tab1
----
-16224
-36504
-5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-8552
SELECT - cor0.col1 DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8552
SELECT - cor0.col1 / + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 - col1 * + cor0.col0 * - col1 AS col2 FROM tab1 AS cor0
----
13440
2025
6336
query I rowsort
SELECT DISTINCT - col1 * col0 + + col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-8555
SELECT - col2 + + col2 DIV - col2 AS col1 FROM tab1
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-8555
SELECT - col2 + + col2 / - col2 AS col1 FROM tab1
----
-55
-58
-97
query I rowsort
SELECT + col1 + + col2 * col2 FROM tab2
----
1461
735
760
query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE NOT + col1 BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT + col2 * 76 FROM tab1 AS cor0
----
4104
4332
7296
query I rowsort
SELECT - tab2.col1 - 10 FROM tab2
----
-27
-41
-69
onlyif mysql # use DIV operator for integer division
query I rowsort label-8560
SELECT col2 * ( + 48 ) * col0 + + 35 DIV - col1 FROM tab0
----
1680
350304
38016
skipif mysql # not compatible
query I rowsort label-8560
SELECT col2 * ( + 48 ) * col0 + + 35 / - col1 FROM tab0
----
1680
350304
38016
query I rowsort
SELECT col2 + col1 * 82 FROM tab1 AS cor0
----
1162
2186
877
query I rowsort
SELECT + 10 * col0 * col0 AS col0 FROM tab1
----
40960
64000
90
query I rowsort
SELECT + cor0.col2 + + 17 * col2 AS col2 FROM tab1 AS cor0
----
1026
1728
972
query I rowsort
SELECT col0 + + col2 - col1 AS col0 FROM tab1
----
111
163
31
query I rowsort
SELECT DISTINCT + 29 - col0 AS col1 FROM tab2 AS cor0
----
-49
-50
22
query I rowsort
SELECT + - 79 * col2 * + col1 + ( col1 + col0 ) * cor0.col2 AS col1 FROM tab1 cor0
----
-109350
-40812
-89664
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8567
SELECT DISTINCT col0 * col1 + + col0 * CAST( NULL AS SIGNED ) + col0 * col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8567
SELECT DISTINCT col0 * col1 + + col0 * CAST ( NULL AS INTEGER ) + col0 * col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8568
SELECT ALL + CAST( - col1 AS SIGNED ) col1 FROM tab0 cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL + CAST ( - col1 AS INTEGER ) col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - 49 + col2 * + col0 FROM tab2 AS cor0
----
140
1979
2953
query I rowsort
SELECT - 39 * - col0 - cor0.col0 * + col0 FROM tab0 AS cor0
----
-4450
140
360
onlyif mysql # use DIV operator for integer division
query I rowsort label-8571
SELECT + + 99 DIV col2 + + col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-8571
SELECT + + 99 / col2 + + col2 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT - col0 * col2 - - col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8573
SELECT + CAST( col2 AS SIGNED ) - - col0 * 8 FROM tab0 AS cor0
----
225
281
794
skipif mysql # not compatible
query I rowsort label-8573
SELECT + CAST ( col2 AS INTEGER ) - - col0 * 8 FROM tab0 AS cor0
----
225
281
794
query I rowsort
SELECT + - col0 + + col1 * col2 FROM tab0 AS cor0
----
2814
62
7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-8575
SELECT + - col2 DIV col0 + 85 AS col1 FROM tab2 cor0
----
82
85
85
skipif mysql # not compatible
query I rowsort label-8575
SELECT + - col2 / col0 + 85 AS col1 FROM tab2 cor0
----
82
85
85
query I rowsort
SELECT DISTINCT + col0 * 59 * col0 AS col0 FROM tab1 cor0
----
241664
377600
531
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - col1 * CAST ( - 63 AS REAL ) col2 FROM tab0 AS cor0
----
5418
5733
6111
query I rowsort
SELECT - + col1 * - ( - ( + col1 ) ) FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL col1 + + 12 AS col0 FROM tab0 cor0
----
103
109
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-8580
SELECT + col2 DIV - col0 AS col1 FROM tab2 cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-8580
SELECT + col2 / - col0 AS col1 FROM tab2 cor0
----
-3
0
0
query I rowsort
SELECT ALL - + col1 * 34 FROM tab1 AS cor0
----
-340
-442
-884
query I rowsort
SELECT cor0.col2 * - ( - col0 ) AS col0 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-8583
SELECT - col1 DIV 69 AS col2 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8583
SELECT - col1 / 69 AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + - col0 * 28 AS col2 FROM tab2 AS cor0
----
-196
-2184
-2212
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 8420206d6932c454f05a38de634b3cb5
query I rowsort
SELECT + - col2 * + 58 + col0 AS col1 FROM tab2 AS cor0
----
-1430
-1559
-2125
query I rowsort
SELECT ALL cor0.col0 * 60 AS col1 FROM tab0 AS cor0
----
1440
2100
5340
query I rowsort
SELECT DISTINCT + col0 + 29 * - col2 FROM tab1 cor0
----
-1563
-1589
-2704
onlyif mysql # use DIV operator for integer division
query I rowsort label-8589
SELECT ALL + cor0.col2 DIV + ( - cor0.col1 * + col0 ) + col2 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL + cor0.col2 / + ( - cor0.col1 * + col0 ) + col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL col2 * 22 FROM tab2 AS cor0
----
572
594
836
query I rowsort
SELECT - + col0 + - 96 FROM tab2 cor0
----
-103
-174
-175
query I rowsort
SELECT ALL - col2 * 91 AS col0 FROM tab2 AS cor0
----
-2366
-2457
-3458
query I rowsort
SELECT + col1 + - ( col1 ) * col0 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL - - col1 + ( cor0.col0 * col0 ) FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT - col1 + - 38 FROM tab2 AS cor0
----
-55
-69
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8596
SELECT DISTINCT + col1 DIV col0 + col0 DIV col1 FROM tab1 AS cor0
----
6
8
skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT + col1 / col0 + col0 / col1 FROM tab1 AS cor0
----
6
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8597
SELECT DISTINCT - + col1 + - col0 DIV ( + col2 + col0 ) FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT - + col1 + - col0 / ( + col2 + col0 ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - 85 * col1 AS col1 FROM tab1 AS cor0
----
-1105
-2210
-850
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( col0 ) * col2 col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + - 70 + - col2 * + col1 + col1 FROM tab0 AS cor0
----
-2822
-70
-7441
query I rowsort
SELECT ALL 14 + cor0.col2 FROM tab2 AS cor0
----
40
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + col1 * - col2 col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT - 45 + col1 FROM tab1 AS cor0
----
-19
-32
-35
query I rowsort
SELECT DISTINCT - + 6 + - col2 * + col2 - cor0.col0 FROM tab1 AS cor0
----
-2925
-3319
-9302
query I rowsort
SELECT + 10 + col2 FROM tab2 cor0
----
36
37
48
query I rowsort
SELECT ALL + - col1 + col1 * - cor0.col1 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT - 99 * + tab0.col2 FROM tab0
----
-3267
-8118
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-8608
SELECT DISTINCT col2 - 89 DIV - col0 FROM tab2
----
27
39
skipif mysql # not compatible
query I rowsort label-8608
SELECT DISTINCT col2 - 89 / - col0 FROM tab2
----
27
39
query I rowsort
SELECT ALL col2 * col2 + col1 + + col1 FROM tab2
----
1478
791
794
query I rowsort
SELECT ALL 8 * - tab0.col2 + 89 FROM tab0
----
-175
-567
81
query I rowsort
SELECT ALL - col0 + - col0 * col1 + + col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT col0 + + col2 * col2 AS col0 FROM tab1
----
2919
3313
9296
query I rowsort
SELECT + tab2.col2 * col1 + - col1 - ( + tab2.col1 ) FROM tab2
----
1416
612
775
query I rowsort
SELECT DISTINCT - ( col1 ) + col1 * - tab2.col1 * + col1 AS col2 FROM tab2
----
-205438
-29822
-4930
query I rowsort
SELECT 80 + col0 * 1 FROM tab2
----
158
159
87
query I rowsort
SELECT + col1 + - tab1.col0 * + col0 FROM tab1
----
-4086
-6387
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-8617
SELECT DISTINCT 76 + col2 DIV - col1 FROM tab0 AS cor0
----
76
skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT 76 + col2 / - col1 FROM tab0 AS cor0
----
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-8618
SELECT ALL col0 + + col2 DIV cor0.col0 FROM tab0 AS cor0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL col0 + + col2 / cor0.col0 FROM tab0 AS cor0
----
25
35
89
query I rowsort
SELECT + col2 * col2 + col1 AS col1 FROM tab1 AS cor0
----
2942
3259
9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-8620
SELECT ALL - col1 DIV + col1 AS col0 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8620
SELECT ALL - col1 / + col1 AS col0 FROM tab0 cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col0 col1 FROM tab1 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8622
SELECT - cor0.col1 DIV cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-8622
SELECT - cor0.col1 / cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT 97 FROM tab0, tab1, tab0 AS cor0
----
97
query I rowsort
SELECT 49 + + col0 FROM tab1 AS cor0
----
113
129
52
query I rowsort
SELECT + + 91 + - cor0.col1 FROM tab0 AS cor0
----
-6
0
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-8626
SELECT - 45 + - col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
-45
-45
-45
skipif mysql # not compatible
query I rowsort label-8626
SELECT - 45 + - col0 / - col1 AS col0 FROM tab0 AS cor0
----
-45
-45
-45
onlyif mysql # use DIV operator for integer division
query I rowsort label-8627
SELECT + - cor0.col0 DIV col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8627
SELECT + - cor0.col0 / col0 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + 36 * 40 AS col0 FROM tab0 AS cor0
----
1440
1440
1440
onlyif mysql # use DIV operator for integer division
query I rowsort label-8629
SELECT - col2 * col2 DIV + col0 FROM tab1 AS cor0
----
-115
-50
-972
skipif mysql # not compatible
query I rowsort label-8629
SELECT - col2 * col2 / + col0 FROM tab1 AS cor0
----
-115
-50
-972
query I rowsort
SELECT DISTINCT - 42 + + col2 FROM tab0 AS cor0
----
-41
-9
40
query I rowsort
SELECT DISTINCT ( - 14 ) AS col1 FROM tab2 cor0
----
-14
query I rowsort
SELECT + + 98 + col2 FROM tab1 AS cor0
----
152
155
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + + col0 + col0 col1 FROM tab2 AS cor0
----
21
234
237
query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT NULL < ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8635
SELECT - col1 + 56 * 40 DIV - col0 FROM tab2
----
-351
-45
-87
skipif mysql # not compatible
query I rowsort label-8635
SELECT - col1 + 56 * 40 / - col0 FROM tab2
----
-351
-45
-87
query I rowsort
SELECT + 29 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT ALL ( + 84 ) + + col0 FROM tab2 AS cor0
----
162
163
91
query I rowsort
SELECT ALL + 39 + ( + col0 ) * cor0.col1 FROM tab2 cor0
----
1382
256
4641
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8639
SELECT ( col2 + col1 * CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8639
SELECT ( col2 + col1 * CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 col2 FROM tab0 cor0
----
-14
-14
-14
query I rowsort
SELECT 71 AS col2 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
query I rowsort
SELECT + - 61 * col2 AS col2 FROM tab0 AS cor0
----
-2013
-5002
-61
query I rowsort
SELECT DISTINCT 67 FROM tab2, tab0, tab2 AS cor0
----
67
query I rowsort
SELECT 93 AS col0 FROM tab2, tab0, tab0 cor0, tab1 AS cor1
----
81 values hashing to bed80270d2bd273301f8ff63d7ef9f43
query I rowsort
SELECT - col1 * + 81 AS col0 FROM tab2
----
-1377
-2511
-4779
query I rowsort
SELECT - col1 * 40 FROM tab1 AS cor0
----
-1040
-400
-520
query I rowsort
SELECT + - col1 * + ( col0 + col1 ) * col1 FROM tab2 AS cor0
----
-27744
-36518
-476897
query I rowsort
SELECT - col0 * - cor0.col1 * + col0 + col0 AS col1 FROM tab2 AS cor0
----
106176
1526
359034
onlyif mysql # use DIV operator for integer division
query I rowsort label-8649
SELECT + col0 DIV col0 + - col2 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-8649
SELECT + col0 / col0 + - col2 FROM tab1 AS cor0
----
-53
-56
-95
query I rowsort
SELECT - ( 55 ) * col0 * + 31 FROM tab0 AS cor0
----
-151745
-40920
-59675
query I rowsort
SELECT ALL + col2 + col0 + - col1 AS col2 FROM tab1 AS cor0
----
111
163
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-8652
SELECT DISTINCT + col1 DIV 55 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT + col1 / 55 FROM tab2 AS cor0
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8653
SELECT - + col2 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8653
SELECT - + col2 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8654
SELECT ALL - col2 DIV - 73 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL - col2 / - 73 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT - tab1.col0 - 36 FROM tab1
----
-100
-116
-39
query I rowsort
SELECT ALL + ( - ( col1 ) ) * - col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - col0 + 48 AS col0 FROM tab1
----
-16
-32
45
query I rowsort
SELECT tab1.col2 * col2 - - tab1.col2 AS col1 FROM tab1
----
2970
3306
9312
query I rowsort
SELECT DISTINCT - col1 * 76 AS col1 FROM tab0
----
-6536
-6916
-7372
query I rowsort
SELECT - tab0.col2 + col2 * col2 FROM tab0
----
0
1056
6642
query I rowsort
SELECT DISTINCT + ( ( col1 ) + + col2 * 68 ) FROM tab1
----
3698
3886
6541
query I rowsort
SELECT ALL + - cor0.col0 + + cor0.col0 * - 22 FROM tab2 AS cor0
----
-161
-1794
-1817
query I rowsort
SELECT + col2 + + col0 * + 52 * + col0 AS col1 FROM tab1 AS cor0
----
213049
332896
522
query I rowsort
SELECT - ( 4 ) FROM tab2
----
-4
-4
-4
query I rowsort
SELECT DISTINCT ( - col1 * - col0 ) AS col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL col2 - - cor0.col1 * col0 FROM tab1 cor0
----
1136
132
697
query I rowsort
SELECT + 5 * - col1 AS col0 FROM tab0 cor0
----
-430
-455
-485
query I rowsort
SELECT ALL col2 * - col0 * - ( col1 ) + - col1 * - ( col1 ) AS col0 FROM tab1 AS cor0
----
100009
36580
4888
onlyif mysql # use DIV operator for integer division
query I rowsort label-8669
SELECT DISTINCT - col0 + + col1 DIV 17 FROM tab2 cor0
----
-6
-75
-78
skipif mysql # not compatible
query I rowsort label-8669
SELECT DISTINCT - col0 + + col1 / 17 FROM tab2 cor0
----
-6
-75
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8670
SELECT DISTINCT 50 DIV col0 AS col0 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT 50 / col0 AS col0 FROM tab0 AS cor0
----
0
1
2
query I rowsort
SELECT ALL - 34 + col0 * 33 * cor0.col0 FROM tab1 AS cor0
----
135134
211166
263
query I rowsort
SELECT DISTINCT + ( + 48 ) FROM tab0, tab2, tab2 AS cor0
----
48
query I rowsort
SELECT DISTINCT 57 - - col2 AS col0 FROM tab1
----
111
114
153
query I rowsort
SELECT ALL - 81 - - col1 * col2 * - col1 FROM tab2
----
-11063
-26028
-90587
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 14 col1 FROM tab2
----
-1092
-1106
-98
query I rowsort
SELECT DISTINCT ( + tab1.col1 * col2 ) AS col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT col1 * col1 + - col1 AS col0 FROM tab0
----
7310
8190
9312
query I rowsort
SELECT + 39 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT + - 38 * - col0 + col1 * col2 FROM tab2 AS cor0
----
1103
3648
4498
query I rowsort
SELECT + cor0.col1 + col0 * col0 FROM tab0 cor0
----
1322
662
8012
query I rowsort
SELECT ALL - - 61 * - col1 + + col0 FROM tab0 AS cor0
----
-5222
-5462
-5882
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + col2 col0 FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8683
SELECT + + 61 * col2 * - CAST( + 51 AS SIGNED ) + col2 FROM tab0 AS cor0
----
-102630
-255020
-3110
skipif mysql # not compatible
query I rowsort label-8683
SELECT + + 61 * col2 * - CAST ( + 51 AS INTEGER ) + col2 FROM tab0 AS cor0
----
-102630
-255020
-3110
query I rowsort
SELECT ALL col2 + col0 * + ( col1 ) FROM tab2
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-8685
SELECT ALL col2 + + col0 DIV - col1 FROM tab1
----
51
54
90
skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL col2 + + col0 / - col1 FROM tab1
----
51
54
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 + + col1 col1 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col0 + col1 * col0 AS col1 FROM tab2 cor0
----
1264
210
4524
query I rowsort
SELECT + cor0.col2 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT - col0 * + col0 + col2 AS col2 FROM tab1
----
-4039
-6304
45
query I rowsort
SELECT 71 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8691
SELECT + col0 * + CAST( ( + col1 ) AS SIGNED ) + + col0 AS col2 FROM tab1 cor0
----
1120
704
81
skipif mysql # not compatible
query I rowsort label-8691
SELECT + col0 * + CAST ( ( + col1 ) AS INTEGER ) + + col0 AS col2 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT ALL + cor0.col0 * + 19 FROM tab1 AS cor0
----
1216
1520
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col2 col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL + col2 + 15 + + ( col0 ) FROM tab0 AS cor0
----
186
51
72
query I rowsort
SELECT ALL - col2 + - col2 FROM tab2 cor0
----
-52
-54
-76
query I rowsort
SELECT DISTINCT - cor0.col1 * + col2 + col1 * cor0.col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - col2 * ( + col0 ) + col0 + 69 * - cor0.col2 FROM tab2 AS cor0
----
-2045
-3744
-5545
query I rowsort
SELECT ALL + cor0.col0 * col1 + 85 FROM tab0 AS cor0
----
2149
3480
8184
query I rowsort
SELECT DISTINCT - col1 + 47 FROM tab0 cor0
----
-39
-44
-50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - cor0.col0 * + col0 col2 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT ALL + + col2 - + col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + col0 + - 72 * col1 * 70 AS col0 FROM tab2 AS cor0
----
-156233
-297282
-85601
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8703
SELECT ALL CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - 29 - ( + tab2.col1 ) FROM tab2
----
-46
-60
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 16 * - col1 ) + + ( tab1.col1 ) - - col2 col2 FROM tab1
----
-336
-93
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-8706
SELECT ( ( col1 ) ) DIV 1 AS col0 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8706
SELECT ( ( col1 ) ) / 1 AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT - ( - 57 ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
1368
1995
5073
query I rowsort
SELECT DISTINCT - ( col2 ) + col2 * - 41 * - col0 FROM tab1 AS cor0
----
149511
314784
6588
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - col1 ) * + col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col2 + 17 * cor0.col0 FROM tab1 AS cor0
----
105
1145
1456
query I rowsort
SELECT ALL - ( - col0 ) + - col1 * col0 AS col1 FROM tab0 cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ( - 69 ) AS col0 FROM tab1 AS cor0
----
-69
-69
-69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8713
SELECT ALL CAST( NULL AS SIGNED ) * 97 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-8713
SELECT ALL CAST ( NULL AS INTEGER ) * 97 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( + 68 ) * col1 AS col1 FROM tab0 AS cor0
----
5848
6188
6596
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - cor0.col2 col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT - + cor0.col0 * 21 + - col0 AS col1 FROM tab1 AS cor0
----
-1408
-1760
-66
query I rowsort
SELECT DISTINCT - - 97 * + col0 AS col1 FROM tab0 AS cor0
----
2328
3395
8633
query I rowsort
SELECT ALL + + col1 + col2 * col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL - - 96 AS col1 FROM tab2 AS cor0
----
96
96
96
query I rowsort
SELECT - + col2 * - cor0.col1 + 89 AS col1 FROM tab1 AS cor0
----
1337
1493
659
query I rowsort
SELECT ALL - 2 + col1 * 1 FROM tab1 AS cor0
----
11
24
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8722
SELECT + col0 * - col1 + - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-1264
-210
-4524
skipif mysql # not compatible
query I rowsort label-8722
SELECT + col0 * - col1 + - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL col1 + col1 * col1 * col2 FROM tab2 AS cor0
----
10999
25978
90565
query I rowsort
SELECT col0 + col0 * + 9 AS col0 FROM tab2 AS cor0
----
70
780
790
query I rowsort
SELECT ALL - 22 + + 75 FROM tab0, tab0 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT DISTINCT - col1 * - ( - cor0.col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + + col2 * ( col2 ) AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL + col1 * 22 FROM tab0 AS cor0
----
1892
2002
2134
query I rowsort
SELECT - + col1 * col1 + + col2 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT - col1 * - col1 * - 17 FROM tab0 AS cor0
----
-125732
-140777
-159953
query I rowsort
SELECT - 26 - 16 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 9fa3c02ecae23525dd0e284c4751c1df
query I rowsort
SELECT col1 * + col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL + 98 + col2 * 14 FROM tab0 AS cor0
----
112
1246
560
query I rowsort
SELECT ( 45 ) * cor0.col0 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 751a9b3d74d10c25f99bf08bc8a5c350
onlyif mysql # use DIV operator for integer division
query I rowsort label-8735
SELECT DISTINCT + col2 + - col0 DIV 69 AS col0 FROM tab2 AS cor0
----
25
27
37
skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT + col2 + - col0 / 69 AS col0 FROM tab2 AS cor0
----
25
27
37
query I rowsort
SELECT DISTINCT - - 95 + + cor0.col1 FROM tab0 AS cor0
----
181
186
192
query I rowsort
SELECT - - 88 FROM tab0 cor0
----
88
88
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-8738
SELECT - + col0 DIV + cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8738
SELECT - + col0 / + cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT 47 AS col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8740
SELECT col1 * + col0 * CAST( NULL AS SIGNED ) + - 4 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8740
SELECT col1 * + col0 * CAST ( NULL AS INTEGER ) + - 4 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 90 * cor0.col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
270
5760
7200
onlyif mysql # use DIV operator for integer division
query I rowsort label-8742
SELECT ALL - col0 DIV ( + col0 ) AS col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL - col0 / ( + col0 ) AS col2 FROM tab0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8743
SELECT ALL - col2 DIV + tab2.col0 AS col1 FROM tab2
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL - col2 / + tab2.col0 AS col1 FROM tab2
----
-3
0
0
query I rowsort
SELECT ALL + ( 83 ) + - tab0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 9c2200fcb7b220431ea2e1e9044b3f7e
query I rowsort
SELECT DISTINCT col0 * 92 + - 25 FROM tab1
----
251
5863
7335
query I rowsort
SELECT DISTINCT + tab1.col0 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
3
64
80
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( ( col1 ) AS REAL ) FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL 32 * col2 + + tab1.col1 AS col2 FROM tab1
----
1754
1834
3085
query I rowsort
SELECT ALL col0 + ( tab2.col2 ) * - 96 AS col1 FROM tab2
----
-2418
-2585
-3569
onlyif mysql # use DIV operator for integer division
query I rowsort label-8750
SELECT CAST( 5 AS SIGNED ) DIV + tab2.col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8750
SELECT CAST ( 5 AS INTEGER ) / + tab2.col1 FROM tab2
----
0
0
0
query I rowsort
SELECT - 40 + cor0.col0 * + col2 * col1 AS col2 FROM tab1 AS cor0
----
36440
4172
99800
query I rowsort
SELECT DISTINCT + col2 * + 54 AS col2 FROM tab0
----
1782
4428
54
query I rowsort
SELECT ( - 96 ) - - col2 FROM tab2 AS cor0
----
-58
-69
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-8754
SELECT tab0.col1 * ( col2 ) DIV + ( - col2 ) FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-8754
SELECT tab0.col1 * ( col2 ) / + ( - col2 ) FROM tab0
----
-86
-91
-97
query I rowsort
SELECT - ( + ( col2 ) + + ( col1 ) ) FROM tab1
----
-109
-67
-80
query I rowsort
SELECT + 0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT - ( - col2 ) + - col1 * + col0 * col0 FROM tab2 cor0
----
-106059
-1492
-358930
query I rowsort
SELECT DISTINCT col1 * + col1 + - 56 AS col2 FROM tab1 AS cor0
----
113
44
620
query I rowsort
SELECT + col1 * col2 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8760
SELECT ALL + col2 / + col2 + CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL + col2 / + col2 + CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( col2 ) * ( tab2.col0 ) FROM tab2
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + tab0.col0 col0 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT ( col1 ) * + col0 + col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-8764
SELECT + + 47 DIV + col0 - + col1 FROM tab1 AS cor0
----
-10
-11
-13
skipif mysql # not compatible
query I rowsort label-8764
SELECT + + 47 / + col0 - + col1 FROM tab1 AS cor0
----
-10
-11
-13
query I rowsort
SELECT 26 + col1 AS col1 FROM tab1 AS cor0
----
36
39
52
query I rowsort
SELECT 51 + col2 FROM tab1 AS cor0
----
105
108
147
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8767
SELECT - + CAST( col2 AS SIGNED ) + col1 + + 49 FROM tab1 AS cor0
----
-34
2
21
skipif mysql # not compatible
query I rowsort label-8767
SELECT - + CAST ( col2 AS INTEGER ) + col1 + + 49 FROM tab1 AS cor0
----
-34
2
21
query I rowsort
SELECT - 98 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f
query I rowsort
SELECT - ( + 9 ) FROM tab0
----
-9
-9
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8770
SELECT ( col2 ) - - col0 DIV 57 FROM tab0
----
1
33
83
skipif mysql # not compatible
query I rowsort label-8770
SELECT ( col2 ) - - col0 / 57 FROM tab0
----
1
33
83
query I rowsort
SELECT DISTINCT - 36 + + col0 FROM tab2
----
-29
42
43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8772
SELECT DISTINCT + CAST( col2 AS SIGNED ) * + col1 col1 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * + col1 col1 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + 80 + col2 col2 FROM tab1 cor0
----
131
73
96
query I rowsort
SELECT DISTINCT + col1 + + col0 * + col0 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT ALL ( + col0 ) + - col0 AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8776
SELECT + - col0 * - col1 + col2 DIV col0 + col1 AS col0 FROM tab0 AS cor0
----
2151
3492
8190
skipif mysql # not compatible
query I rowsort label-8776
SELECT + - col0 * - col1 + col2 / col0 + col1 AS col0 FROM tab0 AS cor0
----
2151
3492
8190
query I rowsort
SELECT DISTINCT + col0 * col1 * + 9 + - col0 + - col1 AS col2 FROM tab1 AS cor0
----
5686
673
9267
query I rowsort
SELECT DISTINCT 89 * col0 + col1 AS col0 FROM tab1 cor0
----
293
5706
7133
query I rowsort
SELECT ALL + ( col0 ) - + col1 * - col2 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-8780
SELECT DISTINCT + cor0.col0 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-8780
SELECT DISTINCT + cor0.col0 / + col1 AS col0 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT 11 * col0 AS col1 FROM tab1 AS cor0
----
33
704
880
query I rowsort
SELECT ALL ( col1 ) * col1 * col2 AS col2 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT + + 77 + + col2 * + ( - col1 ) * - col2 AS col0 FROM tab0 AS cor0
----
174
611961
93731
query I rowsort
SELECT DISTINCT - - cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-8785
SELECT ALL 82 + col1 DIV col0 + - 7 * + 18 AS col0 FROM tab0
----
-41
-42
-43
skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL 82 + col1 / col0 + - 7 * + 18 AS col0 FROM tab0
----
-41
-42
-43
query I rowsort
SELECT - + cor0.col2 * col1 * ( - col2 ) - col0 AS col0 FROM tab2 cor0
----
22592
24469
39806
query I rowsort
SELECT + + cor0.col0 * col2 AS col1 FROM tab1 cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8788
SELECT DISTINCT + col2 + - CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT + col2 + - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 46 col1 FROM tab1 AS cor0
----
-138
-2944
-3680
query I rowsort
SELECT + col0 * - col0 - col2 FROM tab0 cor0
----
-1226
-609
-8003
onlyif mysql # use DIV operator for integer division
query I rowsort label-8791
SELECT + + col0 * col2 DIV + ( col1 * - col2 ) + cor0.col0 * + col1 col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8791
SELECT + + col0 * col2 / + ( col1 * - col2 ) + cor0.col0 * + col1 col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - col1 * - col2 - 4 * col0 FROM tab1 AS cor0
----
1392
314
928
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8793
SELECT DISTINCT - col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT - col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL col2 * col1 * - tab0.col2 AS col2 FROM tab0
----
-611884
-93654
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 0 - + col0 col0 FROM tab2
----
0
0
0
query I rowsort
SELECT + + col0 * + 41 + cor0.col1 FROM tab2 AS cor0
----
318
3256
3257
query I rowsort
SELECT - col1 * col1 + - col1 - ( + 46 ) FROM tab0 AS cor0
----
-7528
-8418
-9552
query I rowsort
SELECT 34 + + 56 FROM tab2 AS cor0
----
90
90
90
query I rowsort
SELECT DISTINCT + tab1.col0 * ( + col1 ) - - col1 AS col0 FROM tab1
----
104
1053
650
query I rowsort
SELECT + col0 * - col2 + + 7 FROM tab1
----
-155
-3641
-7673
query I rowsort
SELECT ALL + - 45 * - 90 - col2 FROM tab0 AS cor0
----
3968
4017
4049
query I rowsort
SELECT DISTINCT - cor0.col0 * 52 + col1 FROM tab1 AS cor0
----
-130
-3318
-4147
query I rowsort
SELECT ALL + - 26 * cor0.col1 + + col2 AS col1 FROM tab0 AS cor0
----
-2203
-2284
-2521
query I rowsort
SELECT + - 91 + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-117
-118
-129
query I rowsort
SELECT DISTINCT - col2 + - 11 - col0 AS col1 FROM tab0 AS cor0
----
-182
-47
-68
onlyif mysql # use DIV operator for integer division
query I rowsort label-8806
SELECT col1 * - col1 + 60 + - col0 DIV tab0.col1 FROM tab0
----
-7336
-8221
-9349
skipif mysql # not compatible
query I rowsort label-8806
SELECT col1 * - col1 + 60 + - col0 / tab0.col1 FROM tab0
----
-7336
-8221
-9349
query I rowsort
SELECT DISTINCT + 23 AS col1 FROM tab2, tab1 AS cor0
----
23
query I rowsort
SELECT col2 + ( col1 ) AS col0 FROM tab0
----
119
173
98
query I rowsort
SELECT - ( col1 ) * tab0.col1 AS col0 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL + ( - tab1.col0 ) + col0 + - col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL col2 * + 67 FROM tab2 AS cor0
----
1742
1809
2546
query I rowsort
SELECT ALL + ( - col0 ) + col0 AS col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8813
SELECT DISTINCT col0 * cor0.col0 + col2 DIV + 40 AS col1 FROM tab0 cor0
----
1225
576
7923
skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT col0 * cor0.col0 + col2 / + 40 AS col1 FROM tab0 cor0
----
1225
576
7923
query I rowsort
SELECT ALL - 11 + col0 + col2 FROM tab2 cor0
----
106
23
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8815
SELECT - CAST( NULL AS SIGNED ) * + col2 + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8815
SELECT - CAST ( NULL AS INTEGER ) * + col2 + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab1, tab2 cor1
----
3645 values hashing to e3f81e329d34d83e4528a9ef7b933946
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 col0 FROM tab2, tab2 AS cor0
----
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-8818
SELECT 68 + + col2 DIV col1 AS col0 FROM tab2 cor0
----
68
68
70
skipif mysql # not compatible
query I rowsort label-8818
SELECT 68 + + col2 / col1 AS col0 FROM tab2 cor0
----
68
68
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + 94 * col1 FROM tab1 AS cor0
----
1222
2444
940
query I rowsort
SELECT DISTINCT - col0 + + col1 * - col2 AS col0 FROM tab2 cor0
----
-1612
-725
-844
query I rowsort
SELECT + ( cor1.col2 ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT + cor0.col1 * col0 * col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL + cor0.col2 * col0 + + col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT + + cor0.col0 * 14 + 70 FROM tab1 AS cor0
----
112
1190
966
query I rowsort
SELECT ALL + + col2 * col2 + 70 AS col2 FROM tab0 cor0
----
1159
6794
71
query I rowsort
SELECT DISTINCT col2 - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT col1 + + 1 FROM tab1 cor0
----
11
14
27
query I rowsort
SELECT DISTINCT - cor0.col0 + - col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT + col1 * cor0.col0 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL 68 * col2 AS col2 FROM tab0
----
2244
5576
68
query I rowsort
SELECT + ( 32 ) + col0 FROM tab0
----
121
56
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 col1 FROM tab2
----
-31
-31
-31
query I rowsort
SELECT - 9 * - col0 AS col0 FROM tab1
----
27
576
720
query I rowsort
SELECT DISTINCT + ( 62 ) FROM tab1
----
62
query I rowsort
SELECT DISTINCT ( 27 ) AS col1 FROM tab1
----
27
query I rowsort
SELECT DISTINCT - cor0.col2 + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT + 54 + col2 * + col0 * col2 FROM tab1 AS cor0
----
207990
737334
8802
query I rowsort
SELECT tab2.col0 * ( - ( + tab2.col1 ) ) FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT col1 * 89 AS col0 FROM tab2
----
1513
2759
5251
query I rowsort
SELECT + col0 * 73 - col0 FROM tab2 AS cor0
----
504
5616
5688
query I rowsort
SELECT DISTINCT + + col2 * 60 FROM tab2 cor0
----
1560
1620
2280
query I rowsort
SELECT DISTINCT col0 + 75 * + 34 AS col0 FROM tab1 AS cor0
----
2553
2614
2630
query I rowsort
SELECT ALL - col2 * 40 - + 70 FROM tab2 AS cor0
----
-1110
-1150
-1590
query I rowsort
SELECT + 25 * + col1 AS col0 FROM tab0 AS cor0
----
2150
2275
2425
query I rowsort
SELECT - ( col1 ) * + col1 + cor0.col2 * - col2 AS col0 FROM tab2 cor0
----
-1690
-1733
-4157
query I rowsort
SELECT ALL + - col0 * + col2 - + col0 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT + col2 + ( - col1 ) FROM tab2
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-8849
SELECT DISTINCT + col2 + col2 + - col2 DIV + col0 AS col0 FROM tab2
----
51
52
76
skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT + col2 + col2 + - col2 / + col0 AS col0 FROM tab2
----
51
52
76
query I rowsort
SELECT + col2 * col2 - col1 * + col0 FROM tab2 AS cor0
----
-3926
101
512
query I rowsort
SELECT tab2.col2 + + col0 * col2 - + col2 AS col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT col0 + col2 + col2 AS col0 FROM tab0 AS cor0
----
253
37
90
query I rowsort
SELECT DISTINCT col0 * col1 FROM tab1 AS cor0 WHERE NOT col2 + col1 * - col0 IN ( + col2 * + col0 + col0 )
----
1040
640
78
query I rowsort
SELECT DISTINCT + col0 + + col2 * col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT col1 * cor0.col1 * - col1 + + col0 * + col1 AS col2 FROM tab2 AS cor0
----
-200777
-29574
-3570
query I rowsort
SELECT + col0 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - - col1 - cor0.col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-8858
SELECT DISTINCT col2 DIV - col1 col2 FROM tab2
----
-2
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT col2 / - col1 col2 FROM tab2
----
-2
0
query I rowsort
SELECT + + col0 + + col2 * col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT col2 * col1 + col0 - col2 AS col1 FROM tab0
----
131
2829
7469
query I rowsort
SELECT + col2 * - col2 + 34 * - col1 + col2 FROM tab2
----
-1756
-1984
-2656
query I rowsort
SELECT + col0 + - 35 AS col1 FROM tab0 AS cor0
----
-11
0
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-8863
SELECT DISTINCT + - col1 DIV - col0 FROM tab2 AS cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT + - col1 / - col0 FROM tab2 AS cor0
----
0
4
query I rowsort
SELECT ALL - col0 + 81 * col0 + + col2 FROM tab1 AS cor0
----
294
5177
6496
query I rowsort
SELECT ALL + col1 + - tab0.col2 * tab0.col0 AS col1 FROM tab0
----
-706
-7207
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 * col1 - - col0 col1 FROM tab0 cor0
----
-244044
-678953
-9374
query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-26
-27
-38
query I rowsort
SELECT ALL + + col0 + + ( - ( - col0 ) ) * - ( col1 + + col0 ) FROM tab0 AS cor0
----
-15931
-2616
-4585
query I rowsort
SELECT DISTINCT col2 + + ( - col1 ) FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT + + col2 * - col1 + + col1 * - col1 * - col0 AS col0 FROM tab0 AS cor0
----
174666
329218
729547
query I rowsort
SELECT DISTINCT cor0.col2 + - 8 FROM tab0 AS cor0
----
-7
25
74
query I rowsort
SELECT DISTINCT + col0 * ( col0 ) FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT col0 * - col2 - col1 FROM tab2
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT 51 * col0 FROM tab1
----
153
3264
4080
query I rowsort
SELECT DISTINCT - ( 32 ) FROM tab2 AS cor0
----
-32
query I rowsort
SELECT + col2 * col0 - col0 AS col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT ALL + ( col1 ) + 26 AS col1 FROM tab2 AS cor0
----
43
57
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 col0 FROM tab2 AS cor0
----
17
17
17
query I rowsort
SELECT 51 + + col1 - col2 AS col1 FROM tab2 AS cor0
----
30
55
84
query I rowsort
SELECT ALL + cor0.col2 * col1 + - col0 AS col1 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT + col2 * - col2 + col0 AS col2 FROM tab2 AS cor0
----
-1365
-598
-722
onlyif mysql # use DIV operator for integer division
query I rowsort label-8882
SELECT col1 * - col2 + col2 DIV - col0 - col1 AS col0 FROM tab2 AS cor0
----
-1593
-663
-871
skipif mysql # not compatible
query I rowsort label-8882
SELECT col1 * - col2 + col2 / - col0 - col1 AS col0 FROM tab2 AS cor0
----
-1593
-663
-871
query I rowsort
SELECT ALL - ( + col2 ) * cor0.col0 * col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT ( tab0.col2 ) + tab0.col0 FROM tab0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 col0 FROM tab2
----
31
31
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 col0 FROM tab0, tab1 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT ALL cor0.col2 + col1 * col0 + 88 * col2 AS col1 FROM tab1 AS cor0
----
4884
5713
9584
query I rowsort
SELECT DISTINCT + 58 - col0 * 62 FROM tab2 cor0
----
-376
-4778
-4840
onlyif mysql # use DIV operator for integer division
query I rowsort label-8889
SELECT DISTINCT + + col2 DIV col1 + - 23 FROM tab0 AS cor0
----
-23
skipif mysql # not compatible
query I rowsort label-8889
SELECT DISTINCT + + col2 / col1 + - 23 FROM tab0 AS cor0
----
-23
query I rowsort
SELECT ALL - 72 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-13
-41
-55
query I rowsort
SELECT ALL + 27 * col1 AS col0 FROM tab0 AS cor0
----
2322
2457
2619
query I rowsort
SELECT ALL + cor0.col1 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT col0 + + ( col1 ) * col2 AS col2 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-8894
SELECT col0 * + col1 + 15 - - col2 DIV col1 col1 FROM tab2 AS cor0
----
1360
232
4617
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8894
SELECT col0 * + col1 + 15 - - col2 / col1 col1 FROM tab2 AS cor0
----
1360
232
4617
query I rowsort
SELECT DISTINCT tab0.col2 * - col2 - - 68 AS col2 FROM tab0
----
-1021
-6656
67
query I rowsort
SELECT + col0 - - 91 AS col2 FROM tab2 AS cor0
----
169
170
98
query I rowsort
SELECT ALL - 77 * + col0 AS col0 FROM tab1
----
-231
-4928
-6160
query I rowsort
SELECT ALL - 26 * col0 FROM tab2
----
-182
-2028
-2054
query I rowsort
SELECT 93 * - col2 + 95 FROM tab2
----
-2323
-2416
-3439
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + ( col0 ) ) + + ( col2 + col1 ) * - col1 col0 FROM tab2 AS cor0
----
-1791
-4937
-856
onlyif mysql # use DIV operator for integer division
query I rowsort label-8901
SELECT + cor0.col0 + + col0 DIV col1 AS col0 FROM tab1 AS cor0
----
3
70
86
skipif mysql # not compatible
query I rowsort label-8901
SELECT + cor0.col0 + + col0 / col1 AS col0 FROM tab1 AS cor0
----
3
70
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8902
SELECT DISTINCT + ( + cor0.col1 ) * col0 + CAST( NULL AS SIGNED ) - - col0 * col2 col0 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT + ( + cor0.col1 ) * col0 + CAST ( NULL AS INTEGER ) - - col0 * col2 col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + + 95 + - col2 FROM tab0 cor0
----
13
62
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-8904
SELECT DISTINCT + 98 DIV - 40 AS col1 FROM tab1 AS cor0
----
-2
skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT + 98 / - 40 AS col1 FROM tab1 AS cor0
----
-2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 * col2 col1 FROM tab0 AS cor0
----
1419
3526
43
query I rowsort
SELECT ALL + col0 + - 38 * + cor0.col1 FROM tab1 AS cor0
----
-316
-414
-985
query I rowsort
SELECT DISTINCT 2 * col0 AS col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT DISTINCT - col1 + - cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT ALL 12 + - col1 AS col0 FROM tab0 AS cor0
----
-74
-79
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8910
SELECT DISTINCT - + CAST( cor0.col1 AS SIGNED ) FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT - + CAST ( cor0.col1 AS INTEGER ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + col2 * col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT + + cor0.col0 * col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + col2 + - col0 * 79 FROM tab1
----
-183
-4999
-6224
query I rowsort
SELECT ALL col0 + + 16 + + col1 FROM tab2
----
112
153
54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8915
SELECT ALL - col0 + + CAST( + col2 * - col0 AS SIGNED ) + col2 FROM tab0
----
-69
-7305
-783
skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL - col0 + + CAST ( + col2 * - col0 AS INTEGER ) + col2 FROM tab0
----
-69
-7305
-783
onlyif mysql # use DIV operator for integer division
query I rowsort label-8916
SELECT col1 + col2 DIV - col2 AS col1 FROM tab1
----
12
25
9
skipif mysql # not compatible
query I rowsort label-8916
SELECT col1 + col2 / - col2 AS col1 FROM tab1
----
12
25
9
query I rowsort
SELECT ALL 69 FROM tab1 cor0
----
69
69
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-8918
SELECT DISTINCT col2 + + ( col2 + col1 ) DIV + 14 col0 FROM tab1 AS cor0
----
103
59
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8918
SELECT DISTINCT col2 + + ( col2 + col1 ) / + 14 col0 FROM tab1 AS cor0
----
103
59
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-8919
SELECT - cor0.col1 DIV ( col1 ) FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8919
SELECT - cor0.col1 / ( col1 ) FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT cor0.col2 + col2 * col2 * + col0 FROM tab0 AS cor0
----
26169
36
598518
query I rowsort
SELECT ALL 51 * col0 + + col1 FROM tab0 AS cor0
----
1310
1882
4630
query I rowsort
SELECT - - col0 * 87 + + col0 AS col1 FROM tab0 cor0
----
2112
3080
7832
query I rowsort
SELECT - 56 * + col1 FROM tab1 AS cor0
----
-1456
-560
-728
query I rowsort
SELECT + col2 * 33 + cor0.col2 AS col2 FROM tab2 AS cor0
----
1292
884
918
query I rowsort
SELECT ALL - tab0.col2 * ( col2 ) * - col1 + col1 FROM tab0
----
194
611975
93740
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8926
SELECT ALL + col2 * + 48 * col1 + - col0 * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL + col2 * + 48 * col1 + - col0 * CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - ( col0 ) * + col0 col0 FROM tab2
----
-22
-6058
-6203
query I rowsort
SELECT DISTINCT - 10 FROM tab1, tab0 AS cor0
----
-10
onlyif mysql # use DIV operator for integer division
query I rowsort label-8929
SELECT ALL + - col2 + 51 DIV col1 AS col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL + - col2 + 51 / col1 AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - 6 + col1 * col0 FROM tab0 cor0
----
2058
3389
8093
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 * col1 col0 FROM tab0
----
611884
93654
97
query I rowsort
SELECT DISTINCT + - 97 FROM tab2 cor0
----
-97
query I rowsort
SELECT - col2 * - ( - col1 ) - + col0 * col2 AS col1 FROM tab2 AS cor0
----
-1026
-3562
-3648
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 * + col2 col1 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-8936
SELECT - col1 DIV + 65 AS col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8936
SELECT - col1 / + 65 AS col2 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT - cor0.col0 * - col2 + col1 * - col1 FROM tab2 AS cor0
----
-1453
-772
2713
query I rowsort
SELECT DISTINCT + - 88 AS col0 FROM tab2, tab2 AS cor0
----
-88
query I rowsort
SELECT ALL + 47 FROM tab1, tab0 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT DISTINCT - col1 + + 17 AS col1 FROM tab2 AS cor0
----
-14
-42
0
query I rowsort
SELECT + + cor0.col1 * cor0.col2 - ( - col0 * + 18 ) FROM tab2 AS cor0
----
2068
2938
963
onlyif mysql # use DIV operator for integer division
query I rowsort label-8942
SELECT DISTINCT - - col1 DIV 29 + col0 * - col1 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-8942
SELECT DISTINCT - - col1 / 29 + col0 * - col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + col0 * + col2 - + col1 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT ALL - tab0.col2 FROM tab0, tab2 cor0, tab1 cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT - col0 * ( - col0 * - col2 ) FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT - 76 + - col1 - + col1 AS col2 FROM tab2 AS cor0
----
-110
-138
-194
query I rowsort
SELECT + cor0.col2 + cor0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to b24047a4766c1dbbfa5abb9df45d1883
query I rowsort
SELECT + col2 * cor0.col1 * - col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT DISTINCT col2 + col2 + 16 FROM tab0 cor0
----
18
180
82
query I rowsort
SELECT col1 * 5 AS col1 FROM tab2 AS cor0
----
155
295
85
query I rowsort
SELECT - col0 * + ( - 32 ) AS col1 FROM tab1 AS cor0
----
2048
2560
96
query I rowsort
SELECT + col2 * + 0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8953
SELECT ALL col0 DIV tab1.col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL col0 / tab1.col0 FROM tab1
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8954
SELECT ALL col2 DIV col2 - 98 AS col1 FROM tab0 AS cor0
----
-97
-97
-97
skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL col2 / col2 - 98 AS col1 FROM tab0 AS cor0
----
-97
-97
-97
query I rowsort
SELECT DISTINCT + - ( col1 ) + col1 FROM tab0 cor0
----
0
query I rowsort
SELECT DISTINCT col2 * + col0 + col2 * + col1 FROM tab1
----
1566
4218
8928
query I rowsort
SELECT DISTINCT 1 + + col1 AS col0 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT DISTINCT - - col1 + - col0 * 48 * col1 AS col2 FROM tab0 AS cor0
----
-162863
-388661
-98986
onlyif mysql # use DIV operator for integer division
query I rowsort label-8959
SELECT DISTINCT col0 + + col2 DIV - 33 AS col0 FROM tab0 AS cor0
----
23
35
87
skipif mysql # not compatible
query I rowsort label-8959
SELECT DISTINCT col0 + + col2 / - 33 AS col0 FROM tab0 AS cor0
----
23
35
87
query I rowsort
SELECT - col0 * - col1 + - tab1.col0 + + col1 * col0 AS col2 FROM tab1
----
1216
153
2000
query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 = ( NULL )
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( - col0 + col2 )
----
query I rowsort
SELECT ALL col0 * - col2 + + col0 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT ALL - col0 * + col0 - 11 AS col1 FROM tab0
----
-1236
-587
-7932
query I rowsort
SELECT - 76 * + col0 + - 17 FROM tab0
----
-1841
-2677
-6781
query I rowsort
SELECT ALL col2 * - col1 + col1 * - 13 FROM tab1
----
-1417
-1742
-700
query I rowsort
SELECT - 77 - - tab1.col1 AS col1 FROM tab1
----
-51
-64
-67
query I rowsort
SELECT ALL + - 71 * + cor0.col2 + + col1 FROM tab0 AS cor0
----
-2257
-5731
26
query I rowsort
SELECT ALL col2 + - col1 * + 77 FROM tab1 cor0
----
-1948
-713
-905
query I rowsort
SELECT + 15 + col0 AS col0 FROM tab2 AS cor0
----
22
93
94
query I rowsort
SELECT ALL + col2 + + col0 + + col1 FROM tab0
----
133
143
262
query I rowsort
SELECT ALL - col2 + col2 * ( col2 ) + tab0.col2 AS col1 FROM tab0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - col2 * + col0 + tab0.col1 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT - col0 + tab2.col0 * - col0 * col2 AS col2 FROM tab2
----
-1330
-158262
-237237
query I rowsort
SELECT ALL - col2 + - col0 * col1 AS col0 FROM tab2
----
-1381
-244
-4628
query I rowsort
SELECT ALL + col2 * tab0.col2 + col2 AS col2 FROM tab0
----
1122
2
6806
query I rowsort
SELECT col2 - + col1 * - tab1.col1 AS col1 FROM tab1
----
157
265
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-8978
SELECT DISTINCT + col1 DIV + col2 + + tab0.col1 AS col2 FROM tab0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-8978
SELECT DISTINCT + col1 / + col2 + + tab0.col1 AS col2 FROM tab0
----
194
88
92
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT NULL > NULL
----
query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT ( + col0 / col1 ) NOT IN ( col2 + cor0.col0 / + col0 + col1 )
----
query I rowsort
SELECT - col1 + tab1.col2 * col1 FROM tab1
----
1235
1378
560
query III rowsort
SELECT * FROM tab0 WHERE ( - col2 + col0 ) BETWEEN + col0 AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8983
SELECT + col0 + - col0 DIV + col0 FROM tab1
----
2
63
79
skipif mysql # not compatible
query I rowsort label-8983
SELECT + col0 + - col0 / + col0 FROM tab1
----
2
63
79
query I rowsort
SELECT DISTINCT - col1 * + col1 * - col0 FROM tab1
----
13520
2028
6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col0 col2 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT DISTINCT col0 * col2 + col2 * col0 FROM tab1
----
15360
324
7296
query I rowsort
SELECT DISTINCT + col2 * tab2.col2 * col2 + - col2 FROM tab2
----
17550
19656
54834
onlyif mysql # use DIV operator for integer division
query I rowsort label-8988
SELECT col0 + + col2 + + col0 * col2 DIV col1 AS col1 FROM tab1
----
485
63
766
skipif mysql # not compatible
query I rowsort label-8988
SELECT col0 + + col2 + + col0 * col2 / col1 AS col1 FROM tab1
----
485
63
766
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > + col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8990
SELECT ALL + col1 DIV col0 + col1 * - col0 AS col2 FROM tab2
----
-1343
-213
-4602
skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL + col1 / col0 + col1 * - col0 AS col2 FROM tab2
----
-1343
-213
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab0 WHERE NOT + col2 = - tab0.col1 * col1
----
86
91
97
query I rowsort
SELECT - col2 FROM tab2 WHERE col0 > - col0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8993
SELECT ALL - col1 DIV col1 + - col1 FROM tab0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL - col1 / col1 + - col1 FROM tab0
----
-87
-92
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 + + tab1.col2 col0 FROM tab1
----
0
0
0
query III rowsort
SELECT * FROM tab0 WHERE col1 BETWEEN ( - col2 ) AND NULL
----
query I rowsort
SELECT ALL col1 * col2 + col2 AS col0 FROM tab0
----
2871
7544
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-8997
SELECT DISTINCT CAST( col0 AS SIGNED ) DIV - col0 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-8997
SELECT DISTINCT CAST ( col0 AS INTEGER ) / - col0 FROM tab2
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8998
SELECT DISTINCT + 54 DIV - ( col2 + col2 ) AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8998
SELECT DISTINCT + 54 / - ( col2 + col2 ) AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + ( 71 * + col1 ) + - ( col0 ) AS col1 FROM tab1
----
1843
646
843
onlyif mysql # use DIV operator for integer division
query I rowsort label-9000
SELECT ALL + col2 * col0 DIV col0 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL + col2 * col0 / col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT ( + 26 ) * + col1 FROM tab1 AS cor0
----
260
338
676
query I rowsort
SELECT - 29 AS col2 FROM tab2 AS cor0
----
-29
-29
-29
query I rowsort
SELECT ALL - 59 + - col0 AS col0 FROM tab0 AS cor0
----
-148
-83
-94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9004
SELECT DISTINCT - 43 * + col1 - CAST( NULL AS SIGNED ) * - cor0.col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9004
SELECT DISTINCT - 43 * + col1 - CAST ( NULL AS INTEGER ) * - cor0.col2 FROM tab2 cor0
----
NULL
query I rowsort
SELECT DISTINCT - 5 * col2 AS col0 FROM tab2 AS cor0
----
-130
-135
-190
query I rowsort
SELECT ALL + col2 + + 94 * + cor0.col0 FROM tab1 AS cor0
----
336
6073
7616
onlyif mysql # use DIV operator for integer division
query I rowsort label-9007
SELECT DISTINCT col0 DIV CAST( - 76 AS SIGNED ) + + col0 FROM tab1 cor0
----
3
64
79
skipif mysql # not compatible
query I rowsort label-9007
SELECT DISTINCT col0 / CAST ( - 76 AS INTEGER ) + + col0 FROM tab1 cor0
----
3
64
79
query I rowsort
SELECT col2 * col2 + col2 * - col1 + col0 FROM tab2 AS cor0
----
-101
-780
877
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9009
SELECT DISTINCT col1 * cor0.col2 + 87 * cor0.col1 * + CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
646290
727909
818680
skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT col1 * cor0.col2 + 87 * cor0.col1 * + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
646290
727909
818680
onlyif mysql # use DIV operator for integer division
query I rowsort label-9010
SELECT DISTINCT + col0 * + cor0.col0 + - col1 * - col0 + - 59 * cor0.col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
15966
2559
4619
skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT + col0 * + cor0.col0 + - col1 * - col0 + - 59 * cor0.col2 / + col0 AS col1 FROM tab0 AS cor0
----
15966
2559
4619
query I rowsort
SELECT - col0 + - cor0.col0 * + col1 AS col1 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT - + col2 * ( col1 ) + col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ( col1 ) * + tab1.col2 * col2 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT DISTINCT + - col1 + + col2 * - col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT - col1 * + ( + col0 + col2 ) * - col1 AS col1 FROM tab1 AS cor0
----
12100
29744
38532
query I rowsort
SELECT ALL + - col0 * col1 + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9017
SELECT DISTINCT - tab0.col2 - + col2 * + CAST( 89 + col1 AS SIGNED ) * - ( col0 ) FROM tab0
----
1313558
138567
6509
skipif mysql # not compatible
query I rowsort label-9017
SELECT DISTINCT - tab0.col2 - + col2 * + CAST ( 89 + col1 AS INTEGER ) * - ( col0 ) FROM tab0
----
1313558
138567
6509
query I rowsort
SELECT - cor0.col0 + + ( + 57 ) AS col0 FROM tab1 AS cor0
----
-23
-7
54
query I rowsort
SELECT cor0.col1 * col2 - col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col1 + - ( col2 ) * col1 col0 FROM tab1 AS cor0
----
-1235
-1378
-560
onlyif mysql # use DIV operator for integer division
query I rowsort label-9021
SELECT - - col0 + cor0.col0 + + 97 DIV col0 FROM tab0 AS cor0
----
179
52
72
skipif mysql # not compatible
query I rowsort label-9021
SELECT - - col0 + cor0.col0 + + 97 / col0 FROM tab0 AS cor0
----
179
52
72
query I rowsort
SELECT + + col2 * + 65 + col1 + col2 AS col2 FROM tab1 AS cor0
----
3590
3772
6349
query I rowsort
SELECT DISTINCT + + col1 * ( - 40 * - col0 ) FROM tab0 AS cor0
----
135800
323960
82560
onlyif mysql # use DIV operator for integer division
query I rowsort label-9024
SELECT DISTINCT col2 DIV 6 AS col1 FROM tab2 AS cor0
----
4
6
skipif mysql # not compatible
query I rowsort label-9024
SELECT DISTINCT col2 / 6 AS col1 FROM tab2 AS cor0
----
4
6
query I rowsort
SELECT + 28 + col0 * - cor0.col0 + + col0 FROM tab1 AS cor0
----
-4004
-6292
22
query I rowsort
SELECT ALL + cor0.col2 * - 89 AS col0 FROM tab2 AS cor0
----
-2314
-2403
-3382
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9027
SELECT col0 + - CAST( NULL AS DECIMAL ) + - col1 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9027
SELECT col0 + - CAST ( NULL AS REAL ) + - col1 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 + 55 + + col0 AS col0 FROM tab0
----
112
226
91
query I rowsort
SELECT col2 - - 91 * - 73 AS col2 FROM tab2
----
-6605
-6616
-6617
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + col0 - 14 col2 FROM tab2 AS cor0
----
123
24
82
query I rowsort
SELECT ALL - 98 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to b6a3c9eea26c3759e6417d75f38258d1
query I rowsort
SELECT - ( col0 ) * + 29 FROM tab2 AS cor0
----
-203
-2262
-2291
query I rowsort
SELECT col1 - ( col1 ) FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT col1 * + ( + col1 ) FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT - col0 * - cor0.col0 + - 7 AS col0 FROM tab0 AS cor0
----
1218
569
7914
query I rowsort
SELECT - col1 * + ( + col2 ) FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT - + col2 * - col0 + col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT cor0.col0 + 57 FROM tab2 cor0
----
135
136
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-9039
SELECT DISTINCT - col0 * ( col0 ) DIV - col1 AS col2 FROM tab0 AS cor0
----
12
6
87
skipif mysql # not compatible
query I rowsort label-9039
SELECT DISTINCT - col0 * ( col0 ) / - col1 AS col2 FROM tab0 AS cor0
----
12
6
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9040
SELECT - - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-9040
SELECT - - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + cor0.col2 + 21 * col2 FROM tab0 AS cor0
----
1804
22
726
query I rowsort
SELECT ALL + 34 AS col2 FROM tab1 cor0
----
34
34
34
query I rowsort
SELECT 85 + col0 * - col0 FROM tab2 AS cor0
----
-5999
-6156
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-9044
SELECT + - 84 DIV col0 FROM tab2 cor0
----
-1
-1
-12
skipif mysql # not compatible
query I rowsort label-9044
SELECT + - 84 / col0 FROM tab2 cor0
----
-1
-1
-12
query I rowsort
SELECT DISTINCT 15 AS col2 FROM tab2 AS cor0
----
15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 * - col0 + + 86 * col0 col0 FROM tab1
----
1408
249
480
query I rowsort
SELECT - - 54 * col1 AS col0 FROM tab1 AS cor0
----
1404
540
702
query I rowsort
SELECT + col2 + col0 * col2 AS col0 FROM tab2 cor0
----
2054
216
3040
query I rowsort
SELECT + - 59 + - col0 AS col0 FROM tab0 cor0
----
-148
-83
-94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9050
SELECT + CAST( NULL AS SIGNED ) * 8 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-9050
SELECT + CAST ( NULL AS INTEGER ) * 8 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL 43 + - col0 FROM tab2 AS cor0
----
-35
-36
36
query I rowsort
SELECT ALL + col1 + + col1 + col0 AS col0 FROM tab1 AS cor0
----
106
55
84
query I rowsort
SELECT 16 * cor0.col1 FROM tab1 AS cor0
----
160
208
416
query I rowsort
SELECT DISTINCT - - col0 * col1 + - 84 AS col1 FROM tab1 AS cor0
----
-6
556
956
query I rowsort
SELECT ALL col2 * - col2 * col2 + ( col0 * - 61 + col2 ) AS col1 FROM tab1 AS cor0
----
-157593
-189040
-889520
onlyif mysql # use DIV operator for integer division
query I rowsort label-9056
SELECT - col0 + cor0.col2 DIV col2 AS col0 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-9056
SELECT - col0 + cor0.col2 / col2 AS col0 FROM tab1 AS cor0
----
-2
-63
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9057
SELECT DISTINCT - col1 * col2 + + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9057
SELECT DISTINCT - col1 * col2 + + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9058
SELECT DISTINCT - + CAST( - col0 AS SIGNED ) + col2 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-9058
SELECT DISTINCT - + CAST ( - col0 AS INTEGER ) + col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + 44 * col2 AS col1 FROM tab1 AS cor0
----
2376
2508
4224
query I rowsort
SELECT ( - col1 ) * - col2 + 87 AS col2 FROM tab1 AS cor0
----
1335
1491
657
onlyif mysql # use DIV operator for integer division
query I rowsort label-9061
SELECT + col2 * ( cor0.col2 ) + col2 DIV - cor0.col0 FROM tab0 AS cor0
----
1
1088
6724
skipif mysql # not compatible
query I rowsort label-9061
SELECT + col2 * ( cor0.col2 ) + col2 / - cor0.col0 FROM tab0 AS cor0
----
1
1088
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 + col1 col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT - cor1.col0 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT DISTINCT 99 + col0 AS col1 FROM tab1 AS cor0
----
102
163
179
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9065
SELECT - 21 * col2 + col0 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9065
SELECT - 21 * col2 + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( 98 ) * + col1 * col1 FROM tab1 AS cor0
----
16562
66248
9800
query I rowsort
SELECT cor0.col0 * cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to d2e5241c58e367013a1a203910e000c0
query I rowsort
SELECT ALL col2 * - 71 * col1 FROM tab2 AS cor0
----
-108914
-45866
-59427
query I rowsort
SELECT - col0 * + ( ( col2 ) ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - col1 + col1 * + col2 AS col0 FROM tab0 AS cor0
----
0
2752
7371
onlyif mysql # use DIV operator for integer division
query I rowsort label-9071
SELECT ALL - col2 DIV + 48 FROM tab1 AS cor0
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL - col2 / + 48 FROM tab1 AS cor0
----
-1
-1
-2
query I rowsort
SELECT ALL - 13 * 34 + cor0.col2 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 6b69cbd7a8b7e3f6871d6f01d1c71fb7
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 cor1, tab0 cor2
----
972 values hashing to 3406497351e4789c89a295ee9b64b201
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9074
SELECT DISTINCT CAST( + 8 AS SIGNED ) FROM tab0, tab2 AS cor0
----
8
skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT CAST ( + 8 AS INTEGER ) FROM tab0, tab2 AS cor0
----
8
query I rowsort
SELECT DISTINCT + col2 + - 3 AS col1 FROM tab2 AS cor0
----
23
24
35
skipif mysql # not compatible
query I rowsort
SELECT ALL + - col1 * CAST ( col0 AS REAL ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL col1 + 16 * col1 AS col2 FROM tab2 AS cor0
----
1003
289
527
query I rowsort
SELECT - - col1 + 86 AS col1 FROM tab0 AS cor0
----
172
177
183
query I rowsort
SELECT ALL - + col2 * 89 AS col0 FROM tab2 AS cor0
----
-2314
-2403
-3382
query I rowsort
SELECT ALL - cor0.col1 * 52 + + ( cor0.col0 ) * col2 * - col0 AS col1 FROM tab2 cor0
----
-161252
-238042
-2935
onlyif mysql # use DIV operator for integer division
query I rowsort label-9081
SELECT ALL + col1 DIV + 76 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL + col1 / + 76 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - tab0.col0 + - col1 * - 33 FROM tab0
----
2814
2914
3166
query I rowsort
SELECT ALL + + ( + col0 ) * cor0.col2 - col0 FROM tab1 AS cor0
----
159
3584
7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 18 col1 FROM tab2 AS cor0
----
-18
query I rowsort
SELECT 62 FROM tab0, tab1 cor0, tab2 cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
query I rowsort
SELECT DISTINCT - - ( + col2 ) * cor0.col0 + 29 + - col1 AS col1 FROM tab2 AS cor0
----
187
1998
3014
query I rowsort
SELECT - + 4 + col0 + ( + col2 * col0 ) FROM tab1 AS cor0
----
161
3708
7756
query I rowsort
SELECT ALL col0 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT 85 * col1 FROM tab1 AS cor0
----
1105
2210
850
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 col0 FROM tab2 AS cor0
----
-33
-33
-33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9092
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 46 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 46 FROM tab1
----
NULL
query I rowsort
SELECT col1 + - col2 * + ( - col2 ) AS col0 FROM tab2
----
1461
735
760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9094
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab0 cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab0 cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT 71 + + col1 AS col2 FROM tab2
----
102
130
88
query I rowsort
SELECT 23 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658
query I rowsort
SELECT + 48 + - col0 FROM tab2
----
-30
-31
41
query I rowsort
SELECT 21 * - col0 FROM tab1
----
-1344
-1680
-63
query I rowsort
SELECT ALL + 84 * cor0.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to bf5d0040fbd7fb88d76fe768ab001543
query I rowsort
SELECT ALL - col1 + 12 * - 33 FROM tab1 AS cor0
----
-406
-409
-422
query I rowsort
SELECT ALL + col2 * 32 AS col1 FROM tab1 AS cor0
----
1728
1824
3072
query I rowsort
SELECT - - col1 * 10 FROM tab2 AS cor0
----
170
310
590
onlyif mysql # use DIV operator for integer division
query I rowsort label-9103
SELECT ALL - + cor0.col0 DIV ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL - + cor0.col0 / ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + - col1 + - 29 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1119
-813
-814
onlyif mysql # use DIV operator for integer division
query I rowsort label-9105
SELECT DISTINCT - + col1 DIV col1 AS col0 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-9105
SELECT DISTINCT - + col1 / col1 AS col0 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT DISTINCT + col2 * - ( - 2 * cor0.col1 ) + + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1534
-51
1457
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9107
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab1
----
NULL
query I rowsort
SELECT - ( - 78 ) + + col0 * col1 + ( tab2.col0 + - col1 ) FROM tab2
----
1483
271
4699
query I rowsort
SELECT DISTINCT 65 - + 14 FROM tab1
----
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 * 56 * + col2 col1 FROM tab1
----
281232
296856
499968
query I rowsort
SELECT DISTINCT + ( ( + cor0.col2 ) ) + col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL - - col0 - + col1 AS col2 FROM tab1 cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT + + ( + 16 ) * + col2 FROM tab2 AS cor0
----
416
432
608
query I rowsort
SELECT ALL + - cor0.col1 * - col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL + - col1 * col2 + 69 * + 14 AS col2 FROM tab1 AS cor0
----
-282
-438
396
query I rowsort
SELECT - + col1 - col2 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT - col0 + - cor0.col2 - col0 FROM tab0 cor0
----
-260
-71
-81
query I rowsort
SELECT - col0 * + col1 + 38 AS col1 FROM tab0 AS cor0
----
-2026
-3357
-8061
query I rowsort
SELECT DISTINCT + col1 + col1 * 24 FROM tab1 AS cor0
----
250
325
650
query I rowsort
SELECT ALL - col1 * col0 + ( - col0 ) - - col2 FROM tab1 cor0
----
-1024
-27
-647
query I rowsort
SELECT DISTINCT - cor0.col2 - + cor0.col2 FROM tab0 cor0
----
-164
-2
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + - col2 col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT 64 * col2 - + col2 * + 87 AS col0 FROM tab2
----
-598
-621
-874
query I rowsort
SELECT DISTINCT 42 - col2 * col0 AS col2 FROM tab0
----
-7256
-750
7
query I rowsort
SELECT + 2 AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
onlyif mysql # use DIV operator for integer division
query I rowsort label-9127
SELECT + tab2.col1 * 41 + col1 DIV 44 AS col1 FROM tab2
----
1271
2420
697
skipif mysql # not compatible
query I rowsort label-9127
SELECT + tab2.col1 * 41 + col1 / 44 AS col1 FROM tab2
----
1271
2420
697
query I rowsort
SELECT ALL + 60 + col0 AS col2 FROM tab1 cor0
----
124
140
63
query I rowsort
SELECT - col1 * col2 + - ( 15 ) * col1 * - ( + col2 ) AS col1 FROM tab1 cor0
----
17472
19656
7980
onlyif mysql # use DIV operator for integer division
query I rowsort label-9130
SELECT - col0 DIV col2 - col0 FROM tab1 AS cor0
----
-3
-65
-80
skipif mysql # not compatible
query I rowsort label-9130
SELECT - col0 / col2 - col0 FROM tab1 AS cor0
----
-3
-65
-80
query I rowsort
SELECT ALL tab2.col0 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT ALL col0 * 65 AS col1 FROM tab0
----
1560
2275
5785
query I rowsort
SELECT col0 + col1 * - col1 AS col2 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT + col2 * col1 * - col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT cor0.col2 + + ( - 34 ) FROM tab0 AS cor0
----
-1
-33
48
query I rowsort
SELECT + col0 + + 85 AS col0 FROM tab0 AS cor0
----
109
120
174
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 col1 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9138
SELECT DISTINCT - + cor0.col2 * CAST( NULL AS SIGNED ) + col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9138
SELECT DISTINCT - + cor0.col2 * CAST ( NULL AS INTEGER ) + col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9139
SELECT + CAST( col0 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-9139
SELECT + CAST ( col0 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + 38 FROM tab1 cor0
----
38
38
38
query I rowsort
SELECT - ( 57 ) AS col2 FROM tab2 AS cor0
----
-57
-57
-57
query I rowsort
SELECT 12 + cor1.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ba5c0c61c95a71558ba23090196069ec
query I rowsort
SELECT ( 66 ) * col0 FROM tab0 AS cor0
----
1584
2310
5874
query I rowsort
SELECT ALL - - 78 * cor0.col0 FROM tab2 AS cor0
----
546
6084
6162
query I rowsort
SELECT DISTINCT - 77 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
4158
4389
7392
query I rowsort
SELECT - col1 * col2 + + ( - col1 * - col0 ) AS col0 FROM tab1 cor0
----
-1326
-208
70
query I rowsort
SELECT - - cor0.col1 * + col1 AS col2 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT - - 96 + col0 AS col1 FROM tab0 cor0
----
120
131
185
query I rowsort
SELECT DISTINCT + 30 * - cor0.col1 FROM tab0 AS cor0
----
-2580
-2730
-2910
query I rowsort
SELECT - - col2 + col1 * - 91 AS col2 FROM tab2 AS cor0
----
-1509
-2794
-5343
query I rowsort
SELECT - - col1 + + col0 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - + col0 * + ( + col0 ) AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL + 60 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
onlyif mysql # use DIV operator for integer division
query I rowsort label-9154
SELECT + col0 DIV - ( col0 + + col0 ) AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9154
SELECT + col0 / - ( col0 + + col0 ) AS col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col0 + 6 col0 FROM tab1 AS cor0
----
-3
-4090
-6394
onlyif mysql # use DIV operator for integer division
query I rowsort label-9156
SELECT + tab2.col1 DIV 58 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6
skipif mysql # not compatible
query I rowsort label-9156
SELECT + tab2.col1 / 58 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6
query I rowsort
SELECT DISTINCT 29 AS col1 FROM tab0, tab1, tab1 AS cor0
----
29
query I rowsort
SELECT col1 + - ( 30 ) * col0 FROM tab0 AS cor0
----
-2579
-634
-953
query I rowsort
SELECT ALL col1 + 29 AS col2 FROM tab1 AS cor0
----
39
42
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 * - 5 col0 FROM tab1 AS cor0
----
-14
-15
127
query I rowsort
SELECT DISTINCT + col2 * + col0 * 41 FROM tab1 AS cor0
----
149568
314880
6642
query I rowsort
SELECT + col2 + ( cor0.col1 ) + - cor0.col1 * - col0 FROM tab0 cor0
----
2183
3493
8272
query I rowsort
SELECT + 6 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT ALL col2 * tab0.col2 + + 60 * col1 AS col0 FROM tab0
----
12184
5821
6249
onlyif mysql # use DIV operator for integer division
query I rowsort label-9165
SELECT - col2 DIV col0 + 87 FROM tab2
----
84
87
87
skipif mysql # not compatible
query I rowsort label-9165
SELECT - col2 / col0 + 87 FROM tab2
----
84
87
87
query I rowsort
SELECT ALL - 72 FROM tab1, tab1 cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6
query I rowsort
SELECT + col1 * 39 AS col0 FROM tab2
----
1209
2301
663
query I rowsort
SELECT + - 36 AS col1 FROM tab0 AS cor0
----
-36
-36
-36
query I rowsort
SELECT col2 * col2 * 9 - + col1 * - col2 AS col2 FROM tab0 AS cor0
----
106
12639
67978
query I rowsort
SELECT DISTINCT - ( 84 * col2 + 22 * col2 ) AS col0 FROM tab1
----
-10176
-5724
-6042
query I rowsort
SELECT - 32 * col1 * col2 FROM tab2
----
-20672
-26784
-49088
onlyif mysql # use DIV operator for integer division
query I rowsort label-9172
SELECT DISTINCT col1 - col1 DIV col0 col2 FROM tab0
----
83
90
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9172
SELECT DISTINCT col1 - col1 / col0 col2 FROM tab0
----
83
90
95
query I rowsort
SELECT - + 31 * col0 * col0 + + col1 * col0 * + 12 + + col0 AS col0 FROM tab2 AS cor0
----
-133302
-177276
1092
query I rowsort
SELECT + col2 * col0 + col0 + 5 * tab2.col2 AS col0 FROM tab2
----
2236
3271
331
onlyif mysql # use DIV operator for integer division
query I rowsort label-9175
SELECT DISTINCT tab2.col2 + 48 DIV col1 AS col1 FROM tab2
----
26
28
40
skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT tab2.col2 + 48 / col1 AS col1 FROM tab2
----
26
28
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-9176
SELECT DISTINCT tab2.col2 DIV + col1 + - col2 * col2 AS col2 FROM tab2
----
-1442
-676
-729
skipif mysql # not compatible
query I rowsort label-9176
SELECT DISTINCT tab2.col2 / + col1 + - col2 * col2 AS col2 FROM tab2
----
-1442
-676
-729
query I rowsort
SELECT - - col0 * 77 FROM tab2 AS cor0
----
539
6006
6083
query I rowsort
SELECT DISTINCT + ( 55 ) AS col2 FROM tab1 cor0
----
55
query I rowsort
SELECT DISTINCT 33 + col0 + col0 FROM tab0 AS cor0
----
103
211
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + 11 ) * - col0 col0 FROM tab0 AS cor0
----
-264
-385
-979
query I rowsort
SELECT ALL - - ( - col0 ) * - col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + - 9 + col1 AS col1 FROM tab2 AS cor0
----
22
50
8
query I rowsort
SELECT DISTINCT ( 28 ) AS col2 FROM tab1 cor0
----
28
query I rowsort
SELECT + - ( col2 ) * + col2 + cor0.col0 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT ALL - + 17 + + col1 * + col2 + - col2 FROM tab2 AS cor0
----
1491
591
793
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 12bd12d33f03250bee508c5641e140d5
query I rowsort
SELECT - - 41 + col2 * col1 FROM tab2 AS cor0
----
1575
687
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-9188
SELECT ALL - - col2 + col2 DIV col2 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL - - col2 + col2 / col2 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT DISTINCT + col1 + col0 * + col2 * + col0 FROM tab2 AS cor0
----
1354
158243
237175
query I rowsort
SELECT ALL 39 * - col1 FROM tab0 cor0
----
-3354
-3549
-3783
query I rowsort
SELECT DISTINCT - ( - col0 ) * col1 + col0 + + col2 FROM tab2 cor0
----
1460
251
4706
query I rowsort
SELECT + col1 - col2 AS col2 FROM tab2 cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-9193
SELECT ALL col2 + ( - cor0.col2 ) DIV col0 AS col0 FROM tab1 AS cor0
----
36
57
95
skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL col2 + ( - cor0.col2 ) / col0 AS col0 FROM tab1 AS cor0
----
36
57
95
query I rowsort
SELECT col0 + - col0 * 50 AS col1 FROM tab0 AS cor0
----
-1176
-1715
-4361
query I rowsort
SELECT DISTINCT - - cor0.col1 + + ( + col0 ) * col2 AS col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT + + col2 + + 25 * + 98 FROM tab0 AS cor0
----
2451
2483
2532
onlyif mysql # use DIV operator for integer division
query I rowsort label-9197
SELECT col2 DIV ( 11 ) FROM tab2 AS cor0
----
2
2
3
skipif mysql # not compatible
query I rowsort label-9197
SELECT col2 / ( 11 ) FROM tab2 AS cor0
----
2
2
3
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 63 AS REAL ) FROM tab1, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9199
SELECT ALL + - col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL + - col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 * - 23 AS col0 FROM tab2 cor0
----
-161
-1794
-1817
query I rowsort
SELECT ALL cor0.col2 * - 41 AS col0 FROM tab1 AS cor0
----
-2214
-2337
-3936
query I rowsort
SELECT - col2 * 41 FROM tab2 cor0
----
-1066
-1107
-1558
query I rowsort
SELECT DISTINCT - - ( - 20 ) * col0 FROM tab2 AS cor0
----
-140
-1560
-1580
onlyif mysql # use DIV operator for integer division
query I rowsort label-9204
SELECT - col0 DIV col0 + + col1 * - 48 FROM tab2 cor0
----
-1489
-2833
-817
skipif mysql # not compatible
query I rowsort label-9204
SELECT - col0 / col0 + + col1 * - 48 FROM tab2 cor0
----
-1489
-2833
-817
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 + - col2 + 37 col0 FROM tab0 AS cor0
----
2068
3431
8054
query I rowsort
SELECT ALL + 5 + col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
294
3486
966
query I rowsort
SELECT DISTINCT col0 * col1 + tab1.col2 - + col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT col0 + 44 FROM tab0
----
133
68
79
query I rowsort
SELECT - col0 + + col0 + col0 AS col1 FROM tab2
----
7
78
79
query I rowsort
SELECT + + col0 + 37 * - col0 FROM tab1 AS cor0
----
-108
-2304
-2880
query I rowsort
SELECT DISTINCT - col0 * - col0 + col2 * col2 AS col0 FROM tab1 cor0
----
15616
2925
7345
query I rowsort
SELECT 55 - - col1 AS col1 FROM tab2 cor0
----
114
72
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + col1 + - cor0.col2 col1 FROM tab2 AS cor0
----
-1381
-244
-4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-9214
SELECT DISTINCT - + 14 + cor0.col2 DIV + col2 FROM tab1 AS cor0
----
-13
skipif mysql # not compatible
query I rowsort label-9214
SELECT DISTINCT - + 14 + cor0.col2 / + col2 FROM tab1 AS cor0
----
-13
query I rowsort
SELECT ALL + + 75 * col0 AS col1 FROM tab1 AS cor0
----
225
4800
6000
query I rowsort
SELECT DISTINCT - col1 + 88 + + col0 * 41 FROM tab0
----
1426
3646
986
query I rowsort
SELECT - ( col1 + + col2 ) * + ( - col0 * - tab0.col2 ) FROM tab0
----
-1262554
-3430
-94248
query I rowsort
SELECT ALL ( - 79 ) + + col1 + tab1.col0 FROM tab1
----
-5
-50
14
query I rowsort
SELECT DISTINCT + + col2 + + col1 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + ( + col0 ) * + tab1.col2 * + col1 AS col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT - tab2.col0 * col2 * col1 AS col2 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT - ( - col2 + + col0 ) AS col0 FROM tab1
----
-7
16
51
query I rowsort
SELECT DISTINCT - - col2 * 52 - col2 AS col0 FROM tab0 AS cor0
----
1683
4182
51
query I rowsort
SELECT + 84 + col0 * - 43 FROM tab0
----
-1421
-3743
-948
query I rowsort
SELECT 13 + col0 * ( + col1 ) FROM tab1
----
1053
653
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9226
SELECT tab0.col1 * col0 + - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9226
SELECT tab0.col1 * col0 + - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col0 - col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1260
-600
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - cor0.col2 * + col2 col0 FROM tab0 cor0
----
1
35937
551368
query I rowsort
SELECT DISTINCT + cor0.col0 * 88 FROM tab0 AS cor0
----
2112
3080
7832
query I rowsort
SELECT ALL col0 + 45 AS col2 FROM tab1 cor0
----
109
125
48
query I rowsort
SELECT DISTINCT - col1 + - col2 * 55 + col1 * ( - col1 ) FROM tab1 AS cor0
----
-3245
-3672
-5462
query I rowsort
SELECT ALL + - col0 * ( + col2 ) AS col1 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + col2 + + 13 AS col1 FROM tab1 AS cor0
----
109
67
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9234
SELECT ALL - col2 * - col0 + col0 + col1 * - CAST( 77 AS SIGNED ) FROM tab2 AS cor0
----
-2191
-2437
1772
skipif mysql # not compatible
query I rowsort label-9234
SELECT ALL - col2 * - col0 + col0 + col1 * - CAST ( 77 AS INTEGER ) FROM tab2 AS cor0
----
-2191
-2437
1772
onlyif mysql # use DIV operator for integer division
query I rowsort label-9235
SELECT - col1 + 11 DIV - col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-9235
SELECT - col1 + 11 / - col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - 69 + + col2 FROM tab2
----
-31
-42
-43
query I rowsort
SELECT ALL - col1 * + 56 * - col1 FROM tab1
----
37856
5600
9464
query I rowsort
SELECT ALL + tab2.col0 * + col0 * col1 AS col2 FROM tab2
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-9239
SELECT ALL + col1 + 11 DIV col1 FROM tab1
----
11
13
26
skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL + col1 + 11 / col1 FROM tab1
----
11
13
26
query I rowsort
SELECT DISTINCT + col0 * col2 + - cor0.col2 + - col2 FROM tab2 AS cor0
----
135
1976
2926
query I rowsort
SELECT ALL + + 18 * cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
108
1209
1536
query I rowsort
SELECT + 17 * - tab0.col1 FROM tab0
----
-1462
-1547
-1649
query I rowsort
SELECT DISTINCT + 24 AS col0 FROM tab0
----
24
query I rowsort
SELECT + 21 * col1 + 75 FROM tab1 AS cor0
----
285
348
621
query I rowsort
SELECT - 40 * col1 * + tab1.col0 AS col1 FROM tab1
----
-25600
-3120
-41600
query I rowsort
SELECT + + col2 + col2 + 50 FROM tab1 AS cor0
----
158
164
242
query I rowsort
SELECT - ( col1 ) + - 13 FROM tab2 cor0
----
-30
-44
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 col2 FROM tab2 AS cor0
----
11
11
11
query I rowsort
SELECT 19 * col0 + + 36 * + col1 FROM tab2 AS cor0
----
1249
2113
3606
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 + col0 col1 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT 35 - col0 FROM tab0
----
-54
0
11
query I rowsort
SELECT + 37 * col1 * col2 + + col1 AS col0 FROM tab2 AS cor0
----
23919
31000
56817
query I rowsort
SELECT ALL - 53 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 2876418587c77a182d88db2907b0a51a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9254
SELECT col0 * CAST( NULL AS SIGNED ) + cor0.col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9254
SELECT col0 * CAST ( NULL AS INTEGER ) + cor0.col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + cor0.col0 * - 66 - + cor0.col1 FROM tab1 AS cor0
----
172
4214
5267
query I rowsort
SELECT DISTINCT + cor0.col0 - - 25 * - col2 AS col2 FROM tab2 AS cor0
----
-572
-668
-871
query I rowsort
SELECT ALL + + col0 * ( + col0 ) FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-9258
SELECT + col1 * + ( + col0 ) + col2 DIV - 13 col1 FROM tab1 AS cor0
----
1033
636
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9258
SELECT + col1 * + ( + col0 ) + col2 / - 13 col1 FROM tab1 AS cor0
----
1033
636
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-9259
SELECT ALL - col1 * - col0 DIV col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL - col1 * - col0 / col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + col0 * + col0 * 35 + col1 AS col0 FROM tab1 AS cor0
----
143370
224013
341
query I rowsort
SELECT DISTINCT col0 + 16 * 97 FROM tab2 AS cor0
----
1559
1630
1631
query I rowsort
SELECT - 92 * - col0 FROM tab2 AS cor0
----
644
7176
7268
query I rowsort
SELECT ALL 4 * 91 FROM tab0 AS cor0
----
364
364
364
onlyif mysql # use DIV operator for integer division
query I rowsort label-9264
SELECT DISTINCT - col1 + + 87 DIV - col0 FROM tab0 cor0
----
-89
-91
-99
skipif mysql # not compatible
query I rowsort label-9264
SELECT DISTINCT - col1 + + 87 / - col0 FROM tab0 cor0
----
-89
-91
-99
query I rowsort
SELECT - 29 * - col0 FROM tab2 AS cor0
----
203
2262
2291
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9266
SELECT DISTINCT CAST( ( col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9266
SELECT DISTINCT CAST ( ( col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - - 14 FROM tab2 AS cor0
----
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-9268
SELECT - 73 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
-2
-73
0
skipif mysql # not compatible
query I rowsort label-9268
SELECT - 73 / cor0.col2 AS col1 FROM tab0 AS cor0
----
-2
-73
0
query I rowsort
SELECT - + ( + ( col2 ) ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL 34 * - cor0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 2d69ce97aed7fca4bc2804582f381c58
query I rowsort
SELECT ALL - 51 AS col1 FROM tab1 AS cor0
----
-51
-51
-51
query I rowsort
SELECT + col2 + cor0.col1 - col1 * col2 AS col0 FROM tab0 AS cor0
----
-2719
-7289
1
query I rowsort
SELECT ALL + + 45 * col2 FROM tab2 AS cor0
----
1170
1215
1710
query I rowsort
SELECT col1 FROM tab0 WHERE NOT ( col0 - col2 * - col2 ) > NULL
----
query I rowsort
SELECT ALL - tab1.col2 + - col1 + + col0 AS col2 FROM tab1
----
-29
-3
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-9276
SELECT DISTINCT - col2 * col1 DIV - col0 AS col1 FROM tab2
----
119
19
8
skipif mysql # not compatible
query I rowsort label-9276
SELECT DISTINCT - col2 * col1 / - col0 AS col1 FROM tab2
----
119
19
8
query I rowsort
SELECT + col2 + col0 * + col0 FROM tab2
----
6110
6279
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-9278
SELECT tab1.col2 * col1 DIV col0 col1 FROM tab1
----
15
468
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9278
SELECT tab1.col2 * col1 / col0 col1 FROM tab1
----
15
468
8
query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( + tab1.col1 )
----
query I rowsort
SELECT ALL + col1 + - col2 + col1 * col0 * col0 AS col0 FROM tab1
----
206
40913
83117
query I rowsort
SELECT DISTINCT tab1.col0 + tab1.col1 AS col0 FROM tab1
----
29
74
93
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 / col0 NOT IN ( - col0 + - tab2.col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
onlyif mysql # use DIV operator for integer division
query I rowsort label-9283
SELECT DISTINCT col0 * - col0 + - col2 DIV + col0 AS col1 FROM tab2
----
-52
-6084
-6241
skipif mysql # not compatible
query I rowsort label-9283
SELECT DISTINCT col0 * - col0 + - col2 / + col0 AS col1 FROM tab2
----
-52
-6084
-6241
query I rowsort
SELECT - col0 * col2 + col0 AS col0 FROM tab1
----
-159
-3584
-7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + col0 * - col0 AS col1 FROM tab2
----
-49
-6084
-6241
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= ( col1 )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 * col1 + - col2 BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT + col1 + col2 * col2 AS col0 FROM tab2
----
1461
735
760
query I rowsort
SELECT DISTINCT tab0.col2 * col0 * + col0 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT ALL col1 + + col2 + col1 * col0 AS col2 FROM tab0
----
2183
3493
8272
query I rowsort
SELECT ALL col2 * + col2 + col2 - + col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT ALL - col0 + col2 + col2 AS col2 FROM tab2
----
-26
-3
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-9294
SELECT col2 DIV + tab0.col2 + - tab0.col0 * tab0.col2 col2 FROM tab0
----
-34
-7297
-791
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9294
SELECT col2 / + tab0.col2 + - tab0.col0 * tab0.col2 col2 FROM tab0
----
-34
-7297
-791
query I rowsort
SELECT ALL col2 * + col0 * col1 + - col1 AS col0 FROM tab1
----
36470
4186
99827
query I rowsort
SELECT DISTINCT col2 + - col2 * + col1 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT col2 + - col2 * col2 + - tab1.col2 * col1 AS col1 FROM tab1
----
-10368
-3762
-4266
query I rowsort
SELECT - col1 + - col0 + - col1 FROM tab0
----
-196
-229
-271
query I rowsort
SELECT DISTINCT col0 * - col0 * - col0 + - col0 * col2 FROM tab1
----
-135
258496
504320
query I rowsort
SELECT ALL + col2 * - col1 * + col0 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT - tab0.col1 * + tab0.col0 + col2 AS col0 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT col0 FROM tab2 WHERE NOT col1 <= col1
----
query I rowsort
SELECT tab1.col2 * + col1 + tab1.col2 AS col0 FROM tab1
----
1344
1458
627
query I rowsort
SELECT ALL cor0.col2 * + cor0.col0 + - col1 FROM tab0 cor0
----
-62
706
7207
query I rowsort
SELECT ALL + col1 * col0 FROM tab0 WHERE ( NULL ) <> col2 * - col1 * + col0
----
query I rowsort
SELECT ALL + col2 - + col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + col1 * + tab0.col0 * + col0 + col0 + + col1 * col2 AS col2 FROM tab0
----
118957
52398
728362
query I rowsort
SELECT DISTINCT - col1 * col2 + + tab1.col2 * tab1.col2 FROM tab1
----
1512
2679
7968
query I rowsort
SELECT ALL cor0.col2 * + col0 + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL + col2 * - col0 * + col2 + - col0 AS col0 FROM tab2 AS cor0
----
-114155
-5110
-52806
query I rowsort
SELECT col0 AS col2 FROM tab0 cor0 WHERE NOT + col1 IN ( + col0 * - col0 )
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9312
SELECT - col2 * col1 DIV col0 AS col0 FROM tab0 AS cor0
----
-118
-2
-83
skipif mysql # not compatible
query I rowsort label-9312
SELECT - col2 * col1 / col0 AS col0 FROM tab0 AS cor0
----
-118
-2
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9313
SELECT DISTINCT CAST( NULL AS SIGNED ) * - cor0.col0 FROM tab2, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9313
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - cor0.col0 FROM tab2, tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + + cor0.col2 * + col1 * - col1 + + col2 AS col1 FROM tab1 AS cor0
----
-16128
-36450
-5643
query I rowsort
SELECT DISTINCT col0 * ( 37 ) FROM tab2 AS cor0
----
259
2886
2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-9316
SELECT DISTINCT cor0.col1 * col1 + col2 * col1 DIV col0 FROM tab0 AS cor0
----
7514
8364
9411
skipif mysql # not compatible
query I rowsort label-9316
SELECT DISTINCT cor0.col1 * col1 + col2 * col1 / col0 FROM tab0 AS cor0
----
7514
8364
9411
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9317
SELECT ALL + - col2 * CAST( cor0.col0 AS SIGNED ) * + col0 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400
skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL + - col2 * CAST ( cor0.col0 AS INTEGER ) * + col0 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT + - 66 FROM tab1 cor0
----
-66
-66
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9319
SELECT CAST( NULL AS SIGNED ) - 73 * + col1 / - cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9319
SELECT CAST ( NULL AS INTEGER ) - 73 * + col1 / - cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + 17 + + 94 * col1 AS col0 FROM tab1 AS cor0
----
1205
2427
923
query I rowsort
SELECT + 65 - + ( - col2 ) FROM tab1 AS cor0
----
119
122
161
query I rowsort
SELECT 34 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT DISTINCT - 23 AS col1 FROM tab2, tab2 AS cor0
----
-23
onlyif mysql # use DIV operator for integer division
query I rowsort label-9324
SELECT + ( cor0.col0 ) + col0 DIV 92 col1 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9324
SELECT + ( cor0.col0 ) + col0 / 92 col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - 20 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee
query I rowsort
SELECT - col0 + + col2 + col1 FROM tab2
----
-24
51
7
query I rowsort
SELECT 41 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
query I rowsort
SELECT + ( - col2 ) * 67 * + col1 + - col0 AS col0 FROM tab2
----
-102856
-43361
-56086
query I rowsort
SELECT col0 + ( + col0 ) * col1 * - 29 FROM tab0 AS cor0
----
-234782
-59832
-98420
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9330
SELECT - - col1 * CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-9330
SELECT - - col1 * CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - tab1.col1 * + col0 + col1 AS col0 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT ( - col1 ) * - col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + 17 + 60 AS col0 FROM tab2
----
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9334
SELECT CAST( + col2 AS SIGNED ) * col1 FROM tab0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-9334
SELECT CAST ( + col2 AS INTEGER ) * col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT + col2 * ( - cor0.col2 ) FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + col2 * + ( + col0 ) FROM tab2
----
189
2028
3002
query I rowsort
SELECT + tab2.col2 * + col1 * - tab2.col0 AS col0 FROM tab2
----
-119652
-51034
-5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 4 - 31 * col2 col0 FROM tab2 AS cor0
----
-1174
-802
-833
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT - 62 * col0 FROM tab2 cor0
----
-434
-4836
-4898
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) * + col0 col2 FROM tab0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col2 + - col0 col0 FROM tab1 cor0
----
-17
25
3
query I rowsort
SELECT - 81 + col2 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-178
-2919
-7543
query I rowsort
SELECT col0 + - col2 * col0 + + col2 FROM tab0 AS cor0
----
-7127
-735
1
query I rowsort
SELECT DISTINCT - + 39 * cor0.col0 AS col0 FROM tab0 cor0
----
-1365
-3471
-936
query I rowsort
SELECT DISTINCT + ( - 78 ) AS col2 FROM tab1
----
-78
query I rowsort
SELECT col2 * ( col2 + - col1 * col2 ) FROM tab0
----
-605160
-92565
-96
query I rowsort
SELECT + col1 * + ( col0 * col0 ) FROM tab0
----
118825
49536
720811
query I rowsort
SELECT - tab2.col0 AS col2 FROM tab0, tab1, tab2 AS cor0, tab2
----
81 values hashing to adaea38eae032c1639715f21831dd376
query I rowsort
SELECT - col1 * 47 - col2 AS col2 FROM tab1 AS cor0
----
-1276
-527
-707
onlyif mysql # use DIV operator for integer division
query I rowsort label-9351
SELECT - col2 DIV + ( - col1 ) AS col0 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-9351
SELECT - col2 / + ( - col1 ) AS col0 FROM tab1 AS cor0
----
2
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9352
SELECT DISTINCT - tab1.col1 DIV - col0 AS col1 FROM tab1
----
0
8
skipif mysql # not compatible
query I rowsort label-9352
SELECT DISTINCT - tab1.col1 / - col0 AS col1 FROM tab1
----
0
8
query I rowsort
SELECT ALL - 54 FROM tab2, tab0 AS cor0, tab0, tab2 cor1
----
81 values hashing to 440ee4bea4c39df49899f4a4d88059fe
query I rowsort
SELECT DISTINCT + col0 * + ( col0 * col2 ) FROM tab1
----
233472
486
614400
query I rowsort
SELECT - col0 + col1 + 57 FROM tab2 cor0
----
-5
38
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-9356
SELECT - col0 DIV + 60 AS col2 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-9356
SELECT - col0 / + 60 AS col2 FROM tab1 AS cor0
----
-1
-1
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9357
SELECT col0 + CAST( NULL AS SIGNED ) * + 52 - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9357
SELECT col0 + CAST ( NULL AS INTEGER ) * + 52 - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * + 20 FROM tab2 AS cor0
----
1180
340
620
query I rowsort
SELECT ALL + col1 + 52 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1643
3127
901
query I rowsort
SELECT ALL - 92 + - col2 FROM tab0 AS cor0
----
-125
-174
-93
query I rowsort
SELECT ALL - + col1 * col0 + + col0 * col1 * 21 FROM tab1 AS cor0
----
12800
1560
20800
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9362
SELECT DISTINCT 72 * ( col2 ) + - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
3834
4047
6816
skipif mysql # not compatible
query I rowsort label-9362
SELECT DISTINCT 72 * ( col2 ) + - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
3834
4047
6816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9363
SELECT DISTINCT CAST( - col2 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-9363
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-9364
SELECT - col2 DIV - col0 - - col2 AS col1 FROM tab2 AS cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-9364
SELECT - col2 / - col0 - - col2 AS col1 FROM tab2 AS cor0
----
26
30
38
query I rowsort
SELECT col1 - + 21 FROM tab1
----
-11
-8
5
query I rowsort
SELECT col1 + 36 * col1 * - 88 + col2 * tab1.col2 AS col0 FROM tab1
----
-28421
-31955
-79426
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9367
SELECT + CAST( NULL AS SIGNED ) + cor0.col0 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9367
SELECT + CAST ( NULL AS INTEGER ) + cor0.col0 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - 72 + 21 FROM tab2 AS cor0
----
93
93
93
query I rowsort
SELECT ( col0 ) * col2 + tab0.col2 + - col2 AS col2 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-9370
SELECT ALL - ( - col2 ) DIV + col1 + - ( col0 ) DIV - col0 AS col1 FROM tab1 cor0
----
3
6
8
skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL - ( - col2 ) / + col1 + - ( col0 ) / - col0 AS col1 FROM tab1 cor0
----
3
6
8
query I rowsort
SELECT + 99 + - col1 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-20
-74
1
query I rowsort
SELECT ALL - 1 * + ( col0 ) + + col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 * - col0 + - col1 col2 FROM tab1 AS cor0
----
-1482
-1853
-95
query I rowsort
SELECT ( + col2 ) + + cor0.col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + col2 * + 39 + col0 + - ( + cor0.col2 + - col0 * col1 ) AS col0 FROM tab0 AS cor0
----
11304
3342
3468
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9377
SELECT CAST( NULL AS SIGNED ) - col2 * + col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9377
SELECT CAST ( NULL AS INTEGER ) - col2 * + col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 99 + 90 AS col2 FROM tab1 AS cor0
----
189
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9379
SELECT DISTINCT 90 + col1 * + CAST( NULL AS SIGNED ) / 75 AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9379
SELECT DISTINCT 90 + col1 * + CAST ( NULL AS INTEGER ) / 75 AS col1 FROM tab2
----
NULL
query I rowsort
SELECT + cor0.col2 * 78 FROM tab2, tab1 cor0
----
9 values hashing to 33991048d4fe4da87a7eabd3f9b40f78
query I rowsort
SELECT + 21 + - cor0.col1 FROM tab0 AS cor0
----
-65
-70
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-9382
SELECT - - 32 DIV + col0 AS col2 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9382
SELECT - - 32 / + col0 AS col2 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT 86 * + col0 + + 13 AS col0 FROM tab0 AS cor0
----
2077
3023
7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + col0 col0 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9385
SELECT ALL + tab1.col2 * col2 * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL + tab1.col2 * col2 * + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9386
SELECT + + col0 * CAST( - col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
-49
-6084
-6241
skipif mysql # not compatible
query I rowsort label-9386
SELECT + + col0 * CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL - - 26 + col1 + + 71 FROM tab2 AS cor0
----
114
128
156
query I rowsort
SELECT ALL - 25 * - col2 FROM tab2 AS cor0
----
650
675
950
query I rowsort
SELECT - 10 * - col2 FROM tab1 AS cor0
----
540
570
960
query I rowsort
SELECT DISTINCT 95 + cor0.col2 FROM tab0 AS cor0
----
128
177
96
query I rowsort
SELECT - 32 AS col0 FROM tab2 cor0
----
-32
-32
-32
query I rowsort
SELECT ALL ( + col1 ) * - col2 AS col0 FROM tab0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9393
SELECT DISTINCT - tab2.col1 DIV + 85 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-9393
SELECT DISTINCT - tab2.col1 / + 85 FROM tab2
----
0
query I rowsort
SELECT DISTINCT + - col0 + + col1 * col1 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT cor0.col0 * cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 4829ede06f586935ff95a5b0dfdb9199
query I rowsort
SELECT DISTINCT + col2 + col2 + + tab0.col0 FROM tab0
----
253
37
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col2 col2 FROM tab0
----
164
2
66
query I rowsort
SELECT DISTINCT + col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT ALL 50 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT + 47 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT + col2 + 71 FROM tab2
----
109
97
98
query I rowsort
SELECT ALL - col0 * - 40 + - col0 FROM tab1
----
117
2496
3120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9404
SELECT tab1.col0 - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9404
SELECT tab1.col0 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - 67 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99
query I rowsort
SELECT 20 + col0 * + col0 AS col1 FROM tab2
----
6104
6261
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-9407
SELECT DISTINCT + cor0.col2 DIV + col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT + cor0.col2 / + col1 FROM tab0 AS cor0
----
0
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab1 cor1, tab2 cor2
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79
query I rowsort
SELECT + 69 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT - 47 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5
query I rowsort
SELECT DISTINCT + ( col1 ) * col0 - - col0 AS col0 FROM tab1 AS cor0
----
1120
704
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9412
SELECT ALL + 5 * col0 + col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL + 5 * col0 + col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 + + 24 + col0 FROM tab0 cor0
----
202
72
94
query I rowsort
SELECT DISTINCT - - col0 * col1 + + col2 AS col2 FROM tab1 AS cor0
----
1136
132
697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 + + cor2.col1 col2 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
48
62
90
query I rowsort
SELECT ALL - col2 * col0 + + col2 * col2 * col2 AS col0 FROM tab1 AS cor0
----
157302
181545
877056
query I rowsort
SELECT ALL + 9 + - 66 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505
query I rowsort
SELECT ALL - ( col2 * col0 ) FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - 34 * - cor2.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
1122
2788
34
query I rowsort
SELECT 2 * col0 AS col0 FROM tab1 AS cor0
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 * 78 col2 FROM tab2
----
546
6084
6162
query I rowsort
SELECT - cor0.col1 + ( - col0 ) * col1 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT ALL + col0 + tab1.col2 + col2 * - col1 AS col2 FROM tab1
----
-1072
-1347
-449
query I rowsort
SELECT DISTINCT + col1 * - ( col2 ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT cor0.col2 * col2 * 81 AS col2 FROM tab1 cor0
----
236196
263169
746496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9426
SELECT col2 - + CAST( + col0 * - col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9426
SELECT col2 - + CAST ( + col0 * - col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT - col0 + col2 * ( col0 ) * col2 AS col1 FROM tab0 AS cor0
----
0
26112
598347
query I rowsort
SELECT - 64 + - col1 * - col0 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
22767
271454
6663
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9429
SELECT CAST( NULL AS SIGNED ) * col1 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9429
SELECT CAST ( NULL AS INTEGER ) * col1 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * 62 AS col2 FROM tab2 AS cor0
----
434
4836
4898
query I rowsort
SELECT - ( cor0.col2 ) + col1 * - 28 AS col2 FROM tab1 cor0
----
-337
-460
-782
query I rowsort
SELECT DISTINCT - col2 - cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT DISTINCT - - ( + 92 ) + col1 FROM tab0 cor0
----
178
183
189
query I rowsort
SELECT ALL cor0.col1 - 63 FROM tab0 AS cor0
----
23
28
34
query I rowsort
SELECT ALL + + 12 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
19
90
91
query I rowsort
SELECT DISTINCT - cor0.col0 * + ( col1 ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - 1 * - cor0.col2 + col0 + + col2 * - 55 AS col2 FROM tab1 AS cor0
----
-2913
-3014
-5104
query I rowsort
SELECT ALL col1 + col1 * col0 * col2 FROM tab0
----
3492
664209
68198
query I rowsort
SELECT + ( - cor0.col0 ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT DISTINCT - col0 + - ( + col2 ) FROM tab1
----
-121
-176
-57
query I rowsort
SELECT 16 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
query I rowsort
SELECT + col1 * - 30 * col2 + col0 AS col0 FROM tab1
----
-17036
-37360
-42117
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9443
SELECT ALL tab2.col0 / CAST( NULL AS DECIMAL ) + col1 * + col1 * col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL tab2.col0 / CAST ( NULL AS REAL ) + col1 * + col1 * col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 53 * + col2 FROM tab1
----
2862
3021
5088
query I rowsort
SELECT + col1 - ( col1 ) * - col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT 95 AS col1 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT DISTINCT - + cor0.col1 * ( + col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL cor1.col1 * cor1.col1 AS col2 FROM tab1, tab1 cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 2b0ff1e81c554df71dd121c736379fea
query I rowsort
SELECT ( col1 ) * 82 FROM tab2
----
1394
2542
4838
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9450
SELECT + col1 * - CAST( + col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9450
SELECT + col1 * - CAST ( + col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9451
SELECT CAST( 32 AS SIGNED ) DIV - cor0.col0 AS col0 FROM tab1 AS cor0
----
-10
0
0
skipif mysql # not compatible
query I rowsort label-9451
SELECT CAST ( 32 AS INTEGER ) / - cor0.col0 AS col0 FROM tab1 AS cor0
----
-10
0
0
query I rowsort
SELECT + + cor0.col0 + col1 * + ( + 32 ) AS col2 FROM tab2 AS cor0
----
1966
623
999
query I rowsort
SELECT ALL - cor0.col0 + + col2 * + 78 * + col2 AS col2 FROM tab2 AS cor0
----
112553
52650
56855
query I rowsort
SELECT DISTINCT - 4 * col2 + col2 FROM tab0 AS cor0
----
-246
-3
-99
query I rowsort
SELECT ALL + col0 + - col2 * ( col1 ) FROM tab1 AS cor0
----
-1168
-1401
-506
onlyif mysql # use DIV operator for integer division
query I rowsort label-9456
SELECT DISTINCT 68 + + col2 DIV col1 AS col1 FROM tab1 AS cor0
----
70
73
75
skipif mysql # not compatible
query I rowsort label-9456
SELECT DISTINCT 68 + + col2 / col1 AS col1 FROM tab1 AS cor0
----
70
73
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 48 col0 FROM tab1 cor0
----
48
48
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-9458
SELECT - 60 + + tab0.col2 DIV tab0.col2 FROM tab0, tab2 cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703
skipif mysql # not compatible
query I rowsort label-9458
SELECT - 60 + + tab0.col2 / tab0.col2 FROM tab0, tab2 cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703
query I rowsort
SELECT ALL + col2 * - 12 AS col1 FROM tab0
----
-12
-396
-984
query I rowsort
SELECT ( + col0 * col0 + + col1 * + 1 ) FROM tab2
----
6143
6258
80
query I rowsort
SELECT - 9 * + col2 * col0 FROM tab1 cor0
----
-1458
-32832
-69120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9462
SELECT CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9462
SELECT CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - 68 FROM tab1 AS cor0
----
-68
query I rowsort
SELECT DISTINCT + 30 + - col1 AS col2 FROM tab1 cor0
----
17
20
4
query I rowsort
SELECT + 28 * col1 FROM tab1 cor0
----
280
364
728
query I rowsort
SELECT tab0.col2 * col0 * + 62 + 50 * tab0.col2 FROM tab0
----
2220
456576
50754
query I rowsort
SELECT DISTINCT - col1 + 39 + + col0 AS col0 FROM tab1 AS cor0
----
106
16
93
query I rowsort
SELECT ALL + col1 - + col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177
query I rowsort
SELECT col2 * - col2 * + col0 + + ( col0 ) AS col0 FROM tab1
----
-207872
-737200
-8745
query I rowsort
SELECT DISTINCT 34 + col1 AS col2 FROM tab2 cor0
----
51
65
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9472
SELECT DISTINCT + - CAST( + 16 AS SIGNED ) * col1 FROM tab2 AS cor0
----
-272
-496
-944
skipif mysql # not compatible
query I rowsort label-9472
SELECT DISTINCT + - CAST ( + 16 AS INTEGER ) * col1 FROM tab2 AS cor0
----
-272
-496
-944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9473
SELECT + col1 * 22 + cor0.col0 * - CAST( + col2 AS SIGNED ) FROM tab0 cor0
----
-5296
1100
2099
skipif mysql # not compatible
query I rowsort label-9473
SELECT + col1 * 22 + cor0.col0 * - CAST ( + col2 AS INTEGER ) FROM tab0 cor0
----
-5296
1100
2099
query I rowsort
SELECT + col2 * 80 AS col2 FROM tab0
----
2640
6560
80
query I rowsort
SELECT DISTINCT - 83 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1992
-2905
-7387
query I rowsort
SELECT DISTINCT - 84 + ( - col2 ) FROM tab0 AS cor0
----
-117
-166
-85
query I rowsort
SELECT ALL - 83 * - 11 FROM tab0 AS cor0
----
913
913
913
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 + cor0.col0 * 65 + col2 col2 FROM tab2 AS cor0
----
1319
5819
6630
query I rowsort
SELECT + + col0 + col0 + - col2 AS col0 FROM tab0 cor0
----
15
69
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9480
SELECT - + col2 DIV 61 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9480
SELECT - + col2 / 61 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col2 * + col1 * col2 AS col0 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT - col0 * 69 FROM tab0
----
-1656
-2415
-6141
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 * tab0.col0 col1 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT + col0 * + 71 AS col1 FROM tab2
----
497
5538
5609
query I rowsort
SELECT DISTINCT - col1 * - 36 + col1 * - col2 FROM tab2
----
-34
279
590
query I rowsort
SELECT DISTINCT + 16 * col2 + col2 AS col0 FROM tab1
----
1632
918
969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - 5 col1 FROM tab0
----
29
40
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 + col0 col0 FROM tab1
----
12
4160
6480
query I rowsort
SELECT - 7 + - 9 FROM tab0 AS cor0
----
-16
-16
-16
query I rowsort
SELECT - col2 * 25 + + col1 FROM tab0 AS cor0
----
-1959
-739
72
query I rowsort
SELECT col0 * 52 * - ( - col0 ) + + col2 * col0 FROM tab1
----
216640
340480
630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT DISTINCT + - col1 * - 22 + col0 FROM tab2 AS cor0
----
1376
453
689
query I rowsort
SELECT ALL - - cor0.col0 * 15 AS col0 FROM tab1 cor0
----
1200
45
960
query I rowsort
SELECT ALL - 84 + + 4 * - col1 FROM tab1 AS cor0
----
-124
-136
-188
query I rowsort
SELECT DISTINCT + ( ( - col0 ) ) + + 54 AS col1 FROM tab2 cor0
----
-24
-25
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 + + col1 * cor0.col2 - ( - col2 ) col2 FROM tab2 AS cor0
----
1566
690
870
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 + - col1 * col1 + + cor0.col0 col2 FROM tab0 AS cor0
----
-7405
-8274
-9375
query I rowsort
SELECT DISTINCT col0 + 97 AS col0 FROM tab2 cor0
----
104
175
176
query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 AS col0 FROM tab2, tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 24 * - cor0.col2 col0 FROM tab0 AS cor0
----
1968
24
792
query I rowsort
SELECT - 38 * col2 FROM tab2 AS cor0
----
-1026
-1444
-988
query I rowsort
SELECT + - 99 + cor0.col0 + ( - 92 ) FROM tab1 AS cor0
----
-111
-127
-188
query I rowsort
SELECT col2 * col2 + + 48 + col0 AS col2 FROM tab2 AS cor0
----
1571
784
802
query I rowsort
SELECT DISTINCT - - col1 * + col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 * + col1 col0 FROM tab1 AS cor0
----
160
208
416
query I rowsort
SELECT DISTINCT - col2 * col0 * col2 AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT ALL + 15 * col2 AS col2 FROM tab2 AS cor0
----
390
405
570
query I rowsort
SELECT + - 55 * - col1 + col0 AS col1 FROM tab1 AS cor0
----
1433
614
795
query I rowsort
SELECT DISTINCT 27 + - col1 FROM tab2 AS cor0
----
-32
-4
10
query I rowsort
SELECT + cor0.col0 + col2 * - 93 AS col0 FROM tab1 AS cor0
----
-5019
-5237
-8848
onlyif mysql # use DIV operator for integer division
query I rowsort label-9512
SELECT DISTINCT - + col1 DIV col0 AS col1 FROM tab1 AS cor0
----
-8
0
skipif mysql # not compatible
query I rowsort label-9512
SELECT DISTINCT - + col1 / col0 AS col1 FROM tab1 AS cor0
----
-8
0
query I rowsort
SELECT ALL cor0.col1 - col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL + col2 - - 36 AS col0 FROM tab2
----
62
63
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9515
SELECT ALL - - col0 + + col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9515
SELECT ALL - - col0 + + col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9516
SELECT + col0 - cor0.col0 DIV col1 AS col2 FROM tab1 AS cor0
----
3
58
74
skipif mysql # not compatible
query I rowsort label-9516
SELECT + col0 - cor0.col0 / col1 AS col2 FROM tab1 AS cor0
----
3
58
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-9517
SELECT ALL - 38 DIV + col0 FROM tab1 cor0
----
-12
0
0
skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL - 38 / + col0 FROM tab1 cor0
----
-12
0
0
query I rowsort
SELECT - 24 * + cor0.col1 FROM tab0 AS cor0
----
-2064
-2184
-2328
query I rowsort
SELECT - + col0 + cor0.col0 * + 45 * + 79 FROM tab0 AS cor0
----
124390
316306
85296
query I rowsort
SELECT - col2 * + col2 * 17 - - col1 FROM tab1
----
-156659
-49546
-55223
onlyif mysql # use DIV operator for integer division
query I rowsort label-9521
SELECT DISTINCT + tab0.col2 * col1 + ( tab0.col1 * col1 ) + + col1 DIV - col1 FROM tab0
----
10233
15742
9505
skipif mysql # not compatible
query I rowsort label-9521
SELECT DISTINCT + tab0.col2 * col1 + ( tab0.col1 * col1 ) + + col1 / - col1 FROM tab0
----
10233
15742
9505
query I rowsort
SELECT DISTINCT + tab0.col1 + + tab0.col1 * ( + col0 ) * col0 + ( tab0.col2 * col2 ) AS col0 FROM tab0
----
118923
50711
727626
query I rowsort
SELECT + col0 + + col1 * - ( col2 ) + ( - 39 ) FROM tab2 AS cor0
----
-1495
-606
-869
query I rowsort
SELECT + col1 * 20 + ( - col2 ) * col0 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-2741
-926
424
query I rowsort
SELECT - col2 + ( - col2 ) * col0 * - col2 + - col0 FROM tab0 AS cor0
----
-1
26079
598265
onlyif mysql # use DIV operator for integer division
query I rowsort label-9526
SELECT - - col1 DIV 39 + - 62 + col1 FROM tab1 AS cor0
----
-36
-49
-52
skipif mysql # not compatible
query I rowsort label-9526
SELECT - - col1 / 39 + - 62 + col1 FROM tab1 AS cor0
----
-36
-49
-52
query I rowsort
SELECT DISTINCT cor1.col2 AS col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
54
57
96
query I rowsort
SELECT DISTINCT + 94 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
94
query I rowsort
SELECT ALL + + 47 AS col1 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
query I rowsort
SELECT ALL 98 + col2 AS col0 FROM tab2
----
124
125
136
query I rowsort
SELECT DISTINCT - col0 * col1 + - ( col1 ) AS col1 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT + col2 * 14 FROM tab0 AS cor0
----
1148
14
462
query I rowsort
SELECT ALL - cor0.col2 * - ( 79 ) * col1 AS col2 FROM tab0 cor0
----
224202
589498
7663
query I rowsort
SELECT - col1 + col2 * 46 AS col1 FROM tab0 AS cor0
----
-51
1432
3681
query I rowsort
SELECT + cor0.col0 + cor0.col0 * - col1 + col0 FROM tab0 AS cor0
----
-2016
-3325
-7921
query I rowsort
SELECT DISTINCT 47 AS col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
47
query I rowsort
SELECT DISTINCT - - ( - 84 ) FROM tab0 AS cor0
----
-84
query I rowsort
SELECT - 84 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f
query I rowsort
SELECT col2 * - col0 * 66 AS col1 FROM tab0
----
-2310
-481668
-52272
query I rowsort
SELECT col1 + col2 * + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT - + ( col2 ) * + cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-9542
SELECT DISTINCT + 6 + col1 DIV - cor0.col1 AS col1 FROM tab2 AS cor0
----
5
skipif mysql # not compatible
query I rowsort label-9542
SELECT DISTINCT + 6 + col1 / - cor0.col1 AS col1 FROM tab2 AS cor0
----
5
query I rowsort
SELECT + 41 - - col0 FROM tab2 AS cor0
----
119
120
48
query I rowsort
SELECT + cor0.col0 * + col2 * - col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT ALL - col2 + cor0.col2 + col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9546
SELECT - CAST( col0 + col0 AS SIGNED ) * col0 col2 FROM tab2
----
-12168
-12482
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9546
SELECT - CAST ( col0 + col0 AS INTEGER ) * col0 col2 FROM tab2
----
-12168
-12482
-98
query I rowsort
SELECT - ( col2 ) + + col2 FROM tab2
----
0
0
0
query I rowsort
SELECT 2 * col2 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-9549
SELECT - col0 + + 51 DIV col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-9549
SELECT - col0 + + 51 / col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + tab2.col0 * + col0 AS col2 FROM tab2
----
49
6084
6241
query I rowsort
SELECT - + 33 * col0 + - 5 AS col1 FROM tab0 AS cor0
----
-1160
-2942
-797
query I rowsort
SELECT + + col2 + - col1 * col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT + col2 * + ( 71 ) AS col1 FROM tab1 AS cor0
----
3834
4047
6816
query I rowsort
SELECT col2 * 60 * col1 FROM tab2 AS cor0
----
38760
50220
92040
query I rowsort
SELECT ALL - tab0.col2 + tab0.col0 AS col1 FROM tab0
----
-9
34
7
query I rowsort
SELECT + col0 * + col0 * - col2 AS col2 FROM tab0
----
-1225
-19008
-649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-9557
SELECT DISTINCT col2 DIV - col1 + + col0 DIV col1 FROM tab2
----
0
1
2
skipif mysql # not compatible
query I rowsort label-9557
SELECT DISTINCT col2 / - col1 + + col0 / col1 FROM tab2
----
0
1
2
query I rowsort
SELECT DISTINCT cor0.col1 + col0 + + col1 FROM tab0 cor0
----
196
229
271
query I rowsort
SELECT DISTINCT col2 * col1 - + col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT cor0.col2 + - col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL + col1 * tab1.col1 + + col1 * - col0 FROM tab1
----
-540
-871
598
query I rowsort
SELECT ALL + tab1.col0 * - col1 * - tab1.col1 FROM tab1
----
13520
2028
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-9563
SELECT + col1 DIV + col0 + - col1 * col0 + - col0 FROM tab1 AS cor0
----
-1120
-704
-73
skipif mysql # not compatible
query I rowsort label-9563
SELECT + col1 / + col0 + - col1 * col0 + - col0 FROM tab1 AS cor0
----
-1120
-704
-73
query I rowsort
SELECT ALL - col2 * col2 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT + + 72 + - col2 FROM tab0 AS cor0
----
-10
39
71
query I rowsort
SELECT DISTINCT - 23 + + col1 * col0 AS col1 FROM tab2 AS cor0
----
1320
194
4579
query I rowsort
SELECT ALL 86 + + col1 FROM tab0 AS cor0
----
172
177
183
query I rowsort
SELECT - - col2 + col2 * - col2 * - col1 AS col2 FROM tab0 AS cor0
----
611966
93687
98
query I rowsort
SELECT + col1 + - col0 * cor0.col0 AS col1 FROM tab1 cor0
----
-4086
-6387
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-9570
SELECT + 21 DIV col0 - + col2 FROM tab2 AS cor0
----
-24
-26
-38
skipif mysql # not compatible
query I rowsort label-9570
SELECT + 21 / col0 - + col2 FROM tab2 AS cor0
----
-24
-26
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9571
SELECT - CAST( NULL AS SIGNED ) * col1 col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9571
SELECT - CAST ( NULL AS INTEGER ) * col1 col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + tab2.col1 FROM tab2, tab0 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # use DIV operator for integer division
query I rowsort label-9573
SELECT - ( col1 ) DIV - col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-9573
SELECT - ( col1 ) / - col0 FROM tab0
----
1
2
3
query I rowsort
SELECT ALL col1 * - 28 FROM tab2
----
-1652
-476
-868
query I rowsort
SELECT ALL + 28 + cor0.col0 AS col0 FROM tab1 AS cor0
----
108
31
92
query I rowsort
SELECT DISTINCT - - 63 + col1 * - col0 FROM tab2 cor0
----
-1280
-154
-4539
query I rowsort
SELECT DISTINCT - 55 AS col1 FROM tab0
----
-55
query I rowsort
SELECT + col2 * col2 * col2 AS col1 FROM tab0 AS cor0
----
1
35937
551368
onlyif mysql # use DIV operator for integer division
query I rowsort label-9579
SELECT - col2 DIV - col1 + + col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9579
SELECT - col2 / - col1 + + col0 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL ( + col1 ) + tab1.col0 FROM tab1
----
29
74
93
query I rowsort
SELECT 37 * - col2 - col1 FROM tab0
----
-1307
-134
-3125
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + col0 * col2 + cor0.col0 col2 FROM tab2 AS cor0
----
169
2080
3043
onlyif mysql # use DIV operator for integer division
query I rowsort label-9583
SELECT + 83 DIV + 8 + - col2 + - col1 * + col2 AS col2 FROM tab1
----
-1334
-1448
-617
skipif mysql # not compatible
query I rowsort label-9583
SELECT + 83 / + 8 + - col2 + - col1 * + col2 AS col2 FROM tab1
----
-1334
-1448
-617
onlyif mysql # use DIV operator for integer division
query I rowsort label-9584
SELECT ( col1 ) + + col0 DIV col1 AS col0 FROM tab2
----
21
31
60
skipif mysql # not compatible
query I rowsort label-9584
SELECT ( col1 ) + + col0 / col1 AS col0 FROM tab2
----
21
31
60
query I rowsort
SELECT DISTINCT - 95 + col1 FROM tab0 AS cor0
----
-4
-9
2
query I rowsort
SELECT - + col1 * + col1 + col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT ALL 50 * col2 + + 99 FROM tab1 AS cor0
----
2799
2949
4899
query I rowsort
SELECT ALL + 99 * - col0 AS col0 FROM tab2 AS cor0
----
-693
-7722
-7821
query I rowsort
SELECT + + 49 + col2 FROM tab1 cor0
----
103
106
145
query I rowsort
SELECT DISTINCT - col2 + col0 * col2 AS col0 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT - + 94 - col2 FROM tab2 cor0
----
-120
-121
-132
onlyif mysql # use DIV operator for integer division
query I rowsort label-9592
SELECT col1 DIV col0 + col2 FROM tab2 cor0
----
26
31
38
skipif mysql # not compatible
query I rowsort label-9592
SELECT col1 / col0 + col2 FROM tab2 cor0
----
26
31
38
query I rowsort
SELECT ALL + ( - cor0.col1 ) * col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + 1 * + col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT col0 * col1 + + col1 * - 31 FROM tab2 AS cor0
----
-744
2773
816
query I rowsort
SELECT 17 + col2 * 92 AS col1 FROM tab1 cor0
----
4985
5261
8849
query I rowsort
SELECT DISTINCT - col1 + col0 * 91 AS col1 FROM tab2 AS cor0
----
606
7039
7172
query I rowsort
SELECT DISTINCT - - 14 * col0 - 58 * cor0.col2 AS col0 FROM tab2 cor0
----
-1098
-1468
-416
query I rowsort
SELECT + 60 + col0 * - 1 FROM tab0 AS cor0
----
-29
25
36
query I rowsort
SELECT - col0 * col2 + 13 AS col0 FROM tab0 AS cor0
----
-22
-7285
-779
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9601
SELECT - col2 * ( col0 ) * + col1 + CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-119626
-50996
-5832
skipif mysql # not compatible
query I rowsort label-9601
SELECT - col2 * ( col0 ) * + col1 + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-119626
-50996
-5832
query I rowsort
SELECT ALL - col0 + 55 AS col2 FROM tab1 AS cor0
----
-25
-9
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9603
SELECT col1 + CAST( col2 * col0 AS SIGNED ) + + 10 * col2 FROM tab0
----
1208
142
8209
skipif mysql # not compatible
query I rowsort label-9603
SELECT col1 + CAST ( col2 * col0 AS INTEGER ) + + 10 * col2 FROM tab0
----
1208
142
8209
query I rowsort
SELECT ALL 91 * + 41 FROM tab2, tab2 AS cor0
----
9 values hashing to f844d64cac1899373f3f01b6715a9b7d
onlyif mysql # use DIV operator for integer division
query I rowsort label-9605
SELECT tab0.col2 * 46 DIV col2 FROM tab0
----
46
46
46
skipif mysql # not compatible
query I rowsort label-9605
SELECT tab0.col2 * 46 / col2 FROM tab0
----
46
46
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-9606
SELECT DISTINCT + col2 * - ( cor0.col2 ) + col1 DIV col0 AS col0 FROM tab2 AS cor0
----
-1444
-676
-725
skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT + col2 * - ( cor0.col2 ) + col1 / col0 AS col0 FROM tab2 AS cor0
----
-1444
-676
-725
query I rowsort
SELECT ALL - cor0.col2 * + 19 + col2 FROM tab2 AS cor0
----
-468
-486
-684
query I rowsort
SELECT ALL + col0 - - ( - ( + col1 ) ) FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT + col0 + 62 * col0 * - col1 + 66 * - col1 AS col1 FROM tab2 AS cor0
----
-15493
-289140
-84309
query I rowsort
SELECT DISTINCT col2 + - 7 FROM tab2 AS cor0
----
19
20
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-9611
SELECT + col0 + - cor0.col0 - col2 DIV + cor0.col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-9611
SELECT + col0 + - cor0.col0 - col2 / + cor0.col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT DISTINCT - col0 * 78 FROM tab1 AS cor0
----
-234
-4992
-6240
query I rowsort
SELECT ALL - col2 + col0 * - 31 AS col2 FROM tab1 AS cor0
----
-147
-2041
-2576
query I rowsort
SELECT ALL - - col2 + col1 AS col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT - col1 * - col0 + col1 + + cor0.col1 FROM tab1 AS cor0
----
1066
130
660
query I rowsort
SELECT DISTINCT - + ( + cor0.col0 ) * col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT cor0.col0 * + col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-9618
SELECT DISTINCT - ( 1 ) DIV cor0.col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9618
SELECT DISTINCT - ( 1 ) / cor0.col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - - ( - 52 ) FROM tab1 AS cor0
----
-52
-52
-52
query I rowsort
SELECT col0 + + 57 FROM tab2 AS cor0
----
135
136
64
query I rowsort
SELECT ALL - + ( cor0.col0 ) * col1 + col2 - - col0 FROM tab1 AS cor0
----
-21
-519
-864
query I rowsort
SELECT + + col0 * 86 - col1 FROM tab1 cor0
----
232
5494
6867
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9623
SELECT DISTINCT - CAST( + col2 AS SIGNED ) - col1 FROM tab0 AS cor0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) - col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT + col0 * col1 + - tab0.col0 AS col0 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT - + 85 * + cor0.col0 FROM tab1 cor0
----
-255
-5440
-6800
query I rowsort
SELECT DISTINCT ( + 73 ) FROM tab0 AS cor0
----
73
query I rowsort
SELECT DISTINCT 88 * 40 AS col0 FROM tab0 AS cor0
----
3520
query I rowsort
SELECT - ( - col0 ) - + col1 FROM tab0 cor0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-9629
SELECT + ( col0 ) DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9629
SELECT + ( col0 ) / - col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT col1 + col2 - col1 * + ( + col2 ) * col1 AS col0 FROM tab1 AS cor0
----
-16115
-36424
-5633
query I rowsort
SELECT 30 - + 74 FROM tab1 AS cor0
----
-44
-44
-44
query I rowsort
SELECT + col1 * - ( + 14 ) + col2 FROM tab2
----
-200
-407
-800
query I rowsort
SELECT col1 * - 20 + col1 * - col1 FROM tab0 cor0
----
-10101
-11349
-9116
skipif mysql # not compatible
query I rowsort
SELECT - - col1 * 68 + + col0 - - CAST ( - ( + col0 ) AS REAL ) AS col2 FROM tab0 AS cor0
----
5848
6188
6596
query I rowsort
SELECT cor0.col0 * col0 + + 81 FROM tab0 AS cor0
----
1306
657
8002
query I rowsort
SELECT col0 + col2 * - ( - ( col1 ) ) FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT - cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 22 ) col2 FROM tab1
----
22
22
22
query I rowsort
SELECT DISTINCT - col1 * - col2 * + col1 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT 88 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177
query I rowsort
SELECT - cor0.col2 + 2 * col0 FROM tab0 AS cor0
----
15
69
96
query I rowsort
SELECT ALL + + cor0.col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - - cor0.col0 + + ( + cor0.col0 ) * col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT col1 + col1 * cor0.col1 * - col2 AS col1 FROM tab2 AS cor0
----
-10965
-25916
-90447
onlyif mysql # use DIV operator for integer division
query I rowsort label-9645
SELECT col2 DIV cor0.col2 + col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-9645
SELECT col2 / cor0.col2 + col0 FROM tab1 AS cor0
----
4
65
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9646
SELECT + cor0.col0 * - CAST( NULL AS SIGNED ) * cor0.col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9646
SELECT + cor0.col0 * - CAST ( NULL AS INTEGER ) * cor0.col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9647
SELECT DISTINCT col0 DIV - ( col0 ) + - col0 * - 47 AS col1 FROM tab0 AS cor0
----
1127
1644
4182
skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT col0 / - ( col0 ) + - col0 * - 47 AS col1 FROM tab0 AS cor0
----
1127
1644
4182
query I rowsort
SELECT 62 * col0 FROM tab1
----
186
3968
4960
query I rowsort
SELECT ALL - col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + cor0.col2 + 19 FROM tab1 AS cor0
----
115
73
76
query I rowsort
SELECT ALL + + col2 * - 42 FROM tab2 AS cor0
----
-1092
-1134
-1596
onlyif mysql # use DIV operator for integer division
query I rowsort label-9652
SELECT ALL col1 DIV + 95 + - col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL col1 / + 95 + - col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + cor0.col1 * cor1.col2 FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 6eca0fdf700a988d88ac850bac7633ab
onlyif mysql # use DIV operator for integer division
query I rowsort label-9654
SELECT DISTINCT col1 DIV tab1.col0 + col2 DIV + col2 FROM tab1
----
1
9
skipif mysql # not compatible
query I rowsort label-9654
SELECT DISTINCT col1 / tab1.col0 + col2 / + col2 FROM tab1
----
1
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9655
SELECT + col1 + col0 * + CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9655
SELECT + col1 + col0 * + CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 + col1 * ( col2 * col2 ) FROM tab0 AS cor0
----
194
611975
93740
query I rowsort
SELECT ( 62 ) * + col2 * + col0 FROM tab0
----
2170
452476
49104
query I rowsort
SELECT DISTINCT + cor0.col1 - tab1.col0 AS col0 FROM tab1, tab1 AS cor0
----
-38
-51
-54
-67
-70
10
23
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9659
SELECT + tab1.col1 + col0 + col1 * + col1 DIV + tab1.col1 FROM tab1
----
106
55
84
skipif mysql # not compatible
query I rowsort label-9659
SELECT + tab1.col1 + col0 + col1 * + col1 / + tab1.col1 FROM tab1
----
106
55
84
query I rowsort
SELECT 96 * col2 AS col1 FROM tab1
----
5184
5472
9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9661
SELECT - 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-9661
SELECT - CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - - 14 * col0 + col2 * 71 AS col2 FROM tab2 AS cor0
----
2015
2938
3804
query I rowsort
SELECT 2 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-108
-114
-192
onlyif mysql # use DIV operator for integer division
query I rowsort label-9664
SELECT ALL + col0 DIV + col0 + col0 AS col0 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL + col0 / + col0 + col0 AS col0 FROM tab1
----
4
65
81
query I rowsort
SELECT - 93 + col1 AS col2 FROM tab2 AS cor0
----
-34
-62
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 87 + col1 + - col1 col0 FROM tab2
----
-87
query I rowsort
SELECT ALL - ( col2 ) * ( 73 ) - col0 AS col1 FROM tab1
----
-3945
-4225
-7088
query I rowsort
SELECT + + col0 + - cor0.col1 * col0 + - col2 FROM tab2 AS cor0
----
-1302
-237
-4550
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9669
SELECT - CAST( 33 AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03
skipif mysql # not compatible
query I rowsort label-9669
SELECT - CAST ( 33 AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 95 col2 FROM tab1 AS cor0
----
105
108
121
query I rowsort
SELECT + col2 + + ( col2 ) * col2 AS col1 FROM tab0 cor0
----
1122
2
6806
query I rowsort
SELECT ALL col1 + + col1 + col1 AS col0 FROM tab0 AS cor0
----
258
273
291
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 col2 FROM tab1, tab1 cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query I rowsort
SELECT + + col1 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 + - 72 col2 FROM tab2 AS cor0
----
-1516
-748
-801
query I rowsort
SELECT DISTINCT col2 * - ( + col1 ) + + col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9677
SELECT CAST( NULL AS SIGNED ) + + col0 * tab1.col2 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9677
SELECT CAST ( NULL AS INTEGER ) + + col0 * tab1.col2 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 41 * col0 FROM tab0
----
1435
3649
984
query I rowsort
SELECT - - ( - col1 ) + - col0 AS col2 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT + col1 * col2 + - col1 * - col2 FROM tab1
----
1140
2496
2808
query I rowsort
SELECT + ( + 93 ) AS col0 FROM tab2 AS cor0
----
93
93
93
query I rowsort
SELECT ALL - ( + col1 ) * cor0.col2 * 30 + 21 FROM tab2 AS cor0
----
-19359
-25089
-45999
query I rowsort
SELECT DISTINCT - col1 + - 51 AS col1 FROM tab2 cor0
----
-110
-68
-82
query I rowsort
SELECT + col2 * col2 * + 36 - - cor0.col2 * col2 * - col2 FROM tab2 AS cor0
----
-2888
6561
6760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 35 + - col0 col0 FROM tab0 AS cor0
----
-54
0
11
query I rowsort
SELECT DISTINCT - 19 * col0 - - 34 * 73 FROM tab1 AS cor0
----
1266
2425
962
query I rowsort
SELECT + col0 * - col2 - 16 FROM tab0 AS cor0
----
-51
-7314
-808
query I rowsort
SELECT col2 * - col1 + 38 AS col1 FROM tab1 AS cor0
----
-1210
-1366
-532
query I rowsort
SELECT ALL + - 44 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-3784
-4004
-4268
onlyif mysql # use DIV operator for integer division
query I rowsort label-9690
SELECT ALL - 88 DIV col1 - col2 col0 FROM tab1 AS cor0
----
-102
-57
-65
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL - 88 / col1 - col2 col0 FROM tab1 AS cor0
----
-102
-57
-65
query I rowsort
SELECT ALL col0 * col2 * col0 AS col1 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT ALL + - col0 + cor0.col2 * - ( - col0 + cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-2070
-253
-97
query I rowsort
SELECT - col0 * + col2 - cor0.col1 FROM tab0 cor0
----
-132
-7389
-878
query I rowsort
SELECT - 57 * + col1 FROM tab0 AS cor0
----
-4902
-5187
-5529
query I rowsort
SELECT DISTINCT col0 * col2 + + ( + col2 ) * cor0.col1 AS col1 FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT DISTINCT + 48 * col0 FROM tab1 AS cor0
----
144
3072
3840
query I rowsort
SELECT ALL + ( + 20 ) FROM tab2
----
20
20
20
query I rowsort
SELECT - col1 * + col1 * - 1 + col2 AS col0 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT - + 71 + + col0 AS col2 FROM tab2 AS cor0
----
-64
7
8
query I rowsort
SELECT col2 + + col1 * cor0.col1 FROM tab0 AS cor0
----
7429
8363
9410
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9701
SELECT DISTINCT + - CAST( NULL AS SIGNED ) / col1 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9701
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / col1 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - 34 + 90 * col0 AS col0 FROM tab2 cor0
----
596
6986
7076
query I rowsort
SELECT + + col1 + + col1 * col2 AS col0 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL cor0.col0 * 38 AS col0 FROM tab1 AS cor0
----
114
2432
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-9705
SELECT - col0 * col0 DIV + col2 + col0 * + 0 AS col2 FROM tab0 AS cor0
----
-1225
-17
-96
skipif mysql # not compatible
query I rowsort label-9705
SELECT - col0 * col0 / + col2 + col0 * + 0 AS col2 FROM tab0 AS cor0
----
-1225
-17
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9706
SELECT ( col2 ) + col0 DIV - col2 AS col0 FROM tab1 AS cor0
----
54
56
96
skipif mysql # not compatible
query I rowsort label-9706
SELECT ( col2 ) + col0 / - col2 AS col0 FROM tab1 AS cor0
----
54
56
96
query I rowsort
SELECT ALL + 94 * + cor0.col2 FROM tab0 AS cor0
----
3102
7708
94
query I rowsort
SELECT ALL col2 + 18 AS col0 FROM tab2
----
44
45
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 55 - col1 col2 FROM tab2 AS cor0
----
-63
-7
21
query I rowsort
SELECT ALL ( + col2 ) * + tab0.col2 + + col2 FROM tab0
----
1122
2
6806
query I rowsort
SELECT + - col0 + + col0 * + ( ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT 5 + col2 * cor0.col0 FROM tab1 AS cor0
----
167
3653
7685
onlyif mysql # use DIV operator for integer division
query I rowsort label-9713
SELECT DISTINCT - col0 DIV 73 + col2 FROM tab0
----
1
33
81
skipif mysql # not compatible
query I rowsort label-9713
SELECT DISTINCT - col0 / 73 + col2 FROM tab0
----
1
33
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-9714
SELECT ALL - tab1.col2 + col2 DIV + col1 AS col1 FROM tab1
----
-52
-52
-89
skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL - tab1.col2 + col2 / + col1 AS col1 FROM tab1
----
-52
-52
-89
query I rowsort
SELECT DISTINCT 62 * col1 - col2 FROM tab1 AS cor0
----
1558
563
710
query I rowsort
SELECT + 3 * col1 * + col1 - + col0 AS col1 FROM tab1 AS cor0
----
2025
236
427
query I rowsort
SELECT - ( col1 ) * - col0 + - 95 * + col1 FROM tab0
----
-546
-5820
-6106
query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab1, tab0 cor0, tab1 AS cor1
----
86
91
97
query I rowsort
SELECT ALL - ( - 50 ) * + col0 AS col0 FROM tab1
----
150
3200
4000
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9720
SELECT ALL CAST( NULL AS SIGNED ) * - ( + col2 + 9 ) * - ( + col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL CAST ( NULL AS INTEGER ) * - ( + col2 + 9 ) * - ( + col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9721
SELECT ALL + 67 DIV col1 FROM tab2
----
1
2
3
skipif mysql # not compatible
query I rowsort label-9721
SELECT ALL + 67 / col1 FROM tab2
----
1
2
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9722
SELECT col0 * - CAST( 49 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1176
-1715
-4361
skipif mysql # not compatible
query I rowsort label-9722
SELECT col0 * - CAST ( 49 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1176
-1715
-4361
query I rowsort
SELECT 71 * 6 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 0a345d3911f5844c834f9f2bd7acfc42
query I rowsort
SELECT ALL - + 89 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc
query I rowsort
SELECT 40 * col0 * ( col1 ) + + col0 AS col0 FROM tab0
----
135835
324049
82584
query I rowsort
SELECT ALL + - 48 + - cor0.col2 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 6401e301cf589755b3a65ff72f3da0ee
onlyif mysql # use DIV operator for integer division
query I rowsort label-9727
SELECT + col1 DIV + 52 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9727
SELECT + col1 / + 52 AS col1 FROM tab1 AS cor0
----
0
0
0
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 4c5172baaab682f997bd09d2b5cf0d22
query I rowsort
SELECT ALL + col1 + ( cor0.col0 + col1 ) FROM tab1 AS cor0
----
106
55
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-9730
SELECT DISTINCT + cor0.col1 * col0 + col1 DIV col1 FROM tab0 AS cor0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort label-9730
SELECT DISTINCT + cor0.col1 * col0 + col1 / col1 FROM tab0 AS cor0
----
2065
3396
8100
query I rowsort
SELECT - col0 * 0 FROM tab1 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + col2 col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9733
SELECT - - col0 * + col0 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9733
SELECT - - col0 * + col0 / cor0.col0 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + + cor0.col2 * + 47 + 79 * col0 AS col0 FROM tab1 AS cor0
----
10832
2775
7735
query I rowsort
SELECT ALL - cor0.col1 + - 13 AS col2 FROM tab0 AS cor0
----
-104
-110
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-9736
SELECT DISTINCT + + col0 + col1 + + 7 DIV + col2 FROM tab0 AS cor0
----
110
139
180
skipif mysql # not compatible
query I rowsort label-9736
SELECT DISTINCT + + col0 + col1 + + 7 / + col2 FROM tab0 AS cor0
----
110
139
180
query I rowsort
SELECT ALL - tab0.col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT + ( - 76 ) + col0 FROM tab0 AS cor0
----
-41
-52
13
query I rowsort
SELECT - col2 * + 65 - col2 AS col2 FROM tab0 AS cor0
----
-2178
-5412
-66
query I rowsort
SELECT + ( 12 ) + col0 AS col2 FROM tab2 cor0
----
19
90
91
query I rowsort
SELECT ALL + + col1 * cor0.col0 + 21 - col2 FROM tab1 cor0
----
45
604
965
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9742
SELECT ALL - col0 * + col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9742
SELECT ALL - col0 * + col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 78 * 84 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 968dc5338181d72c6edef3bc3756cac2
query I rowsort
SELECT col2 * + col2 + + ( col2 * col0 ) FROM tab1 AS cor0
----
16896
3078
6897
query I rowsort
SELECT + col0 + + col1 * - ( col1 ) FROM tab0 cor0
----
-7372
-8192
-9374
query I rowsort
SELECT ALL col2 * + col2 * + 87 AS col2 FROM tab1 AS cor0
----
253692
282663
801792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9747
SELECT ( col0 ) * + CAST( + col0 AS SIGNED ) + - col0 * col1 FROM tab2 AS cor0
----
-168
1482
4898
skipif mysql # not compatible
query I rowsort label-9747
SELECT ( col0 ) * + CAST ( + col0 AS INTEGER ) + - col0 * col1 FROM tab2 AS cor0
----
-168
1482
4898
query I rowsort
SELECT + col2 * col0 + ( + col1 ) * - col0 FROM tab2 AS cor0
----
-2574
-28
1659
query I rowsort
SELECT + 62 FROM tab2, tab2 cor0, tab1 cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
query I rowsort
SELECT DISTINCT + 39 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9751
SELECT + CAST( col2 AS SIGNED ) * cor0.col0 + CAST( 66 AS SIGNED ) FROM tab0 AS cor0
----
101
7364
858
skipif mysql # not compatible
query I rowsort label-9751
SELECT + CAST ( col2 AS INTEGER ) * cor0.col0 + CAST ( 66 AS INTEGER ) FROM tab0 AS cor0
----
101
7364
858
onlyif mysql # use DIV operator for integer division
query I rowsort label-9752
SELECT + col2 DIV - col0 + col1 col2 FROM tab0 AS cor0
----
85
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9752
SELECT + col2 / - col0 + col1 col2 FROM tab0 AS cor0
----
85
91
97
query I rowsort
SELECT - 12 + col0 AS col1 FROM tab2 AS cor0
----
-5
66
67
query I rowsort
SELECT + + ( + col0 ) - - col0 * + col1 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT ALL + ( col0 ) + + cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + col0 * + 84 - - col0 * + 91 FROM tab1 AS cor0
----
11200
14000
525
query I rowsort
SELECT ( + col1 ) + + col0 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + col1 * ( + col1 ) + 74 AS col1 FROM tab1 AS cor0
----
174
243
750
query I rowsort
SELECT + col2 * 84 - + col0 FROM tab1 AS cor0
----
4533
4724
7984
query I rowsort
SELECT 44 + col0 FROM tab1 AS cor0
----
108
124
47
query I rowsort
SELECT ALL + 87 * - col1 + - col1 * cor0.col1 + + col1 AS col2 FROM tab0 AS cor0
----
-14792
-16107
-17751
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 col0 FROM tab1
----
36
36
36
query I rowsort
SELECT ALL tab2.col2 * 97 FROM tab2
----
2522
2619
3686
query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NULL <= NULL
----
query I rowsort
SELECT + col2 * + col1 * + col1 AS col2 FROM tab1 AS cor0
----
16224
36504
5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-9766
SELECT DISTINCT col1 + col0 DIV - col1 FROM tab1 cor0
----
26
4
7
skipif mysql # not compatible
query I rowsort label-9766
SELECT DISTINCT col1 + col0 / - col1 FROM tab1 cor0
----
26
4
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9767
SELECT + tab0.col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9767
SELECT + tab0.col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 98 + + 20 AS col2 FROM tab2 AS cor0
----
118
118
118
onlyif mysql # use DIV operator for integer division
query I rowsort label-9769
SELECT ALL 7 DIV col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL 7 / col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT cor0.col2 * col0 + cor0.col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT + col1 * - col0 + col0 * 79 FROM tab1 AS cor0
----
159
4416
5280
query I rowsort
SELECT - 93 + col1 * col0 AS col1 FROM tab1 AS cor0
----
-15
547
947
query I rowsort
SELECT - col2 * col1 - + col2 * col0 AS col1 FROM tab2 AS cor0
----
-1026
-3562
-3648
onlyif mysql # use DIV operator for integer division
query I rowsort label-9774
SELECT DISTINCT tab1.col0 DIV tab1.col0 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-9774
SELECT DISTINCT tab1.col0 / tab1.col0 FROM tab1
----
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9775
SELECT - col0 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9775
SELECT - col0 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9776
SELECT ( ( col2 ) ) DIV 20 FROM tab0 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-9776
SELECT ( ( col2 ) ) / 20 FROM tab0 AS cor0
----
0
1
4
query I rowsort
SELECT ALL + 36 * col0 + + col2 FROM tab2 AS cor0
----
279
2834
2882
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 47 ) col0 FROM tab0 AS cor0
----
-47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9779
SELECT ALL - CAST( + 69 AS SIGNED ) + col2 FROM tab0 AS cor0
----
-36
-68
13
skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL - CAST ( + 69 AS INTEGER ) + col2 FROM tab0 AS cor0
----
-36
-68
13
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - CAST ( + col1 AS REAL ) * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + 89 - + cor0.col1 * + col0 FROM tab1 cor0
----
-551
-951
11
query I rowsort
SELECT ALL + 91 * col1 AS col1 FROM tab0 AS cor0
----
7826
8281
8827
query I rowsort
SELECT ALL + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9784
SELECT ALL CAST( NULL AS SIGNED ) / 57 + col1 col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL CAST ( NULL AS INTEGER ) / 57 + col1 col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 21 * - 23 FROM tab1
----
-483
-483
-483
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 col2 FROM tab2, tab1 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT + 8 * col1 - + col0 AS col1 FROM tab1
----
16
205
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9788
SELECT + col2 * - col0 + + col2 * + CAST( NULL AS SIGNED ) / tab2.col1 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9788
SELECT + col2 * - col0 + + col2 * + CAST ( NULL AS INTEGER ) / tab2.col1 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) AS col0 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9790
SELECT - col2 + 74 DIV col1 AS col1 FROM tab1 AS cor0
----
-50
-52
-91
skipif mysql # not compatible
query I rowsort label-9790
SELECT - col2 + 74 / col1 AS col1 FROM tab1 AS cor0
----
-50
-52
-91
query I rowsort
SELECT DISTINCT - ( col0 ) + col0 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + col2 * col1 - - cor0.col1 AS col2 FROM tab1 cor0
----
1261
1430
580
query I rowsort
SELECT - col2 * - 14 - - col1 AS col2 FROM tab0 AS cor0
----
111
1239
548
onlyif mysql # use DIV operator for integer division
query I rowsort label-9794
SELECT ALL 48 DIV + tab0.col0 + + tab0.col0 FROM tab0
----
26
36
89
skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL 48 / + tab0.col0 + + tab0.col0 FROM tab0
----
26
36
89
query I rowsort
SELECT ALL - 13 + - tab1.col0 FROM tab1
----
-16
-77
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( col2 AS REAL ) * + col1 - col1 col0 FROM tab0 AS cor0
----
-194
-2924
-7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9797
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col1 * - col0 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9797
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col1 * - col0 AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - - 78 FROM tab2, tab1, tab1 cor0
----
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9799
SELECT cor0.col2 * - col1 DIV col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-9799
SELECT cor0.col2 * - col1 / col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + col0 * 15 * - col2 FROM tab1 AS cor0
----
-115200
-2430
-54720
query I rowsort
SELECT DISTINCT + col2 + - col1 * - col2 AS col0 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT + + cor0.col1 * + 7 * - 52 + - col1 + col2 FROM tab0 AS cor0
----
-31357
-33133
-35404
query I rowsort
SELECT ALL col1 * col2 + cor0.col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT + - cor0.col2 + 42 AS col2 FROM tab0 AS cor0
----
-40
41
9
query I rowsort
SELECT ALL 19 * col0 FROM tab2 AS cor0
----
133
1482
1501
query I rowsort
SELECT 91 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query I rowsort
SELECT - - 83 * col0 FROM tab0 cor0
----
1992
2905
7387
query I rowsort
SELECT + col1 * 86 FROM tab0 AS cor0
----
7396
7826
8342
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 - ( - col0 + col2 ) col2 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9810
SELECT + col1 * + col0 + CAST( NULL AS SIGNED ) - col2 col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9810
SELECT + col1 * + col0 + CAST ( NULL AS INTEGER ) - col2 col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + 72 AS col2 FROM tab2 AS cor0
----
103
131
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9812
SELECT DISTINCT col2 * tab0.col0 DIV ( 25 ) + + tab0.col1 * 47 FROM tab0
----
4073
4560
4568
skipif mysql # not compatible
query I rowsort label-9812
SELECT DISTINCT col2 * tab0.col0 / ( 25 ) + + tab0.col1 * 47 FROM tab0
----
4073
4560
4568
query I rowsort
SELECT DISTINCT + cor0.col0 - - cor0.col0 AS col0 FROM tab2, tab1 AS cor0
----
128
160
6
query I rowsort
SELECT + col1 + + 77 FROM tab0 AS cor0
----
163
168
174
query I rowsort
SELECT 91 * col0 AS col2 FROM tab2 AS cor0
----
637
7098
7189
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9816
SELECT DISTINCT + - CAST( + col1 AS SIGNED ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-9816
SELECT DISTINCT + - CAST ( + col1 AS INTEGER ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570
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 + 12 + + col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
121
79
92
query I rowsort
SELECT DISTINCT - + ( 65 ) FROM tab1 AS cor0
----
-65
query I rowsort
SELECT ALL - + ( - col2 ) * col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT - ( col1 ) + col2 * - col2 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT + col1 + 13 AS col1 FROM tab1
----
23
26
39
query I rowsort
SELECT ALL + tab1.col0 + 67 FROM tab1
----
131
147
70
query I rowsort
SELECT ALL + col2 * tab1.col0 + col2 * col2 AS col2 FROM tab1
----
16896
3078
6897
query I rowsort
SELECT ALL col2 * + col0 * col0 + + col1 AS col0 FROM tab0
----
1322
19094
649613
query I rowsort
SELECT ALL - col0 + ( 88 ) FROM tab1
----
24
8
85
query I rowsort
SELECT DISTINCT + ( 99 ) + col1 FROM tab0 cor0
----
185
190
196
query I rowsort
SELECT DISTINCT ( 49 ) AS col1 FROM tab1
----
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9829
SELECT + CAST( ( + col1 ) + + col0 AS SIGNED ) * col2 FROM tab0
----
132
14760
3630
skipif mysql # not compatible
query I rowsort label-9829
SELECT + CAST ( ( + col1 ) + + col0 AS INTEGER ) * col2 FROM tab0
----
132
14760
3630
query I rowsort
SELECT - 39 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e
onlyif mysql # use DIV operator for integer division
query I rowsort label-9831
SELECT DISTINCT + col0 DIV + 5 AS col1 FROM tab2
----
1
15
skipif mysql # not compatible
query I rowsort label-9831
SELECT DISTINCT + col0 / + 5 AS col1 FROM tab2
----
1
15
query I rowsort
SELECT DISTINCT ( + col0 + col1 ) FROM tab2
----
137
38
96
query I rowsort
SELECT + cor1.col2 + + 42 * + 73 * + tab0.col2 FROM tab0, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 152b6f964e2d9fed850f9330967dab48
query I rowsort
SELECT col0 * + col2 * - col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-9835
SELECT cor0.col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9835
SELECT cor0.col1 / - col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - tab2.col2 * 7 FROM tab2
----
-182
-189
-266
query I rowsort
SELECT ALL + 72 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
onlyif mysql # use DIV operator for integer division
query I rowsort label-9838
SELECT ALL - col1 DIV 7 AS col2 FROM tab1 AS cor0
----
-1
-1
-3
skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL - col1 / 7 AS col2 FROM tab1 AS cor0
----
-1
-1
-3
query I rowsort
SELECT ALL + - col1 + col1 + 59 FROM tab1 AS cor0
----
59
59
59
query I rowsort
SELECT - + col2 + col2 * col1 * col2 FROM tab2 AS cor0
----
22572
24510
39858
query I rowsort
SELECT DISTINCT col2 * + col0 + 82 + - col2 FROM tab2 AS cor0
----
2084
244
3046
query I rowsort
SELECT + col0 * - col1 * col1 + col1 AS col1 FROM tab0 cor0
----
-177418
-329218
-736918
query I rowsort
SELECT ALL + - col2 * ( - 53 ) FROM tab2 AS cor0
----
1378
1431
2014
query I rowsort
SELECT ALL col1 + 60 AS col0 FROM tab1 cor0
----
70
73
86
query I rowsort
SELECT ALL - 61 + - col0 AS col0 FROM tab0 AS cor0
----
-150
-85
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - cor0.col0 col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT 28 * cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
344
444
731
query I rowsort
SELECT 93 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 27 col1 FROM tab0 AS cor0
----
113
118
124
query I rowsort
SELECT DISTINCT + + cor0.col0 * - col2 * cor0.col0 FROM tab1 cor0
----
-233472
-486
-614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-9851
SELECT ALL - col1 DIV ( + ( cor0.col1 ) * col1 + col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL - col1 / ( + ( cor0.col1 ) * col1 + col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - + col0 - - 51 AS col2 FROM tab0 AS cor0
----
-38
16
27
query I rowsort
SELECT col0 * col1 + - tab2.col2 FROM tab2
----
1305
190
4576
query I rowsort
SELECT col0 + col2 * ( - col2 ) * + col0 AS col0 FROM tab1
----
-207872
-737200
-8745
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 col0 FROM tab2
----
-7
-7
-7
query I rowsort
SELECT col1 * col0 + col1 + + col0 FROM tab1
----
107
1133
714
query I rowsort
SELECT + col0 + - ( + col2 ) * col1 + - col1 FROM tab2
----
-1515
-584
-861
onlyif mysql # use DIV operator for integer division
query I rowsort label-9858
SELECT + col2 + cor0.col0 + 91 DIV - col1 FROM tab1 AS cor0
----
112
169
54
skipif mysql # not compatible
query I rowsort label-9858
SELECT + col2 + cor0.col0 + 91 / - col1 FROM tab1 AS cor0
----
112
169
54
query I rowsort
SELECT DISTINCT col0 * - col0 * - 90 + + col1 + + col1 FROM tab0
----
110444
52012
713072
onlyif mysql # use DIV operator for integer division
query I rowsort label-9860
SELECT DISTINCT + col1 * + 61 * col0 + cor0.col0 DIV col0 AS col1 FROM tab2 AS cor0
----
13238
280723
81924
skipif mysql # not compatible
query I rowsort label-9860
SELECT DISTINCT + col1 * + 61 * col0 + cor0.col0 / col0 AS col1 FROM tab2 AS cor0
----
13238
280723
81924
query I rowsort
SELECT + + col1 * - cor0.col2 + - col1 * + col2 AS col2 FROM tab1 AS cor0
----
-1140
-2496
-2808
onlyif mysql # use DIV operator for integer division
query I rowsort label-9862
SELECT DISTINCT col0 + 26 DIV - col1 col1 FROM tab1 AS cor0
----
2
62
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9862
SELECT DISTINCT col0 + 26 / - col1 col1 FROM tab1 AS cor0
----
2
62
78
query I rowsort
SELECT col1 - ( + ( col0 ) * col0 ) FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT ALL + - col0 + 29 * + col2 AS col1 FROM tab1 AS cor0
----
1563
1589
2704
query I rowsort
SELECT + col0 + ( 93 ) AS col0 FROM tab0 AS cor0
----
117
128
182
query I rowsort
SELECT - cor0.col1 * 20 AS col1 FROM tab0 cor0
----
-1720
-1820
-1940
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 - - ( cor0.col1 * col2 ) col0 FROM tab0 AS cor0
----
-3298
-637
774
query I rowsort
SELECT - cor0.col1 + - ( ( - col0 ) ) * + cor0.col0 AS col2 FROM tab2 AS cor0
----
18
6025
6224
onlyif mysql # use DIV operator for integer division
query I rowsort label-9869
SELECT DISTINCT col2 DIV 5 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
13
75
99
skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT col2 / 5 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
13
75
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9870
SELECT - CAST( + 26 AS SIGNED ) AS col0 FROM tab1
----
-26
-26
-26
skipif mysql # not compatible
query I rowsort label-9870
SELECT - CAST ( + 26 AS INTEGER ) AS col0 FROM tab1
----
-26
-26
-26
query I rowsort
SELECT col2 * + ( cor0.col1 ) FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 * - 38 * - col0 col2 FROM tab0 AS cor0
----
-21888
-300998
-46550
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 + - col0 col2 FROM tab0
----
-21
-32
-86
query I rowsort
SELECT + ( + ( - cor0.col0 ) ) * cor0.col1 * - col2 FROM tab1 cor0
----
36480
4212
99840
query I rowsort
SELECT - + col2 + - col1 * col2 AS col1 FROM tab2 cor0
----
-1560
-684
-864
query I rowsort
SELECT ALL - 55 + - cor0.col0 * - col0 AS col0 FROM tab2 AS cor0
----
-6
6029
6186
onlyif mysql # use DIV operator for integer division
query I rowsort label-9877
SELECT DISTINCT + col1 * col0 + cor0.col2 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-9877
SELECT DISTINCT + col1 * col0 + cor0.col2 / cor0.col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - col1 * col2 - col0 AS col1 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT ALL + - 91 FROM tab1 AS cor0
----
-91
-91
-91
query I rowsort
SELECT ALL 82 + col1 FROM tab1 AS cor0
----
108
92
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 * col1 col1 FROM tab2 AS cor0
----
177
51
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 + - cor0.col1 col0 FROM tab0 AS cor0
----
-196
-229
-271
query I rowsort
SELECT ALL - + 2 * - col0 + - col2 AS col0 FROM tab2 cor0
----
-13
120
130
query I rowsort
SELECT col0 * col0 + col0 AS col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT + 76 * - col1 AS col2 FROM tab0 AS cor0
----
-6536
-6916
-7372
query I rowsort
SELECT ALL - 23 * col0 FROM tab2 AS cor0
----
-161
-1794
-1817
query I rowsort
SELECT - - col1 + - col0 * col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT + cor0.col0 * + col2 * col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT col2 + + cor0.col2 * col2 FROM tab0 AS cor0
----
1122
2
6806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 * col2 * col2 col1 FROM tab1 cor0
----
119904
32547
75870
query I rowsort
SELECT ALL - + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT + cor1.col1 FROM tab0, tab2 cor0, tab1 AS cor1, tab0 cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9893
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - 92 col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - 92 col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - col1 * + ( col0 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - 73 * col2 AS col0 FROM tab1 AS cor0
----
-3942
-4161
-7008
query I rowsort
SELECT ALL - 2 * cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 7a2e0645e15b3844a0d89b13fc219077
onlyif mysql # use DIV operator for integer division
query I rowsort label-9897
SELECT ALL ( ( col1 DIV col0 ) ) * - col1 * - col0 FROM tab1 AS cor0
----
0
0
624
skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL ( ( col1 / col0 ) ) * - col1 * - col0 FROM tab1 AS cor0
----
0
0
624
onlyif mysql # use DIV operator for integer division
query I rowsort label-9898
SELECT ALL 46 + col2 DIV + tab2.col1 AS col0 FROM tab2
----
46
46
48
skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL 46 + col2 / + tab2.col1 AS col0 FROM tab2
----
46
46
48
query I rowsort
SELECT ALL col2 + - 41 * - col2 FROM tab2
----
1092
1134
1596
query I rowsort
SELECT ALL col2 + + col0 + col0 * col1 * - col1 AS col1 FROM tab2
----
-22714
-271414
-6693
query I rowsort
SELECT col0 * tab0.col0 - tab0.col2 AS col2 FROM tab0
----
1224
543
7839
query I rowsort
SELECT col0 + - 92 AS col2 FROM tab0
----
-3
-57
-68
query I rowsort
SELECT ALL 61 + - col0 FROM tab2
----
-17
-18
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-9904
SELECT ALL col1 DIV 38 FROM tab0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL col1 / 38 FROM tab0
----
2
2
2
query I rowsort
SELECT DISTINCT + cor2.col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
17
31
59
query I rowsort
SELECT DISTINCT col2 * + 59 * + 30 FROM tab0 AS cor0
----
145140
1770
58410
onlyif mysql # use DIV operator for integer division
query I rowsort label-9907
SELECT ALL + - col2 DIV + col0 + + col0 + - col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL + - col2 / + col0 + + col0 + - col0 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT col0 * ( + col2 ) AS col2 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 66 col1 FROM tab0 AS cor0
----
66
query I rowsort
SELECT ALL + 45 FROM tab2, tab1 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT DISTINCT 21 + col1 * + col0 AS col1 FROM tab0 AS cor0
----
2085
3416
8120
query I rowsort
SELECT DISTINCT 27 AS col1 FROM tab0, tab0 AS cor0
----
27
query I rowsort
SELECT + 92 * 49 AS col2 FROM tab1 AS cor0
----
4508
4508
4508
onlyif mysql # use DIV operator for integer division
query I rowsort label-9914
SELECT - col0 DIV - 4 AS col1 FROM tab0 AS cor0
----
22
6
8
skipif mysql # not compatible
query I rowsort label-9914
SELECT - col0 / - 4 AS col1 FROM tab0 AS cor0
----
22
6
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-9915
SELECT 58 * cor0.col1 + 63 DIV cor0.col2 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 3cab6f2d7c3456af7fbc88933fd3b3aa
skipif mysql # not compatible
query I rowsort label-9915
SELECT 58 * cor0.col1 + 63 / cor0.col2 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 3cab6f2d7c3456af7fbc88933fd3b3aa
query I rowsort
SELECT DISTINCT 62 * col2 AS col0 FROM tab0 cor0
----
2046
5084
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-9917
SELECT - col0 DIV col0 + ( col0 ) * - col1 FROM tab1 AS cor0
----
-1041
-641
-79
skipif mysql # not compatible
query I rowsort label-9917
SELECT - col0 / col0 + ( col0 ) * - col1 FROM tab1 AS cor0
----
-1041
-641
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9918
SELECT ( col0 ) - + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9918
SELECT ( col0 ) - + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col0 * col1 - + col0 * - col1 * - col0 AS col2 FROM tab0 cor0
----
-122220
-51600
-728910
query I rowsort
SELECT - col2 * cor0.col1 + - col0 FROM tab0 AS cor0
----
-132
-2862
-7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-9921
SELECT + col2 DIV ( - col1 ) FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-9921
SELECT + col2 / ( - col1 ) FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT ALL + cor0.col0 * 28 + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-790
156
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 66 col1 FROM tab2 AS cor0
----
-28
-39
-40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9924
SELECT - col1 + + col1 * ( - col1 ) / CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9924
SELECT - col1 + + col1 * ( - col1 ) / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 + col1 * ( ( - tab1.col2 ) + - col0 ) col1 FROM tab1
----
-1162
-1434
-2240
onlyif mysql # use DIV operator for integer division
query I rowsort label-9926
SELECT tab0.col1 + + col1 * + tab0.col0 + - col2 * col2 DIV col2 FROM tab0
----
2117
3491
8108
skipif mysql # not compatible
query I rowsort label-9926
SELECT tab0.col1 + + col1 * + tab0.col0 + - col2 * col2 / col2 FROM tab0
----
2117
3491
8108
query I rowsort
SELECT tab2.col1 * col2 * 41 FROM tab2
----
26486
34317
62894
query I rowsort
SELECT - col1 * - 92 FROM tab0
----
7912
8372
8924
query I rowsort
SELECT + - ( + col2 ) * + cor0.col2 * + col0 + col0 AS col2 FROM tab0 AS cor0
----
-26112
-598347
0
query I rowsort
SELECT ALL + col1 * 71 AS col0 FROM tab2 AS cor0
----
1207
2201
4189
query I rowsort
SELECT DISTINCT + - 92 + - col1 + - col1 * col1 FROM tab1 AS cor0
----
-202
-274
-794
query I rowsort
SELECT ALL col0 + col2 + col0 AS col1 FROM tab2 AS cor0
----
182
196
41
query I rowsort
SELECT DISTINCT + col2 * ( - col1 ) * - col0 FROM tab2
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 5 col1 FROM tab0
----
-120
-175
-445
query I rowsort
SELECT DISTINCT col1 * - 67 AS col1 FROM tab1
----
-1742
-670
-871
query I rowsort
SELECT - col2 * ( col2 * + col0 ) AS col2 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT - ( col2 ) + - col2 FROM tab1
----
-108
-114
-192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9938
SELECT 11 * col0 + + CAST( col0 AS SIGNED ) AS col0 FROM tab2 cor0
----
84
936
948
skipif mysql # not compatible
query I rowsort label-9938
SELECT 11 * col0 + + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
84
936
948
query I rowsort
SELECT + 41 - col2 FROM tab1 AS cor0
----
-13
-16
-55
onlyif mysql # use DIV operator for integer division
query I rowsort label-9940
SELECT + + col0 + - col1 DIV + ( - cor0.col0 ) AS col0 FROM tab1 AS cor0
----
11
64
80
skipif mysql # not compatible
query I rowsort label-9940
SELECT + + col0 + - col1 / + ( - cor0.col0 ) AS col0 FROM tab1 AS cor0
----
11
64
80
query I rowsort
SELECT + col2 + col2 * - col1 FROM tab2 cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT + 70 * - tab0.col1 AS col0 FROM tab0
----
-6020
-6370
-6790
query I rowsort
SELECT DISTINCT + 68 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
68
query I rowsort
SELECT - 35 - col2 AS col1 FROM tab0 AS cor0
----
-117
-36
-68
query I rowsort
SELECT + + col1 * - col1 + - ( col0 ) AS col0 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT ALL - tab1.col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + - col1 col0 FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 1 * cor0.col0 * + col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - 82 + + col2 FROM tab1 AS cor0
----
-25
-28
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-9951
SELECT ALL + 84 DIV col1 AS col1 FROM tab2 AS cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL + 84 / col1 AS col1 FROM tab2 AS cor0
----
1
2
4
query I rowsort
SELECT ALL 57 + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1191
-1347
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-9953
SELECT - - col2 + col1 DIV col0 AS col0 FROM tab1 AS cor0
----
57
62
96
skipif mysql # not compatible
query I rowsort label-9953
SELECT - - col2 + col1 / col0 AS col0 FROM tab1 AS cor0
----
57
62
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 col0 FROM tab0 AS cor0
----
65
65
65
query I rowsort
SELECT DISTINCT - 81 * col0 FROM tab1 cor0
----
-243
-5184
-6480
query I rowsort
SELECT + 61 * col1 AS col1 FROM tab2 AS cor0
----
1037
1891
3599
query I rowsort
SELECT + + 32 * col1 AS col2 FROM tab0 cor0
----
2752
2912
3104
query I rowsort
SELECT DISTINCT + ( col0 ) * col1 AS col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT + 80 + tab1.col0 * ( - 91 ) FROM tab1
----
-193
-5744
-7200
query I rowsort
SELECT - + col0 + + col2 * 71 FROM tab2 AS cor0
----
1768
1910
2619
query I rowsort
SELECT 6 * col2 AS col0 FROM tab1 AS cor0
----
324
342
576
query I rowsort
SELECT + ( + col0 ) * col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT + col2 * ( + col0 ) * + col2 AS col1 FROM tab1 AS cor0
----
207936
737280
8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-9964
SELECT ALL col0 DIV - ( - col1 ) AS col1 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL col0 / - ( - col1 ) AS col1 FROM tab1
----
0
6
6
query I rowsort
SELECT ALL col0 * 33 AS col0 FROM tab2
----
231
2574
2607
query I rowsort
SELECT ALL tab0.col0 AS col0 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL + 20 * - col0 AS col2 FROM tab0
----
-1780
-480
-700
query I rowsort
SELECT - - cor0.col0 + cor0.col1 * + cor0.col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT 57 AS col1 FROM tab1, tab1 AS cor0
----
57
query I rowsort
SELECT ALL col2 * 94 + + col2 FROM tab2
----
2470
2565
3610
query I rowsort
SELECT col0 * - 6 AS col1 FROM tab1
----
-18
-384
-480
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9972
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col0 * col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-9972
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col0 * col0 FROM tab1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9973
SELECT DISTINCT - cor0.col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-9973
SELECT DISTINCT - cor0.col1 / + col1 AS col2 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT ALL + 11 AS col2 FROM tab2 AS cor0
----
11
11
11
query I rowsort
SELECT + - col0 + - 86 * - col0 AS col1 FROM tab0 AS cor0
----
2040
2975
7565
query I rowsort
SELECT DISTINCT - - 73 * - col2 + + col2 FROM tab2 AS cor0
----
-1872
-1944
-2736
query I rowsort
SELECT ALL + - col1 * col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-9978
SELECT ALL + col2 DIV - col0 + + col1 AS col0 FROM tab0 AS cor0
----
85
91
97
skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL + col2 / - col0 + + col1 AS col0 FROM tab0 AS cor0
----
85
91
97
query I rowsort
SELECT - + col1 * col1 + - col2 AS col2 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT DISTINCT + + col1 * col2 + - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-3078
-6432
1242
query I rowsort
SELECT DISTINCT + ( ( + col2 ) ) * 35 - + cor0.col0 FROM tab2 AS cor0
----
1251
832
938
query I rowsort
SELECT - col1 * + 78 + - col2 * 37 FROM tab0 AS cor0
----
-10132
-7603
-7929
query I rowsort
SELECT DISTINCT - - 86 - col1 FROM tab0 cor0
----
-11
-5
0
query I rowsort
SELECT + - 6 * 6 FROM tab2 AS cor0
----
-36
-36
-36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9985
SELECT + CAST( NULL AS DECIMAL ) + 4 AS col1 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-9985
SELECT + CAST ( NULL AS REAL ) + 4 AS col1 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL + - 50 + - col0 FROM tab2 AS cor0
----
-128
-129
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-9987
SELECT - + ( + cor0.col1 ) + CAST( - 11 AS SIGNED ) DIV + col0 AS col2 FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-9987
SELECT - + ( + cor0.col1 ) + CAST ( - 11 AS INTEGER ) / + col0 AS col2 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - col0 * col1 + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT + - 22 * col0 AS col0 FROM tab2 AS cor0
----
-154
-1716
-1738
query I rowsort
SELECT DISTINCT + 83 + - col0 AS col1 FROM tab1
----
19
3
80
query I rowsort
SELECT ALL - col2 + + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT DISTINCT + 88 + + col0 + - 22 AS col0 FROM tab0 AS cor0
----
101
155
90
query I rowsort
SELECT DISTINCT - ( col0 ) + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-165
-3712
-7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9994
SELECT DISTINCT - col2 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT - col2 * - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - - col0 * cor0.col1 - - col1 AS col0 FROM tab1 AS cor0
----
104
1053
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + col0 col0 FROM tab2 cor0
----
0
0
0