hash-threshold 8
statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
INSERT INTO tab0 VALUES(89,91,82)
statement ok
INSERT INTO tab0 VALUES(35,97,1)
statement ok
INSERT INTO tab0 VALUES(24,86,33)
statement ok
INSERT INTO tab1 VALUES(64,10,57)
statement ok
INSERT INTO tab1 VALUES(3,26,54)
statement ok
INSERT INTO tab1 VALUES(80,13,96)
statement ok
INSERT INTO tab2 VALUES(7,31,27)
statement ok
INSERT INTO tab2 VALUES(79,17,38)
statement ok
INSERT INTO tab2 VALUES(78,59,26)
query I rowsort
SELECT + ( col0 ) * - col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL 71 * - col1 + + col2 FROM tab0 cor0
----
-6073
-6379
-6886
query I rowsort
SELECT + col0 * - 30 FROM tab0 AS cor0
----
-1050
-2670
-720
query I rowsort
SELECT ALL - - ( cor0.col0 ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + cor0.col1 + + 14 AS col2 FROM tab2 AS cor0
----
31
45
73
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 cor1, tab0, tab1 AS cor2
----
3645 values hashing to b3ea820890445d59f3f7464a1521d42d
query I rowsort
SELECT 99 * + col2 * + cor0.col1 FROM tab0 AS cor0
----
280962
738738
9603
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 col1 FROM tab2
----
289
3481
961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8
SELECT DISTINCT CAST( - col2 AS SIGNED ) * tab2.col1 AS col2 FROM tab2
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-8
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * tab2.col1 AS col2 FROM tab2
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-9
SELECT ALL - col2 DIV col0 AS col1 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9
SELECT ALL - col2 / col0 AS col1 FROM tab0
----
-1
0
0
query I rowsort
SELECT DISTINCT + 64 FROM tab2, tab1 AS cor0
----
64
query I rowsort
SELECT ALL + 74 + 16 * col2 AS col1 FROM tab0
----
1386
602
90
query I rowsort
SELECT - 46 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d
query I rowsort
SELECT - cor0.col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
onlyif mysql # use DIV operator for integer division
query I rowsort label-14
SELECT ALL + cor0.col0 DIV ( col0 * + col0 + - 50 ) AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-14
SELECT ALL + cor0.col0 / ( col0 * + col0 + - 50 ) AS col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-15
SELECT ALL - CAST( - col2 AS SIGNED ) * col0 FROM tab1
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-15
SELECT ALL - CAST ( - col2 AS INTEGER ) * col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT + 88 AS col2 FROM tab0
----
88
88
88
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 ALL + - col2 * cor0.col0 col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-19
SELECT ALL + col2 + tab0.col0 DIV tab0.col1 col1 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-19
SELECT ALL + col2 + tab0.col0 / tab0.col1 col1 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT + col1 * - tab2.col1 AS col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT 34 AS col2 FROM tab0
----
34
34
34
query I rowsort
SELECT DISTINCT col2 * - col1 + col0 FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT - col1 * col0 + - col1 * col2 FROM tab0
----
-15561
-3492
-4902
query I rowsort
SELECT DISTINCT - - col2 + 92 * - col1 * + col0 FROM tab0 cor0
----
-189855
-312339
-745026
query I rowsort
SELECT ALL + col1 * col1 + + 74 AS col2 FROM tab0 AS cor0
----
7470
8355
9483
query I rowsort
SELECT DISTINCT + col1 * + 82 AS col1 FROM tab1 AS cor0
----
1066
2132
820
query I rowsort
SELECT + - cor0.col0 * 35 + col2 FROM tab0 AS cor0
----
-1224
-3033
-807
onlyif mysql # use DIV operator for integer division
query I rowsort label-28
SELECT ALL col2 + + 67 * + 68 * col0 + + col0 DIV - col1 FROM tab2 AS cor0
----
31919
355393
359958
skipif mysql # not compatible
query I rowsort label-28
SELECT ALL col2 + + 67 * + 68 * col0 + + col0 / - col1 FROM tab2 AS cor0
----
31919
355393
359958
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * CAST ( + 86 AS REAL ) + + col2 - + col1 FROM tab2 AS cor0
----
1483
2662
5041
query I rowsort
SELECT + col2 * - ( cor0.col2 ) + - col2 AS col0 FROM tab2 AS cor0
----
-1482
-702
-756
query I rowsort
SELECT DISTINCT col2 * + col2 + 33 FROM tab0 cor0
----
1122
34
6757
query I rowsort
SELECT DISTINCT - col0 * - col2 - - col2 FROM tab0 cor0
----
36
7380
825
query I rowsort
SELECT ALL - col1 * - col1 + cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
1178
1632
8083
query I rowsort
SELECT DISTINCT + + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT cor0.col2 * + col0 + col2 AS col2 FROM tab2 cor0
----
2054
216
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-36
SELECT ALL cor0.col0 + col0 DIV + col0 + - col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-36
SELECT ALL cor0.col0 + col0 / + col0 + - col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + + cor0.col1 + col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL tab0.col0 * col1 AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL - 60 * - col1 FROM tab0
----
5160
5460
5820
query I rowsort
SELECT + cor1.col2 AS col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT - - 44 * col0 FROM tab2 AS cor0
----
308
3432
3476
query I rowsort
SELECT + col1 + ( + 80 ) AS col2 FROM tab0 AS cor0
----
166
171
177
query I rowsort
SELECT - + col0 + - 1 AS col1 FROM tab1 AS cor0
----
-4
-65
-81
query I rowsort
SELECT DISTINCT tab2.col0 AS col2 FROM tab2, tab1 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col2 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-46
SELECT - CAST( NULL AS DECIMAL ) + 60 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-46
SELECT - CAST ( NULL AS REAL ) + 60 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT 19 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
19
query I rowsort
SELECT ALL cor0.col0 + + col0 * col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT + tab2.col2 AS col0 FROM tab2 WHERE NOT ( NULL ) IN ( tab2.col1 )
----
query I rowsort
SELECT ALL col0 + + col0 * - col1 - - col0 AS col0 FROM tab2
----
-1185
-203
-4446
query I rowsort
SELECT DISTINCT tab2.col1 + + tab2.col1 * col0 - col0 * col0 AS col1 FROM tab2
----
-1423
-4881
199
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 / - col0 col1 FROM tab0 WHERE NULL > ( col1 + - col1 * col0 )
----
query I rowsort
SELECT col1 * - col1 AS col0 FROM tab2
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col0 - tab0.col1 col2 FROM tab0
----
-110
-132
-180
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) >= NULL
----
query I rowsort
SELECT col2 + col1 + col0 * col2 AS col2 FROM tab2
----
2113
247
3057
query I rowsort
SELECT DISTINCT + tab2.col2 * + col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL tab0.col1 * col2 + col0 * - col0 FROM tab0
----
-1128
-459
2262
query I rowsort
SELECT DISTINCT col0 + + col1 FROM tab1 WHERE NOT NULL > NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-60
SELECT + cor0.col2 + + col0 DIV - col1 FROM tab1 AS cor0
----
51
54
90
skipif mysql # not compatible
query I rowsort label-60
SELECT + cor0.col2 + + col0 / - col1 FROM tab1 AS cor0
----
51
54
90
query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT NULL >= NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < col1
----
query III rowsort
SELECT * FROM tab0 WHERE ( col0 * + col0 ) IN ( - col0 )
----
query I rowsort
SELECT - col2 * col2 + + tab2.col1 * col0 FROM tab2
----
-101
-512
3926
query I rowsort
SELECT col1 * col2 + + col1 AS col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT + col0 + - cor0.col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT cor0.col1 * - col2 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-68
SELECT DISTINCT - 94 * + col1 * + ( + col2 ) - col2 DIV 14 col1 FROM tab0 AS cor0
----
-266774
-701433
-9118
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT - 94 * + col1 * + ( + col2 ) - col2 / 14 col1 FROM tab0 AS cor0
----
-266774
-701433
-9118
query I rowsort
SELECT ALL - col2 * col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT + tab2.col1 + + tab2.col2 AS col2 FROM tab2, tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + - col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL 87 * - cor0.col2 + col2 FROM tab0 AS cor0
----
-2838
-7052
-86
query I rowsort
SELECT DISTINCT + - col1 - - col2 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT ALL + ( col2 ) + + 46 + col2 FROM tab1 AS cor0
----
154
160
238
query I rowsort
SELECT DISTINCT 37 + col0 FROM tab0 AS cor0
----
126
61
72
query I rowsort
SELECT ( - col2 ) AS col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + ( - 2 + col1 ) AS col1 FROM tab2
----
15
29
57
query I rowsort
SELECT ( + 26 ) FROM tab0
----
26
26
26
query I rowsort
SELECT + col2 * 2 FROM tab1
----
108
114
192
query I rowsort
SELECT - 80 + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 39641fe80f2dc35b38d76cc24ba43972
query I rowsort
SELECT + 10 + cor0.col0 FROM tab2 AS cor0
----
17
88
89
query I rowsort
SELECT 13 * col1 + + ( col2 ) FROM tab0 AS cor0
----
1151
1262
1265
query I rowsort
SELECT ALL col0 + - col1 + col0 FROM tab0
----
-27
-38
87
query I rowsort
SELECT ALL - 10 * col1 + 80 * - tab1.col1 * col2 + col2 * col1 AS col0 FROM tab1
----
-111176
-45130
-98722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 18 col0 FROM tab2 AS cor0
----
-1062
-306
-558
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-86
SELECT ALL CAST( NULL AS SIGNED ) col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-86
SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT col2 - + ( + ( + col1 ) ) * - ( + col0 * + col2 + + col2 ) AS col0 FROM tab0
----
3493
671662
70983
query I rowsort
SELECT col0 * 52 + + col1 AS col1 FROM tab1 AS cor0
----
182
3338
4173
query I rowsort
SELECT + + col1 + + ( col1 ) AS col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ( cor0.col1 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT 68 * + col0 + col1 AS col1 FROM tab0 AS cor0
----
1718
2477
6143
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 72 AS REAL ) + tab1.col2 FROM tab1
----
126
129
168
query I rowsort
SELECT DISTINCT - 96 + - col1 FROM tab2
----
-113
-127
-155
onlyif mysql # use DIV operator for integer division
query I rowsort label-94
SELECT ALL + col0 * + col2 + - col1 DIV 83 FROM tab2
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-94
SELECT ALL + col0 * + col2 + - col1 / 83 FROM tab2
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-95
SELECT + + CAST( NULL AS SIGNED ) * - col1 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-95
SELECT + + CAST ( NULL AS INTEGER ) * - col1 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 14 * col1 + col0 FROM tab2 AS cor0
----
-159
-427
-748
query I rowsort
SELECT ALL col2 + col1 * + col0 - + col0 * col1 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - col1 + - 29 AS col0 FROM tab2 AS cor0
----
-46
-60
-88
query I rowsort
SELECT ALL + 37 - - 54 AS col2 FROM tab1 AS cor0
----
91
91
91
query I rowsort
SELECT - cor0.col1 + - 32 * + col2 * 53 FROM tab0 AS cor0
----
-139163
-1793
-56054
query I rowsort
SELECT ALL 11 AS col2 FROM tab2
----
11
11
11
query I rowsort
SELECT ALL 44 * + col2 * col2 FROM tab1
----
128304
142956
405504
query I rowsort
SELECT - - 14 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT + - col1 + col2 * + col0 * cor0.col0 FROM tab2 AS cor0
----
1292
158125
237141
query I rowsort
SELECT DISTINCT col0 + 57 AS col0 FROM tab2 AS cor0
----
135
136
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-106
SELECT ALL col1 + - CAST( + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-106
SELECT ALL col1 + - CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 14 * + tab0.col1 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 2a10843efd067926a26b7df69897ced2
query I rowsort
SELECT ALL col0 + col0 * + 97 * - col0 AS col1 FROM tab2
----
-4746
-590070
-605298
query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 + - col0 * col1 FROM tab2 AS cor0
----
-1178
-1632
-8083
query I rowsort
SELECT col0 * - 42 * - col0 FROM tab2 AS cor0
----
2058
255528
262122
query I rowsort
SELECT ALL + col0 * + cor0.col0 * - col1 + col2 - col2 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-112
SELECT DISTINCT + col0 DIV - 70 col2 FROM tab0 AS cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-112
SELECT DISTINCT + col0 / - 70 col2 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT ALL + - col0 * col2 + + col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT 88 AS col2 FROM tab2, tab0 AS cor0
----
88
query I rowsort
SELECT DISTINCT col2 + - cor0.col1 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT 89 FROM tab1, tab0 AS cor0
----
89
query I rowsort
SELECT ALL + col1 + ( + tab0.col1 * 28 ) FROM tab0
----
2494
2639
2813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-119
SELECT DISTINCT 81 + - tab0.col1 + col0 * CAST( col0 AS SIGNED ) AS col2 FROM tab0
----
1209
571
7911
skipif mysql # not compatible
query I rowsort label-119
SELECT DISTINCT 81 + - tab0.col1 + col0 * CAST ( col0 AS INTEGER ) AS col2 FROM tab0
----
1209
571
7911
query I rowsort
SELECT DISTINCT tab2.col2 * + col2 + col2 + 28 FROM tab2
----
1510
730
784
query I rowsort
SELECT + col0 * - col1 + col0 AS col2 FROM tab1
----
-576
-75
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-122
SELECT ALL CAST( + col1 AS SIGNED ) DIV - col1 + col2 FROM tab2
----
25
26
37
skipif mysql # not compatible
query I rowsort label-122
SELECT ALL CAST ( + col1 AS INTEGER ) / - col1 + col2 FROM tab2
----
25
26
37
query I rowsort
SELECT ALL col1 * ( col2 ) + cor0.col2 FROM tab1 AS cor0
----
1344
1458
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT + col0 + + 65 AS col2 FROM tab0 cor0
----
100
154
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-126
SELECT - - CAST( NULL AS SIGNED ) * col1 + col2 + - ( - col0 + col1 * cor0.col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-126
SELECT - - CAST ( NULL AS INTEGER ) * col1 + col2 + - ( - col0 + col1 * cor0.col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col2 + - col0 AS col2 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT - col0 + 58 FROM tab1 AS cor0
----
-22
-6
55
query I rowsort
SELECT - - 75 + - col1 * + 95 * ( col2 ) AS col2 FROM tab2 AS cor0
----
-145655
-61295
-79440
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-130
SELECT ALL + 98 + + col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-130
SELECT ALL + 98 + + 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 ALL + cor0.col0 + col0 col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT - 1 - col0 AS col0 FROM tab2 AS cor0
----
-79
-8
-80
query I rowsort
SELECT DISTINCT + 1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + + 62 * col1 * ( + 79 ) AS col1 FROM tab1 AS cor0
----
127348
48980
63674
query I rowsort
SELECT + 7 * + col2 AS col2 FROM tab2 AS cor0
----
182
189
266
query I rowsort
SELECT - cor0.col0 * - col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - ( 94 ) AS col0 FROM tab0
----
-94
-94
-94
query I rowsort
SELECT ALL tab1.col1 + 22 FROM tab1
----
32
35
48
query I rowsort
SELECT DISTINCT + col2 * + col2 * col2 FROM tab1 cor0
----
157464
185193
884736
onlyif mysql # use DIV operator for integer division
query I rowsort label-140
SELECT ALL - + col0 DIV + col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-140
SELECT ALL - + col0 / + col2 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT - col2 * col0 + + col1 * col2 FROM tab1 AS cor0
----
-3078
-6432
1242
query I rowsort
SELECT + 73 AS col2 FROM tab2
----
73
73
73
query I rowsort
SELECT DISTINCT + - col0 * + col0 + + col0 * + 68 FROM tab1 AS cor0
----
-960
195
256
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-144
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + 55 * col0 * - 78 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-144
SELECT DISTINCT + CAST ( NULL AS REAL ) + 55 * col0 * - 78 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT - + 19 + col0 * + col2 AS col2 FROM tab0 AS cor0
----
16
7279
773
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 - + 26 col1 FROM tab2 AS cor0
----
-26
-26
-26
query I rowsort
SELECT cor0.col1 * col2 + + col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT + cor0.col1 + ( - col2 ) AS col0 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT col2 * - 77 AS col0 FROM tab1 AS cor0
----
-4158
-4389
-7392
query I rowsort
SELECT col2 + 80 * + col2 AS col0 FROM tab1 AS cor0
----
4374
4617
7776
query I rowsort
SELECT DISTINCT - 15 * - col1 FROM tab2
----
255
465
885
query I rowsort
SELECT DISTINCT - col1 * col2 * tab0.col0 AS col0 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT - + ( 43 ) - col2 FROM tab0 AS cor0
----
-125
-44
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-155
SELECT DISTINCT - ( - col0 ) + cor0.col1 DIV + col0 AS col2 FROM tab2 AS cor0
----
11
78
79
skipif mysql # not compatible
query I rowsort label-155
SELECT DISTINCT - ( - col0 ) + cor0.col1 / + col0 AS col2 FROM tab2 AS cor0
----
11
78
79
query I rowsort
SELECT DISTINCT ( col0 ) * + col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT 49 * + col0 AS col2 FROM tab0 AS cor0
----
1176
1715
4361
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-158
SELECT ALL + + col2 * col2 * + col1 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-158
SELECT ALL + + col2 * col2 * + col1 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * 26 + col1 FROM tab0 AS cor0
----
2322
2457
2619
query I rowsort
SELECT ALL + - ( col2 ) * col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT - ( - col1 ) + col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - 43 + + cor0.col2 + col2 AS col2 FROM tab0 cor0
----
-41
121
23
query I rowsort
SELECT ALL + - 83 + - 76 FROM tab0 AS cor0
----
-159
-159
-159
query I rowsort
SELECT + 33 AS col0 FROM tab2 AS cor0
----
33
33
33
query I rowsort
SELECT DISTINCT - 28 * col2 + + col2 - 23 AS col2 FROM tab0 AS cor0
----
-2237
-50
-914
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-166
SELECT ALL + CAST( - 12 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
-120
-156
-312
skipif mysql # not compatible
query I rowsort label-166
SELECT ALL + CAST ( - 12 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
-120
-156
-312
query I rowsort
SELECT ALL + ( col2 ) * col0 + - 26 * + col1 FROM tab2 AS cor0
----
-617
2560
494
onlyif mysql # use DIV operator for integer division
query I rowsort label-168
SELECT col1 * cor0.col1 DIV col1 + ( + cor0.col2 ) * col2 FROM tab1 AS cor0
----
2942
3259
9229
skipif mysql # not compatible
query I rowsort label-168
SELECT col1 * cor0.col1 / col1 + ( + cor0.col2 ) * col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT ALL + ( + col0 ) * col1 + + ( col2 ) * - col2 FROM tab0 AS cor0
----
1375
3394
975
onlyif mysql # use DIV operator for integer division
query I rowsort label-170
SELECT DISTINCT - col1 * 79 - col1 DIV - col2 AS col0 FROM tab0 cor0
----
-6792
-7188
-7566
skipif mysql # not compatible
query I rowsort label-170
SELECT DISTINCT - col1 * 79 - col1 / - col2 AS col0 FROM tab0 cor0
----
-6792
-7188
-7566
query I rowsort
SELECT DISTINCT - col2 - 87 * - col0 AS col0 FROM tab1
----
207
5511
6864
query I rowsort
SELECT ALL col1 * ( + 71 ) - col2 * col1 AS col2 FROM tab2
----
1364
2655
561
onlyif mysql # use DIV operator for integer division
query I rowsort label-173
SELECT DISTINCT - col0 * ( + col1 ) DIV + tab2.col1 - + col2 AS col2 FROM tab2
----
-104
-117
-34
skipif mysql # not compatible
query I rowsort label-173
SELECT DISTINCT - col0 * ( + col1 ) / + tab2.col1 - + col2 AS col2 FROM tab2
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-174
SELECT + col1 + col0 DIV - col2 AS col0 FROM tab1
----
13
26
9
skipif mysql # not compatible
query I rowsort label-174
SELECT + col1 + col0 / - col2 AS col0 FROM tab1
----
13
26
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-175
SELECT col0 + col1 + tab0.col1 DIV col1 FROM tab0
----
111
133
181
skipif mysql # not compatible
query I rowsort label-175
SELECT col0 + col1 + tab0.col1 / col1 FROM tab0
----
111
133
181
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-176
SELECT DISTINCT col1 - - CAST( col2 + col1 * - ( + col2 ) AS SIGNED ) AS col0 FROM tab2
----
-1449
-591
-779
skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT col1 - - CAST ( col2 + col1 * - ( + col2 ) AS INTEGER ) AS col0 FROM tab2
----
-1449
-591
-779
query I rowsort
SELECT DISTINCT + col1 - - col2 AS col1 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL 34 FROM tab0, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT + col0 - + col0 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-180
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-180
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-181
SELECT ALL + + ( - col2 ) DIV - cor0.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-181
SELECT ALL + + ( - col2 ) / - cor0.col0 col1 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT + 40 + col1 FROM tab0 AS cor0
----
126
131
137
query I rowsort
SELECT ALL + cor0.col2 * + col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL + col2 * - 93 + cor0.col2 * 97 FROM tab0 AS cor0
----
132
328
4
query I rowsort
SELECT DISTINCT + + 56 * + col0 FROM tab1 AS cor0
----
168
3584
4480
query I rowsort
SELECT col0 * - 0 FROM tab1
----
0
0
0
query I rowsort
SELECT col2 + - cor0.col0 + - col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + col1 + - cor0.col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ( + col1 ) + + col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT 25 * col0 FROM tab2 AS cor0
----
175
1950
1975
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col0 FROM tab0
----
94
94
94
query I rowsort
SELECT DISTINCT + 71 * col2 FROM tab2
----
1846
1917
2698
query I rowsort
SELECT + 19 AS col0 FROM tab0 AS cor0
----
19
19
19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 col2 FROM tab2 AS cor0
----
-83
-83
-83
query I rowsort
SELECT ALL col2 * + ( col0 + col1 ) FROM tab2
----
1026
3562
3648
query I rowsort
SELECT DISTINCT + - col1 + col0 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT ALL - 74 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1924
-740
-962
onlyif mysql # use DIV operator for integer division
query I rowsort label-198
SELECT DISTINCT + cor0.col1 * col2 DIV + 53 FROM tab1 AS cor0
----
10
23
26
skipif mysql # not compatible
query I rowsort label-198
SELECT DISTINCT + cor0.col1 * col2 / + 53 FROM tab1 AS cor0
----
10
23
26
query I rowsort
SELECT + col2 + cor0.col0 + 60 AS col2 FROM tab2 AS cor0
----
164
177
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-200
SELECT + - col1 DIV + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-200
SELECT + - col1 / + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * + col0 - ( + 86 ) col0 FROM tab0 AS cor0
----
-1311
-662
-8007
onlyif mysql # use DIV operator for integer division
query I rowsort label-202
SELECT ( col0 ) DIV - col2 + + col2 FROM tab1 AS cor0
----
54
56
96
skipif mysql # not compatible
query I rowsort label-202
SELECT ( col0 ) / - col2 + + col2 FROM tab1 AS cor0
----
54
56
96
query I rowsort
SELECT + - 27 * col2 FROM tab1 AS cor0
----
-1458
-1539
-2592
query I rowsort
SELECT + col2 + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT - + col2 + - ( ( col1 ) ) * + 36 + + col1 FROM tab2 AS cor0
----
-1112
-2091
-633
query I rowsort
SELECT cor0.col0 + ( - col0 ) + cor0.col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT col0 + col2 * tab2.col2 FROM tab2
----
1523
736
754
query I rowsort
SELECT + - cor0.col0 * col1 - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT col1 * - ( cor0.col0 ) * - cor0.col0 - + col0 * - col2 FROM tab1 cor0
----
396
44608
90880
query I rowsort
SELECT col1 * col0 * col1 AS col0 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT DISTINCT 99 AS col2 FROM tab2
----
99
query I rowsort
SELECT - cor0.col0 * - col2 + - col2 + + col0 FROM tab1 AS cor0
----
111
3655
7664
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT + col1 - - cor0.col2 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-215
SELECT + col2 + - CAST( - col2 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-215
SELECT + col2 + - CAST ( - col2 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + + cor0.col2 * 51 + col0 FROM tab1 AS cor0
----
2757
2971
4976
onlyif mysql # use DIV operator for integer division
query I rowsort label-217
SELECT DISTINCT + 8 DIV col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-217
SELECT DISTINCT + 8 / col2 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-218
SELECT - CAST( 76 AS SIGNED ) col1 FROM tab1 cor0
----
-76
-76
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-218
SELECT - CAST ( 76 AS INTEGER ) col1 FROM tab1 cor0
----
-76
-76
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-219
SELECT DISTINCT col0 DIV - col0 + ( + col0 ) * col0 * - col0 + col1 * - tab0.col1 FROM tab0
----
-21221
-52285
-713251
skipif mysql # not compatible
query I rowsort label-219
SELECT DISTINCT col0 / - col0 + ( + col0 ) * col0 * - col0 + col1 * - tab0.col1 FROM tab0
----
-21221
-52285
-713251
query I rowsort
SELECT DISTINCT - + 47 + col0 * 36 * 77 AS col1 FROM tab2 AS cor0
----
19357
216169
218941
onlyif mysql # use DIV operator for integer division
query I rowsort label-221
SELECT + col2 DIV col2 AS col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-221
SELECT + col2 / col2 AS col1 FROM tab0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-222
SELECT ALL ( - cor0.col1 ) DIV + 4 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 51b79960e2d01c7062a771f71642b149
skipif mysql # not compatible
query I rowsort label-222
SELECT ALL ( - cor0.col1 ) / + 4 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 51b79960e2d01c7062a771f71642b149
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) * - 45 * + tab0.col0 col2 FROM tab0
----
-152775
-364455
-92880
query I rowsort
SELECT DISTINCT cor1.col0 AS col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-225
SELECT - 64 * col1 + + cor0.col2 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-225
SELECT - 64 * col1 + + cor0.col2 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-226
SELECT ALL + CAST( + col1 AS SIGNED ) * col1 + ( + 81 ) FROM tab2 AS cor0
----
1042
3562
370
skipif mysql # not compatible
query I rowsort label-226
SELECT ALL + CAST ( + col1 AS INTEGER ) * col1 + ( + 81 ) FROM tab2 AS cor0
----
1042
3562
370
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) * + cor0.col2 + + col0 col1 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT - + col1 + col1 * + col0 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT DISTINCT + 84 + - 55 FROM tab1 AS cor0
----
29
query I rowsort
SELECT ( - ( col0 ) ) * + 72 AS col1 FROM tab2 AS cor0
----
-504
-5616
-5688
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-231
SELECT - CAST( NULL AS SIGNED ) * ( + col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-231
SELECT - CAST ( NULL AS INTEGER ) * ( + col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-232
SELECT ALL + ( + cor0.col0 ) + - col1 * + ( col1 ) DIV + col1 FROM tab1 AS cor0
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-232
SELECT ALL + ( + cor0.col0 ) + - col1 * + ( col1 ) / + col1 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 59 col0 FROM tab1 AS cor0
----
-59
query I rowsort
SELECT 63 * - 57 AS col1 FROM tab1 AS cor0
----
-3591
-3591
-3591
query I rowsort
SELECT DISTINCT - ( + col2 ) + - col0 * col1 * + col1 AS col2 FROM tab0 AS cor0
----
-177537
-329316
-737091
query I rowsort
SELECT ALL - col0 + col0 AS col0 FROM tab2 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-237
SELECT ALL ( col0 ) DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-237
SELECT ALL ( col0 ) / col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 77 + 12 * col0 AS col0 FROM tab1 AS cor0
----
1037
113
845
query I rowsort
SELECT ALL col2 + ( col1 ) FROM tab2
----
55
58
85
query I rowsort
SELECT - 34 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb
query I rowsort
SELECT ALL 57 + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-112
-43
-619
query I rowsort
SELECT + 87 * ( col0 ) * 9 FROM tab2 AS cor0
----
5481
61074
61857
query I rowsort
SELECT DISTINCT - + col2 * - col2 AS col1 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT + cor0.col0 + col0 * + cor0.col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
237
41024
83280
onlyif mysql # use DIV operator for integer division
query I rowsort label-245
SELECT ALL - cor0.col0 * - cor0.col0 DIV - col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-245
SELECT ALL - cor0.col0 * - cor0.col0 / - col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT col2 * - ( col0 ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + tab0.col1 * + col2 + - tab0.col0 FROM tab0
----
2814
62
7373
query I rowsort
SELECT 44 FROM tab0, tab1 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT + 64 + col0 AS col1 FROM tab1
----
128
144
67
query I rowsort
SELECT DISTINCT - + col1 * + 54 * col1 AS col2 FROM tab1 AS cor0
----
-36504
-5400
-9126
query I rowsort
SELECT ALL + col2 * - 25 FROM tab2 AS cor0
----
-650
-675
-950
query I rowsort
SELECT DISTINCT - + cor0.col2 - 96 FROM tab2 AS cor0
----
-122
-123
-134
query I rowsort
SELECT DISTINCT - 60 + - col2 FROM tab2
----
-86
-87
-98
query I rowsort
SELECT - col1 - + col1 * col2 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT DISTINCT - col0 + 49 * + ( - col1 ) AS col0 FROM tab0
----
-4238
-4548
-4788
query I rowsort
SELECT 73 - 95 FROM tab0, tab1 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9
query I rowsort
SELECT 79 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT DISTINCT col2 * 31 FROM tab0
----
1023
2542
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT ALL - col2 + tab1.col2 * tab1.col1 FROM tab1
----
1152
1350
513
query I rowsort
SELECT ALL col2 * col1 + - col0 * tab2.col1 FROM tab2
----
-3068
-697
620
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-262
SELECT ALL + col2 / CAST( NULL AS DECIMAL ) + 31 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-262
SELECT ALL + col2 / CAST ( NULL AS REAL ) + 31 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * col2 + + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-264
SELECT ALL - - col2 + 28 DIV col1 FROM tab1 AS cor0
----
55
59
98
skipif mysql # not compatible
query I rowsort label-264
SELECT ALL - - col2 + 28 / col1 FROM tab1 AS cor0
----
55
59
98
query I rowsort
SELECT DISTINCT - col0 * + col2 + 38 AS col2 FROM tab1 AS cor0
----
-124
-3610
-7642
query I rowsort
SELECT + col2 * col1 + + 34 AS col2 FROM tab2 AS cor0
----
1568
680
871
onlyif mysql # use DIV operator for integer division
query I rowsort label-267
SELECT + - col2 * + 31 + 56 DIV col1 AS col1 FROM tab1 AS cor0
----
-1672
-1762
-2972
skipif mysql # not compatible
query I rowsort label-267
SELECT + - col2 * + 31 + 56 / col1 AS col1 FROM tab1 AS cor0
----
-1672
-1762
-2972
query I rowsort
SELECT DISTINCT col0 * + 95 * col0 + col1 FROM tab2
----
4686
578039
592912
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2, tab1 cor1
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f
query I rowsort
SELECT + col0 - col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL + col2 * + cor0.col2 + col2 FROM tab0 cor0
----
1122
2
6806
onlyif mysql # use DIV operator for integer division
query I rowsort label-272
SELECT ALL - col2 DIV 68 AS col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-272
SELECT ALL - col2 / 68 AS col2 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT - - col1 * + cor0.col0 + - col2 FROM tab0 cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT cor1.col0 - + cor1.col0 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
0
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 + + ( + col1 ) * CAST ( col2 AS REAL ) FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT - 15 AS col2 FROM tab2, tab1, tab1 AS cor0
----
-15
query I rowsort
SELECT + 26 AS col2 FROM tab0 AS cor0
----
26
26
26
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08
query I rowsort
SELECT + - cor0.col1 * ( + cor0.col2 ) * col1 + - col0 AS col2 FROM tab0 AS cor0
----
-244092
-679131
-9444
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + cor0.col2 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT - col0 * + col1 + - col1 + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-266
-4298
-8733
query I rowsort
SELECT - 24 + col2 AS col2 FROM tab1
----
30
33
72
query I rowsort
SELECT ALL + col1 + col2 + ( - 40 ) AS col2 FROM tab0
----
133
58
79
query I rowsort
SELECT DISTINCT 25 * - col0 + - 24 + col1 FROM tab2
----
-168
-1915
-1982
query I rowsort
SELECT ALL ( col2 * col1 ) FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * cor0.col2 col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + cor0.col0 + + col2 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT 43 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
query I rowsort
SELECT - cor0.col0 * + ( + 0 ) FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-290
SELECT + col2 DIV + 99 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-290
SELECT + col2 / + 99 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col1 * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-292
SELECT - cor0.col0 + + cor0.col1 DIV + col0 col2 FROM tab2 AS cor0
----
-3
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-292
SELECT - cor0.col0 + + cor0.col1 / + col0 col2 FROM tab2 AS cor0
----
-3
-78
-79
query I rowsort
SELECT DISTINCT col2 * - 41 + - col2 AS col2 FROM tab1 cor0
----
-2268
-2394
-4032
query I rowsort
SELECT col1 * ( col1 ) AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL col2 + col0 * - col2 FROM tab2 AS cor0
----
-162
-2002
-2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-296
SELECT col1 + col0 * 40 DIV - col1 FROM tab0 AS cor0
----
52
75
83
skipif mysql # not compatible
query I rowsort label-296
SELECT col1 + col0 * 40 / - col1 FROM tab0 AS cor0
----
52
75
83
query I rowsort
SELECT + col1 + + col2 + + 81 FROM tab0
----
179
200
254
query I rowsort
SELECT col0 + + 81 FROM tab0 AS cor0
----
105
116
170
query I rowsort
SELECT col2 * + tab0.col1 + col2 + col1 FROM tab0
----
195
2957
7635
query I rowsort
SELECT DISTINCT - 67 * col0 + 31 * col0 * + col0 + - col1 * col1 AS col1 FROM tab1
----
-598
122588
192871
query I rowsort
SELECT - + cor0.col0 * col1 + cor0.col0 * col0 AS col0 FROM tab2 AS cor0
----
-168
1482
4898
query I rowsort
SELECT 16 * - col1 + ( col1 * + col1 ) FROM tab1 AS cor0
----
-39
-60
260
query I rowsort
SELECT ALL + col1 + + col1 - + col1 AS col0 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-304
SELECT CAST( tab0.col2 AS SIGNED ) FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
skipif mysql # not compatible
query I rowsort label-304
SELECT CAST ( tab0.col2 AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT cor0.col0 + col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT - 66 * + col0 AS col2 FROM tab1
----
-198
-4224
-5280
query I rowsort
SELECT - tab1.col0 + - 7 FROM tab1, tab2 cor0
----
9 values hashing to cf83c868a89f3905ac3ab6b8adc403e9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 * + col0 col2 FROM tab2
----
49
546
553
onlyif mysql # use DIV operator for integer division
query I rowsort label-309
SELECT DISTINCT + col1 + - col1 DIV + 32 AS col0 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-309
SELECT DISTINCT + col1 + - col1 / + 32 AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT + 2 FROM tab1, tab1 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT ALL tab1.col0 * - cor0.col2 + - tab1.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to df04ec718bc82e945e7ad2a37b32123d
query I rowsort
SELECT ( 56 ) AS col0 FROM tab1 AS cor0
----
56
56
56
query I rowsort
SELECT - col1 * tab0.col1 + - ( col1 ) FROM tab0
----
-7482
-8372
-9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 + 75 col2 FROM tab1 AS cor0
----
1323
1479
645
query I rowsort
SELECT DISTINCT - col0 + + col2 AS col1 FROM tab1 cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col1 col2 FROM tab0 AS cor0
----
-172
-182
-194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 25 + col1 col1 FROM tab1 AS cor0
----
-1590
-1987
-49
query I rowsort
SELECT tab0.col1 - col0 AS col0 FROM tab0
----
2
62
62
query I rowsort
SELECT DISTINCT + col2 * 78 * - col0 FROM tab1
----
-12636
-284544
-599040
onlyif mysql # use DIV operator for integer division
query I rowsort label-320
SELECT - col2 + + col0 DIV col0 FROM tab2
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-320
SELECT - col2 + + col0 / col0 FROM tab2
----
-25
-26
-37
query I rowsort
SELECT cor0.col2 AS col0 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT 90 * - col2 * - tab2.col1 AS col2 FROM tab2
----
138060
58140
75330
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 61 col0 FROM tab1
----
-3294
-3477
-5856
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 col0 FROM tab2
----
31
query I rowsort
SELECT 85 * - 8 AS col1 FROM tab2 AS cor0
----
-680
-680
-680
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to d24b34b0673c90715a7101e7e630fa94
onlyif mysql # use DIV operator for integer division
query I rowsort label-327
SELECT DISTINCT col0 DIV - col0 AS col0 FROM tab1 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-327
SELECT DISTINCT col0 / - col0 AS col0 FROM tab1 cor0
----
-1
query I rowsort
SELECT - - 87 + col0 AS col0 FROM tab0 cor0
----
111
122
176
query I rowsort
SELECT DISTINCT - + col2 * - col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT ALL - 40 + col2 AS col1 FROM tab0 AS cor0
----
-39
-7
42
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-331
SELECT - + cor0.col0 * - cor0.col2 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-331
SELECT - + cor0.col0 * - cor0.col2 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col1 * col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + - ( cor0.col1 ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + 17 + col1 AS col0 FROM tab0 AS cor0
----
103
108
114
query I rowsort
SELECT DISTINCT - - 21 AS col2 FROM tab2 AS cor0
----
21
query I rowsort
SELECT DISTINCT ( + col2 ) + ( - cor0.col1 ) + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-20
-95
73
query I rowsort
SELECT + + col0 - col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL 92 * col2 AS col0 FROM tab1 AS cor0
----
4968
5244
8832
query I rowsort
SELECT - col0 - - cor0.col2 * cor0.col1 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 * - 81 + 6 FROM tab1 AS cor0
----
-183
-5121
-6378
query I rowsort
SELECT col1 + ( + 61 ) FROM tab0 AS cor0
----
147
152
158
query I rowsort
SELECT col0 + + col0 AS col2 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT - + col1 + cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT DISTINCT cor0.col2 + col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL + + col1 + - ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT + 25 * col1 FROM tab2
----
1475
425
775
query I rowsort
SELECT + col0 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-348
SELECT col0 + - 77 DIV col0 AS col0 FROM tab1 cor0
----
-22
63
80
skipif mysql # not compatible
query I rowsort label-348
SELECT col0 + - 77 / col0 AS col0 FROM tab1 cor0
----
-22
63
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-349
SELECT + col1 DIV + 43 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-349
SELECT + col1 / + 43 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 89 AS col0 FROM tab1 AS cor0
----
-89
query I rowsort
SELECT ALL 34 - - tab1.col0 AS col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 52c08cd59d50e4e475953ab826c18095
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae
query I rowsort
SELECT 54 + col2 + col1 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
1190
186
751
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - cor0.col2 + col0 col0 FROM tab1 AS cor0
----
2919
3313
9296
onlyif mysql # use DIV operator for integer division
query I rowsort label-355
SELECT ALL - ( cor0.col2 ) * col0 + - col2 DIV col0 + col2 FROM tab0 AS cor0
----
-34
-7216
-760
skipif mysql # not compatible
query I rowsort label-355
SELECT ALL - ( cor0.col2 ) * col0 + - col2 / col0 + col2 FROM tab0 AS cor0
----
-34
-7216
-760
query I rowsort
SELECT DISTINCT + ( col1 ) * - cor0.col2 + - col0 + col2 FROM tab2 AS cor0
----
-1586
-687
-817
query I rowsort
SELECT ALL - + cor0.col2 + + col2 * col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT + col0 * + col2 + + col0 + col2 FROM tab0 AS cor0
----
71
7469
849
query I rowsort
SELECT + col2 + + cor0.col0 * + col2 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-360
SELECT ALL + - ( + cor0.col0 ) DIV - cor0.col1 AS col2 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-360
SELECT ALL + - ( + cor0.col0 ) / - cor0.col1 AS col2 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT 23 + col0 * col0 AS col0 FROM tab0 AS cor0
----
1248
599
7944
query I rowsort
SELECT DISTINCT + + 77 * col2 FROM tab1 AS cor0
----
4158
4389
7392
query I rowsort
SELECT - + cor0.col2 + + col0 + - col2 AS col2 FROM tab0 cor0
----
-42
-75
33
query I rowsort
SELECT ALL + 77 + col1 AS col1 FROM tab0 AS cor0
----
163
168
174
query I rowsort
SELECT DISTINCT + - ( col1 ) * + col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-366
SELECT 29 DIV + col0 - + col1 AS col2 FROM tab2 AS cor0
----
-17
-27
-59
skipif mysql # not compatible
query I rowsort label-366
SELECT 29 / + col0 - + col1 AS col2 FROM tab2 AS cor0
----
-17
-27
-59
query I rowsort
SELECT ALL - col2 + + col1 * - col2 * col1 FROM tab1 AS cor0
----
-16320
-36558
-5757
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 40 * col0 col2 FROM tab2 AS cor0
----
280
3120
3160
onlyif mysql # use DIV operator for integer division
query I rowsort label-369
SELECT DISTINCT + + 1 DIV col1 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT + + 1 / col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - 0 * col1 * col1 FROM tab2 cor0
----
0
query I rowsort
SELECT + + 74 AS col1 FROM tab1 AS cor0
----
74
74
74
query I rowsort
SELECT ALL - col1 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-373
SELECT + col1 + cor0.col1 DIV + col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-373
SELECT + col1 + cor0.col1 / + col2 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-374
SELECT + - col1 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-374
SELECT + - col1 / col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT DISTINCT + col1 * col1 * col0 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT ALL + col2 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT col2 * cor0.col1 * - col1 + col0 + col0 AS col0 FROM tab2 AS cor0
----
-10824
-25933
-90350
query I rowsort
SELECT DISTINCT + ( col0 ) + col1 AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT tab2.col2 * col2 + + col0 FROM tab2
----
1523
736
754
query I rowsort
SELECT - ( col2 ) - + col0 AS col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT - + col0 + col1 + col2 AS col1 FROM tab1 AS cor0
----
29
3
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-382
SELECT ALL - ( col2 ) DIV col2 + cor0.col0 AS col2 FROM tab1 cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-382
SELECT ALL - ( col2 ) / col2 + cor0.col0 AS col2 FROM tab1 cor0
----
2
63
79
query I rowsort
SELECT DISTINCT cor0.col1 + + 80 * - col2 AS col0 FROM tab0 AS cor0
----
-2554
-6469
17
query I rowsort
SELECT - ( col0 ) * - col1 * col1 + col2 AS col0 FROM tab1 cor0
----
13616
2082
6457
onlyif mysql # use DIV operator for integer division
query I rowsort label-385
SELECT - ( - col2 ) * + col2 - - col2 DIV - col2 FROM tab1 cor0
----
2915
3248
9215
skipif mysql # not compatible
query I rowsort label-385
SELECT - ( - col2 ) * + col2 - - col2 / - col2 FROM tab1 cor0
----
2915
3248
9215
query I rowsort
SELECT DISTINCT - ( + col0 ) + - col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL - - col1 * cor0.col2 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 97 + 40 * + col1 col0 FROM tab0 cor0
----
3343
3543
3783
query I rowsort
SELECT col0 + + 97 FROM tab2
----
104
175
176
onlyif mysql # use DIV operator for integer division
query I rowsort label-390
SELECT DISTINCT + col0 DIV - tab2.col0 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-390
SELECT DISTINCT + col0 / - tab2.col0 FROM tab2
----
-1
query I rowsort
SELECT col1 * - ( tab2.col0 ) AS col1 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-392
SELECT ALL + 59 DIV - cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to ccd77e2770d5a834e59c1674defa88fa
skipif mysql # not compatible
query I rowsort label-392
SELECT ALL + 59 / - cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to ccd77e2770d5a834e59c1674defa88fa
query I rowsort
SELECT DISTINCT col1 * + col2 + col0 FROM tab1
----
1328
1407
634
query I rowsort
SELECT ALL + 92 * ( col2 ) + - col2 AS col1 FROM tab1
----
4914
5187
8736
query I rowsort
SELECT tab1.col2 * + tab1.col0 * col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT DISTINCT + col2 * tab0.col1 - col2 * - col0 AS col0 FROM tab0
----
132
14760
3630
query I rowsort
SELECT - 99 + - col1 FROM tab1
----
-109
-112
-125
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 col1 FROM tab2
----
-93
-93
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-399
SELECT ALL - + ( 90 ) DIV - col1 AS col0 FROM tab2 AS cor0
----
1
2
5
skipif mysql # not compatible
query I rowsort label-399
SELECT ALL - + ( 90 ) / - col1 AS col0 FROM tab2 AS cor0
----
1
2
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 col0 FROM tab2
----
55
58
85
query I rowsort
SELECT + col2 + + col0 + tab0.col1 FROM tab0
----
133
143
262
query I rowsort
SELECT ALL + col0 - + tab0.col0 FROM tab0
----
0
0
0
query I rowsort
SELECT col0 - + col2 * col2 * - col2 AS col1 FROM tab0 AS cor0
----
35961
36
551457
query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-405
SELECT - col1 DIV - tab2.col1 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-405
SELECT - col1 / - tab2.col1 FROM tab2
----
1
1
1
query I rowsort
SELECT - col2 * + col2 + - col0 FROM tab0
----
-1113
-36
-6813
query I rowsort
SELECT ALL col0 * - col0 - col1 FROM tab0
----
-1322
-662
-8012
query I rowsort
SELECT ALL col2 + col0 * + col1 AS col2 FROM tab1
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-409
SELECT - col2 * col1 DIV col2 + + col2 AS col1 FROM tab1
----
28
47
83
skipif mysql # not compatible
query I rowsort label-409
SELECT - col2 * col1 / col2 + + col2 AS col1 FROM tab1
----
28
47
83
query I rowsort
SELECT DISTINCT col1 * - col1 + col0 AS col1 FROM tab0
----
-7372
-8192
-9374
query I rowsort
SELECT col2 * col0 + + col1 FROM tab0
----
132
7389
878
query I rowsort
SELECT ALL col1 * col2 + col1 * - col1 FROM tab0
----
-4558
-819
-9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col2 * - col1 col1 FROM tab2
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-414
SELECT + tab2.col0 * - col1 DIV col1 + + col1 AS col0 FROM tab2
----
-19
-62
24
skipif mysql # not compatible
query I rowsort label-414
SELECT + tab2.col0 * - col1 / col1 + + col1 AS col0 FROM tab2
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + cor0.col2 col0 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT ALL + col2 + col1 + - cor0.col2 * col2 AS col0 FROM tab1 AS cor0
----
-2836
-3182
-9107
query I rowsort
SELECT cor0.col1 * + col2 + + col0 * col0 AS col0 FROM tab0 AS cor0
----
1322
15383
3414
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * - col0 col1 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * col2 + col0 col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + col2 + col1 * + col0 * - col2 AS col2 FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND NULL AND NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT tab0.col1 * col0 * tab0.col1 + col2 FROM tab0
----
177537
329316
737091
query I rowsort
SELECT col1 * + col1 + - tab1.col2 AS col0 FROM tab1
----
43
622
73
query I rowsort
SELECT DISTINCT col1 * + col1 * cor0.col2 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT ALL + + col1 * - col0 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + + col0 * col0 - col2 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT col1 * col2 * - col0 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + + cor0.col0 col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL + col1 + col1 * col2 AS col0 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-429
SELECT col1 DIV col2 + - col1 * - col2 FROM tab0
----
194
2840
7463
skipif mysql # not compatible
query I rowsort label-429
SELECT col1 / col2 + - col1 * - col2 FROM tab0
----
194
2840
7463
query I rowsort
SELECT DISTINCT + - col1 + col1 + + col0 AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + + col1 + 57 FROM tab0 AS cor0
----
143
148
154
query I rowsort
SELECT ALL col1 * ( col0 ) AS col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT - 87 * col1 + + col1 * - col2 FROM tab1 cor0
----
-1440
-2379
-3666
query I rowsort
SELECT + + col2 + 8 FROM tab2 AS cor0
----
34
35
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-435
SELECT - + ( col0 ) DIV + col0 col2 FROM tab2 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-435
SELECT - + ( col0 ) / + col0 col2 FROM tab2 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-436
SELECT DISTINCT + ( cor0.col2 ) DIV col1 FROM tab2 cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-436
SELECT DISTINCT + ( cor0.col2 ) / col1 FROM tab2 cor0
----
0
2
query I rowsort
SELECT ALL + col0 + 72 AS col2 FROM tab2 AS cor0
----
150
151
79
query I rowsort
SELECT DISTINCT + col0 * ( tab0.col2 ) FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL - 58 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 55 col2 FROM tab2
----
1705
3245
935
query I rowsort
SELECT - col1 * + col1 AS col0 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT ALL 48 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 * col2 col1 FROM tab1 AS cor0
----
-3888
-4104
-6912
query I rowsort
SELECT DISTINCT + 89 FROM tab0
----
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 col2 FROM tab2
----
104
117
34
query I rowsort
SELECT - 41 * col0 AS col2 FROM tab1 AS cor0
----
-123
-2624
-3280
onlyif mysql # use DIV operator for integer division
query I rowsort label-447
SELECT + col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-447
SELECT + col0 / + col0 AS col0 FROM tab2 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 * + col2 col1 FROM tab0 AS cor0
----
1980
4920
60
query I rowsort
SELECT ALL tab0.col0 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT - 91 FROM tab0, tab1, tab0 AS cor0
----
-91
query I rowsort
SELECT DISTINCT - - col1 * - col2 - cor0.col0 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT ALL + 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-453
SELECT DISTINCT - col2 - - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-164
-2
-66
skipif mysql # not compatible
query I rowsort label-453
SELECT DISTINCT - col2 - - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-164
-2
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-454
SELECT ALL col2 * CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-1444
-676
-729
skipif mysql # not compatible
query I rowsort label-454
SELECT ALL col2 * CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT col2 + - 10 FROM tab1 AS cor0
----
44
47
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-456
SELECT DISTINCT col0 * ( + col0 ) + col0 DIV col1 AS col0 FROM tab0 AS cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-456
SELECT DISTINCT col0 * ( + col0 ) + col0 / col1 AS col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL col1 + + col0 * col1 FROM tab0
----
2150
3492
8190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-458
SELECT + 92 / cor0.col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-458
SELECT + 92 / cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-459
SELECT DISTINCT - ( + col0 ) DIV + col1 + col1 FROM tab1
----
26
4
7
skipif mysql # not compatible
query I rowsort label-459
SELECT DISTINCT - ( + col0 ) / + col1 + col1 FROM tab1
----
26
4
7
query I rowsort
SELECT ALL - col1 + 38 AS col0 FROM tab1 AS cor0
----
12
25
28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-461
SELECT col2 + CAST( - cor0.col1 AS SIGNED ) FROM tab0 AS cor0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-461
SELECT col2 + CAST ( - cor0.col1 AS INTEGER ) FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT + col1 * col0 - col1 AS col2 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ALL - col2 + 90 FROM tab0 cor0
----
57
8
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-464
SELECT ALL col2 DIV col2 + col2 AS col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-464
SELECT ALL col2 / col2 + col2 AS col2 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT + cor0.col0 + 64 AS col2 FROM tab1 AS cor0
----
128
144
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-466
SELECT DISTINCT + + col2 + CAST( 38 AS SIGNED ) FROM tab0 AS cor0
----
120
39
71
skipif mysql # not compatible
query I rowsort label-466
SELECT DISTINCT + + col2 + CAST ( 38 AS INTEGER ) FROM tab0 AS cor0
----
120
39
71
query I rowsort
SELECT ALL col0 * - cor0.col2 + + 32 * + cor0.col1 FROM tab0 cor0
----
-4386
1960
3069
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 * - col2 col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT + + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 + - col2 * - col2 col2 FROM tab0 AS cor0
----
14186
3927
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-471
SELECT + + col0 * + ( - col1 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-471
SELECT + + col0 * + ( - col1 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-473
SELECT - col0 + col1 * CAST( NULL AS DECIMAL ) + - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-473
SELECT - col0 + col1 * CAST ( NULL AS REAL ) + - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col2 - + col1 FROM tab1 AS cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 col0 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT - + 4 AS col1 FROM tab1 AS cor0
----
-4
-4
-4
onlyif mysql # use DIV operator for integer division
query I rowsort label-477
SELECT DISTINCT - 55 DIV col0 + col2 FROM tab0
----
0
31
82
skipif mysql # not compatible
query I rowsort label-477
SELECT DISTINCT - 55 / col0 + col2 FROM tab0
----
0
31
82
query I rowsort
SELECT ALL - col2 + - ( col1 + + 33 ) FROM tab0
----
-131
-152
-206
query I rowsort
SELECT ALL tab1.col0 + ( - col0 * + tab1.col0 + col0 ) FROM tab1
----
-3
-3968
-6240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col1 * + tab1.col1 col2 FROM tab1
----
164
249
679
query I rowsort
SELECT ALL - 80 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680
onlyif mysql # use DIV operator for integer division
query I rowsort label-482
SELECT DISTINCT col2 - 90 * col2 DIV ( + 32 ) AS col1 FROM tab2
----
-47
-48
-68
skipif mysql # not compatible
query I rowsort label-482
SELECT DISTINCT col2 - 90 * col2 / ( + 32 ) AS col1 FROM tab2
----
-47
-48
-68
query I rowsort
SELECT DISTINCT ( 63 ) * col2 - - 62 FROM tab1
----
3464
3653
6110
query I rowsort
SELECT ALL + col1 + 36 FROM tab1
----
46
49
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-485
SELECT 49 DIV col2 + col0 * col0 FROM tab1 AS cor0
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-485
SELECT 49 / col2 + col0 * col0 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-486
SELECT DISTINCT 58 * 85 + col2 DIV + col2 FROM tab1
----
4931
skipif mysql # not compatible
query I rowsort label-486
SELECT DISTINCT 58 * 85 + col2 / + col2 FROM tab1
----
4931
query I rowsort
SELECT + - ( + col1 ) * + col2 + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1054
-1989
-6136
query I rowsort
SELECT ALL - - col0 * - cor0.col1 + ( col2 ) FROM tab1 cor0
----
-24
-583
-944
query I rowsort
SELECT DISTINCT - + 56 - + col0 AS col1 FROM tab2 AS cor0
----
-134
-135
-63
query I rowsort
SELECT 92 * cor0.col0 + col2 FROM tab1 AS cor0
----
330
5945
7456
query I rowsort
SELECT DISTINCT + col0 * col2 + + 48 FROM tab1 AS cor0
----
210
3696
7728
query I rowsort
SELECT ALL col2 * col1 + + col2 - - col1 AS col0 FROM tab0 AS cor0
----
195
2957
7635
onlyif mysql # use DIV operator for integer division
query I rowsort label-493
SELECT col1 DIV - col1 + col1 DIV + col0 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-493
SELECT col1 / - col1 + col1 / + col0 FROM tab0 AS cor0
----
0
1
2
query I rowsort
SELECT - + col1 * col0 + ( + col0 ) * + col0 AS col0 FROM tab0 cor0
----
-1488
-178
-2170
query I rowsort
SELECT 99 + col1 FROM tab1 AS cor0
----
109
112
125
query I rowsort
SELECT DISTINCT - col1 + - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT + cor0.col2 * col0 + - 1 * col2 AS col0 FROM tab0 cor0
----
34
7216
759
query I rowsort
SELECT DISTINCT - col2 + + col1 + - col2 * + cor0.col0 AS col0 FROM tab2 cor0
----
-185
-1995
-3023
query I rowsort
SELECT DISTINCT - - col2 + col2 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT + 48 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT - col1 * + 99 * col1 AS col2 FROM tab1 AS cor0
----
-16731
-66924
-9900
query I rowsort
SELECT DISTINCT + + col2 * ( col1 ) FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-503
SELECT DISTINCT cor0.col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-503
SELECT DISTINCT cor0.col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + - col1 * - ( - col0 ) AS col2 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-505
SELECT DISTINCT + + col2 * 32 DIV + col1 FROM tab2 AS cor0
----
14
27
71
skipif mysql # not compatible
query I rowsort label-505
SELECT DISTINCT + + col2 * 32 / + col1 FROM tab2 AS cor0
----
14
27
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 90 col2 FROM tab2 AS cor0
----
116
117
128
onlyif mysql # use DIV operator for integer division
query I rowsort label-507
SELECT + col2 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-507
SELECT + col2 / col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + col1 * + cor0.col2 - - col1 * col1 FROM tab1 AS cor0
----
-1079
-470
-728
query I rowsort
SELECT ALL - col1 * + col1 AS col2 FROM tab2 cor0
----
-289
-3481
-961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-510
SELECT col0 * - CAST( NULL AS SIGNED ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-510
SELECT col0 * - CAST ( NULL AS INTEGER ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-511
SELECT ALL + col2 * ( - col0 ) DIV - col1 + 13 + col0 AS col1 FROM tab0 AS cor0
----
182
46
48
skipif mysql # not compatible
query I rowsort label-511
SELECT ALL + col2 * ( - col0 ) / - col1 + 13 + col0 AS col1 FROM tab0 AS cor0
----
182
46
48
query I rowsort
SELECT DISTINCT + cor0.col0 * + 92 * + col0 + - col1 FROM tab0 AS cor0
----
112603
52906
728641
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-513
SELECT ALL - col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-513
SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 90 * + ( col1 ) AS col0 FROM tab1 AS cor0
----
1170
2340
900
query I rowsort
SELECT ALL + - col2 + 66 * col0 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
442
5200
5255
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-516
SELECT ALL + - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-516
SELECT ALL + - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 20 * + col0 col0 FROM tab1 AS cor0
----
1280
1600
60
query I rowsort
SELECT + 47 + + 62 * col2 FROM tab0 AS cor0
----
109
2093
5131
query I rowsort
SELECT - ( 35 ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b
query I rowsort
SELECT ALL - ( cor0.col0 ) * - col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-521
SELECT + - 36 DIV + 82 AS col1 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-521
SELECT + - 36 / + 82 AS col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - ( 12 ) AS col1 FROM tab1 AS cor0
----
-12
-12
-12
query I rowsort
SELECT 56 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT + 76 * col1 FROM tab0 cor0
----
6536
6916
7372
onlyif mysql # use DIV operator for integer division
query I rowsort label-525
SELECT ALL + - 61 DIV + col2 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-525
SELECT ALL + - 61 / + col2 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT - ( + col0 ) * + col0 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-527
SELECT DISTINCT CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-527
SELECT DISTINCT CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL cor0.col2 * 71 AS col2 FROM tab0 AS cor0
----
2343
5822
71
query I rowsort
SELECT - ( - 19 ) * - col2 AS col0 FROM tab2 AS cor0
----
-494
-513
-722
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-530
SELECT + + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-530
SELECT + + 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-531
SELECT - - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-531
SELECT - - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + 18 * cor0.col0 AS col1 FROM tab2 AS cor0
----
126
1404
1422
query I rowsort
SELECT - ( col1 + - col2 ) FROM tab2
----
-33
-4
21
query I rowsort
SELECT + col2 + ( + col0 ) FROM tab2 AS cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 95 col2 FROM tab1 AS cor0
----
105
108
121
query I rowsort
SELECT col1 + + col2 * 21 FROM tab1
----
1160
1207
2029
query I rowsort
SELECT + 21 + col1 * 79 FROM tab2
----
1364
2470
4682
query I rowsort
SELECT + 67 AS col0 FROM tab1
----
67
67
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + + 71 col1 FROM tab1, tab1 AS cor0
----
135
151
74
query I rowsort
SELECT + tab0.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # use DIV operator for integer division
query I rowsort label-541
SELECT col0 DIV col1 + col1 * + col1 FROM tab0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-541
SELECT col0 / col1 + col1 * + col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT ALL 62 * - tab0.col1 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 0a003c35edfa620d025bd0d70aa56ce4
query I rowsort
SELECT ALL + col1 + 26 AS col0 FROM tab0 AS cor0
----
112
117
123
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-544
SELECT DISTINCT - - col0 + CAST( NULL AS SIGNED ) * + 65 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-544
SELECT DISTINCT - - col0 + CAST ( NULL AS INTEGER ) * + 65 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + - col2 + + 31 AS col0 FROM tab0 AS cor0
----
-2
-51
30
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-546
SELECT + CAST( - 47 AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa
skipif mysql # not compatible
query I rowsort label-546
SELECT + CAST ( - 47 AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa
query I rowsort
SELECT 66 * 74 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to f76b1e6ed03e6b292eac93f65b7312de
query I rowsort
SELECT - ( - col2 ) AS col0 FROM tab1
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * cor0.col2 col1 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-550
SELECT col0 - - col0 DIV ( + col0 ) col2 FROM tab1
----
4
65
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-550
SELECT col0 - - col0 / ( + col0 ) col2 FROM tab1
----
4
65
81
query I rowsort
SELECT cor0.col2 * + col1 * + cor0.col0 FROM tab2 cor0
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 col2 FROM tab0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-553
SELECT + col0 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-553
SELECT + col0 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-554
SELECT - col1 + - col0 + col1 DIV + 11 FROM tab0 cor0
----
-103
-124
-172
skipif mysql # not compatible
query I rowsort label-554
SELECT - col1 + - col0 + col1 / + 11 FROM tab0 cor0
----
-103
-124
-172
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb
query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ( + cor0.col1 ) AS col1 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - 62 * + col1 FROM tab1
----
-1612
-620
-806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-559
SELECT - - CAST( - ( + col0 ) AS SIGNED ) AS col1 FROM tab0 cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-559
SELECT - - CAST ( - ( + col0 ) AS INTEGER ) AS col1 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT - 7 FROM tab2, tab0 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-561
SELECT + col0 * col2 DIV + col1 + col0 * - cor0.col2 + + col0 * + 7 * 52 AS col2 FROM tab0 AS cor0
----
12705
25178
7953
skipif mysql # not compatible
query I rowsort label-561
SELECT + col0 * col2 / + col1 + col0 * - cor0.col2 + + col0 * + 7 * 52 AS col2 FROM tab0 AS cor0
----
12705
25178
7953
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col1 FROM tab0 AS cor0
----
54
54
54
query I rowsort
SELECT - 83 AS col2 FROM tab2 AS cor0
----
-83
-83
-83
query I rowsort
SELECT DISTINCT - 14 * + 60 FROM tab2
----
-840
query I rowsort
SELECT DISTINCT - - 84 FROM tab0 AS cor0
----
84
query I rowsort
SELECT + col1 + col2 * + col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + col0 * - tab1.col0 * col1 FROM tab1
----
-234
-40960
-83200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-568
SELECT - + col1 + + col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-568
SELECT - + col1 + + col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 + - col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT + - ( + col0 ) + ( + col2 * cor0.col1 ) FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL - ( col2 ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-572
SELECT ALL ( col0 ) DIV - 94 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-572
SELECT ALL ( col0 ) / - 94 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-573
SELECT - col1 DIV + cor0.col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-573
SELECT - col1 / + cor0.col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 20 * + cor0.col1 FROM tab0 AS cor0
----
1720
1820
1940
onlyif mysql # use DIV operator for integer division
query I rowsort label-575
SELECT DISTINCT + - col0 DIV col0 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-575
SELECT DISTINCT + - col0 / col0 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT ( - cor0.col1 ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
onlyif mysql # use DIV operator for integer division
query I rowsort label-577
SELECT ALL + 89 * col1 + - col0 DIV - 23 FROM tab0 cor0
----
7655
8102
8634
skipif mysql # not compatible
query I rowsort label-577
SELECT ALL + 89 * col1 + - col0 / - 23 FROM tab0 cor0
----
7655
8102
8634
onlyif mysql # use DIV operator for integer division
query I rowsort label-578
SELECT DISTINCT + 29 DIV col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-578
SELECT DISTINCT + 29 / col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + - col2 * + col0 + - col0 + - cor0.col0 FROM tab2 AS cor0
----
-203
-2184
-3160
query I rowsort
SELECT ALL col0 + - col0 + - ( + 29 ) AS col0 FROM tab0
----
-29
-29
-29
query I rowsort
SELECT ALL + ( - col2 ) + - ( 37 ) AS col2 FROM tab2
----
-63
-64
-75
onlyif mysql # use DIV operator for integer division
query I rowsort label-582
SELECT ALL - col0 DIV col2 + - col2 FROM tab1
----
-54
-58
-96
skipif mysql # not compatible
query I rowsort label-582
SELECT ALL - col0 / col2 + - col2 FROM tab1
----
-54
-58
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-583
SELECT ALL col0 + - tab0.col1 + col1 DIV col0 FROM tab0
----
-1
-59
-60
skipif mysql # not compatible
query I rowsort label-583
SELECT ALL col0 + - tab0.col1 + col1 / col0 FROM tab0
----
-1
-59
-60
query I rowsort
SELECT - col0 * 91 AS col2 FROM tab1 AS cor0
----
-273
-5824
-7280
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col1 col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + + col2 * + col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + 34 AS col2 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
query I rowsort
SELECT - 89 * tab2.col0 + col1 AS col2 FROM tab2
----
-592
-6883
-7014
query I rowsort
SELECT DISTINCT - col2 + col0 * col2 + - col2 AS col2 FROM tab1
----
3534
54
7488
query I rowsort
SELECT + 13 + + col2 FROM tab2
----
39
40
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 * - col0 col0 FROM tab2
----
-56
-6162
-6320
query I rowsort
SELECT ALL col1 + - col2 AS col0 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT ALL - 30 + tab2.col2 AS col0 FROM tab2
----
-3
-4
8
query I rowsort
SELECT 86 - col1 FROM tab0
----
-11
-5
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-595
SELECT ALL + CAST( NULL AS SIGNED ) + - col2 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-595
SELECT ALL + CAST ( NULL AS INTEGER ) + - col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 - + col2 AS col2 FROM tab2 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-597
SELECT DISTINCT col1 + 52 DIV col0 + 10 FROM tab0 cor0
----
101
108
98
skipif mysql # not compatible
query I rowsort label-597
SELECT DISTINCT col1 + 52 / col0 + 10 FROM tab0 cor0
----
101
108
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-598
SELECT DISTINCT - CAST( + 89 * cor0.col1 AS SIGNED ) FROM tab1, tab0 AS cor0
----
-7654
-8099
-8633
skipif mysql # not compatible
query I rowsort label-598
SELECT DISTINCT - CAST ( + 89 * cor0.col1 AS INTEGER ) FROM tab1, tab0 AS cor0
----
-7654
-8099
-8633
onlyif mysql # use DIV operator for integer division
query I rowsort label-599
SELECT - 32 - + col1 DIV col2 FROM tab1 AS cor0
----
-32
-32
-32
skipif mysql # not compatible
query I rowsort label-599
SELECT - 32 - + col1 / col2 FROM tab1 AS cor0
----
-32
-32
-32
query I rowsort
SELECT ALL + - col0 * col0 * col2 AS col1 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT ALL - col2 + - col2 * + col0 + col1 AS col2 FROM tab2 AS cor0
----
-185
-1995
-3023
query I rowsort
SELECT DISTINCT 17 + col1 FROM tab0 AS cor0
----
103
108
114
query I rowsort
SELECT DISTINCT - + col0 * + 6 * col2 + - ( 79 ) FROM tab2 AS cor0
----
-1213
-12247
-18091
query I rowsort
SELECT ALL - col2 + 9 AS col1 FROM tab1 AS cor0
----
-45
-48
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-605
SELECT cor0.col1 DIV col0 + - col1 FROM tab1 AS cor0
----
-10
-13
-18
skipif mysql # not compatible
query I rowsort label-605
SELECT cor0.col1 / col0 + - col1 FROM tab1 AS cor0
----
-10
-13
-18
query I rowsort
SELECT ALL - + col2 + col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT ( 45 ) FROM tab0, tab2 AS cor0
----
45
query I rowsort
SELECT col2 * + col2 - ( tab2.col0 ) FROM tab2
----
1365
598
722
query I rowsort
SELECT - tab0.col1 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 96 - 3 col0 FROM tab0
----
93
93
93
query I rowsort
SELECT DISTINCT - 74 FROM tab0, tab1 AS cor0
----
-74
query I rowsort
SELECT + col1 * col0 + col0 * - ( ( col0 ) * - col2 ) + 70 FROM tab2 AS cor0
----
1610
162856
238571
query I rowsort
SELECT DISTINCT 87 + - col0 AS col0 FROM tab0 AS cor0
----
-2
52
63
query I rowsort
SELECT ALL - col0 * - ( col1 ) + col2 AS col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT 15 AS col0 FROM tab2, tab0 AS cor0
----
15
query I rowsort
SELECT + - 86 * cor0.col2 * - col1 AS col2 FROM tab0 AS cor0
----
244068
641732
8342
query I rowsort
SELECT - 96 + col2 + col2 FROM tab0 AS cor0
----
-30
-94
68
query I rowsort
SELECT col0 + 63 FROM tab1 AS cor0
----
127
143
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-619
SELECT - 88 DIV + col1 - + col2 * - col0 AS col0 FROM tab0
----
35
7298
791
skipif mysql # not compatible
query I rowsort label-619
SELECT - 88 / + col1 - + col2 * - col0 AS col0 FROM tab0
----
35
7298
791
onlyif mysql # use DIV operator for integer division
query I rowsort label-620
SELECT ALL + - col2 DIV 71 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-620
SELECT ALL + - col2 / 71 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * 22 + col2 FROM tab1 cor0
----
277
382
626
query I rowsort
SELECT DISTINCT - - cor0.col1 + - ( + col0 ) FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + col1 + - 19 AS col1 FROM tab1 AS cor0
----
-6
-9
7
query I rowsort
SELECT DISTINCT - col0 * - col1 * - col0 + col0 AS col2 FROM tab2 AS cor0
----
-106018
-1512
-358878
query I rowsort
SELECT DISTINCT + 11 AS col2 FROM tab0
----
11
query I rowsort
SELECT - col0 * - col0 + - col1 + tab2.col2 AS col2 FROM tab2
----
45
6051
6262
query I rowsort
SELECT + - col0 * - ( + col2 ) AS col0 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-628
SELECT - cor0.col1 DIV 10 AS col0 FROM tab2 AS cor0
----
-1
-3
-5
skipif mysql # not compatible
query I rowsort label-628
SELECT - cor0.col1 / 10 AS col0 FROM tab2 AS cor0
----
-1
-3
-5
query I rowsort
SELECT ALL - + col2 * col2 AS col1 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT + cor0.col2 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + col1 + + 68 AS col0 FROM tab1 AS cor0
----
78
81
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL - - col0 + 92 AS col1 FROM tab1 AS cor0
----
156
172
95
query I rowsort
SELECT DISTINCT col2 * - ( + 30 ) AS col0 FROM tab2 AS cor0
----
-1140
-780
-810
query I rowsort
SELECT ( ( + col0 ) ) + - tab2.col2 FROM tab2
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT DISTINCT - + ( ( - col0 ) ) - 90 FROM tab1 AS cor0
----
-10
-26
-87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-638
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-638
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-639
SELECT ALL CAST( 20 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
20
20
20
skipif mysql # not compatible
query I rowsort label-639
SELECT ALL CAST ( 20 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
20
20
20
query I rowsort
SELECT col1 * 98 + - col1 FROM tab2 AS cor0
----
1649
3007
5723
query I rowsort
SELECT col1 - col2 * col0 FROM tab0
----
-706
-7207
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - - col0 * col1 AS col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + - 76 FROM tab1 AS cor0
----
-76
-76
-76
query I rowsort
SELECT DISTINCT + 42 * - col0 FROM tab0 AS cor0
----
-1008
-1470
-3738
query I rowsort
SELECT + 62 * + col2 AS col0 FROM tab1 AS cor0
----
3348
3534
5952
query I rowsort
SELECT ( + col2 ) + col1 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + col2 * col1 + col2 * + 0 * col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT + col2 + - col2 * col2 * col0 FROM tab1
----
-207879
-737184
-8694
query I rowsort
SELECT DISTINCT 65 AS col1 FROM tab2
----
65
query I rowsort
SELECT ALL col0 * col2 + col0 - col1 AS col2 FROM tab0 AS cor0
----
-27
7296
730
query I rowsort
SELECT DISTINCT - - 74 * - col1 + - 56 FROM tab1 cor0
----
-1018
-1980
-796
query I rowsort
SELECT ALL + col2 * col2 * ( - col0 ) AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT cor0.col0 + - col2 * - ( + 55 + cor0.col2 * 57 ) FROM tab1 AS cor0
----
169185
188392
530672
query I rowsort
SELECT DISTINCT - + col0 * cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + ( col0 ) * col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + 13 * col2 + col2 AS col0 FROM tab1 AS cor0
----
1344
756
798
query I rowsort
SELECT DISTINCT 9 + col0 * 92 FROM tab2 AS cor0
----
653
7185
7277
query I rowsort
SELECT ALL - ( col2 ) + + cor0.col0 * + col0 FROM tab0 AS cor0
----
1224
543
7839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * ( + cor0.col2 ) col0 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-662
SELECT - col1 DIV 13 AS col0 FROM tab0 AS cor0
----
-6
-7
-7
skipif mysql # not compatible
query I rowsort label-662
SELECT - col1 / 13 AS col0 FROM tab0 AS cor0
----
-6
-7
-7
query I rowsort
SELECT col1 + - 66 AS col1 FROM tab0 AS cor0
----
20
25
31
query I rowsort
SELECT col0 * - col0 + col1 FROM tab0 AS cor0
----
-1128
-490
-7830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-665
SELECT CAST( NULL AS DECIMAL ) + + 18 + 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-665
SELECT CAST ( NULL AS REAL ) + + 18 + col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-666
SELECT DISTINCT + ( col2 ) * col0 * CAST( + 72 * col0 AS SIGNED ) FROM tab0 AS cor0
----
1368576
46765584
88200
skipif mysql # not compatible
query I rowsort label-666
SELECT DISTINCT + ( col2 ) * col0 * CAST ( + 72 * col0 AS INTEGER ) FROM tab0 AS cor0
----
1368576
46765584
88200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-667
SELECT DISTINCT CAST( - col0 AS SIGNED ) + col1 FROM tab2 AS cor0
----
-19
-62
24
skipif mysql # not compatible
query I rowsort label-667
SELECT DISTINCT CAST ( - col0 AS INTEGER ) + col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + cor0.col2 + col1 + col1 FROM tab1 AS cor0
----
106
122
77
query I rowsort
SELECT + col1 * cor0.col1 + - col1 + col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL + ( - col0 ) + col0 * + col1 FROM tab2 cor0
----
1264
210
4524
query I rowsort
SELECT - col1 + cor0.col2 * + cor0.col2 * + 32 + + cor0.col0 FROM tab2 AS cor0
----
21651
23304
46270
query I rowsort
SELECT col1 + + 54 FROM tab2
----
113
71
85
query I rowsort
SELECT ALL - cor0.col2 + 43 * col2 AS col0 FROM tab2 AS cor0
----
1092
1134
1596
query I rowsort
SELECT + col2 + col0 + + col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
2973
3370
9392
query I rowsort
SELECT + 77 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 38f487c2147ee2fe05527e38c5e0503b
query I rowsort
SELECT ALL + 77 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT + - col2 + - col2 + cor0.col0 AS col2 FROM tab0 cor0
----
-42
-75
33
query I rowsort
SELECT + 32 * col1 + + 57 + col1 AS col1 FROM tab2 AS cor0
----
1080
2004
618
query I rowsort
SELECT ALL col2 * col2 * col0 FROM tab0
----
26136
35
598436
query I rowsort
SELECT - 33 * - col0 * + tab2.col0 FROM tab2
----
1617
200772
205953
query I rowsort
SELECT DISTINCT - 82 * tab0.col0 FROM tab0
----
-1968
-2870
-7298
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-682
SELECT ( col1 + + col2 ) * + CAST( + 15 AS SIGNED ) FROM tab1
----
1005
1200
1635
skipif mysql # not compatible
query I rowsort label-682
SELECT ( col1 + + col2 ) * + CAST ( + 15 AS INTEGER ) FROM tab1
----
1005
1200
1635
query I rowsort
SELECT ALL - col2 + + 19 * - col0 FROM tab0 AS cor0
----
-1773
-489
-666
query I rowsort
SELECT ALL col0 * - 87 FROM tab0 AS cor0
----
-2088
-3045
-7743
query I rowsort
SELECT + + ( - cor0.col0 ) + cor1.col0 AS col0 FROM tab1, tab1 cor0, tab2, tab2 AS cor1
----
81 values hashing to 94d06e04211ce6b7f9d25b682aa8a14d
query I rowsort
SELECT ALL ( col1 + tab2.col1 ) AS col0 FROM tab2
----
118
34
62
query I rowsort
SELECT - col0 + ( + col0 ) AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 + ( col0 ) * cor0.col1 FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT ALL - 42 FROM tab0, tab0 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 col2 FROM tab2
----
289
3481
961
query I rowsort
SELECT 32 * cor0.col2 + 78 FROM tab1 AS cor0
----
1806
1902
3150
query I rowsort
SELECT col2 + + col0 * col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + cor0.col0 col0 FROM tab2 cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 0 * + col0 col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + + 60 * 39 AS col2 FROM tab1 AS cor0
----
2350
2353
2366
query I rowsort
SELECT - - cor0.col2 * 61 FROM tab1 AS cor0
----
3294
3477
5856
query I rowsort
SELECT col1 * + col1 * - col2 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT - + col1 + col0 * col2 FROM tab1 AS cor0
----
136
3638
7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 96 col0 FROM tab1 cor0
----
70
83
86
query I rowsort
SELECT cor0.col2 - ( col0 ) AS col0 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-701
SELECT + + col0 * col1 DIV 10 FROM tab1 AS cor0
----
104
64
7
skipif mysql # not compatible
query I rowsort label-701
SELECT + + col0 * col1 / 10 FROM tab1 AS cor0
----
104
64
7
query I rowsort
SELECT ALL col2 + - col1 AS col0 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT ALL - col2 + - 37 FROM tab1
----
-133
-91
-94
query I rowsort
SELECT - col1 + col1 * + tab0.col0 * tab0.col0 + 69 AS col1 FROM tab0
----
118797
49519
720789
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-705
SELECT DISTINCT - col0 * + CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-705
SELECT DISTINCT - col0 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT col0 * + 10 - col1 AS col0 FROM tab2 AS cor0
----
39
721
773
query I rowsort
SELECT + col1 * + ( 46 ) - + col1 * - ( + col1 ) AS col1 FROM tab0 cor0
----
11352
12467
13871
query I rowsort
SELECT + col1 * 51 + - 70 * + col1 FROM tab0 AS cor0
----
-1634
-1729
-1843
onlyif mysql # use DIV operator for integer division
query I rowsort label-709
SELECT col0 + col1 * 95 + + col1 DIV - col1 FROM tab2 AS cor0
----
1693
2951
5682
skipif mysql # not compatible
query I rowsort label-709
SELECT col0 + col1 * 95 + + col1 / - col1 FROM tab2 AS cor0
----
1693
2951
5682
query I rowsort
SELECT 7 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
query I rowsort
SELECT - col0 * - 95 AS col2 FROM tab1 AS cor0
----
285
6080
7600
query I rowsort
SELECT DISTINCT + ( - col1 ) * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT + col0 * col0 * cor0.col1 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT + + 66 * - col2 AS col0 FROM tab1 AS cor0
----
-3564
-3762
-6336
query I rowsort
SELECT DISTINCT - + col2 * 86 AS col1 FROM tab1 cor0
----
-4644
-4902
-8256
query I rowsort
SELECT ALL - col0 + - ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT + - col2 * col2 + col0 + - ( + 86 ) FROM tab0 AS cor0
----
-1151
-52
-6721
query I rowsort
SELECT ALL - col1 * + col2 * - col1 FROM tab2 cor0
----
10982
25947
90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-719
SELECT DISTINCT + col1 + - col2 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-719
SELECT DISTINCT + col1 + - col2 / cor0.col2 AS col2 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT ( ( col1 - + col1 ) ) * col0 + col1 + col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT col1 + col0 + 19 * tab1.col2 FROM tab1
----
1055
1157
1917
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-722
SELECT + col2 + + CAST( NULL AS SIGNED ) * 67 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-722
SELECT + col2 + + CAST ( NULL AS INTEGER ) * 67 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-723
SELECT - col1 * ( col2 ) - - col0 DIV 73 AS col0 FROM tab1
----
-1247
-1404
-570
skipif mysql # not compatible
query I rowsort label-723
SELECT - col1 * ( col2 ) - - col0 / 73 AS col0 FROM tab1
----
-1247
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-724
SELECT - col2 DIV 61 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-724
SELECT - col2 / 61 FROM tab0
----
-1
0
0
query I rowsort
SELECT + col0 * ( - 4 * + tab2.col2 ) AS col0 FROM tab2
----
-12008
-756
-8112
query I rowsort
SELECT 96 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
query I rowsort
SELECT ALL - - col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL + + col0 * col0 + + ( + ( col1 ) ) AS col2 FROM tab1 cor0
----
35
4106
6413
query I rowsort
SELECT ALL - 73 + col0 AS col1 FROM tab2 AS cor0
----
-66
5
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-730
SELECT DISTINCT + 62 + col0 DIV ( col1 ) - col1 FROM tab2 AS cor0
----
31
4
49
skipif mysql # not compatible
query I rowsort label-730
SELECT DISTINCT + 62 + col0 / ( col1 ) - col1 FROM tab2 AS cor0
----
31
4
49
query I rowsort
SELECT ALL - ( - col2 ) * - col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT - cor1.col0 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT + - col1 * col0 + + ( col2 ) FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT + + col0 * + col2 AS col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL + - cor0.col2 * col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-736
SELECT ALL - ( ( - col1 ) ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-736
SELECT ALL - ( ( - col1 ) ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * ( + col0 ) * - col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT - col2 + col1 * col2 AS col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT - - 3 * col2 FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT ALL col0 * - col2 * col2 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT 72 + + col2 AS col2 FROM tab0 AS cor0
----
105
154
73
query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab0, tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + + col0 * - 45 FROM tab0 cor0
----
-1080
-1575
-4005
query I rowsort
SELECT DISTINCT - 32 AS col0 FROM tab1, tab1 AS cor0
----
-32
query I rowsort
SELECT - - col1 * col1 + col1 AS col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT DISTINCT 74 * + col1 AS col0 FROM tab0 AS cor0
----
6364
6734
7178
onlyif mysql # use DIV operator for integer division
query I rowsort label-747
SELECT cor0.col2 DIV - 7 FROM tab1 AS cor0
----
-13
-7
-8
skipif mysql # not compatible
query I rowsort label-747
SELECT cor0.col2 / - 7 FROM tab1 AS cor0
----
-13
-7
-8
query I rowsort
SELECT DISTINCT + col0 * col0 + col1 + - cor0.col0 FROM tab1 AS cor0
----
32
4042
6333
query I rowsort
SELECT DISTINCT + + ( - 25 ) + - col2 FROM tab2 AS cor0
----
-51
-52
-63
query I rowsort
SELECT cor0.col1 FROM tab1, tab2, tab1 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT - ( - 23 ) + + col1 FROM tab1
----
33
36
49
query I rowsort
SELECT DISTINCT 32 * 56 AS col0 FROM tab2
----
1792
query I rowsort
SELECT - col2 + col1 + col1 FROM tab2 AS cor0
----
-4
35
92
query I rowsort
SELECT DISTINCT col0 + 70 * + col1 FROM tab0 AS cor0
----
6044
6459
6825
query I rowsort
SELECT DISTINCT col1 + ( + col1 ) + + col0 * - col1 * col1 FROM tab0 AS cor0
----
-177332
-329121
-736827
query I rowsort
SELECT + - col2 * 51 + col0 + cor0.col2 AS col1 FROM tab1 cor0
----
-2697
-2786
-4720
query I rowsort
SELECT cor0.col1 * - 6 + + col1 FROM tab0 AS cor0
----
-430
-455
-485
query I rowsort
SELECT ALL + col0 + 70 AS col0 FROM tab0 AS cor0
----
105
159
94
query I rowsort
SELECT DISTINCT - col2 * + 46 + + col2 AS col2 FROM tab2 AS cor0
----
-1170
-1215
-1710
query I rowsort
SELECT - cor0.col2 + - cor0.col1 AS col2 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT ALL - + col1 + 82 AS col1 FROM tab1 AS cor0
----
56
69
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-762
SELECT - col1 + + 67 * - col1 + col2 * col0 DIV col2 FROM tab0 AS cor0
----
-5824
-6099
-6561
skipif mysql # not compatible
query I rowsort label-762
SELECT - col1 + + 67 * - col1 + col2 * col0 / col2 FROM tab0 AS cor0
----
-5824
-6099
-6561
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 35 col2 FROM tab2 AS cor0
----
-1085
-2065
-595
query I rowsort
SELECT DISTINCT - col1 + - col0 + 5 * - 94 AS col0 FROM tab1
----
-499
-544
-563
query I rowsort
SELECT ALL tab2.col2 + - col0 AS col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT 62 + col1 * + col2 FROM tab2
----
1596
708
899
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col2 - + col0 col2 FROM tab1
----
-2919
-3313
-9296
query I rowsort
SELECT col2 + + tab2.col1 + + ( 49 ) FROM tab2
----
104
107
134
query I rowsort
SELECT col0 * - tab1.col1 * col2 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT 72 - col2 FROM tab0
----
-10
39
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + ( col2 + - tab0.col2 ) col0 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL - col1 * 15 FROM tab1 cor0
----
-150
-195
-390
query I rowsort
SELECT ALL - col0 + - ( col0 ) * + col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT ALL col1 * ( col0 ) AS col2 FROM tab0 cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 31 col0 FROM tab0 AS cor0
----
-7
4
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 * + col1 col0 FROM tab0
----
2150
3492
8190
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 + + col2 ) BETWEEN - cor0.col2 AND ( NULL ) OR NOT + col0 IN ( col1 + col2 - col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT + cor0.col0 * + col0 + col0 * - col0 FROM tab2 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-779
SELECT col0 * col2 DIV - col0 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-779
SELECT col0 * col2 / - col0 FROM tab2
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - tab0.col2 col0 FROM tab0
----
-2838
-7462
-97
query III rowsort
SELECT * FROM tab2 WHERE NOT col0 NOT IN ( + col2 + col0 + + col1 )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE col2 BETWEEN ( col0 ) AND - col2 + col1 * - col2
----
query I rowsort
SELECT ALL + col2 * tab1.col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT - col0 + col0 * - col1 FROM tab0 AS cor0
----
-2088
-3430
-8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - col1 * cor0.col0 + + col1 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT + - col0 + + col1 * col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT - 97 + + col2 * col2 * - col0 FROM tab2
----
-114173
-5200
-52825
query I rowsort
SELECT DISTINCT + + 87 + col0 + - cor0.col0 AS col2 FROM tab1 cor0
----
87
query I rowsort
SELECT ALL - 29 * - cor0.col1 - + col1 AS col1 FROM tab1 cor0
----
280
364
728
query I rowsort
SELECT + 77 + + col1 FROM tab2 AS cor0
----
108
136
94
query I rowsort
SELECT DISTINCT + + col2 + col1 + - cor0.col1 * + col1 AS col1 FROM tab2 AS cor0
----
-234
-3396
-903
query I rowsort
SELECT ALL cor0.col2 - col0 * + col0 * cor0.col1 FROM tab2 AS cor0
----
-106059
-1492
-358930
query I rowsort
SELECT + - 1 FROM tab2 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + 39 AS col2 FROM tab2
----
39
39
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 * - col1 * col1 col0 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT ALL + + 77 FROM tab0 cor0
----
77
77
77
query I rowsort
SELECT DISTINCT - 13 * col1 AS col2 FROM tab1 AS cor0
----
-130
-169
-338
query I rowsort
SELECT - + col1 + + col1 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 col1 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 col1 FROM tab0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - - col2 * + col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - col0 * - cor0.col2 + col0 * col2 AS col0 FROM tab1 cor0
----
15360
324
7296
query I rowsort
SELECT - + col0 * col0 + col0 FROM tab0 AS cor0
----
-1190
-552
-7832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * col2 + + col0 col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT - col0 * col1 + col1 * + cor0.col0 + - cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + col2 * col0 * col1 - - col1 FROM tab1 cor0
----
36490
4238
99853
query I rowsort
SELECT - + ( - col2 ) + 75 * - col2 FROM tab0 AS cor0
----
-2442
-6068
-74
query I rowsort
SELECT + col1 + col0 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - + col1 + + col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-812
SELECT - col1 * - col1 + col0 DIV col2 FROM tab0 AS cor0
----
7396
8282
9444
skipif mysql # not compatible
query I rowsort label-812
SELECT - col1 * - col1 + col0 / col2 FROM tab0 AS cor0
----
7396
8282
9444
query I rowsort
SELECT - - ( cor0.col1 ) - + col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT tab2.col2 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL col2 * 27 FROM tab0
----
2214
27
891
query I rowsort
SELECT ALL + + 26 * col0 * + col0 AS col2 FROM tab1 AS cor0
----
106496
166400
234
query I rowsort
SELECT DISTINCT - + col1 + col2 AS col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT ( col2 ) + 55 AS col1 FROM tab0 AS cor0
----
137
56
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-819
SELECT ALL + col0 DIV col1 AS col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-819
SELECT ALL + col0 / col1 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL ( col1 ) + - cor0.col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 * + col2 - - 2 * col2 FROM tab2 AS cor0
----
1520
728
783
query I rowsort
SELECT ALL + col1 * ( + 54 ) FROM tab1 AS cor0
----
1404
540
702
query I rowsort
SELECT DISTINCT col0 + + col0 * + tab0.col1 * - col1 FROM tab0
----
-177480
-329280
-736920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col1 FROM tab0, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT 0 + - 0 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - + ( + cor0.col2 ) * - 52 + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 17870d9adff6cb98d621c49f54be06d6
query I rowsort
SELECT ( + tab1.col2 ) * + col0 AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ( 91 * col0 ) AS col1 FROM tab1
----
273
5824
7280
onlyif mysql # use DIV operator for integer division
query I rowsort label-829
SELECT ( ( - col2 ) + - col2 ) DIV col2 AS col1 FROM tab0
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-829
SELECT ( ( - col2 ) + - col2 ) / col2 AS col1 FROM tab0
----
-2
-2
-2
query I rowsort
SELECT DISTINCT + 45 * + col2 AS col0 FROM tab2
----
1170
1215
1710
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col1 * - ( col2 ) col1 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-832
SELECT DISTINCT + cor1.col1 DIV cor0.col1 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
0
skipif mysql # not compatible
query I rowsort label-832
SELECT DISTINCT + cor1.col1 / cor0.col1 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
0
query I rowsort
SELECT ALL - - cor0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT + ( - 82 ) + col2 * + col1 FROM tab2 AS cor0
----
1452
564
755
query I rowsort
SELECT 1 - - col1 AS col1 FROM tab0
----
87
92
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-836
SELECT DISTINCT + col1 * - col2 + - CAST( col2 AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
-1566
-4218
-8928
skipif mysql # not compatible
query I rowsort label-836
SELECT DISTINCT + col1 * - col2 + - CAST ( col2 AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
-1566
-4218
-8928
query I rowsort
SELECT ALL + - ( col1 ) + - ( - col1 ) + cor0.col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - 10 * ( - col1 ) AS col1 FROM tab2 cor0
----
170
310
590
query I rowsort
SELECT ALL col0 * tab0.col2 + col2 * 24 AS col0 FROM tab0
----
1584
59
9266
query I rowsort
SELECT ALL + + cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col0 + col2 + - ( col0 ) FROM tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-842
SELECT + cor0.col1 * CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-842
SELECT + cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL col0 * + col2 + ( + col2 ) AS col0 FROM tab2
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 + col2 + 14 * ( + cor0.col0 ) col2 FROM tab1 AS cor0
----
1262
142
999
query I rowsort
SELECT DISTINCT - 95 * col2 AS col0 FROM tab2 AS cor0
----
-2470
-2565
-3610
query I rowsort
SELECT ALL - col0 * col1 * col1 + col0 * + col2 AS col1 FROM tab0 cor0
----
-176712
-329280
-729711
query I rowsort
SELECT - col0 + col0 * - col0 + + 65 FROM tab2 cor0
----
-6097
-6255
9
query I rowsort
SELECT ALL - - cor0.col2 + cor0.col1 * 64 FROM tab2 AS cor0
----
1126
2011
3802
onlyif mysql # use DIV operator for integer division
query I rowsort label-849
SELECT DISTINCT + 75 DIV col2 + - col1 AS col1 FROM tab0 AS cor0
----
-22
-84
-91
skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT + 75 / col2 + - col1 AS col1 FROM tab0 AS cor0
----
-22
-84
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 * + col1 + + col1 col2 FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-851
SELECT ALL col2 * col2 * col2 + + col2 * col1 DIV col0 + - col1 FROM tab2 AS cor0
----
17536
19771
54863
skipif mysql # not compatible
query I rowsort label-851
SELECT ALL col2 * col2 * col2 + + col2 * col1 / col0 + - col1 FROM tab2 AS cor0
----
17536
19771
54863
query I rowsort
SELECT ALL - col2 + 49 * - 15 AS col1 FROM tab0
----
-736
-768
-817
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 + col2 col1 FROM tab2
----
6110
6279
76
query I rowsort
SELECT ALL cor0.col0 + col2 * - col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT + col0 * 26 FROM tab2 AS cor0
----
182
2028
2054
query I rowsort
SELECT DISTINCT - col0 * + ( col2 ) + - cor0.col0 - col2 AS col2 FROM tab1 AS cor0
----
-219
-3769
-7856
query I rowsort
SELECT cor0.col0 + + col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT + col2 + 65 + - col0 FROM tab2 AS cor0
----
13
24
85
query I rowsort
SELECT DISTINCT - + ( col1 ) * - col2 + 34 FROM tab2 AS cor0
----
1568
680
871
query I rowsort
SELECT ALL - col2 - cor0.col1 * - col1 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT ALL + 2 - - col0 FROM tab1 AS cor0
----
5
66
82
query I rowsort
SELECT DISTINCT - col2 * + col2 + - col2 FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT DISTINCT - col1 * + col2 + col1 FROM tab2 AS cor0
----
-1475
-629
-806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 - - col0 * col2 * - col1 col1 FROM tab2 AS cor0
----
-119647
-51029
-5854
query I rowsort
SELECT - 88 AS col1 FROM tab0 AS cor0
----
-88
-88
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + + ( - col2 ) * col1 col0 FROM tab0 AS cor0
----
-2752
-7371
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-867
SELECT DISTINCT CAST( NULL AS DECIMAL ) - - 51 AS col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT CAST ( NULL AS REAL ) - - 51 AS col2 FROM tab1 cor0
----
NULL
query I rowsort
SELECT ALL - + col2 * col0 * col0 AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT ALL tab0.col0 AS col2 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + tab0.col2 col1 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT + col0 * + ( + col0 ) AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL - - col0 + col1 * col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT - col1 * 41 * col1 FROM tab2 AS cor0
----
-11849
-142721
-39401
query I rowsort
SELECT ALL 56 FROM tab0, tab1 cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT col1 * - 30 AS col1 FROM tab1
----
-300
-390
-780
query I rowsort
SELECT ALL col0 * - col0 + 34 AS col0 FROM tab1
----
-4062
-6366
25
query I rowsort
SELECT - col2 + col2 AS col2 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-878
SELECT DISTINCT + col2 - CAST( NULL AS DECIMAL ) * - 51 * - col0 AS col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-878
SELECT DISTINCT + col2 - CAST ( NULL AS REAL ) * - 51 * - col0 AS col2 FROM tab1 cor0
----
NULL
query I rowsort
SELECT - col0 + - ( - col0 ) AS col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT col0 - 56 * + col1 AS col0 FROM tab1 AS cor0
----
-1453
-496
-648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-881
SELECT ALL col2 * CAST( - 61 AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
-1989
-26
-4913
skipif mysql # not compatible
query I rowsort label-881
SELECT ALL col2 * CAST ( - 61 AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
-1989
-26
-4913
query I rowsort
SELECT DISTINCT + col1 * - 99 - 76 * + col0 AS col1 FROM tab0 AS cor0
----
-10338
-12263
-15773
query I rowsort
SELECT DISTINCT - col0 + col1 * col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT + col0 + 40 * - col0 * col2 AS col2 FROM tab2 cor0
----
-120001
-7553
-81042
onlyif mysql # use DIV operator for integer division
query I rowsort label-885
SELECT ALL + + col2 DIV ( 43 ) col1 FROM tab1 AS cor0
----
1
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-885
SELECT ALL + + col2 / ( 43 ) col1 FROM tab1 AS cor0
----
1
1
2
query I rowsort
SELECT - + cor0.col1 + 73 AS col1 FROM tab1 AS cor0
----
47
60
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - ( + col0 ) * col2 col2 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT ALL + col1 + cor0.col2 - col2 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + 91 * - col1 AS col1 FROM tab1 AS cor0
----
-1183
-2366
-910
query I rowsort
SELECT DISTINCT - - col0 + - ( col0 ) * - 13 FROM tab2 AS cor0
----
1092
1106
98
query I rowsort
SELECT DISTINCT ( 57 ) + - col2 AS col0 FROM tab0 AS cor0
----
-25
24
56
query I rowsort
SELECT + - col1 * 67 AS col1 FROM tab1 AS cor0
----
-1742
-670
-871
query I rowsort
SELECT ALL + + 45 FROM tab1 cor0
----
45
45
45
query I rowsort
SELECT col1 + 29 AS col0 FROM tab2 AS cor0
----
46
60
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-895
SELECT DISTINCT - - ( + 6 ) DIV + col1 + cor0.col2 + 95 * col2 FROM tab0 AS cor0
----
3168
7872
96
skipif mysql # not compatible
query I rowsort label-895
SELECT DISTINCT - - ( + 6 ) / + col1 + cor0.col2 + 95 * col2 FROM tab0 AS cor0
----
3168
7872
96
query I rowsort
SELECT ALL + cor0.col2 * cor0.col2 - col2 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT ALL + col2 + + 81 AS col0 FROM tab2 AS cor0
----
107
108
119
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + 12 * col2 col1 FROM tab0 AS cor0
----
1075
109
482
query I rowsort
SELECT DISTINCT - col1 * - col1 + - col2 AS col2 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT ALL - - ( ( col1 ) ) AS col2 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT + + col2 * col0 AS col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT - cor0.col0 * col2 * - col0 + col1 + - col2 FROM tab0 AS cor0
----
1321
19061
649531
query I rowsort
SELECT - 36 AS col2 FROM tab0 cor0
----
-36
-36
-36
onlyif mysql # use DIV operator for integer division
query I rowsort label-904
SELECT - + col0 + col2 DIV col0 AS col1 FROM tab0 AS cor0
----
-23
-35
-89
skipif mysql # not compatible
query I rowsort label-904
SELECT - + col0 + col2 / col0 AS col1 FROM tab0 AS cor0
----
-23
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-905
SELECT col2 DIV + col2 + col0 * + cor0.col2 FROM tab0 AS cor0
----
36
7299
793
skipif mysql # not compatible
query I rowsort label-905
SELECT col2 / + col2 + col0 * + cor0.col2 FROM tab0 AS cor0
----
36
7299
793
query I rowsort
SELECT + col1 * + col1 + col2 - col1 FROM tab1 cor0
----
147
252
704
onlyif mysql # use DIV operator for integer division
query I rowsort label-907
SELECT DISTINCT - 75 * cor0.col0 DIV + col2 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-140
-172
-2722
skipif mysql # not compatible
query I rowsort label-907
SELECT DISTINCT - 75 * cor0.col0 / + col2 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-140
-172
-2722
onlyif mysql # use DIV operator for integer division
query I rowsort label-908
SELECT DISTINCT + cor0.col2 DIV col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-908
SELECT DISTINCT + cor0.col2 / col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT DISTINCT - + col0 * cor0.col0 + col0 * col0 AS col2 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 24 col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
query I rowsort
SELECT DISTINCT ( - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - col2 * col1 + + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT + - 71 AS col2 FROM tab1 cor0
----
-71
query I rowsort
SELECT + 46 + - col1 AS col0 FROM tab2 cor0
----
-13
15
29
query I rowsort
SELECT ALL + + cor0.col1 + + col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT cor0.col0 + col1 * - ( col0 ) AS col1 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT - - 30 * col2 AS col1 FROM tab0 AS cor0
----
2460
30
990
query I rowsort
SELECT col2 + + ( col1 ) AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT - - 28 * - col1 AS col2 FROM tab1 cor0
----
-280
-364
-728
query I rowsort
SELECT ALL - - 13 AS col0 FROM tab0 AS cor0
----
13
13
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-921
SELECT DISTINCT + 68 DIV + col2 + col2 FROM tab1 AS cor0
----
55
58
96
skipif mysql # not compatible
query I rowsort label-921
SELECT DISTINCT + 68 / + col2 + col2 FROM tab1 AS cor0
----
55
58
96
query I rowsort
SELECT ALL cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - 34 * col2 FROM tab1 AS cor0
----
-1836
-1938
-3264
query I rowsort
SELECT - - col1 * + col2 * 54 FROM tab0 AS cor0
----
153252
402948
5238
query I rowsort
SELECT + 23 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658
onlyif mysql # use DIV operator for integer division
query I rowsort label-926
SELECT + 64 DIV tab0.col2 + + 35 FROM tab0
----
35
36
99
skipif mysql # not compatible
query I rowsort label-926
SELECT + 64 / tab0.col2 + + 35 FROM tab0
----
35
36
99
query I rowsort
SELECT ( cor1.col2 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
onlyif mysql # use DIV operator for integer division
query I rowsort label-928
SELECT DISTINCT ( + col2 ) * - col1 + - 57 DIV col0 FROM tab2
----
-1534
-646
-845
skipif mysql # not compatible
query I rowsort label-928
SELECT DISTINCT ( + col2 ) * - col1 + - 57 / col0 FROM tab2
----
-1534
-646
-845
query I rowsort
SELECT - col0 * ( - col1 ) + - col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT + - col1 - + col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT - + col0 * + col1 - - 99 AS col1 FROM tab0 AS cor0
----
-1965
-3296
-8000
query I rowsort
SELECT col0 * + 76 FROM tab2 cor0
----
532
5928
6004
onlyif mysql # use DIV operator for integer division
query I rowsort label-933
SELECT - col0 + - col2 DIV - 32 AS col2 FROM tab0
----
-23
-35
-87
skipif mysql # not compatible
query I rowsort label-933
SELECT - col0 + - col2 / - 32 AS col2 FROM tab0
----
-23
-35
-87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-934
SELECT ALL + ( cor2.col2 + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 cor2, tab0 AS cor3
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45
skipif mysql # not compatible
query I rowsort label-934
SELECT ALL + ( cor2.col2 + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 cor2, tab0 AS cor3
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45
query I rowsort
SELECT DISTINCT + - col0 + ( - col2 ) FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT tab1.col0 FROM tab1, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT col2 - ( - cor0.col1 * col1 ) AS col1 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT - col2 + col0 AS col2 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT col2 - + cor0.col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + cor1.col2 AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1, tab2 AS cor1, tab0 cor2
----
729 values hashing to d2ca1b93960332ffbd27dbea242177cb
query I rowsort
SELECT DISTINCT + ( + 45 ) FROM tab2
----
45
query I rowsort
SELECT DISTINCT - 99 * + col1 AS col1 FROM tab2 AS cor0
----
-1683
-3069
-5841
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
972 values hashing to 9af67d6f98010464af5d560bf949d487
query I rowsort
SELECT - col1 + - col2 AS col0 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT + cor0.col1 * - col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + - ( - col2 ) * col0 + col2 * + col2 FROM tab2 AS cor0
----
2704
4446
918
query I rowsort
SELECT - col1 + col2 * - col0 + - tab0.col2 * - col1 FROM tab0
----
-35
1960
73
query I rowsort
SELECT + col0 FROM tab0 WHERE NOT NULL = + col0
----
query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 ) NOT IN ( + col1 / + tab1.col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----
query I rowsort
SELECT col1 - + tab0.col0 * tab0.col0 FROM tab0
----
-1128
-490
-7830
query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE tab0.col2 * - col2 NOT IN ( - col0 * + col2 + col2 )
----
1
33
82
query I rowsort
SELECT 60 - col1 AS col0 FROM tab1 AS cor0
----
34
47
50
query I rowsort
SELECT - col2 - - col0 AS col1 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT - - 99 * col2 + + col1 AS col1 FROM tab2 AS cor0
----
2633
2704
3779
query I rowsort
SELECT ALL - + col0 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( - col2 * col1 * col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-958
SELECT + col1 - col1 DIV col0 FROM tab0 AS cor0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-958
SELECT + col1 - col1 / col0 FROM tab0 AS cor0
----
83
90
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-959
SELECT - col1 + + col2 DIV - col0 AS col2 FROM tab0
----
-87
-91
-97
skipif mysql # not compatible
query I rowsort label-959
SELECT - col1 + + col2 / - col0 AS col2 FROM tab0
----
-87
-91
-97
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > col0 + - col0
----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 < ( - col0 * col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE + col1 + col2 * - col0 BETWEEN ( NULL ) AND - cor0.col1 * - col2
----
query I rowsort
SELECT + col0 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query IIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1 WHERE NULL BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT ALL col1 + col2 * + col0 FROM tab2 WHERE NOT col1 = ( NULL )
----
query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( col2 )
----
query I rowsort
SELECT + col2 + - tab1.col0 * col0 + col1 * col2 FROM tab1
----
-3469
-5056
1449
query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT - col0 <> col2
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 >= NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - col0 AND col0 + - col0 + - col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 * col2 col1 FROM tab2
----
1560
684
864
query I rowsort
SELECT col1 * - cor0.col0 + - col1 FROM tab2 AS cor0
----
-1360
-248
-4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-974
SELECT ALL - - col2 DIV + 75 + col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-974
SELECT ALL - - col2 / + 75 + col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - - cor1.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT DISTINCT + 95 AS col1 FROM tab2 AS cor0
----
95
query I rowsort
SELECT ALL + 9 * tab1.col1 FROM tab1, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to a5d4f7df91b6b9853a05e55b6266f5c8
query I rowsort
SELECT + 68 + cor1.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to bca993ba9d857a7a46c1b6cf19fcd097
query I rowsort
SELECT DISTINCT + cor1.col2 AS col1 FROM tab1, tab2 cor0, tab2 cor1
----
26
27
38
query I rowsort
SELECT ( + 20 ) AS col0 FROM tab0
----
20
20
20
query I rowsort
SELECT - 63 AS col2 FROM tab0
----
-63
-63
-63
query I rowsort
SELECT + 9 FROM tab1, tab1 cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 * + col1 col2 FROM tab2 AS cor0
----
-1298
-374
-682
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-984
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-984
SELECT DISTINCT + CAST ( NULL AS REAL ) / col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + + col1 * + ( col1 ) FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT ALL - ( col1 ) * - col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-987
SELECT CAST( - col1 AS SIGNED ) + tab0.col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-987
SELECT CAST ( - col1 AS INTEGER ) + tab0.col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + tab1.col1 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT col2 * cor0.col0 + - 77 FROM tab1 AS cor0
----
3571
7603
85
query I rowsort
SELECT DISTINCT 14 * - col2 + + 42 FROM tab1
----
-1302
-714
-756
query I rowsort
SELECT ALL + tab2.col0 + col2 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL - cor0.col2 * tab0.col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 847de2cb59bb8c5d644a0dd05aab430c
query I rowsort
SELECT col2 * ( col0 ) FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT col2 + - col0 * + col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL + col0 * + ( col2 * + cor0.col1 + ( col0 ) ) FROM tab2 AS cor0
----
125736
57275
5908
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + 63 col0 FROM tab0 AS cor0
----
145
64
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-997
SELECT + cor0.col0 DIV + col2 + + 57 col2 FROM tab1 AS cor0
----
57
57
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-997
SELECT + cor0.col0 / + col2 + + 57 col2 FROM tab1 AS cor0
----
57
57
58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-998
SELECT DISTINCT - - col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-998
SELECT DISTINCT - - col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT col1 + col2 AS col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL + col0 * - 95 * - col1 FROM tab1 AS cor0
----
60800
7410
98800
query I rowsort
SELECT DISTINCT - col2 + col1 * + col2 * col1 FROM tab2 AS cor0
----
10944
25920
90480
query I rowsort
SELECT - + col0 * col0 AS col2 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT + col0 * col1 + + 88 * - col1 AS col2 FROM tab1 AS cor0
----
-104
-2210
-240
onlyif mysql # use DIV operator for integer division
query I rowsort label-1004
SELECT DISTINCT - col2 + - 35 * col1 DIV col0 AS col2 FROM tab1 AS cor0
----
-101
-357
-62
skipif mysql # not compatible
query I rowsort label-1004
SELECT DISTINCT - col2 + - 35 * col1 / col0 AS col2 FROM tab1 AS cor0
----
-101
-357
-62
query I rowsort
SELECT ALL col0 + - 6 * - col0 AS col1 FROM tab0 AS cor0
----
168
245
623
query I rowsort
SELECT col1 * col1 + + col2 AS col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT ALL col1 + 34 * col2 FROM tab1
----
1862
1948
3277
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + cor0.col2 + 21 col2 FROM tab2 AS cor0
----
125
138
55
query I rowsort
SELECT - 51 * col1 - - col1 * - col0 AS col0 FROM tab1 cor0
----
-1150
-1404
-1703
query I rowsort
SELECT DISTINCT - 58 + + tab2.col0 FROM tab2
----
-51
20
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1011
SELECT CAST( NULL AS DECIMAL ) + col1 * col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1011
SELECT CAST ( NULL AS REAL ) + col1 * col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( - col2 ) * tab1.col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT tab2.col2 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL ( + col2 ) * col0 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-1015
SELECT ALL + col2 DIV + tab0.col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1015
SELECT ALL + col2 / + tab0.col2 FROM tab0
----
1
1
1
query I rowsort
SELECT ALL + cor0.col2 * + cor0.col0 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 24e20ca2b8a28088cc71698417e1f489
query I rowsort
SELECT ALL - 12 AS col2 FROM tab0 AS cor0
----
-12
-12
-12
query I rowsort
SELECT DISTINCT + + 65 + + col0 AS col1 FROM tab0 AS cor0
----
100
154
89
query I rowsort
SELECT DISTINCT - - col2 + cor0.col1 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - 37 + col2 * - col1 AS col1 FROM tab1 cor0
----
-1285
-1441
-607
query I rowsort
SELECT ( + tab2.col0 ) * cor1.col1 AS col2 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to a8042fcd365197f4ce80520ccb46287c
query I rowsort
SELECT cor2.col2 * - cor2.col0 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 6049db922cf615ac02010fbaffaf74d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-1023
SELECT DISTINCT - 1 DIV - 99 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
0
skipif mysql # not compatible
query I rowsort label-1023
SELECT DISTINCT - 1 / - 99 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1024
SELECT + + ( - col2 ) * CAST( - 75 AS SIGNED ) + - col2 AS col2 FROM tab1 AS cor0
----
3996
4218
7104
skipif mysql # not compatible
query I rowsort label-1024
SELECT + + ( - col2 ) * CAST ( - 75 AS INTEGER ) + - col2 AS col2 FROM tab1 AS cor0
----
3996
4218
7104
query I rowsort
SELECT DISTINCT - 67 * - cor0.col2 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
3618
3819
6432
query I rowsort
SELECT 57 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT - + col1 * + 69 + + col2 FROM tab2 AS cor0
----
-1135
-2112
-4045
query I rowsort
SELECT DISTINCT - col1 * 99 FROM tab2 AS cor0
----
-1683
-3069
-5841
query I rowsort
SELECT DISTINCT - col0 * col0 * + col1 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT col1 + - 78 AS col1 FROM tab0 cor0
----
13
19
8
query I rowsort
SELECT DISTINCT ( col2 ) + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - col0 * - 58 + - col1 AS col0 FROM tab1 AS cor0
----
148
3702
4627
query I rowsort
SELECT 27 AS col1 FROM tab0 AS cor0
----
27
27
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 76 * col2 - col0 col0 FROM tab2 AS cor0
----
-2054
-2059
-2967
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * ( + cor0.col1 ) col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT 60 * col0 + col2 FROM tab1 AS cor0
----
234
3897
4896
query I rowsort
SELECT DISTINCT 33 * - col2 + col1 FROM tab0 cor0
----
-1003
-2615
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-1038
SELECT ALL - + col1 DIV + 41 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1038
SELECT ALL - + col1 / + 41 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + ( + col2 ) * - cor0.col0 + + col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT + 75 + + col1 FROM tab0 cor0
----
161
166
172
onlyif mysql # use DIV operator for integer division
query I rowsort label-1041
SELECT ALL - col2 * + 33 + cor0.col2 DIV - cor0.col1 FROM tab0 AS cor0
----
-1089
-2706
-33
skipif mysql # not compatible
query I rowsort label-1041
SELECT ALL - col2 * + 33 + cor0.col2 / - cor0.col1 FROM tab0 AS cor0
----
-1089
-2706
-33
query I rowsort
SELECT ALL + + col2 - 9 AS col2 FROM tab2 cor0
----
17
18
29
query I rowsort
SELECT DISTINCT + 49 * col0 FROM tab1
----
147
3136
3920
query I rowsort
SELECT ALL ( - col2 ) FROM tab2
----
-26
-27
-38
query I rowsort
SELECT cor0.col1 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - + ( 57 ) FROM tab1 AS cor0
----
-57
-57
-57
query I rowsort
SELECT - 23 + - col2 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
1421
653
706
query I rowsort
SELECT + col2 * - col2 * col1 AS col2 FROM tab1 cor0
----
-119808
-32490
-75816
query I rowsort
SELECT + col0 - + col2 * col1 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL - 97 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
2522
2619
3686
query I rowsort
SELECT DISTINCT - - col0 + col1 * col0 * + col1 FROM tab2 cor0
----
22910
271596
6734
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1052
SELECT - cor0.col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1052
SELECT - cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * ( col1 * col0 ) FROM tab1 AS cor0
----
234
40960
83200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1054
SELECT col2 * CAST( - col1 * - col2 AS SIGNED ) FROM tab1 cor0
----
119808
32490
75816
skipif mysql # not compatible
query I rowsort label-1054
SELECT col2 * CAST ( - col1 * - col2 AS INTEGER ) FROM tab1 cor0
----
119808
32490
75816
query I rowsort
SELECT DISTINCT + col0 * - col0 * - cor0.col2 FROM tab0 AS cor0
----
1225
19008
649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 29 col1 FROM tab2 AS cor0
----
203
2262
2291
query I rowsort
SELECT col2 + - 86 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-204
-5447
-6784
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + ( col2 ) col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL - 44 + + col0 * 98 AS col0 FROM tab0
----
2308
3386
8678
query I rowsort
SELECT - col0 * - col1 + - col1 AS col0 FROM tab1
----
1027
52
630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1061
SELECT col1 * + CAST( col2 AS SIGNED ) + col2 * 14 AS col1 FROM tab0 AS cor0
----
111
3300
8610
skipif mysql # not compatible
query I rowsort label-1061
SELECT col1 * + CAST ( col2 AS INTEGER ) + col2 * 14 AS col1 FROM tab0 AS cor0
----
111
3300
8610
query I rowsort
SELECT col0 * - 1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT 67 + cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a4c5bf82c6e4a62bca64c27bb7120d7e
query I rowsort
SELECT DISTINCT - col2 + 10 FROM tab1 AS cor0
----
-44
-47
-86
query I rowsort
SELECT ALL col2 * 28 AS col0 FROM tab2
----
1064
728
756
query I rowsort
SELECT + 86 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 cor2, tab0 AS cor3
----
243 values hashing to 435f4131b25a0822065966508fa6e31a
query I rowsort
SELECT ALL + - cor0.col2 + - 93 * - col0 AS col0 FROM tab1 AS cor0
----
225
5895
7344
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + col2 * + 16 col0 FROM tab1 AS cor0
----
1523
838
902
query I rowsort
SELECT cor0.col2 * - 44 FROM tab1 AS cor0
----
-2376
-2508
-4224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1070
SELECT DISTINCT + cor0.col1 * + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-1070
SELECT DISTINCT + cor0.col1 * + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1071
SELECT + col2 DIV col1 + 45 * - col1 FROM tab2
----
-1395
-2655
-763
skipif mysql # not compatible
query I rowsort label-1071
SELECT + col2 / col1 + 45 * - col1 FROM tab2
----
-1395
-2655
-763
query I rowsort
SELECT - col0 * col2 * - ( - tab0.col0 ) + - col1 FROM tab0
----
-1322
-19094
-649613
query I rowsort
SELECT DISTINCT + col1 * col1 * + tab1.col0 AS col2 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT DISTINCT + 50 FROM tab2, tab0 cor0
----
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1075
SELECT ALL col0 * CAST( NULL AS SIGNED ) - 34 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1075
SELECT ALL col0 * CAST ( NULL AS INTEGER ) - 34 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * col2 + - 88 col1 FROM tab0 cor0
----
-53
704
7210
query I rowsort
SELECT ALL col0 + + 38 AS col2 FROM tab1 cor0
----
102
118
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-1078
SELECT - col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-1078
SELECT - col0 / - col2 AS col1 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT + col2 + ( 18 ) AS col2 FROM tab2 AS cor0
----
44
45
56
query I rowsort
SELECT DISTINCT col0 * + 53 FROM tab0 AS cor0
----
1272
1855
4717
query I rowsort
SELECT - col0 * - col1 * col2 AS col2 FROM tab1 AS cor0
----
36480
4212
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * 57 col1 FROM tab1 AS cor0
----
-171
-3648
-4560
query I rowsort
SELECT DISTINCT col0 + 16 AS col0 FROM tab0 AS cor0
----
105
40
51
query I rowsort
SELECT DISTINCT cor0.col2 + + cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT - 35 FROM tab1, tab2 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b
query I rowsort
SELECT col2 * col0 + col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT + 98 + cor0.col1 AS col0 FROM tab2 AS cor0
----
115
129
157
query I rowsort
SELECT - 49 + cor0.col0 FROM tab0 AS cor0
----
-14
-25
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-1089
SELECT - col2 * - col2 * + col2 + col0 * cor0.col0 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
17679
19684
55239
skipif mysql # not compatible
query I rowsort label-1089
SELECT - col2 * - col2 * + col2 + col0 * cor0.col0 / cor0.col1 AS col0 FROM tab2 AS cor0
----
17679
19684
55239
query I rowsort
SELECT - col0 + + 8 + col2 * 20 AS col2 FROM tab0 AS cor0
----
-7
1559
644
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 * col0 col0 FROM tab2 AS cor0
----
651
7254
7347
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 * + cor0.col1 col0 FROM tab1 cor0
----
1274
2548
980
query I rowsort
SELECT + - col1 * col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-7363
-8199
-9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - col0 col1 FROM tab0 AS cor0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 1 * - col0 col0 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1096
SELECT DISTINCT - col1 + col2 * + CAST( col0 AS SIGNED ) * - col2 col0 FROM tab2 AS cor0
----
-114093
-5134
-52787
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1096
SELECT DISTINCT - col1 + col2 * + CAST ( col0 AS INTEGER ) * - col2 col0 FROM tab2 AS cor0
----
-114093
-5134
-52787
query I rowsort
SELECT DISTINCT + + col0 * + col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 + - col2 AS col0 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT ALL - 66 * + col1 AS col2 FROM tab2 AS cor0
----
-1122
-2046
-3894
query I rowsort
SELECT ALL - 56 * - col0 FROM tab2
----
392
4368
4424
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 + col0 + - 18 col1 FROM tab2 AS cor0
----
-1968
-200
-2941
query I rowsort
SELECT ALL col0 * col1 * cor0.col2 + - col1 * col1 FROM tab1 AS cor0
----
3536
36380
99671
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( col2 ) col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT cor0.col2 * + col0 + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + 97 + col1 * 80 FROM tab2 AS cor0
----
1457
2577
4817
query I rowsort
SELECT DISTINCT - + 60 + col2 AS col0 FROM tab1 AS cor0
----
-3
-6
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 21 * + col0 col0 FROM tab1 AS cor0
----
1344
1680
63
query I rowsort
SELECT - col2 + - col0 + + col1 AS col0 FROM tab1 AS cor0
----
-111
-163
-31
query I rowsort
SELECT ALL 16 * + col1 FROM tab1 AS cor0
----
160
208
416
onlyif mysql # use DIV operator for integer division
query I rowsort label-1110
SELECT DISTINCT - col2 * + ( col2 ) * col0 + 41 DIV + col0 FROM tab2 AS cor0
----
-114076
-5098
-52728
skipif mysql # not compatible
query I rowsort label-1110
SELECT DISTINCT - col2 * + ( col2 ) * col0 + 41 / + col0 FROM tab2 AS cor0
----
-114076
-5098
-52728
query I rowsort
SELECT ALL + 63 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0
query I rowsort
SELECT ALL + + col0 + cor0.col2 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT - cor0.col2 * 1 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to c569638e8a09ff819458d62ddbde994c
onlyif mysql # use DIV operator for integer division
query I rowsort label-1114
SELECT DISTINCT tab1.col1 + col2 DIV 83 AS col1 FROM tab1
----
10
14
26
skipif mysql # not compatible
query I rowsort label-1114
SELECT DISTINCT tab1.col1 + col2 / 83 AS col1 FROM tab1
----
10
14
26
query I rowsort
SELECT 22 * col0 + - col1 AS col0 FROM tab1
----
1398
1747
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1116
SELECT ALL CAST( - 14 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-14
-14
-14
skipif mysql # not compatible
query I rowsort label-1116
SELECT ALL CAST ( - 14 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-14
-14
-14
query I rowsort
SELECT - 57 + + 14 * - col1 FROM tab2 AS cor0
----
-295
-491
-883
query I rowsort
SELECT 72 * ( + col0 ) + ( + cor0.col0 + - cor0.col1 ) AS col0 FROM tab1 cor0
----
193
4662
5827
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1119
SELECT DISTINCT + CAST( + 91 AS SIGNED ) FROM tab1 AS cor0
----
91
skipif mysql # not compatible
query I rowsort label-1119
SELECT DISTINCT + CAST ( + 91 AS INTEGER ) FROM tab1 AS cor0
----
91
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2, tab0 cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to df00d19f178a708f636b036dcb6c6f87
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-1122
SELECT + col0 DIV - 43 FROM tab2
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-1122
SELECT + col0 / - 43 FROM tab2
----
-1
-1
0
query I rowsort
SELECT - 8 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e
query I rowsort
SELECT DISTINCT - tab1.col0 + + col2 * col0 FROM tab1
----
159
3584
7600
query I rowsort
SELECT ALL + 35 * + col2 AS col1 FROM tab1 AS cor0
----
1890
1995
3360
query I rowsort
SELECT col0 * - 46 * + col0 + 75 * + 11 FROM tab1
----
-187591
-293575
411
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1127
SELECT col1 + + ( col1 ) - + CAST( 66 + col1 AS SIGNED ) FROM tab2
----
-35
-49
-7
skipif mysql # not compatible
query I rowsort label-1127
SELECT col1 + + ( col1 ) - + CAST ( 66 + col1 AS INTEGER ) FROM tab2
----
-35
-49
-7
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab1 AS cor0, tab2 cor1
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614
query I rowsort
SELECT + col0 * col0 + + tab1.col2 * - col2 FROM tab1
----
-2816
-2907
847
query I rowsort
SELECT DISTINCT - 11 - ( col2 ) * col2 AS col0 FROM tab0
----
-1100
-12
-6735
query I rowsort
SELECT ALL ( col1 ) + col1 * col0 AS col0 FROM tab1
----
104
1053
650
query I rowsort
SELECT ALL + ( col2 ) + tab2.col1 + ( col0 ) AS col1 FROM tab2
----
134
163
65
query I rowsort
SELECT - col2 + col2 - + col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT - ( 22 ) FROM tab0
----
-22
-22
-22
skipif mysql # not compatible
query I rowsort
SELECT - cor0.col2 + - CAST ( 8 AS REAL ) * cor0.col0 FROM tab1 cor0
----
-569
-736
-78
query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
7
78
79
query I rowsort
SELECT col2 * + 80 AS col0 FROM tab0 AS cor0
----
2640
6560
80
query I rowsort
SELECT - tab1.col0 + col0 * 8 FROM tab1
----
21
448
560
query I rowsort
SELECT + 87 + + col2 FROM tab2
----
113
114
125
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 col2 FROM tab2
----
-39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 * + 79 col2 FROM tab0, tab2 cor0
----
9 values hashing to dfc79cfe167f612dd398554cc6b405bb
query I rowsort
SELECT DISTINCT col2 + tab2.col1 + - col2 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT - col2 + + ( col2 ) * + col2 + - 99 * col1 FROM tab0
----
-2367
-7458
-9603
query I rowsort
SELECT DISTINCT + col0 * 85 + col1 * col0 + 12 AS col2 FROM tab0
----
15676
4116
6382
query I rowsort
SELECT - 97 + 16 AS col0 FROM tab0 cor0
----
-81
-81
-81
query I rowsort
SELECT + 37 - - col1 AS col0 FROM tab2 AS cor0
----
54
68
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1147
SELECT DISTINCT tab0.col0 DIV col2 + col2 * col0 AS col2 FROM tab0
----
70
7299
792
skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT tab0.col0 / col2 + col2 * col0 AS col2 FROM tab0
----
70
7299
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-1148
SELECT tab0.col0 DIV col1 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1148
SELECT tab0.col0 / col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col2 + ( - 57 ) * col2 * 8 FROM tab1
----
-24570
-25935
-43680
query I rowsort
SELECT ALL tab1.col2 * tab1.col2 AS col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ALL + col0 + 29 FROM tab0
----
118
53
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 + - col0 col1 FROM tab0 cor0
----
-11
43
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 + 10 * tab0.col2 col2 FROM tab0
----
363
43
853
query I rowsort
SELECT + 17 + tab2.col1 * - col1 AS col1 FROM tab2
----
-272
-3464
-944
query I rowsort
SELECT ALL 97 * + col0 FROM tab2 AS cor0
----
679
7566
7663
query I rowsort
SELECT - col0 * + col2 + - 79 * + col1 FROM tab0 AS cor0
----
-14487
-7586
-7698
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + col2 col2 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-1158
SELECT DISTINCT - col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-1158
SELECT DISTINCT - col1 / - col1 AS col2 FROM tab0 AS cor0
----
1
query I rowsort
SELECT ALL + cor0.col0 + col2 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1160
SELECT + + col1 * col0 DIV 88 AS col1 FROM tab0 AS cor0
----
23
38
92
skipif mysql # not compatible
query I rowsort label-1160
SELECT + + col1 * col0 / 88 AS col1 FROM tab0 AS cor0
----
23
38
92
query I rowsort
SELECT - 87 * - col1 + - ( col2 ) FROM tab0 AS cor0
----
7449
7835
8438
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - col1 + col1 * CAST ( - col1 AS REAL ) FROM tab2 AS cor0
----
-306
-3540
-992
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - cor0.col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - 32 * col1 + - ( - col0 + - cor0.col1 ) * col1 FROM tab0 AS cor0
----
13468
6708
9700
query I rowsort
SELECT 25 + col0 * - col1 FROM tab2 cor0
----
-1318
-192
-4577
query I rowsort
SELECT DISTINCT - - 95 + - col0 * ( - col1 ) + col0 AS col0 FROM tab1 AS cor0
----
1215
176
799
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 50 - col0 col1 FROM tab2 AS cor0
----
-28
-29
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 2810c3097fe4771e273cfff903357b40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1169
SELECT ALL - - 59 * - col2 + CAST( NULL AS SIGNED ) + col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL - - 59 * - col2 + CAST ( NULL AS INTEGER ) + col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * tab2.col2 AS col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT + - cor0.col0 * ( + col0 ) FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1173
SELECT col1 + + CAST( - cor0.col0 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
2150
3492
8190
skipif mysql # not compatible
query I rowsort label-1173
SELECT col1 + + CAST ( - cor0.col0 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT 53 AS col1 FROM tab1
----
53
query I rowsort
SELECT col0 * + ( ( col0 ) ) * - cor0.col1 FROM tab1 cor0
----
-234
-40960
-83200
query I rowsort
SELECT + cor0.col2 * col1 * - 73 AS col2 FROM tab1 AS cor0
----
-102492
-41610
-91104
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1177
SELECT ALL CAST( 62 AS SIGNED ) * - col0 col1 FROM tab1 AS cor0
----
-186
-3968
-4960
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL CAST ( 62 AS INTEGER ) * - col0 col1 FROM tab1 AS cor0
----
-186
-3968
-4960
query I rowsort
SELECT col0 * 74 * col1 AS col0 FROM tab2 AS cor0
----
16058
340548
99382
query I rowsort
SELECT cor1.col2 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT - - ( - 96 ) * + col1 FROM tab1 AS cor0
----
-1248
-2496
-960
query I rowsort
SELECT + 66 + + col2 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2772
-31
-7396
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - ( - col2 ) col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT - ( 64 ) - col1 FROM tab1 AS cor0
----
-74
-77
-90
query I rowsort
SELECT DISTINCT col0 * 45 + + col2 FROM tab0
----
1113
1576
4087
query I rowsort
SELECT ( 27 + + col2 ) AS col1 FROM tab1
----
123
81
84
query I rowsort
SELECT - 11 * col0 + - col1 FROM tab2 AS cor0
----
-108
-886
-917
query I rowsort
SELECT DISTINCT col0 + - 45 AS col0 FROM tab1 AS cor0
----
-42
19
35
query I rowsort
SELECT ALL col0 * - col0 + - col2 FROM tab0 AS cor0
----
-1226
-609
-8003
query I rowsort
SELECT col2 + - cor0.col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - col2 * + ( 59 ) AS col2 FROM tab1
----
-3186
-3363
-5664
query I rowsort
SELECT - - col1 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-1193
SELECT - col2 + - col2 DIV col2 AS col0 FROM tab0 AS cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-1193
SELECT - col2 + - col2 / col2 AS col0 FROM tab0 AS cor0
----
-2
-34
-83
query I rowsort
SELECT cor0.col0 * 85 FROM tab1 AS cor0
----
255
5440
6800
query I rowsort
SELECT DISTINCT col2 * col2 + - col1 AS col2 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT DISTINCT - + 98 * - col2 AS col1 FROM tab0 AS cor0
----
3234
8036
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-1197
SELECT ALL col2 * - col0 DIV - col0 FROM tab2 cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL col2 * - col0 / - col0 FROM tab2 cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( 45 + col1 ) col2 FROM tab1
----
213
3520
4640
query I rowsort
SELECT col0 * col2 + - tab1.col0 * col1 + + ( + 88 ) FROM tab1
----
172
3096
6728
onlyif mysql # use DIV operator for integer division
query I rowsort label-1200
SELECT ALL + col0 DIV col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL + col0 / col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + col0 * ( 72 ) AS col1 FROM tab2
----
504
5616
5688
query I rowsort
SELECT col1 * 57 FROM tab1
----
1482
570
741
query I rowsort
SELECT DISTINCT 71 * ( - col0 ) AS col0 FROM tab2
----
-497
-5538
-5609
query I rowsort
SELECT 44 - col0 FROM tab1
----
-20
-36
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-1205
SELECT DISTINCT - 18 DIV - col2 FROM tab0
----
0
18
skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT - 18 / - col2 FROM tab0
----
0
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123
query I rowsort
SELECT + + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT - + col1 * col1 + - cor0.col2 * col2 FROM tab0 AS cor0
----
-15005
-8485
-9410
query I rowsort
SELECT - tab2.col1 * 56 FROM tab2, tab1 AS cor0
----
9 values hashing to 28a9d0ce91a832ad7576a5e04111affb
query I rowsort
SELECT - tab0.col1 * - col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT col2 + ( - col2 ) AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 + 15 * + col1 FROM tab2 AS cor0
----
238
434
826
query I rowsort
SELECT col0 + + ( ( - col1 ) ) AS col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT ALL col1 * - ( - col1 ) + + col2 AS col1 FROM tab1
----
157
265
730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 60 col0 FROM tab0
----
146
151
157
query I rowsort
SELECT ALL - col1 + - col2 * col2 FROM tab1 AS cor0
----
-2942
-3259
-9229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + col0 * col0 + + 83 col1 FROM tab0 AS cor0
----
-430
1280
1307
query I rowsort
SELECT ALL cor0.col2 + - 79 AS col1 FROM tab0 AS cor0
----
-46
-78
3
query I rowsort
SELECT - col1 * + col0 + ( + cor0.col1 + - col0 ) * - col1 * + col1 AS col2 FROM tab2 AS cor0
----
-23281
16575
61537
query I rowsort
SELECT ALL + col1 * - ( - col2 ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - - col0 - 28 * - col1 FROM tab0 AS cor0
----
2432
2637
2751
query I rowsort
SELECT DISTINCT + col2 + col2 AS col0 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1223
SELECT DISTINCT col2 + - CAST( ( cor0.col2 ) AS SIGNED ) FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1223
SELECT DISTINCT col2 + - CAST ( ( cor0.col2 ) AS INTEGER ) FROM tab2 AS cor0
----
0
query I rowsort
SELECT - - col2 + + cor0.col0 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1225
SELECT DISTINCT + col1 * col2 * - 90 + - cor0.col0 * 4 DIV col2 AS col2 FROM tab1 cor0
----
-112323
-126360
-51304
skipif mysql # not compatible
query I rowsort label-1225
SELECT DISTINCT + col1 * col2 * - 90 + - cor0.col0 * 4 / col2 AS col2 FROM tab1 cor0
----
-112323
-126360
-51304
query I rowsort
SELECT + col2 + col0 * + 63 FROM tab2 cor0
----
468
4940
5015
query I rowsort
SELECT col2 * + 11 + 64 * col0 FROM tab0 AS cor0
----
1899
2251
6598
query I rowsort
SELECT - + cor0.col0 * ( - col1 ) + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT col0 * - col0 + + col0 * col2 FROM tab2 AS cor0
----
-3239
-4056
140
query I rowsort
SELECT col1 + + 25 FROM tab0 AS cor0
----
111
116
122
query I rowsort
SELECT ALL - col1 * + col0 + - col1 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT - - col2 * col1 * col1 + col1 * + 34 FROM tab2 AS cor0
----
11560
27001
92512
query I rowsort
SELECT DISTINCT - col0 * + col2 - - col2 * col2 AS col2 FROM tab2 AS cor0
----
-1352
-1558
540
onlyif mysql # use DIV operator for integer division
query I rowsort label-1234
SELECT + col2 DIV cor0.col2 + + col2 AS col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-1234
SELECT + col2 / cor0.col2 + + col2 AS col2 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT ALL 67 + 21 FROM tab1 cor0
----
88
88
88
query I rowsort
SELECT ALL cor0.col0 * - col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT ALL + 74 * - col1 * col2 + 81 * + 65 FROM tab1 AS cor0
----
-36915
-87087
-98631
query I rowsort
SELECT DISTINCT + + col1 - cor0.col0 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT ALL - 99 AS col2 FROM tab2 cor0
----
-99
-99
-99
query I rowsort
SELECT + 83 * col2 + - col0 * - cor0.col1 FROM tab1 AS cor0
----
4560
5371
9008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col1 col0 FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT DISTINCT 39 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
39
query I rowsort
SELECT DISTINCT col1 + + col0 * col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1245
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-1245
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col1 FROM tab2
----
NULL
query I rowsort
SELECT 56 * - col2 FROM tab2 AS cor0
----
-1456
-1512
-2128
query I rowsort
SELECT + ( + col0 ) * col1 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT 5 * + col1 AS col2 FROM tab2 cor0
----
155
295
85
query I rowsort
SELECT cor0.col1 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + col1 * - ( 70 ) AS col0 FROM tab1 AS cor0
----
-1820
-700
-910
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 52 + - 9 col2 FROM tab2 cor0
----
1343
1395
1967
query I rowsort
SELECT ALL - col1 * cor0.col0 + + cor0.col0 - + col2 FROM tab1 AS cor0
----
-1056
-129
-633
query I rowsort
SELECT ALL + col0 + + 38 + - col1 FROM tab2 AS cor0
----
100
14
57
query I rowsort
SELECT - 33 + col2 AS col2 FROM tab2
----
-6
-7
5
query I rowsort
SELECT ALL + - tab0.col2 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT ( - col2 * - ( - col2 ) ) - - col0 AS col0 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT tab1.col2 AS col0 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - 36 - col2 FROM tab1
----
-132
-90
-93
query I rowsort
SELECT DISTINCT + ( - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab2, tab2 cor1
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7
query I rowsort
SELECT 36 * - col2 AS col2 FROM tab0 AS cor0
----
-1188
-2952
-36
query I rowsort
SELECT - col1 * + col2 + ( + col0 ) * col1 FROM tab2 AS cor0
----
-620
3068
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-1263
SELECT DISTINCT - 72 - col1 DIV col0 AS col1 FROM tab0 AS cor0
----
-73
-74
-75
skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT - 72 - col1 / col0 AS col1 FROM tab0 AS cor0
----
-73
-74
-75
query I rowsort
SELECT ALL + 71 + col1 FROM tab0 AS cor0
----
157
162
168
query I rowsort
SELECT 23 * + col2 + + col1 FROM tab2 AS cor0
----
652
657
891
query I rowsort
SELECT DISTINCT - 75 * - col1 AS col2 FROM tab2 AS cor0
----
1275
2325
4425
query I rowsort
SELECT + + col2 + - col2 AS col1 FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT col1 + col0 * col2 * col1 + + col2 AS col1 FROM tab2 AS cor0
----
119737
51089
5917
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * cor0.col2 col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + cor0.col1 * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to df00d19f178a708f636b036dcb6c6f87
query I rowsort
SELECT cor0.col2 + 26 FROM tab1 cor0
----
122
80
83
query I rowsort
SELECT + - 77 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1275
SELECT + CAST( - 24 AS DECIMAL ) + + col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1275
SELECT + CAST ( - 24 AS REAL ) + + col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 90 AS col1 FROM tab0 AS cor0
----
-90
-90
-90
query I rowsort
SELECT DISTINCT col0 + - 71 + + col0 FROM tab2 AS cor0
----
-57
85
87
query I rowsort
SELECT + cor1.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - ( + col2 ) * col2 + 96 FROM tab2 AS cor0
----
-1348
-580
-633
query I rowsort
SELECT DISTINCT col0 * col1 - - col2 * 80 FROM tab1 AS cor0
----
4398
5200
8720
query I rowsort
SELECT + col0 + + cor0.col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + + col0 + - ( + col0 ) * 92 FROM tab2 AS cor0
----
-637
-7098
-7189
query I rowsort
SELECT ALL + 33 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
query I rowsort
SELECT ALL tab1.col0 + - ( tab1.col1 ) AS col0 FROM tab1
----
-23
54
67
query I rowsort
SELECT - col1 + + cor0.col2 * cor0.col0 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT col0 + col2 * col2 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT ALL col1 + tab0.col1 + + col0 * col1 * col2 AS col0 FROM tab0
----
3589
664300
68284
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 col2 FROM tab0 AS cor0
----
25
25
25
query I rowsort
SELECT + - cor0.col2 + + col0 * - col0 * 30 AS col0 FROM tab0 AS cor0
----
-17313
-237712
-36751
query I rowsort
SELECT ( + col1 ) + + 85 AS col2 FROM tab2 AS cor0
----
102
116
144
query I rowsort
SELECT - - cor0.col1 + col1 AS col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + col1 * col2 * col0 AS col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT ( - ( col0 ) ) AS col0 FROM tab2
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1294
SELECT ALL + col1 * col2 + - col2 DIV + 10 col2 FROM tab1 AS cor0
----
1239
1399
565
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL + col1 * col2 + - col2 / + 10 col2 FROM tab1 AS cor0
----
1239
1399
565
query I rowsort
SELECT + col0 + col0 + ( + col0 + col1 ) AS col2 FROM tab2 AS cor0
----
254
293
52
query I rowsort
SELECT + 10 + cor0.col2 + - 43 FROM tab1 AS cor0
----
21
24
63
query I rowsort
SELECT ALL + 16 FROM tab0
----
16
16
16
query I rowsort
SELECT col0 + col1 * col1 * 69 AS col0 FROM tab0
----
510348
571478
649256
query I rowsort
SELECT + 82 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT 31 * - tab2.col0 * + col1 FROM tab2
----
-142662
-41633
-6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT col2 * - tab1.col1 * col1 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT 51 * col2 * 15 FROM tab2
----
19890
20655
29070
query I rowsort
SELECT + col0 * col2 + + cor0.col2 + - col0 FROM tab2 AS cor0
----
1976
209
2961
query I rowsort
SELECT - col1 * - col0 * 96 FROM tab1
----
61440
7488
99840
query I rowsort
SELECT DISTINCT 64 FROM tab1, tab0, tab1 AS cor0
----
64
query I rowsort
SELECT + 20 AS col1 FROM tab0 AS cor0
----
20
20
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1308
SELECT col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1308
SELECT col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1309
SELECT - col0 DIV 37 + - col1 FROM tab2
----
-19
-31
-61
skipif mysql # not compatible
query I rowsort label-1309
SELECT - col0 / 37 + - col1 FROM tab2
----
-19
-31
-61
query I rowsort
SELECT 65 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c
query I rowsort
SELECT ALL - 46 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d
onlyif mysql # use DIV operator for integer division
query I rowsort label-1312
SELECT col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-1312
SELECT col0 / - col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1313
SELECT + col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-1313
SELECT + col2 / + col1 AS col0 FROM tab2 AS cor0
----
0
0
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-1314
SELECT col1 DIV 32 FROM tab0 AS cor0
----
2
2
3
skipif mysql # not compatible
query I rowsort label-1314
SELECT col1 / 32 FROM tab0 AS cor0
----
2
2
3
query I rowsort
SELECT cor0.col1 * col2 - col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1316
SELECT - + CAST( NULL AS SIGNED ) * - 82 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1316
SELECT - + CAST ( NULL AS INTEGER ) * - 82 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1317
SELECT - col0 DIV - ( - col0 ) - + col2 col1 FROM tab1 cor0
----
-55
-58
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1317
SELECT - col0 / - ( - col0 ) - + col2 col1 FROM tab1 cor0
----
-55
-58
-97
query I rowsort
SELECT + col0 - col2 * col2 * + col1 FROM tab1 AS cor0
----
-119728
-32426
-75813
query I rowsort
SELECT col0 * + col2 * + tab0.col1 AS col0 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT + col0 * - col2 + col2 AS col1 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT col0 + + col1 + + col2 FROM tab1
----
131
189
83
query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE - col0 * col2 + - col0 IN ( + col2 + - col1 )
----
query I rowsort
SELECT - col0 * col2 * tab1.col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT ALL + col2 * col1 * col0 FROM tab0
----
3395
664118
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 + - col0 + + col2 col0 FROM tab1
----
185
727
93
query I rowsort
SELECT ALL + tab2.col1 FROM tab2 WHERE col2 + col0 BETWEEN + tab2.col0 AND NULL
----
query I rowsort
SELECT ALL col1 + + col1 + + col2 AS col0 FROM tab1
----
106
122
77
query I rowsort
SELECT DISTINCT + col0 * col2 + - col2 - - col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-1329
SELECT DISTINCT - col0 DIV col2 + col0 * col2 AS col0 FROM tab0 AS cor0
----
0
7297
792
skipif mysql # not compatible
query I rowsort label-1329
SELECT DISTINCT - col0 / col2 + col0 * col2 AS col0 FROM tab0 AS cor0
----
0
7297
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-1330
SELECT col2 DIV - col1 + col0 * - col1 FROM tab2 AS cor0
----
-1345
-217
-4602
skipif mysql # not compatible
query I rowsort label-1330
SELECT col2 / - col1 + col0 * - col1 FROM tab2 AS cor0
----
-1345
-217
-4602
query I rowsort
SELECT + col2 + tab1.col1 AS col1 FROM tab1
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 + + col2 - - tab1.col1 col1 FROM tab1
----
1149
158
707
query I rowsort
SELECT ALL - tab0.col2 * col0 AS col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT col2 + - col2 - col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL + col2 * tab2.col2 AS col0 FROM tab2
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-1336
SELECT - col2 DIV col0 AS col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-1336
SELECT - col2 / col0 AS col0 FROM tab1
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 * col0 col2 FROM tab2
----
189
2028
3002
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - col1 + tab0.col2 )
----
query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + col0 )
----
query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( + col1 / col1 )
----
query I rowsort
SELECT tab2.col0 AS col2 FROM tab2 WHERE NOT col0 IN ( col0 * col2 )
----
7
78
79
query I rowsort
SELECT + col0 + col1 * + col2 + - col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT - col1 * col0 + - col0 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT DISTINCT + col2 * - tab0.col2 AS col2 FROM tab0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-1345
SELECT + col1 + + col1 DIV - col0 FROM tab2 AS cor0
----
17
27
59
skipif mysql # not compatible
query I rowsort label-1345
SELECT + col1 + + col1 / - col0 FROM tab2 AS cor0
----
17
27
59
query I rowsort
SELECT DISTINCT - - col1 + col2 * - col1 FROM tab1 cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT ( col0 ) BETWEEN ( col2 ) AND ( NULL )
----
86
query I rowsort
SELECT DISTINCT col2 - - col1 AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT + cor0.col0 + - col1 AS col2 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT - col0 * tab0.col1 AS col2 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1351
SELECT + col0 * col1 DIV + col0 AS col1 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-1351
SELECT + col0 * col1 / + col0 AS col1 FROM tab2
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-1352
SELECT + col2 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1352
SELECT + col2 / - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 - col1 col2 FROM tab0
----
-154
-159
-165
query I rowsort
SELECT + col1 * col1 AS col2 FROM tab0 cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-1355
SELECT col1 DIV + 24 AS col0 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-1355
SELECT col1 / + 24 AS col0 FROM tab2 AS cor0
----
0
1
2
query I rowsort
SELECT ALL col2 * - ( - 89 * col2 ) AS col0 FROM tab0 AS cor0
----
598436
89
96921
onlyif mysql # use DIV operator for integer division
query I rowsort label-1357
SELECT + 14 * col1 DIV - 58 + + col2 AS col1 FROM tab2
----
12
20
34
skipif mysql # not compatible
query I rowsort label-1357
SELECT + 14 * col1 / - 58 + + col2 AS col1 FROM tab2
----
12
20
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( tab2.col0 ) col1 FROM tab2
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1359
SELECT DISTINCT col2 + CAST( NULL AS DECIMAL ) * - col1 AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT col2 + CAST ( NULL AS REAL ) * - col1 AS col1 FROM tab0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1360
SELECT ALL - 50 DIV cor0.col1 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL - 50 / cor0.col1 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT - col1 * ( 62 ) + col2 * + 58 FROM tab1 AS cor0
----
1520
2686
4762
query I rowsort
SELECT ALL - col2 + - ( cor0.col1 + col1 * + ( - col2 ) ) FROM tab0 cor0
----
-1
2719
7289
query I rowsort
SELECT ALL + - cor0.col1 + col2 AS col2 FROM tab2 cor0
----
-33
-4
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1365
SELECT ALL col0 + + CAST( cor0.col1 AS SIGNED ) * + cor0.col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680
skipif mysql # not compatible
query I rowsort label-1365
SELECT ALL col0 + + CAST ( cor0.col1 AS INTEGER ) * + cor0.col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1366
SELECT - col1 + + CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1366
SELECT - col1 + + CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * 16 * - col1 AS col2 FROM tab2 cor0
----
-15376
-4624
-55696
onlyif mysql # use DIV operator for integer division
query I rowsort label-1368
SELECT ALL - col0 DIV 9 AS col2 FROM tab0 AS cor0
----
-2
-3
-9
skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL - col0 / 9 AS col2 FROM tab0 AS cor0
----
-2
-3
-9
query I rowsort
SELECT + + col1 * + col2 - - col1 AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT + col0 * col2 + col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + ( cor0.col2 ) col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL col2 * 34 AS col2 FROM tab2 AS cor0
----
1292
884
918
query I rowsort
SELECT col0 + - col1 - col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL col0 * tab2.col0 FROM tab2
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + col2 col1 FROM tab0
----
53
9
96
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( col0 + col2 * - col2 * col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1377
SELECT DISTINCT col1 - + col1 DIV - col2 AS col1 FROM tab0 WHERE ( col2 + col1 * col1 ) NOT IN ( col1 * - col0 * tab0.col1 )
----
194
88
92
skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT col1 - + col1 / - col2 AS col1 FROM tab0 WHERE ( col2 + col1 * col1 ) NOT IN ( col1 * - col0 * tab0.col1 )
----
194
88
92
query I rowsort
SELECT ALL tab1.col2 * col0 - col0 FROM tab1 WHERE NOT - col1 / col1 + + col1 + col2 NOT IN ( col0 )
----
query I rowsort
SELECT DISTINCT + col0 * - col2 * tab2.col0 AS col1 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT - tab2.col1 * col1 + col2 * tab2.col1 FROM tab2
----
-124
-1947
357
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 * col0 + - col1 col2 FROM tab2
----
18
6025
6224
query I rowsort
SELECT + col2 * col1 * - col0 + col2 AS col0 FROM tab2
----
-119626
-50996
-5832
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 NOT BETWEEN NULL AND ( tab0.col2 * col2 )
----
query III rowsort
SELECT * FROM tab0 WHERE + col0 >= ( col1 )
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 = ( col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT + col2 * - col2 + + col0 FROM tab1
----
-2913
-3185
-9136
query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND col2
----
query I rowsort
SELECT DISTINCT col1 * col2 - col0 FROM tab0
----
2814
62
7373
query I rowsort
SELECT - col0 * tab2.col2 * col0 + + col2 AS col0 FROM tab2
----
-1296
-158158
-237120
query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + + col1 + col1 * ( + 33 ) + + col1 AS col0 FROM tab0 AS cor0
----
3010
3185
3395
query I rowsort
SELECT col2 + + col1 * col0 FROM tab2
----
1381
244
4628
query I rowsort
SELECT ALL + + 2 + col1 * - 45 + + 44 AS col2 FROM tab1 AS cor0
----
-1124
-404
-539
query I rowsort
SELECT - cor0.col2 * cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 86c8e75d83d283b29460c020ab5988af
query I rowsort
SELECT + + cor0.col1 AS col0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT - ( col0 ) AS col0 FROM tab2 cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 * cor0.col0 col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col0 + 83 FROM tab0
----
107
118
172
query I rowsort
SELECT DISTINCT ( - 67 ) FROM tab2 cor0 CROSS JOIN tab0, tab0 AS cor1
----
-67
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab1 cor2
----
3645 values hashing to a8d2ba8b8eb568b0a9a1771ccb0a8f23
query I rowsort
SELECT cor0.col2 * - col1 * 2 FROM tab1 AS cor0
----
-1140
-2496
-2808
query I rowsort
SELECT ALL + col1 - + 11 AS col1 FROM tab0 AS cor0
----
75
80
86
query I rowsort
SELECT DISTINCT + col2 * 45 FROM tab0 AS cor0
----
1485
3690
45
query I rowsort
SELECT col2 * + col2 + - col0 AS col0 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT ALL + col1 + + col2 AS col1 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT cor0.col0 + + cor0.col2 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1407
SELECT ALL col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 83 * + ( col0 ) + 80 AS col0 FROM tab1 AS cor0
----
329
5392
6720
query I rowsort
SELECT - - 13 * + col0 + col0 AS col0 FROM tab0 cor0
----
1246
336
490
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1410
SELECT DISTINCT CAST( - col1 AS SIGNED ) + col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1410
SELECT DISTINCT CAST ( - col1 AS INTEGER ) + col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT col1 + - col2 AS col2 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT ( 49 ) * - col2 FROM tab2
----
-1274
-1323
-1862
query I rowsort
SELECT ALL - col2 * - col1 + - col2 FROM tab0
----
2805
7380
96
query I rowsort
SELECT ALL - - col1 + + col2 * - ( cor0.col2 + - cor0.col0 ) FROM tab0 AS cor0
----
-211
131
665
query I rowsort
SELECT + + col0 * cor0.col2 + 12 FROM tab2 AS cor0
----
201
2040
3014
query I rowsort
SELECT ALL + + cor0.col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL 37 + col1 * - 37 FROM tab2
----
-1110
-2146
-592
query I rowsort
SELECT + 8 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
onlyif mysql # use DIV operator for integer division
query I rowsort label-1419
SELECT ALL + + cor0.col2 + col2 DIV col1 FROM tab2 AS cor0
----
26
27
40
skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL + + cor0.col2 + col2 / col1 FROM tab2 AS cor0
----
26
27
40
query I rowsort
SELECT DISTINCT - 74 * cor0.col2 + + col0 + + 30 AS col1 FROM tab2 AS cor0
----
-1816
-1961
-2703
query I rowsort
SELECT DISTINCT - + col0 + - col0 * - col2 AS col2 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT + ( cor0.col0 ) * - col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT - col2 - 14 FROM tab0 AS cor0
----
-15
-47
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 * + ( col1 ) - col1 col2 FROM tab2 AS cor0
----
-22630
-24565
-39943
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1425
SELECT DISTINCT - col0 / + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1425
SELECT DISTINCT - col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + + col1 + col2 * + cor0.col2 + col0 FROM tab0 AS cor0
----
1199
133
6904
onlyif mysql # use DIV operator for integer division
query I rowsort label-1427
SELECT col2 DIV tab2.col0 + CAST( + ( col2 ) AS SIGNED ) + 96 DIV - tab2.col1 AS col0 FROM tab2
----
25
27
33
skipif mysql # not compatible
query I rowsort label-1427
SELECT col2 / tab2.col0 + CAST ( + ( col2 ) AS INTEGER ) + 96 / - tab2.col1 AS col0 FROM tab2
----
25
27
33
query I rowsort
SELECT 47 + - col0 + - 37 * col1 AS col0 FROM tab0
----
-3159
-3409
-3577
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) + col0 col1 FROM tab1
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1430
SELECT + col2 DIV CAST( col0 AS SIGNED ) + - col0 col2 FROM tab1 AS cor0
----
-64
-79
15
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1430
SELECT + col2 / CAST ( col0 AS INTEGER ) + - col0 col2 FROM tab1 AS cor0
----
-64
-79
15
query I rowsort
SELECT DISTINCT tab0.col1 - + 76 FROM tab0
----
10
15
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + + col0 col1 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40
query I rowsort
SELECT col0 + - ( - col2 ) AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL + 22 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
query I rowsort
SELECT - + col0 * ( ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL + - 17 + col2 FROM tab2 AS cor0
----
10
21
9
query I rowsort
SELECT col2 * 22 FROM tab2
----
572
594
836
query I rowsort
SELECT ALL - tab0.col0 * - col0 FROM tab0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + + 7 * + 84 FROM tab2 AS cor0
----
588
588
588
query I rowsort
SELECT DISTINCT 51 * - col2 + col0 FROM tab0 AS cor0
----
-16
-1659
-4093
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 * col1 col0 FROM tab2 AS cor0
----
-1770
-510
-930
query I rowsort
SELECT 21 + col1 FROM tab2 AS cor0
----
38
52
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1445
SELECT DISTINCT - CAST( + 40 AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0
----
-40
skipif mysql # not compatible
query I rowsort label-1445
SELECT DISTINCT - CAST ( + 40 AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0
----
-40
query I rowsort
SELECT 2 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT + 56 * - col2 AS col0 FROM tab2 AS cor0
----
-1456
-1512
-2128
onlyif mysql # use DIV operator for integer division
query I rowsort label-1449
SELECT + 32 * cor0.col1 DIV + 46 AS col1 FROM tab1 AS cor0
----
18
6
9
skipif mysql # not compatible
query I rowsort label-1449
SELECT + 32 * cor0.col1 / + 46 AS col1 FROM tab1 AS cor0
----
18
6
9
query I rowsort
SELECT - 75 * - col2 FROM tab1 cor0
----
4050
4275
7200
query I rowsort
SELECT DISTINCT + 68 AS col2 FROM tab0, tab2 AS cor0
----
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 78 ) col2 FROM tab2
----
78
query I rowsort
SELECT DISTINCT + cor1.col0 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
3
64
80
query I rowsort
SELECT + 83 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
query I rowsort
SELECT DISTINCT + 73 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
73
query I rowsort
SELECT - ( - col2 * ( - col2 ) ) AS col2 FROM tab2
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * col2 col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - 15 * col0 + - cor0.col1 * col2 FROM tab1 AS cor0
----
-1449
-1530
-2448
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + col1 col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - - 44 FROM tab1 cor0
----
44
query I rowsort
SELECT 7 AS col2 FROM tab1 AS cor0
----
7
7
7
query I rowsort
SELECT DISTINCT 98 AS col0 FROM tab2
----
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 25 * - col0 col0 FROM tab1
----
-1543
-1904
-21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1464
SELECT - CAST( NULL AS SIGNED ) + + col0 - - tab2.col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1464
SELECT - CAST ( NULL AS INTEGER ) + + col0 - - tab2.col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 26 * col1 + - col2 FROM tab1
----
203
242
622
query I rowsort
SELECT 81 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
query I rowsort
SELECT - 57 - + col0 AS col1 FROM tab0
----
-146
-81
-92
query I rowsort
SELECT col0 * col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT DISTINCT - col2 * - cor0.col2 + + cor0.col1 * col1 + + col2 * 4 AS col1 FROM tab2 AS cor0
----
1798
1885
4261
onlyif mysql # use DIV operator for integer division
query I rowsort label-1470
SELECT DISTINCT + + 82 DIV - col2 + + 12 FROM tab0 AS cor0
----
-70
10
11
skipif mysql # not compatible
query I rowsort label-1470
SELECT DISTINCT + + 82 / - col2 + + 12 FROM tab0 AS cor0
----
-70
10
11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1471
SELECT - col2 * + col1 + - CAST( - col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
-1152
-1350
-513
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1471
SELECT - col2 * + col1 + - CAST ( - col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT col0 + col1 * col2 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-1473
SELECT col0 DIV - cor0.col1 + ( cor0.col1 ) col1 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1473
SELECT col0 / - cor0.col1 + ( cor0.col1 ) col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - col0 * cor0.col1 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-1475
SELECT ALL + col2 DIV - col0 + + ( + col0 ) + col1 * 71 * col2 AS col0 FROM tab0 AS cor0
----
201521
529891
6922
skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL + col2 / - col0 + + ( + col0 ) + col1 * 71 * col2 AS col0 FROM tab0 AS cor0
----
201521
529891
6922
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 65 * + col1 + - col0 col0 FROM tab1 AS cor0
----
1687
586
765
onlyif mysql # use DIV operator for integer division
query I rowsort label-1477
SELECT DISTINCT 32 + col0 DIV col1 FROM tab0
----
32
skipif mysql # not compatible
query I rowsort label-1477
SELECT DISTINCT 32 + col0 / col1 FROM tab0
----
32
query I rowsort
SELECT - + ( col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + - col1 + - col0 + col2 FROM tab0 AS cor0
----
-131
-77
-98
query I rowsort
SELECT ALL + 31 FROM tab2, tab0 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
onlyif mysql # use DIV operator for integer division
query I rowsort label-1481
SELECT ALL + col1 - col2 DIV - col2 col1 FROM tab1 cor0
----
11
14
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL + col1 - col2 / - col2 col1 FROM tab1 cor0
----
11
14
27
query I rowsort
SELECT DISTINCT + ( col0 ) + + 58 * 85 + col1 FROM tab1 AS cor0
----
4959
5004
5023
query I rowsort
SELECT ALL + cor0.col0 * col1 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT 1 AS col2 FROM tab2 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL + col2 + col0 * CAST ( + col0 + col2 * col2 AS REAL ) col1 FROM tab1 AS cor0
----
212089
743776
8811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 + + col0 col1 FROM tab0 AS cor0
----
110
164
99
query I rowsort
SELECT ALL - col0 + col2 - 2 AS col2 FROM tab1 cor0
----
-9
14
49
query I rowsort
SELECT DISTINCT + col0 * - ( + ( - col0 ) + 71 ) AS col2 FROM tab1
----
-204
-448
720
skipif mysql # not compatible
query I rowsort
SELECT - col2 + CAST ( - 66 AS REAL ) AS col2 FROM tab0 cor0
----
-148
-67
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-1490
SELECT + col0 DIV cor0.col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1490
SELECT + col0 / cor0.col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - + col1 + col0 * - col0 FROM tab2 cor0
----
-6143
-6258
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1492
SELECT ALL + cor0.col1 * - CAST( 99 + - col2 AS SIGNED ) / + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL + cor0.col1 * - CAST ( 99 + - col2 AS INTEGER ) / + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * + cor0.col0 * col2 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT DISTINCT - col2 + + col2 * + ( + col0 ) FROM tab2 cor0
----
162
2002
2964
query I rowsort
SELECT ALL cor0.col1 + 2 - + cor0.col0 FROM tab1 AS cor0
----
-52
-65
25
query I rowsort
SELECT DISTINCT - + ( col2 ) * col0 - + col0 AS col2 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT DISTINCT + col1 + col0 * + col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL cor0.col1 * + cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 16ae0e1090cb09b93854a4788f17716b
query I rowsort
SELECT ALL ( + col1 ) + col0 * - col0 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT + tab2.col0 * col2 - - col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT - col1 * + 72 FROM tab2 AS cor0
----
-1224
-2232
-4248
query I rowsort
SELECT ALL + + 84 * + 35 FROM tab2 AS cor0
----
2940
2940
2940
query I rowsort
SELECT ( cor0.col2 ) FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - ( - 72 ) + + cor0.col0 FROM tab1 AS cor0
----
136
152
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-1505
SELECT + - 87 + cor0.col1 DIV col1 FROM tab2 AS cor0
----
-86
-86
-86
skipif mysql # not compatible
query I rowsort label-1505
SELECT + - 87 + cor0.col1 / col1 FROM tab2 AS cor0
----
-86
-86
-86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1506
SELECT - - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1506
SELECT - - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * 96 AS col1 FROM tab2 cor0
----
-1632
-2976
-5664
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT 22 * 10 FROM tab1 AS cor0
----
220
query I rowsort
SELECT col1 + + col1 * col2 AS col0 FROM tab1 cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT - - 74 * col1 FROM tab2 AS cor0
----
1258
2294
4366
query I rowsort
SELECT DISTINCT col1 + col1 * - col2 * + col2 FROM tab1
----
-119795
-32480
-75790
query I rowsort
SELECT ALL + col0 * + 84 + + 11 FROM tab2
----
599
6563
6647
query I rowsort
SELECT ALL + - ( 0 ) * col2 + + 4 FROM tab2 AS cor0
----
4
4
4
query I rowsort
SELECT DISTINCT - - 21 * + col2 AS col1 FROM tab0 AS cor0
----
1722
21
693
query I rowsort
SELECT DISTINCT 25 * col2 * col1 FROM tab1
----
14250
31200
35100
query I rowsort
SELECT DISTINCT - cor0.col2 * 33 + col2 * col1 AS col2 FROM tab0 AS cor0
----
1749
4756
64
query I rowsort
SELECT - - ( cor0.col1 ) * + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT - + col1 + ( - col2 ) * - cor0.col2 + 88 AS col2 FROM tab0 AS cor0
----
-8
1091
6721
query I rowsort
SELECT ALL - 72 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1, tab2 cor2
----
243 values hashing to 5c2c2ca7fa0b39f4356738191775bccf
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 col0 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-1522
SELECT col1 DIV + col0 AS col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-1522
SELECT col1 / + col0 AS col0 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT DISTINCT - col2 + + col0 AS col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT 59 + col2 AS col2 FROM tab1
----
113
116
155
onlyif mysql # use DIV operator for integer division
query I rowsort label-1525
SELECT + ( col0 ) - + ( col1 ) DIV col1 FROM tab1
----
2
63
79
skipif mysql # not compatible
query I rowsort label-1525
SELECT + ( col0 ) - + ( col1 ) / col1 FROM tab1
----
2
63
79
query I rowsort
SELECT ALL col2 + col1 * - 61 * + col0 + - ( ( - col1 ) ) AS col0 FROM tab0
----
-125785
-206997
-493866
query I rowsort
SELECT ALL 16 * cor0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 553786862e71de41439da18c99707a4e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1528
SELECT DISTINCT tab2.col2 * CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1528
SELECT DISTINCT tab2.col2 * CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT - col1 + 46 * + col0 AS col2 FROM tab1 cor0
----
112
2934
3667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - 7 + + cor0.col0 col2 FROM tab2 AS cor0
----
-210
-335
-40
onlyif mysql # use DIV operator for integer division
query I rowsort label-1531
SELECT + col0 DIV - col0 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1531
SELECT + col0 / - col0 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - col2 + - ( ( col0 ) ) * + col2 * col1 FROM tab2 cor0
----
-119678
-51072
-5886
query I rowsort
SELECT ALL col1 * + 33 + col0 FROM tab0 AS cor0
----
2862
3092
3236
query I rowsort
SELECT ALL col2 + + 45 * cor0.col0 FROM tab0 AS cor0
----
1113
1576
4087
query I rowsort
SELECT - col1 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT 19 - - col1 FROM tab0 AS cor0
----
105
110
116
query I rowsort
SELECT + + col2 + + col0 * ( + col1 ) FROM tab0 AS cor0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 col1 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-1539
SELECT DISTINCT col2 + - col1 * col2 DIV 87 AS col1 FROM tab1
----
38
51
82
skipif mysql # not compatible
query I rowsort label-1539
SELECT DISTINCT col2 + - col1 * col2 / 87 AS col1 FROM tab1
----
38
51
82
query I rowsort
SELECT + col2 + + col2 - - 24 * - 98 FROM tab2 AS cor0
----
-2276
-2298
-2300
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + tab0.col1 + + col0 * 44 col1 FROM tab0
----
1118
1602
3918
query I rowsort
SELECT 94 * + 44 AS col2 FROM tab1
----
4136
4136
4136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT + 1 * col0 + col0 FROM tab1
----
128
160
6
query I rowsort
SELECT DISTINCT 87 + + col1 FROM tab2 AS cor0
----
104
118
146
query I rowsort
SELECT - 79 * + 24 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 80ed54da7b4b24b103251ce55cbe2110
query I rowsort
SELECT - col2 * - col0 AS col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - col0 * + col1 * + col0 AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT ALL col2 + ( col2 ) AS col2 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT ALL 61 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT ALL + 0 + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT DISTINCT - + ( - col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + ( col0 ) * col0 AS col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT + 90 * tab0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 5d7a7151104f767615b2549d3d061db9
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab1 cor1, tab2 AS cor2
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766
query I rowsort
SELECT DISTINCT - + cor0.col2 AS col0 FROM tab1, tab0 AS cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 69 + cor0.col2 col0 FROM tab1 AS cor0
----
123
126
165
onlyif mysql # use DIV operator for integer division
query I rowsort label-1558
SELECT + col0 + 33 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
11
78
79
skipif mysql # not compatible
query I rowsort label-1558
SELECT + col0 + 33 / cor0.col0 AS col0 FROM tab2 AS cor0
----
11
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 col1 FROM tab2
----
97
97
97
query I rowsort
SELECT + 54 AS col2 FROM tab2
----
54
54
54
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0 CROSS JOIN tab1, tab0 AS cor1
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f
onlyif mysql # use DIV operator for integer division
query I rowsort label-1562
SELECT DISTINCT + 22 DIV - col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT + 22 / - col0 FROM tab0
----
0
query I rowsort
SELECT 62 + col2 AS col2 FROM tab1 AS cor0
----
116
119
158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1564
SELECT CAST( 24 AS SIGNED ) FROM tab2 AS cor0
----
24
24
24
skipif mysql # not compatible
query I rowsort label-1564
SELECT CAST ( 24 AS INTEGER ) FROM tab2 AS cor0
----
24
24
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - 76 ) col2 FROM tab1 AS cor0
----
76
76
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-1566
SELECT col2 * cor0.col1 DIV 90 AS col2 FROM tab2 AS cor0
----
17
7
9
skipif mysql # not compatible
query I rowsort label-1566
SELECT col2 * cor0.col1 / 90 AS col2 FROM tab2 AS cor0
----
17
7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1567
SELECT + col2 DIV col0 AS col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-1567
SELECT + col2 / col0 AS col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT col2 * col0 + + col2 + col0 FROM tab1
----
219
3769
7856
query I rowsort
SELECT + 94 + - col0 AS col2 FROM tab0
----
5
59
70
query I rowsort
SELECT - 59 AS col0 FROM tab1 AS cor0
----
-59
-59
-59
query I rowsort
SELECT DISTINCT + + col0 + col2 FROM tab1 cor0
----
121
176
57
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 58b53d9f2c5d79e6fe94b4a97272440e
query I rowsort
SELECT DISTINCT + + cor0.col0 * cor0.col0 * + col0 + col1 AS col1 FROM tab1 cor0
----
262154
512013
53
query I rowsort
SELECT + cor0.col2 + + ( - 23 ) FROM tab1 AS cor0
----
31
34
73
query I rowsort
SELECT - col2 * + tab1.col0 AS col1 FROM tab1
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1576
SELECT - col0 * - CAST( col1 AS SIGNED ) + col1 * col1 * col0 AS col1 FROM tab1 AS cor0
----
14560
2106
7040
skipif mysql # not compatible
query I rowsort label-1576
SELECT - col0 * - CAST ( col1 AS INTEGER ) + col1 * col1 * col0 AS col1 FROM tab1 AS cor0
----
14560
2106
7040
query I rowsort
SELECT + 2 FROM tab2, tab1 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
onlyif mysql # use DIV operator for integer division
query I rowsort label-1578
SELECT ALL + - col0 DIV col0 + col1 * - col1 * col1 + col2 * ( - 42 ) DIV col1 FROM tab0 AS cor0
----
-636073
-753609
-912674
skipif mysql # not compatible
query I rowsort label-1578
SELECT ALL + - col0 / col0 + col1 * - col1 * col1 + col2 * ( - 42 ) / col1 FROM tab0 AS cor0
----
-636073
-753609
-912674
query I rowsort
SELECT ALL + 56 + cor0.col1 FROM tab2 AS cor0
----
115
73
87
query I rowsort
SELECT + 73 * 65 FROM tab2 cor0
----
4745
4745
4745
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1581
SELECT - CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1581
SELECT - CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 7 * col0 + - cor0.col1 * 98 AS col2 FROM tab0 cor0
----
-8260
-8295
-9261
query I rowsort
SELECT + + col2 + - ( col2 ) * + col1 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col1 * + col2 col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT tab1.col1 * col1 * 95 FROM tab1
----
16055
64220
9500
query I rowsort
SELECT 61 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT ALL - col2 * 41 FROM tab0 AS cor0
----
-1353
-3362
-41
onlyif mysql # use DIV operator for integer division
query I rowsort label-1588
SELECT - - col1 DIV - 29 FROM tab0 AS cor0
----
-2
-3
-3
skipif mysql # not compatible
query I rowsort label-1588
SELECT - - col1 / - 29 FROM tab0 AS cor0
----
-2
-3
-3
query I rowsort
SELECT ALL + col2 * + 83 FROM tab2 AS cor0
----
2158
2241
3154
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT cor0.col2 * + 44 FROM tab0 AS cor0
----
1452
3608
44
query I rowsort
SELECT DISTINCT - col1 * - col2 * + col1 FROM tab1 cor0
----
16224
36504
5700
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1593
SELECT DISTINCT CAST( 39 AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
39
skipif mysql # not compatible
query I rowsort label-1593
SELECT DISTINCT CAST ( 39 AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-1594
SELECT ALL + col0 * 57 DIV col2 + col2 FROM tab1 AS cor0
----
121
143
57
skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL + col0 * 57 / col2 + col2 FROM tab1 AS cor0
----
121
143
57
query I rowsort
SELECT DISTINCT - - col0 * - col0 * 72 AS col2 FROM tab2 AS cor0
----
-3528
-438048
-449352
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 24 col1 FROM tab0 cor0
----
2064
2184
2328
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 + + 94 col0 FROM tab2
----
120
121
132
query I rowsort
SELECT ALL + 95 FROM tab1, tab0 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT - 87 FROM tab2, tab1 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23
onlyif mysql # use DIV operator for integer division
query I rowsort label-1600
SELECT DISTINCT 13 DIV + 24 AS col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-1600
SELECT DISTINCT 13 / + 24 AS col1 FROM tab0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1601
SELECT + 78 * col2 * col0 + col1 DIV col0 + col0 * ( 69 ) AS col1 FROM tab2
----
15229
163566
239607
skipif mysql # not compatible
query I rowsort label-1601
SELECT + 78 * col2 * col0 + col1 / col0 + col0 * ( 69 ) AS col1 FROM tab2
----
15229
163566
239607
query I rowsort
SELECT DISTINCT 74 * col0 + col0 + 27 AS col0 FROM tab0
----
1827
2652
6702
onlyif mysql # use DIV operator for integer division
query I rowsort label-1603
SELECT + ( col0 ) + + col2 DIV - 95 AS col2 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-1603
SELECT + ( col0 ) + + col2 / - 95 AS col2 FROM tab2
----
7
78
79
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 + 68 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT DISTINCT - 99 * + col0 AS col2 FROM tab1
----
-297
-6336
-7920
query I rowsort
SELECT + ( + col1 ) + + col0 AS col0 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT + ( + col0 ) + + col1 AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL 72 + - 96 FROM tab0
----
-24
-24
-24
query I rowsort
SELECT 39 * col0 + + col0 + col2 * col1 AS col0 FROM tab1
----
1524
3130
4448
query I rowsort
SELECT 89 * - col1 FROM tab2 AS cor0
----
-1513
-2759
-5251
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 col2 FROM tab0 cor0
----
65
query I rowsort
SELECT - 34 * col2 AS col0 FROM tab0
----
-1122
-2788
-34
query I rowsort
SELECT ALL - col0 * + col2 * cor0.col1 + - col0 FROM tab0 AS cor0
----
-3430
-664207
-68136
query I rowsort
SELECT ALL - + col1 + cor0.col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + col1 * col1 + col1 * - cor0.col2 FROM tab2 cor0
----
-357
124
1947
query I rowsort
SELECT - + 40 * col0 AS col2 FROM tab0 AS cor0
----
-1400
-3560
-960
query I rowsort
SELECT ALL + + col2 * + col2 * - 57 + - col1 FROM tab1 AS cor0
----
-166238
-185203
-525325
onlyif mysql # use DIV operator for integer division
query I rowsort label-1620
SELECT DISTINCT - - col1 DIV cor0.col0 FROM tab0 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT - - col1 / cor0.col0 FROM tab0 cor0
----
1
2
3
query I rowsort
SELECT ALL - 90 + col2 + - ( col2 ) AS col1 FROM tab2
----
-90
-90
-90
query I rowsort
SELECT DISTINCT 80 + + col2 AS col1 FROM tab2 AS cor0
----
106
107
118
query I rowsort
SELECT ALL - 7 * col1 - col0 AS col2 FROM tab0 AS cor0
----
-626
-714
-726
query I rowsort
SELECT + + 24 - col0 * + ( col2 ) AS col0 FROM tab2 AS cor0
----
-165
-2004
-2978
query I rowsort
SELECT DISTINCT 90 * - col0 AS col1 FROM tab1 AS cor0
----
-270
-5760
-7200
query I rowsort
SELECT DISTINCT + cor0.col2 + + col0 AS col0 FROM tab1 cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1627
SELECT - col0 DIV col2 + 61 * col1 FROM tab0 cor0
----
5246
5550
5882
skipif mysql # not compatible
query I rowsort label-1627
SELECT - col0 / col2 + 61 * col1 FROM tab0 cor0
----
5246
5550
5882
onlyif mysql # use DIV operator for integer division
query I rowsort label-1628
SELECT ALL + cor0.col0 DIV col1 - - 13 FROM tab1 AS cor0
----
13
19
19
skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL + cor0.col0 / col1 - - 13 FROM tab1 AS cor0
----
13
19
19
query I rowsort
SELECT ALL cor0.col1 + ( + col1 ) * col1 + - ( 51 ) * - col2 AS col2 FROM tab1 AS cor0
----
3017
3456
5078
query I rowsort
SELECT - col0 * col2 AS col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + + col0 * + col1 + - col0 FROM tab2 AS cor0
----
1264
210
4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-1632
SELECT - col2 DIV col0 + ( col1 ) FROM tab1 AS cor0
----
10
12
8
skipif mysql # not compatible
query I rowsort label-1632
SELECT - col2 / col0 + ( col1 ) FROM tab1 AS cor0
----
10
12
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1633
SELECT + col0 + CAST( - 93 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-14
-15
-86
skipif mysql # not compatible
query I rowsort label-1633
SELECT + col0 + CAST ( - 93 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-14
-15
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-1634
SELECT + col1 DIV 73 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1634
SELECT + col1 / 73 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1635
SELECT + - col0 + + col1 DIV 77 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-1635
SELECT + - col0 + + col1 / 77 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + + col1 * + col1 + col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT + 29 + col1 FROM tab1
----
39
42
55
query I rowsort
SELECT DISTINCT - 15 + - col1 FROM tab1
----
-25
-28
-41
query I rowsort
SELECT - - cor0.col1 * col0 + ( col2 * col2 + col0 ) FROM tab1 AS cor0
----
10336
2997
3953
query I rowsort
SELECT col0 * - 94 FROM tab1 AS cor0
----
-282
-6016
-7520
query I rowsort
SELECT DISTINCT - col2 + - ( col0 ) - 47 AS col0 FROM tab1 AS cor0
----
-104
-168
-223
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1642
SELECT + CAST( NULL AS SIGNED ) - - col2 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1642
SELECT + CAST ( NULL AS INTEGER ) - - col2 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col2 * ( col1 ) + + 76 * col2 AS col0 FROM tab2 AS cor0
----
2889
3510
3534
query I rowsort
SELECT + - 78 - col1 AS col1 FROM tab1 AS cor0
----
-104
-88
-91
query I rowsort
SELECT ALL + col2 * col2 + + col0 * col1 FROM tab0 AS cor0
----
14823
3153
3396
query I rowsort
SELECT ALL + ( cor0.col0 ) + + col1 AS col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT col2 * 29 + cor0.col0 AS col0 FROM tab2 AS cor0
----
1181
790
832
query I rowsort
SELECT ALL - + col0 + ( - col0 ) FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT DISTINCT - col1 + + col2 * + col2 AS col0 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT DISTINCT + ( - col0 ) * col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + - col1 + col1 * col1 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT cor0.col1 * - 92 AS col2 FROM tab0 AS cor0
----
-7912
-8372
-8924
onlyif mysql # use DIV operator for integer division
query I rowsort label-1653
SELECT ALL + + 88 DIV col1 FROM tab1 AS cor0
----
3
6
8
skipif mysql # not compatible
query I rowsort label-1653
SELECT ALL + + 88 / col1 FROM tab1 AS cor0
----
3
6
8
query I rowsort
SELECT - 61 - + col0 * col2 FROM tab0 AS cor0
----
-7359
-853
-96
query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - 66 * - col0 * + col2 AS col1 FROM tab0 AS cor0
----
2310
481668
52272
onlyif mysql # use DIV operator for integer division
query I rowsort label-1657
SELECT ALL - - col1 DIV + cor0.col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL - - col1 / + cor0.col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT cor0.col1 * col0 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
1027
52
630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1660
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1661
SELECT + - CAST( col0 AS SIGNED ) - cor0.col1 * + col0 AS col2 FROM tab0 AS cor0
----
-2088
-3430
-8188
skipif mysql # not compatible
query I rowsort label-1661
SELECT + - CAST ( col0 AS INTEGER ) - cor0.col1 * + col0 AS col2 FROM tab0 AS cor0
----
-2088
-3430
-8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1662
SELECT ALL - CAST( NULL AS SIGNED ) * ( col2 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL - CAST ( NULL AS INTEGER ) * ( col2 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 76 * col0 FROM tab1 AS cor0
----
228
4864
6080
query I rowsort
SELECT ALL + 75 + - col1 * col0 AS col1 FROM tab0 AS cor0
----
-1989
-3320
-8024
query I rowsort
SELECT ALL 26 + col2 FROM tab2 cor0
----
52
53
64
query I rowsort
SELECT ALL - 62 + tab0.col0 * + col1 FROM tab0
----
2002
3333
8037
query I rowsort
SELECT ALL + col0 + + ( col2 + + col0 ) AS col1 FROM tab1
----
185
256
60
query I rowsort
SELECT DISTINCT + col2 + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + col0 * - 32 AS col2 FROM tab2 AS cor0
----
-224
-2496
-2528
query I rowsort
SELECT + + cor0.col0 * + 97 AS col0 FROM tab2 AS cor0
----
679
7566
7663
query I rowsort
SELECT ALL + col0 + 46 FROM tab1 cor0
----
110
126
49
query I rowsort
SELECT + + cor0.col2 + ( col0 ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - col1 - - col0 FROM tab2 cor0
----
-24
19
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1674
SELECT + col0 + + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1674
SELECT + col0 + + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL tab1.col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT + + col1 + - 69 * col0 FROM tab0 AS cor0
----
-1570
-2318
-6050
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 - 76 col2 FROM tab1 AS cor0
----
-36
-36
-36
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 750b3c1b743e18f68d402d034647fcf2
query I rowsort
SELECT ALL col1 * + ( col2 * col0 ) AS col0 FROM tab0
----
3395
664118
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col0 * + col1 col0 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT ( - cor0.col0 ) * ( col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT cor1.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ( + col2 ) + - col2 * + col0 FROM tab1 cor0
----
-108
-3591
-7584
query I rowsort
SELECT - + ( col2 ) * + 82 FROM tab2 AS cor0
----
-2132
-2214
-3116
onlyif mysql # use DIV operator for integer division
query I rowsort label-1685
SELECT col1 + col2 DIV col1 FROM tab1
----
15
20
28
skipif mysql # not compatible
query I rowsort label-1685
SELECT col1 + col2 / col1 FROM tab1
----
15
20
28
query I rowsort
SELECT + cor0.col1 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT + 57 + col2 FROM tab1
----
111
114
153
query I rowsort
SELECT + ( col1 + + col1 ) AS col1 FROM tab2
----
118
34
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1689
SELECT - ( - cor0.col1 ) * CAST( NULL AS SIGNED ) / cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1689
SELECT - ( - cor0.col1 ) * CAST ( NULL AS INTEGER ) / cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1690
SELECT DISTINCT col1 * col2 DIV ( col1 ) + col2 * col1 AS col0 FROM tab2 AS cor0
----
1560
684
864
skipif mysql # not compatible
query I rowsort label-1690
SELECT DISTINCT col1 * col2 / ( col1 ) + col2 * col1 AS col0 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT - 61 * - col2 FROM tab0 AS cor0
----
2013
5002
61
query I rowsort
SELECT - - 95 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1539
771
824
query I rowsort
SELECT - 98 * col0 FROM tab0
----
-2352
-3430
-8722
query I rowsort
SELECT DISTINCT + col0 * - col2 * col0 AS col0 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT - tab1.col1 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + - col1 * - col1 * col0 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT tab2.col2 AS col2 FROM tab2, tab1 AS cor0
----
26
27
38
query I rowsort
SELECT ALL col0 * tab2.col1 * col0 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT col2 * 59 AS col0 FROM tab1
----
3186
3363
5664
query I rowsort
SELECT ALL - ( + col1 + col0 ) AS col1 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT - ( - tab2.col2 * - col2 ) FROM tab2
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-1703
SELECT - ( - 11 ) DIV col0 + col2 * - cor0.col2 FROM tab1 AS cor0
----
-2913
-3249
-9216
skipif mysql # not compatible
query I rowsort label-1703
SELECT - ( - 11 ) / col0 + col2 * - cor0.col2 FROM tab1 AS cor0
----
-2913
-3249
-9216
query I rowsort
SELECT 72 + 93 FROM tab0 cor0
----
165
165
165
query I rowsort
SELECT - - ( + col0 ) + col2 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1706
SELECT col1 + col2 DIV col0 FROM tab2 AS cor0
----
17
34
59
skipif mysql # not compatible
query I rowsort label-1706
SELECT col1 + col2 / col0 FROM tab2 AS cor0
----
17
34
59
query I rowsort
SELECT + - col1 + col1 * - col0 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT + col2 * ( col2 ) * - col2 FROM tab1
----
-157464
-185193
-884736
query I rowsort
SELECT ALL + col2 * col1 * col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT ALL + ( tab0.col2 ) * col1 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT + col0 * col0 + col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT col0 * col0 * + cor0.col0 + col2 AS col0 FROM tab2 cor0
----
370
474578
493077
onlyif mysql # use DIV operator for integer division
query I rowsort label-1713
SELECT ALL 64 DIV 49 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1713
SELECT ALL 64 / 49 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + 27 + - cor0.col0 FROM tab0 AS cor0
----
-62
-8
3
query I rowsort
SELECT col1 + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT + - col2 + col1 * - col1 FROM tab0 AS cor0
----
-7429
-8363
-9410
query I rowsort
SELECT ALL col0 + 39 FROM tab2 AS cor0
----
117
118
46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 col0 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT DISTINCT ( col0 ) * - col1 * - 15 + + 67 FROM tab2 AS cor0
----
20212
3322
69097
query I rowsort
SELECT - ( - ( - col1 ) ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT col2 * - 1 AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL - ( + ( + col0 ) ) + - col2 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT ALL - col0 * col2 + + col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL + - col0 * col0 + 25 * col2 FROM tab1 AS cor0
----
-2671
-4000
1341
query I rowsort
SELECT ALL 25 + + col2 AS col1 FROM tab0 AS cor0
----
107
26
58
query I rowsort
SELECT DISTINCT - - col0 * - cor0.col1 + - 51 FROM tab0 AS cor0
----
-2115
-3446
-8150
onlyif mysql # use DIV operator for integer division
query I rowsort label-1727
SELECT ALL - col0 DIV - col1 FROM tab1 cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL - col0 / - col1 FROM tab1 cor0
----
0
6
6
query I rowsort
SELECT ALL - cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
onlyif mysql # use DIV operator for integer division
query I rowsort label-1729
SELECT col2 + - col1 DIV + col1 FROM tab2
----
25
26
37
skipif mysql # not compatible
query I rowsort label-1729
SELECT col2 + - col1 / + col1 FROM tab2
----
25
26
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) * - tab0.col1 col2 FROM tab0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1731
SELECT + col0 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1731
SELECT + col0 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1732
SELECT DISTINCT - + col1 + 38 DIV - 44 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-1732
SELECT DISTINCT - + col1 + 38 / - 44 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT 25 AS col1 FROM tab2
----
25
25
25
query I rowsort
SELECT - + col0 - - 4 FROM tab2 AS cor0
----
-3
-74
-75
query I rowsort
SELECT ALL - col0 + 21 AS col0 FROM tab2 AS cor0
----
-57
-58
14
query I rowsort
SELECT ALL + cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - col2 - col1 AS col0 FROM tab0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-1738
SELECT tab2.col0 DIV - col1 AS col1 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-1738
SELECT tab2.col0 / - col1 AS col1 FROM tab2
----
-1
-4
0
query I rowsort
SELECT ALL + col2 * + tab2.col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT col2 + + 21 * - col2 AS col1 FROM tab1
----
-1080
-1140
-1920
query I rowsort
SELECT ALL + 64 FROM tab2, tab2 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT + cor0.col1 - 79 * col1 AS col0 FROM tab0 AS cor0
----
-6708
-7098
-7566
onlyif mysql # use DIV operator for integer division
query I rowsort label-1743
SELECT DISTINCT col0 + - col2 DIV col2 FROM tab1 cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-1743
SELECT DISTINCT col0 + - col2 / col2 FROM tab1 cor0
----
2
63
79
query I rowsort
SELECT + col0 + col1 * - col1 FROM tab2 cor0
----
-210
-3403
-954
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1745
SELECT DISTINCT col2 * CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1745
SELECT DISTINCT col2 * CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + - col2 * - cor0.col1 AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT col0 * + col2 + - col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT tab0.col2 + 51 * + col0 FROM tab0
----
1257
1786
4621
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1749
SELECT CAST( NULL AS SIGNED ) - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1749
SELECT CAST ( NULL AS INTEGER ) - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * + 6 - - col2 FROM tab1
----
441
576
72
query I rowsort
SELECT DISTINCT + col2 + ( 57 ) - + col1 FROM tab1
----
104
140
85
query I rowsort
SELECT + col2 * - col0 + - col2 AS col0 FROM tab1
----
-216
-3705
-7776
query I rowsort
SELECT ALL + col2 * - col2 + + cor0.col2 + col0 AS col1 FROM tab1 AS cor0
----
-2859
-3128
-9040
query I rowsort
SELECT DISTINCT col1 + - 71 * col0 FROM tab0
----
-1618
-2388
-6228
query I rowsort
SELECT 12 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT col2 + - cor0.col1 + col1 * ( col2 ) * col0 AS col2 FROM tab2 cor0
----
119619
51055
5855
query I rowsort
SELECT DISTINCT + col2 * + 46 FROM tab0 AS cor0
----
1518
3772
46
query I rowsort
SELECT - 46 + + 64 FROM tab2 AS cor0
----
18
18
18
query I rowsort
SELECT ALL + 69 * - 22 + col0 * - ( col0 ) + + col2 AS col1 FROM tab2 AS cor0
----
-1540
-7576
-7721
query I rowsort
SELECT + col2 + col2 + + col2 AS col2 FROM tab1 AS cor0
----
162
171
288
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1761
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1761
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ( tab2.col1 + col0 ) * tab2.col0 FROM tab2
----
10686
266
7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1763
SELECT CAST( - col2 AS SIGNED ) * col1 AS col1 FROM tab2
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-1763
SELECT CAST ( - col2 AS INTEGER ) * col1 AS col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL - - col2 * + col1 + col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT + - col2 + cor0.col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL + + col2 + cor0.col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL + col2 * + ( + col2 ) + + ( + 29 ) FROM tab2 AS cor0
----
1473
705
758
query I rowsort
SELECT 2 + ( - col2 ) FROM tab1 AS cor0
----
-52
-55
-94
query I rowsort
SELECT ALL - - col2 + col0 AS col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT + ( + 17 ) AS col1 FROM tab2 cor0
----
17
17
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-1771
SELECT DISTINCT 0 DIV - 31 + + col0 + col2 col1 FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1771
SELECT DISTINCT 0 / - 31 + + col0 + col2 col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + ( col0 ) * col0 - cor0.col2 FROM tab0 AS cor0
----
1224
543
7839
onlyif mysql # use DIV operator for integer division
query I rowsort label-1773
SELECT DISTINCT - + 96 DIV - col1 + - col1 FROM tab1 AS cor0
----
-1
-23
-6
skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT - + 96 / - col1 + - col1 FROM tab1 AS cor0
----
-1
-23
-6
query I rowsort
SELECT ALL - - 30 * + col2 AS col2 FROM tab0 AS cor0
----
2460
30
990
query I rowsort
SELECT DISTINCT + 89 * - col2 + ( 28 ) * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-117
-3861
-9594
query I rowsort
SELECT ( - col1 ) + 86 * 31 FROM tab0 AS cor0
----
2569
2575
2580
query I rowsort
SELECT DISTINCT + cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - + 9 AS col0 FROM tab0 cor0
----
-9
query I rowsort
SELECT ( + col2 ) + - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col1 * - col0 - 44 * - 73 AS col2 FROM tab0 AS cor0
----
11311
5276
6607
query I rowsort
SELECT + cor0.col1 * col0 * + col0 AS col1 FROM tab0 AS cor0
----
118825
49536
720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 57 + col0 * - col1 * + cor0.col0 col1 FROM tab1 AS cor0
----
-291
-41017
-83257
query I rowsort
SELECT 57 AS col0 FROM tab1 AS cor0
----
57
57
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1784
SELECT DISTINCT + + ( + col0 ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1784
SELECT DISTINCT + + ( + col0 ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col0 * - col0 + col1 AS col2 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT ALL - col2 + - col1 * col0 FROM tab1 cor0
----
-1136
-132
-697
query I rowsort
SELECT 24 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT DISTINCT + + col0 * - ( col1 ) + col1 * col1 FROM tab0 AS cor0
----
182
5332
6014
query I rowsort
SELECT DISTINCT col2 + col0 + col0 * + cor0.col2 FROM tab1 AS cor0
----
219
3769
7856
query I rowsort
SELECT ALL + + col1 * - ( - col2 ) * - col2 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT + col1 * 4 + - col1 + col1 AS col0 FROM tab0 AS cor0
----
344
364
388
query I rowsort
SELECT 16 - col0 AS col1 FROM tab2
----
-62
-63
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1793
SELECT cor0.col1 * 5 DIV - 34 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 9e9dac55fedab0874fd38331e9e63dcb
skipif mysql # not compatible
query I rowsort label-1793
SELECT cor0.col1 * 5 / - 34 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 9e9dac55fedab0874fd38331e9e63dcb
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab1 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 08000767d0a951e4a7a7f8edda07fb64
query I rowsort
SELECT - col2 * + col1 + 3 AS col1 FROM tab2 AS cor0
----
-1531
-643
-834
query I rowsort
SELECT DISTINCT - 44 FROM tab1
----
-44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col0 FROM tab2
----
69
69
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 * tab0.col0 * cor0.col2 col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 5225cf2a63fec99f660c5269bb10c9f9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1799
SELECT + col2 DIV + col0 col2 FROM tab2 cor0
----
0
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1799
SELECT + col2 / + col0 col2 FROM tab2 cor0
----
0
0
3
query I rowsort
SELECT DISTINCT cor1.col1 * + 30 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
300
390
780
query I rowsort
SELECT - col1 + + 43 AS col1 FROM tab2 cor0
----
-16
12
26
query I rowsort
SELECT ALL col2 + - 70 + 69 AS col1 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT col2 * + col2 + col0 FROM tab2 AS cor0
----
1523
736
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-1804
SELECT cor0.col1 DIV 74 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1804
SELECT cor0.col1 / 74 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 + 16 col0 FROM tab0 AS cor0
----
1105
17
6740
query I rowsort
SELECT DISTINCT 8 + 80 FROM tab0 AS cor0
----
88
query I rowsort
SELECT DISTINCT + ( col1 ) * - col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - + 83 + + col1 * col2 FROM tab2 AS cor0
----
1451
563
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-1809
SELECT ALL - 33 DIV - 20 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL - 33 / - 20 AS col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT + 93 - + col0 FROM tab2 AS cor0
----
14
15
86
query I rowsort
SELECT DISTINCT + 34 + - col0 FROM tab1 AS cor0
----
-30
-46
31
query I rowsort
SELECT DISTINCT 23 * col2 - - col1 FROM tab0 cor0
----
120
1977
845
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( - col0 AS REAL ) - col1 col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT + col2 + + ( col1 ) * + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT 86 * cor0.col2 + col2 * + col2 FROM tab1 AS cor0
----
17472
7560
8151
query I rowsort
SELECT - - cor0.col1 + + col1 FROM tab1 AS cor0
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * cor0.col2 col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - 58 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-20
-31
-32
query I rowsort
SELECT col0 * col2 * - col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * cor0.col0 + - 62 * col1 col1 FROM tab1 AS cor0
----
-1450
3028
6874
query I rowsort
SELECT 7 - - col1 * - 18 FROM tab2 AS cor0
----
-1055
-299
-551
query I rowsort
SELECT - - col2 * - cor0.col1 * ( - cor0.col2 ) + + col1 AS col1 FROM tab0 cor0
----
194
611975
93740
query I rowsort
SELECT - + 27 AS col1 FROM tab1 AS cor0
----
-27
-27
-27
query I rowsort
SELECT + 23 + col1 * - ( cor0.col1 ) * + col1 AS col2 FROM tab2 AS cor0
----
-205356
-29768
-4890
query I rowsort
SELECT col2 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1826
SELECT col0 DIV 57 FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-1826
SELECT col0 / 57 FROM tab2
----
0
1
1
query I rowsort
SELECT ALL ( col1 ) * + col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT + col2 * cor0.col1 AS col0 FROM tab0 cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 + col2 * + ( + 25 * col1 ) col2 FROM tab2 AS cor0
----
16242
21017
38442
query I rowsort
SELECT 84 + col1 * cor0.col2 FROM tab0 AS cor0
----
181
2922
7546
query I rowsort
SELECT ALL - ( col1 ) + + ( + 43 ) AS col1 FROM tab2
----
-16
12
26
query I rowsort
SELECT ALL + ( 36 ) AS col2 FROM tab0 AS cor0
----
36
36
36
query I rowsort
SELECT ALL cor1.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
onlyif mysql # use DIV operator for integer division
query I rowsort label-1834
SELECT ALL - col2 DIV col0 AS col1 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-1834
SELECT ALL - col2 / col0 AS col1 FROM tab1
----
-1
-18
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1835
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col1 FROM tab1, tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1 FROM tab1, tab1 cor0
----
NULL
query I rowsort
SELECT ALL + 89 FROM tab0, tab0 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT + col2 - - 22 FROM tab0
----
104
23
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-1838
SELECT ALL CAST( + 46 AS SIGNED ) * col2 DIV col1 - - tab0.col2 FROM tab0
----
1
123
50
skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL CAST ( + 46 AS INTEGER ) * col2 / col1 - - tab0.col2 FROM tab0
----
1
123
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-1839
SELECT ALL - 40 + - 18 - - col0 DIV + col1 AS col2 FROM tab1
----
-52
-52
-58
skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL - 40 + - 18 - - col0 / + col1 AS col2 FROM tab1
----
-52
-52
-58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1840
SELECT - + CAST( NULL AS SIGNED ) * 10 + cor0.col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1840
SELECT - + CAST ( NULL AS INTEGER ) * 10 + cor0.col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) * + col0 - col0 col2 FROM tab2
----
42
6006
6162
query I rowsort
SELECT col0 * ( - col0 ) AS col2 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT ALL + col1 + + col2 * - col2 AS col0 FROM tab0
----
-1003
-6633
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * cor0.col0 col0 FROM tab2 AS cor0
----
49
6084
6241
skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 * - CAST ( - 66 AS REAL ) + col0 AS col0 FROM tab2 AS cor0
----
-1638
-1775
-2429
query I rowsort
SELECT - col0 * 85 - - col2 FROM tab2 AS cor0
----
-568
-6604
-6677
query I rowsort
SELECT ALL - + col0 * col1 + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1848
SELECT DISTINCT - col1 + CAST( + col1 AS SIGNED ) * col1 - - 30 FROM tab1 cor0
----
120
186
680
skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT - col1 + CAST ( + col1 AS INTEGER ) * col1 - - 30 FROM tab1 cor0
----
120
186
680
query I rowsort
SELECT - col1 * - ( - col2 ) + + col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT + col0 - ( + col2 + col0 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1851
SELECT DISTINCT - col1 DIV + col0 + + col2 * col1 + col1 DIV 41 AS col2 FROM tab2 AS cor0
----
1535
646
833
skipif mysql # not compatible
query I rowsort label-1851
SELECT DISTINCT - col1 / + col0 + + col2 * col1 + col1 / 41 AS col2 FROM tab2 AS cor0
----
1535
646
833
query I rowsort
SELECT DISTINCT - col0 * col2 - + cor0.col2 FROM tab2 cor0
----
-2054
-216
-3040
query I rowsort
SELECT ALL - col1 + col2 * + col0 + col1 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort
SELECT cor0.col0 + CAST ( col1 AS REAL ) AS col0 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + - col2 col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + col2 * + ( ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + 8 * 26 * cor0.col2 + + col0 FROM tab0 AS cor0
----
17145
243
6888
query IIIIII rowsort
SELECT * FROM tab0, tab0 cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT DISTINCT - col0 * + col0 * col0 FROM tab0 cor0
----
-13824
-42875
-704969
query I rowsort
SELECT - + col0 + + col0 + cor0.col0 AS col2 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT cor0.col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT cor0.col1 * col0 + col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL 58 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
onlyif mysql # use DIV operator for integer division
query I rowsort label-1864
SELECT DISTINCT + 99 + col0 * + col2 DIV col2 col1 FROM tab0 AS cor0
----
123
134
188
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT + 99 + col0 * + col2 / col2 col1 FROM tab0 AS cor0
----
123
134
188
query I rowsort
SELECT DISTINCT col1 * + col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT 11 AS col1 FROM tab0, tab1 AS cor0
----
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - ( cor0.col0 ) ) + col0 col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + + 3 * - col1 AS col0 FROM tab2 AS cor0
----
-177
-51
-93
query I rowsort
SELECT ALL - 54 * col1 + - col1 AS col1 FROM tab2 AS cor0
----
-1705
-3245
-935
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1870
SELECT + CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1870
SELECT + CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + cor0.col1 * + col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + 61 * col0 FROM tab0
----
1464
2135
5429
query I rowsort
SELECT ALL col1 * + 14 AS col0 FROM tab0
----
1204
1274
1358
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 * + 80 col0 FROM tab2 AS cor0
----
553
6162
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL col1 * col2 + - col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT ( + col0 ) * 35 AS col2 FROM tab1 AS cor0
----
105
2240
2800
query I rowsort
SELECT DISTINCT + col1 + col0 + 14 * + col2 * + ( + col1 ) AS col0 FROM tab0 cor0
----
104648
1490
39842
query I rowsort
SELECT ALL col0 * + col1 - col1 AS col0 FROM tab2
----
1326
186
4543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1880
SELECT DISTINCT + col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1880
SELECT DISTINCT + col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT col2 - - cor0.col0 AS col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT ALL + + cor0.col0 * - 60 AS col1 FROM tab1 AS cor0
----
-180
-3840
-4800
query I rowsort
SELECT DISTINCT + col2 + 45 FROM tab2 AS cor0
----
71
72
83
query I rowsort
SELECT - ( + col2 ) * + col2 + + tab2.col0 FROM tab2
----
-1365
-598
-722
query I rowsort
SELECT - 51 AS col1 FROM tab1
----
-51
-51
-51
onlyif mysql # use DIV operator for integer division
query I rowsort label-1886
SELECT DISTINCT - 62 - col0 DIV + tab0.col2 FROM tab0
----
-62
-63
-97
skipif mysql # not compatible
query I rowsort label-1886
SELECT DISTINCT - 62 - col0 / + tab0.col2 FROM tab0
----
-62
-63
-97
query I rowsort
SELECT ALL 58 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT DISTINCT + 98 FROM tab2, tab0, tab0 AS cor0
----
98
query I rowsort
SELECT col1 * - tab2.col1 * 11 - col2 * tab2.col1 * + col2 FROM tab2
----
-27727
-33170
-78175
query I rowsort
SELECT + 0 + col2 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT - col1 + + 11 + - col0 * col1 FROM tab2 AS cor0
----
-1349
-237
-4650
query I rowsort
SELECT col1 * ( + ( col0 ) ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT col2 * col1 * + col2 FROM tab2
----
22599
24548
39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-1894
SELECT + col1 + + 55 + + col1 DIV + col2 AS col2 FROM tab1
----
65
68
81
skipif mysql # not compatible
query I rowsort label-1894
SELECT + col1 + + 55 + + col1 / + col2 AS col2 FROM tab1
----
65
68
81
query I rowsort
SELECT DISTINCT - col2 + ( + tab1.col0 ) AS col0 FROM tab1
----
-16
-51
7
query I rowsort
SELECT DISTINCT col1 + tab2.col0 AS col2 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL + col1 + - col1 * col0 AS col0 FROM tab0
----
-1978
-3298
-8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col1 * + col1 * 62 col2 FROM tab0
----
-458552
-513422
-583358
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1899
SELECT CAST( NULL AS SIGNED ) * ( - tab1.col1 ) col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1899
SELECT CAST ( NULL AS INTEGER ) * ( - tab1.col1 ) col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-1900
SELECT ALL col0 + + 94 DIV - col0 FROM tab1
----
-28
63
79
skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL col0 + + 94 / - col0 FROM tab1
----
-28
63
79
query I rowsort
SELECT tab1.col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT DISTINCT + 78 FROM tab2, tab0 AS cor0
----
78
query I rowsort
SELECT DISTINCT - 81 * col1 + - col2 AS col0 FROM tab2
----
-1415
-2538
-4805
query I rowsort
SELECT ALL 66 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT col0 * col0 * - col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT tab1.col0 AS col1 FROM tab1, tab0, tab1 AS cor0, tab2
----
3
64
80
query I rowsort
SELECT ALL ( + col1 * - col2 ) FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + 7 * + col1 AS col2 FROM tab0
----
602
637
679
onlyif mysql # use DIV operator for integer division
query I rowsort label-1909
SELECT + 66 DIV - ( + tab0.col2 ) AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 80c58c18b1f785227513cc97192f20ff
skipif mysql # not compatible
query I rowsort label-1909
SELECT + 66 / - ( + tab0.col2 ) AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 80c58c18b1f785227513cc97192f20ff
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1910
SELECT DISTINCT CAST( 16 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
16
skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT CAST ( 16 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
16
onlyif mysql # use DIV operator for integer division
query I rowsort label-1911
SELECT - col2 + - col0 DIV col0 AS col0 FROM tab2 AS cor0
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-1911
SELECT - col2 + - col0 / col0 AS col0 FROM tab2 AS cor0
----
-27
-28
-39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1912
SELECT DISTINCT + - cor0.col0 * cor0.col2 + + CAST( 40 AS SIGNED ) FROM tab2 AS cor0
----
-149
-1988
-2962
skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT + - cor0.col0 * cor0.col2 + + CAST ( 40 AS INTEGER ) FROM tab2 AS cor0
----
-149
-1988
-2962
query I rowsort
SELECT DISTINCT - col1 * col0 * 41 AS col2 FROM tab1 AS cor0
----
-26240
-3198
-42640
query I rowsort
SELECT ALL - 80 AS col1 FROM tab0 AS cor0
----
-80
-80
-80
query I rowsort
SELECT col0 * + col0 + + col1 AS col2 FROM tab1 AS cor0
----
35
4106
6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 col2 FROM tab2 AS cor0
----
58
query I rowsort
SELECT DISTINCT + 96 + cor0.col1 AS col2 FROM tab0 AS cor0
----
182
187
193
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1918
SELECT ( - col0 ) * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1918
SELECT ( - col0 ) * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 + - col1 * ( col0 ) FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL col2 * col2 + - col0 FROM tab2
----
1365
598
722
query I rowsort
SELECT ALL col2 * + 24 * - col2 AS col0 FROM tab0
----
-161376
-24
-26136
query I rowsort
SELECT DISTINCT + 3 AS col1 FROM tab1, tab2 AS cor0
----
3
query I rowsort
SELECT ( 30 ) + - col0 * + 68 AS col0 FROM tab2 AS cor0
----
-446
-5274
-5342
query I rowsort
SELECT + 52 * - cor0.col2 + + col1 FROM tab2 cor0
----
-1293
-1373
-1959
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1925
SELECT + - 76 * col0 + col1 * CAST( - col2 AS SIGNED ) * - cor0.col1 AS col0 FROM tab2 AS cor0
----
25415
4978
84578
skipif mysql # not compatible
query I rowsort label-1925
SELECT + - 76 * col0 + col1 * CAST ( - col2 AS INTEGER ) * - cor0.col1 AS col0 FROM tab2 AS cor0
----
25415
4978
84578
onlyif mysql # use DIV operator for integer division
query I rowsort label-1926
SELECT + col2 DIV - cor0.col0 + - col0 + col1 FROM tab0 AS cor0
----
2
61
62
skipif mysql # not compatible
query I rowsort label-1926
SELECT + col2 / - cor0.col0 + - col0 + col1 FROM tab0 AS cor0
----
2
61
62
query I rowsort
SELECT DISTINCT - 39 AS col2 FROM tab1, tab1 AS cor0
----
-39
query I rowsort
SELECT ALL 60 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162
query I rowsort
SELECT ALL - col1 * - 44 FROM tab2
----
1364
2596
748
query I rowsort
SELECT - tab2.col1 * + tab2.col1 AS col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT ALL col1 * 43 AS col2 FROM tab1
----
1118
430
559
query I rowsort
SELECT 31 * + 17 FROM tab2
----
527
527
527
onlyif mysql # use DIV operator for integer division
query I rowsort label-1933
SELECT - col1 * ( + col0 ) DIV col1 + col2 + - col2 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-1933
SELECT - col1 * ( + col0 ) / col1 + col2 + - col2 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - 42 + col1 + - col1 * + 69 FROM tab2 AS cor0
----
-1198
-2150
-4054
query I rowsort
SELECT - ( - col2 ) * + col1 + cor0.col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-1936
SELECT + - col0 DIV ( col1 ) FROM tab2 cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-1936
SELECT + - col0 / ( col1 ) FROM tab2 cor0
----
-1
-4
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1937
SELECT + CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-1937
SELECT + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1938
SELECT col1 DIV + col0 FROM tab2 cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-1938
SELECT col1 / + col0 FROM tab2 cor0
----
0
0
4
query I rowsort
SELECT DISTINCT + 76 AS col2 FROM tab0
----
76
query I rowsort
SELECT + col2 + tab1.col1 * + tab1.col0 FROM tab1
----
1136
132
697
query I rowsort
SELECT DISTINCT 81 - col1 FROM tab2 AS cor0
----
22
50
64
query I rowsort
SELECT DISTINCT ( + col1 ) - + col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + + 28 FROM tab1 AS cor0
----
28
28
28
query I rowsort
SELECT ALL + cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + + col0 + - col0 + + ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT col0 * col0 - col0 AS col2 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT ALL + ( + col2 ) + - cor0.col0 * col2 * - cor0.col0 FROM tab1 cor0
----
233529
540
614496
query I rowsort
SELECT + + cor0.col0 * col1 * cor0.col1 FROM tab1 AS cor0
----
13520
2028
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-1949
SELECT ALL + + ( col0 ) * + col0 DIV col0 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-1949
SELECT ALL + + ( col0 ) * + col0 / col0 col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + - 31 AS col2 FROM tab1 cor0
----
-31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col2 ) * 92 col1 FROM tab2 AS cor0
----
2392
2484
3496
query I rowsort
SELECT ALL + - cor0.col1 * + cor0.col0 * 69 + + col0 FROM tab1 AS cor0
----
-44096
-5379
-71680
query I rowsort
SELECT + col0 * col2 + - 95 * col2 + - 69 AS col1 FROM tab2 AS cor0
----
-2445
-511
-677
query I rowsort
SELECT + - col0 + col2 + + col1 AS col2 FROM tab2 AS cor0
----
-24
51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1955
SELECT col1 * CAST( + col2 AS SIGNED ) FROM tab2
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-1955
SELECT col1 * CAST ( + col2 AS INTEGER ) FROM tab2
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + - 29 * - ( col1 + - col2 ) col0 FROM tab0 AS cor0
----
1561
2819
350
query I rowsort
SELECT ALL + col0 * ( + col1 ) FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-1958
SELECT DISTINCT - col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT - col1 / - col0 AS col0 FROM tab2 AS cor0
----
0
4
query I rowsort
SELECT - col1 + col0 + - 75 * + col1 * + ( + 68 ) AS col2 FROM tab2 AS cor0
----
-158124
-300881
-86638
onlyif mysql # use DIV operator for integer division
query I rowsort label-1960
SELECT ALL + col1 + col1 DIV + col2 AS col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL + col1 + col1 / + col2 AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT - col1 * - col0 - + 55 FROM tab0 cor0
----
2009
3340
8044
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1962
SELECT DISTINCT tab2.col2 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT tab2.col2 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT + - col1 + + 38 AS col1 FROM tab0 AS cor0
----
-48
-53
-59
query I rowsort
SELECT ALL - cor0.col0 * col0 AS col1 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT + 24 - + col0 AS col2 FROM tab1 AS cor0
----
-40
-56
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-1966
SELECT DISTINCT + col2 DIV - col0 FROM tab2 AS cor0
----
-3
0
skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT + col2 / - col0 FROM tab2 AS cor0
----
-3
0
query I rowsort
SELECT - 84 + col0 FROM tab1 AS cor0
----
-20
-4
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-1968
SELECT + cor0.col1 DIV 56 + - col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-1968
SELECT + cor0.col1 / 56 + - col2 / + col0 AS col1 FROM tab0 AS cor0
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 * + cor0.col1 + + col1 col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL - ( col2 ) * col0 + + 43 + 28 AS col2 FROM tab2 AS cor0
----
-118
-1957
-2931
query I rowsort
SELECT + 54 - + 36 AS col1 FROM tab1 AS cor0
----
18
18
18
query I rowsort
SELECT DISTINCT - ( col0 ) + - col0 + 95 AS col2 FROM tab1 AS cor0
----
-33
-65
89
query I rowsort
SELECT 95 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 8e88b3a69c24fc01553b0c32bf7748d0
query I rowsort
SELECT 12 * + col2 FROM tab0 cor0
----
12
396
984
query I rowsort
SELECT DISTINCT + 60 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
60
query I rowsort
SELECT ALL - col1 * + ( col2 ) AS col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - - col1 + + col0 * 5 AS col2 FROM tab2 AS cor0
----
412
449
66
query I rowsort
SELECT - 41 * + col0 FROM tab1 cor0
----
-123
-2624
-3280
query I rowsort
SELECT DISTINCT col0 * col0 - - col2 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT DISTINCT + + col1 * + 4 FROM tab0 AS cor0
----
344
364
388
query I rowsort
SELECT DISTINCT col1 * - col1 AS col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT 67 * 6 - col2 FROM tab2
----
364
375
376
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1984
SELECT ALL + col1 * - col2 * - CAST( col1 AS SIGNED ) + cor0.col2 FROM tab2 AS cor0
----
11020
25974
90532
skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL + col1 * - col2 * - CAST ( col1 AS INTEGER ) + cor0.col2 FROM tab2 AS cor0
----
11020
25974
90532
query I rowsort
SELECT - - 11 - - col1 AS col1 FROM tab2 AS cor0
----
28
42
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1986
SELECT - col0 + + cor0.col0 * CAST( NULL AS SIGNED ) + col1 * col2 * CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1986
SELECT - col0 + + cor0.col0 * CAST ( NULL AS INTEGER ) + col1 * col2 * CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * col0 + 58 AS col2 FROM tab0
----
-2006
-3337
-8041
query I rowsort
SELECT - col2 + col0 * col0 * 91 AS col0 FROM tab1
----
372679
582304
765
query I rowsort
SELECT ALL cor0.col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL - - 3 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 + col0 * col1 col1 FROM tab0
----
2055
3429
8106
query I rowsort
SELECT + 29 + - col2 * + 50 FROM tab2 AS cor0
----
-1271
-1321
-1871
query I rowsort
SELECT ALL - - col0 * - cor0.col2 + col0 FROM tab0 AS cor0
----
-7209
-768
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 + + col0 col2 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL + 92 * - col2 AS col0 FROM tab2 AS cor0
----
-2392
-2484
-3496
onlyif mysql # use DIV operator for integer division
query I rowsort label-1996
SELECT ALL cor0.col2 DIV - col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL cor0.col2 / - col0 FROM tab1 AS cor0
----
-1
-18
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1997
SELECT ALL col2 DIV 15 FROM tab1
----
3
3
6
skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL col2 / 15 FROM tab1
----
3
3
6
query I rowsort
SELECT ALL + col0 - ( col1 + col0 * + col0 ) FROM tab0 AS cor0
----
-1287
-638
-7923
query I rowsort
SELECT DISTINCT + - col1 * col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + - col1 * ( 6 ) FROM tab2 cor0
----
-102
-186
-354
query I rowsort
SELECT ALL - + ( - col0 ) * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - 40 FROM tab2 AS cor0
----
-40
query I rowsort
SELECT + - 43 FROM tab2 AS cor0
----
-43
-43
-43
query I rowsort
SELECT ALL 12 * - col1 + - col2 AS col0 FROM tab2 AS cor0
----
-242
-399
-734
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 col1 FROM tab0 cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + ( col1 ) ) col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT 68 AS col0 FROM tab1 AS cor0
----
68
68
68
query I rowsort
SELECT ALL col2 + ( - col0 ) + + col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1482
605
857
query I rowsort
SELECT - ( - 12 ) * col2 FROM tab0 AS cor0
----
12
396
984
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2010
SELECT ALL + 28 * + col1 * col1 + ( - col1 ) * col2 * - CAST( - 48 + col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
1632
63720
9331
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL + 28 * + col1 * col1 + ( - col1 ) * col2 * - CAST ( - 48 + col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
1632
63720
9331
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2011
SELECT + + CAST( - 75 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-75
-75
-75
skipif mysql # not compatible
query I rowsort label-2011
SELECT + + CAST ( - 75 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-75
-75
-75
query I rowsort
SELECT ALL 19 + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1463
695
748
query I rowsort
SELECT DISTINCT 46 + col2 * + col0 AS col2 FROM tab1 AS cor0
----
208
3694
7726
query I rowsort
SELECT DISTINCT + col0 + col1 * + col1 AS col0 FROM tab0 cor0
----
7420
8370
9444
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2015
SELECT ALL - col1 * - 32 * + col1 + - CAST( NULL AS SIGNED ) * + col1 * + col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL - col1 * - 32 * + col1 + - CAST ( NULL AS INTEGER ) * + col1 * + col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 67 * + col2 AS col1 FROM tab2 AS cor0
----
-1742
-1809
-2546
query I rowsort
SELECT 26 * + cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 5c0a5491ba5889db5c6fbe57eb19a7d3
query I rowsort
SELECT ALL - - ( col1 ) * col2 * + 13 AS col0 FROM tab0 AS cor0
----
1261
36894
97006
query I rowsort
SELECT - cor0.col0 * 90 AS col1 FROM tab0 AS cor0
----
-2160
-3150
-8010
query I rowsort
SELECT ALL - 76 * - col2 - col0 AS col0 FROM tab1 AS cor0
----
4101
4268
7216
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col1 * + col2 AS REAL ) AS col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL + 5 AS col2 FROM tab0
----
5
5
5
query I rowsort
SELECT DISTINCT - - col1 + ( col1 + + col0 * - 11 ) AS col0 FROM tab0 AS cor0
----
-191
-797
-92
query I rowsort
SELECT - cor0.col0 + - 24 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to f49878bc2efe7ab2d6a99035490fc392
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( - col2 ) ) col0 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT + + cor0.col1 + - col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT - 23 * + col1 - + cor0.col1 FROM tab0 cor0
----
-2064
-2184
-2328
query I rowsort
SELECT + 72 + col1 FROM tab2 cor0
----
103
131
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) * col1 + + col0 * 36 * col2 col0 FROM tab1
----
130688
275440
5754
query I rowsort
SELECT + 48 + tab1.col1 FROM tab1
----
58
61
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2031
SELECT DISTINCT col2 * CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-2031
SELECT DISTINCT col2 * CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + cor0.col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + col2 + + 29 AS col1 FROM tab1 AS cor0
----
125
83
86
query I rowsort
SELECT cor0.col2 + + ( + col1 ) AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - col0 + 38 + - col2 AS col1 FROM tab0 AS cor0
----
-133
-19
2
query I rowsort
SELECT ALL col1 * + 8 FROM tab0 AS cor0
----
688
728
776
query I rowsort
SELECT ALL - + cor0.col1 + + col0 * + 20 FROM tab1 cor0
----
1270
1587
34
query I rowsort
SELECT + col2 + - ( col1 ) * + cor0.col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL + col0 + 54 AS col2 FROM tab2 AS cor0
----
132
133
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 * + col1 - col2 col2 FROM tab0
----
6675
7016
7565
onlyif mysql # use DIV operator for integer division
query I rowsort label-2041
SELECT + col1 DIV tab1.col0 AS col0 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-2041
SELECT + col1 / tab1.col0 AS col0 FROM tab1
----
0
0
8
query I rowsort
SELECT DISTINCT + + 34 AS col1 FROM tab0, tab2, tab2 AS cor0
----
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2043
SELECT DISTINCT ( col2 ) / - CAST( NULL AS SIGNED ) + col1 * col0 + + 83 AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT ( col2 ) / - CAST ( NULL AS INTEGER ) + col1 * col0 + + 83 AS col2 FROM tab0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2044
SELECT col0 * CAST( - col2 AS SIGNED ) + col0 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2044
SELECT col0 * CAST ( - col2 AS INTEGER ) + col0 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + ( - col0 ) + col2 * + col2 col0 FROM tab1 AS cor0
----
2859
3128
9040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 * 7 + col2 col2 FROM tab0 AS cor0
----
-593
-644
-713
query I rowsort
SELECT DISTINCT - + cor0.col1 * col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT + - col0 + - col2 * - 22 AS col0 FROM tab2 cor0
----
494
587
757
query I rowsort
SELECT ALL + col0 + - col1 * col0 FROM tab1 AS cor0
----
-576
-75
-960
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2, tab1 cor1
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643
onlyif mysql # use DIV operator for integer division
query I rowsort label-2051
SELECT DISTINCT - 71 DIV col1 - - col2 * col1 AS col2 FROM tab0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT - 71 / col1 - - col2 * col1 AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL 68 - - tab0.col0 AS col0 FROM tab0
----
103
157
92
query I rowsort
SELECT col2 + col1 * + col1 AS col0 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT ALL - + 66 FROM tab0, tab1 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 80 * + col1 - + 18 col2 FROM tab2 AS cor0
----
-1378
-2498
-4738
query I rowsort
SELECT ALL + ( - tab2.col2 * col1 ) FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT + col2 * - col2 + - ( + col1 ) AS col0 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT - + col2 + - 76 AS col0 FROM tab0 cor0
----
-109
-158
-77
query I rowsort
SELECT ALL + cor0.col0 + - 95 * col2 AS col1 FROM tab0 AS cor0
----
-3111
-60
-7701
query I rowsort
SELECT - col2 + 26 AS col2 FROM tab2 AS cor0
----
-1
-12
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2061
SELECT DISTINCT + cor0.col0 DIV CAST( col2 AS SIGNED ) + - col0 FROM tab1 AS cor0
----
-3
-63
-80
skipif mysql # not compatible
query I rowsort label-2061
SELECT DISTINCT + cor0.col0 / CAST ( col2 AS INTEGER ) + - col0 FROM tab1 AS cor0
----
-3
-63
-80
query I rowsort
SELECT DISTINCT - + col1 - ( col2 ) AS col0 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT - col2 + - col2 * - 92 FROM tab2 AS cor0
----
2366
2457
3458
query I rowsort
SELECT DISTINCT + + 72 FROM tab1, tab2, tab2 AS cor0
----
72
query I rowsort
SELECT 47 * tab2.col1 FROM tab2
----
1457
2773
799
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 77 ) col1 FROM tab2 AS cor0
----
77
77
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-2068
SELECT 77 DIV + ( - col1 ) AS col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-2068
SELECT 77 / + ( - col1 ) AS col1 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT + col0 * 48 FROM tab2
----
336
3744
3792
query I rowsort
SELECT DISTINCT 52 AS col0 FROM tab2, tab2 AS cor0
----
52
query I rowsort
SELECT DISTINCT 54 AS col2 FROM tab0, tab1 AS cor0
----
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-2072
SELECT DISTINCT tab2.col1 DIV + ( - col1 ) col2 FROM tab2
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT tab2.col1 / + ( - col1 ) col2 FROM tab2
----
-1
query I rowsort
SELECT ALL 67 FROM tab2, tab2 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2074
SELECT - tab1.col1 + CAST( - 63 + + col1 AS SIGNED ) AS col2 FROM tab1
----
-63
-63
-63
skipif mysql # not compatible
query I rowsort label-2074
SELECT - tab1.col1 + CAST ( - 63 + + col1 AS INTEGER ) AS col2 FROM tab1
----
-63
-63
-63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2075
SELECT - CAST( - col2 AS SIGNED ) AS col2 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2075
SELECT - CAST ( - col2 AS INTEGER ) AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT - + 55 * 11 FROM tab1 AS cor0
----
-605
-605
-605
query I rowsort
SELECT - - ( col2 ) * col2 * ( - col0 ) AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT col1 + + cor0.col2 * + col0 FROM tab0 AS cor0
----
132
7389
878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 col0 FROM tab1
----
96
96
96
query I rowsort
SELECT ALL - 97 + - col0 FROM tab1 AS cor0
----
-100
-161
-177
query I rowsort
SELECT - - 85 FROM tab0 AS cor0
----
85
85
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + col0 * + cor0.col2 col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT ALL + + col2 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - - col2 + - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2085
SELECT ALL + ( - col0 ) DIV col2 AS col1 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL + ( - col0 ) / col2 AS col1 FROM tab0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 * 51 * - col0 col0 FROM tab0
----
-14688
-21420
-54468
onlyif mysql # use DIV operator for integer division
query I rowsort label-2087
SELECT ALL - ( col0 ) DIV tab0.col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL - ( col0 ) / tab0.col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT 58 AS col2 FROM tab0, tab0 cor0
----
58
query I rowsort
SELECT ALL col2 * col2 * col2 + + col2 + col0 * col0 FROM tab1 AS cor0
----
157527
189346
891232
query I rowsort
SELECT ( + col2 ) * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 col2 FROM tab0 AS cor0
----
82
query I rowsort
SELECT - cor0.col1 + col0 * - col0 FROM tab0 AS cor0
----
-1322
-662
-8012
query I rowsort
SELECT 63 * cor0.col1 FROM tab1 AS cor0
----
1638
630
819
query I rowsort
SELECT - col0 + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2088
-3430
-8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 col2 FROM tab2 AS cor0
----
2
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-17
-31
-59
query I rowsort
SELECT + + cor0.col2 * - ( ( col1 ) ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2098
SELECT - - col0 + - CAST( 95 AS SIGNED ) * col0 col1 FROM tab0 AS cor0
----
-2256
-3290
-8366
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2098
SELECT - - col0 + - CAST ( 95 AS INTEGER ) * col0 col1 FROM tab0 AS cor0
----
-2256
-3290
-8366
query I rowsort
SELECT cor0.col0 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT + - 92 * 99 AS col2 FROM tab0 AS cor0
----
-9108
-9108
-9108
query I rowsort
SELECT 71 + col0 AS col2 FROM tab0 AS cor0
----
106
160
95
query I rowsort
SELECT DISTINCT + cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
26
27
38
query I rowsort
SELECT DISTINCT + + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
86
91
97
query I rowsort
SELECT ALL - - 70 + + col1 AS col0 FROM tab0 AS cor0
----
156
161
167
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 97 col1 FROM tab2 AS cor0
----
1649
3007
5723
query I rowsort
SELECT 40 + col0 AS col1 FROM tab1 cor0
----
104
120
43
query I rowsort
SELECT ALL - + ( - cor0.col2 ) + cor0.col2 AS col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT 23 * - col1 FROM tab0 AS cor0
----
-1978
-2093
-2231
query I rowsort
SELECT DISTINCT - - cor0.col0 + + 27 AS col0 FROM tab2 AS cor0
----
105
106
34
query I rowsort
SELECT DISTINCT + col0 - ( + col0 ) AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col0 + col2 * col1 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-2112
SELECT ALL - + col1 * 10 DIV + cor0.col0 col2 FROM tab0 cor0
----
-10
-27
-35
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL - + col1 * 10 / + cor0.col0 col2 FROM tab0 cor0
----
-10
-27
-35
onlyif mysql # use DIV operator for integer division
query I rowsort label-2113
SELECT DISTINCT col1 * 44 + - col2 DIV - col0 AS col0 FROM tab2 cor0
----
1367
2596
748
skipif mysql # not compatible
query I rowsort label-2113
SELECT DISTINCT col1 * 44 + - col2 / - col0 AS col0 FROM tab2 cor0
----
1367
2596
748
query I rowsort
SELECT ALL + cor0.col1 + ( col0 ) AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT col0 + col1 AS col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT col2 + col0 AS col0 FROM tab0 cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + - col0 * - 87 FROM tab2 AS cor0
----
609
6786
6873
query I rowsort
SELECT 1 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
query I rowsort
SELECT ALL - - col2 - - 53 FROM tab1 AS cor0
----
107
110
149
query I rowsort
SELECT DISTINCT + + col1 + 61 AS col2 FROM tab1 AS cor0
----
71
74
87
query I rowsort
SELECT - col2 * 16 FROM tab1 AS cor0
----
-1536
-864
-912
query I rowsort
SELECT - col0 * ( col1 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT 85 FROM tab1, tab1 AS cor0, tab1 cor1
----
85
query I rowsort
SELECT + cor0.col1 * 53 FROM tab2 AS cor0
----
1643
3127
901
query I rowsort
SELECT - col0 + - 15 FROM tab2
----
-22
-93
-94
query I rowsort
SELECT + - col2 * 65 FROM tab0 AS cor0
----
-2145
-5330
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-2128
SELECT ALL 71 * - col2 + 26 DIV + 10 + + col1 FROM tab2 AS cor0
----
-1785
-1884
-2679
skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL 71 * - col2 + 26 / + 10 + + col1 FROM tab2 AS cor0
----
-1785
-1884
-2679
query I rowsort
SELECT DISTINCT 75 AS col1 FROM tab1 AS cor0
----
75
query I rowsort
SELECT ALL - col2 + 22 * col0 FROM tab1
----
12
1351
1664
query I rowsort
SELECT ALL - 2 FROM tab2
----
-2
-2
-2
query I rowsort
SELECT + 3 * + tab0.col0 * - ( + col0 + col2 ) FROM tab0
----
-3780
-4104
-45657
query I rowsort
SELECT ALL + ( 80 ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91
query I rowsort
SELECT DISTINCT + + 4 * - cor0.col0 * + col2 FROM tab0 AS cor0
----
-140
-29192
-3168
query I rowsort
SELECT - + cor0.col0 + col0 + - ( - col2 ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - - col1 + col2 * 91 FROM tab1 AS cor0
----
4940
5197
8749
onlyif mysql # use DIV operator for integer division
query I rowsort label-2137
SELECT + col2 + cor0.col2 DIV - col1 + + col0 AS col2 FROM tab1 AS cor0
----
116
169
55
skipif mysql # not compatible
query I rowsort label-2137
SELECT + col2 + cor0.col2 / - col1 + + col0 AS col2 FROM tab1 AS cor0
----
116
169
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2139
SELECT ALL + CAST( NULL AS SIGNED ) + + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL + CAST ( NULL AS INTEGER ) + + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-2140
SELECT DISTINCT + + 44 + col1 DIV 83 + 27 FROM tab0 AS cor0
----
72
skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT + + 44 + col1 / 83 + 27 FROM tab0 AS cor0
----
72
query I rowsort
SELECT ALL col0 * + col1 + - ( col2 ) FROM tab0 cor0
----
2031
3394
8017
query I rowsort
SELECT - - 17 * cor0.col1 FROM tab0 AS cor0
----
1462
1547
1649
query I rowsort
SELECT DISTINCT + - cor0.col1 + col0 FROM tab1 cor0
----
-23
54
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2144
SELECT DISTINCT - CAST( NULL AS SIGNED ) * cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-2144
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
query I rowsort
SELECT - - col0 + - 58 AS col1 FROM tab0 AS cor0
----
-23
-34
31
query I rowsort
SELECT DISTINCT - 76 FROM tab2, tab0 AS cor0
----
-76
query I rowsort
SELECT DISTINCT - - col2 + + 71 AS col1 FROM tab1 AS cor0
----
125
128
167
query I rowsort
SELECT ALL col1 * 25 FROM tab0
----
2150
2275
2425
query I rowsort
SELECT 98 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
onlyif mysql # use DIV operator for integer division
query I rowsort label-2150
SELECT - - cor0.col0 * col1 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-2150
SELECT - - cor0.col0 * col1 / cor0.col1 AS col0 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2151
SELECT col0 DIV 5 AS col2 FROM tab0 AS cor0
----
17
4
7
skipif mysql # not compatible
query I rowsort label-2151
SELECT col0 / 5 AS col2 FROM tab0 AS cor0
----
17
4
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2152
SELECT - CAST( NULL AS SIGNED ) * col1 + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2152
SELECT - CAST ( NULL AS INTEGER ) * col1 + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 39 AS col0 FROM tab0 AS cor0
----
39
39
39
query I rowsort
SELECT - + cor0.col0 + + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL 60 + - col2 AS col2 FROM tab2
----
22
33
34
query I rowsort
SELECT ( 98 ) * col0 AS col2 FROM tab0
----
2352
3430
8722
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2157
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + col2 * col1 AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-2157
SELECT DISTINCT + CAST ( NULL AS REAL ) + col2 * col1 AS col0 FROM tab2
----
NULL
query I rowsort
SELECT ALL + - 15 * - 39 + col2 FROM tab1 AS cor0
----
639
642
681
query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT + 7 FROM tab1 AS cor0
----
7
7
7
query I rowsort
SELECT - ( + col1 ) * col2 + + 40 * cor0.col1 FROM tab0 AS cor0
----
-3822
3783
602
query I rowsort
SELECT DISTINCT cor0.col0 * - col0 + - col1 AS col1 FROM tab2 cor0
----
-6143
-6258
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2163
SELECT ALL + - col0 + cor0.col0 DIV col2 FROM tab1 AS cor0
----
-3
-63
-80
skipif mysql # not compatible
query I rowsort label-2163
SELECT ALL + - col0 + cor0.col0 / col2 FROM tab1 AS cor0
----
-3
-63
-80
query I rowsort
SELECT ALL - col0 + ( col2 ) * col0 FROM tab2 cor0
----
182
1950
2923
query I rowsort
SELECT - + 42 + - cor0.col2 + col1 AS col0 FROM tab2 AS cor0
----
-38
-63
-9
query I rowsort
SELECT + + col2 * col2 + - 12 * col1 + col1 AS col1 FROM tab0 AS cor0
----
-1066
143
5723
query I rowsort
SELECT col0 + - col0 + 94 * + 95 AS col0 FROM tab2 AS cor0
----
8930
8930
8930
query I rowsort
SELECT 65 + + col0 FROM tab2 AS cor0
----
143
144
72
query I rowsort
SELECT ALL + + cor0.col1 * col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 * col1 + - cor0.col1 col1 FROM tab0 AS cor0
----
3096
3276
3492
query I rowsort
SELECT DISTINCT + col1 + col2 AS col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL 3 + - col2 * + 38 - col1 AS col2 FROM tab2 AS cor0
----
-1044
-1054
-1458
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT ( + tab2.col1 ) + col0 * + col2 * + col0 AS col2 FROM tab2
----
1354
158243
237175
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 * tab1.col1 ) + + 54 col2 FROM tab1
----
1094
132
694
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 + col2 * - col1 col0 FROM tab0
----
-2827
-7451
-86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2177
SELECT + CAST( NULL AS SIGNED ) + col1 * - col0 + 86 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2177
SELECT + CAST ( NULL AS INTEGER ) + col1 * - col0 + 86 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2178
SELECT CAST( + 79 AS SIGNED ) FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
skipif mysql # not compatible
query I rowsort label-2178
SELECT CAST ( + 79 AS INTEGER ) FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
query I rowsort
SELECT - + 32 * + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-2838
-3003
-3201
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb
query I rowsort
SELECT - cor0.col1 * + cor2.col1 FROM tab1, tab2 cor0, tab0 AS cor1, tab1 cor2
----
81 values hashing to 7e22bae2f0b697b1261fd2efedadc74e
query I rowsort
SELECT + ( col0 ) * col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - + 88 * + 73 AS col0 FROM tab1 AS cor0
----
-6424
-6424
-6424
onlyif mysql # use DIV operator for integer division
query I rowsort label-2184
SELECT - + col2 DIV col0 + col0 + + col2 AS col2 FROM tab0 AS cor0
----
171
36
56
skipif mysql # not compatible
query I rowsort label-2184
SELECT - + col2 / col0 + col0 + + col2 AS col2 FROM tab0 AS cor0
----
171
36
56
query I rowsort
SELECT + ( col2 ) * col0 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-2186
SELECT - 80 * cor0.col2 DIV 82 FROM tab2 AS cor0
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-2186
SELECT - 80 * cor0.col2 / 82 FROM tab2 AS cor0
----
-25
-26
-37
query I rowsort
SELECT - + col2 * col0 + col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT + cor0.col2 - col0 AS col2 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2189
SELECT - + col2 + + col2 * CAST( - ( - col1 ) AS SIGNED ) FROM tab0 cor0
----
2805
7380
96
skipif mysql # not compatible
query I rowsort label-2189
SELECT - + col2 + + col2 * CAST ( - ( - col1 ) AS INTEGER ) FROM tab0 cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT - ( - col2 ) * + col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + cor0.col2 * cor0.col1 + + ( + col2 ) * col1 FROM tab2 AS cor0
----
1292
1674
3068
query I rowsort
SELECT ALL + col1 * + col2 * col2 + + 10 FROM tab0 cor0
----
107
611894
93664
query I rowsort
SELECT ALL 11 + - col1 * ( - 37 ) FROM tab2 AS cor0
----
1158
2194
640
query I rowsort
SELECT DISTINCT + - col1 * 24 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-2097
-2266
-2329
query I rowsort
SELECT cor0.col0 * col2 + col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT + tab0.col1 + col2 FROM tab0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col1 * col1 col1 FROM tab0 AS cor0
----
-636056
-753571
-912673
query I rowsort
SELECT DISTINCT col1 + col1 * - ( - col1 ) * + col2 AS col0 FROM tab1
----
16237
36530
5710
query I rowsort
SELECT - tab0.col0 + ( cor1.col0 ) FROM tab0, tab1, tab2 AS cor0, tab2 AS cor1
----
81 values hashing to c02d44168aee9ad8786c627ac314043d
query I rowsort
SELECT col1 + col1 AS col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT - - col2 + + 14 AS col1 FROM tab1 AS cor0
----
110
68
71
query I rowsort
SELECT ALL + 58 AS col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query IIIIII rowsort
SELECT * FROM tab1, tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT - - 82 * col1 + col0 * + 42 FROM tab1 AS cor0
----
2258
3508
4426
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 57 col2 FROM tab0 AS cor0
----
143
148
154
query I rowsort
SELECT ALL 71 AS col0 FROM tab1 AS cor0
----
71
71
71
query I rowsort
SELECT ALL ( - ( + cor0.col2 ) ) * 35 FROM tab2 AS cor0
----
-1330
-910
-945
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 DISTINCT + - 58 * col1 AS col0 FROM tab0 cor0
----
-4988
-5278
-5626
onlyif mysql # use DIV operator for integer division
query I rowsort label-2210
SELECT - CAST( 59 AS SIGNED ) * col0 + ( + 42 ) DIV cor0.col1 FROM tab1 AS cor0
----
-176
-3772
-4717
skipif mysql # not compatible
query I rowsort label-2210
SELECT - CAST ( 59 AS INTEGER ) * col0 + ( + 42 ) / cor0.col1 FROM tab1 AS cor0
----
-176
-3772
-4717
query I rowsort
SELECT ALL col0 + + ( + col1 ) FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT 31 + 24 * col2 FROM tab0 AS cor0
----
1999
55
823
query I rowsort
SELECT DISTINCT - col0 * + col1 * cor0.col0 - + col2 FROM tab1 AS cor0
----
-288
-41017
-83296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2214
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2, tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2, tab1 cor0
----
NULL
query I rowsort
SELECT col2 + 1 * 46 * - tab2.col2 - col2 * col1 * col2 FROM tab2
----
-23814
-26258
-41054
query I rowsort
SELECT ALL col2 * 29 FROM tab0
----
2378
29
957
query I rowsort
SELECT col1 * + 50 * + col0 FROM tab0
----
103200
169750
404950
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2218
SELECT - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2218
SELECT - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 - - col0 AS col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT ( col1 ) * + col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT cor0.col0 * - 95 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-285
-6080
-7600
query I rowsort
SELECT ALL + - col2 + - ( col2 ) FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT - col1 - + col2 AS col2 FROM tab2 AS cor0
----
-55
-58
-85
skipif mysql # not compatible
query I rowsort
SELECT col0 * - col1 + - CAST ( + col2 AS REAL ) AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 * col2 col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT + col1 + - 23 FROM tab0 AS cor0
----
63
68
74
query I rowsort
SELECT col0 + + 79 + + col2 AS col0 FROM tab1 cor0
----
136
200
255
query I rowsort
SELECT - col2 + col0 + - 45 AS col2 FROM tab1 AS cor0
----
-38
-61
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 40 - - col2 col0 FROM tab0 AS cor0
----
-1287
-3198
-39
query I rowsort
SELECT DISTINCT - cor0.col0 + + 72 AS col2 FROM tab0 AS cor0
----
-17
37
48
query I rowsort
SELECT ALL - - col2 * + col0 + col1 AS col0 FROM tab2 AS cor0
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col0 col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT col0 * - col2 + col2 * col0 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT + col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( - col1 ) AND col0 * + col0
----
query I rowsort
SELECT ALL col2 - col0 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT - col0 + col2 * col1 AS col2 FROM tab2 AS cor0
----
1456
567
830
onlyif mysql # use DIV operator for integer division
query I rowsort label-2237
SELECT DISTINCT cor0.col2 * col1 + - col0 + col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
1169
1402
507
skipif mysql # not compatible
query I rowsort label-2237
SELECT DISTINCT cor0.col2 * col1 + - col0 + col2 / + col2 AS col1 FROM tab1 AS cor0
----
1169
1402
507
query I rowsort
SELECT ALL + col2 * + col0 - + col1 AS col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT - col1 * col2 + + cor0.col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL - col2 + - col1 + col1 AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col1 + + col2 * + col0 FROM tab2 cor0
----
-648
2356
494
query I rowsort
SELECT col2 * + col0 * col1 + col2 * col1 FROM tab2 AS cor0
----
121186
51680
6696
query I rowsort
SELECT DISTINCT + col0 + col1 * col0 AS col2 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT ALL - - cor0.col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT cor0.col0 * + col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE col1 <> col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab1 AS cor0 WHERE NOT col0 IN ( col2 )
----
10
13
26
query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE col2 IN ( col2 * - col1 * col0 )
----
query I rowsort
SELECT ALL - col0 * col0 AS col0 FROM tab2 WHERE NOT ( NULL ) IN ( tab2.col2 - col2 )
----
query I rowsort
SELECT DISTINCT - col1 * col0 + - col2 FROM tab1
----
-1136
-132
-697
query I rowsort
SELECT - col0 + tab2.col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT ALL tab2.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT col1 * col1 + - col1 AS col2 FROM tab2
----
272
3422
930
query I rowsort
SELECT ALL - col2 * col0 * + col0 + col2 * + col1 * col2 FROM tab0 cor0
----
-1128
-37638
74646
query I rowsort
SELECT DISTINCT col1 + col1 - + col0 AS col0 FROM tab1 AS cor0
----
-44
-54
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col0 col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2257
SELECT + col2 * col1 * - col2 + col0 DIV col2 FROM tab1 AS cor0
----
-119808
-32489
-75816
skipif mysql # not compatible
query I rowsort label-2257
SELECT + col2 * col1 * - col2 + col0 / col2 FROM tab1 AS cor0
----
-119808
-32489
-75816
query I rowsort
SELECT + + col1 + col0 FROM tab1 cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-2259
SELECT + col2 DIV - tab2.col1 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-2259
SELECT + col2 / - tab2.col1 FROM tab2
----
-2
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2260
SELECT DISTINCT col2 + + tab0.col1 DIV + col1 AS col0 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-2260
SELECT DISTINCT col2 + + tab0.col1 / + col1 AS col0 FROM tab0
----
2
34
83
query I rowsort
SELECT col2 * col2 * + col2 AS col2 FROM tab0
----
1
35937
551368
query I rowsort
SELECT DISTINCT - tab0.col0 + col0 FROM tab0
----
0
query I rowsort
SELECT DISTINCT col1 * + col1 + - col2 AS col2 FROM tab2
----
251
3455
934
query I rowsort
SELECT ALL col0 * col1 + col1 * + col1 AS col1 FROM tab2
----
1178
1632
8083
query I rowsort
SELECT col1 * tab1.col1 + - tab1.col2 FROM tab1
----
43
622
73
query I rowsort
SELECT DISTINCT col0 + col0 + col2 FROM tab0
----
260
71
81
query I rowsort
SELECT ALL col1 + col0 + + col0 * tab1.col0 FROM tab1
----
38
4170
6493
query I rowsort
SELECT - col0 * col2 * - col2 AS col0 FROM tab1 AS cor0
----
207936
737280
8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-2269
SELECT + tab1.col0 + col1 + col0 DIV + col1 FROM tab1
----
29
80
99
skipif mysql # not compatible
query I rowsort label-2269
SELECT + tab1.col0 + col1 + col0 / + col1 FROM tab1
----
29
80
99
query I rowsort
SELECT col0 * + col0 + + col1 AS col0 FROM tab2
----
6143
6258
80
query I rowsort
SELECT DISTINCT - col1 + + col2 * - col2 FROM tab1
----
-2942
-3259
-9229
query I rowsort
SELECT ALL - col1 * + col2 + col2 AS col1 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT - col0 * + col2 * col1 AS col1 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT col2 * col0 * + col2 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT ALL col2 * col1 * - col2 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT + col1 * + col1 * col0 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT col0 - col0 * tab2.col0 AS col1 FROM tab2
----
-42
-6006
-6162
query I rowsort
SELECT ALL + col0 - + col0 * + tab0.col0 * col0 AS col1 FROM tab0
----
-13800
-42840
-704880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 col0 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT col1 * tab2.col0 * tab2.col1 AS col0 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT + col0 * + tab1.col1 AS col0 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2282
SELECT - col1 DIV - tab0.col2 + + col2 * + col2 AS col2 FROM tab0
----
1091
6725
98
skipif mysql # not compatible
query I rowsort label-2282
SELECT - col1 / - tab0.col2 + + col2 * + col2 AS col2 FROM tab0
----
1091
6725
98
query I rowsort
SELECT DISTINCT ( ( - cor0.col1 ) ) FROM tab1, tab0 AS cor0, tab2 AS cor1
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2284
SELECT DISTINCT 78 DIV + col0 AS col1 FROM tab1
----
0
1
26
skipif mysql # not compatible
query I rowsort label-2284
SELECT DISTINCT 78 / + col0 AS col1 FROM tab1
----
0
1
26
query I rowsort
SELECT ALL + cor0.col2 * - 33 AS col2 FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to 40fee24999c1136e3a61c2cdb96e1db3
query I rowsort
SELECT + 62 + col2 AS col1 FROM tab1 AS cor0
----
116
119
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6
onlyif mysql # use DIV operator for integer division
query I rowsort label-2288
SELECT DISTINCT - cor0.col1 * col1 DIV + col2 AS col1 FROM tab0 cor0
----
-100
-224
-9409
skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT - cor0.col1 * col1 / + col2 AS col1 FROM tab0 cor0
----
-100
-224
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-2289
SELECT col2 DIV col1 + + col2 + + col0 AS col0 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-2289
SELECT col2 / col1 + + col2 + + col0 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + ( + col0 ) * cor0.col2 + 23 + col0 FROM tab1 AS cor0
----
188
3735
7783
query I rowsort
SELECT DISTINCT cor0.col2 * + col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT + 51 * - col1 + col0 + 97 AS col0 FROM tab0 AS cor0
----
-4265
-4455
-4815
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) < NULL
----
query I rowsort
SELECT DISTINCT col0 + col1 * col1 FROM tab0 WHERE NOT col1 IN ( + col0 )
----
7420
8370
9444
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 ) IN ( + col2 * - col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > col1 * col1
----
query I rowsort
SELECT - col1 + + tab2.col1 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE NOT NULL IN ( - tab1.col0 )
----
query I rowsort
SELECT ALL - col0 + + cor0.col2 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT ALL - col2 + - cor0.col1 * col0 + col1 * col2 AS col2 FROM tab0 AS cor0
----
-3299
-719
741
onlyif mysql # use DIV operator for integer division
query I rowsort label-2301
SELECT + col0 + + col0 DIV + col0 col2 FROM tab1
----
4
65
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2301
SELECT + col0 + + col0 / + col0 col2 FROM tab1
----
4
65
81
query I rowsort
SELECT DISTINCT - col2 * col2 FROM tab0 WHERE NOT - col0 IN ( - col0 )
----
query I rowsort
SELECT DISTINCT - col0 * - col1 FROM tab0 WHERE NOT - col0 / col2 BETWEEN col1 * - col2 AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2304
SELECT - col1 DIV + tab1.col2 + tab1.col2 * col2 AS col0 FROM tab1
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-2304
SELECT - col1 / + tab1.col2 + tab1.col2 * col2 AS col0 FROM tab1
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col2 col1 FROM tab0
----
0
0
0
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 - col2 + + col2 * - col2 + col2 AS col0 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NULL NOT IN ( col1 * + col0 )
----
query I rowsort
SELECT - col2 + col1 - + col1 AS col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL - 73 * + col0 FROM tab1
----
-219
-4672
-5840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2311
SELECT ALL + cor0.col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL + cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2312
SELECT - col1 * col2 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-2312
SELECT - col1 * col2 / cor0.col1 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + col2 + col1 + 87 FROM tab2
----
142
145
172
query I rowsort
SELECT - col1 * col0 * + col1 FROM tab0
----
-177504
-329315
-737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-2315
SELECT + col1 DIV - ( - 11 ) - tab1.col1 AS col0 FROM tab1
----
-10
-12
-24
skipif mysql # not compatible
query I rowsort label-2315
SELECT + col1 / - ( - 11 ) - tab1.col1 AS col0 FROM tab1
----
-10
-12
-24
query I rowsort
SELECT ALL - col1 * + ( - 41 ) * tab2.col1 FROM tab2
----
11849
142721
39401
query I rowsort
SELECT DISTINCT 85 AS col1 FROM tab0, tab2 AS cor0
----
85
query I rowsort
SELECT ALL 59 FROM tab0, tab1 cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT 37 FROM tab0, tab1 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query I rowsort
SELECT ALL - ( + tab0.col0 * - col2 ) FROM tab0
----
35
7298
792
query I rowsort
SELECT + - ( - col2 ) + col0 AS col1 FROM tab0 cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col0 FROM tab1, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL + cor0.col2 + cor0.col0 * 54 + - 65 FROM tab1, tab2 AS cor0
----
9 values hashing to 4773d4e25308d8fa9d028061af7238c2
query I rowsort
SELECT ( cor0.col1 ) * col1 - col2 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT ALL ( col1 ) * - col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + 74 + + col1 FROM tab0
----
160
165
171
query I rowsort
SELECT ( - col2 ) + col2 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + ( col2 ) AS col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT - cor0.col1 + + cor0.col2 * - cor0.col1 * 40 AS col2 FROM tab1 AS cor0
----
-22810
-49933
-56186
query I rowsort
SELECT - - col1 * + col2 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - col2 + col2 * - 39 AS col1 FROM tab0 AS cor0
----
-1320
-3280
-40
query I rowsort
SELECT DISTINCT + 28 AS col1 FROM tab0 AS cor0
----
28
query I rowsort
SELECT + + col1 + col0 * 87 * - cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
-356285
-556691
-703
query I rowsort
SELECT 78 + 39 FROM tab2
----
117
117
117
query I rowsort
SELECT ALL 2 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT ALL - 56 AS col0 FROM tab1
----
-56
-56
-56
query I rowsort
SELECT ALL + + ( col2 ) FROM tab1 cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2338
SELECT cor0.col2 + col2 DIV - col1 FROM tab0 cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2338
SELECT cor0.col2 + col2 / - col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT - 39 * + col2 FROM tab2 AS cor0
----
-1014
-1053
-1482
query I rowsort
SELECT cor0.col1 + + col1 * 96 AS col2 FROM tab2 AS cor0
----
1649
3007
5723
query I rowsort
SELECT ALL tab0.col2 * + col1 + col0 * + col0 FROM tab0
----
1322
15383
3414
query I rowsort
SELECT ALL - 38 * col2 + + ( col2 + - col2 ) FROM tab2
----
-1026
-1444
-988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + col0 col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT col2 - - col2 * + col1 AS col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT - col0 - + col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT + col1 * - cor0.col0 - + 52 FROM tab0 cor0
----
-2116
-3447
-8151
query I rowsort
SELECT DISTINCT - + col1 * + col0 + - col2 + col2 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT 62 * col0 + - ( + col0 + col1 ) * col2 AS col2 FROM tab1 AS cor0
----
-1380
-250
-3968
query I rowsort
SELECT col2 * col1 * ( col0 ) + col1 AS col1 FROM tab2 AS cor0
----
119711
51051
5890
query I rowsort
SELECT DISTINCT col2 + col0 FROM tab2 cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-2351
SELECT ALL + col2 DIV + col0 + ( + col2 ) FROM tab2 AS cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL + col2 / + col0 + ( + col2 ) FROM tab2 AS cor0
----
26
30
38
query I rowsort
SELECT + 24 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT DISTINCT - + col0 * 5 + - col2 FROM tab2 AS cor0
----
-416
-433
-62
query I rowsort
SELECT - cor0.col2 * - 76 FROM tab0 AS cor0
----
2508
6232
76
query I rowsort
SELECT DISTINCT - col1 * + 31 FROM tab1 AS cor0
----
-310
-403
-806
query I rowsort
SELECT ALL + - col0 * ( col0 ) + col2 * col1 FROM tab0 AS cor0
----
-1128
-459
2262
query I rowsort
SELECT DISTINCT - + cor0.col1 + + 6 FROM tab0 AS cor0
----
-80
-85
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-2358
SELECT cor0.col2 * col1 DIV + 72 + - col2 FROM tab1 cor0
----
-35
-50
-79
skipif mysql # not compatible
query I rowsort label-2358
SELECT cor0.col2 * col1 / + 72 + - col2 FROM tab1 cor0
----
-35
-50
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-2359
SELECT ALL - col2 DIV + ( - cor0.col2 ) AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL - col2 / + ( - cor0.col2 ) AS col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT - col2 + + ( - col0 ) FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2361
SELECT ALL + cor0.col2 DIV 45 FROM tab1 cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL + cor0.col2 / 45 FROM tab1 cor0
----
1
1
2
query I rowsort
SELECT + + col2 + col1 * + col2 * col0 AS col0 FROM tab1 AS cor0
----
36537
4266
99936
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col1 * 97 col2 FROM tab2 AS cor0
----
-1611
-2980
-5697
query I rowsort
SELECT ALL col2 * col2 - col2 AS col1 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT col2 + col0 * col1 * col0 FROM tab1
----
288
41017
83296
query I rowsort
SELECT - 89 + + tab0.col0 FROM tab0
----
-54
-65
0
query I rowsort
SELECT tab2.col2 * tab2.col2 AS col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT col2 * - col1 + col2 * 11 + col0 FROM tab1
----
-112
-807
121
query I rowsort
SELECT ALL - col0 + cor0.col0 + col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT col0 + tab2.col1 * 19 AS col2 FROM tab2
----
1199
402
596
query I rowsort
SELECT ALL - ( + 83 ) AS col0 FROM tab2 AS cor0
----
-83
-83
-83
query I rowsort
SELECT ALL 84 + + 65 + col1 * 5 * 63 AS col1 FROM tab1 AS cor0
----
3299
4244
8339
query I rowsort
SELECT DISTINCT + 61 * + col0 - + col1 FROM tab2 AS cor0
----
396
4699
4802
query I rowsort
SELECT ALL + ( ( - col0 ) ) + col0 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + col2 AS REAL ) FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( col0 ) col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT col0 + - ( + col2 ) * + col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT 62 * col2 FROM tab2 AS cor0
----
1612
1674
2356
query I rowsort
SELECT + 51 + col1 * col2 * - col0 AS col0 FROM tab2 AS cor0
----
-119601
-50983
-5808
query I rowsort
SELECT ALL cor0.col0 - - 53 FROM tab2 AS cor0
----
131
132
60
query I rowsort
SELECT 39 + + cor0.col1 * - col1 AS col1 FROM tab2 AS cor0
----
-250
-3442
-922
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col1 + + col2 col2 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT ALL + + ( - col1 ) * col1 - + 97 FROM tab0 AS cor0
----
-7493
-8378
-9506
query I rowsort
SELECT - + 47 * col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-138
-2944
-3680
query I rowsort
SELECT DISTINCT - + col1 - col0 * col0 FROM tab0 AS cor0
----
-1322
-662
-8012
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 70 AS REAL ) + cor0.col2 * + col2 FROM tab0 cor0
----
-69
1019
6654
query I rowsort
SELECT 7 FROM tab0, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2388
SELECT ALL - CAST( 62 AS SIGNED ) - - col1 * - tab2.col0 FROM tab2
----
-1405
-279
-4664
skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL - CAST ( 62 AS INTEGER ) - - col1 * - tab2.col0 FROM tab2
----
-1405
-279
-4664
query I rowsort
SELECT - col2 * + col2 * - 71 FROM tab2
----
102524
47996
51759
query I rowsort
SELECT DISTINCT + col0 + 19 AS col2 FROM tab0
----
108
43
54
query I rowsort
SELECT + col0 + - col2 AS col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT - + 4 * + col1 * col1 AS col0 FROM tab1 AS cor0
----
-2704
-400
-676
query I rowsort
SELECT + cor0.col2 * - col1 + cor0.col1 * + 25 + + col2 * + col1 FROM tab1 AS cor0
----
250
325
650
query I rowsort
SELECT col1 * - 79 + tab2.col2 FROM tab2
----
-1305
-2422
-4635
query I rowsort
SELECT + 80 + - cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 0e59a6b9033441e29a139d929410b258
query I rowsort
SELECT + col2 * - 55 AS col1 FROM tab2
----
-1430
-1485
-2090
query I rowsort
SELECT DISTINCT - + col1 + col1 FROM tab1 cor0
----
0
query I rowsort
SELECT ALL col0 + - col2 + col0 AS col2 FROM tab1
----
-48
64
71
query I rowsort
SELECT col1 * + cor0.col1 + - col1 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT ALL cor0.col2 * col2 AS col1 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT - col0 * - col0 + col0 + col2 AS col1 FROM tab1 AS cor0
----
4217
6576
66
query I rowsort
SELECT ALL + col0 * - col0 + tab1.col2 + - col0 AS col1 FROM tab1
----
-4103
-6384
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col0 col2 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL + cor0.col0 + cor0.col1 AS col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) + col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) * - col1 + col0 + + col1 FROM tab0 AS cor0
----
229
2948
7642
query I rowsort
SELECT DISTINCT - + 75 AS col1 FROM tab1 AS cor0
----
-75
query I rowsort
SELECT DISTINCT - col1 * + 36 + col1 * + 80 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-11252
-230136
-600236
query I rowsort
SELECT ALL ( - col0 ) - + col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT - col1 * ( + col2 ) + 64 FROM tab2 AS cor0
----
-1470
-582
-773
query I rowsort
SELECT ALL - - ( - col0 ) * col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - 37 AS col0 FROM tab1 AS cor0
----
-37
-37
-37
query I rowsort
SELECT ALL + + col1 + - col2 FROM tab2 cor0
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 * col2 col1 FROM tab1
----
-3078
-3249
-5472
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + - col1 + ( cor0.col2 ) * cor0.col1 col2 FROM tab2 cor0
----
3503
3631
995
query I rowsort
SELECT - ( col0 ) * col1 + - col2 + - col2 * - col2 FROM tab1 AS cor0
----
2552
2784
8080
query I rowsort
SELECT + cor0.col0 + ( - col1 ) + - col2 FROM tab2 cor0
----
-51
-7
24
query I rowsort
SELECT DISTINCT 46 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-3956
-4186
-4462
query I rowsort
SELECT DISTINCT - 39 AS col0 FROM tab2 cor0
----
-39
query I rowsort
SELECT 43 - col2 FROM tab2 AS cor0
----
16
17
5
query I rowsort
SELECT 80 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91
onlyif mysql # use DIV operator for integer division
query I rowsort label-2422
SELECT - - 62 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
0
1
62
skipif mysql # not compatible
query I rowsort label-2422
SELECT - - 62 / cor0.col2 AS col0 FROM tab0 AS cor0
----
0
1
62
query I rowsort
SELECT DISTINCT + 11 * cor0.col0 AS col2 FROM tab1 AS cor0
----
33
704
880
query I rowsort
SELECT DISTINCT - + col0 * col0 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL + col0 + + col1 * + col2 * - col0 AS col2 FROM tab1 cor0
----
-36416
-4209
-99760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * - col1 + - 81 * cor0.col2 col2 FROM tab2 AS cor0
----
-1735
-1970
2496
query I rowsort
SELECT ALL - col0 * col2 + 21 * col2 AS col0 FROM tab0 AS cor0
----
-14
-5576
-99
query I rowsort
SELECT ALL - ( - col0 ) + col0 AS col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT + col1 * - col1 * col0 AS col0 FROM tab0 cor0
----
-177504
-329315
-737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-2430
SELECT 65 + + col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
65
65
68
skipif mysql # not compatible
query I rowsort label-2430
SELECT 65 + + col2 / + col0 AS col1 FROM tab2 AS cor0
----
65
65
68
query I rowsort
SELECT ALL + 18 + + col1 FROM tab2 AS cor0
----
35
49
77
query I rowsort
SELECT ALL - 3 FROM tab0 AS cor0
----
-3
-3
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-2433
SELECT DISTINCT col2 * 38 + col0 DIV col2 FROM tab0 AS cor0
----
1254
3117
73
skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT col2 * 38 + col0 / col2 FROM tab0 AS cor0
----
1254
3117
73
query I rowsort
SELECT ALL - - col2 * cor0.col0 + + col2 FROM tab0 cor0
----
36
7380
825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2435
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) / + cor0.col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) / + cor0.col2 FROM tab1 cor0
----
NULL
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-2437
SELECT DISTINCT - ( + tab1.col1 ) DIV + col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-2437
SELECT DISTINCT - ( + tab1.col1 ) / + col2 FROM tab1
----
0
query I rowsort
SELECT DISTINCT + col2 * - 22 AS col2 FROM tab0 AS cor0
----
-1804
-22
-726
query I rowsort
SELECT DISTINCT + col2 * ( col1 * - col0 ) + col0 AS col2 FROM tab2 AS cor0
----
-119574
-50955
-5852
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 * 95 col1 FROM tab1 AS cor0
----
389120
608000
855
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * col2 - cor0.col2 col1 FROM tab0 AS cor0
----
2805
7380
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + ( 34 ) col0 FROM tab2 AS cor0
----
-1054
-2006
-578
query I rowsort
SELECT col0 + - 5 + col1 * - ( - col2 ) * col0 AS col0 FROM tab1 AS cor0
----
36539
4210
99915
query I rowsort
SELECT - - 97 + cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 02d2892b361fc3d06d5db36957de1116
onlyif mysql # use DIV operator for integer division
query I rowsort label-2445
SELECT + 12 DIV - col1 + - col0 FROM tab0 cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-2445
SELECT + 12 / - col1 + - col0 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT + - cor0.col0 + - col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT + 17 AS col0 FROM tab1, tab2 AS cor0
----
17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2448
SELECT CAST( - cor0.col2 AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
skipif mysql # not compatible
query I rowsort label-2448
SELECT CAST ( - cor0.col2 AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT + 64 FROM tab2, tab0 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT ALL 3 AS col0 FROM tab1 cor0
----
3
3
3
query I rowsort
SELECT - cor2.col2 FROM tab0, tab2 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8
query I rowsort
SELECT DISTINCT + tab2.col0 FROM tab2, tab0 AS cor0
----
7
78
79
query I rowsort
SELECT 29 * - tab1.col0 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to d92716868d5bdc9272f7ba54dfbc5e44
query I rowsort
SELECT ALL 36 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT 59 FROM tab0, tab1 cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT DISTINCT - 24 * - col2 FROM tab2
----
624
648
912
query I rowsort
SELECT + - col1 + + col2 * + 0 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-2458
SELECT DISTINCT 91 * col1 - 7 DIV - col0 FROM tab1 AS cor0
----
1183
2368
910
skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT 91 * col1 - 7 / - col0 FROM tab1 AS cor0
----
1183
2368
910
query I rowsort
SELECT DISTINCT - - cor0.col1 * col2 AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL - - 35 * col2 FROM tab2 AS cor0
----
1330
910
945
query I rowsort
SELECT DISTINCT + 82 FROM tab2
----
82
query I rowsort
SELECT - col2 + + 97 * col0 FROM tab1 AS cor0
----
237
6151
7664
query I rowsort
SELECT ALL + + cor0.col2 * 39 - cor0.col0 FROM tab0 AS cor0
----
1263
3109
4
query I rowsort
SELECT - 75 * + 82 - - cor0.col0 FROM tab2 AS cor0
----
-6071
-6072
-6143
query I rowsort
SELECT DISTINCT - 80 - + col1 AS col2 FROM tab0 AS cor0
----
-166
-171
-177
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab2 cor2
----
3645 values hashing to b9fc7433316cc7891b52d2a23a135419
query I rowsort
SELECT - col0 * + ( tab1.col1 ) * + col2 AS col0 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT - col2 * ( col1 ) AS col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + 24 * - col1 * + col2 AS col2 FROM tab1
----
-13680
-29952
-33696
query I rowsort
SELECT 73 FROM tab1, tab1 cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT DISTINCT - col2 * + 86 FROM tab1
----
-4644
-4902
-8256
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2472
SELECT 56 * + col0 + - col1 * - CAST( NULL AS SIGNED ) / + cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2472
SELECT 56 * + col0 + - col1 * - CAST ( NULL AS INTEGER ) / + cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2473
SELECT + - 74 DIV - col1 + + col0 FROM tab2 AS cor0
----
79
83
9
skipif mysql # not compatible
query I rowsort label-2473
SELECT + - 74 / - col1 + + col0 FROM tab2 AS cor0
----
79
83
9
query I rowsort
SELECT ALL 46 + + 13 FROM tab2
----
59
59
59
query I rowsort
SELECT - col2 - 35 * col2 FROM tab0
----
-1188
-2952
-36
query I rowsort
SELECT col1 + + col0 * col0 FROM tab2
----
6143
6258
80
query I rowsort
SELECT + ( - col2 ) AS col1 FROM tab0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2478
SELECT + - col0 DIV col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2478
SELECT + - col0 / col0 FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2479
SELECT tab2.col2 + col1 * ( - col0 ) + tab2.col2 * ( 7 ) DIV col0 AS col2 FROM tab2
----
-1302
-163
-4574
skipif mysql # not compatible
query I rowsort label-2479
SELECT tab2.col2 + col1 * ( - col0 ) + tab2.col2 * ( 7 ) / col0 AS col2 FROM tab2
----
-1302
-163
-4574
onlyif mysql # use DIV operator for integer division
query I rowsort label-2480
SELECT DISTINCT + col1 * col2 + - col0 * col0 DIV col0 AS col0 FROM tab0
----
2814
62
7373
skipif mysql # not compatible
query I rowsort label-2480
SELECT DISTINCT + col1 * col2 + - col0 * col0 / col0 AS col0 FROM tab0
----
2814
62
7373
query I rowsort
SELECT + - col0 * 51 FROM tab1 cor0
----
-153
-3264
-4080
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 39615739daa2056ffb6e430a8ff0bfc8
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 + col0 + 89 * cor0.col2 FROM tab2 AS cor0
----
2392
2410
3461
onlyif mysql # use DIV operator for integer division
query I rowsort label-2485
SELECT col0 DIV - cor0.col2 col1 FROM tab1 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2485
SELECT col0 / - cor0.col2 col1 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT + - col0 - + 63 AS col0 FROM tab2 AS cor0
----
-141
-142
-70
query I rowsort
SELECT + col2 * col2 + + 73 * col0 FROM tab0
----
13221
2556
2841
onlyif mysql # use DIV operator for integer division
query I rowsort label-2488
SELECT DISTINCT tab2.col2 * col1 DIV + col1 - col0 AS col1 FROM tab2
----
-41
-52
20
skipif mysql # not compatible
query I rowsort label-2488
SELECT DISTINCT tab2.col2 * col1 / + col1 - col0 AS col1 FROM tab2
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-2489
SELECT - col0 DIV - 46 col1 FROM tab0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2489
SELECT - col0 / - 46 col1 FROM tab0
----
0
0
1
query I rowsort
SELECT tab2.col1 * col0 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT col2 + 68 * col2 * col2 FROM tab0 AS cor0
----
457314
69
74085
onlyif mysql # use DIV operator for integer division
query I rowsort label-2492
SELECT tab0.col1 DIV col1 - - 92 col2 FROM tab0
----
93
93
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2492
SELECT tab0.col1 / col1 - - 92 col2 FROM tab0
----
93
93
93
query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT - 73 FROM tab2, tab1 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc
query I rowsort
SELECT DISTINCT + 46 * - col0 AS col2 FROM tab0 cor0
----
-1104
-1610
-4094
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col0 ) * col2 + ( + cor0.col1 ) + - col2 * + 53 col1 FROM tab1 cor0
----
-12755
-2998
-6659
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 18 AS REAL ) + col1 + - col0 AS col0 FROM tab0 AS cor0
----
-16
44
44
query I rowsort
SELECT DISTINCT - 50 * 45 FROM tab1 AS cor0
----
-2250
query I rowsort
SELECT DISTINCT ( cor0.col0 ) * col1 * + 96 FROM tab1 AS cor0
----
61440
7488
99840
query I rowsort
SELECT ALL + - 58 + + col2 AS col0 FROM tab0 cor0
----
-25
-57
24
query I rowsort
SELECT cor0.col2 + 86 FROM tab2 AS cor0
----
112
113
124
query I rowsort
SELECT - + ( 53 ) FROM tab0 AS cor0
----
-53
-53
-53
query I rowsort
SELECT DISTINCT - - col0 * 14 FROM tab0 AS cor0
----
1246
336
490
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) + - col0 col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + - col0 * cor0.col2 + col1 + col1 FROM tab0 AS cor0
----
-620
-7116
159
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - col0 AS REAL ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + + col1 + - 97 FROM tab1 AS cor0
----
-71
-84
-87
query I rowsort
SELECT - ( - 51 ) FROM tab2, tab2 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT + col0 * + col2 - - cor0.col2 AS col0 FROM tab1 cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT 23 + col0 AS col1 FROM tab0 AS cor0
----
112
47
58
query I rowsort
SELECT ALL ( ( + cor0.col2 ) ) * + col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - 8 * 38 AS col0 FROM tab0 AS cor0
----
-304
-304
-304
query I rowsort
SELECT ALL - + col0 * + col1 * - col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT 18 * - col1 AS col2 FROM tab1 cor0
----
-180
-234
-468
query I rowsort
SELECT + - col2 * - 46 - col2 * + 76 FROM tab0 AS cor0
----
-2460
-30
-990
query I rowsort
SELECT + - 29 FROM tab2 AS cor0
----
-29
-29
-29
query I rowsort
SELECT + 74 * - col2 AS col1 FROM tab0 AS cor0
----
-2442
-6068
-74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 col2 FROM tab2
----
87
87
87
query I rowsort
SELECT DISTINCT - 10 * - col2 AS col1 FROM tab2
----
260
270
380
query I rowsort
SELECT ALL 91 AS col2 FROM tab2 AS cor0
----
91
91
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 * - ( - col2 ) + - cor0.col1 * - 8 col0 FROM tab2 cor0
----
114212
53200
5351
query I rowsort
SELECT ALL + 15 AS col0 FROM tab1 AS cor0
----
15
15
15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col0 col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL col2 * 10 + - col1 AS col1 FROM tab0 AS cor0
----
-87
244
729
query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + - col2 + - 87 AS col0 FROM tab0 AS cor0
----
-120
-169
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * cor0.col1 col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT ( - col0 ) FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT - col0 + col0 - ( cor0.col1 * - col0 ) FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - - cor0.col2 + col0 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-2533
SELECT col1 DIV + cor0.col2 FROM tab0 cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-2533
SELECT col1 / + cor0.col2 FROM tab0 cor0
----
1
2
97
query I rowsort
SELECT ALL - 3 + - col1 AS col0 FROM tab2 AS cor0
----
-20
-34
-62
query I rowsort
SELECT + 75 + col1 * 93 AS col2 FROM tab0 cor0
----
8073
8538
9096
onlyif mysql # use DIV operator for integer division
query I rowsort label-2536
SELECT DISTINCT col1 * + col2 DIV + tab0.col2 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT col1 * + col2 / + tab0.col2 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT ( col2 ) * - col0 FROM tab2
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT ALL - ( tab2.col0 ) * col1 AS col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL + + 8 AS col2 FROM tab1 AS cor0
----
8
8
8
query I rowsort
SELECT DISTINCT + 97 + + col0 AS col2 FROM tab2 AS cor0
----
104
175
176
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 * col0 col0 FROM tab0 cor0
----
2232
3255
8277
query I rowsort
SELECT DISTINCT ( + col0 ) + - 21 AS col1 FROM tab1 AS cor0
----
-18
43
59
query I rowsort
SELECT 88 + cor0.col1 FROM tab2 AS cor0
----
105
119
147
query I rowsort
SELECT DISTINCT - 92 AS col2 FROM tab2 cor0
----
-92
query I rowsort
SELECT - + cor0.col2 * + col1 + + 15 AS col1 FROM tab1 AS cor0
----
-1233
-1389
-555
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2547
SELECT + col1 * - ( tab1.col2 * col0 ) + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2547
SELECT + col1 * - ( tab1.col2 * col0 ) + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2548
SELECT - - col2 DIV + col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-2548
SELECT - - col2 / + col0 FROM tab1 AS cor0
----
0
1
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-2549
SELECT DISTINCT col1 DIV + 65 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT col1 / + 65 FROM tab0 AS cor0
----
1
query I rowsort
SELECT ALL - col2 + - col1 * - col2 * col0 AS col2 FROM tab1 AS cor0
----
36423
4158
99744
onlyif mysql # use DIV operator for integer division
query I rowsort label-2551
SELECT ALL - col2 + ( + col1 ) DIV + col0 FROM tab0 AS cor0
----
-30
-81
1
skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL - col2 + ( + col1 ) / + col0 FROM tab0 AS cor0
----
-30
-81
1
query I rowsort
SELECT - + col1 * col0 + - col1 * + cor0.col0 FROM tab0 AS cor0
----
-16198
-4128
-6790
query I rowsort
SELECT ALL col2 * col0 + - 41 AS col0 FROM tab1 cor0
----
121
3607
7639
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + cor0.col0 col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - col0 + - col2 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2556
SELECT DISTINCT + col1 DIV + 96 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-2556
SELECT DISTINCT + col1 / + 96 FROM tab2
----
0
query I rowsort
SELECT + col0 + ( + 97 ) FROM tab1
----
100
161
177
query I rowsort
SELECT ALL + col0 * 59 FROM tab1 AS cor0
----
177
3776
4720
onlyif mysql # use DIV operator for integer division
query I rowsort label-2559
SELECT 73 * ( - col1 * col0 ) + + tab2.col2 DIV tab2.col0 FROM tab2
----
-15838
-335946
-98039
skipif mysql # not compatible
query I rowsort label-2559
SELECT 73 * ( - col1 * col0 ) + + tab2.col2 / tab2.col0 FROM tab2
----
-15838
-335946
-98039
query I rowsort
SELECT + col0 * col2 + - col1 AS col0 FROM tab1
----
136
3638
7667
query I rowsort
SELECT 87 AS col0 FROM tab1
----
87
87
87
query I rowsort
SELECT ALL ( col2 ) * + col0 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
158
1969
2985
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2563
SELECT DISTINCT + CAST( 70 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
2310
5740
70
skipif mysql # not compatible
query I rowsort label-2563
SELECT DISTINCT + CAST ( 70 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
2310
5740
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 * col2 col1 FROM tab1 AS cor0
----
-4860
-5130
-8640
query I rowsort
SELECT ALL - 56 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 34348c65780193c8d601ab14b29af6e7
query I rowsort
SELECT ALL + - 44 AS col0 FROM tab1 AS cor0
----
-44
-44
-44
query I rowsort
SELECT DISTINCT + + col2 + col1 * col0 AS col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL - col0 * ( col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-2569
SELECT + 17 DIV tab1.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-2569
SELECT + 17 / tab1.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT + ( - 92 ) * + col1 + col0 FROM tab0 AS cor0
----
-7888
-8283
-8889
query I rowsort
SELECT + - 2 FROM tab2 AS cor0
----
-2
-2
-2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - - 1 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + - col0 + 60 FROM tab0 AS cor0
----
-29
25
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 25 + - col1 col2 FROM tab0 cor0
----
-61
-66
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) * col1 + 88 + + 58 col0 FROM tab2 AS cor0
----
-1197
-4456
-71
query I rowsort
SELECT + ( col0 ) + - col1 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT 49 * + col1 + - col1 FROM tab1
----
1248
480
624
query I rowsort
SELECT ALL - cor0.col2 + cor0.col1 * + col1 AS col1 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT ALL + + col1 * col2 + - 95 AS col2 FROM tab0 AS cor0
----
2
2743
7367
query I rowsort
SELECT DISTINCT - col0 * + ( - col0 ) + - col0 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT - - col2 + 61 * - 35 * - col0 AS col1 FROM tab1 AS cor0
----
136697
170896
6459
query I rowsort
SELECT col0 * + 67 AS col0 FROM tab2
----
469
5226
5293
onlyif mysql # use DIV operator for integer division
query I rowsort label-2584
SELECT ALL - col1 DIV 64 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL - col1 / 64 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 * col1 + - col1 * tab2.col0 + col1 AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT + - col2 * - col1 - + col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT col1 + col1 * + cor0.col2 FROM tab1 cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-2588
SELECT + col2 DIV - ( - col0 * + col1 ) + + col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-2588
SELECT + col2 / - ( - col0 * + col1 ) + + col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - col0 * ( 74 ) AS col1 FROM tab1
----
-222
-4736
-5920
query I rowsort
SELECT - col1 + - col2 * + col2 * ( + col0 ) AS col1 FROM tab0 cor0
----
-132
-26222
-598527
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 * - 53 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 4e71cf06d830bfe4725b26038841dc2c
query I rowsort
SELECT ALL + col0 * tab0.col0 FROM tab0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-2593
SELECT DISTINCT - cor0.col2 DIV 26 AS col2 FROM tab1, tab0, tab0 AS cor0
----
-1
-3
0
skipif mysql # not compatible
query I rowsort label-2593
SELECT DISTINCT - cor0.col2 / 26 AS col2 FROM tab1, tab0, tab0 AS cor0
----
-1
-3
0
query I rowsort
SELECT - col0 * ( - col1 * col0 ) AS col1 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT col0 + + col2 + cor0.col0 FROM tab0 cor0
----
260
71
81
query I rowsort
SELECT cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT + col1 + + cor0.col0 + col1 FROM tab1 AS cor0
----
106
55
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-2598
SELECT DISTINCT col1 + 69 DIV col1 FROM tab1 AS cor0
----
16
18
28
skipif mysql # not compatible
query I rowsort label-2598
SELECT DISTINCT col1 + 69 / col1 FROM tab1 AS cor0
----
16
18
28
query I rowsort
SELECT - - col2 + 64 * 88 * - col2 + col0 FROM tab1 AS cor0
----
-304071
-320903
-540496
query I rowsort
SELECT - + col0 + 38 * + col1 FROM tab0 cor0
----
3244
3369
3651
onlyif mysql # use DIV operator for integer division
query I rowsort label-2601
SELECT ALL + ( col1 ) * col2 + col2 DIV + 33 + cor0.col2 * 6 FROM tab0 AS cor0
----
103
3037
7956
skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL + ( col1 ) * col2 + col2 / + 33 + cor0.col2 * 6 FROM tab0 AS cor0
----
103
3037
7956
query I rowsort
SELECT ALL + cor0.col0 * - col0 * col0 + + 3 + cor0.col0 FROM tab2 AS cor0
----
-333
-474471
-492957
query I rowsort
SELECT ALL + col2 * 0 + - col1 * col1 + 47 * col0 FROM tab0 cor0
----
-4098
-6268
-7764
query I rowsort
SELECT + - 1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - + ( + col0 ) + col0 * col2 + + col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 35707ade138fec4b370f5140a4cd2963
query I rowsort
SELECT ALL + cor1.col2 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - cor1.col0 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL 94 * + cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4537621fe0913e2885fc8fbbfd0f937e
query I rowsort
SELECT - 28 * + col0 AS col0 FROM tab2 cor0
----
-196
-2184
-2212
query I rowsort
SELECT - cor0.col0 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT + 98 * - col2 FROM tab2 cor0
----
-2548
-2646
-3724
query I rowsort
SELECT - - 63 * col2 FROM tab0 AS cor0
----
2079
5166
63
query I rowsort
SELECT - col2 - + col1 AS col1 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT ALL + col0 * + tab1.col0 + + col2 AS col2 FROM tab1
----
4153
63
6496
query I rowsort
SELECT DISTINCT - cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL ( col0 * ( - col1 ) ) FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-2618
SELECT ALL - col1 * col0 - + cor0.col0 DIV - col2 FROM tab0 AS cor0
----
-2064
-3360
-8098
skipif mysql # not compatible
query I rowsort label-2618
SELECT ALL - col1 * col0 - + cor0.col0 / - col2 FROM tab0 AS cor0
----
-2064
-3360
-8098
query I rowsort
SELECT DISTINCT - col0 * col0 + - col1 FROM tab0 AS cor0
----
-1322
-662
-8012
query I rowsort
SELECT ALL col0 + + col1 * col1 AS col0 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT ALL - tab1.col0 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT ALL 37 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c023509f63faa044d654943e6df55ca2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 col2 FROM tab0
----
69
query I rowsort
SELECT DISTINCT + col1 + ( 51 ) FROM tab0 cor0
----
137
142
148
query I rowsort
SELECT + col0 + - col1 * cor0.col1 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT DISTINCT + + cor0.col0 + - 36 FROM tab1 AS cor0
----
-33
28
44
query I rowsort
SELECT - col0 * 72 FROM tab0 AS cor0
----
-1728
-2520
-6408
query I rowsort
SELECT DISTINCT + col0 * + col2 + cor0.col0 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2629
SELECT DISTINCT - cor0.col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2629
SELECT DISTINCT - cor0.col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT cor0.col2 * col2 * col2 FROM tab1 AS cor0
----
157464
185193
884736
query I rowsort
SELECT - - col2 * 82 AS col2 FROM tab0 AS cor0
----
2706
6724
82
query I rowsort
SELECT 20 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4
query I rowsort
SELECT - col2 * 63 - + col1 * col0 FROM tab0
----
-13265
-3458
-4143
query I rowsort
SELECT + col2 + 33 FROM tab1 AS cor0
----
129
87
90
query I rowsort
SELECT ALL col1 + + 21 * - cor0.col1 AS col2 FROM tab0 cor0
----
-1720
-1820
-1940
query I rowsort
SELECT DISTINCT + 0 * + 89 FROM tab1, tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 39 + - col0 col1 FROM tab0
----
3330
3460
3748
query I rowsort
SELECT DISTINCT cor0.col0 * ( col1 ) FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL 44 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
query I rowsort
SELECT DISTINCT - col2 + col1 + col1 FROM tab0
----
100
139
193
query I rowsort
SELECT - ( col1 ) + - col2 AS col2 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT tab2.col1 * - 84 FROM tab2
----
-1428
-2604
-4956
query I rowsort
SELECT col1 + + 25 FROM tab2
----
42
56
84
query I rowsort
SELECT ALL col2 + - ( + tab1.col0 ) AS col2 FROM tab1
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-2645
SELECT - + cor0.col2 DIV 36 + col1 DIV col0 + col2 col2 FROM tab2 AS cor0
----
26
31
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2645
SELECT - + cor0.col2 / 36 + col1 / col0 + col2 col2 FROM tab2 AS cor0
----
26
31
37
query I rowsort
SELECT ALL + ( 97 ) * + cor2.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 0dfc8c0c59baf464d75e458ab410e1a0
query I rowsort
SELECT + - ( col2 ) * col1 * + col2 + 13 + - col1 AS col0 FROM tab1 AS cor0
----
-119808
-32487
-75829
query I rowsort
SELECT col1 * - col1 + col2 + + ( + 47 ) AS col1 FROM tab2
----
-204
-3408
-887
query I rowsort
SELECT ALL ( + tab2.col2 ) + col1 FROM tab2
----
55
58
85
query I rowsort
SELECT - 11 + + col0 * - col0 AS col1 FROM tab2
----
-60
-6095
-6252
query I rowsort
SELECT + - 26 AS col0 FROM tab0 AS cor0
----
-26
-26
-26
query I rowsort
SELECT - 45 * col0 FROM tab0 AS cor0
----
-1080
-1575
-4005
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2653
SELECT DISTINCT - - col0 * col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT - - col0 * col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - - col2 * + col1 - col1 AS col0 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT - col2 * + tab2.col2 AS col1 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT 87 * - col0 FROM tab2 AS cor0
----
-609
-6786
-6873
query I rowsort
SELECT DISTINCT - 88 FROM tab1 cor0
----
-88
query I rowsort
SELECT ALL + + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + col2 * cor0.col1 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL col1 + col1 * cor0.col1 FROM tab0 AS cor0
----
7482
8372
9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * col0 col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2662
SELECT - 51 + + cor0.col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2662
SELECT - 51 + + cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 + + col0 * 17 col1 FROM tab1 AS cor0
----
101
1138
1410
query I rowsort
SELECT DISTINCT - - col1 + col0 * col2 - - col2 FROM tab1 AS cor0
----
242
3715
7789
query I rowsort
SELECT ALL + - cor0.col0 + + col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT cor0.col2 * - col0 + col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2667
SELECT ALL col1 * col2 DIV - tab1.col0 FROM tab1
----
-15
-468
-8
skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL col1 * col2 / - tab1.col0 FROM tab1
----
-15
-468
-8
query I rowsort
SELECT col1 + - col1 * tab1.col2 AS col2 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT + col0 + col1 * + col0 AS col2 FROM tab1 AS cor0
----
1120
704
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 * - col0 + + col0 col1 FROM tab0 AS cor0
----
-168
-245
-623
query I rowsort
SELECT - - 56 AS col2 FROM tab0 cor0
----
56
56
56
query I rowsort
SELECT DISTINCT 58 AS col1 FROM tab1 AS cor0
----
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 + + col2 col1 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT - col0 + - col2 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT ( col1 ) + col1 - + col2 FROM tab0
----
100
139
193
onlyif mysql # use DIV operator for integer division
query I rowsort label-2676
SELECT + ( col2 ) DIV + tab1.col0 + + col2 FROM tab1
----
57
72
97
skipif mysql # not compatible
query I rowsort label-2676
SELECT + ( col2 ) / + tab1.col0 + + col2 FROM tab1
----
57
72
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2677
SELECT 32 DIV + col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2677
SELECT 32 / + col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + 79 + col0 * + tab2.col2 AS col1 FROM tab2
----
2107
268
3081
query I rowsort
SELECT - ( col2 ) + + col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + col0 + col0 * + tab2.col1 FROM tab2
----
1422
224
4680
query I rowsort
SELECT - col0 * - col1 + col2 AS col2 FROM tab2
----
1381
244
4628
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) - - col1 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT 39 + col0 + col0 * tab0.col2 AS col0 FROM tab0
----
109
7426
855
query I rowsort
SELECT ( tab2.col2 ) * + col0 * + col1 + + col1 AS col1 FROM tab2
----
119711
51051
5890
query I rowsort
SELECT ALL - tab1.col2 AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
onlyif mysql # use DIV operator for integer division
query I rowsort label-2686
SELECT + + cor0.col0 DIV cor1.col0 + + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fd6b54c3ca193b55be0ee19070c4b61a
skipif mysql # not compatible
query I rowsort label-2686
SELECT + + cor0.col0 / cor1.col0 + + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fd6b54c3ca193b55be0ee19070c4b61a
query I rowsort
SELECT DISTINCT + 20 AS col2 FROM tab2
----
20
query I rowsort
SELECT ALL + 96 FROM tab2
----
96
96
96
query I rowsort
SELECT 31 * col0 AS col2 FROM tab0
----
1085
2759
744
query I rowsort
SELECT + col1 + + col0 FROM tab0 cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * col0 col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-2692
SELECT DISTINCT col0 + - col1 + col2 DIV - col1 col0 FROM tab0 AS cor0
----
-2
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT col0 + - col1 + col2 / - col1 col0 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT ALL - col1 * col1 - + col2 FROM tab0 cor0
----
-7429
-8363
-9410
query I rowsort
SELECT tab1.col2 * col0 * col0 FROM tab1
----
233472
486
614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 + col2 * col0 * tab2.col0 col2 FROM tab2
----
1316
158106
237079
query I rowsort
SELECT col2 + tab0.col1 * col1 FROM tab0
----
7429
8363
9410
query I rowsort
SELECT ALL col0 - + col2 * col1 * col1 FROM tab1
----
-16144
-36501
-5636
query I rowsort
SELECT ALL + col0 * col1 * - col2 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT - col1 * + col2 - tab2.col1 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT tab1.col1 + - col2 * col0 * + col2 FROM tab1
----
-207926
-737267
-8722
onlyif mysql # use DIV operator for integer division
query I rowsort label-2701
SELECT + col2 * col1 DIV col2 + + col2 * + col2 * col2 + - col1 FROM tab1
----
157464
185193
884736
skipif mysql # not compatible
query I rowsort label-2701
SELECT + col2 * col1 / col2 + + col2 * + col2 * col2 + - col1 FROM tab1
----
157464
185193
884736
query I rowsort
SELECT DISTINCT tab1.col0 - col1 AS col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT + col1 + - col2 + col0 * col2 AS col2 FROM tab1
----
134
3601
7597
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 + col2 ) IN ( - col1 / col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT ALL - col0 * col0 * col1 FROM tab2
----
-106097
-1519
-358956
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) > ( col1 )
----
query I rowsort
SELECT DISTINCT + col0 * col2 * + col1 AS col1 FROM tab2
----
119652
51034
5859
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( col1 * col2 + + col1 ) AND NULL
----
query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col0
----
query I rowsort
SELECT - col0 * - cor0.col1 AS col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + col2 * col1 + col2 FROM tab0 cor0
----
2871
7544
98
query I rowsort
SELECT + col0 * + col0 + col1 FROM tab2 cor0
----
6143
6258
80
query III rowsort
SELECT * FROM tab2 WHERE col2 * + col1 * + col2 NOT IN ( col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT - + col0 + col1 * col0 AS col1 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT col0 + col2 * + col2 FROM tab2 AS cor0
----
1523
736
754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * col0 col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col2 - + col1 AS col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT + col2 - col0 AS col0 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT cor0.col0 * + col0 + - col1 AS col2 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT - 90 + 44 * - col0 FROM tab0 AS cor0
----
-1146
-1630
-4006
onlyif mysql # use DIV operator for integer division
query I rowsort label-2721
SELECT col1 DIV + col2 col1 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2721
SELECT col1 / + col2 col1 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 * col2 + - col0 + col2 col0 FROM tab2
----
-1586
-687
-817
query I rowsort
SELECT DISTINCT 9 * + col2 * + ( - cor0.col0 ) FROM tab1 cor0
----
-1458
-32832
-69120
query I rowsort
SELECT ALL - 33 FROM tab1 AS cor0
----
-33
-33
-33
query I rowsort
SELECT - cor0.col2 + 26 FROM tab2 cor0
----
-1
-12
0
query I rowsort
SELECT - col1 + + 66 FROM tab0 cor0
----
-20
-25
-31
query I rowsort
SELECT - col0 * 88 AS col0 FROM tab0 cor0
----
-2112
-3080
-7832
query I rowsort
SELECT col1 * + col2 + 51 AS col1 FROM tab1 AS cor0
----
1299
1455
621
onlyif mysql # use DIV operator for integer division
query I rowsort label-2729
SELECT - + cor0.col0 DIV + 3 + 49 AS col0 FROM tab0 AS cor0
----
20
38
41
skipif mysql # not compatible
query I rowsort label-2729
SELECT - + cor0.col0 / + 3 + 49 AS col0 FROM tab0 AS cor0
----
20
38
41
query I rowsort
SELECT DISTINCT col0 - - cor0.col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT + + 5 + col1 AS col1 FROM tab1 AS cor0
----
15
18
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + + ( cor0.col2 ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL col0 * 80 AS col1 FROM tab1 AS cor0
----
240
5120
6400
query I rowsort
SELECT DISTINCT ( col0 ) * col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + ( 3 ) AS col0 FROM tab1 AS cor0
----
3
query I rowsort
SELECT - col1 * - 93 AS col2 FROM tab1 AS cor0
----
1209
2418
930
query I rowsort
SELECT col2 * 42 AS col2 FROM tab0
----
1386
3444
42
query I rowsort
SELECT + col2 * + 47 AS col1 FROM tab1
----
2538
2679
4512
query I rowsort
SELECT 75 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query I rowsort
SELECT DISTINCT col1 + cor0.col2 * - col0 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL - 86 AS col1 FROM tab2 AS cor0
----
-86
-86
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-2743
SELECT + + col2 * col2 + col0 DIV + ( col2 * - col1 ) + + col1 AS col0 FROM tab0 AS cor0
----
1175
6815
98
skipif mysql # not compatible
query I rowsort label-2743
SELECT + + col2 * col2 + col0 / + ( col2 * - col1 ) + + col1 AS col0 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT ALL 38 * - col2 + col2 * + col0 AS col1 FROM tab2 cor0
----
-837
1040
1558
query I rowsort
SELECT DISTINCT + ( - 81 ) AS col1 FROM tab0 AS cor0
----
-81
query I rowsort
SELECT cor1.col1 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
query I rowsort
SELECT DISTINCT 37 FROM tab1, tab1 AS cor0
----
37
query I rowsort
SELECT ALL 49 FROM tab2, tab2 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT DISTINCT 49 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2750
SELECT + CAST( NULL AS SIGNED ) + - 88 / col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2750
SELECT + CAST ( NULL AS INTEGER ) + - 88 / col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 42 AS col2 FROM tab2 AS cor0
----
42
42
42
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2752
SELECT CAST( + tab0.col0 AS SIGNED ) FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-2752
SELECT CAST ( + tab0.col0 AS INTEGER ) FROM tab0
----
24
35
89
query I rowsort
SELECT - 89 * 68 - col2 AS col0 FROM tab1
----
-6106
-6109
-6148
query I rowsort
SELECT + 22 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
onlyif mysql # use DIV operator for integer division
query I rowsort label-2755
SELECT ALL cor0.col0 DIV - col2 + + col0 * col2 AS col0 FROM tab0 AS cor0
----
0
7297
792
skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL cor0.col0 / - col2 + + col0 * col2 AS col0 FROM tab0 AS cor0
----
0
7297
792
query I rowsort
SELECT DISTINCT + - 46 * + col2 * - col0 AS col0 FROM tab0 AS cor0
----
1610
335708
36432
query I rowsort
SELECT DISTINCT + col0 + + col2 * 29 AS col0 FROM tab0 AS cor0
----
2467
64
981
onlyif mysql # use DIV operator for integer division
query I rowsort label-2758
SELECT ALL + 35 + col0 DIV 35 FROM tab1 cor0
----
35
36
37
skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL + 35 + col0 / 35 FROM tab1 cor0
----
35
36
37
query I rowsort
SELECT + 59 + - col0 AS col1 FROM tab0 AS cor0
----
-30
24
35
query I rowsort
SELECT ALL col1 * + col0 - - 89 AS col0 FROM tab1 AS cor0
----
1129
167
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-2761
SELECT ( ( tab1.col2 ) ) - + col0 DIV + col2 FROM tab1
----
54
56
96
skipif mysql # not compatible
query I rowsort label-2761
SELECT ( ( tab1.col2 ) ) - + col0 / + col2 FROM tab1
----
54
56
96
query I rowsort
SELECT ALL + 51 AS col2 FROM tab0
----
51
51
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 85 col2 FROM tab0
----
85
85
85
query I rowsort
SELECT ( col2 ) * col0 + ( col2 ) FROM tab2
----
2054
216
3040
query I rowsort
SELECT 19 * - col1 * tab1.col0 + col1 AS col0 FROM tab1
----
-12150
-1456
-19747
query I rowsort
SELECT DISTINCT - + cor0.col1 * 8 AS col1 FROM tab0 cor0
----
-688
-728
-776
query I rowsort
SELECT ALL + col2 + col2 * 58 AS col0 FROM tab0 AS cor0
----
1947
4838
59
query I rowsort
SELECT + + col1 - + ( - col1 + col1 ) AS col0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT + - tab1.col1 FROM tab1, tab2, tab2 cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT DISTINCT - col2 + - cor0.col0 * col0 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT + - col2 + 45 * col2 AS col0 FROM tab1 AS cor0
----
2376
2508
4224
query I rowsort
SELECT DISTINCT + + col0 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - col1 * cor0.col1 - + 58 FROM tab2 cor0
----
-1019
-347
-3539
query I rowsort
SELECT + 30 * col0 + - 43 AS col2 FROM tab2
----
167
2297
2327
query I rowsort
SELECT ( tab0.col1 ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT + 13 - + col2 * + col0 AS col2 FROM tab2
----
-176
-2015
-2989
query I rowsort
SELECT col2 + ( + col2 ) FROM tab2
----
52
54
76
query I rowsort
SELECT ALL - 34 * cor0.col1 AS col2 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 0b3ab941cc485d31b676d4d234bf59d4
onlyif mysql # use DIV operator for integer division
query I rowsort label-2779
SELECT + col0 DIV col1 + cor0.col2 * + cor0.col0 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-2779
SELECT + col0 / col1 + cor0.col2 * + cor0.col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col0 + ( + col1 ) AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - col1 + col0 * col0 AS col0 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT DISTINCT + col1 * 40 FROM tab0 AS cor0
----
3440
3640
3880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2783
SELECT - tab2.col2 * - CAST( 69 AS SIGNED ) * - col1 FROM tab2
----
-105846
-44574
-57753
skipif mysql # not compatible
query I rowsort label-2783
SELECT - tab2.col2 * - CAST ( 69 AS INTEGER ) * - col1 FROM tab2
----
-105846
-44574
-57753
query I rowsort
SELECT + - col0 * + ( - col2 ) + col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT - 87 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9
query I rowsort
SELECT 59 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
query I rowsort
SELECT ALL - - col1 + + cor0.col0 AS col0 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT DISTINCT 24 + col2 AS col2 FROM tab1 AS cor0
----
120
78
81
query I rowsort
SELECT col1 * col2 + - ( cor0.col1 ) * - col1 AS col2 FROM tab2 cor0
----
1798
5015
935
query I rowsort
SELECT + col1 * cor0.col0 + ( col0 ) AS col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT + col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2792
SELECT ALL col1 * + col2 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2792
SELECT ALL col1 * + col2 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 + - 15 AS col0 FROM tab2 AS cor0
----
-41
-42
-53
query I rowsort
SELECT ALL col0 * ( 73 * - col0 + + col0 ) FROM tab2 AS cor0
----
-3528
-438048
-449352
query I rowsort
SELECT - col0 + ( + col1 + col0 ) AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - col2 * + 51 AS col0 FROM tab1 cor0
----
-2754
-2907
-4896
query I rowsort
SELECT DISTINCT - col0 * col2 + 37 * col1 AS col2 FROM tab2 AS cor0
----
-2373
155
958
onlyif mysql # use DIV operator for integer division
query I rowsort label-2798
SELECT + col0 DIV + ( - 51 ) AS col0 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-2798
SELECT + col0 / + ( - 51 ) AS col0 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT + + col0 + 24 AS col2 FROM tab1 AS cor0
----
104
27
88
query I rowsort
SELECT DISTINCT - + col0 + + 82 * cor0.col1 AS col0 FROM tab1 AS cor0
----
2129
756
986
query I rowsort
SELECT ALL col1 * tab1.col0 + col2 AS col0 FROM tab1
----
1136
132
697
query I rowsort
SELECT - 3 + col2 FROM tab2
----
23
24
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2803
SELECT 67 * col1 + - CAST( col0 AS SIGNED ) AS col0 FROM tab1
----
1739
606
791
skipif mysql # not compatible
query I rowsort label-2803
SELECT 67 * col1 + - CAST ( col0 AS INTEGER ) AS col0 FROM tab1
----
1739
606
791
query I rowsort
SELECT ALL col1 * col1 * 65 + col1 AS col0 FROM tab2
----
18802
226324
62496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2805
SELECT - - col1 / CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2805
SELECT - - col1 / CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 * - 2 AS col0 FROM tab2 cor0
----
-14
-156
-158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2807
SELECT ALL + - CAST( NULL AS SIGNED ) * - col1 + + cor0.col2 - + col2 * - 89 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL + - CAST ( NULL AS INTEGER ) * - col1 + + cor0.col2 - + col2 * - 89 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 79 + col2 AS col1 FROM tab0 AS cor0
----
-46
-78
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT ( col2 ) + col0 + + ( ( col1 ) ) * 56 AS col1 FROM tab0 AS cor0
----
4873
5267
5468
query I rowsort
SELECT - 15 + + 22 AS col0 FROM tab1 AS cor0
----
7
7
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2812
SELECT DISTINCT + col0 + ( + col1 ) + CAST( NULL AS DECIMAL ) col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2812
SELECT DISTINCT + col0 + ( + col1 ) + CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + col1 - 3 AS col0 FROM tab1 AS cor0
----
10
23
7
query I rowsort
SELECT ALL - cor0.col0 * col1 - col0 * + col1 FROM tab0 AS cor0
----
-16198
-4128
-6790
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 * + col0 * - cor0.col2 + col1 * ( - col1 + col1 ) col1 FROM tab2 AS cor0
----
-17766
-190632
-282188
onlyif mysql # use DIV operator for integer division
query I rowsort label-2816
SELECT ALL - col1 + col2 DIV + col1 + col2 col2 FROM tab0 AS cor0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL - col1 + col2 / + col1 + col2 col2 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2817
SELECT CAST( ( col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-2817
SELECT CAST ( ( col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + col1 - - ( col1 * + col0 ) FROM tab2 AS cor0
----
1360
248
4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - 18 col1 FROM tab0 AS cor0
----
104
109
115
query I rowsort
SELECT ALL + col2 + + col2 * col1 AS col0 FROM tab1 cor0
----
1344
1458
627
query I rowsort
SELECT + 66 * cor0.col1 + + col1 FROM tab0 cor0
----
5762
6097
6499
query I rowsort
SELECT ALL - - ( - col1 ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - 90 + + cor0.col1 * col2 FROM tab0 AS cor0
----
2748
7
7372
query I rowsort
SELECT ALL - col0 - col2 * col2 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT col1 + 73 * - col0 AS col1 FROM tab0 cor0
----
-1666
-2458
-6406
query I rowsort
SELECT ALL + col2 + + 72 + + col0 FROM tab1 AS cor0
----
129
193
248
query I rowsort
SELECT tab0.col1 AS col1 FROM tab2, tab2 cor0 CROSS JOIN tab0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL - col2 + ( - col2 ) * 51 FROM tab2
----
-1352
-1404
-1976
onlyif mysql # use DIV operator for integer division
query I rowsort label-2829
SELECT - - col1 DIV col2 + + col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-2829
SELECT - - col1 / col2 + + col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + + col1 + col1 AS col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT DISTINCT - col0 + 35 AS col1 FROM tab2
----
-43
-44
28
query I rowsort
SELECT - ( + col2 ) - ( - col1 + col2 * - col0 ) AS col2 FROM tab2 AS cor0
----
193
2061
2981
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2833
SELECT + col2 * col0 * CAST( 48 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1680
350304
38016
skipif mysql # not compatible
query I rowsort label-2833
SELECT + col2 * col0 * CAST ( 48 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1680
350304
38016
query I rowsort
SELECT + + 59 - col1 FROM tab2 AS cor0
----
0
28
42
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2835
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2835
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2836
SELECT ALL - CAST( NULL AS SIGNED ) * col1 + + col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 + + col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + 46 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT - - ( + cor0.col0 ) - + col2 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT ( + col0 * col1 ) + + tab2.col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT col2 + - col0 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT col2 * 40 - - col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
10004
2409
41
query I rowsort
SELECT ALL + 29 + - 13 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab2, tab1 cor1
----
972 values hashing to 980274175fafec015a83080672486a9a
onlyif mysql # use DIV operator for integer division
query I rowsort label-2844
SELECT - + col0 + + cor0.col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
-7
-78
-81
skipif mysql # not compatible
query I rowsort label-2844
SELECT - + col0 + + cor0.col2 / - col1 AS col1 FROM tab2 AS cor0
----
-7
-78
-81
query I rowsort
SELECT - col1 * col0 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT + - col0 * + col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT - 83 AS col0 FROM tab2
----
-83
-83
-83
query I rowsort
SELECT ALL + col0 * 96 FROM tab2
----
672
7488
7584
query I rowsort
SELECT ALL ( 3 ) FROM tab2
----
3
3
3
query I rowsort
SELECT ALL + - col1 + ( col2 + - col1 ) AS col1 FROM tab2 AS cor0
----
-35
-92
4
query I rowsort
SELECT DISTINCT - 40 AS col2 FROM tab2 cor0
----
-40
query I rowsort
SELECT - ( - 55 ) FROM tab0
----
55
55
55
query I rowsort
SELECT DISTINCT tab1.col1 + tab1.col1 FROM tab1, tab2 cor0
----
20
26
52
query I rowsort
SELECT - + 16 AS col2 FROM tab0 cor0
----
-16
-16
-16
query I rowsort
SELECT col2 * ( col2 ) + + col0 AS col1 FROM tab2 AS cor0
----
1523
736
754
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2856
SELECT ALL - cor0.col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL - cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 + + 82 + - 17 AS col0 FROM tab1 AS cor0
----
75
78
91
query I rowsort
SELECT DISTINCT - col1 + col0 AS col0 FROM tab2 cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2859
SELECT ALL - + cor0.col1 DIV + ( col1 ) - col0 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL - + cor0.col1 / + ( col1 ) - col0 FROM tab0 AS cor0
----
-25
-36
-90
query I rowsort
SELECT DISTINCT + col2 * col2 + + col1 * col1 AS col0 FROM tab2 AS cor0
----
1690
1733
4157
query I rowsort
SELECT ALL col0 + - col1 * - col1 AS col2 FROM tab1 AS cor0
----
164
249
679
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2862
SELECT ALL - cor0.col2 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2862
SELECT ALL - cor0.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 + col2 * - col1 col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT - + 97 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 12bd12d33f03250bee508c5641e140d5
query I rowsort
SELECT DISTINCT + col0 * + col1 + col1 FROM tab2
----
1360
248
4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2866
SELECT DISTINCT - col1 + col1 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2866
SELECT DISTINCT - col1 + col1 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query I rowsort
SELECT col2 * + 0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2868
SELECT + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2868
SELECT + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT + - col2 + - CAST ( col2 AS REAL ) FROM tab0 AS cor0
----
-164
-2
-66
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 4fa4bd3038de6e74a345debc8ab4cd53
onlyif mysql # use DIV operator for integer division
query I rowsort label-2871
SELECT col0 DIV + col0 + - tab0.col1 FROM tab0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-2871
SELECT col0 / + col0 + - tab0.col1 FROM tab0
----
-85
-90
-96
query I rowsort
SELECT ALL + 69 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL 15 FROM tab2, tab2 cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
17
31
59
query I rowsort
SELECT 81 * + col2 + col0 AS col2 FROM tab0
----
116
2697
6731
query I rowsort
SELECT + col0 - + col0 * col0 * + col2 FROM tab0
----
-1190
-18984
-649433
onlyif mysql # use DIV operator for integer division
query I rowsort label-2878
SELECT ALL 99 DIV + col0 + + col2 AS col2 FROM tab0
----
3
37
83
skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL 99 / + col0 + + col2 AS col2 FROM tab0
----
3
37
83
query I rowsort
SELECT - cor0.col0 * + cor0.col2 + 64 FROM tab0 cor0
----
-7234
-728
29
query I rowsort
SELECT + ( col1 ) * + col2 AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT + col2 + col0 * - 60 FROM tab0
----
-1407
-2099
-5258
query I rowsort
SELECT tab1.col0 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-2883
SELECT - 93 + - col2 DIV 56 AS col2 FROM tab2 AS cor0
----
-93
-93
-93
skipif mysql # not compatible
query I rowsort label-2883
SELECT - 93 + - col2 / 56 AS col2 FROM tab2 AS cor0
----
-93
-93
-93
query I rowsort
SELECT + col1 * - col0 - - col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * cor0.col0 col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + - 68 - - col0 FROM tab2 AS cor0
----
-61
10
11
query I rowsort
SELECT ALL + col0 * + col2 + 33 AS col1 FROM tab1 AS cor0
----
195
3681
7713
query I rowsort
SELECT ( - col0 ) * + 49 + col0 + col2 * col0 FROM tab0 AS cor0
----
-1645
-360
3026
query I rowsort
SELECT ALL + cor0.col2 * + col0 + 4 * col2 AS col2 FROM tab0 AS cor0
----
39
7626
924
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + cor0.col1 col0 FROM tab1 cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-2891
SELECT - + col1 DIV 74 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2891
SELECT - + col1 / 74 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2892
SELECT DISTINCT + + col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2892
SELECT DISTINCT + + col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - + col1 * + col2 + - col0 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT col1 + 81 * col1 + + col0 * - col0 * col2 AS col2 FROM tab0 AS cor0
----
-11956
-642060
6729
query I rowsort
SELECT - - col2 * 75 AS col2 FROM tab2 cor0
----
1950
2025
2850
query I rowsort
SELECT ALL + - 59 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703
onlyif mysql # use DIV operator for integer division
query I rowsort label-2897
SELECT + + col2 + col1 DIV cor0.col0 + - col1 FROM tab2 cor0
----
-33
0
21
skipif mysql # not compatible
query I rowsort label-2897
SELECT + + col2 + col1 / cor0.col0 + - col1 FROM tab2 cor0
----
-33
0
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 + + col1 * col2 col2 FROM tab0
----
147
2888
7512
query I rowsort
SELECT ALL + col2 * + 89 AS col2 FROM tab2 AS cor0
----
2314
2403
3382
query I rowsort
SELECT - col1 * + 61 + col0 AS col2 FROM tab2 cor0
----
-1884
-3521
-958
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab
query I rowsort
SELECT DISTINCT col0 + - col1 * - col0 * + col0 AS col2 FROM tab2 AS cor0
----
106176
1526
359034
query I rowsort
SELECT ALL - col1 * cor0.col1 + - col1 FROM tab2 cor0
----
-306
-3540
-992
query I rowsort
SELECT DISTINCT ( tab0.col1 * + tab0.col1 ) FROM tab0
----
7396
8281
9409
query I rowsort
SELECT + 80 + col1 FROM tab2 AS cor0
----
111
139
97
query I rowsort
SELECT - col1 * 77 FROM tab1 AS cor0
----
-1001
-2002
-770
query I rowsort
SELECT ALL + ( + 60 ) * - col0 + ( + col2 ) FROM tab1 AS cor0
----
-126
-3783
-4704
onlyif mysql # use DIV operator for integer division
query I rowsort label-2908
SELECT - col2 + 99 * + col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
-153
-156
-195
skipif mysql # not compatible
query I rowsort label-2908
SELECT - col2 + 99 * + col1 / - col1 AS col0 FROM tab1 AS cor0
----
-153
-156
-195
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2909
SELECT ALL - + CAST( + col2 AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL - + CAST ( + col2 AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 18 * + col1 + col0 col2 FROM tab2 AS cor0
----
1140
385
565
query I rowsort
SELECT ALL + cor0.col1 * col2 + - 51 AS col1 FROM tab1 AS cor0
----
1197
1353
519
query I rowsort
SELECT ( - col1 ) AS col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - col0 * + cor0.col2 + - 90 FROM tab2 cor0
----
-2118
-279
-3092
query I rowsort
SELECT + 63 FROM tab1, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2915
SELECT ALL - CAST( 60 AS SIGNED ) - col2 * ( - ( col2 ) * - col0 ) FROM tab2
----
-114136
-5163
-52788
skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL - CAST ( 60 AS INTEGER ) - col2 * ( - ( col2 ) * - col0 ) FROM tab2
----
-114136
-5163
-52788
query I rowsort
SELECT ALL - 44 * - col2 - col1 FROM tab2
----
1085
1157
1655
query I rowsort
SELECT col0 * + col0 + - col1 + 97 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
15699
5221
9615
query I rowsort
SELECT ALL - cor0.col0 * cor0.col1 + 20 AS col1 FROM tab1 AS cor0
----
-1020
-58
-620
query I rowsort
SELECT col2 + + col2 * + ( col2 ) FROM tab2 AS cor0
----
1482
702
756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col2 col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + cor0.col0 + cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
7420
8370
9444
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 + col1 col0 FROM tab2 AS cor0
----
1461
735
760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2923
SELECT ALL + - col0 * - col2 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL + - col0 * - col2 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( - col0 * col2 ) AS col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ( col0 ) + col2 AS col2 FROM tab1
----
121
176
57
query I rowsort
SELECT - ( col1 ) * col0 + col0 * col2 + tab1.col0 FROM tab1
----
3072
6720
87
query I rowsort
SELECT ALL - cor0.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
onlyif mysql # use DIV operator for integer division
query I rowsort label-2928
SELECT - + col1 - cor0.col1 DIV col2 AS col0 FROM tab0 AS cor0
----
-194
-88
-92
skipif mysql # not compatible
query I rowsort label-2928
SELECT - + col1 - cor0.col1 / col2 AS col0 FROM tab0 AS cor0
----
-194
-88
-92
query I rowsort
SELECT + col1 + 13 * - col0 FROM tab1 AS cor0
----
-1027
-13
-822
query I rowsort
SELECT ALL - 82 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c
query I rowsort
SELECT ALL - col0 + + 39 FROM tab0
----
-50
15
4
query I rowsort
SELECT ( cor0.col0 ) FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT - 76 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
1824
2660
6764
onlyif mysql # use DIV operator for integer division
query I rowsort label-2934
SELECT - col2 - 75 DIV - col2 FROM tab1 AS cor0
----
-53
-56
-96
skipif mysql # not compatible
query I rowsort label-2934
SELECT - col2 - 75 / - col2 FROM tab1 AS cor0
----
-53
-56
-96
query I rowsort
SELECT 45 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca
query I rowsort
SELECT DISTINCT - 21 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 90 + - 15 col1 FROM tab0
----
2955
7365
75
query I rowsort
SELECT DISTINCT - ( + col0 * col1 ) FROM tab2
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2940
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2940
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2941
SELECT ALL + CAST( col0 AS SIGNED ) FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL + CAST ( col0 AS INTEGER ) FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT - - 17 + - col2 * cor0.col2 FROM tab1 AS cor0
----
-2899
-3232
-9199
query I rowsort
SELECT + col2 * 49 * col1 + + col0 AS col2 FROM tab0 AS cor0
----
139086
365727
4788
onlyif mysql # use DIV operator for integer division
query I rowsort label-2944
SELECT + - col0 DIV - 11 + + col2 * col2 FROM tab0 AS cor0
----
1091
4
6732
skipif mysql # not compatible
query I rowsort label-2944
SELECT + - col0 / - 11 + + col2 * col2 FROM tab0 AS cor0
----
1091
4
6732
query I rowsort
SELECT cor0.col0 - - 51 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 66b1bc81174e61ec8043c8eaf3445563
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + ( col1 ) ) + - ( + 88 + cor0.col2 ) * + 52 * - col0 col1 FROM tab1 AS cor0
----
22178
482570
765453
onlyif mysql # use DIV operator for integer division
query I rowsort label-2947
SELECT DISTINCT - col1 * col1 DIV - ( 68 ) AS col2 FROM tab1
----
1
2
9
skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT - col1 * col1 / - ( 68 ) AS col2 FROM tab1
----
1
2
9
query I rowsort
SELECT ALL ( col0 ) * + 68 AS col0 FROM tab0
----
1632
2380
6052
onlyif mysql # use DIV operator for integer division
query I rowsort label-2949
SELECT DISTINCT + col1 * - col2 DIV + col2 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-2949
SELECT DISTINCT + col1 * - col2 / + col2 FROM tab0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2950
SELECT ALL col1 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL col1 / cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + ( + col1 ) * + col0 AS col0 FROM tab1 cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 * col2 * - col1 col1 FROM tab1
----
37620
82368
92664
query I rowsort
SELECT col0 - + col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT + - col0 * col2 + col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2955
SELECT DISTINCT - col2 + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-164
-2
-66
skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT - col2 + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT ALL + + col1 * ( + col2 * - col1 ) + + col2 * col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-25191
-89804
-9500
query I rowsort
SELECT + + col0 * + 1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT 13 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT DISTINCT - col1 * 5 FROM tab0 AS cor0
----
-430
-455
-485
query I rowsort
SELECT + + col0 + - ( + col1 + col1 ) * col1 AS col2 FROM tab2 AS cor0
----
-1915
-499
-6884
query I rowsort
SELECT ALL + col0 + - ( col2 ) AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT cor0.col1 * - 70 FROM tab1 AS cor0
----
-1820
-700
-910
query I rowsort
SELECT - cor0.col2 * ( + col2 * col0 ) FROM tab2 cor0
----
-114076
-5103
-52728
query I rowsort
SELECT 30 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 6c98840ed134c765d56389f4150075f0
query I rowsort
SELECT ALL + cor0.col1 * - ( - col2 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 65 ) col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT 54 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2968
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL - CAST ( NULL AS REAL ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-2969
SELECT col1 DIV + 78 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2969
SELECT col1 / + 78 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2970
SELECT + 14 - cor0.col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
14
14
17
skipif mysql # not compatible
query I rowsort label-2970
SELECT + 14 - cor0.col2 / - col0 AS col0 FROM tab2 AS cor0
----
14
14
17
query I rowsort
SELECT - + col1 * col2 - col0 AS col2 FROM tab0 cor0
----
-132
-2862
-7551
query I rowsort
SELECT col0 + - 63 AS col2 FROM tab2 AS cor0
----
-56
15
16
query I rowsort
SELECT 87 - - col2 AS col0 FROM tab2 AS cor0
----
113
114
125
query I rowsort
SELECT + ( - col2 ) * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT col0 + 77 + col1 FROM tab1 AS cor0
----
106
151
170
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2976
SELECT - CAST( NULL AS DECIMAL ) + + col0 * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2976
SELECT - CAST ( NULL AS REAL ) + + col0 * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT tab0.col1 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL col2 * 68 FROM tab2
----
1768
1836
2584
query I rowsort
SELECT DISTINCT - col0 * ( 64 ) FROM tab2
----
-448
-4992
-5056
onlyif mysql # use DIV operator for integer division
query I rowsort label-2980
SELECT + - 71 DIV - col1 - + col2 col0 FROM tab2 AS cor0
----
-25
-25
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2980
SELECT + - 71 / - col1 - + col2 col0 FROM tab2 AS cor0
----
-25
-25
-34
query I rowsort
SELECT col1 * ( - col2 ) AS col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - cor0.col1 * - cor0.col2 + col1 * + cor0.col1 FROM tab1 AS cor0
----
1417
2080
670
query I rowsort
SELECT - cor0.col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2984
SELECT - CAST( NULL AS SIGNED ) * 48 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2984
SELECT - CAST ( NULL AS INTEGER ) * 48 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 96 * col1 + - col2 col2 FROM tab1 AS cor0
----
-1017
-1344
-2550
query I rowsort
SELECT col0 * cor0.col1 + col2 * col1 AS col1 FROM tab1 cor0
----
1210
1482
2288
query I rowsort
SELECT + ( col0 ) + + cor0.col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - 29 * col2 FROM tab1 cor0
----
-1566
-1653
-2784
query I rowsort
SELECT col2 * col2 + 63 * 96 AS col0 FROM tab2 AS cor0
----
6724
6777
7492
query I rowsort
SELECT + 45 AS col1 FROM tab1
----
45
45
45
query I rowsort
SELECT + col1 * col1 * 18 AS col1 FROM tab2 AS cor0
----
17298
5202
62658
query I rowsort
SELECT col0 + col2 * - col0 * + cor0.col1 FROM tab0 AS cor0
----
-3360
-664029
-68088
query I rowsort
SELECT + 88 AS col2 FROM tab1 AS cor0
----
88
88
88
query I rowsort
SELECT col2 * 98 + - col2 FROM tab2 AS cor0
----
2522
2619
3686
query I rowsort
SELECT + - col0 + - 16 AS col0 FROM tab1 AS cor0
----
-19
-80
-96
query I rowsort
SELECT - col0 * + 49 + - col2 * - ( col1 ) * cor0.col2 FROM tab0 AS cor0
----
-1618
607523
92478
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 70 * - cor0.col1 col1 FROM tab2 AS cor0
----
-1190
-2170
-4130
query I rowsort
SELECT DISTINCT - ( col0 ) + col2 * - cor0.col2 AS col2 FROM tab1 cor0
----
-2919
-3313
-9296
query I rowsort
SELECT - col2 + + 13 FROM tab2 cor0
----
-13
-14
-25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + col0 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - + ( + 16 ) * + col2 + - col0 * - col2 FROM tab1 AS cor0
----
-702
2736
6144
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * - col2 + + col0 col0 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT DISTINCT + cor0.col0 + 59 * cor0.col1 AS col0 FROM tab1 cor0
----
1537
654
847
query I rowsort
SELECT DISTINCT - col1 + - 42 AS col0 FROM tab0 AS cor0
----
-128
-133
-139
query I rowsort
SELECT - 65 * - col1 + + col0 FROM tab1 AS cor0
----
1693
714
925
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3006
SELECT DISTINCT - CAST( NULL AS SIGNED ) * ( cor0.col1 ) + ( + cor0.col2 ) * col2 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3006
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * ( cor0.col1 ) + ( + cor0.col2 ) * col2 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT col2 * ( col0 ) + col0 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT ALL + col1 * col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) * + col0 + + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-3010
SELECT ALL + col2 + + col2 - - col1 DIV 96 AS col1 FROM tab2 AS cor0
----
52
54
76
skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL + col2 + + col2 - - col1 / 96 AS col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT - tab0.col0 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3012
SELECT ALL + CAST( NULL AS SIGNED ) + cor0.col2 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL + CAST ( NULL AS INTEGER ) + cor0.col2 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + + 98 FROM tab1 AS cor0
----
98
98
98
query I rowsort
SELECT ALL + 21 * + col1 AS col0 FROM tab0 AS cor0
----
1806
1911
2037
onlyif mysql # use DIV operator for integer division
query I rowsort label-3015
SELECT ALL + ( col2 ) DIV col0 + - col0 AS col1 FROM tab2
----
-4
-78
-79
skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL + ( col2 ) / col0 + - col0 AS col1 FROM tab2
----
-4
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * - col0 col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT col2 * + ( col2 ) FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL cor0.col1 * ( tab0.col1 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 23253cfee4cea5e1d4f993bec937f9fe
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3019
SELECT col0 - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3019
SELECT col0 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * 67 + - col1 FROM tab0 AS cor0
----
1522
2248
5872
query I rowsort
SELECT col0 * + cor0.col2 + - 84 * col0 AS col0 FROM tab2 AS cor0
----
-3634
-399
-4524
query I rowsort
SELECT col0 + + col1 + col1 FROM tab0
----
196
229
271
onlyif mysql # use DIV operator for integer division
query I rowsort label-3023
SELECT DISTINCT col1 DIV ( col0 * col1 ) - col0 FROM tab2
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-3023
SELECT DISTINCT col1 / ( col0 * col1 ) - col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT - 14 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
query I rowsort
SELECT - col1 + ( 80 ) * + col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-17
537829
87034
query I rowsort
SELECT col0 * - cor0.col2 + + 87 * col1 AS col2 FROM tab2 cor0
----
-1523
2508
3105
query I rowsort
SELECT ALL - - ( - col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - 64 * + col1 FROM tab0 AS cor0
----
-5504
-5824
-6208
query I rowsort
SELECT - 44 * col2 AS col1 FROM tab0 AS cor0
----
-1452
-3608
-44
query I rowsort
SELECT + col0 + + 4 - col2 FROM tab0
----
-5
11
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-3031
SELECT ALL + 71 DIV 56 + + col0 AS col1 FROM tab2
----
79
8
80
skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL + 71 / 56 + + col0 AS col1 FROM tab2
----
79
8
80
query I rowsort
SELECT ALL col1 * - 60 + + tab0.col0 + col0 FROM tab0
----
-5112
-5282
-5750
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3033
SELECT - CAST( NULL AS SIGNED ) + col1 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3033
SELECT - CAST ( NULL AS INTEGER ) + col1 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 54 + col2 FROM tab0
----
-21
-53
28
query I rowsort
SELECT - col1 + - col1 + col0 FROM tab1
----
-49
44
54
query I rowsort
SELECT + + col0 + 42 AS col2 FROM tab0 AS cor0
----
131
66
77
query I rowsort
SELECT DISTINCT - col1 * - 0 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT col0 + col2 * cor0.col0 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-3039
SELECT ALL + col0 DIV 91 + col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL + col0 / 91 + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 - col1 FROM tab2 AS cor0
----
1475
629
806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3041
SELECT CAST( + 31 AS SIGNED ) - col1 AS col2 FROM tab0 AS cor0
----
-55
-60
-66
skipif mysql # not compatible
query I rowsort label-3041
SELECT CAST ( + 31 AS INTEGER ) - col1 AS col2 FROM tab0 AS cor0
----
-55
-60
-66
query I rowsort
SELECT DISTINCT - tab0.col1 FROM tab0, tab1 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL ( + col2 ) AS col0 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 * col2 col1 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT DISTINCT - 89 AS col2 FROM tab2 AS cor0
----
-89
query I rowsort
SELECT ALL col1 * - col1 + - 63 FROM tab1 AS cor0
----
-163
-232
-739
query I rowsort
SELECT DISTINCT + 17 * col1 FROM tab1 AS cor0
----
170
221
442
query I rowsort
SELECT - - col0 + col1 * 31 FROM tab1 AS cor0
----
374
483
809
onlyif mysql # use DIV operator for integer division
query I rowsort label-3049
SELECT ALL col1 DIV 88 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL col1 / 88 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col0 + + col2 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + - col0 + + col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL col2 * + 6 AS col1 FROM tab1 cor0
----
324
342
576
onlyif mysql # use DIV operator for integer division
query I rowsort label-3053
SELECT DISTINCT - col0 DIV 32 FROM tab1 cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-3053
SELECT DISTINCT - col0 / 32 FROM tab1 cor0
----
-2
0
query I rowsort
SELECT DISTINCT - + cor0.col0 + + 67 FROM tab2 AS cor0
----
-11
-12
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3055
SELECT ALL + col0 * CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL + col0 * CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-3056
SELECT DISTINCT - + col2 DIV + 84 + col1 AS col1 FROM tab1 AS cor0
----
10
12
26
skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT - + col2 / + 84 + col1 AS col1 FROM tab1 AS cor0
----
10
12
26
query I rowsort
SELECT DISTINCT + col0 * + tab1.col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT - cor0.col1 * - 82 FROM tab1 AS cor0
----
1066
2132
820
query I rowsort
SELECT - col1 * col2 * col2 AS col1 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT DISTINCT + col2 * 19 AS col2 FROM tab0 AS cor0
----
1558
19
627
query I rowsort
SELECT + col0 * - ( - col0 ) FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL - col1 + 92 AS col1 FROM tab1 cor0
----
66
79
82
query I rowsort
SELECT DISTINCT - col2 * tab1.col2 AS col0 FROM tab1
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-3064
SELECT DISTINCT - col1 DIV 61 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3064
SELECT DISTINCT - col1 / 61 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - - col0 * 39 AS col1 FROM tab1 AS cor0
----
117
2496
3120
query I rowsort
SELECT col2 * col2 + cor0.col2 FROM tab1 cor0
----
2970
3306
9312
query I rowsort
SELECT DISTINCT - + col2 + col2 + - 36 FROM tab1 AS cor0
----
-36
onlyif mysql # use DIV operator for integer division
query I rowsort label-3068
SELECT DISTINCT + 47 * cor0.col2 + ( + cor0.col0 ) DIV col2 + col2 FROM tab0 cor0
----
1584
3937
83
skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT + 47 * cor0.col2 + ( + cor0.col0 ) / col2 + col2 FROM tab0 cor0
----
1584
3937
83
query I rowsort
SELECT DISTINCT - + 43 FROM tab1 AS cor0
----
-43
query I rowsort
SELECT + + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab1, tab2 cor1
----
3645 values hashing to b34c9987c389223e07378cde8a36e94f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 1 col1 FROM tab0
----
87
92
98
query I rowsort
SELECT + col1 * tab1.col1 + - col1 + - col2 FROM tab1
----
33
596
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT ALL 68 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
query I rowsort
SELECT ALL 64 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT DISTINCT col2 + + col2 * col1 AS col2 FROM tab0
----
2871
7544
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3078
SELECT col1 * col1 DIV - 39 FROM tab1
----
-17
-2
-4
skipif mysql # not compatible
query I rowsort label-3078
SELECT col1 * col1 / - 39 FROM tab1
----
-17
-2
-4
onlyif mysql # use DIV operator for integer division
query I rowsort label-3079
SELECT + tab2.col2 DIV col0 AS col2 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-3079
SELECT + tab2.col2 / col0 AS col2 FROM tab2
----
0
0
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3080
SELECT + col2 + CAST( col2 AS SIGNED ) AS col1 FROM tab2
----
52
54
76
skipif mysql # not compatible
query I rowsort label-3080
SELECT + col2 + CAST ( col2 AS INTEGER ) AS col1 FROM tab2
----
52
54
76
query I rowsort
SELECT - - cor0.col2 * + col1 + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT col0 * 41 FROM tab1 AS cor0
----
123
2624
3280
query I rowsort
SELECT ALL + ( + col1 ) AS col2 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 * - col1 / - cor0.col1 + CAST ( col2 AS REAL ) * col0 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3085
SELECT - - CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-3085
SELECT - - CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL col2 + + 3 * col2 * - 24 AS col1 FROM tab0 cor0
----
-2343
-5822
-71
query I rowsort
SELECT + col0 * col2 * - col2 AS col1 FROM tab2 cor0
----
-114076
-5103
-52728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3088
SELECT DISTINCT + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - + ( + col0 ) * cor0.col2 - - col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL - + col0 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT - 45 * cor0.col0 FROM tab0 AS cor0
----
-1080
-1575
-4005
query I rowsort
SELECT ALL - - 53 + col0 FROM tab0 AS cor0
----
142
77
88
query I rowsort
SELECT DISTINCT - col1 + - col0 * col2 FROM tab1 cor0
----
-188
-3658
-7693
skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( 25 AS REAL ) AS col0 FROM tab0 AS cor0
----
-25
-25
-25
query I rowsort
SELECT ALL 19 * - col2 - col1 AS col2 FROM tab2 AS cor0
----
-544
-553
-739
query I rowsort
SELECT DISTINCT + + ( - col1 ) + - cor0.col0 * col0 FROM tab0 AS cor0
----
-1322
-662
-8012
onlyif mysql # use DIV operator for integer division
query I rowsort label-3097
SELECT ALL - + ( col2 ) + cor0.col1 DIV 36 AS col1 FROM tab0 cor0
----
-31
-80
1
skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL - + ( col2 ) + cor0.col1 / 36 AS col1 FROM tab0 cor0
----
-31
-80
1
query I rowsort
SELECT ( cor0.col1 ) + col2 * cor0.col2 FROM tab2 cor0
----
1461
735
760
query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT - 4 * col1 FROM tab0
----
-344
-364
-388
query I rowsort
SELECT ( - 21 ) AS col1 FROM tab1
----
-21
-21
-21
query I rowsort
SELECT - col2 * - 13 AS col0 FROM tab0 AS cor0
----
1066
13
429
query I rowsort
SELECT + ( - col1 ) * col2 + ( + col2 ) AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT + cor0.col0 * 55 FROM tab2 cor0
----
385
4290
4345
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3105
SELECT ALL + CAST( + 58 AS SIGNED ) * + col1 FROM tab2
----
1798
3422
986
skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL + CAST ( + 58 AS INTEGER ) * + col1 FROM tab2
----
1798
3422
986
query I rowsort
SELECT DISTINCT + 95 * col1 AS col2 FROM tab1
----
1235
2470
950
query I rowsort
SELECT + col0 * + col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
25
query I rowsort
SELECT DISTINCT ( - col1 + - col1 * + col0 ) AS col0 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT ALL + ( - col1 ) * col0 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col0 FROM tab1 cor0
----
78
78
78
query I rowsort
SELECT + 11 + col0 * col0 FROM tab2 cor0
----
60
6095
6252
query I rowsort
SELECT - 12 * - cor0.col1 FROM tab0 AS cor0
----
1032
1092
1164
onlyif mysql # use DIV operator for integer division
query I rowsort label-3114
SELECT ALL col0 + + ( - 71 ) DIV col0 FROM tab2 cor0
----
-3
78
79
skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL col0 + + ( - 71 ) / col0 FROM tab2 cor0
----
-3
78
79
query I rowsort
SELECT ALL + - col1 * col2 - + cor0.col1 FROM tab1 AS cor0
----
-1261
-1430
-580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
onlyif mysql # use DIV operator for integer division
query I rowsort label-3117
SELECT - col0 DIV 8 - - col1 FROM tab1 AS cor0
----
2
26
3
skipif mysql # not compatible
query I rowsort label-3117
SELECT - col0 / 8 - - col1 FROM tab1 AS cor0
----
2
26
3
skipif mysql # not compatible
query I rowsort
SELECT + + col0 * CAST ( - 62 AS REAL ) - col1 AS col2 FROM tab1 cor0
----
-212
-3978
-4973
query I rowsort
SELECT - col2 * + col1 + + 34 AS col2 FROM tab2 AS cor0
----
-1500
-612
-803
query I rowsort
SELECT - ( + col0 ) AS col1 FROM tab1 cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 col0 FROM tab2
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 col2 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3123
SELECT + col1 + col2 - ( col1 ) / CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3123
SELECT + col1 + col2 - ( col1 ) / CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 - + col2 * 61 AS col1 FROM tab0
----
-1989
-26
-4913
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3125
SELECT DISTINCT - CAST( NULL AS SIGNED ) col0 FROM tab1, tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col0 FROM tab1, tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col2 + + col2 - col0 AS col0 FROM tab1
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3127
SELECT DISTINCT - col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT - col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + + col0 + col1 * col0 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-3129
SELECT - col2 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3129
SELECT - col2 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3130
SELECT col2 + + 84 DIV col1 FROM tab2
----
27
29
42
skipif mysql # not compatible
query I rowsort label-3130
SELECT col2 + + 84 / col1 FROM tab2
----
27
29
42
query I rowsort
SELECT cor1.col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT col0 - - ( - col0 ) AS col2 FROM tab1
----
0
query I rowsort
SELECT + col2 + col0 * + col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT + + col2 + + col2 * col0 FROM tab1 cor0
----
216
3705
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 82 col2 FROM tab1 AS cor0
----
1066
2132
820
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3136
SELECT - - CAST( NULL AS SIGNED ) + col1 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-3136
SELECT - - CAST ( NULL AS INTEGER ) + col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - 67 * + 26 AS col2 FROM tab1 AS cor0
----
1742
1742
1742
onlyif mysql # use DIV operator for integer division
query I rowsort label-3138
SELECT DISTINCT - col2 + + 34 * col0 DIV + col0 FROM tab0 AS cor0
----
-48
1
33
skipif mysql # not compatible
query I rowsort label-3138
SELECT DISTINCT - col2 + + 34 * col0 / + col0 FROM tab0 AS cor0
----
-48
1
33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3139
SELECT DISTINCT + CAST( - col1 AS SIGNED ) + col0 FROM tab2 cor0
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) + col0 FROM tab2 cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3140
SELECT + col1 + 29 * - col2 + 75 * + col2 DIV col2 FROM tab1 AS cor0
----
-1465
-1568
-2696
skipif mysql # not compatible
query I rowsort label-3140
SELECT + col1 + 29 * - col2 + 75 * + col2 / col2 FROM tab1 AS cor0
----
-1465
-1568
-2696
query I rowsort
SELECT cor0.col2 * + col0 + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + ( 54 ) * col0 FROM tab0 cor0
----
1296
1890
4806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 col1 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-3144
SELECT - cor0.col1 - col2 DIV col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-3144
SELECT - cor0.col1 - col2 / col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + 53 * + col1 + col2 FROM tab2 AS cor0
----
1670
3153
939
query I rowsort
SELECT ALL - col1 * - col1 AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL + col2 * - 99 AS col2 FROM tab2 AS cor0
----
-2574
-2673
-3762
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 77 + - ( cor0.col1 * + col0 ) col0 FROM tab1 cor0
----
-1
-563
-963
query I rowsort
SELECT DISTINCT + + col0 * + col0 + - col2 AS col1 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT col1 + - 14 FROM tab2 AS cor0
----
17
3
45
query I rowsort
SELECT ALL + 11 + + 68 FROM tab1 AS cor0
----
79
79
79
query I rowsort
SELECT DISTINCT col2 * col0 - + col2 * - col1 AS col1 FROM tab1 AS cor0
----
1566
4218
8928
query I rowsort
SELECT DISTINCT - + col2 + cor0.col0 AS col1 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT 66 * - col2 + - col2 * col0 FROM tab2 cor0
----
-1971
-3744
-5510
query I rowsort
SELECT ALL - 14 * col1 FROM tab2 AS cor0
----
-238
-434
-826
query I rowsort
SELECT + cor0.col2 - + cor0.col1 * cor0.col1 AS col2 FROM tab1 cor0
----
-43
-622
-73
query I rowsort
SELECT DISTINCT 66 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
66
query I rowsort
SELECT 56 + col1 AS col1 FROM tab0 cor0
----
142
147
153
query I rowsort
SELECT + 49 * col2 AS col1 FROM tab2 AS cor0
----
1274
1323
1862
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3160
SELECT ALL - + col1 + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL - + col1 + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor0.col2 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - cor0.col1 * + col0 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT col1 * col2 + + col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL - - cor0.col2 + cor0.col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL - col1 * ( col0 + + col2 ) FROM tab0 AS cor0
----
-15561
-3492
-4902
query I rowsort
SELECT ALL - 1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9
query I rowsort
SELECT DISTINCT cor0.col1 + 88 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
174
179
185
query I rowsort
SELECT ALL ( - 7 ) AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466
query I rowsort
SELECT DISTINCT - col0 * + col0 * ( 66 ) AS col0 FROM tab1
----
-270336
-422400
-594
query I rowsort
SELECT DISTINCT - - col2 - - col2 AS col2 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3171
SELECT DISTINCT + col2 * + CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT + col2 * + CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL - - cor0.col0 + 7 AS col0 FROM tab0 AS cor0
----
31
42
96
query I rowsort
SELECT DISTINCT + cor0.col2 - cor0.col2 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3174
SELECT DISTINCT + + col1 DIV + col0 + - 80 AS col0 FROM tab2 AS cor0
----
-76
-80
skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT + + col1 / + col0 + - 80 AS col0 FROM tab2 AS cor0
----
-76
-80
query I rowsort
SELECT col1 * 73 AS col2 FROM tab0 cor0
----
6278
6643
7081
query I rowsort
SELECT ALL - col2 + + ( 49 + + col1 ) * + 65 FROM tab2 cor0
----
4252
5173
6994
query I rowsort
SELECT ALL + cor0.col1 + + ( col1 * cor0.col2 ) FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT + col2 + - cor0.col0 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT col2 * + col0 * + col0 AS col1 FROM tab1
----
233472
486
614400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3180
SELECT tab2.col2 * col0 + CAST( NULL AS SIGNED ) * 79 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3180
SELECT tab2.col2 * col0 + CAST ( NULL AS INTEGER ) * 79 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col2 * - 74 * 24 AS col1 FROM tab1 AS cor0
----
101232
170496
95904
onlyif mysql # use DIV operator for integer division
query I rowsort label-3182
SELECT DISTINCT + col0 + - col2 DIV cor0.col0 FROM tab2 cor0
----
4
78
79
skipif mysql # not compatible
query I rowsort label-3182
SELECT DISTINCT + col0 + - col2 / cor0.col0 FROM tab2 cor0
----
4
78
79
query I rowsort
SELECT col1 + ( 93 ) AS col0 FROM tab1 AS cor0
----
103
106
119
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14
query I rowsort
SELECT 85 FROM tab2, tab1 cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 5e8deeabad7bbbaf313fcdcb4adc75eb
query I rowsort
SELECT ALL - col2 * + 45 FROM tab1 AS cor0
----
-2430
-2565
-4320
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 2563d2f4127fd757b80c46400c5511cb
query I rowsort
SELECT + + cor1.col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL - - col0 - col0 FROM tab1 AS cor0
----
0
0
0
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 82e15d5967b272804e574774895a0222
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1, tab2 cor1
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab2 cor0 WHERE ( NULL ) <> NULL
----
query I rowsort
SELECT DISTINCT 30 - col2 AS col1 FROM tab2 AS cor0
----
-8
3
4
query I rowsort
SELECT DISTINCT + col2 * - col1 + col2 + - col1 AS col1 FROM tab1 AS cor0
----
-1165
-1376
-523
query I rowsort
SELECT ALL + + ( + col1 ) + cor0.col1 - - 74 * col0 AS col1 FROM tab2 cor0
----
580
5880
5890
onlyif mysql # use DIV operator for integer division
query I rowsort label-3196
SELECT DISTINCT - - 38 + - col2 DIV col1 + + col1 AS col2 FROM tab0 AS cor0
----
124
129
135
skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT - - 38 + - col2 / col1 + + col1 AS col2 FROM tab0 AS cor0
----
124
129
135
query I rowsort
SELECT + 45 + + col1 * col2 FROM tab2 AS cor0
----
1579
691
882
query I rowsort
SELECT - col1 * + 18 FROM tab2 AS cor0
----
-1062
-306
-558
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3199
SELECT CAST( NULL AS SIGNED ) / cor0.col0 + col0 / - col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3199
SELECT CAST ( NULL AS INTEGER ) / cor0.col0 + col0 / - col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * 9 + - col0 * - col0 FROM tab0 AS cor0
----
-198
352
7102
query I rowsort
SELECT + ( 17 ) * + col0 AS col1 FROM tab2 AS cor0
----
119
1326
1343
query I rowsort
SELECT ALL - - 44 + + col2 FROM tab1 cor0
----
101
140
98
query I rowsort
SELECT col0 * 76 * - col1 FROM tab0 AS cor0
----
-156864
-258020
-615524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3204
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3204
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-3205
SELECT - CAST( + 30 AS SIGNED ) * - col1 + col2 DIV 53 FROM tab0
----
2580
2731
2910
skipif mysql # not compatible
query I rowsort label-3205
SELECT - CAST ( + 30 AS INTEGER ) * - col1 + col2 / 53 FROM tab0
----
2580
2731
2910
query I rowsort
SELECT + 26 * + col2 FROM tab0 AS cor0
----
2132
26
858
query I rowsort
SELECT - col1 * 25 + - col0 FROM tab2 AS cor0
----
-1553
-504
-782
query I rowsort
SELECT ALL + col2 * + cor0.col2 + + ( - col2 ) FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT ALL - 64 * 63 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 044dec96a0fea68156e2c6f13fce6896
query I rowsort
SELECT ALL 64 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT DISTINCT - col0 * col2 + - col0 AS col1 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col1 * + col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL + col2 * 36 + 68 AS col1 FROM tab2 AS cor0
----
1004
1040
1436
query I rowsort
SELECT + - col2 + - col1 * col0 FROM tab0 cor0
----
-2097
-3396
-8181
query I rowsort
SELECT + + col0 * + col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT + col1 - ( + ( + col1 ) ) * 7 FROM tab0 AS cor0
----
-516
-546
-582
query I rowsort
SELECT - ( - col0 ) * + cor0.col0 + col0 * 51 FROM tab0 AS cor0
----
12460
1800
3010
query I rowsort
SELECT + + ( col2 ) + col1 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 col2 FROM tab1
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 * tab0.col2 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cc54ba4ba871419a14fabbeb4f3a7731
query I rowsort
SELECT + col1 * col2 + col0 * + tab0.col2 AS col0 FROM tab0
----
132
14760
3630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3222
SELECT + col1 * + CAST( - 2 AS SIGNED ) AS col0 FROM tab1
----
-20
-26
-52
skipif mysql # not compatible
query I rowsort label-3222
SELECT + col1 * + CAST ( - 2 AS INTEGER ) AS col0 FROM tab1
----
-20
-26
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-3223
SELECT + 19 DIV col2 + col2 AS col0 FROM tab0 AS cor0
----
20
33
82
skipif mysql # not compatible
query I rowsort label-3223
SELECT + 19 / col2 + col2 AS col0 FROM tab0 AS cor0
----
20
33
82
query I rowsort
SELECT ALL 14 * + col2 AS col1 FROM tab0 AS cor0
----
1148
14
462
query I rowsort
SELECT ALL - cor0.col0 - - cor0.col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - cor0.col2 * 18 FROM tab1, tab1 AS cor0
----
9 values hashing to 456fd9705d6200981d2d23141dc62383
query I rowsort
SELECT + + col1 * + col1 + col2 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT ALL - tab1.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3229
SELECT ALL CAST( col2 + col1 AS SIGNED ) FROM tab0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL CAST ( col2 + col1 AS INTEGER ) FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT - tab0.col2 + col1 AS col2 FROM tab0
----
53
9
96
query I rowsort
SELECT DISTINCT + tab0.col2 * col0 + + col1 FROM tab0
----
132
7389
878
query I rowsort
SELECT 59 * 99 FROM tab2
----
5841
5841
5841
query I rowsort
SELECT + col2 * + tab2.col1 - - col2 AS col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT + + cor0.col2 - - col1 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - col1 + + tab2.col0 AS col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT tab1.col1 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 * cor0.col0 + col0 col2 FROM tab0 cor0
----
-118790
-49512
-720722
query I rowsort
SELECT - col2 + col1 * - col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT - cor0.col0 + - 15 AS col0 FROM tab1 cor0
----
-18
-79
-95
query I rowsort
SELECT DISTINCT 69 * + col2 FROM tab0
----
2277
5658
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * col0 col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col0 * - col0 + ( - cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT DISTINCT + + 26 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1664
-2080
-78
query I rowsort
SELECT DISTINCT - col0 + col0 AS col2 FROM tab0 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3245
SELECT - col2 DIV col1 + + col2 FROM tab1
----
52
52
89
skipif mysql # not compatible
query I rowsort label-3245
SELECT - col2 / col1 + + col2 FROM tab1
----
52
52
89
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab1, tab2 cor1
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14
query I rowsort
SELECT DISTINCT cor0.col0 * col2 - col1 AS col2 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT DISTINCT - - col1 + + col0 * col2 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3249
SELECT ALL + 1 * cor0.col2 - - CAST( NULL AS DECIMAL ) * col0 / col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL + 1 * cor0.col2 - - CAST ( NULL AS REAL ) * col0 / col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 6 AS col0 FROM tab1 cor0
----
6
6
6
query I rowsort
SELECT + col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - - 57 + - col2 FROM tab0 AS cor0
----
-25
24
56
query I rowsort
SELECT - + ( col2 ) * - col2 + col1 AS col0 FROM tab1 cor0
----
2942
3259
9229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + + col0 col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT - 41 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-38
23
39
query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1
----
54
57
96
query I rowsort
SELECT ALL + tab0.col1 * + ( - col1 ) FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT + + col0 * ( cor0.col0 ) + + col2 * col0 FROM tab2 AS cor0
----
238
8112
9243
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3259
SELECT - - col0 * 37 + - col2 * cor0.col2 * ( 91 * col0 ) + + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
-18919744
-67089440
-795954
skipif mysql # not compatible
query I rowsort label-3259
SELECT - - col0 * 37 + - col2 * cor0.col2 * ( 91 * col0 ) + + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
-18919744
-67089440
-795954
query I rowsort
SELECT - - col2 * 54 FROM tab1 AS cor0
----
2916
3078
5184
query I rowsort
SELECT cor0.col2 + col0 * col1 FROM tab2 AS cor0
----
1381
244
4628
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab1 cor1, tab1 cor2
----
972 values hashing to cee640567b2a4ba7d97109d5025bf4d9
query I rowsort
SELECT + + col0 * ( col1 ) * + ( - col2 * + col1 ) AS col2 FROM tab0 AS cor0
----
-329315
-5857632
-60434738
onlyif mysql # use DIV operator for integer division
query I rowsort label-3264
SELECT + 95 DIV col0 col2 FROM tab0 cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3264
SELECT + 95 / col0 col2 FROM tab0 cor0
----
1
2
3
query I rowsort
SELECT DISTINCT - + 62 * - col1 FROM tab0 cor0
----
5332
5642
6014
query I rowsort
SELECT + - 88 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-2904
-7216
-88
query I rowsort
SELECT DISTINCT - col0 * + 74 FROM tab0 cor0
----
-1776
-2590
-6586
onlyif mysql # use DIV operator for integer division
query I rowsort label-3268
SELECT DISTINCT col2 DIV + 21 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-3268
SELECT DISTINCT col2 / + 21 FROM tab2 AS cor0
----
1
query I rowsort
SELECT - col2 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 * + col0 col1 FROM tab0 AS cor0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 + + col0 * cor0.col0 col2 FROM tab1 cor0
----
-90
3997
6301
query I rowsort
SELECT - ( + 20 ) * - col1 FROM tab0 cor0
----
1720
1820
1940
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col0 AS REAL ) AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - - 44 * + col1 + col0 FROM tab2 cor0
----
1371
2674
827
query I rowsort
SELECT DISTINCT - + col2 + - 99 FROM tab0 AS cor0
----
-100
-132
-181
query I rowsort
SELECT ALL + 61 AS col0 FROM tab0 AS cor0
----
61
61
61
query I rowsort
SELECT ALL - col0 * col0 + + col2 FROM tab2 AS cor0
----
-22
-6058
-6203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) * - cor0.col0 col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL + tab1.col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL - ( + col2 ) * col0 + + 38 * col0 AS col1 FROM tab2 AS cor0
----
0
77
936
onlyif mysql # use DIV operator for integer division
query I rowsort label-3281
SELECT + 95 * 62 DIV + col2 AS col2 FROM tab1 AS cor0
----
103
109
61
skipif mysql # not compatible
query I rowsort label-3281
SELECT + 95 * 62 / + col2 AS col2 FROM tab1 AS cor0
----
103
109
61
query I rowsort
SELECT ALL 14 + 30 AS col0 FROM tab1 AS cor0
----
44
44
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-3283
SELECT ALL - ( - ( col2 ) ) + - 19 DIV - col1 col0 FROM tab2 AS cor0
----
26
27
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL - ( - ( col2 ) ) + - 19 / - col1 col0 FROM tab2 AS cor0
----
26
27
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 + - cor0.col0 col0 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT + ( + ( col0 ) ) AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - + 72 + cor0.col1 FROM tab2 AS cor0
----
-13
-41
-55
query I rowsort
SELECT DISTINCT + - 17 * col0 + + col0 + + col2 AS col0 FROM tab2 AS cor0
----
-1222
-1226
-85
query I rowsort
SELECT col2 * - 95 * col1 + + col0 FROM tab0 AS cor0
----
-269586
-708801
-9180
query I rowsort
SELECT - col0 * col1 + col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT 13 AS col2 FROM tab1 cor0
----
13
13
13
query I rowsort
SELECT 42 AS col2 FROM tab1 AS cor0
----
42
42
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 50 * col0 col2 FROM tab0
----
1750
364900
39600
onlyif mysql # use DIV operator for integer division
query I rowsort label-3293
SELECT DISTINCT 10 DIV col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT 10 / col0 FROM tab0
----
0
query I rowsort
SELECT DISTINCT - cor0.col2 - col1 FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3295
SELECT DISTINCT + - cor0.col2 + + CAST( - col2 AS SIGNED ) * col2 * + 70 AS col2 FROM tab1 AS cor0
----
-204174
-227487
-645216
skipif mysql # not compatible
query I rowsort label-3295
SELECT DISTINCT + - cor0.col2 + + CAST ( - col2 AS INTEGER ) * col2 * + 70 AS col2 FROM tab1 AS cor0
----
-204174
-227487
-645216
query I rowsort
SELECT ALL cor0.col0 * - 22 FROM tab0 AS cor0
----
-1958
-528
-770
query I rowsort
SELECT ALL + col1 * + col1 AS col2 FROM tab2 cor0
----
289
3481
961
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 0a3bf4d9642f43f11aad64de0d046e6b
query I rowsort
SELECT ALL + + col2 + col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT - + col0 + ( - cor0.col2 ) * col2 AS col0 FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT DISTINCT 1 - + col0 AS col0 FROM tab0
----
-23
-34
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-3302
SELECT ALL + col0 + col2 * cor0.col1 DIV + col0 col1 FROM tab1 AS cor0
----
471
72
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL + col0 + col2 * cor0.col1 / + col0 col1 FROM tab1 AS cor0
----
471
72
95
query I rowsort
SELECT col1 + 55 FROM tab0
----
141
146
152
onlyif mysql # use DIV operator for integer division
query I rowsort label-3304
SELECT col1 * - 70 DIV + 35 + - col2 * col2 - + col2 FROM tab2
----
-1516
-818
-820
skipif mysql # not compatible
query I rowsort label-3304
SELECT col1 * - 70 / + 35 + - col2 * col2 - + col2 FROM tab2
----
-1516
-818
-820
query I rowsort
SELECT DISTINCT tab1.col2 + 40 FROM tab1
----
136
94
97
query I rowsort
SELECT - col1 * - ( - col1 ) AS col0 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - col1 + + col2 AS col2 FROM tab2
----
-33
-4
21
query I rowsort
SELECT DISTINCT col2 + - 64 FROM tab0
----
-31
-63
18
query I rowsort
SELECT DISTINCT col0 + - tab0.col2 * - tab0.col0 AS col1 FROM tab0
----
70
7387
816
query I rowsort
SELECT ALL + cor0.col2 + + col2 * + col1 AS col2 FROM tab2 cor0
----
1560
684
864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3311
SELECT col1 * - CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3311
SELECT col1 * - CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT + col2 + CAST ( + 78 AS REAL ) FROM tab2
----
104
105
116
query I rowsort
SELECT col1 * ( - 49 + - col1 ) FROM tab2
----
-1122
-2480
-6372
query I rowsort
SELECT DISTINCT col1 * - col1 * tab0.col1 + + col0 AS col2 FROM tab0
----
-636032
-753482
-912638
query I rowsort
SELECT DISTINCT - - ( 29 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
29
query I rowsort
SELECT ALL + cor0.col0 FROM tab2, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994
query I rowsort
SELECT 89 + + col2 FROM tab0 AS cor0
----
122
171
90
query I rowsort
SELECT DISTINCT - 92 AS col0 FROM tab0 AS cor0
----
-92
query I rowsort
SELECT + col2 * + col0 + - col0 + + ( + col2 * + col2 ) AS col0 FROM tab0 AS cor0
----
1
13933
1857
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col0 * col2 col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT col1 * col0 * 41 FROM tab1
----
26240
3198
42640
query I rowsort
SELECT ALL + col2 * 29 + - 64 FROM tab2 cor0
----
1038
690
719
query I rowsort
SELECT DISTINCT - 49 AS col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
-49
query I rowsort
SELECT - col2 * - 46 AS col1 FROM tab0 cor0
----
1518
3772
46
query I rowsort
SELECT - - col2 * cor0.col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL ( - col0 ) AS col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT 72 * - 99 FROM tab0
----
-7128
-7128
-7128
query I rowsort
SELECT ALL + 34 + cor0.col0 + + col1 * 19 * 35 FROM tab2 AS cor0
----
11418
20656
39347
query I rowsort
SELECT ALL - 86 * - 36 + + col2 + + 66 FROM tab2
----
3188
3189
3200
query I rowsort
SELECT DISTINCT 95 AS col0 FROM tab1, tab2, tab0 AS cor0
----
95
query I rowsort
SELECT ALL - - ( col0 ) * - col0 AS col0 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL 64 * - col1 AS col1 FROM tab2 AS cor0
----
-1088
-1984
-3776
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c
query I rowsort
SELECT ( ( + col0 ) ) + - col1 FROM tab2 cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT - ( cor0.col2 ) AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT - 33 + + col2 * col2 + - 78 * - col2 FROM tab0 AS cor0
----
13087
3630
46
query I rowsort
SELECT col1 * - col1 + - col0 + col2 AS col1 FROM tab2 AS cor0
----
-330
-3533
-941
query I rowsort
SELECT col2 * col1 * col2 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT DISTINCT 60 + + col2 * col0 AS col1 FROM tab0
----
7358
852
95
query I rowsort
SELECT DISTINCT 17 - col1 FROM tab0
----
-69
-74
-80
query I rowsort
SELECT ALL + 98 - col0 AS col0 FROM tab0
----
63
74
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3343
SELECT ALL + 31 DIV - col0 + 79 * col0 FROM tab1 AS cor0
----
227
5056
6320
skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL + 31 / - col0 + 79 * col0 FROM tab1 AS cor0
----
227
5056
6320
query I rowsort
SELECT - col1 - - col1 * + cor0.col2 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT DISTINCT + ( + col1 ) * 18 + ( + cor0.col0 * 35 ) + col0 * - col2 AS col2 FROM tab0 AS cor0
----
-2545
1596
2936
query I rowsort
SELECT + ( + cor1.col0 ) AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT - + col0 + - col1 + col2 AS col1 FROM tab2 cor0
----
-11
-111
-58
query I rowsort
SELECT ALL + col1 * 99 + col2 FROM tab2 cor0
----
1721
3096
5867
query I rowsort
SELECT - cor0.col1 + ( + col2 ) AS col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT cor0.col0 + ( + col1 ) + col2 FROM tab2 AS cor0
----
134
163
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3351
SELECT - col0 + + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-3351
SELECT - col0 + + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT col1 + - col0 * - col1 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3353
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3353
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + col0 * col1 + col2 * col0 FROM tab2 AS cor0
----
406
4345
6630
query I rowsort
SELECT ALL - col1 + 47 FROM tab0 AS cor0
----
-39
-44
-50
onlyif mysql # use DIV operator for integer division
query I rowsort label-3356
SELECT DISTINCT tab0.col2 * tab0.col0 DIV + ( + col2 * + col2 ) AS col1 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT tab0.col2 * tab0.col0 / + ( + col2 * + col2 ) AS col1 FROM tab0
----
0
1
35
query I rowsort
SELECT tab1.col0 * - tab1.col0 AS col2 FROM tab1
----
-4096
-6400
-9
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab1 AS cor0 WHERE NOT NULL < NULL
----
query I rowsort
SELECT DISTINCT - cor0.col0 * 2 + + 39 FROM tab0, tab1, tab1 AS cor0
----
-121
-89
33
query I rowsort
SELECT 43 * - col2 FROM tab2 AS cor0
----
-1118
-1161
-1634
query I rowsort
SELECT - 58 + + ( col1 ) FROM tab1 cor0
----
-32
-45
-48
query I rowsort
SELECT + ( + 95 ) * col0 FROM tab1 cor0
----
285
6080
7600
query I rowsort
SELECT DISTINCT - tab1.col1 * + cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 81a8fcf7518fbae07bfeaffb3ad3a436
query I rowsort
SELECT 95 * tab0.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0ed00e87fed5f4d8f8062c2ae77a32cc
query I rowsort
SELECT - 21 AS col0 FROM tab1 cor0
----
-21
-21
-21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3366
SELECT + cor0.col0 * col1 + - col1 * CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
1178
1632
8083
skipif mysql # not compatible
query I rowsort label-3366
SELECT + cor0.col0 * col1 + - col1 * CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
1178
1632
8083
query I rowsort
SELECT DISTINCT - + cor0.col1 + col0 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT - col1 + 85 FROM tab2 AS cor0
----
26
54
68
query I rowsort
SELECT ALL - col0 * ( - 73 ) + col0 AS col2 FROM tab2 AS cor0
----
518
5772
5846
query I rowsort
SELECT ALL - cor0.col0 + col1 * col1 AS col0 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT + + col0 * 20 FROM tab0 cor0
----
1780
480
700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ( col0 * - 31 + col1 * col1 ) FROM tab2
----
-2160
1063
744
query I rowsort
SELECT DISTINCT + - col1 * + 1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + - col0 + - 46 FROM tab0 AS cor0
----
-135
-70
-81
query I rowsort
SELECT DISTINCT col1 + - col1 * + col1 AS col1 FROM tab1 cor0
----
-156
-650
-90
query I rowsort
SELECT DISTINCT + 86 + + col0 AS col0 FROM tab2 cor0
----
164
165
93
query I rowsort
SELECT + - 36 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
50
55
61
query I rowsort
SELECT ALL + + 77 * col0 AS col2 FROM tab1 AS cor0
----
231
4928
6160
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3380
SELECT ALL CAST( - ( col1 ) AS SIGNED ) + 24 * col0 AS col0 FROM tab0 AS cor0
----
2045
490
743
skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL CAST ( - ( col1 ) AS INTEGER ) + 24 * col0 AS col0 FROM tab0 AS cor0
----
2045
490
743
onlyif mysql # use DIV operator for integer division
query I rowsort label-3381
SELECT DISTINCT - 62 + - ( - col1 ) DIV + 51 + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-147
-152
-158
skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT - 62 + - ( - col1 ) / + 51 + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-147
-152
-158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3382
SELECT + tab1.col1 + ( tab1.col0 * col1 + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3382
SELECT + tab1.col1 + ( tab1.col0 * col1 + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + col2 * + ( col1 ) FROM tab1
----
1261
1430
580
query I rowsort
SELECT cor1.col0 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT 71 * col2 - ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
1768
1910
2619
query I rowsort
SELECT ALL 14 + cor0.col0 FROM tab2 cor0
----
21
92
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-3387
SELECT - col1 + - col1 DIV + ( + 92 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-3387
SELECT - col1 + - col1 / + ( + 92 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + col1 - cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + 98 * + col1 AS col1 FROM tab1 cor0
----
-1274
-2548
-980
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3390
SELECT ALL col2 * col0 + + CAST( - col1 + col2 AS SIGNED ) * - cor0.col2 FROM tab1 AS cor0
----
-1350
-288
969
skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL col2 * col0 + + CAST ( - col1 + col2 AS INTEGER ) * - cor0.col2 FROM tab1 AS cor0
----
-1350
-288
969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 62 * + col2 col0 FROM tab2 AS cor0
----
-1612
-1674
-2356
onlyif mysql # use DIV operator for integer division
query I rowsort label-3392
SELECT 96 * - col1 - col0 DIV 88 AS col0 FROM tab1 AS cor0
----
-1248
-2496
-960
skipif mysql # not compatible
query I rowsort label-3392
SELECT 96 * - col1 - col0 / 88 AS col0 FROM tab1 AS cor0
----
-1248
-2496
-960
query I rowsort
SELECT ALL - cor0.col1 * cor0.col2 + - ( 66 ) AS col1 FROM tab2 AS cor0
----
-1600
-712
-903
query I rowsort
SELECT DISTINCT - + col1 - col1 * - cor0.col0 * col0 AS col0 FROM tab2 AS cor0
----
106080
1488
358897
query I rowsort
SELECT ALL ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL col2 - col1 AS col1 FROM tab0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 87 - - 83 * - col1 col1 FROM tab2
----
-1498
-2660
-4984
query I rowsort
SELECT ALL 82 - + 36 AS col2 FROM tab2
----
46
46
46
query I rowsort
SELECT + 7 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3400
SELECT ALL col0 + - col0 * CAST( col0 + col0 AS SIGNED ) AS col0 FROM tab0
----
-1128
-15753
-2415
skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL col0 + - col0 * CAST ( col0 + col0 AS INTEGER ) AS col0 FROM tab0
----
-1128
-15753
-2415
query I rowsort
SELECT ALL + + cor0.col0 + - col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - + 16 * - col0 * - 40 + col0 AS col0 FROM tab2 AS cor0
----
-4473
-49842
-50481
query I rowsort
SELECT DISTINCT - col0 * col2 * + 49 AS col0 FROM tab2 AS cor0
----
-147098
-9261
-99372
onlyif mysql # use DIV operator for integer division
query I rowsort label-3404
SELECT DISTINCT - col2 DIV + col1 AS col2 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT - col2 / + col1 AS col2 FROM tab2 AS cor0
----
-2
0
query I rowsort
SELECT ALL - 70 * + cor0.col0 * + col0 + 70 FROM tab0 AS cor0
----
-40250
-554400
-85680
query I rowsort
SELECT ALL - + 52 + - col1 FROM tab2 AS cor0
----
-111
-69
-83
query I rowsort
SELECT + ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - col1 + col1 AS col0 FROM tab0
----
0
query I rowsort
SELECT col1 + col0 + 45 * 8 AS col1 FROM tab0
----
470
492
540
onlyif mysql # use DIV operator for integer division
query I rowsort label-3410
SELECT DISTINCT + tab1.col2 * + col1 DIV col1 + 56 FROM tab1
----
110
113
152
skipif mysql # not compatible
query I rowsort label-3410
SELECT DISTINCT + tab1.col2 * + col1 / col1 + 56 FROM tab1
----
110
113
152
query I rowsort
SELECT col2 + + col0 + + col0 * col0 * - col2 FROM tab2
----
-1289
-158080
-237041
query I rowsort
SELECT DISTINCT - col2 + - col2 AS col2 FROM tab2
----
-52
-54
-76
query I rowsort
SELECT - ( col0 ) * + col2 + + col1 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT ALL ( col2 * ( col0 ) ) FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT + 10 * col0 FROM tab1 AS cor0
----
30
640
800
query I rowsort
SELECT ALL - 11 + col1 FROM tab1 AS cor0
----
-1
15
2
query I rowsort
SELECT - 64 * - col1 AS col0 FROM tab0 AS cor0
----
5504
5824
6208
onlyif mysql # use DIV operator for integer division
query I rowsort label-3418
SELECT DISTINCT + col1 + + col0 DIV - tab2.col1 + - tab2.col1 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT + col1 + + col0 / - tab2.col1 + - tab2.col1 FROM tab2
----
-1
-4
0
query I rowsort
SELECT 43 * col0 AS col1 FROM tab2
----
301
3354
3397
onlyif mysql # use DIV operator for integer division
query I rowsort label-3420
SELECT col1 DIV + col1 + ( + col0 ) DIV col2 FROM tab1
----
1
1
2
skipif mysql # not compatible
query I rowsort label-3420
SELECT col1 / + col1 + ( + col0 ) / col2 FROM tab1
----
1
1
2
query I rowsort
SELECT ALL - col2 * - cor0.col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3422
SELECT + + col1 + + CAST( NULL AS SIGNED ) * col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3422
SELECT + + col1 + + CAST ( NULL AS INTEGER ) * col0 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3423
SELECT DISTINCT + col0 DIV - ( - col2 * col2 + col1 * col1 ) AS col0 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT + col0 / - ( - col2 * col2 + col1 * col1 ) AS col0 FROM tab1 cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3424
SELECT DISTINCT col2 * - CAST( - ( col0 ) AS SIGNED ) FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-3424
SELECT DISTINCT col2 * - CAST ( - ( col0 ) AS INTEGER ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col1 * - 92 + 76 AS col1 FROM tab1 AS cor0
----
-1120
-2316
-844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3426
SELECT - col2 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3426
SELECT - col2 * CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col1 + col0 * + col0 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT col0 + + col0 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT + col2 * - ( cor0.col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - col0 - ( + col1 ) * + col1 AS col0 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT DISTINCT col2 + 50 + + col0 FROM tab2 AS cor0
----
154
167
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - ( - col0 ) ) + + col1 col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + 74 AS col1 FROM tab0 AS cor0
----
74
query I rowsort
SELECT DISTINCT - - col1 * col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + - ( + 85 ) * - cor0.col1 AS col0 FROM tab0 cor0
----
7310
7735
8245
query I rowsort
SELECT DISTINCT - + col1 * col1 * col2 FROM tab1 AS cor0
----
-16224
-36504
-5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-3437
SELECT ALL - cor0.col2 * col2 + - col1 DIV + col1 FROM tab0 AS cor0
----
-1090
-2
-6725
skipif mysql # not compatible
query I rowsort label-3437
SELECT ALL - cor0.col2 * col2 + - col1 / + col1 FROM tab0 AS cor0
----
-1090
-2
-6725
query I rowsort
SELECT ALL + - col0 * 84 + col1 * + 9 AS col0 FROM tab2 AS cor0
----
-309
-6021
-6483
query I rowsort
SELECT ALL + col1 + cor0.col0 * + col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT - 95 - col1 AS col1 FROM tab2 AS cor0
----
-112
-126
-154
query I rowsort
SELECT ALL 10 + - col0 FROM tab0 AS cor0
----
-14
-25
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3442
SELECT CAST( + 28 AS SIGNED ) FROM tab1
----
28
28
28
skipif mysql # not compatible
query I rowsort label-3442
SELECT CAST ( + 28 AS INTEGER ) FROM tab1
----
28
28
28
query I rowsort
SELECT cor0.col2 + + cor0.col2 * - col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT cor0.col1 * + col1 * cor0.col1 + + ( - col0 ) * col1 FROM tab2 AS cor0
----
200777
29574
3570
query I rowsort
SELECT DISTINCT - tab2.col2 + 21 * col2 * col2 AS col1 FROM tab2
----
14170
15282
30286
query I rowsort
SELECT + col1 + - col2 + col1 AS col2 FROM tab0
----
100
139
193
query I rowsort
SELECT 27 + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1507
-619
-810
query I rowsort
SELECT + 32 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b
query I rowsort
SELECT col2 + ( + tab0.col2 ) + - col1 AS col2 FROM tab0
----
-20
-95
73
query I rowsort
SELECT 43 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
query I rowsort
SELECT ALL 76 * - col2 AS col2 FROM tab0 AS cor0
----
-2508
-6232
-76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3452
SELECT CAST( - 38 AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3
skipif mysql # not compatible
query I rowsort label-3452
SELECT CAST ( - 38 AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3
onlyif mysql # use DIV operator for integer division
query I rowsort label-3453
SELECT col0 + col1 DIV ( - ( + col2 ) ) + - col1 FROM tab1 AS cor0
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-3453
SELECT col0 + col1 / ( - ( + col2 ) ) + - col1 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) * col0 col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT + col0 + - 72 - col2 FROM tab0 AS cor0
----
-38
-65
-81
query I rowsort
SELECT - + col2 + + col1 - + col1 * ( - 55 * col1 ) AS col1 FROM tab2 AS cor0
----
15874
191488
52859
query I rowsort
SELECT - col2 + + col0 * + 48 FROM tab2
----
309
3718
3754
query I rowsort
SELECT + 37 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 76 col0 FROM tab2
----
532
5928
6004
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3460
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col0 FROM tab1, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col0 FROM tab1, tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - + col1 + 36 FROM tab0 cor0
----
-50
-55
-61
query I rowsort
SELECT + col1 * + 14 AS col1 FROM tab2 AS cor0
----
238
434
826
query I rowsort
SELECT ALL + tab2.col1 * 68 AS col1 FROM tab2
----
1156
2108
4012
query I rowsort
SELECT - - col1 + - 28 FROM tab0 AS cor0
----
58
63
69
query I rowsort
SELECT ( + 51 ) FROM tab2, tab2 cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT - col1 + - col1 * - col1 FROM tab1
----
156
650
90
query I rowsort
SELECT + - col2 * + 80 FROM tab0 AS cor0
----
-2640
-6560
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3468
SELECT + col0 + - 97 DIV - col0 AS col2 FROM tab2 AS cor0
----
20
79
80
skipif mysql # not compatible
query I rowsort label-3468
SELECT + col0 + - 97 / - col0 AS col2 FROM tab2 AS cor0
----
20
79
80
query I rowsort
SELECT - + ( 21 ) + col2 FROM tab0 AS cor0
----
-20
12
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-3470
SELECT + ( col1 ) + - col1 * ( col1 ) - + col2 DIV ( col0 ) FROM tab2
----
-272
-3422
-933
skipif mysql # not compatible
query I rowsort label-3470
SELECT + ( col1 ) + - col1 * ( col1 ) - + col2 / ( col0 ) FROM tab2
----
-272
-3422
-933
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3472
SELECT CAST( NULL AS SIGNED ) / + tab2.col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3472
SELECT CAST ( NULL AS INTEGER ) / + tab2.col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + + 84 FROM tab1 AS cor0
----
138
141
180
query I rowsort
SELECT DISTINCT col0 * ( + col2 ) + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL cor0.col0 + ( + col1 ) + col1 AS col2 FROM tab2 AS cor0
----
113
196
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-3476
SELECT ALL - - col0 - col0 DIV - col2 FROM tab1 AS cor0
----
3
65
80
skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL - - col0 - col0 / - col2 FROM tab1 AS cor0
----
3
65
80
query I rowsort
SELECT ALL - col2 * 83 AS col1 FROM tab1 cor0
----
-4482
-4731
-7968
query I rowsort
SELECT ALL + col1 * - cor0.col2 AS col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT - tab1.col1 * - col1 AS col1 FROM tab1
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3480
SELECT DISTINCT CAST( NULL AS SIGNED ) + cor0.col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-3480
SELECT DISTINCT CAST ( NULL AS INTEGER ) + cor0.col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
NULL
query I rowsort
SELECT DISTINCT + 20 FROM tab0
----
20
query I rowsort
SELECT col0 + + col2 * + 24 * col2 AS col2 FROM tab0 AS cor0
----
161465
26160
59
query I rowsort
SELECT ALL + 31 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
query I rowsort
SELECT + col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT DISTINCT 38 + 24 AS col0 FROM tab2, tab2 AS cor0
----
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3486
SELECT col1 DIV ( + col0 * col2 + + 51 ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3486
SELECT col1 / ( + col0 * col2 + + 51 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col2 + col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT + cor0.col1 * ( col1 * col1 ) FROM tab2 AS cor0
----
205379
29791
4913
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 * col1 * 1 col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT DISTINCT col1 + + tab1.col2 + - col0 FROM tab1
----
29
3
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT DISTINCT + ( + col2 ) + col2 + 4 FROM tab2
----
56
58
80
query I rowsort
SELECT ALL ( + col0 ) * 23 FROM tab0 AS cor0
----
2047
552
805
query I rowsort
SELECT 36 * - ( cor0.col0 ) AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c0c369711de80fe55fe9cd4e2e7f4917
query I rowsort
SELECT DISTINCT - 88 + - cor0.col2 + col2 * - 65 FROM tab0 AS cor0
----
-154
-2266
-5500
onlyif mysql # use DIV operator for integer division
query I rowsort label-3496
SELECT DISTINCT - cor0.col2 DIV - cor0.col0 FROM tab2 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-3496
SELECT DISTINCT - cor0.col2 / - cor0.col0 FROM tab2 AS cor0
----
0
3
query I rowsort
SELECT ALL 68 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 7ff6433dda3248dce73040b2c590f3da
query I rowsort
SELECT + col2 * + col2 - - cor0.col0 AS col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT - col0 + col2 + - 4 AS col2 FROM tab0 AS cor0
----
-11
-38
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-3500
SELECT + - col2 * + col0 - - 90 DIV - col2 AS col1 FROM tab0 AS cor0
----
-125
-7299
-794
skipif mysql # not compatible
query I rowsort label-3500
SELECT + - col2 * + col0 - - 90 / - col2 AS col1 FROM tab0 AS cor0
----
-125
-7299
-794
query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT + col1 + - col1 - - col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3503
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) + col2 * - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) + col2 * - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * - col2 + - col0 AS col1 FROM tab0 AS cor0
----
-132
-2862
-7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-3505
SELECT - + col0 + col2 DIV 99 + col2 FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-3505
SELECT - + col0 + col2 / 99 + col2 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3506
SELECT - - cor0.col0 / - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3506
SELECT - - cor0.col0 / - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col0 + - col0 AS col2 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + col0 + 18 FROM tab1 AS cor0
----
21
82
98
query I rowsort
SELECT DISTINCT - - col2 * cor0.col0 AS col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT 26 + col0 + ( - 2 ) * - tab2.col0 * col0 AS col1 FROM tab2
----
12272
12587
131
query I rowsort
SELECT col2 * - col0 + + col2 + col1 FROM tab0
----
-673
-7125
63
query I rowsort
SELECT col1 + + col2 * - col2 FROM tab1
----
-2890
-3239
-9203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + + 76 col1 FROM tab1 AS cor0
----
102
86
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3515
SELECT DISTINCT col2 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT col2 / cor0.col2 AS col1 FROM tab0 AS cor0
----
1
query I rowsort
SELECT 24 * + col2 FROM tab2
----
624
648
912
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 + + col2 col0 FROM tab1
----
109
67
80
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + col0 > NULL
----
query I rowsort
SELECT - col1 * col2 * + tab0.col0 + col1 AS col0 FROM tab0
----
-3298
-664027
-68026
query III rowsort
SELECT * FROM tab2 WHERE - col1 + + col1 < NULL
----
query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE col1 NOT BETWEEN col2 AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 col0 FROM tab0
----
-53
-9
-96
query III rowsort
SELECT * FROM tab0 WHERE col1 = NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3524
SELECT DISTINCT - col1 DIV tab2.col1 - + tab2.col2 AS col2 FROM tab2
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-3524
SELECT DISTINCT - col1 / tab2.col1 - + tab2.col2 AS col2 FROM tab2
----
-27
-28
-39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + tab1.col0 col0 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT DISTINCT + col0 + + tab2.col0 + - col0 * tab2.col1 FROM tab2
----
-1185
-203
-4446
query I rowsort
SELECT + col1 * + col0 AS col2 FROM tab2
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * - col0 col2 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT ALL - col2 + - col1 - + col0 AS col0 FROM tab0
----
-133
-143
-262
onlyif mysql # use DIV operator for integer division
query I rowsort label-3530
SELECT DISTINCT - - 50 + + col0 DIV 24 FROM tab2 AS cor0
----
50
53
skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT - - 50 + + col0 / 24 FROM tab2 AS cor0
----
50
53
query I rowsort
SELECT - col2 FROM tab0 WHERE NOT col0 NOT IN ( col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3532
SELECT col0 * col2 DIV col1 + + col0 AS col0 FROM tab1
----
428
670
9
skipif mysql # not compatible
query I rowsort label-3532
SELECT col0 * col2 / col1 + + col0 AS col0 FROM tab1
----
428
670
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3533
SELECT ALL + col2 DIV + col1 AS col2 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL + col2 / + col1 AS col2 FROM tab1
----
2
5
7
query I rowsort
SELECT col1 * col1 + - col0 * col0 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( col2 + tab1.col2 )
----
query I rowsort
SELECT + col2 * col1 * col2 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT DISTINCT col1 + + col1 + col2 FROM tab0
----
195
205
264
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + tab0.col1 * + col1 col2 FROM tab0 WHERE + col1 * col2 + col1 <= NULL
----
query I rowsort
SELECT DISTINCT - col0 + col2 + - col2 AS col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT + col2 + col1 + + col2 * col1 AS col2 FROM tab2
----
1619
701
895
query I rowsort
SELECT col2 + tab2.col2 + + col0 FROM tab2
----
130
155
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-3541
SELECT ALL - col1 * - col1 DIV - col1 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL - col1 * - col1 / - col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT + col0 * - col0 - - 9 FROM tab2 AS cor0
----
-40
-6075
-6232
query I rowsort
SELECT + col2 + + cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT DISTINCT + + cor0.col1 * + col2 + - col0 - col0 AS col0 FROM tab2 AS cor0
----
1378
488
823
query I rowsort
SELECT + 18 + col0 FROM tab1 cor0
----
21
82
98
query I rowsort
SELECT + + col1 * - col0 + col1 * col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + + tab1.col2 * - col0 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT ALL - 5 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21
query I rowsort
SELECT ALL + 46 * 21 FROM tab0
----
966
966
966
query I rowsort
SELECT DISTINCT + col2 + col0 * col0 FROM tab1
----
4153
63
6496
query I rowsort
SELECT + 51 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5
query I rowsort
SELECT ALL + col1 * col1 + col0 FROM tab2 AS cor0
----
3559
368
968
onlyif mysql # use DIV operator for integer division
query I rowsort label-3553
SELECT cor0.col0 * col2 + + col0 DIV + 46 FROM tab1 AS cor0
----
162
3649
7681
skipif mysql # not compatible
query I rowsort label-3553
SELECT cor0.col0 * col2 + + col0 / + 46 FROM tab1 AS cor0
----
162
3649
7681
query I rowsort
SELECT DISTINCT col0 * col2 FROM tab2 cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col1 col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - col0 + col2 + - col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 - cor0.col2 col1 FROM tab0 AS cor0
----
-119
-38
-70
query I rowsort
SELECT DISTINCT + + cor0.col2 - cor0.col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT col0 - col1 AS col0 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT ALL + + col2 + col2 + ( col2 ) FROM tab2 cor0
----
114
78
81
query I rowsort
SELECT ALL - col0 * col0 + + col0 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT DISTINCT + cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
26
27
38
query I rowsort
SELECT DISTINCT col0 * 59 AS col1 FROM tab1
----
177
3776
4720
query I rowsort
SELECT ALL + col0 + ( + col0 ) FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL - - col0 * + ( col1 ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + + col1 * col2 + ( col0 ) FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT - col2 * col2 * + col2 AS col2 FROM tab1 AS cor0
----
-157464
-185193
-884736
query I rowsort
SELECT DISTINCT + + cor0.col2 + - 29 * + col1 AS col1 FROM tab1 AS cor0
----
-233
-281
-700
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3569
SELECT CAST( NULL AS SIGNED ) * + 39 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3569
SELECT CAST ( NULL AS INTEGER ) * + 39 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 + col1 col1 FROM tab2
----
31
45
73
query I rowsort
SELECT ALL - col1 * col0 + - col2 * 8 AS col0 FROM tab1 AS cor0
----
-1096
-1808
-510
query I rowsort
SELECT ( - 66 ) * + col2 AS col1 FROM tab2 AS cor0
----
-1716
-1782
-2508
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3573
SELECT DISTINCT - - CAST( + col0 AS SIGNED ) + col1 * 73 AS col2 FROM tab1 AS cor0
----
1029
1901
794
skipif mysql # not compatible
query I rowsort label-3573
SELECT DISTINCT - - CAST ( + col0 AS INTEGER ) + col1 * 73 AS col2 FROM tab1 AS cor0
----
1029
1901
794
query I rowsort
SELECT DISTINCT - cor1.col2 AS col1 FROM tab0, tab1 AS cor0, tab0 cor1, tab2 AS cor2
----
-1
-33
-82
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab1 cor1, tab0, tab0 AS cor2
----
3645 values hashing to 8db0cc6df185b737ff75d2626a6d198b
query I rowsort
SELECT ALL - ( col1 ) + + cor0.col1 * 50 AS col2 FROM tab1 AS cor0
----
1274
490
637
query I rowsort
SELECT - col1 * + 10 FROM tab1 AS cor0
----
-100
-130
-260
query I rowsort
SELECT ALL col0 + col0 * cor0.col1 + col0 AS col0 FROM tab0 AS cor0
----
2112
3465
8277
query I rowsort
SELECT + + 49 * col1 FROM tab0 AS cor0
----
4214
4459
4753
query I rowsort
SELECT DISTINCT - + col0 * col0 * - col2 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT 61 * col0 AS col1 FROM tab2 AS cor0
----
427
4758
4819
query I rowsort
SELECT col1 - + col0 * + col0 * - col2 FROM tab0 cor0
----
1322
19094
649613
query I rowsort
SELECT ALL - 8 AS col0 FROM tab1
----
-8
-8
-8
query I rowsort
SELECT ALL 97 + tab0.col2 AS col0 FROM tab0
----
130
179
98
query I rowsort
SELECT + cor1.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT - - 23 * col0 FROM tab0 AS cor0
----
2047
552
805
query I rowsort
SELECT - col1 * - col0 + - col1 * - cor0.col2 FROM tab1 cor0
----
1210
1482
2288
query I rowsort
SELECT col0 + - col0 * - col1 FROM tab1
----
1120
704
81
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ( 96 ) FROM tab1
----
96
96
96
query I rowsort
SELECT DISTINCT tab2.col0 AS col2 FROM tab2, tab2 AS cor0
----
7
78
79
query I rowsort
SELECT 90 * tab0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 1fff811c49f798da2e2601591b3d47bb
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 13 ) * col0 col1 FROM tab2 AS cor0
----
1014
1027
91
query I rowsort
SELECT + col1 * - 2 FROM tab2 AS cor0
----
-118
-34
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3595
SELECT ALL col1 + col0 + + col2 DIV + col1 AS col1 FROM tab1 AS cor0
----
100
31
79
skipif mysql # not compatible
query I rowsort label-3595
SELECT ALL col1 + col0 + + col2 / + col1 AS col1 FROM tab1 AS cor0
----
100
31
79
query I rowsort
SELECT ALL - + col2 * col0 + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1026
-3562
-3648
query I rowsort
SELECT DISTINCT 44 AS col2 FROM tab2 AS cor0
----
44
query I rowsort
SELECT DISTINCT - 92 FROM tab2, tab1 AS cor0
----
-92
query III rowsort
SELECT * FROM tab1 WHERE col1 > + col1 * + col1
----
query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NOT col2 + col1 IN ( col2 )
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + col2 + col2 * + col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT + col1 * col2 + col1 AS col0 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT + col1 * - col0 FROM tab0 cor0 WHERE NOT NULL BETWEEN + col0 * + col1 AND NULL
----
query III rowsort
SELECT * FROM tab0 WHERE col0 IN ( col0 + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3605
SELECT + col0 + + col2 DIV - col2 FROM tab0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-3605
SELECT + col0 + + col2 / - col2 FROM tab0
----
23
34
88
query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT NULL BETWEEN col2 / col0 AND NULL
----
query I rowsort
SELECT + col0 - col2 FROM tab1
----
-16
-51
7
query III rowsort
SELECT * FROM tab0 WHERE + col1 BETWEEN - col1 AND + col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3609
SELECT col0 DIV col2 + - tab1.col0 * col0 * + col1 + + col1 AS col2 FROM tab1
----
-208
-40949
-83187
skipif mysql # not compatible
query I rowsort label-3609
SELECT col0 / col2 + - tab1.col0 * col0 * + col1 + + col1 AS col2 FROM tab1
----
-208
-40949
-83187
query I rowsort
SELECT - col0 * tab0.col2 + + tab0.col1 - + col2 FROM tab0
----
-7289
-739
61
query I rowsort
SELECT - col0 * col2 * - col0 AS col1 FROM tab0
----
1225
19008
649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * tab2.col0 col2 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL + col2 * col1 * - col2 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT col0 + - col0 + - col1 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-3615
SELECT col1 + + cor0.col1 DIV col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-3615
SELECT col1 + + cor0.col1 / col1 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT + col1 * + cor0.col1 + - col1 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT + - col1 + - col0 + + col1 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + col1 - + tab1.col2 * - col1 AS col0 FROM tab1
----
1261
1430
580
query I rowsort
SELECT col0 + + col1 - col2 AS col0 FROM tab0
----
131
77
98
query I rowsort
SELECT - col0 * - col1 + col1 FROM tab1
----
104
1053
650
query I rowsort
SELECT col2 + col1 * - cor0.col1 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT + + cor0.col1 + col0 * - col1 AS col2 FROM tab0 cor0
----
-1978
-3298
-8008
query I rowsort
SELECT - cor0.col1 + - col1 + col0 FROM tab2 AS cor0
----
-40
-55
45
query I rowsort
SELECT + - col2 * - col0 + - col0 + cor0.col0 * - cor0.col0 FROM tab2 cor0
----
-3318
-4134
133
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 * col2 + col0 AND NULL OR NOT ( NULL ) IN ( col1 / + col0 + + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3626
SELECT + col0 DIV col0 + col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-3626
SELECT + col0 / col0 + col1 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT - - cor0.col2 + cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL - col0 + + cor0.col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT col2 - + cor0.col0 AS col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT - + col0 + + col1 * col0 AS col2 FROM tab1 AS cor0
----
576
75
960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 + - col2 + col1 * col0 col1 FROM tab2
----
1384
197
4654
query I rowsort
SELECT - - col1 + col2 + col1 AS col0 FROM tab1 AS cor0
----
106
122
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 col1 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 + cor0.col2 - ( + ( col1 ) + - col1 ) col1 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT + 11 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 288f8fb62e079d095c14d7cf3e2d3359
query I rowsort
SELECT + 24 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to dfdfceb3acab6f866df9d676c07043ad
query I rowsort
SELECT DISTINCT col1 + 57 * + col2 AS col1 FROM tab2 AS cor0
----
1541
1570
2183
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3638
SELECT col1 + CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-3638
SELECT col1 + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3639
SELECT - col0 + + CAST( col2 AS SIGNED ) FROM tab0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-3639
SELECT - col0 + + CAST ( col2 AS INTEGER ) FROM tab0
----
-34
-7
9
query I rowsort
SELECT + tab0.col2 * - tab0.col2 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT ALL ( cor0.col2 ) * - col2 + + col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT 10 * col2 * tab1.col0 + col0 FROM tab1
----
1623
36544
76880
query I rowsort
SELECT + 18 + 92 AS col0 FROM tab1
----
110
110
110
query I rowsort
SELECT ALL + col1 + 12 FROM tab0
----
103
109
98
query I rowsort
SELECT ALL 87 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50
query I rowsort
SELECT DISTINCT + 50 * + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-103200
-169750
-404950
query I rowsort
SELECT ALL - + ( - col0 ) + + cor0.col0 FROM tab2 AS cor0
----
14
156
158
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab1 cor1, tab1 cor2
----
972 values hashing to 0be13143d898cc667fe1a2dd93b34703
query I rowsort
SELECT ALL - col2 + - 35 AS col1 FROM tab0 AS cor0
----
-117
-36
-68
query I rowsort
SELECT DISTINCT + 52 + 87 FROM tab2 AS cor0
----
139
query I rowsort
SELECT ALL 34 * - col1 * col2 FROM tab1
----
-19380
-42432
-47736
query I rowsort
SELECT ALL tab0.col2 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT ALL - - tab0.col0 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994
query I rowsort
SELECT - + col2 * - col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 20 + - cor0.col0 col2 FROM tab1 cor0
----
-100
-23
-84
query I rowsort
SELECT ( + cor0.col2 ) * - 36 + + col1 FROM tab2 AS cor0
----
-1351
-877
-941
onlyif mysql # use DIV operator for integer division
query I rowsort label-3657
SELECT ALL + col1 DIV + col1 AS col2 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL + col1 / + col1 AS col2 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + + col2 * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-3659
SELECT ALL + col2 DIV - 52 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL + col2 / - 52 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - cor0.col0 * col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-3661
SELECT DISTINCT + - col1 * col2 - col1 DIV - cor0.col0 FROM tab1 AS cor0
----
-1248
-1396
-570
skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT + - col1 * col2 - col1 / - cor0.col0 FROM tab1 AS cor0
----
-1248
-1396
-570
query I rowsort
SELECT + + 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-3663
SELECT ALL col1 * CAST( + 36 AS SIGNED ) + + col0 AS col1 FROM tab2 AS cor0
----
1123
2202
691
skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL col1 * CAST ( + 36 AS INTEGER ) + + col0 AS col1 FROM tab2 AS cor0
----
1123
2202
691
query I rowsort
SELECT - - cor0.col1 * ( - col2 + - col2 ) AS col2 FROM tab2 AS cor0
----
-1292
-1674
-3068
query I rowsort
SELECT - 45 - - col2 AS col1 FROM tab1
----
12
51
9
query I rowsort
SELECT col0 * tab2.col2 + + col2 AS col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT 96 * + cor0.col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 7f5877c1deb06773bc56b9690e0d7b34
query I rowsort
SELECT - - col1 * + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-3669
SELECT - cor0.col2 DIV + cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3669
SELECT - cor0.col2 / + cor0.col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - cor0.col1 * - 34 FROM tab2 AS cor0
----
1054
2006
578
query I rowsort
SELECT DISTINCT + col2 + + ( col0 ) * + col2 FROM tab2 cor0
----
2054
216
3040
query I rowsort
SELECT ALL tab2.col2 * + 66 FROM tab2, tab2 AS cor0
----
9 values hashing to a51772a0f3f89a84175b3afd1cea6249
query I rowsort
SELECT 28 - 36 FROM tab0, tab2 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e
query I rowsort
SELECT DISTINCT - col0 * + tab2.col2 * - col2 AS col2 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT - col2 * - ( - col1 ) FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL col1 * + 83 + + col0 AS col1 FROM tab0 cor0
----
7162
7642
8086
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * 34 col0 FROM tab0 AS cor0
----
2924
3094
3298
query I rowsort
SELECT - col0 * 70 FROM tab2 AS cor0
----
-490
-5460
-5530
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ( - ( col2 ) ) * - ( - col0 ) FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + 11 + cor0.col0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 2b8b3897e7b5b4081340505a1b1e8dfd
query I rowsort
SELECT - col2 * col2 + + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1226
-14645
-1665
query I rowsort
SELECT DISTINCT 76 + + col0 FROM tab2 AS cor0
----
154
155
83
query I rowsort
SELECT ALL - col2 - cor0.col2 * 91 AS col1 FROM tab0 AS cor0
----
-3036
-7544
-92
query I rowsort
SELECT - 61 + + cor0.col1 FROM tab1 AS cor0
----
-35
-48
-51
query I rowsort
SELECT ALL + - cor0.col2 * cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3687
SELECT - col2 + - col1 / - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3687
SELECT - col2 + - col1 / - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col1 FROM tab1 cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3689
SELECT - CAST( col0 AS SIGNED ) * col0 FROM tab0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-3689
SELECT - CAST ( col0 AS INTEGER ) * col0 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT + ( - col2 ) + - col1 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT 61 * col1 + + col0 AS col0 FROM tab1
----
1589
674
873
query I rowsort
SELECT DISTINCT col1 * + 26 + col2 * tab2.col2 FROM tab2
----
1535
1886
2210
query I rowsort
SELECT DISTINCT - col0 + 70 AS col2 FROM tab0
----
-19
35
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-3694
SELECT - + col2 DIV - col0 + col1 FROM tab1 cor0
----
10
14
44
skipif mysql # not compatible
query I rowsort label-3694
SELECT - + col2 / - col0 + col1 FROM tab1 cor0
----
10
14
44
query I rowsort
SELECT + + 58 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
onlyif mysql # use DIV operator for integer division
query I rowsort label-3696
SELECT ALL 1 DIV col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL 1 / col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT - + cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + + cor0.col2 * + col1 AS col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL - col1 + col1 * 72 FROM tab2 AS cor0
----
1207
2201
4189
onlyif mysql # use DIV operator for integer division
query I rowsort label-3700
SELECT - + ( - cor0.col0 ) DIV 82 FROM tab0 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3700
SELECT - + ( - cor0.col0 ) / 82 FROM tab0 cor0
----
0
0
1
query I rowsort
SELECT DISTINCT 42 FROM tab1 cor0
----
42
query I rowsort
SELECT ALL 5 + cor0.col2 AS col0 FROM tab0 AS cor0
----
38
6
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-3703
SELECT - - 17 DIV - col2 + col0 * + col1 DIV col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-3703
SELECT - - 17 / - col2 + col0 * + col1 / col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + - 73 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc
query I rowsort
SELECT + + 14 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT ALL - 91 AS col1 FROM tab0
----
-91
-91
-91
query I rowsort
SELECT 59 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col2 + + col0 AS REAL ) col0 FROM tab1
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3710
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3710
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2, tab1 AS cor0
----
NULL
query I rowsort
SELECT 35 * - col2 - + col1 * + col0 AS col2 FROM tab2
----
-1162
-2673
-5512
query I rowsort
SELECT + cor0.col1 + + col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - 69 AS col0 FROM tab1
----
-69
query I rowsort
SELECT DISTINCT - 8 * ( col2 ) AS col2 FROM tab0
----
-264
-656
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 * + col2 ) col1 FROM tab0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 col0 FROM tab2
----
-74
-74
-74
query I rowsort
SELECT col0 + ( col0 ) AS col0 FROM tab0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-3718
SELECT - col1 + - col2 * col0 DIV col2 AS col1 FROM tab0
----
-110
-132
-180
skipif mysql # not compatible
query I rowsort label-3718
SELECT - col1 + - col2 * col0 / col2 AS col1 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT - + 96 * + col0 AS col0 FROM tab2 AS cor0
----
-672
-7488
-7584
query I rowsort
SELECT DISTINCT - - col1 * + cor0.col2 - ( + col1 ) * - col2 AS col2 FROM tab1 cor0
----
1140
2496
2808
query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 + col1 FROM tab2 AS cor0
----
-1427
-617
-698
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3722
SELECT ALL CAST( - cor0.col2 AS SIGNED ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL CAST ( - cor0.col2 AS INTEGER ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT DISTINCT + cor0.col0 + + col0 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + col2 * - cor0.col1 + col0 * cor0.col0 + + 14 * col1 AS col1 FROM tab1 AS cor0
----
-1031
3666
5334
query I rowsort
SELECT - - col1 + col1 + cor0.col1 FROM tab1 AS cor0
----
30
39
78
query I rowsort
SELECT - + col0 + + ( cor0.col0 ) + - col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - col0 + - ( + col0 ) + - col2 AS col2 FROM tab1 AS cor0
----
-185
-256
-60
query I rowsort
SELECT - 30 + col1 * col0 FROM tab1 AS cor0
----
1010
48
610
onlyif mysql # use DIV operator for integer division
query I rowsort label-3729
SELECT + col2 + col0 + + col2 DIV col0 FROM tab2 AS cor0
----
104
117
37
skipif mysql # not compatible
query I rowsort label-3729
SELECT + col2 + col0 + + col2 / col0 FROM tab2 AS cor0
----
104
117
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3730
SELECT + CAST( + col2 AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-3730
SELECT + CAST ( + col2 AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT cor0.col2 * col2 * col1 + col0 FROM tab2 cor0
----
22606
24627
39962
query I rowsort
SELECT ALL 3 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT DISTINCT - 46 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 cor1, tab2 AS cor2
----
-46
query I rowsort
SELECT 62 * 1 FROM tab2, tab2 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT + tab1.col1 FROM tab1, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - ( col1 + 46 ) col1 FROM tab1 AS cor0
----
1872
560
767
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col1 AS REAL ) + + col2 * 89 FROM tab1 AS cor0
----
4832
5083
8557
query I rowsort
SELECT - cor0.col2 * col0 + + col2 * + col0 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT 17 * - col2 + col2 AS col1 FROM tab1 AS cor0
----
-1536
-864
-912
query I rowsort
SELECT + 63 + 23 FROM tab1 AS cor0
----
86
86
86
query I rowsort
SELECT + + 38 + - 43 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1295
-2499
-693
query I rowsort
SELECT ALL - 89 + - col1 FROM tab1 AS cor0
----
-102
-115
-99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3743
SELECT DISTINCT CAST( col1 AS SIGNED ) + col2 + - ( + col1 * col1 ) AS col0 FROM tab1 AS cor0
----
-33
-596
-60
skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT CAST ( col1 AS INTEGER ) + col2 + - ( + col1 * col1 ) AS col0 FROM tab1 AS cor0
----
-33
-596
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-3744
SELECT - - ( - col2 ) * col2 DIV col0 FROM tab1 AS cor0
----
-115
-50
-972
skipif mysql # not compatible
query I rowsort label-3744
SELECT - - ( - col2 ) * col2 / col0 FROM tab1 AS cor0
----
-115
-50
-972
onlyif mysql # use DIV operator for integer division
query I rowsort label-3745
SELECT ALL tab0.col0 DIV 50 AS col2 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL tab0.col0 / 50 AS col2 FROM tab0
----
0
0
1
query I rowsort
SELECT col2 * - ( + tab0.col1 ) FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT 14 AS col0 FROM tab1 AS cor0
----
14
14
14
query I rowsort
SELECT ALL col1 + 8 AS col0 FROM tab0 AS cor0
----
105
94
99
query I rowsort
SELECT 32 * col2 + col0 AS col2 FROM tab2 cor0
----
1295
871
910
onlyif mysql # use DIV operator for integer division
query I rowsort label-3750
SELECT DISTINCT - ( col2 ) DIV col1 AS col2 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT - ( col2 ) / col1 AS col2 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL - 84 + 11 * col2 FROM tab2 AS cor0
----
202
213
334
query I rowsort
SELECT ALL col1 * + 28 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
344
444
731
query I rowsort
SELECT DISTINCT - col0 * - col2 + - col1 FROM tab1 AS cor0
----
136
3638
7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 + + 11 col0 FROM tab0 AS cor0
----
100
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3755
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 72 AS col2 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3755
SELECT DISTINCT CAST ( NULL AS REAL ) * 72 AS col2 FROM tab0 cor0
----
NULL
query I rowsort
SELECT + - 18 * + col2 - - cor0.col1 FROM tab1 cor0
----
-1016
-1715
-946
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3757
SELECT ALL + + 27 * col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL + + 27 * col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + 52 AS col0 FROM tab1
----
62
65
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3759
SELECT - col0 + 19 DIV col0 FROM tab2
----
-5
-78
-79
skipif mysql # not compatible
query I rowsort label-3759
SELECT - col0 + 19 / col0 FROM tab2
----
-5
-78
-79
query I rowsort
SELECT ALL - - cor0.col0 * 78 + - col1 AS col0 FROM tab0 AS cor0
----
1786
2633
6851
onlyif mysql # use DIV operator for integer division
query I rowsort label-3761
SELECT ALL + col0 DIV 22 - - 8 AS col1 FROM tab1 AS cor0
----
10
11
8
skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL + col0 / 22 - - 8 AS col1 FROM tab1 AS cor0
----
10
11
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3762
SELECT - cor0.col1 DIV + ( col2 ) - col0 FROM tab0 AS cor0
----
-132
-26
-90
skipif mysql # not compatible
query I rowsort label-3762
SELECT - cor0.col1 / + ( col2 ) - col0 FROM tab0 AS cor0
----
-132
-26
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( col0 ) + - col1 col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT DISTINCT - col2 + col0 + col1 FROM tab0 AS cor0
----
131
77
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3765
SELECT DISTINCT cor0.col2 * - ( - col0 ) + col2 + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
219
3769
7856
skipif mysql # not compatible
query I rowsort label-3765
SELECT DISTINCT cor0.col2 * - ( - col0 ) + col2 + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
219
3769
7856
query I rowsort
SELECT 78 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048
query I rowsort
SELECT + - col2 * col0 - col0 * col1 FROM tab0 AS cor0
----
-15397
-2856
-3430
query I rowsort
SELECT DISTINCT - tab1.col0 + 17 AS col0 FROM tab1, tab1 AS cor0
----
-47
-63
14
query I rowsort
SELECT ALL - col1 * col2 - - 67 FROM tab1
----
-1181
-1337
-503
query I rowsort
SELECT + tab1.col2 - - ( col0 ) AS col2 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT + col0 - col1 AS col0 FROM tab1
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-3772
SELECT col0 + col2 DIV col0 + + tab0.col1 FROM tab0
----
111
132
180
skipif mysql # not compatible
query I rowsort label-3772
SELECT col0 + col2 / col0 + + tab0.col1 FROM tab0
----
111
132
180
query I rowsort
SELECT - col0 * ( + col1 ) + cor0.col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 45 + cor0.col1 * col2 col0 FROM tab1 AS cor0
----
-1026
-1995
-3072
query I rowsort
SELECT ALL col0 + - col0 * cor0.col1 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT + col0 + - cor0.col0 * - col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-3777
SELECT ALL - cor0.col2 DIV - cor0.col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL - cor0.col2 / - cor0.col0 FROM tab2 AS cor0
----
0
0
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-3778
SELECT DISTINCT + + 85 DIV col0 + + 10 FROM tab2 AS cor0
----
11
22
skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT + + 85 / col0 + + 10 FROM tab2 AS cor0
----
11
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 * + col2 col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + + 50 + col0 FROM tab2 AS cor0
----
128
129
57
query I rowsort
SELECT + ( cor0.col1 ) * ( col2 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3782
SELECT DISTINCT + 50 DIV - col2 FROM tab0 AS cor0
----
-1
-50
0
skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT + 50 / - col2 FROM tab0 AS cor0
----
-1
-50
0
query I rowsort
SELECT cor0.col1 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL col1 * + 91 FROM tab1
----
1183
2366
910
query I rowsort
SELECT + 35 + 69 * + col2 FROM tab0
----
104
2312
5693
query I rowsort
SELECT ALL - + 86 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af
query I rowsort
SELECT ALL 35 AS col1 FROM tab1
----
35
35
35
query I rowsort
SELECT - col2 + col0 * - tab0.col0 FROM tab0
----
-1226
-609
-8003
query I rowsort
SELECT DISTINCT + 6 FROM tab1, tab0, tab1 cor0
----
6
query I rowsort
SELECT 6 * - col0 AS col1 FROM tab0
----
-144
-210
-534
query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
1
33
82
query I rowsort
SELECT ALL + + 40 * + col1 AS col2 FROM tab2 AS cor0
----
1240
2360
680
onlyif mysql # use DIV operator for integer division
query I rowsort label-3793
SELECT ALL 23 DIV col1 AS col1 FROM tab1 cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL 23 / col1 AS col1 FROM tab1 cor0
----
0
1
2
query I rowsort
SELECT DISTINCT + 86 AS col1 FROM tab1
----
86
query I rowsort
SELECT ALL - 61 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to c91d7b51e91f33d302e697913fb438b6
query I rowsort
SELECT col2 + col2 * col1 * col2 FROM tab1
----
119904
32547
75870
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3797
SELECT ALL - - col0 + + 3 - col1 * CAST( 26 AS SIGNED ) FROM tab2 cor0
----
-1453
-360
-796
skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL - - col0 + + 3 - col1 * CAST ( 26 AS INTEGER ) FROM tab2 cor0
----
-1453
-360
-796
query I rowsort
SELECT + 59 AS col2 FROM tab1 AS cor0
----
59
59
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT ( 1 ) AS col1 FROM tab0, tab0 AS cor0
----
1
query I rowsort
SELECT - col2 * - 43 FROM tab2 AS cor0
----
1118
1161
1634
query I rowsort
SELECT DISTINCT col1 * 68 + + col1 + + col0 AS col0 FROM tab0
----
5958
6368
6728
query I rowsort
SELECT DISTINCT tab1.col2 + + ( col1 ) * col1 AS col2 FROM tab1
----
157
265
730
query I rowsort
SELECT DISTINCT - col1 + + 90 FROM tab2
----
31
59
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3805
SELECT DISTINCT col1 * + CAST( + col0 AS SIGNED ) + col1 + + col0 FROM tab0
----
2174
3527
8279
skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT col1 * + CAST ( + col0 AS INTEGER ) + col1 + + col0 FROM tab0
----
2174
3527
8279
query I rowsort
SELECT col2 + - 23 * col2 FROM tab2
----
-572
-594
-836
query I rowsort
SELECT - - col0 * + ( cor0.col0 ) FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + - col1 * ( - col0 * col2 ) - 50 FROM tab2 AS cor0
----
119602
50984
5809
query I rowsort
SELECT + col2 * col1 * tab2.col1 AS col0 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT + col2 * 15 AS col1 FROM tab1 cor0
----
1440
810
855
onlyif mysql # use DIV operator for integer division
query I rowsort label-3811
SELECT DISTINCT - col1 DIV 60 + col2 AS col1 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT - col1 / 60 + col2 AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + - ( - col1 ) * col0 - 66 AS col2 FROM tab2 cor0
----
1277
151
4536
onlyif mysql # use DIV operator for integer division
query I rowsort label-3813
SELECT DISTINCT + - col2 DIV col0 + col2 DIV - 88 AS col2 FROM tab1 AS cor0
----
-18
-2
0
skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT + - col2 / col0 + col2 / - 88 AS col2 FROM tab1 AS cor0
----
-18
-2
0
query I rowsort
SELECT 9 * - col2 FROM tab2 AS cor0
----
-234
-243
-342
query I rowsort
SELECT ALL - ( tab1.col0 ) * col1 AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - ( + col1 + col1 ) * + col2 FROM tab1
----
-1140
-2496
-2808
query I rowsort
SELECT DISTINCT 7 AS col0 FROM tab1, tab2 AS cor0
----
7
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( 58 AS REAL ) * + cor0.col1 FROM tab0 AS cor0
----
-4988
-5278
-5626
query I rowsort
SELECT + col0 + - col0 * col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT + ( + col1 ) + col1 AS col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT - ( cor0.col1 ) * - col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT - col1 * + cor0.col1 + col0 AS col0 FROM tab1 AS cor0
----
-36
-673
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 * col2 col2 FROM tab1 AS cor0
----
-2322
-2451
-4128
query I rowsort
SELECT - ( + col1 ) * - col1 * ( col1 ) AS col1 FROM tab1
----
1000
17576
2197
onlyif mysql # use DIV operator for integer division
query I rowsort label-3825
SELECT + + 31 DIV col1 + col2 * - ( col0 ) + - col1 DIV - ( cor0.col0 ) FROM tab0 AS cor0
----
-33
-7297
-789
skipif mysql # not compatible
query I rowsort label-3825
SELECT + + 31 / col1 + col2 * - ( col0 ) + - col1 / - ( cor0.col0 ) FROM tab0 AS cor0
----
-33
-7297
-789
query I rowsort
SELECT DISTINCT + 51 AS col1 FROM tab0, tab2 AS cor0
----
51
query I rowsort
SELECT DISTINCT - - col1 + - col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + - col0 * + 7 + cor0.col0 FROM tab2 AS cor0
----
-42
-468
-474
query I rowsort
SELECT DISTINCT - 72 * + col1 + + col2 FROM tab2 AS cor0
----
-1186
-2205
-4222
query I rowsort
SELECT DISTINCT + cor1.col1 * - cor0.col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-100
-130
-169
-260
-338
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3831
SELECT - + CAST( 25 AS SIGNED ) + col0 + col0 FROM tab1 AS cor0
----
-19
103
135
skipif mysql # not compatible
query I rowsort label-3831
SELECT - + CAST ( 25 AS INTEGER ) + col0 + col0 FROM tab1 AS cor0
----
-19
103
135
query I rowsort
SELECT cor0.col0 + + col0 * ( cor0.col2 ) FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL - 15 * - col0 AS col1 FROM tab2 AS cor0
----
105
1170
1185
query I rowsort
SELECT ALL - - col2 * col0 * - ( - cor0.col0 ) FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT ALL + col2 - + col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 * + col1 col2 FROM tab0 AS cor0
----
3956
4186
4462
onlyif mysql # use DIV operator for integer division
query I rowsort label-3837
SELECT - col0 * + col2 DIV col2 + - col1 FROM tab1
----
-29
-74
-93
skipif mysql # not compatible
query I rowsort label-3837
SELECT - col0 * + col2 / col2 + - col1 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT - - 88 + + col1 FROM tab0 AS cor0
----
174
179
185
query I rowsort
SELECT 5 AS col2 FROM tab1 AS cor0
----
5
5
5
query I rowsort
SELECT + + col0 * col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - col0 * + 59 - + col2 FROM tab0 AS cor0
----
-1449
-2066
-5333
query I rowsort
SELECT DISTINCT - col0 + - cor0.col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT ALL + cor0.col0 + cor0.col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + col1 + - ( - col0 ) * col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL + col2 * + col2 + - 60 AS col2 FROM tab1 AS cor0
----
2856
3189
9156
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3846
SELECT col0 + CAST( NULL AS DECIMAL ) + col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3846
SELECT col0 + CAST ( NULL AS REAL ) + col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3847
SELECT - col2 * col2 + + col2 DIV cor0.col0 + - col1 FROM tab1 AS cor0
----
-2924
-3259
-9228
skipif mysql # not compatible
query I rowsort label-3847
SELECT - col2 * col2 + + col2 / cor0.col0 + - col1 FROM tab1 AS cor0
----
-2924
-3259
-9228
onlyif mysql # use DIV operator for integer division
query I rowsort label-3848
SELECT col2 DIV 43 - + col0 DIV - col1 AS col2 FROM tab1 AS cor0
----
1
7
8
skipif mysql # not compatible
query I rowsort label-3848
SELECT col2 / 43 - + col0 / - col1 AS col2 FROM tab1 AS cor0
----
1
7
8
query I rowsort
SELECT DISTINCT tab2.col2 + tab0.col0 FROM tab2, tab1, tab2 AS cor0, tab0
----
115
116
127
50
51
61
62
73
query I rowsort
SELECT + col0 - - ( col2 * - cor0.col0 ) FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL col0 + col0 + col1 AS col1 FROM tab1 AS cor0
----
138
173
32
query I rowsort
SELECT - + col1 * col0 - - col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT cor0.col2 + ( + 54 ) FROM tab0 AS cor0
----
136
55
87
query I rowsort
SELECT - col0 * 11 + col0 FROM tab1 AS cor0
----
-30
-640
-800
query I rowsort
SELECT - cor0.col2 * + ( col1 ) + - col2 AS col0 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT DISTINCT + col1 * ( col0 ) AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - cor0.col2 * cor0.col0 + - col1 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT - tab1.col1 + col2 AS col2 FROM tab1
----
28
47
83
query I rowsort
SELECT DISTINCT col0 + + ( + col2 ) FROM tab2
----
104
117
34
query I rowsort
SELECT ALL + 87 + + 81 FROM tab1 cor0
----
168
168
168
query I rowsort
SELECT + 95 * 99 + col2 FROM tab2 AS cor0
----
9431
9432
9443
query I rowsort
SELECT ALL - 87 FROM tab2, tab0 cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23
query I rowsort
SELECT ALL - col0 + col2 * - col1 FROM tab0
----
-132
-2862
-7551
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 cor1, tab0 AS cor2
----
972 values hashing to 63ccb67e72ebac679a0221202c067b9e
onlyif mysql # use DIV operator for integer division
query I rowsort label-3865
SELECT ALL - col1 + - col0 DIV cor0.col2 FROM tab0 AS cor0
----
-132
-86
-92
skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL - col1 + - col0 / cor0.col2 FROM tab0 AS cor0
----
-132
-86
-92
query I rowsort
SELECT - + cor0.col0 * - col2 FROM tab2 cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3867
SELECT DISTINCT cor0.col0 * + CAST( NULL AS SIGNED ) + ( col0 + - ( + col0 ) * col0 ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT cor0.col0 * + CAST ( NULL AS INTEGER ) + ( col0 + - ( + col0 ) * col0 ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT cor0.col0 AS col2 FROM tab2, tab1, tab1 AS cor0, tab0
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT - + col0 + - col0 * 96 AS col1 FROM tab0 AS cor0
----
-2328
-3395
-8633
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3870
SELECT - col2 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3870
SELECT - col2 + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3871
SELECT - cor0.col2 + + 51 DIV 57 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-3871
SELECT - cor0.col2 + + 51 / 57 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - 34 AS col2 FROM tab0
----
-34
-34
-34
query I rowsort
SELECT col2 + 54 AS col0 FROM tab0 cor0
----
136
55
87
query I rowsort
SELECT - col0 + + 13 FROM tab2 AS cor0
----
-65
-66
6
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127
onlyif mysql # use DIV operator for integer division
query I rowsort label-3876
SELECT ALL tab2.col1 DIV + 32 + - col1 FROM tab2
----
-17
-31
-58
skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL tab2.col1 / + 32 + - col1 FROM tab2
----
-17
-31
-58
query I rowsort
SELECT ALL ( 39 ) AS col2 FROM tab1 AS cor0
----
39
39
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3878
SELECT + CAST( NULL AS DECIMAL ) * col2 / - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3878
SELECT + CAST ( NULL AS REAL ) * col2 / - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( col1 ) + - col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( + 63 ) + col2 * ( - col1 ) FROM tab1 cor0
----
-1311
-1467
-633
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3881
SELECT DISTINCT - CAST( - col0 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-3881
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL - col2 - + col0 * col1 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT DISTINCT + - 83 FROM tab0 cor0
----
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3884
SELECT - + 84 * + col2 + cor0.col1 - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3884
SELECT - + 84 * + col2 + cor0.col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * + col1 + col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT - cor0.col1 + col0 * + ( col0 + + col1 ) FROM tab1 AS cor0
----
4726
61
7427
onlyif mysql # use DIV operator for integer division
query I rowsort label-3887
SELECT + 87 DIV col2 + + col1 + 29 FROM tab0
----
117
121
213
skipif mysql # not compatible
query I rowsort label-3887
SELECT + 87 / col2 + + col1 + 29 FROM tab0
----
117
121
213
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3888
SELECT ( tab1.col2 ) * CAST( NULL AS SIGNED ) / col0 - col1 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3888
SELECT ( tab1.col2 ) * CAST ( NULL AS INTEGER ) / col0 - col1 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + 65 + col0 AS col1 FROM tab1 AS cor0
----
129
145
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-3890
SELECT + + col2 - col1 DIV + col1 col0 FROM tab2 AS cor0
----
25
26
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3890
SELECT + + col2 - col1 / + col1 col0 FROM tab2 AS cor0
----
25
26
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( col1 ) col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + + 68 * col1 + col1 * - col1 + - col2 AS col1 FROM tab2 AS cor0
----
1120
505
829
query I rowsort
SELECT - cor0.col2 - col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT + col0 + cor0.col0 * 20 FROM tab0 AS cor0
----
1869
504
735
query I rowsort
SELECT ALL + + col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 col0 FROM tab1
----
53
query I rowsort
SELECT ALL - ( + cor0.col1 + cor0.col1 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 4a21fff066040168fa2a1bf702533e5d
query I rowsort
SELECT ALL col1 * ( 62 * col1 ) FROM tab0 AS cor0
----
458552
513422
583358
query I rowsort
SELECT col2 - + ( 99 ) * col1 FROM tab1 AS cor0
----
-1191
-2520
-933
onlyif mysql # use DIV operator for integer division
query I rowsort label-3900
SELECT - + col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3900
SELECT - + col2 / + col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL col2 + + col1 * col0 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT 58 * + 74 AS col0 FROM tab0 cor0
----
4292
query I rowsort
SELECT DISTINCT - + 27 + col2 AS col1 FROM tab2 AS cor0
----
-1
0
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 col0 FROM tab0 cor0
----
-24
-35
-89
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-3906
SELECT - + col2 DIV + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3906
SELECT - + col2 / + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT col0 * col0 * - col2 AS col2 FROM tab0 cor0
----
-1225
-19008
-649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-3908
SELECT DISTINCT + col2 + - col1 DIV col1 AS col2 FROM tab1 cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-3908
SELECT DISTINCT + col2 + - col1 / col1 AS col2 FROM tab1 cor0
----
53
56
95
query I rowsort
SELECT 18 AS col0 FROM tab0
----
18
18
18
query I rowsort
SELECT ALL + tab2.col2 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL + 65 AS col1 FROM tab0
----
65
65
65
query I rowsort
SELECT DISTINCT + 99 AS col1 FROM tab0
----
99
query I rowsort
SELECT col1 + + tab0.col1 AS col1 FROM tab0
----
172
182
194
query I rowsort
SELECT ALL - col1 * + col2 FROM tab2 WHERE ( NULL ) NOT IN ( - col0 )
----
query I rowsort
SELECT col1 * col2 + + col2 * + col0 * - col0 FROM tab0
----
-1128
-16170
-642060
query I rowsort
SELECT ALL - col0 * col1 + - tab0.col1 AS col1 FROM tab0
----
-2150
-3492
-8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col2 - + col0 col0 FROM tab0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col2 col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT col0 + + col0 + col0 AS col0 FROM tab0
----
105
267
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-3920
SELECT DISTINCT + tab0.col1 * tab0.col0 - + col2 DIV col2 FROM tab0
----
2063
3394
8098
skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT + tab0.col1 * tab0.col0 - + col2 / col2 FROM tab0
----
2063
3394
8098
query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN col0 * col2 * + col1 + - col1 AND ( col1 - - col0 * col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * cor0.col1 col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + 34 * - col2 * 59 AS col2 FROM tab0 AS cor0
----
-164492
-2006
-66198
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3924
SELECT + + col1 + col1 * CAST( 32 AS SIGNED ) FROM tab0 AS cor0
----
2838
3003
3201
skipif mysql # not compatible
query I rowsort label-3924
SELECT + + col1 + col1 * CAST ( 32 AS INTEGER ) FROM tab0 AS cor0
----
2838
3003
3201
query I rowsort
SELECT + col1 * + tab0.col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT ALL col1 * col0 + col0 * + col2 AS col0 FROM tab2
----
406
4345
6630
query I rowsort
SELECT DISTINCT - col2 - + col1 AS col1 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT ALL + tab1.col2 * col0 + - tab1.col0 AS col1 FROM tab1 WHERE NOT ( NULL ) IN ( col0 )
----
query I rowsort
SELECT col2 * col2 + col0 AS col1 FROM tab1
----
2919
3313
9296
query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 > ( col2 )
----
35
97
1
89
91
82
query I rowsort
SELECT DISTINCT + cor0.col2 * - col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL col1 * + col1 + col2 + + col2 AS col2 FROM tab2 AS cor0
----
1015
3533
365
query I rowsort
SELECT ALL + col0 + cor0.col1 + cor0.col0 FROM tab1 AS cor0
----
138
173
32
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * + col0 / cor0.col2 IN ( - col0 / - col1 - col1 * + cor0.col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 * col0 + - col2 * + cor0.col0 col2 FROM tab2 AS cor0
----
117624
48032
5670
query I rowsort
SELECT - col1 + col2 * + col2 + col0 FROM tab1 AS cor0
----
2893
3303
9283
query I rowsort
SELECT col1 - col1 * col0 AS col0 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT + col0 + - col1 * col0 + + col0 * + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-115340
-5313
-57252
query I rowsort
SELECT + col0 * col2 - + col0 AS col1 FROM tab1 cor0
----
159
3584
7600
query I rowsort
SELECT DISTINCT - col0 - tab2.col2 * col0 AS col2 FROM tab2
----
-196
-2106
-3081
query I rowsort
SELECT ALL + col1 * + tab2.col2 AS col1 FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-3942
SELECT ALL col0 + - col0 + col1 DIV + col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3942
SELECT ALL col0 + - col0 + col1 / + col2 FROM tab1
----
0
0
0
query I rowsort
SELECT + col0 * - tab1.col0 AS col2 FROM tab1
----
-4096
-6400
-9
query III rowsort
SELECT * FROM tab1 WHERE col0 * + col1 * + col1 + col0 + col2 NOT BETWEEN col0 AND NULL
----
query I rowsort
SELECT ALL - col2 * col0 * col2 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT col0 * + col1 * tab2.col0 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT DISTINCT tab1.col1 * col2 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NOT ( col2 * col2 + - col0 * col2 ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL - col0 * - col0 AS col1 FROM tab1 WHERE NULL < ( col0 * - col1 + col0 + col1 )
----
query I rowsort
SELECT DISTINCT tab0.col1 * - tab0.col0 AS col0 FROM tab0
----
-2064
-3395
-8099
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) >= ( NULL )
----
query III rowsort
SELECT * FROM tab0 WHERE ( + col0 * col1 + + col2 * - tab0.col2 ) <= NULL
----
query I rowsort
SELECT - col2 * + col0 + tab2.col0 * tab2.col2 FROM tab2 WHERE NULL IN ( - col0 * + tab2.col2 / - tab2.col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3954
SELECT + col2 DIV - col1 + col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3954
SELECT + col2 / - col1 + col0 FROM tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3955
SELECT DISTINCT col1 DIV cor0.col1 + - col0 AS col2 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT col1 / cor0.col1 + - col0 AS col2 FROM tab1 AS cor0
----
-2
-63
-79
query I rowsort
SELECT + col0 + col2 + col0 AS col2 FROM tab1 AS cor0
----
185
256
60
query I rowsort
SELECT col0 / col1 + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
query I rowsort
SELECT - col2 * - col1 + - col1 + col0 FROM tab0
----
2776
35
7460
query I rowsort
SELECT DISTINCT - tab1.col1 * + col2 - + col1 * col0 AS col2 FROM tab1
----
-1210
-1482
-2288
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN ( col2 ) AND NULL
----
query I rowsort
SELECT + tab2.col2 * col0 * + col0 FROM tab2
----
1323
158184
237158
query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <= ( - col1 * col0 )
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3963
SELECT - CAST( 13 AS SIGNED ) FROM tab1 AS cor0
----
-13
-13
-13
skipif mysql # not compatible
query I rowsort label-3963
SELECT - CAST ( 13 AS INTEGER ) FROM tab1 AS cor0
----
-13
-13
-13
query I rowsort
SELECT + col2 + ( col0 ) FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT 29 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT - 58 * + col2 AS col2 FROM tab2
----
-1508
-1566
-2204
query I rowsort
SELECT - - col0 * - col0 + + col1 AS col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT - - col2 * - col2 + - col0 - col0 FROM tab0 AS cor0
----
-1137
-6902
-71
onlyif mysql # use DIV operator for integer division
query I rowsort label-3969
SELECT 7 DIV - col1 + col1 col2 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3969
SELECT 7 / - col1 + col1 col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + col2 * + col1 + col0 * 5 AS col1 FROM tab0 cor0
----
272
2958
7907
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 + 16 col2 FROM tab1 AS cor0
----
-44
query I rowsort
SELECT ALL 70 FROM tab1 AS cor0
----
70
70
70
query I rowsort
SELECT ALL - - col1 * col2 * - col2 AS col1 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT 52 FROM tab1, tab0 cor0, tab2 AS cor1
----
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-3975
SELECT ALL + col1 + + cor0.col2 + col1 DIV col0 FROM tab1 AS cor0
----
109
67
88
skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL + col1 + + cor0.col2 + col1 / col0 FROM tab1 AS cor0
----
109
67
88
query I rowsort
SELECT - 25 * col1 FROM tab1 AS cor0
----
-250
-325
-650
query I rowsort
SELECT - col0 - - cor0.col1 * - cor0.col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT - col0 * + ( 97 ) + col1 * col0 * + col1 AS col2 FROM tab1 AS cor0
----
1737
192
5760
query I rowsort
SELECT ALL - col1 - + col1 * 12 AS col0 FROM tab2 AS cor0
----
-221
-403
-767
query I rowsort
SELECT - + col0 + 56 FROM tab0 AS cor0
----
-33
21
32
query I rowsort
SELECT DISTINCT cor0.col2 * col2 + - 85 + col0 AS col1 FROM tab0 cor0
----
-49
1028
6728
query I rowsort
SELECT ALL - - col0 * 7 * col0 + cor0.col1 * 47 - - 3 AS col0 FROM tab0 AS cor0
----
13137
59727
8077
query I rowsort
SELECT ALL col1 + - 71 AS col0 FROM tab2 AS cor0
----
-12
-40
-54
onlyif mysql # use DIV operator for integer division
query I rowsort label-3984
SELECT - cor0.col1 DIV - cor0.col1 + - col1 FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-3984
SELECT - cor0.col1 / - cor0.col1 + - col1 FROM tab0 AS cor0
----
-85
-90
-96
query I rowsort
SELECT DISTINCT - col0 + - 68 * col2 * + col0 FROM tab0 cor0
----
-2415
-496353
-53880
query I rowsort
SELECT + - cor0.col2 * cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + col2 * ( - 98 ) AS col0 FROM tab1 AS cor0
----
-5292
-5586
-9408
query I rowsort
SELECT - cor0.col1 * + 44 FROM tab1 AS cor0
----
-1144
-440
-572
query I rowsort
SELECT + - col0 * - col0 - + cor0.col2 * col1 * col0 AS col1 FROM tab2 AS cor0
----
-113568
-44793
-5810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 - + col0 col1 FROM tab2
----
-54
-55
17
query I rowsort
SELECT 81 FROM tab1, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT - cor0.col1 * + col0 + - cor0.col1 + - col0 FROM tab1 AS cor0
----
-107
-1133
-714
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 18 * 57 + col0 col2 FROM tab1 AS cor0
----
-1023
-946
-962
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col0 FROM tab0, tab2 AS cor0
----
26
27
38
query I rowsort
SELECT 18 + col1 + col0 AS col0 FROM tab1 AS cor0
----
111
47
92
query I rowsort
SELECT + col2 + + 75 AS col0 FROM tab1 AS cor0
----
129
132
171
query I rowsort
SELECT col2 * - col1 - - col0 * col0 AS col0 FROM tab0 cor0
----
-2262
1128
459
query I rowsort
SELECT 61 + + cor0.col0 FROM tab2 AS cor0
----
139
140
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-3999
SELECT ALL - col1 DIV + col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL - col1 / + col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + - ( cor0.col1 ) + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - + col1 + + cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT ALL 1 * + col0 * tab1.col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT + col2 + - col1 * + cor0.col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT DISTINCT + - cor0.col1 + + col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - + col1 * - col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 + - col2 col1 FROM tab2 AS cor0
----
33
44
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-4007
SELECT ( 13 ) DIV - col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4007
SELECT ( 13 ) / - col1 FROM tab2
----
0
0
0
query I rowsort
SELECT - 52 * 40 * col1 FROM tab0
----
-178880
-189280
-201760
query I rowsort
SELECT DISTINCT 8 * ( + col0 ) * + tab2.col2 AS col2 FROM tab2
----
1512
16224
24016
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( ( + col2 ) AS REAL ) * - col1 * col2 AS col2 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT DISTINCT - col2 * col1 + ( col1 ) * col1 * + col2 AS col0 FROM tab1 AS cor0
----
14976
35100
5130
onlyif mysql # use DIV operator for integer division
query I rowsort label-4012
SELECT + - cor0.col1 DIV - 47 AS col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4012
SELECT + - cor0.col1 / - 47 AS col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + 64 + col2 AS col2 FROM tab0
----
146
65
97
query I rowsort
SELECT ALL - 6 AS col0 FROM tab1
----
-6
-6
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-4015
SELECT ALL - ( 54 ) DIV - tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 0d54697144aaafd28cd6e0eddda50d87
skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL - ( 54 ) / - tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 0d54697144aaafd28cd6e0eddda50d87
query I rowsort
SELECT + col1 * 59 FROM tab1 AS cor0
----
1534
590
767
onlyif mysql # use DIV operator for integer division
query I rowsort label-4017
SELECT + col0 * 31 DIV 37 FROM tab2 AS cor0
----
5
65
66
skipif mysql # not compatible
query I rowsort label-4017
SELECT + col0 * 31 / 37 FROM tab2 AS cor0
----
5
65
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-4018
SELECT - col0 DIV col0 + + col0 AS col1 FROM tab1
----
2
63
79
skipif mysql # not compatible
query I rowsort label-4018
SELECT - col0 / col0 + + col0 AS col1 FROM tab1
----
2
63
79
query I rowsort
SELECT - col0 * col2 * - col2 - col2 AS col2 FROM tab1
----
207879
737184
8694
onlyif mysql # use DIV operator for integer division
query I rowsort label-4020
SELECT col2 + col2 DIV col2 AS col0 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-4020
SELECT col2 + col2 / col2 AS col0 FROM tab0
----
2
34
83
query I rowsort
SELECT DISTINCT col0 + + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL col1 * col2 * + col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT cor0.col2 + cor0.col0 FROM tab0 cor0 WHERE + col2 * col1 = ( NULL ) OR NULL IN ( + col0 )
----
query I rowsort
SELECT DISTINCT col2 * col2 * - col1 + + col1 AS col0 FROM tab1 AS cor0
----
-119795
-32480
-75790
query I rowsort
SELECT ALL - + col2 + + col2 AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4026
SELECT DISTINCT + - col2 DIV col2 AS col0 FROM tab0 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT + - col2 / col2 AS col0 FROM tab0 cor0
----
-1
query I rowsort
SELECT tab1.col2 * - col1 + col1 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT col1 * + col2 + tab0.col1 AS col2 FROM tab0
----
194
2924
7553
query I rowsort
SELECT DISTINCT - col0 - - tab0.col1 FROM tab0
----
2
62
query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col0 + col2 + col1 FROM tab0 cor0
----
-1945
-3297
-7926
query I rowsort
SELECT ALL - col1 - - col1 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + col0 + + col0 + - col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 * + col1 col0 FROM tab1 cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col0 col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL col1 + - tab1.col0 AS col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT 43 + + cor0.col2 AS col2 FROM tab2 cor0
----
69
70
81
query I rowsort
SELECT - cor0.col1 * + cor0.col0 + + col0 * - col2 * + col1 FROM tab0 AS cor0
----
-672217
-6790
-70176
query I rowsort
SELECT - col1 + - cor0.col0 FROM tab2 AS cor0
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT DISTINCT + col0 + col1 AS col1 FROM tab2 cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 * + col0 col2 FROM tab1
----
4096
6400
9
query I rowsort
SELECT ALL ( + col2 ) AS col2 FROM tab2
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT ALL 46 * col1 + - col2 FROM tab0
----
3923
4104
4461
query I rowsort
SELECT + 78 + - col0 AS col0 FROM tab1
----
-2
14
75
query I rowsort
SELECT ALL + 32 AS col0 FROM tab2 AS cor0
----
32
32
32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4047
SELECT - + col0 + - col0 * CAST( col0 AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-4047
SELECT - + col0 + - col0 * CAST ( col0 AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT + + col0 * - col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - col2 * - col2 + - ( 1 ) AS col0 FROM tab2 AS cor0
----
1443
675
728
query I rowsort
SELECT ALL + col1 - + col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT ( col0 ) * - 41 * col0 AS col2 FROM tab0 AS cor0
----
-23616
-324761
-50225
query I rowsort
SELECT DISTINCT + 12 * + col1 FROM tab2 AS cor0
----
204
372
708
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4053
SELECT ALL col1 + + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL col1 + + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col0 * col0 AS col0 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL + + col1 - col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT col1 * - cor0.col1 + 15 * col2 * col1 AS col0 FROM tab0 AS cor0
----
-7954
103649
35174
query I rowsort
SELECT + - cor0.col1 * - 44 + cor0.col1 * + cor0.col2 FROM tab2 AS cor0
----
1394
2201
4130
onlyif mysql # use DIV operator for integer division
query I rowsort label-4058
SELECT DISTINCT + col2 DIV - col1 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-4058
SELECT DISTINCT + col2 / - col1 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL + col1 * + 0 + - ( - col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + col0 + + 40 AS col0 FROM tab0 AS cor0
----
129
64
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * + col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - 15 + col2 AS col2 FROM tab1
----
39
42
81
query I rowsort
SELECT ALL col2 + 1 * cor0.col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL ( + col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + - 49 AS col1 FROM tab1 cor0
----
-49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + col0 col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + col0 * col0 + tab1.col0 + - ( + col2 ) AS col2 FROM tab1
----
-42
4103
6384
onlyif mysql # use DIV operator for integer division
query I rowsort label-4068
SELECT - col1 + + col1 + - col2 DIV ( col1 ) AS col0 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-4068
SELECT - col1 + + col1 + - col2 / ( col1 ) AS col0 FROM tab2
----
-2
0
0
query I rowsort
SELECT - 64 * col0 FROM tab1 AS cor0
----
-192
-4096
-5120
query I rowsort
SELECT ALL - 64 * ( col2 ) * - col0 + col1 * col0 AS col1 FROM tab1 AS cor0
----
10446
234112
492560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 * + col1 + + col2 col1 FROM tab1 cor0
----
157
226
314
query I rowsort
SELECT - + ( col0 ) + col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + - 98 FROM tab0 AS cor0
----
-98
-98
-98
query I rowsort
SELECT ALL + 88 + + col1 FROM tab0 cor0
----
174
179
185
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 * - col1 col1 FROM tab0 AS cor0
----
-7482
-7917
-8439
query I rowsort
SELECT + cor0.col1 * col0 + col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4077
SELECT ALL 80 DIV - col0 AS col2 FROM tab1 cor0
----
-1
-1
-26
skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL 80 / - col0 AS col2 FROM tab1 cor0
----
-1
-1
-26
query I rowsort
SELECT - 46 * col2 - col1 FROM tab1 AS cor0
----
-2510
-2632
-4429
onlyif mysql # use DIV operator for integer division
query I rowsort label-4079
SELECT col1 * ( + col2 ) + col1 * - col2 + col0 DIV 73 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4079
SELECT col1 * ( + col2 ) + col1 * - col2 + col0 / 73 FROM tab0
----
0
0
1
query I rowsort
SELECT ALL col0 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-4081
SELECT DISTINCT - - 74 DIV col1 col2 FROM tab2 AS cor0
----
1
2
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT - - 74 / col1 col2 FROM tab2 AS cor0
----
1
2
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col1 col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - 18 AS col1 FROM tab1 cor0
----
-18
-18
-18
query I rowsort
SELECT DISTINCT + col2 + col1 * col0 * - col2 FROM tab2 AS cor0
----
-119626
-50996
-5832
query I rowsort
SELECT ALL - col0 - - 69 FROM tab2
----
-10
-9
62
query I rowsort
SELECT col0 * 40 AS col1 FROM tab0
----
1400
3560
960
query I rowsort
SELECT ALL + 96 - col2 * col2 * - 66 AS col1 FROM tab0
----
162
443880
71970
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 26 * col1 col0 FROM tab1 AS cor0
----
-260
-338
-676
query I rowsort
SELECT ALL + cor0.col0 + col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT - - cor0.col0 * + col0 + 51 + 10 FROM tab0 AS cor0
----
1286
637
7982
query I rowsort
SELECT 53 + col2 FROM tab1
----
107
110
149
query I rowsort
SELECT DISTINCT - 71 + col1 * + col2 + col2 AS col1 FROM tab1
----
1273
1387
556
query I rowsort
SELECT 31 AS col0 FROM tab2
----
31
31
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-4095
SELECT tab1.col2 DIV - col1 AS col0 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-4095
SELECT tab1.col2 / - col1 AS col0 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT DISTINCT + col0 + + col0 AS col0 FROM tab2
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-4097
SELECT - col0 * 14 * + col2 + + col1 * 69 + col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-106622
-473
-50381
skipif mysql # not compatible
query I rowsort label-4097
SELECT - col0 * 14 * + col2 + + col1 * 69 + col1 / col1 AS col2 FROM tab1 AS cor0
----
-106622
-473
-50381
query I rowsort
SELECT DISTINCT + 2 * col0 + 69 + - col0 FROM tab1
----
133
149
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-4099
SELECT cor0.col1 * + 64 + + cor0.col1 DIV col1 + + col2 FROM tab0 AS cor0
----
5538
5907
6210
skipif mysql # not compatible
query I rowsort label-4099
SELECT cor0.col1 * + 64 + + cor0.col1 / col1 + + col2 FROM tab0 AS cor0
----
5538
5907
6210
query I rowsort
SELECT + 7 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 + col0 col1 FROM tab2
----
117
118
46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col0 col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT tab0.col2 * 22 AS col2 FROM tab0, tab2 AS cor0
----
1804
22
726
query I rowsort
SELECT col0 + - 7 * col1 AS col1 FROM tab2
----
-210
-335
-40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4105
SELECT CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4105
SELECT CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 27 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a
query I rowsort
SELECT - tab1.col2 * - col0 + col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT ALL col2 * - ( + col0 + + col1 * 20 ) AS col0 FROM tab2
----
-15922
-16929
-32708
onlyif mysql # use DIV operator for integer division
query I rowsort label-4109
SELECT - col0 + 36 DIV col0 AS col0 FROM tab1
----
-64
-80
9
skipif mysql # not compatible
query I rowsort label-4109
SELECT - col0 + 36 / col0 AS col0 FROM tab1
----
-64
-80
9
query I rowsort
SELECT col1 * col0 + 40 * col1 * ( col0 + col0 ) AS col2 FROM tab0
----
167184
274995
656019
query I rowsort
SELECT - cor0.col1 FROM tab1, tab0 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8
query I rowsort
SELECT ALL ( - col0 + + col2 ) FROM tab0
----
-34
-7
9
query I rowsort
SELECT ALL - col1 + + col0 * - col0 * + col0 FROM tab0 cor0
----
-13910
-42972
-705060
onlyif mysql # use DIV operator for integer division
query I rowsort label-4114
SELECT DISTINCT - - ( col0 ) DIV - col1 AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT - - ( col0 ) / - col1 AS col1 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4115
SELECT ALL + - 29 * col1 DIV col0 AS col2 FROM tab0 AS cor0
----
-103
-29
-80
skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL + - 29 * col1 / col0 AS col2 FROM tab0 AS cor0
----
-103
-29
-80
query I rowsort
SELECT DISTINCT + + col1 * 37 FROM tab0 AS cor0
----
3182
3367
3589
query I rowsort
SELECT DISTINCT - col0 + + col0 AS col0 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 col1 FROM tab1 AS cor0
----
-55
-55
-55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4119
SELECT + CAST( + col0 AS SIGNED ) + cor0.col0 AS col1 FROM tab0 AS cor0
----
178
48
70
skipif mysql # not compatible
query I rowsort label-4119
SELECT + CAST ( + col0 AS INTEGER ) + cor0.col0 AS col1 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-4120
SELECT ALL - col0 + - 0 DIV col1 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL - col0 + - 0 / col1 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + + 6 * col0 AS col2 FROM tab2 AS cor0
----
42
468
474
query I rowsort
SELECT ALL - col2 - - col2 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + 21 * - col0 FROM tab1 AS cor0
----
-1344
-1680
-63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 76 ) col2 FROM tab0, tab0 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT col0 + + ( - 32 * - col0 + col0 ) AS col1 FROM tab0
----
1190
3026
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-4126
SELECT DISTINCT + cor0.col2 DIV 22 FROM tab0, tab1 AS cor0
----
2
4
skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT + cor0.col2 / 22 FROM tab0, tab1 AS cor0
----
2
4
query I rowsort
SELECT - ( 93 ) * cor0.col2 - ( + col2 ) AS col0 FROM tab1 AS cor0
----
-5076
-5358
-9024
onlyif mysql # use DIV operator for integer division
query I rowsort label-4128
SELECT ALL col0 DIV - ( cor0.col2 + 16 * + col1 ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL col0 / - ( cor0.col2 + 16 * + col1 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT 63 - col0 * - col1 AS col2 FROM tab2 AS cor0
----
1406
280
4665
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4130
SELECT + CAST( + 55 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
-2970
-3135
-5280
skipif mysql # not compatible
query I rowsort label-4130
SELECT + CAST ( + 55 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
-2970
-3135
-5280
query I rowsort
SELECT - ( - 41 ) * + col0 AS col1 FROM tab1 cor0
----
123
2624
3280
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4132
SELECT + - CAST( 94 AS SIGNED ) + col2 AS col1 FROM tab2 AS cor0
----
-56
-67
-68
skipif mysql # not compatible
query I rowsort label-4132
SELECT + - CAST ( 94 AS INTEGER ) + col2 AS col1 FROM tab2 AS cor0
----
-56
-67
-68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4133
SELECT DISTINCT + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - - 28 FROM tab0 AS cor0
----
28
28
28
query I rowsort
SELECT ALL ( - cor0.col1 ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - - col2 * col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - cor0.col0 * col2 * - cor0.col2 + + 22 FROM tab1 AS cor0
----
207958
737302
8770
onlyif mysql # use DIV operator for integer division
query I rowsort label-4138
SELECT - col2 DIV col1 AS col2 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-4138
SELECT - col2 / col1 AS col2 FROM tab2 AS cor0
----
-2
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 col1 FROM tab1
----
63
63
63
query I rowsort
SELECT DISTINCT + 66 FROM tab2, tab1 AS cor0
----
66
query I rowsort
SELECT ALL + 71 * - col2 FROM tab1
----
-3834
-4047
-6816
query I rowsort
SELECT + 39 FROM tab2 AS cor0
----
39
39
39
query I rowsort
SELECT 91 + cor0.col2 FROM tab1 cor0
----
145
148
187
query I rowsort
SELECT + col1 * + 90 * cor0.col2 FROM tab1 AS cor0
----
112320
126360
51300
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4145
SELECT DISTINCT - - col1 + CAST( 54 AS SIGNED ) + + col0 AS col1 FROM tab0 cor0
----
164
186
234
skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT - - col1 + CAST ( 54 AS INTEGER ) + + col0 AS col1 FROM tab0 cor0
----
164
186
234
query I rowsort
SELECT - col0 * - col1 + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT - col0 + ( - 77 ) + col2 * col0 AS col0 FROM tab1 AS cor0
----
3507
7523
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4148
SELECT DISTINCT + col2 * - 34 + + ( col2 + 2 ) DIV - col2 AS col1 FROM tab0 cor0
----
-1123
-2789
-37
skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT + col2 * - 34 + + ( col2 + 2 ) / - col2 AS col1 FROM tab0 cor0
----
-1123
-2789
-37
query I rowsort
SELECT - + col1 * 22 FROM tab1 cor0
----
-220
-286
-572
onlyif mysql # use DIV operator for integer division
query I rowsort label-4150
SELECT ALL col0 DIV 83 + 44 + - col2 * ( 22 ) col1 FROM tab1 AS cor0
----
-1144
-1210
-2068
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4150
SELECT ALL col0 / 83 + 44 + - col2 * ( 22 ) col1 FROM tab1 AS cor0
----
-1144
-1210
-2068
query I rowsort
SELECT cor0.col2 + col0 * - cor0.col2 + cor0.col0 FROM tab1 AS cor0
----
-105
-3527
-7504
query I rowsort
SELECT ALL col0 + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT - + col0 + + cor0.col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT col1 * col0 + col2 * col2 FROM tab2
----
2787
5278
946
query I rowsort
SELECT - col1 * col1 - ( + col2 ) AS col0 FROM tab1
----
-157
-265
-730
query I rowsort
SELECT col2 * col1 + tab1.col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT tab1.col2 + + ( 64 ) AS col0 FROM tab1
----
118
121
160
query I rowsort
SELECT - col0 * + col1 * ( col2 * col0 ) AS col0 FROM tab1 AS cor0
----
-12636
-2334720
-7987200
query I rowsort
SELECT + 19 AS col1 FROM tab0
----
19
19
19
query I rowsort
SELECT - 76 + col1 AS col1 FROM tab0 AS cor0
----
10
15
21
query I rowsort
SELECT DISTINCT + 79 + + col0 * col0 * col1 FROM tab2
----
106176
1598
359035
query I rowsort
SELECT + 42 + col2 + + col0 FROM tab0
----
213
78
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-4163
SELECT - cor0.col1 * col1 + - col1 DIV - col2 FROM tab0 AS cor0
----
-7394
-8280
-9312
skipif mysql # not compatible
query I rowsort label-4163
SELECT - cor0.col1 * col1 + - col1 / - col2 FROM tab0 AS cor0
----
-7394
-8280
-9312
query I rowsort
SELECT - ( + col1 ) * + col1 + + col0 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT DISTINCT - tab0.col1 + col0 AS col1 FROM tab0
----
-2
-62
query I rowsort
SELECT 25 + + col2 FROM tab1
----
121
79
82
query I rowsort
SELECT DISTINCT - 65 AS col0 FROM tab0 AS cor0
----
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-4168
SELECT - ( + ( - col2 ) ) + + 13 * ( - col2 ) DIV 85 + - col0 AS col2 FROM tab2 cor0
----
-46
-55
16
skipif mysql # not compatible
query I rowsort label-4168
SELECT - ( + ( - col2 ) ) + + 13 * ( - col2 ) / 85 + - col0 AS col2 FROM tab2 cor0
----
-46
-55
16
query I rowsort
SELECT - ( 12 ) * col2 FROM tab1 AS cor0
----
-1152
-648
-684
query I rowsort
SELECT - - col2 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 * + ( - col1 ) + ( - col0 ) * col0 FROM tab2 cor0
----
-6887
-7618
-886
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4172
SELECT ALL ( - cor0.col2 ) * + col0 - CAST( NULL AS SIGNED ) * - 49 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL ( - cor0.col2 ) * + col0 - CAST ( NULL AS INTEGER ) * - 49 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 + 41 * col0 AS col0 FROM tab0 AS cor0
----
1017
1436
3731
onlyif mysql # use DIV operator for integer division
query I rowsort label-4174
SELECT DISTINCT ( 27 ) DIV + col0 FROM tab1 AS cor0
----
0
9
skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT ( 27 ) / + col0 FROM tab1 AS cor0
----
0
9
query I rowsort
SELECT + cor0.col2 + - 68 + col1 * col2 AS col1 FROM tab2 AS cor0
----
1492
616
796
onlyif mysql # use DIV operator for integer division
query I rowsort label-4176
SELECT 16 * - col1 + cor0.col1 - + 43 DIV - cor0.col0 FROM tab2 AS cor0
----
-255
-459
-885
skipif mysql # not compatible
query I rowsort label-4176
SELECT 16 * - col1 + cor0.col1 - + 43 / - cor0.col0 FROM tab2 AS cor0
----
-255
-459
-885
query I rowsort
SELECT ALL + ( + 74 ) + cor0.col2 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 08005cc0fec9329d6959e1c8dc367585
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 + 69 col1 FROM tab1
----
96
96
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 59 * tab0.col2 + - ( col2 ) * - tab0.col0 col1 FROM tab0
----
-1188
-25
2378
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) + col0 * col1 * col2 col2 FROM tab1
----
36537
4266
99936
query I rowsort
SELECT ALL + col0 * - col2 FROM tab2 cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-4182
SELECT DISTINCT - 28 DIV - col0 + col1 AS col2 FROM tab2 AS cor0
----
17
35
59
skipif mysql # not compatible
query I rowsort label-4182
SELECT DISTINCT - 28 / - col0 + col1 AS col2 FROM tab2 AS cor0
----
17
35
59
query I rowsort
SELECT DISTINCT col1 + + 22 * col0 * col1 AS col1 FROM tab1 AS cor0
----
14090
1742
22893
query I rowsort
SELECT + col1 * - 99 + - col1 AS col0 FROM tab2 AS cor0
----
-1700
-3100
-5900
query I rowsort
SELECT ALL ( 91 ) FROM tab1 AS cor0
----
91
91
91
query I rowsort
SELECT ALL - - col1 - 22 AS col0 FROM tab2 AS cor0
----
-5
37
9
query I rowsort
SELECT DISTINCT + cor0.col2 + col0 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4188
SELECT + CAST( + ( col0 ) AS SIGNED ) - - 80 FROM tab2 AS cor0
----
158
159
87
skipif mysql # not compatible
query I rowsort label-4188
SELECT + CAST ( + ( col0 ) AS INTEGER ) - - 80 FROM tab2 AS cor0
----
158
159
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 + + col0 * col2 + ( col2 ) col1 FROM tab1 AS cor0
----
290
3779
7850
onlyif mysql # use DIV operator for integer division
query I rowsort label-4190
SELECT ALL col1 DIV col1 AS col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL col1 / col1 AS col1 FROM tab2 AS cor0
----
1
1
1
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 ALL - + 74 + col2 * col1 * col1 col2 FROM tab0 AS cor0
----
243994
678968
9335
query I rowsort
SELECT + ( - col0 ) * - ( col1 ) FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col0 * col2 * col2 AS col2 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT + 11 * col0 + + col1 FROM tab1
----
59
714
893
query I rowsort
SELECT DISTINCT - col1 * 18 AS col1 FROM tab1 AS cor0
----
-180
-234
-468
onlyif mysql # use DIV operator for integer division
query I rowsort label-4197
SELECT ALL + col0 + col0 DIV - 26 AS col2 FROM tab2 cor0
----
7
75
76
skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL + col0 + col0 / - 26 AS col2 FROM tab2 cor0
----
7
75
76
query I rowsort
SELECT ALL - col1 * col0 * cor0.col2 FROM tab2 cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT col0 * 43 * col0 FROM tab1 AS cor0
----
176128
275200
387
onlyif mysql # use DIV operator for integer division
query I rowsort label-4200
SELECT ALL col0 * ( - 24 ) + col1 + col1 DIV - 84 FROM tab1 AS cor0
----
-1526
-1907
-46
skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL col0 * ( - 24 ) + col1 + col1 / - 84 FROM tab1 AS cor0
----
-1526
-1907
-46
query I rowsort
SELECT ALL + col2 * 0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 + - col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4204
SELECT + + col2 DIV - col2 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-4204
SELECT + + col2 / - col2 col0 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4205
SELECT ALL + col1 DIV - cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL + col1 / - cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT - 51 FROM tab2, tab2 cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
onlyif mysql # use DIV operator for integer division
query I rowsort label-4207
SELECT col0 * col1 DIV - 27 FROM tab2 AS cor0
----
-170
-49
-8
skipif mysql # not compatible
query I rowsort label-4207
SELECT col0 * col1 / - 27 FROM tab2 AS cor0
----
-170
-49
-8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4208
SELECT DISTINCT CAST( - 99 AS SIGNED ) col2 FROM tab2, tab1 AS cor0, tab0 cor1
----
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4208
SELECT DISTINCT CAST ( - 99 AS INTEGER ) col2 FROM tab2, tab1 AS cor0, tab0 cor1
----
-99
query I rowsort
SELECT + + 15 AS col0 FROM tab2 AS cor0
----
15
15
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-4210
SELECT DISTINCT col0 + col2 DIV col1 AS col1 FROM tab1
----
5
69
87
skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT col0 + col2 / col1 AS col1 FROM tab1
----
5
69
87
query I rowsort
SELECT + + col1 + + col2 + 27 FROM tab2 AS cor0
----
112
82
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-4212
SELECT + + col1 DIV col0 AS col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-4212
SELECT + + col1 / col0 AS col0 FROM tab1 AS cor0
----
0
0
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4213
SELECT - col2 * CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-4213
SELECT - col2 * CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - - col0 * col1 + + col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT - + col1 * - ( 19 * + col2 ) AS col0 FROM tab1 cor0
----
10830
23712
26676
query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab2, tab0 cor0
----
86
91
97
query I rowsort
SELECT + 66 * - tab2.col1 AS col2 FROM tab2
----
-1122
-2046
-3894
query I rowsort
SELECT 56 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT ALL + - cor0.col1 * - col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT 51 * - col0 + + col1 FROM tab1 AS cor0
----
-127
-3254
-4067
query I rowsort
SELECT ALL col2 * col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-4222
SELECT ALL + col1 DIV col0 + tab1.col1 * ( 19 * + col2 ) FROM tab1
----
10830
23712
26684
skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL + col1 / col0 + tab1.col1 * ( 19 * + col2 ) FROM tab1
----
10830
23712
26684
query I rowsort
SELECT + tab0.col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT + 4 - + col2 FROM tab0
----
-29
-78
3
query I rowsort
SELECT + cor0.col1 * - col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL col0 * col0 + col1 AS col1 FROM tab1 cor0
----
35
4106
6413
query I rowsort
SELECT + + 82 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
3
4
75
query I rowsort
SELECT ALL 25 - - cor1.col2 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7a92245935dd6a9f007d947403efe5c5
onlyif mysql # use DIV operator for integer division
query I rowsort label-4229
SELECT + col1 + 81 DIV col1 AS col0 FROM tab1 AS cor0
----
18
19
29
skipif mysql # not compatible
query I rowsort label-4229
SELECT + col1 + 81 / col1 AS col0 FROM tab1 AS cor0
----
18
19
29
query I rowsort
SELECT - col0 + 13 + 21 FROM tab0
----
-1
-55
10
query I rowsort
SELECT - col0 * 55 + cor0.col2 + col0 AS col0 FROM tab2 AS cor0
----
-351
-4186
-4228
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4232
SELECT CAST( NULL AS SIGNED ) + 26 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4232
SELECT CAST ( NULL AS INTEGER ) + 26 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * - col2 * col0 + 57 FROM tab1 AS cor0
----
-233415
-429
-614343
query I rowsort
SELECT col1 + + 6 * col0 FROM tab1 cor0
----
394
44
493
query I rowsort
SELECT 36 * 55 + + col1 AS col2 FROM tab1 AS cor0
----
1990
1993
2006
query I rowsort
SELECT + + 65 FROM tab0 AS cor0
----
65
65
65
query I rowsort
SELECT ALL + - col1 * - 30 AS col2 FROM tab0 AS cor0
----
2580
2730
2910
query I rowsort
SELECT - 11 AS col2 FROM tab1 AS cor0
----
-11
-11
-11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) + - col1 * col0 * - 61 col1 FROM tab1 AS cor0
----
38983
4704
63344
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4240
SELECT DISTINCT - - CAST( col1 AS SIGNED ) * col2 + + col1 * - col2 * - col2 FROM tab1 AS cor0
----
121056
33060
77220
skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) * col2 + + col1 * - col2 * - col2 FROM tab1 AS cor0
----
121056
33060
77220
query I rowsort
SELECT - ( + ( col1 ) ) + col0 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT - - 25 AS col2 FROM tab2 AS cor0
----
25
25
25
query I rowsort
SELECT DISTINCT - + 56 FROM tab1 AS cor0
----
-56
query I rowsort
SELECT tab1.col0 * 3 AS col0 FROM tab1
----
192
240
9
query I rowsort
SELECT DISTINCT - 81 * col1 + + col2 AS col2 FROM tab2
----
-1339
-2484
-4753
query I rowsort
SELECT DISTINCT - 4 + col1 AS col2 FROM tab1
----
22
6
9
query I rowsort
SELECT DISTINCT + 13 FROM tab1 cor0
----
13
query I rowsort
SELECT - col0 + ( col1 ) + 12 FROM tab0 cor0
----
14
74
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4249
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab2
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4250
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 FROM tab0
----
NULL
query I rowsort
SELECT - col1 * col0 * - col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT ALL 44 FROM tab0 AS cor0
----
44
44
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4253
SELECT ALL - CAST( 44 AS SIGNED ) + - col2 AS col2 FROM tab0 AS cor0
----
-126
-45
-77
skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL - CAST ( 44 AS INTEGER ) + - col2 AS col2 FROM tab0 AS cor0
----
-126
-45
-77
query I rowsort
SELECT col1 * + col2 * - col1 + ( + col1 * - col1 ) + + col2 * col2 FROM tab0 AS cor0
----
-18817
-250375
-680599
query I rowsort
SELECT DISTINCT - 75 * ( col0 ) FROM tab1 cor0
----
-225
-4800
-6000
query I rowsort
SELECT DISTINCT + - 33 AS col0 FROM tab0 AS cor0
----
-33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 * - col1 col1 FROM tab2 AS cor0
----
-1357
-391
-713
query I rowsort
SELECT ALL + ( + cor0.col2 ) * ( 98 ) + + col0 FROM tab1 AS cor0
----
5295
5650
9488
query I rowsort
SELECT - 8 * col0 AS col1 FROM tab1 AS cor0
----
-24
-512
-640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + - col2 col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT ALL + 69 + + col1 FROM tab0 AS cor0
----
155
160
166
query I rowsort
SELECT ALL + col0 * + col2 FROM tab0 cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-4263
SELECT ALL - - col2 DIV - col1 + - col1 - col1 FROM tab1 AS cor0
----
-25
-33
-54
skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL - - col2 / - col1 + - col1 - col1 FROM tab1 AS cor0
----
-25
-33
-54
query I rowsort
SELECT DISTINCT col1 * cor0.col1 + + col0 * - col0 FROM tab1 AS cor0
----
-3996
-6231
667
query I rowsort
SELECT DISTINCT tab1.col0 + tab1.col2 AS col2 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL tab1.col0 + col1 * - col0 + col0 AS col1 FROM tab1
----
-512
-72
-880
query I rowsort
SELECT ALL - 15 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 91b10a00c89b36b5bf0bed723e656ccc
query I rowsort
SELECT DISTINCT - - tab1.col2 * - 22 FROM tab1, tab0, tab1 AS cor0
----
-1188
-1254
-2112
query I rowsort
SELECT ALL col0 + 86 + col2 FROM tab1
----
143
207
262
query I rowsort
SELECT + col2 * 20 AS col2 FROM tab0
----
1640
20
660
onlyif mysql # use DIV operator for integer division
query I rowsort label-4271
SELECT - - col2 * col0 + - col0 DIV cor0.col0 AS col2 FROM tab0 cor0
----
34
7297
791
skipif mysql # not compatible
query I rowsort label-4271
SELECT - - col2 * col0 + - col0 / cor0.col0 AS col2 FROM tab0 cor0
----
34
7297
791
query I rowsort
SELECT col0 * - col0 + + col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT DISTINCT 58 AS col0 FROM tab1 AS cor0
----
58
query I rowsort
SELECT DISTINCT + cor0.col1 * 60 * - col1 AS col2 FROM tab0 AS cor0
----
-443760
-496860
-564540
query I rowsort
SELECT - col1 * ( col1 ) FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL - col1 * - ( - col2 + + col0 ) * - ( 13 ) AS col1 FROM tab0 AS cor0
----
-42874
-8281
10062
query I rowsort
SELECT + col0 * col1 - 3 * - col0 AS col2 FROM tab1 AS cor0
----
1280
832
87
query I rowsort
SELECT + col1 * + 14 + 10 + col0 FROM tab0 AS cor0
----
1238
1373
1403
query I rowsort
SELECT ALL - col2 * cor0.col0 * 33 AS col1 FROM tab2 cor0
----
-6237
-66924
-99066
query I rowsort
SELECT + col2 + - col1 * + 56 AS col0 FROM tab1 AS cor0
----
-1402
-503
-632
query I rowsort
SELECT DISTINCT 59 AS col1 FROM tab0
----
59
query I rowsort
SELECT ALL + col2 * + ( col1 * + cor0.col1 ) FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT DISTINCT col1 + cor0.col0 * col2 * col2 FROM tab2 AS cor0
----
114093
5134
52787
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4284
SELECT ALL col2 + CAST( NULL AS SIGNED ) * col0 / - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL col2 + CAST ( NULL AS INTEGER ) * col0 / - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 + + col1 * col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT + cor1.col2 FROM tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 25b043ae64f25e8f205735b09d2d3d6a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 col0 FROM tab2 AS cor0
----
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4289
SELECT - CAST( - 94 AS SIGNED ) + col1 AS col1 FROM tab0 AS cor0
----
180
185
191
skipif mysql # not compatible
query I rowsort label-4289
SELECT - CAST ( - 94 AS INTEGER ) + col1 AS col1 FROM tab0 AS cor0
----
180
185
191
onlyif mysql # use DIV operator for integer division
query I rowsort label-4290
SELECT ALL - col2 + + col1 DIV col0 FROM tab1 AS cor0
----
-46
-57
-96
skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL - col2 + + col1 / col0 FROM tab1 AS cor0
----
-46
-57
-96
query I rowsort
SELECT 95 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT + cor0.col0 * - col1 - - col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - - col1 + + 72 AS col2 FROM tab0 AS cor0
----
158
163
169
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 - 33 col1 FROM tab1
----
129
3615
7647
onlyif mysql # use DIV operator for integer division
query I rowsort label-4295
SELECT - cor0.col2 DIV - col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4295
SELECT - cor0.col2 / - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - col0 * col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - 17 FROM tab2 cor0
----
-17
-17
-17
query I rowsort
SELECT - - ( col2 ) * + cor0.col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + + col2 * col1 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4300
SELECT ALL 78 DIV col0 col1 FROM tab1 AS cor0
----
0
1
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL 78 / col0 col1 FROM tab1 AS cor0
----
0
1
26
query I rowsort
SELECT + 63 * - col0 AS col2 FROM tab0 AS cor0
----
-1512
-2205
-5607
query I rowsort
SELECT ALL - 12 * 95 FROM tab2
----
-1140
-1140
-1140
query I rowsort
SELECT DISTINCT + + col0 + col0 * + cor0.col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT - tab1.col0 * col2 FROM tab1
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col2 FROM tab0, tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - - 82 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT - col2 * col0 + + 17 * 86 FROM tab0
----
-5836
1427
670
query I rowsort
SELECT + cor0.col0 * + 45 FROM tab2, tab2 AS cor0
----
9 values hashing to 7ce3641fa36f0b29cae048c6237e46ab
query I rowsort
SELECT DISTINCT - 54 AS col0 FROM tab1
----
-54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 col1 FROM tab0
----
87
87
87
query I rowsort
SELECT DISTINCT + 27 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
27
query I rowsort
SELECT DISTINCT tab2.col0 + 92 FROM tab2
----
170
171
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * tab0.col2 + - col0 col0 FROM tab0
----
2814
62
7373
query I rowsort
SELECT DISTINCT ( 69 ) FROM tab0 cor0
----
69
query I rowsort
SELECT 58 * col0 * - col0 AS col0 FROM tab1 AS cor0
----
-237568
-371200
-522
query I rowsort
SELECT ALL - col1 * + col1 + col2 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT 73 FROM tab1 cor0
----
73
73
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 79 col1 FROM tab1 AS cor0
----
1027
2054
790
query I rowsort
SELECT 58 * - 89 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 7411b8d9a9987a12007f04e0a04d1178
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4320
SELECT CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4320
SELECT CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col2 - + col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT ALL 9 AS col1 FROM tab1, tab2 cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to b7e6b25481699c3a4ee7381c7eae0817
query I rowsort
SELECT ALL - - col1 + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4324
SELECT DISTINCT - CAST( - 54 AS SIGNED ) AS col1 FROM tab0
----
54
skipif mysql # not compatible
query I rowsort label-4324
SELECT DISTINCT - CAST ( - 54 AS INTEGER ) AS col1 FROM tab0
----
54
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col2 AS REAL ) * cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT DISTINCT ( col1 ) * col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - 26 * col2 FROM tab1 cor0
----
-1404
-1482
-2496
query I rowsort
SELECT ALL + + col2 + - col2 + + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - + col0 * cor0.col2 * - ( col2 ) + col1 * + col2 FROM tab1 AS cor0
----
10152
208506
738528
query I rowsort
SELECT - + 97 FROM tab1 AS cor0
----
-97
-97
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4331
SELECT DISTINCT - - cor0.col0 DIV cor0.col1 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT - - cor0.col0 / cor0.col1 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL cor0.col2 + - col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + - col2 + - col1 * col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT - + col0 + ( cor0.col0 ) + - col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT - + col1 * 46 + col2 FROM tab0 AS cor0
----
-3923
-4104
-4461
query I rowsort
SELECT - + col1 - col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4337
SELECT 57 + col0 * col1 * - CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4337
SELECT 57 + col0 * col1 * - CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4338
SELECT ALL - ( - ( col0 ) ) * + CAST( - col1 AS SIGNED ) - - cor0.col2 * - col1 FROM tab2 AS cor0
----
-1054
-1989
-6136
skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL - ( - ( col0 ) ) * + CAST ( - col1 AS INTEGER ) - - cor0.col2 * - col1 FROM tab2 AS cor0
----
-1054
-1989
-6136
query I rowsort
SELECT + 47 + - col2 FROM tab2 AS cor0
----
20
21
9
query I rowsort
SELECT col1 + ( + col2 ) * - col0 + col1 AS col0 FROM tab1
----
-110
-3628
-7654
query I rowsort
SELECT - col2 * + ( + col0 ) + + col0 AS col0 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT - col2 + col1 + - col2 * + col2 FROM tab2
----
-1465
-643
-725
query I rowsort
SELECT ALL - col2 + + col0 * + col0 AS col1 FROM tab0
----
1224
543
7839
query I rowsort
SELECT ALL + cor0.col1 * 6 + 8 FROM tab2 AS cor0
----
110
194
362
query I rowsort
SELECT DISTINCT + - cor0.col1 * + col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT col1 * ( 53 ) + col0 AS col1 FROM tab0 AS cor0
----
4582
4912
5176
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT + 60 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab1, tab1 cor1
----
972 values hashing to f8fe28681e8720551e1ec173631fc529
query I rowsort
SELECT - cor0.col2 + cor0.col1 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4351
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + 29 AS col1 FROM tab0
----
29
query I rowsort
SELECT DISTINCT col0 + col0 + - col1 AS col0 FROM tab1
----
-20
118
147
onlyif mysql # use DIV operator for integer division
query I rowsort label-4354
SELECT cor0.col0 DIV col1 + cor0.col1 FROM tab2 cor0
----
21
31
60
skipif mysql # not compatible
query I rowsort label-4354
SELECT cor0.col0 / col1 + cor0.col1 FROM tab2 cor0
----
21
31
60
query I rowsort
SELECT DISTINCT 44 FROM tab1 cor0
----
44
query I rowsort
SELECT col0 + + 42 * col1 AS col0 FROM tab1 AS cor0
----
1095
484
626
query I rowsort
SELECT ALL + 5 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
onlyif mysql # use DIV operator for integer division
query I rowsort label-4358
SELECT col1 + + col1 DIV 51 AS col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-4358
SELECT col1 + + col1 / 51 AS col1 FROM tab0
----
87
92
98
query I rowsort
SELECT col2 - - col2 * + tab1.col2 FROM tab1
----
2970
3306
9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4360
SELECT + CAST( NULL AS SIGNED ) / + col2 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4360
SELECT + CAST ( NULL AS INTEGER ) / + col2 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 col0 FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4362
SELECT ( - col2 ) DIV - col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4362
SELECT ( - col2 ) / - col2 FROM tab1
----
1
1
1
query I rowsort
SELECT - col1 - - col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - cor0.col1 * - col2 + - 68 col1 FROM tab0 AS cor0
----
126
2856
7485
query I rowsort
SELECT + 50 + - col0 FROM tab1 AS cor0
----
-14
-30
47
query I rowsort
SELECT 47 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT DISTINCT + 95 * col1 * + col1 AS col0 FROM tab2
----
27455
330695
91295
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4368
SELECT CAST( NULL AS SIGNED ) * + col1 * col1 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4368
SELECT CAST ( NULL AS INTEGER ) * + col1 * col1 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 95 + + col1 * col2 AS col0 FROM tab0 AS cor0
----
192
2933
7557
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4370
SELECT CAST( NULL AS SIGNED ) - cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4370
SELECT CAST ( NULL AS INTEGER ) - cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - tab2.col2 * + col1 AS col1 FROM tab2
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-4372
SELECT + cor0.col1 - cor0.col0 DIV + ( - 32 ) FROM tab2 AS cor0
----
19
31
61
skipif mysql # not compatible
query I rowsort label-4372
SELECT + cor0.col1 - cor0.col0 / + ( - 32 ) FROM tab2 AS cor0
----
19
31
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-4373
SELECT + col2 DIV col1 + + col1 DIV - col2 AS col0 FROM tab1 cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-4373
SELECT + col2 / col1 + + col1 / - col2 AS col0 FROM tab1 cor0
----
2
5
7
query I rowsort
SELECT DISTINCT + 21 * + cor0.col0 AS col1 FROM tab2, tab1, tab2 cor0
----
147
1638
1659
query I rowsort
SELECT - 24 * col1 + + ( - 96 ) AS col2 FROM tab2
----
-1512
-504
-840
onlyif mysql # use DIV operator for integer division
query I rowsort label-4376
SELECT DISTINCT - col1 DIV - col0 - tab1.col1 col1 FROM tab1
----
-10
-13
-18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT - col1 / - col0 - tab1.col1 col1 FROM tab1
----
-10
-13
-18
onlyif mysql # use DIV operator for integer division
query I rowsort label-4377
SELECT ALL + col0 * col1 - + col2 DIV 73 FROM tab0
----
2064
3395
8098
skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL + col0 * col1 - + col2 / 73 FROM tab0
----
2064
3395
8098
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4378
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL col0 - col0 * 1 FROM tab0
----
0
0
0
query I rowsort
SELECT 0 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT ALL - col2 + col0 * - tab0.col0 FROM tab0
----
-1226
-609
-8003
query I rowsort
SELECT + tab0.col1 + - col1 + col0 FROM tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4383
SELECT - col0 DIV col1 + - 56 AS col0 FROM tab0 AS cor0
----
-56
-56
-56
skipif mysql # not compatible
query I rowsort label-4383
SELECT - col0 / col1 + - 56 AS col0 FROM tab0 AS cor0
----
-56
-56
-56
onlyif mysql # use DIV operator for integer division
query I rowsort label-4384
SELECT DISTINCT col1 DIV 34 + 68 + col1 AS col2 FROM tab0 cor0
----
156
161
167
skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT col1 / 34 + 68 + col1 AS col2 FROM tab0 cor0
----
156
161
167
query I rowsort
SELECT DISTINCT - col1 + + 9 AS col0 FROM tab2 cor0
----
-22
-50
-8
query I rowsort
SELECT ALL - col1 * + 22 * - col2 AS col1 FROM tab0 AS cor0
----
164164
2134
62436
onlyif mysql # use DIV operator for integer division
query I rowsort label-4387
SELECT ALL + col0 - col1 DIV + col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL + col0 - col1 / + col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + col0 * - col0 + + col0 * col2 AS col2 FROM tab0 AS cor0
----
-1190
-623
216
query I rowsort
SELECT DISTINCT col0 * 47 * + col1 + - col1 AS col2 FROM tab2 AS cor0
----
10168
216235
63104
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - cor0.col0 * + 78 + col0 col0 FROM tab1 cor0
----
-12633
-284480
-598960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4391
SELECT ALL - col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL - col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * - col1 - col0 AS col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL - + cor0.col2 * col2 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT - + col0 * 40 * + cor0.col1 FROM tab0 AS cor0
----
-135800
-323960
-82560
query I rowsort
SELECT DISTINCT - col1 * + 48 * + cor0.col2 FROM tab0 AS cor0
----
-136224
-358176
-4656
query I rowsort
SELECT + - col2 * - cor0.col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL - - col0 - + ( - 4 ) AS col1 FROM tab0 AS cor0
----
28
39
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-4398
SELECT - - col1 DIV col0 + col0 FROM tab1 AS cor0
----
11
64
80
skipif mysql # not compatible
query I rowsort label-4398
SELECT - - col1 / col0 + col0 FROM tab1 AS cor0
----
11
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4399
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) * + 11 * col0 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) * + 11 * col0 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - - col2 * - col2 + - 29 AS col0 FROM tab2 cor0
----
-1473
-705
-758
query I rowsort
SELECT ALL - col2 - ( 90 ) FROM tab1 AS cor0
----
-144
-147
-186
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * 27 col1 FROM tab1 cor0
----
270
351
702
query I rowsort
SELECT - cor0.col1 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT - tab0.col1 + col0 * - col0 * col0 AS col2 FROM tab0
----
-13910
-42972
-705060
query I rowsort
SELECT DISTINCT col2 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT + col2 + col1 * + cor0.col0 * + 4 AS col1 FROM tab2 AS cor0
----
18434
5410
895
query I rowsort
SELECT + col0 * - col1 + + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4408
SELECT ALL + + CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL + + CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + ( + 58 ) + - cor0.col2 FROM tab0 AS cor0
----
-24
25
57
query I rowsort
SELECT ( - ( col2 ) ) * col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT - cor0.col2 * - 31 + - col0 FROM tab2 AS cor0
----
1099
728
830
query I rowsort
SELECT DISTINCT + cor0.col2 + - 21 FROM tab2 AS cor0
----
17
5
6
query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) * + cor0.col0 + + 8 FROM tab0 AS cor0
----
-1217
-568
-7913
query I rowsort
SELECT DISTINCT + + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4415
SELECT ALL - col0 + + col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL - col0 + + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + cor0.col1 + ( col1 ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + 96 * col0 FROM tab0 AS cor0
----
2304
3360
8544
onlyif mysql # use DIV operator for integer division
query I rowsort label-4418
SELECT DISTINCT - 48 DIV - col1 - ( col0 ) * - col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT - 48 / - col1 - ( col0 ) * - col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL 81 + col2 AS col1 FROM tab0 cor0
----
114
163
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 + col2 * 39 * + col1 col2 FROM tab2 AS cor0
----
25266
32715
59898
query I rowsort
SELECT ALL ( col0 * - col0 ) AS col1 FROM tab1
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4422
SELECT DISTINCT cor0.col1 DIV 53 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
1
skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT cor0.col1 / 53 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
1
query I rowsort
SELECT + cor1.col1 - ( cor1.col0 ) AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to bae587a8285614200d114dd089f83a2b
query I rowsort
SELECT DISTINCT + col2 * + 57 FROM tab0
----
1881
4674
57
query I rowsort
SELECT DISTINCT + 90 AS col0 FROM tab2, tab0, tab1 AS cor0
----
90
query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab1, tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4427
SELECT ALL - 84 DIV col1 FROM tab1 AS cor0
----
-3
-6
-8
skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL - 84 / col1 FROM tab1 AS cor0
----
-3
-6
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-4428
SELECT - col2 + cor0.col2 DIV col2 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-4428
SELECT - col2 + cor0.col2 / col2 FROM tab1 AS cor0
----
-53
-56
-95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4429
SELECT - CAST( + 75 AS SIGNED ) FROM tab0
----
-75
-75
-75
skipif mysql # not compatible
query I rowsort label-4429
SELECT - CAST ( + 75 AS INTEGER ) FROM tab0
----
-75
-75
-75
query I rowsort
SELECT - 68 * col2 + col0 AS col1 FROM tab0 AS cor0
----
-2220
-33
-5487
query I rowsort
SELECT DISTINCT + col1 + - col2 * - 1 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL + + 79 FROM tab1 AS cor0
----
79
79
79
query I rowsort
SELECT 28 * col1 AS col1 FROM tab2 AS cor0
----
1652
476
868
query I rowsort
SELECT DISTINCT - 74 + cor0.col2 FROM tab0 AS cor0
----
-41
-73
8
query I rowsort
SELECT ALL - 75 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-4050
-4275
-7200
query I rowsort
SELECT - - 27 * - col2 AS col2 FROM tab0 AS cor0
----
-2214
-27
-891
query I rowsort
SELECT + col0 * col0 + col1 * ( col0 ) * col2 AS col2 FROM tab1
----
106240
40576
4221
query I rowsort
SELECT - - ( col2 ) + col0 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT col2 - + col1 AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT + col0 * + col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT - + col0 + - cor0.col0 * col2 AS col0 FROM tab0 cor0
----
-70
-7387
-816
query I rowsort
SELECT ALL - col2 * + 52 FROM tab1 AS cor0
----
-2808
-2964
-4992
query I rowsort
SELECT ALL + - col1 * ( - col0 + + col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + cor0.col1 - + col0 * + 42 * col2 AS col2 FROM tab1 AS cor0
----
-153206
-322547
-6778
onlyif mysql # use DIV operator for integer division
query I rowsort label-4445
SELECT ALL - + col2 DIV col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL - + col2 / col2 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4446
SELECT ALL col2 DIV 96 AS col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL col2 / 96 AS col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT - col0 * col0 * col1 AS col1 FROM tab1 cor0
----
-234
-40960
-83200
query I rowsort
SELECT col0 * + ( col0 ) AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL 74 - tab1.col0 AS col0 FROM tab1
----
-6
10
71
query I rowsort
SELECT + - cor0.col0 + cor0.col1 + + col1 FROM tab0 cor0
----
148
159
93
query I rowsort
SELECT DISTINCT col0 * + ( - col1 + + col0 ) AS col0 FROM tab0 AS cor0
----
-1488
-178
-2170
query I rowsort
SELECT + cor0.col0 * 21 FROM tab1 AS cor0
----
1344
1680
63
query I rowsort
SELECT - + col1 + col0 * + col1 AS col0 FROM tab1 AS cor0
----
1027
52
630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - 48 col2 FROM tab1 AS cor0
----
1248
480
624
onlyif mysql # use DIV operator for integer division
query I rowsort label-4455
SELECT - col1 * + 26 + col1 DIV + col2 + col2 FROM tab0 cor0
----
-2201
-2283
-2424
skipif mysql # not compatible
query I rowsort label-4455
SELECT - col1 * + 26 + col1 / + col2 + col2 FROM tab0 cor0
----
-2201
-2283
-2424
query I rowsort
SELECT DISTINCT - + ( + col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4457
SELECT ALL - 32 DIV - 88 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL - 32 / - 88 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT + + 83 FROM tab0 cor0
----
83
83
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 col1 FROM tab2 AS cor0
----
9
9
9
query I rowsort
SELECT + + cor0.col0 + col2 AS col0 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4461
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-4461
SELECT ALL - col2 + - ( - col0 ) / col2 col1 FROM tab1
----
-54
-56
-96
query I rowsort
SELECT ( - col2 ) - - col1 * + col0 FROM tab0 cor0
----
2031
3394
8017
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4463
SELECT + + CAST( - col0 AS SIGNED ) * cor0.col2 + + col2 + col0 FROM tab1 AS cor0
----
-105
-3527
-7504
skipif mysql # not compatible
query I rowsort label-4463
SELECT + + CAST ( - col0 AS INTEGER ) * cor0.col2 + + col2 + col0 FROM tab1 AS cor0
----
-105
-3527
-7504
query I rowsort
SELECT DISTINCT 36 AS col1 FROM tab2
----
36
query I rowsort
SELECT - ( - 35 ) AS col2 FROM tab2
----
35
35
35
query I rowsort
SELECT DISTINCT - col2 + 9 - - col2 AS col0 FROM tab2
----
9
query I rowsort
SELECT + - col0 * col2 + cor0.col0 * - ( col1 + - col1 ) * - cor0.col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ( tab0.col0 ) * col1 * - tab0.col0 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT - tab1.col1 FROM tab1, tab2 AS cor0, tab2, tab1 AS cor1
----
-10
-13
-26
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab0, tab0 cor1
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b
query I rowsort
SELECT ALL 92 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * col2 col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT 92 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
query I rowsort
SELECT DISTINCT col0 * - ( col0 ) FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT + 64 * col1 AS col1 FROM tab2
----
1088
1984
3776
query I rowsort
SELECT DISTINCT ( cor0.col0 ) * - tab2.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
9 values hashing to 06f1aa65839c1bfc8581580bacdb6787
onlyif mysql # use DIV operator for integer division
query I rowsort label-4477
SELECT DISTINCT 60 DIV col1 - - 67 AS col0 FROM tab2
----
68
70
skipif mysql # not compatible
query I rowsort label-4477
SELECT DISTINCT 60 / col1 - - 67 AS col0 FROM tab2
----
68
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 * - col2 col2 FROM tab1 AS cor0
----
-4374
-4617
-7776
query I rowsort
SELECT DISTINCT - 73 * - col1 AS col2 FROM tab0 AS cor0
----
6278
6643
7081
query I rowsort
SELECT 26 * col2 + - 28 FROM tab0 cor0
----
-2
2104
830
onlyif mysql # use DIV operator for integer division
query I rowsort label-4481
SELECT + 36 DIV - col0 + - 88 + - col2 * col1 col1 FROM tab1 AS cor0
----
-1336
-1504
-658
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4481
SELECT + 36 / - col0 + - 88 + - col2 * col1 col1 FROM tab1 AS cor0
----
-1336
-1504
-658
query I rowsort
SELECT 1 + col2 AS col0 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT col0 + - 15 AS col2 FROM tab2 AS cor0
----
-8
63
64
query I rowsort
SELECT DISTINCT + col2 * col1 * 54 + cor0.col2 * cor0.col2 FROM tab2 AS cor0
----
36328
45927
83512
onlyif mysql # use DIV operator for integer division
query I rowsort label-4485
SELECT col0 + col1 DIV col2 AS col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4485
SELECT col0 + col1 / col2 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - col1 - cor0.col1 AS col1 FROM tab1 cor0
----
-20
-26
-52
query I rowsort
SELECT - col2 + col1 * col1 + col2 AS col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + col2 * col0 + col1 * + col2 AS col1 FROM tab2 cor0
----
1026
3562
3648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4489
SELECT - cor0.col1 * - CAST( col2 AS SIGNED ) + - col2 * - 20 * - 81 AS col1 FROM tab1 AS cor0
----
-154272
-86076
-91770
skipif mysql # not compatible
query I rowsort label-4489
SELECT - cor0.col1 * - CAST ( col2 AS INTEGER ) + - col2 * - 20 * - 81 AS col1 FROM tab1 AS cor0
----
-154272
-86076
-91770
query I rowsort
SELECT ALL cor0.col0 - col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col1 + + cor1.col0 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 1a4f43ea4186b2b16e5524688d4e5ca6
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763
query I rowsort
SELECT ALL - 40 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
query I rowsort
SELECT ALL ( col1 ) * + cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - 20 + - col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1060
-660
-98
query I rowsort
SELECT ALL - + 12 FROM tab1 cor0
----
-12
-12
-12
query I rowsort
SELECT DISTINCT - 42 FROM tab0 AS cor0
----
-42
query I rowsort
SELECT - 49 AS col1 FROM tab1
----
-49
-49
-49
query I rowsort
SELECT - tab2.col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT DISTINCT - ( + col2 ) * + col2 * + col0 AS col2 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT DISTINCT - cor0.col1 + - col0 * - col2 AS col1 FROM tab0 AS cor0
----
-62
706
7207
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + col2 col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT - cor0.col1 * col0 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4504
SELECT - ( col0 ) + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4504
SELECT - ( col0 ) + + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 61 AS col1 FROM tab0
----
-61
-61
-61
query I rowsort
SELECT ALL + - 79 FROM tab2 AS cor0
----
-79
-79
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4507
SELECT 65 * cor0.col2 * CAST( NULL AS DECIMAL ) 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-4507
SELECT 65 * cor0.col2 * CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col2 + cor0.col0 AS col1 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT - + col2 + - col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT + - 5 FROM tab1, tab2, tab2 AS cor0
----
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col1 * col0 - - 6 * + col0 col2 FROM tab0
----
2175
3604
8551
query I rowsort
SELECT ALL - - 59 + + cor0.col0 FROM tab0 AS cor0
----
148
83
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-4513
SELECT DISTINCT + col2 DIV col0 AS col1 FROM tab0 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4513
SELECT DISTINCT + col2 / col0 AS col1 FROM tab0 cor0
----
0
1
query I rowsort
SELECT ALL 19 FROM tab1, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT col0 + - 42 * - 59 AS col0 FROM tab2
----
2485
2556
2557
query I rowsort
SELECT DISTINCT - - col2 + cor0.col0 - col0 * 14 AS col2 FROM tab0 AS cor0
----
-1075
-279
-454
query I rowsort
SELECT ( 50 ) FROM tab2 AS cor0
----
50
50
50
query I rowsort
SELECT + 45 + 13 AS col1 FROM tab2 AS cor0
----
58
58
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col0 col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT col2 * tab2.col2 + col2 * col0 FROM tab2
----
2704
4446
918
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4521
SELECT col2 * + CAST( col2 AS SIGNED ) * col1 FROM tab2
----
22599
24548
39884
skipif mysql # not compatible
query I rowsort label-4521
SELECT col2 * + CAST ( col2 AS INTEGER ) * col1 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT - col1 * + ( tab2.col2 * tab2.col1 ) AS col0 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT cor0.col2 + 89 AS col2 FROM tab1 AS cor0
----
143
146
185
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4524
SELECT col1 * CAST( NULL AS SIGNED ) / + col2 + col1 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4524
SELECT col1 * CAST ( NULL AS INTEGER ) / + col2 + col1 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT tab1.col0 + 67 FROM tab1
----
131
147
70
query I rowsort
SELECT DISTINCT + cor0.col1 + + ( - col1 * + 97 ) FROM tab1 AS cor0
----
-1248
-2496
-960
query I rowsort
SELECT DISTINCT - 67 FROM tab2 AS cor0
----
-67
query I rowsort
SELECT DISTINCT col1 * col2 + col1 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT + tab1.col1 AS col1 FROM tab1, tab0 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4530
SELECT CAST( - ( - col0 ) AS SIGNED ) + ( + col1 ) FROM tab2
----
137
38
96
skipif mysql # not compatible
query I rowsort label-4530
SELECT CAST ( - ( - col0 ) AS INTEGER ) + ( + col1 ) FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT - 12 * col0 AS col2 FROM tab2 AS cor0
----
-84
-936
-948
query I rowsort
SELECT + - ( col0 ) * - col1 + + 0 * col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL cor0.col1 + + 79 + + cor0.col0 FROM tab2 AS cor0
----
117
175
216
onlyif mysql # use DIV operator for integer division
query I rowsort label-4534
SELECT ALL + - col0 DIV col1 + + col1 AS col0 FROM tab1 AS cor0
----
26
4
7
skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL + - col0 / col1 + + col1 AS col0 FROM tab1 AS cor0
----
26
4
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 * - cor0.col2 * + cor0.col1 + col1 col2 FROM tab2 AS cor0
----
-105787
-44557
-57722
query I rowsort
SELECT DISTINCT + - cor0.col2 + col2 * - col0 - col1 FROM tab2 AS cor0
----
-2113
-247
-3057
query I rowsort
SELECT DISTINCT - + 64 * 36 + col1 + ( + 97 ) FROM tab1 AS cor0
----
-2181
-2194
-2197
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 + col2 col0 FROM tab2 AS cor0
----
-1305
-190
-4576
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col0 AS REAL ) AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT col1 + cor0.col0 * col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT ALL + col0 * - 87 + + col2 AS col0 FROM tab1 cor0
----
-207
-5511
-6864
query I rowsort
SELECT DISTINCT - - 89 FROM tab0 AS cor0
----
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 + - col1 col1 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT DISTINCT col2 * col2 * - col2 + + 97 AS col1 FROM tab2
----
-17479
-19586
-54775
onlyif mysql # use DIV operator for integer division
query I rowsort label-4545
SELECT col0 + + col2 DIV 34 FROM tab0
----
24
35
91
skipif mysql # not compatible
query I rowsort label-4545
SELECT col0 + + col2 / 34 FROM tab0
----
24
35
91
query I rowsort
SELECT col1 * col1 + col2 * col1 + + tab1.col0 * col0 FROM tab1
----
2089
4766
7817
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4547
SELECT - 58 + col0 + + CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4547
SELECT - 58 + col0 + + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - tab0.col1 * cor0.col1 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to a6a7a6a47aff0e8ed0e5d5e78cd4092b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 + 24 col1 FROM tab1
----
-1016
-54
-616
query I rowsort
SELECT ALL - + 48 FROM tab1 cor0
----
-48
-48
-48
query I rowsort
SELECT - col1 * + col1 + + 72 FROM tab1 AS cor0
----
-28
-604
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4552
SELECT col2 DIV + col0 AS col0 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-4552
SELECT col2 / + col0 AS col0 FROM tab1
----
0
1
18
query I rowsort
SELECT DISTINCT ( + tab0.col0 * col0 ) + + 79 AS col2 FROM tab0
----
1304
655
8000
onlyif mysql # use DIV operator for integer division
query I rowsort label-4554
SELECT ALL tab1.col0 DIV col2 + + col0 * 54 AS col2 FROM tab1
----
162
3457
4320
skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL tab1.col0 / col2 + + col0 * 54 AS col2 FROM tab1
----
162
3457
4320
onlyif mysql # use DIV operator for integer division
query I rowsort label-4555
SELECT ALL + + 11 DIV - tab0.col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL + + 11 / - tab0.col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT tab2.col2 + + tab2.col2 FROM tab2
----
52
54
76
query I rowsort
SELECT + + col0 * ( col2 ) + col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL col0 * + col0 + col0 FROM tab0 AS cor0
----
1260
600
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-4559
SELECT DISTINCT - col2 + - col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
-24
-26
-38
skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT - col2 + - col2 / - col0 AS col0 FROM tab2 AS cor0
----
-24
-26
-38
query I rowsort
SELECT col1 + 46 FROM tab0 AS cor0
----
132
137
143
query I rowsort
SELECT DISTINCT col0 * col0 * col0 FROM tab0
----
13824
42875
704969
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4562
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4562
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * ( col1 ) col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT - cor0.col1 + ( col2 ) FROM tab2 cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-4565
SELECT - cor0.col0 DIV + 2 + col1 DIV - cor0.col2 AS col0 FROM tab0 AS cor0
----
-114
-14
-45
skipif mysql # not compatible
query I rowsort label-4565
SELECT - cor0.col0 / + 2 + col1 / - cor0.col2 AS col0 FROM tab0 AS cor0
----
-114
-14
-45
query I rowsort
SELECT DISTINCT + col1 + - col1 AS col2 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * cor0.col0 + - col1 col1 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT ALL col2 * 47 + - col0 AS col1 FROM tab2 AS cor0
----
1144
1262
1707
query I rowsort
SELECT col2 + 86 FROM tab1 AS cor0
----
140
143
182
query I rowsort
SELECT ALL + ( + 35 ) * col1 FROM tab1 AS cor0
----
350
455
910
query I rowsort
SELECT DISTINCT + + col2 + + ( + col1 ) * col2 AS col2 FROM tab1 cor0
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-4572
SELECT + 90 + col0 DIV col2 AS col1 FROM tab0 cor0
----
125
90
91
skipif mysql # not compatible
query I rowsort label-4572
SELECT + 90 + col0 / col2 AS col1 FROM tab0 cor0
----
125
90
91
query I rowsort
SELECT ALL - - 20 * - col2 FROM tab1 AS cor0
----
-1080
-1140
-1920
onlyif mysql # use DIV operator for integer division
query I rowsort label-4574
SELECT DISTINCT + - 86 DIV col0 FROM tab0 AS cor0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT + - 86 / col0 FROM tab0 AS cor0
----
-2
-3
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4575
SELECT CAST( col1 AS SIGNED ) DIV cor0.col2 FROM tab0 cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-4575
SELECT CAST ( col1 AS INTEGER ) / cor0.col2 FROM tab0 cor0
----
1
2
97
query I rowsort
SELECT DISTINCT - col1 * col1 + + col0 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT ALL 34 * + cor0.col0 FROM tab0 AS cor0
----
1190
3026
816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4578
SELECT DISTINCT + CAST( - 74 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-74
skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT + CAST ( - 74 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4579
SELECT DISTINCT - - CAST( + 0 AS SIGNED ) * col0 AS col2 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-4579
SELECT DISTINCT - - CAST ( + 0 AS INTEGER ) * col0 AS col2 FROM tab1 cor0
----
0
query I rowsort
SELECT - - ( 75 ) AS col0 FROM tab1 AS cor0
----
75
75
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 91 + + col0 * ( + ( col0 ) ) col0 FROM tab0 cor0
----
1134
485
7830
query I rowsort
SELECT ALL - 80 - + col0 AS col2 FROM tab1 cor0
----
-144
-160
-83
query I rowsort
SELECT + - 61 * + cor0.col2 + - col1 * col2 FROM tab2 AS cor0
----
-2484
-2964
-3120
query I rowsort
SELECT 68 FROM tab2, tab0 cor0, tab0 cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
onlyif mysql # use DIV operator for integer division
query I rowsort label-4585
SELECT + + 26 + - col2 DIV col2 FROM tab1 AS cor0
----
25
25
25
skipif mysql # not compatible
query I rowsort label-4585
SELECT + + 26 + - col2 / col2 FROM tab1 AS cor0
----
25
25
25
query I rowsort
SELECT + 99 FROM tab1
----
99
99
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-4587
SELECT DISTINCT 40 - + col2 * col2 DIV ( col0 ) AS col1 FROM tab2
----
-64
22
32
skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT 40 - + col2 * col2 / ( col0 ) AS col1 FROM tab2
----
-64
22
32
query I rowsort
SELECT col1 - cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ( col2 ) * 14 FROM tab0 AS cor0
----
1148
14
462
onlyif mysql # use DIV operator for integer division
query I rowsort label-4590
SELECT - - col1 * col0 DIV - col0 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-4590
SELECT - - col1 * col0 / - col0 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - col0 * - col0 + 89 AS col1 FROM tab0 AS cor0
----
1314
665
8010
query I rowsort
SELECT + 97 * col0 AS col1 FROM tab2 AS cor0
----
679
7566
7663
query I rowsort
SELECT + col1 - col1 * col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4594
SELECT CAST( + 21 AS SIGNED ) + cor0.col1 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 22370c58f3a217bb598287c7dd2b5943
skipif mysql # not compatible
query I rowsort label-4594
SELECT CAST ( + 21 AS INTEGER ) + cor0.col1 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 22370c58f3a217bb598287c7dd2b5943
query I rowsort
SELECT - col0 + ( - col1 ) FROM tab1 cor0
----
-29
-74
-93
query I rowsort
SELECT - - col1 - ( - col1 ) * col0 AS col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - col1 + 15 FROM tab0 cor0
----
-71
-76
-82
query I rowsort
SELECT - cor0.col1 * col0 + + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT - 2 FROM tab2, tab0 AS cor0
----
-2
query I rowsort
SELECT - + 95 FROM tab0 AS cor0
----
-95
-95
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT ALL 73 * + 7 AS col0 FROM tab2
----
511
511
511
query I rowsort
SELECT DISTINCT - + 21 AS col2 FROM tab1 cor0
----
-21
query I rowsort
SELECT - cor2.col1 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b
query I rowsort
SELECT - 74 AS col0 FROM tab0 cor0
----
-74
-74
-74
query I rowsort
SELECT DISTINCT + + ( 74 ) + - col0 * + ( - ( + col1 ) ) + 21 AS col2 FROM tab2 AS cor0
----
1438
312
4697
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 6a63085e8cab6f97591fd0a6b6ffff07
onlyif mysql # use DIV operator for integer division
query I rowsort label-4608
SELECT + col1 + - ( - 89 ) DIV + col1 col2 FROM tab1
----
18
19
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4608
SELECT + col1 + - ( - 89 ) / + col1 col2 FROM tab1
----
18
19
29
query I rowsort
SELECT - + col0 + + 10 * - 78 FROM tab2 cor0
----
-787
-858
-859
query I rowsort
SELECT col1 * 47 FROM tab1 AS cor0
----
1222
470
611
query I rowsort
SELECT - + cor0.col0 * - col0 * col1 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT + ( 11 ) + col2 * 23 AS col0 FROM tab1 AS cor0
----
1253
1322
2219
query I rowsort
SELECT - 8 * col1 + - col0 AS col1 FROM tab2 AS cor0
----
-215
-255
-550
onlyif mysql # use DIV operator for integer division
query I rowsort label-4614
SELECT ( col1 ) * col1 DIV 12 AS col0 FROM tab1
----
14
56
8
skipif mysql # not compatible
query I rowsort label-4614
SELECT ( col1 ) * col1 / 12 AS col0 FROM tab1
----
14
56
8
query I rowsort
SELECT tab2.col2 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT - ( - tab1.col1 ) + col2 FROM tab1
----
109
67
80
query I rowsort
SELECT + - col1 * - col1 + + col0 AS col0 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT - col1 - + col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT 38 + - col0 AS col0 FROM tab2 AS cor0
----
-40
-41
31
query I rowsort
SELECT DISTINCT + 12 - col1 * col2 FROM tab2 AS cor0
----
-1522
-634
-825
query I rowsort
SELECT - col1 * + ( col2 ) AS col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - - col2 * + 61 + cor0.col1 * col0 + 5 * col2 AS col2 FROM tab1 cor0
----
3642
4402
7376
query I rowsort
SELECT ALL + col1 * - 81 + + col2 FROM tab0 AS cor0
----
-6933
-7289
-7856
query I rowsort
SELECT ALL - col0 + 55 + col0 FROM tab2 AS cor0
----
55
55
55
query I rowsort
SELECT - col0 - - 80 * col2 FROM tab1 AS cor0
----
4317
4496
7600
query I rowsort
SELECT ALL + col1 * col2 + col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT col1 * - ( col1 ) - + 36 FROM tab1 AS cor0
----
-136
-205
-712
onlyif mysql # use DIV operator for integer division
query I rowsort label-4628
SELECT DISTINCT tab1.col2 DIV col2 + + col0 AS col1 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT tab1.col2 / col2 + + col0 AS col1 FROM tab1
----
4
65
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-4629
SELECT col0 + col2 DIV col1 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4629
SELECT col0 + col2 / col1 AS col2 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4630
SELECT DISTINCT 73 DIV col0 FROM tab1
----
0
1
24
skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT 73 / col0 FROM tab1
----
0
1
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 col0 FROM tab0, tab2, tab1 cor0
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
query I rowsort
SELECT - 21 + col1 * col2 FROM tab0
----
2817
7441
76
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55
onlyif mysql # use DIV operator for integer division
query I rowsort label-4634
SELECT - col0 + col0 DIV 92 AS col0 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-4634
SELECT - col0 + col0 / 92 AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ( cor0.col0 ) + col1 * col0 AS col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL - cor0.col2 - - 6 AS col2 FROM tab1 AS cor0
----
-48
-51
-90
query I rowsort
SELECT DISTINCT + col0 + + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 * CAST ( col1 AS REAL ) + col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL - col2 - - ( col0 + + col2 ) AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + + col0 + ( col1 ) + cor0.col1 AS col0 FROM tab1 AS cor0
----
106
55
84
query I rowsort
SELECT ALL + col1 - - ( 12 ) FROM tab1 AS cor0
----
22
25
38
query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 * - col1 AS col0 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT - col0 * + cor0.col2 AS col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - 53 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 2876418587c77a182d88db2907b0a51a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 col2 FROM tab1
----
-78
-78
-78
query I rowsort
SELECT ALL + 78 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab0 AS cor0, tab1 cor1
----
972 values hashing to 5621675b1bd32b061d284d0444c76601
query I rowsort
SELECT - col1 * col2 * - ( col0 ) AS col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT + + col2 + - 84 * + 6 FROM tab2 AS cor0
----
-466
-477
-478
query I rowsort
SELECT - - col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL col2 + - col2 * 29 AS col0 FROM tab2 cor0
----
-1064
-728
-756
query I rowsort
SELECT + 25 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
query I rowsort
SELECT ALL - - col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT - - cor0.col1 + + col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - col0 * 24 FROM tab0 AS cor0
----
-2136
-576
-840
query I rowsort
SELECT DISTINCT + col1 * col1 + col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT + col2 * ( + ( cor0.col2 ) ) FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT col1 * 6 * - col2 FROM tab0
----
-17028
-44772
-582
query I rowsort
SELECT + - ( + col2 ) * - cor0.col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - ( col1 ) - - col1 * + col1 AS col1 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT 96 * col1 * + col2 FROM tab2 AS cor0
----
147264
62016
80352
query I rowsort
SELECT DISTINCT 99 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
99
query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL + col1 * col2 + + col0 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-4665
SELECT ALL + col0 + col2 DIV col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL + col0 + col2 / col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 * col0 + + CAST ( + 5 AS REAL ) FROM tab2 AS cor0
----
-44
-6079
-6236
query I rowsort
SELECT ALL + 76 * col2 - 90 FROM tab2 AS cor0
----
1886
1962
2798
query I rowsort
SELECT DISTINCT - + col2 * + col2 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-4669
SELECT ALL + col1 DIV col1 AS col0 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL + col1 / col1 AS col0 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT + 81 * - cor0.col2 + col1 AS col2 FROM tab1 cor0
----
-4348
-4607
-7763
query I rowsort
SELECT ALL + 58 AS col2 FROM tab1 AS cor0
----
58
58
58
query I rowsort
SELECT DISTINCT - 84 AS col1 FROM tab2, tab2 AS cor0
----
-84
query I rowsort
SELECT ALL + col1 - col1 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL col2 - + 70 AS col2 FROM tab2
----
-32
-43
-44
query I rowsort
SELECT DISTINCT - 94 FROM tab2
----
-94
query I rowsort
SELECT ALL + col1 + + col2 + + 4 AS col1 FROM tab2
----
59
62
89
query I rowsort
SELECT + 47 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT ALL + 51 + col1 + 75 * + col2 FROM tab1
----
4127
4336
7264
query I rowsort
SELECT ALL col2 + - tab2.col2 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT col2 + + col2 * 88 AS col0 FROM tab0 AS cor0
----
2937
7298
89
query I rowsort
SELECT DISTINCT col0 * col0 + ( - 3 ) * col0 AS col2 FROM tab1 AS cor0
----
0
3904
6160
query I rowsort
SELECT - ( + col0 ) * ( 28 ) + col0 FROM tab0 AS cor0
----
-2403
-648
-945
query I rowsort
SELECT DISTINCT - - col0 + + col1 * - col0 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4684
SELECT cor0.col0 * - cor0.col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4684
SELECT cor0.col0 * - cor0.col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col0 * col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4686
SELECT ALL - - col2 / + cor0.col2 + CAST( NULL AS SIGNED ) * - col2 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL - - col2 / + cor0.col2 + CAST ( NULL AS INTEGER ) * - col2 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + col0 col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + 82 * col2 + col1 AS col0 FROM tab0 AS cor0
----
179
2792
6815
query I rowsort
SELECT - + col1 * - col1 * - col0 - cor0.col0 FROM tab1 AS cor0
----
-13600
-2031
-6464
query I rowsort
SELECT - + ( + col1 ) - - col1 AS col1 FROM tab2 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( cor0.col0 ) col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + ( col1 ) + - col0 * ( 87 * col1 ) AS col0 FROM tab0 AS cor0
----
-179482
-295268
-704522
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 28412d50061391eec23a02d0efcfb3f9
query I rowsort
SELECT - col1 * col1 + col0 FROM tab2
----
-210
-3403
-954
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4695
SELECT + CAST( + col2 AS SIGNED ) * - col2 + + 93 FROM tab1
----
-2823
-3156
-9123
skipif mysql # not compatible
query I rowsort label-4695
SELECT + CAST ( + col2 AS INTEGER ) * - col2 + + 93 FROM tab1
----
-2823
-3156
-9123
query I rowsort
SELECT tab0.col2 + 87 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ff93124f77ec735aeb07c735c385c4e3
query I rowsort
SELECT DISTINCT - 5 * tab0.col0 + col0 FROM tab0
----
-140
-356
-96
query I rowsort
SELECT DISTINCT - col2 + ( - col2 ) FROM tab2
----
-52
-54
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + col2 col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT 45 * 23 + - col0 * col0 + + col2 AS col2 FROM tab2
----
-5023
-5168
1013
query I rowsort
SELECT DISTINCT + 52 * 64 FROM tab1
----
3328
query I rowsort
SELECT tab2.col2 * col0 * - col1 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT ( col2 + tab1.col2 ) AS col1 FROM tab1
----
108
114
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-4704
SELECT ALL 44 DIV 21 FROM tab0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL 44 / 21 FROM tab0
----
2
2
2
query I rowsort
SELECT DISTINCT + ( 80 ) * - col1 FROM tab0
----
-6880
-7280
-7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-4706
SELECT col1 DIV + col2 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4706
SELECT col1 / + col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT - tab0.col1 * col2 AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ( 61 ) AS col0 FROM tab2
----
61
61
61
query I rowsort
SELECT + ( 46 + + col1 ) * + ( 83 ) FROM tab2
----
5229
6391
8715
onlyif mysql # use DIV operator for integer division
query I rowsort label-4710
SELECT cor0.col2 DIV + col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-4710
SELECT cor0.col2 / + col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT DISTINCT 45 * col1 FROM tab2
----
1395
2655
765
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - tab1.col2 col1 FROM tab1
----
0
0
0
query I rowsort
SELECT col1 * - col1 + col2 FROM tab0
----
-7363
-8199
-9408
query I rowsort
SELECT + 94 + col1 FROM tab1
----
104
107
120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + - ( + 55 ) col0 FROM tab2 cor0
----
-24
-38
4
query I rowsort
SELECT DISTINCT - + 19 FROM tab2, tab1, tab0 AS cor0
----
-19
query I rowsort
SELECT - cor0.col2 + + 48 * + col0 AS col0 FROM tab0 AS cor0
----
1119
1679
4190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 1 * + 74 col2 FROM tab0 AS cor0
----
12
17
23
query I rowsort
SELECT col2 * - 88 AS col1 FROM tab0 AS cor0
----
-2904
-7216
-88
query I rowsort
SELECT ALL - - col0 * + col0 * col2 + - col1 AS col1 FROM tab2 AS cor0
----
1292
158125
237141
query I rowsort
SELECT + + col2 * 56 FROM tab1 AS cor0
----
3024
3192
5376
query I rowsort
SELECT cor0.col2 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4723
SELECT ALL + col1 * - CAST( 41 * + col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-139195
-332059
-84624
skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL + col1 * - CAST ( 41 * + col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-139195
-332059
-84624
query I rowsort
SELECT ALL + col1 * - cor0.col1 + 40 + + col2 * + 69 FROM tab0 AS cor0
----
-2583
-5079
-9300
query I rowsort
SELECT DISTINCT 48 AS col0 FROM tab2, tab0 AS cor0
----
48
query I rowsort
SELECT ALL col2 * - 65 - - col0 FROM tab0 AS cor0
----
-2121
-30
-5241
query I rowsort
SELECT ALL tab0.col2 * + 61 FROM tab0
----
2013
5002
61
query I rowsort
SELECT - tab0.col1 * + col0 * tab0.col0 + - col2 FROM tab0
----
-118826
-49569
-720893
query I rowsort
SELECT - col0 + col2 * ( col1 ) * col1 AS col1 FROM tab0 AS cor0
----
244044
678953
9374
query I rowsort
SELECT + col2 + cor0.col0 AS col0 FROM tab2 cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-4731
SELECT - ( col0 ) DIV col2 AS col1 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4731
SELECT - ( col0 ) / col2 AS col1 FROM tab1 AS cor0
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4732
SELECT - CAST( col0 AS SIGNED ) * - col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-4732
SELECT - CAST ( col0 AS INTEGER ) * - col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + ( ( col2 ) ) * 14 AS col0 FROM tab0 cor0
----
1148
14
462
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4734
SELECT CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4734
SELECT CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4735
SELECT ALL + - col0 DIV 41 - col1 AS col1 FROM tab0 AS cor0
----
-86
-93
-97
skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL + - col0 / 41 - col1 AS col1 FROM tab0 AS cor0
----
-86
-93
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4736
SELECT ALL + col0 + col0 DIV - col1 FROM tab2 AS cor0
----
7
75
77
skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL + col0 + col0 / - col1 FROM tab2 AS cor0
----
7
75
77
query I rowsort
SELECT ALL ( 64 ) + + col0 * - 99 FROM tab0 cor0
----
-2312
-3401
-8747
query I rowsort
SELECT + 83 * col2 AS col2 FROM tab2 cor0
----
2158
2241
3154
query I rowsort
SELECT ALL - col0 + - col2 + ( + ( - col0 ) ) AS col0 FROM tab1 cor0
----
-185
-256
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 col2 FROM tab2 AS cor0
----
75
75
75
query I rowsort
SELECT - + 90 AS col2 FROM tab0 AS cor0
----
-90
-90
-90
query I rowsort
SELECT + + col2 + + col2 * col1 AS col0 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT - - col1 * - 75 FROM tab2 AS cor0
----
-1275
-2325
-4425
query I rowsort
SELECT col2 * ( col0 ) + col2 AS col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT + + col1 * + ( - col2 ) * col1 AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT - - col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + - ( col1 ) AS col1 FROM tab1 cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-4748
SELECT col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4748
SELECT col2 / + col0 AS col1 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + - col1 + cor0.col0 * + 73 FROM tab2 AS cor0
----
480
5635
5750
query I rowsort
SELECT - cor0.col2 * col0 AS col0 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4751
SELECT ALL - - col0 + - col0 + - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL - - col0 + - col0 + - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col2 FROM tab1 AS cor0
----
94
94
94
query I rowsort
SELECT ALL col0 * - col2 * - ( 53 ) + - cor0.col1 AS col1 FROM tab2 AS cor0
----
107425
159089
9986
query I rowsort
SELECT - 20 * + col1 AS col2 FROM tab1
----
-200
-260
-520
query I rowsort
SELECT ALL + ( + col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + + cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + 86 * - col2 AS col0 FROM tab1 AS cor0
----
-4644
-4902
-8256
query I rowsort
SELECT - 42 FROM tab0, tab0 cor0
----
9 values hashing to 9894093f29c0defae91347934f060329
query I rowsort
SELECT + ( + col0 ) * col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-4760
SELECT DISTINCT cor0.col2 * + cor0.col1 + ( + 56 + - col0 ) DIV - CAST( 14 AS SIGNED ) FROM tab1 AS cor0
----
1249
1401
570
skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT cor0.col2 * + cor0.col1 + ( + 56 + - col0 ) / - CAST ( 14 AS INTEGER ) FROM tab1 AS cor0
----
1249
1401
570
query I rowsort
SELECT 70 * + col0 AS col2 FROM tab2 AS cor0
----
490
5460
5530
onlyif mysql # use DIV operator for integer division
query I rowsort label-4762
SELECT + 77 + + col0 DIV + 51 FROM tab1
----
77
78
78
skipif mysql # not compatible
query I rowsort label-4762
SELECT + 77 + + col0 / + 51 FROM tab1
----
77
78
78
query I rowsort
SELECT 47 + - 7 FROM tab1, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT ALL cor1.col1 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT - 48 AS col2 FROM tab1 AS cor0
----
-48
query I rowsort
SELECT DISTINCT 67 - 65 AS col2 FROM tab2, tab0 AS cor0
----
2
query I rowsort
SELECT + col1 + 51 AS col0 FROM tab0 cor0
----
137
142
148
query I rowsort
SELECT + 61 - tab0.col2 * tab0.col2 AS col1 FROM tab0
----
-1028
-6663
60
query I rowsort
SELECT DISTINCT + col0 + col2 * + col1 AS col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - - col0 + - col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT DISTINCT 6 AS col0 FROM tab1, tab2 AS cor0
----
6
query I rowsort
SELECT + 13 * ( - col0 ) + col0 * col1 FROM tab1 AS cor0
----
-192
0
39
query I rowsort
SELECT ALL 31 + + col2 FROM tab1 AS cor0
----
127
85
88
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 803a5565701c4ced6bba69940782c17a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 * col2 * 90 col0 FROM tab0 cor0
----
3247
656911
71366
query I rowsort
SELECT - 37 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
query I rowsort
SELECT DISTINCT - col0 * - ( + cor0.col0 + + ( col2 ) ) AS col2 FROM tab1 AS cor0
----
14080
171
7744
query I rowsort
SELECT + col1 + - col1 * col1 AS col2 FROM tab0 AS cor0
----
-7310
-8190
-9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4779
SELECT ALL + CAST( - 55 AS SIGNED ) - col1 FROM tab0 AS cor0
----
-141
-146
-152
skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL + CAST ( - 55 AS INTEGER ) - col1 FROM tab0 AS cor0
----
-141
-146
-152
query I rowsort
SELECT DISTINCT - col0 * + 27 FROM tab1 AS cor0
----
-1728
-2160
-81
query I rowsort
SELECT DISTINCT - + col0 * 75 - - cor0.col2 * + 43 AS col0 FROM tab2 AS cor0
----
-4291
-4732
636
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 95 + - 2 col1 FROM tab2 AS cor0
----
93
93
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4783
SELECT + - CAST( NULL AS SIGNED ) * 43 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4783
SELECT + - CAST ( NULL AS INTEGER ) * 43 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + cor0.col0 * + 37 FROM tab2 AS cor0
----
259
2886
2923
query I rowsort
SELECT ALL - col0 * 71 + col1 + col0 AS col0 FROM tab0 AS cor0
----
-1594
-2353
-6139
query I rowsort
SELECT - ( + col0 ) + col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT - - 46 + + 21 * col0 FROM tab2 AS cor0
----
1684
1705
193
query I rowsort
SELECT + + col0 + col2 + + ( - col0 + col0 ) AS col1 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-4789
SELECT DISTINCT - + col2 + + col1 DIV - cor0.col0 + - col2 FROM tab0 AS cor0
----
-165
-4
-69
skipif mysql # not compatible
query I rowsort label-4789
SELECT DISTINCT - + col2 + + col1 / - cor0.col0 + - col2 FROM tab0 AS cor0
----
-165
-4
-69
query I rowsort
SELECT - - col2 * cor0.col2 + + col0 FROM tab1 AS cor0
----
2919
3313
9296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 + - cor0.col0 col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL + - 59 * col2 FROM tab1 cor0
----
-3186
-3363
-5664
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - cor0.col2 col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT + 94 AS col2 FROM tab0
----
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col1 + 80 col2 FROM tab2 AS cor0
----
1614
726
917
query I rowsort
SELECT ALL + tab0.col2 * col1 + + col0 AS col1 FROM tab0
----
132
2862
7551
query I rowsort
SELECT - 47 AS col0 FROM tab0 AS cor0
----
-47
-47
-47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4798
SELECT ALL col1 * CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL col1 * CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + - col0 * + 90 + - col2 AS col0 FROM tab2 AS cor0
----
-657
-7046
-7148
onlyif mysql # use DIV operator for integer division
query I rowsort label-4800
SELECT tab1.col0 DIV - ( - col1 ) AS col0 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-4800
SELECT tab1.col0 / - ( - col1 ) AS col0 FROM tab1
----
0
6
6
query I rowsort
SELECT + cor1.col0 AS col0 FROM tab0, tab1, tab2 AS cor0, tab2 AS cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT DISTINCT col2 + + col1 AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT - col1 + col2 + col2 * col0 AS col2 FROM tab0
----
-61
7289
739
query I rowsort
SELECT DISTINCT - col2 * + col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - - col2 * + col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - 40 + + col0 AS col1 FROM tab2 AS cor0
----
-33
38
39
query I rowsort
SELECT + ( col0 ) * cor0.col1 + + 6 * col1 FROM tab2 AS cor0
----
1445
403
4956
query I rowsort
SELECT ALL col0 - + tab1.col0 * + ( tab1.col2 ) FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT ALL col0 - col2 AS col1 FROM tab1
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4810
SELECT ALL + CAST( NULL AS DECIMAL ) + + col1 * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL + CAST ( NULL AS REAL ) + + col1 * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( + col2 ) * - col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + - col2 * 52 + + col2 AS col2 FROM tab2 AS cor0
----
-1326
-1377
-1938
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 * - col2 - col1 * + col0 col1 FROM tab2 AS cor0
----
-1267
-163
-4550
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4814
SELECT ALL CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col1 + col2 * + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-4816
SELECT ALL col2 - - tab1.col2 DIV - col2 AS col2 FROM tab1
----
53
56
95
skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL col2 - - tab1.col2 / - col2 AS col2 FROM tab1
----
53
56
95
query I rowsort
SELECT - tab0.col1 * - ( 9 ) AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 74b89488c41a18062094631642fbd640
query I rowsort
SELECT DISTINCT col0 * - col1 + - col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 / col2 )
----
query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col2 + cor0.col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col1 )
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 <> col0 * - col0
----
query I rowsort
SELECT col0 * col2 AS col0 FROM tab0 WHERE NOT + col2 BETWEEN NULL AND col2 + col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 * - col0 col1 FROM tab0
----
-1224
-543
-7839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 * - tab1.col1 + col2 + - col1 col0 FROM tab1
----
16307
36532
5747
query I rowsort
SELECT col0 - + tab0.col1 * col0 FROM tab0
----
-2040
-3360
-8010
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( - col0 + col2 - col1 )
----
query I rowsort
SELECT ALL col1 - tab1.col0 * + col1 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT + col1 * col2 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL - tab0.col2 - col2 * col0 FROM tab0
----
-36
-7380
-825
onlyif mysql # use DIV operator for integer division
query I rowsort label-4831
SELECT - col1 + col0 DIV col0 AS col2 FROM tab1
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-4831
SELECT - col1 + col0 / col0 AS col2 FROM tab1
----
-12
-25
-9
query I rowsort
SELECT ALL - + col0 * + cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT - - cor0.col0 + + col0 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-4834
SELECT ALL - col1 * - col1 + col1 * + cor0.col0 DIV col0 AS col1 FROM tab1 AS cor0
----
110
182
702
skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL - col1 * - col1 + col1 * + cor0.col0 / col0 AS col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT DISTINCT cor0.col1 * col2 * col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT col0 + + col0 * + col2 AS col1 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL - tab0.col1 * col0 + col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT col0 + - col2 + - tab2.col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT tab0.col0 * - tab0.col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL col0 * + col0 + + col2 * col1 AS col1 FROM tab1
----
1413
4666
7648
onlyif mysql # use DIV operator for integer division
query I rowsort label-4841
SELECT DISTINCT col2 * + col0 * col2 + + tab2.col2 * col1 DIV - col1 FROM tab2
----
114038
5076
52702
skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT col2 * + col0 * col2 + + tab2.col2 * col1 / - col1 FROM tab2
----
114038
5076
52702
onlyif mysql # use DIV operator for integer division
query I rowsort label-4842
SELECT + - col2 DIV col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-4842
SELECT + - col2 / col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT DISTINCT col1 + col0 * col0 + + col2 AS col2 FROM tab2
----
107
6169
6296
query I rowsort
SELECT ALL col2 * - col0 + - col2 AS col0 FROM tab0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
54
57
96
query I rowsort
SELECT + col2 + + col0 AS col1 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT col1 * - col1 * col2 AS col0 FROM tab2
----
-10982
-25947
-90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col0 col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
7
78
79
query I rowsort
SELECT tab1.col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT + col2 + - col0 FROM tab2 cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-4851
SELECT DISTINCT - - col2 + col1 DIV col1 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT - - col2 + col1 / col1 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT DISTINCT + col1 * + col1 + col0 * - col0 FROM tab1 AS cor0
----
-3996
-6231
667
query I rowsort
SELECT ALL - col2 + - col0 FROM tab0 cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT col0 * + tab1.col0 AS col2 FROM tab1
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4855
SELECT col1 DIV col0 + col0 AS col1 FROM tab0 cor0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-4855
SELECT col1 / col0 + col0 AS col1 FROM tab0 cor0
----
27
37
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + col1 * + 8 col2 FROM tab2 AS cor0
----
153
279
531
query I rowsort
SELECT + 67 * + tab0.col1 + + col0 * col1 FROM tab0
----
14196
7826
9894
query I rowsort
SELECT 22 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
onlyif mysql # use DIV operator for integer division
query I rowsort label-4859
SELECT col1 DIV + col0 col1 FROM tab1 AS cor0
----
0
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4859
SELECT col1 / + col0 col1 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT DISTINCT 67 * - col1 FROM tab2
----
-1139
-2077
-3953
query I rowsort
SELECT 9 + col0 FROM tab2
----
16
87
88
query I rowsort
SELECT + + col1 + 98 FROM tab2 AS cor0
----
115
129
157
query I rowsort
SELECT + col1 * - col1 + - 17 FROM tab2 AS cor0
----
-306
-3498
-978
query I rowsort
SELECT ALL 21 AS col0 FROM tab0
----
21
21
21
query I rowsort
SELECT + col2 * - 50 * - col1 + col1 FROM tab0 AS cor0
----
141986
373191
4947
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + tab2.col0 ) col0 FROM tab2, tab0 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT col1 * - col2 + - col2 FROM tab1
----
-1344
-1458
-627
query III rowsort
SELECT * FROM tab0 WHERE NULL >= col2
----
query I rowsort
SELECT ALL col1 * + col0 + tab0.col0 FROM tab0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-4870
SELECT - col2 DIV - col0 - col1 AS col1 FROM tab0
----
-85
-91
-97
skipif mysql # not compatible
query I rowsort label-4870
SELECT - col2 / - col0 - col1 AS col1 FROM tab0
----
-85
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4871
SELECT col2 * col1 DIV col2 + col0 FROM tab0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-4871
SELECT col2 * col1 / col2 + col0 FROM tab0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-4872
SELECT - col2 DIV + col0 - - tab1.col0 AS col2 FROM tab1
----
-15
64
79
skipif mysql # not compatible
query I rowsort label-4872
SELECT - col2 / + col0 - - tab1.col0 AS col2 FROM tab1
----
-15
64
79
query I rowsort
SELECT col2 - - col2 AS col0 FROM tab0
----
164
2
66
query I rowsort
SELECT ALL + col2 + - col0 * - col2 - col1 * - col2 * + col2 AS col1 FROM tab1
----
127584
36195
76032
query I rowsort
SELECT DISTINCT + col0 - tab0.col0 FROM tab0
----
0
query I rowsort
SELECT + col1 - + tab1.col1 FROM tab1
----
0
0
0
query I rowsort
SELECT cor0.col1 + + cor0.col1 * ( col0 + - col2 * - col0 ) AS col2 FROM tab1 AS cor0
----
100893
37130
4316
query I rowsort
SELECT - col1 * - col2 * col2 + + ( col2 ) FROM tab0 AS cor0
----
611966
93687
98
query I rowsort
SELECT col1 * + col0 + + ( col0 + - col1 ) * - ( + col2 + col2 ) * col2 FROM tab0 AS cor0
----
137100
34995
3519
query I rowsort
SELECT - + col2 - + col1 AS col2 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT + col0 - cor0.col0 AS col2 FROM tab2 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 * 65 + + col0 + + col0 col2 FROM tab1 AS cor0
----
-3504
-3577
-6080
onlyif mysql # use DIV operator for integer division
query I rowsort label-4883
SELECT DISTINCT - - col0 DIV - 12 FROM tab0 AS cor0
----
-2
-7
skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT - - col0 / - 12 FROM tab0 AS cor0
----
-2
-7
query I rowsort
SELECT + col1 * + 20 AS col0 FROM tab1 AS cor0
----
200
260
520
query I rowsort
SELECT DISTINCT + col2 * 36 FROM tab0 AS cor0
----
1188
2952
36
query I rowsort
SELECT + + cor0.col1 + ( col2 ) + col0 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT DISTINCT cor0.col2 * col0 + + col1 FROM tab1 AS cor0
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 * + ( + col1 ) col2 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT - col0 * col2 * 42 FROM tab0 AS cor0
----
-1470
-306516
-33264
onlyif mysql # use DIV operator for integer division
query I rowsort label-4890
SELECT - + col2 DIV + col0 + ( cor0.col2 ) * - col0 FROM tab1 AS cor0
----
-180
-3648
-7681
skipif mysql # not compatible
query I rowsort label-4890
SELECT - + col2 / + col0 + ( cor0.col2 ) * - col0 FROM tab1 AS cor0
----
-180
-3648
-7681
onlyif mysql # use DIV operator for integer division
query I rowsort label-4891
SELECT col0 DIV ( col1 * - cor0.col2 ) + + col2 + col0 AS col2 FROM tab1 AS cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-4891
SELECT col0 / ( col1 * - cor0.col2 ) + + col2 + col0 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL col1 * 81 FROM tab1 cor0
----
1053
2106
810
query I rowsort
SELECT DISTINCT - col0 * 94 AS col2 FROM tab1 AS cor0
----
-282
-6016
-7520
onlyif mysql # use DIV operator for integer division
query I rowsort label-4894
SELECT ALL + col1 DIV ( cor0.col1 * col0 + - col2 ) FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL + col1 / ( cor0.col1 * col0 + - col2 ) FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 col2 FROM tab1 AS cor0
----
-78
-78
-78
query I rowsort
SELECT DISTINCT - + 3 FROM tab2 AS cor0
----
-3
query I rowsort
SELECT DISTINCT - - 87 AS col1 FROM tab2 AS cor0
----
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 3 + - cor0.col0 * + col2 col0 FROM tab1 AS cor0
----
-159
-3645
-7677
onlyif mysql # use DIV operator for integer division
query I rowsort label-4899
SELECT 34 DIV - col0 FROM tab1 AS cor0
----
-11
0
0
skipif mysql # not compatible
query I rowsort label-4899
SELECT 34 / - col0 FROM tab1 AS cor0
----
-11
0
0
query I rowsort
SELECT - cor1.col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 * 56 col2 FROM tab1 AS cor0
----
4648
4648
4648
query I rowsort
SELECT - 32 * col0 AS col1 FROM tab0 AS cor0
----
-1120
-2848
-768
query I rowsort
SELECT DISTINCT + - 54 * col0 + - col1 AS col1 FROM tab1 AS cor0
----
-188
-3466
-4333
query I rowsort
SELECT 3 FROM tab2 cor0
----
3
3
3
query I rowsort
SELECT ALL + col0 + col1 + tab1.col0 AS col0 FROM tab1
----
138
173
32
query I rowsort
SELECT ALL - col2 + col2 + col1 * + tab2.col2 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT - col0 * col2 - ( 50 + col0 ) AS col0 FROM tab0 AS cor0
----
-120
-7437
-866
onlyif mysql # use DIV operator for integer division
query I rowsort label-4908
SELECT DISTINCT + col2 DIV col0 col0 FROM tab0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT + col2 / col0 col0 FROM tab0
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4909
SELECT 89 DIV col1 - col1 FROM tab1 cor0
----
-2
-23
-7
skipif mysql # not compatible
query I rowsort label-4909
SELECT 89 / col1 - col1 FROM tab1 cor0
----
-2
-23
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 - + col0 col2 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT 29 + + col1 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
33
62
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-4912
SELECT ALL + tab2.col1 + tab2.col2 - 44 DIV + col0 FROM tab2
----
52
55
85
skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL + tab2.col1 + tab2.col2 - 44 / + col0 FROM tab2
----
52
55
85
query I rowsort
SELECT ALL + tab1.col2 - col1 AS col0 FROM tab1
----
28
47
83
query I rowsort
SELECT ALL - col2 - + col0 FROM tab0
----
-171
-36
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4915
SELECT - col1 * - col1 + CAST( - col1 AS SIGNED ) FROM tab0
----
7310
8190
9312
skipif mysql # not compatible
query I rowsort label-4915
SELECT - col1 * - col1 + CAST ( - col1 AS INTEGER ) FROM tab0
----
7310
8190
9312
query I rowsort
SELECT ALL - col0 * tab1.col1 FROM tab1
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 col1 FROM tab2
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-4918
SELECT + col1 + - col2 + ( col1 + + col0 ) DIV col0 FROM tab2 AS cor0
----
-20
34
9
skipif mysql # not compatible
query I rowsort label-4918
SELECT + col1 + - col2 + ( col1 + + col0 ) / col0 FROM tab2 AS cor0
----
-20
34
9
query I rowsort
SELECT DISTINCT + col0 * col2 - - ( ( - col1 ) ) AS col0 FROM tab1
----
136
3638
7667
query I rowsort
SELECT + ( col2 * - col2 ) - col1 AS col2 FROM tab2
----
-1461
-735
-760
query I rowsort
SELECT - col1 + + col2 AS col2 FROM tab1
----
28
47
83
query I rowsort
SELECT + col2 + col2 + col1 * col2 * - tab1.col0 AS col1 FROM tab1
----
-36366
-4104
-99648
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( col0 + col1 / + col1 ) AND NOT col0 <= NULL
----
query I rowsort
SELECT DISTINCT tab2.col0 + - tab2.col1 AS col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT + col0 + + col0 * col2 + col2 AS col0 FROM tab2
----
2132
223
3119
onlyif mysql # use DIV operator for integer division
query I rowsort label-4926
SELECT ALL col0 + cor0.col1 * - cor0.col0 DIV + col0 FROM tab2 AS cor0
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL col0 + cor0.col1 * - cor0.col0 / + col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - + cor0.col1 * - col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - col0 * col0 + + col0 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
-3392
-5280
72
query I rowsort
SELECT ALL + - col2 + + col2 + col1 * + col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT col1 + + col0 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT col0 * + col1 + - col1 * col1 * + col0 AS col1 FROM tab0 AS cor0
----
-175440
-325920
-728910
query I rowsort
SELECT - + col1 - col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT DISTINCT col0 * col0 + col1 + col1 * col2 FROM tab0 AS cor0
----
1419
15474
3500
query I rowsort
SELECT - col2 * 57 + col2 AS col1 FROM tab0
----
-1848
-4592
-56
query I rowsort
SELECT - col2 + col1 * tab2.col1 AS col1 FROM tab2
----
251
3455
934
query I rowsort
SELECT ALL - col2 * col0 AS col2 FROM tab1
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4937
SELECT - 16 * + ( col2 ) - col1 DIV col0 AS col0 FROM tab2
----
-416
-436
-608
skipif mysql # not compatible
query I rowsort label-4937
SELECT - 16 * + ( col2 ) - col1 / col0 AS col0 FROM tab2
----
-416
-436
-608
query I rowsort
SELECT DISTINCT - cor0.col2 + tab1.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 47a4227315817d5eeef3b762d3e2df42
query I rowsort
SELECT ALL + + col2 + col1 + cor0.col1 AS col2 FROM tab1 cor0
----
106
122
77
query I rowsort
SELECT ALL - + 25 AS col2 FROM tab0 AS cor0
----
-25
-25
-25
query I rowsort
SELECT DISTINCT - + cor0.col0 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-4942
SELECT ALL 88 * + col2 + - col1 DIV - col0 AS col2 FROM tab0 AS cor0
----
2907
7217
90
skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL 88 * + col2 + - col1 / - col0 AS col2 FROM tab0 AS cor0
----
2907
7217
90
query I rowsort
SELECT ALL 5 * cor0.col2 + col2 AS col0 FROM tab2 AS cor0
----
156
162
228
query I rowsort
SELECT + + ( + col2 ) * + col2 AS col0 FROM tab2 cor0
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 col1 FROM tab0 AS cor0
----
16
query I rowsort
SELECT ALL + col1 + col1 AS col0 FROM tab1 cor0
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + + col2 * + col2 col2 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT ALL col0 * col1 + + col0 - - col0 FROM tab0 AS cor0
----
2112
3465
8277
query I rowsort
SELECT ALL + col2 * col2 - + col1 AS col0 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT ALL col0 * col2 * col0 + col1 AS col0 FROM tab2 AS cor0
----
1354
158243
237175
query I rowsort
SELECT ALL - - col2 * col2 FROM tab0 cor0
----
1
1089
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4952
SELECT DISTINCT CAST( + 63 AS SIGNED ) * - tab1.col1 AS col1 FROM tab1
----
-1638
-630
-819
skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT CAST ( + 63 AS INTEGER ) * - tab1.col1 AS col1 FROM tab1
----
-1638
-630
-819
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 + col1 col0 FROM tab1
----
109
67
80
query I rowsort
SELECT + 10 - col2 FROM tab2
----
-16
-17
-28
query I rowsort
SELECT + col2 + tab2.col2 * col1 AS col0 FROM tab2
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-4956
SELECT + tab0.col0 DIV tab0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
skipif mysql # not compatible
query I rowsort label-4956
SELECT + tab0.col0 / tab0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
onlyif mysql # use DIV operator for integer division
query I rowsort label-4957
SELECT ALL + + 30 DIV - col1 + col1 * col2 AS col2 FROM tab2 AS cor0
----
1534
645
837
skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL + + 30 / - col1 + col1 * col2 AS col2 FROM tab2 AS cor0
----
1534
645
837
query I rowsort
SELECT DISTINCT + 26 FROM tab0 cor0
----
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-4959
SELECT ALL - - col0 * + col1 + col1 + cor0.col0 DIV col1 AS col0 FROM tab1 AS cor0
----
104
1059
656
skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL - - col0 * + col1 + col1 + cor0.col0 / col1 AS col0 FROM tab1 AS cor0
----
104
1059
656
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col1 col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT DISTINCT + col1 * - col0 - - col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL cor0.col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - col2 + + col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT ALL - col1 * - 32 + - cor0.col1 + + 76 AS col0 FROM tab1 AS cor0
----
386
479
882
query I rowsort
SELECT ( 24 ) * col0 FROM tab0
----
2136
576
840
query I rowsort
SELECT + col1 * 74 AS col2 FROM tab0
----
6364
6734
7178
query I rowsort
SELECT cor0.col1 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT - col0 * 64 FROM tab0
----
-1536
-2240
-5696
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1 cor2
----
972 values hashing to f8fe28681e8720551e1ec173631fc529
query I rowsort
SELECT col2 - col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + col2 - 38 FROM tab0 cor0
----
-37
-5
44
query I rowsort
SELECT DISTINCT + col2 + ( - 73 ) FROM tab0 AS cor0
----
-40
-72
9
query I rowsort
SELECT DISTINCT - col1 + ( 97 ) FROM tab0 AS cor0
----
0
11
6
query I rowsort
SELECT + cor0.col0 * ( cor0.col2 ) + col0 * + col2 AS col2 FROM tab2 AS cor0
----
378
4056
6004
query I rowsort
SELECT ALL col2 * col2 - - cor0.col2 * col2 FROM tab1 AS cor0
----
18432
5832
6498
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4976
SELECT - CAST( col0 AS SIGNED ) * + col0 + + 78 * + 26 FROM tab0 AS cor0
----
-5893
1452
803
skipif mysql # not compatible
query I rowsort label-4976
SELECT - CAST ( col0 AS INTEGER ) * + col0 + + 78 * + 26 FROM tab0 AS cor0
----
-5893
1452
803
query I rowsort
SELECT DISTINCT + - col1 - 74 * - col1 * - 80 AS col1 FROM tab1 AS cor0
----
-153946
-59210
-76973
query I rowsort
SELECT - 78 * cor0.col2 * col1 + col0 AS col0 FROM tab2 AS cor0
----
-119574
-50309
-65279
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 61 col0 FROM tab1 cor0
----
-115
-118
-157
query I rowsort
SELECT ALL - col2 * col1 + - col1 * - col0 AS col1 FROM tab1
----
-1326
-208
70
query I rowsort
SELECT ALL - col1 + col1 * - col1 * + col1 FROM tab2
----
-205438
-29822
-4930
onlyif mysql # use DIV operator for integer division
query I rowsort label-4982
SELECT - tab0.col0 * 39 + 56 DIV col2 FROM tab0
----
-1309
-3471
-935
skipif mysql # not compatible
query I rowsort label-4982
SELECT - tab0.col0 * 39 + 56 / col2 FROM tab0
----
-1309
-3471
-935
query I rowsort
SELECT col0 * cor0.col1 - - col0 * + col2 * - col2 FROM tab0 AS cor0
----
-24072
-590337
3360
query I rowsort
SELECT - ( + col2 ) - + col2 AS col1 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT col1 - + col2 * tab2.col2 AS col0 FROM tab2
----
-1427
-617
-698
query I rowsort
SELECT ALL + col2 * col0 + - tab0.col2 * tab0.col1 AS col2 FROM tab0
----
-164
-2046
-62
query I rowsort
SELECT DISTINCT col1 + tab1.col2 + col1 AS col2 FROM tab1
----
106
122
77
query I rowsort
SELECT cor0.col1 * - col0 * + col1 AS col2 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT ALL + ( - cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT col1 * - 52 FROM tab2 AS cor0
----
-1612
-3068
-884
query I rowsort
SELECT DISTINCT ( + 78 ) + cor2.col1 FROM tab1, tab0 AS cor0, tab1 cor1, tab2 AS cor2
----
109
137
95
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col0 AS REAL ) + - col2 * 45 FROM tab1 cor0
----
-2427
-2501
-4240
query I rowsort
SELECT + 59 + col2 * col0 FROM tab0 AS cor0
----
7357
851
94
query I rowsort
SELECT ALL col0 * + col1 AS col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - + col1 * col2 * 75 FROM tab1 AS cor0
----
-105300
-42750
-93600
query I rowsort
SELECT - cor0.col1 + + col0 * + col0 FROM tab2 cor0
----
18
6025
6224
query I rowsort
SELECT ALL + 30 + col1 FROM tab0 AS cor0
----
116
121
127
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * col1 * - 69 col0 FROM tab0
----
-142416
-234255
-558831
onlyif mysql # use DIV operator for integer division
query I rowsort label-4999
SELECT - col1 + + col0 DIV 61 AS col2 FROM tab2 AS cor0
----
-16
-31
-58
skipif mysql # not compatible
query I rowsort label-4999
SELECT - col1 + + col0 / 61 AS col2 FROM tab2 AS cor0
----
-16
-31
-58
query I rowsort
SELECT ALL - + ( col1 ) * 48 AS col0 FROM tab0 AS cor0
----
-4128
-4368
-4656
onlyif mysql # use DIV operator for integer division
query I rowsort label-5001
SELECT + col2 + + col2 DIV - 5 + ( - col1 + 93 * + col2 ) FROM tab0 AS cor0
----
-3
3010
7601
skipif mysql # not compatible
query I rowsort label-5001
SELECT + col2 + + col2 / - 5 + ( - col1 + 93 * + col2 ) FROM tab0 AS cor0
----
-3
3010
7601
query I rowsort
SELECT 26 * col2 + 27 FROM tab2 AS cor0
----
1015
703
729
query I rowsort
SELECT ALL 40 * col1 FROM tab0
----
3440
3640
3880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 col1 FROM tab1
----
91
91
91
query I rowsort
SELECT + - col2 * + col2 AS col1 FROM tab1 cor0
----
-2916
-3249
-9216
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 8 ) col1 FROM tab1, tab2 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT + + cor0.col1 + 75 * - col2 FROM tab2 AS cor0
----
-1891
-1994
-2833
onlyif mysql # use DIV operator for integer division
query I rowsort label-5009
SELECT + cor0.col0 DIV + 22 AS col1 FROM tab1 AS cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-5009
SELECT + cor0.col0 / + 22 AS col1 FROM tab1 AS cor0
----
0
2
3
query I rowsort
SELECT ALL 50 - col1 FROM tab1
----
24
37
40
query I rowsort
SELECT ALL - col0 + - col0 AS col2 FROM tab0
----
-178
-48
-70
query I rowsort
SELECT + col1 - + col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT col1 + tab1.col1 + + 20 FROM tab1
----
40
46
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 74 + + tab1.col0 col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 5976b78409596af53bf9a7de3e7bf7f6
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-5016
SELECT col0 DIV + col0 + CAST( col0 AS SIGNED ) * + col1 AS col0 FROM tab2 AS cor0
----
1344
218
4603
skipif mysql # not compatible
query I rowsort label-5016
SELECT col0 / + col0 + CAST ( col0 AS INTEGER ) * + col1 AS col0 FROM tab2 AS cor0
----
1344
218
4603
query I rowsort
SELECT DISTINCT + col1 + - col2 * 75 FROM tab1 AS cor0
----
-4024
-4265
-7187
onlyif mysql # use DIV operator for integer division
query I rowsort label-5018
SELECT ALL + col2 DIV ( cor0.col0 ) + col0 AS col1 FROM tab0 AS cor0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL + col2 / ( cor0.col0 ) + col0 AS col1 FROM tab0 AS cor0
----
25
35
89
query I rowsort
SELECT ALL + - col2 * ( + 7 ) + + col2 AS col2 FROM tab0 AS cor0
----
-198
-492
-6
query I rowsort
SELECT ALL - - col1 * + col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-5021
SELECT col0 * + col0 + + col0 DIV + col1 FROM tab1 AS cor0
----
4102
6406
9
skipif mysql # not compatible
query I rowsort label-5021
SELECT col0 * + col0 + + col0 / + col1 FROM tab1 AS cor0
----
4102
6406
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5022
SELECT + col0 DIV col2 col0 FROM tab0 AS cor0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5022
SELECT + col0 / col2 col0 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT ALL + col2 * + 86 + col0 AS col2 FROM tab1 AS cor0
----
4647
4966
8336
query I rowsort
SELECT + 50 * + tab0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 332185024a608e83cd9cb357cb48bdf6
query I rowsort
SELECT ALL - + col1 + - 39 * - col0 FROM tab0 AS cor0
----
1268
3380
850
query I rowsort
SELECT ALL - col1 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + col2 + ( - col2 + col0 ) FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * 3 - cor0.col2 col2 FROM tab0 AS cor0
----
-291
-292
-355
query I rowsort
SELECT DISTINCT + col0 * - col1 + col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-5030
SELECT ALL - + col2 DIV 17 AS col2 FROM tab1 AS cor0
----
-3
-3
-5
skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL - + col2 / 17 AS col2 FROM tab1 AS cor0
----
-3
-3
-5
query I rowsort
SELECT DISTINCT - col2 + + 27 * - col1 FROM tab0 AS cor0
----
-2355
-2539
-2620
query I rowsort
SELECT - - col1 + 21 * col0 AS col2 FROM tab1 AS cor0
----
1354
1693
89
query I rowsort
SELECT + col1 * - 62 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-1609
-556
-726
onlyif mysql # use DIV operator for integer division
query I rowsort label-5034
SELECT + - col2 DIV 68 FROM tab1 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5034
SELECT + - col2 / 68 FROM tab1 cor0
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5035
SELECT ALL - + col0 * 48 + col0 * - cor0.col0 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL - + col0 * 48 + col0 * - cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col2 * - col2 + 38 AS col2 FROM tab1 AS cor0
----
-2878
-3211
-9178
query I rowsort
SELECT DISTINCT + + col1 + - 60 AS col2 FROM tab1 AS cor0
----
-34
-47
-50
onlyif mysql # use DIV operator for integer division
query I rowsort label-5038
SELECT + col1 DIV - col1 - - ( + cor0.col2 ) * - col0 AS col2 FROM tab1 AS cor0
----
-163
-3649
-7681
skipif mysql # not compatible
query I rowsort label-5038
SELECT + col1 / - col1 - - ( + cor0.col2 ) * - col0 AS col2 FROM tab1 AS cor0
----
-163
-3649
-7681
query I rowsort
SELECT ALL - col1 * ( + 46 ) + + col1 AS col2 FROM tab0 cor0
----
-3870
-4095
-4365
query I rowsort
SELECT DISTINCT + col1 * 39 + + col0 * col1 AS col1 FROM tab0 AS cor0
----
11648
5418
7178
query I rowsort
SELECT DISTINCT + + col0 + - col2 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT ALL col2 * + col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + + cor0.col1 * + col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL 97 * col2 FROM tab0 AS cor0
----
3201
7954
97
query I rowsort
SELECT - ( col2 ) * + cor0.col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ( - 34 ) AS col1 FROM tab1 AS cor0
----
-34
-34
-34
query I rowsort
SELECT DISTINCT + 53 * col1 - col2 AS col0 FROM tab0 AS cor0
----
4525
4741
5140
query I rowsort
SELECT DISTINCT - - col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5049
SELECT ALL - - ( - 66 ) DIV col0 + col1 + + cor0.col2 FROM tab1 AS cor0
----
109
58
66
skipif mysql # not compatible
query I rowsort label-5049
SELECT ALL - - ( - 66 ) / col0 + col1 + + cor0.col2 FROM tab1 AS cor0
----
109
58
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-5050
SELECT ALL + 75 DIV 20 + - col2 AS col2 FROM tab1 AS cor0
----
-51
-54
-93
skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL + 75 / 20 + - col2 AS col2 FROM tab1 AS cor0
----
-51
-54
-93
query I rowsort
SELECT DISTINCT col1 - col2 AS col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL + - ( - col1 ) + 13 + col1 FROM tab1 AS cor0
----
33
39
65
query I rowsort
SELECT ALL + 37 + + col2 FROM tab0 AS cor0
----
119
38
70
query I rowsort
SELECT DISTINCT 14 * + cor0.col1 + col1 FROM tab0 AS cor0
----
1290
1365
1455
query I rowsort
SELECT ALL + - 29 * col1 + + col1 * - 51 - col1 FROM tab0 AS cor0
----
-6966
-7371
-7857
query I rowsort
SELECT col2 * col1 + - col0 * col1 * - col1 FROM tab2 AS cor0
----
23477
273052
7564
query I rowsort
SELECT DISTINCT - cor0.col2 + col1 * ( + col2 * col1 ) FROM tab1 AS cor0
----
16128
36450
5643
query I rowsort
SELECT ALL + col0 * col1 - ( cor0.col2 ) FROM tab2 cor0
----
1305
190
4576
query I rowsort
SELECT ALL - 80 + + col1 * - ( 21 ) FROM tab0 AS cor0
----
-1886
-1991
-2117
query I rowsort
SELECT ALL + col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5061
SELECT DISTINCT - 13 * col2 * + CAST( + 17 AS SIGNED ) + cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
-12096
-16245
-28896
skipif mysql # not compatible
query I rowsort label-5061
SELECT DISTINCT - 13 * col2 * + CAST ( + 17 AS INTEGER ) + cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
-12096
-16245
-28896
query I rowsort
SELECT ALL + cor0.col1 * + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT 95 * + col0 FROM tab0 cor0
----
2280
3325
8455
query I rowsort
SELECT ALL + 49 + col1 AS col1 FROM tab2 cor0
----
108
66
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5065
SELECT - cor0.col1 DIV - cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-5065
SELECT - cor0.col1 / - cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT DISTINCT + col0 * col0 * + col2 FROM tab1
----
233472
486
614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-5067
SELECT DISTINCT - tab2.col0 DIV 73 AS col2 FROM tab2
----
-1
0
skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT - tab2.col0 / 73 AS col2 FROM tab2
----
-1
0
query I rowsort
SELECT + cor0.col0 AS col0 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT - - ( col2 ) + 79 FROM tab2 AS cor0
----
105
106
117
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT + col1 - cor0.col1 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT 87 + col2 AS col0 FROM tab2
----
113
114
125
query I rowsort
SELECT - 3 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc
query I rowsort
SELECT + - 72 * cor0.col1 FROM tab0 AS cor0
----
-6192
-6552
-6984
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5075
SELECT ALL + CAST( NULL AS DECIMAL ) + 12 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL + CAST ( NULL AS REAL ) + 12 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( + col0 ) * - col0 + col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT ALL 74 * col1 FROM tab2 AS cor0
----
1258
2294
4366
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5078
SELECT CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5078
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5079
SELECT CAST( 54 AS SIGNED ) FROM tab1, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
skipif mysql # not compatible
query I rowsort label-5079
SELECT CAST ( 54 AS INTEGER ) FROM tab1, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT ALL - col0 + tab0.col2 * tab0.col0 * col2 FROM tab0
----
0
26112
598347
query I rowsort
SELECT DISTINCT + col1 + col0 + + 23 FROM tab0
----
133
155
203
query I rowsort
SELECT + ( - col2 ) + col0 AS col0 FROM tab1
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 * col0 col2 FROM tab1
----
234
40960
83200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5084
SELECT + CAST( + tab2.col1 AS SIGNED ) AS col1 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-5084
SELECT + CAST ( + tab2.col1 AS INTEGER ) AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT - tab0.col1 * + 22 * - col2 AS col1 FROM tab0
----
164164
2134
62436
query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
26
27
38
query I rowsort
SELECT ALL ( 46 * col2 ) AS col0 FROM tab2
----
1196
1242
1748
query I rowsort
SELECT col1 * - cor0.col1 + ( + cor0.col0 ) FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT tab1.col1 * - ( col1 ) * col1 AS col1 FROM tab1
----
-1000
-17576
-2197
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5090
SELECT - - cor0.col1 + + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5090
SELECT - - cor0.col1 + + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5091
SELECT - col1 * CAST( NULL AS SIGNED ) col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5091
SELECT - col1 * CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 5 AS col0 FROM tab0
----
-5
-5
-5
query I rowsort
SELECT ALL 98 * - col0 AS col1 FROM tab0
----
-2352
-3430
-8722
query I rowsort
SELECT DISTINCT 84 FROM tab2, tab2 AS cor0
----
84
query I rowsort
SELECT ALL + 13 AS col2 FROM tab2 AS cor0
----
13
13
13
query I rowsort
SELECT DISTINCT + col0 + - ( col2 ) * + ( + col0 ) FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT - cor0.col1 + + col0 * col2 AS col2 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT + 30 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5099
SELECT ALL CAST( 63 AS SIGNED ) AS col1 FROM tab0
----
63
63
63
skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL CAST ( 63 AS INTEGER ) AS col1 FROM tab0
----
63
63
63
query I rowsort
SELECT col0 + col1 AS col1 FROM tab2 cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 5 * cor0.col1 - ( + cor0.col1 ) col1 FROM tab0 AS cor0
----
-516
-546
-582
query I rowsort
SELECT - 88 * col0 + 61 + - col0 * + col0 FROM tab0 AS cor0
----
-15692
-2627
-4244
query I rowsort
SELECT DISTINCT ( col2 ) * cor0.col2 + 86 AS col0 FROM tab0 AS cor0
----
1175
6810
87
query I rowsort
SELECT tab0.col1 * - col2 AS col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT - 45 - col2 FROM tab1 cor0
----
-102
-141
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 col1 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5107
SELECT col0 * + col0 * col1 - col2 DIV col1 FROM tab1 cor0
----
232
40955
83193
skipif mysql # not compatible
query I rowsort label-5107
SELECT col0 * + col0 * col1 - col2 / col1 FROM tab1 cor0
----
232
40955
83193
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 35 + col1 col2 FROM tab0 AS cor0
----
121
126
132
query I rowsort
SELECT 35 * - col0 - + col2 FROM tab0 AS cor0
----
-1226
-3197
-873
query I rowsort
SELECT ALL + 43 AS col0 FROM tab2
----
43
43
43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5111
SELECT ALL ( col1 * + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL ( col1 * + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - 97 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 12bd12d33f03250bee508c5641e140d5
query I rowsort
SELECT - ( col1 ) * col2 FROM tab2 cor0
----
-1534
-646
-837
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 4c0813b2179303fdf58f082d81d6d03c
query I rowsort
SELECT - col2 + + 10 * + 96 AS col0 FROM tab0 AS cor0
----
878
927
959
query I rowsort
SELECT + col2 + - ( + 90 ) * col1 AS col1 FROM tab2 cor0
----
-1492
-2763
-5284
query I rowsort
SELECT DISTINCT + col1 + col0 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + - col2 * ( - 75 ) + - col0 AS col0 FROM tab0 AS cor0
----
2451
40
6061
onlyif mysql # use DIV operator for integer division
query I rowsort label-5119
SELECT - col0 DIV 17 + - col2 AS col1 FROM tab1 AS cor0
----
-100
-54
-60
skipif mysql # not compatible
query I rowsort label-5119
SELECT - col0 / 17 + - col2 AS col1 FROM tab1 AS cor0
----
-100
-54
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 * + col2 col2 FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-5121
SELECT + col2 * col0 DIV + col0 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-5121
SELECT + col2 * col0 / + col0 FROM tab2
----
26
27
38
query I rowsort
SELECT 5 AS col0 FROM tab2
----
5
5
5
query I rowsort
SELECT ALL - 95 * - tab0.col2 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 3c2b177cd283fe3ee69fa1682e121f70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 col0 FROM tab0
----
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-5125
SELECT col0 DIV + 68 + col0 FROM tab0 AS cor0
----
24
35
90
skipif mysql # not compatible
query I rowsort label-5125
SELECT col0 / + 68 + col0 FROM tab0 AS cor0
----
24
35
90
query I rowsort
SELECT DISTINCT col1 + + cor0.col0 - - col0 FROM tab0 AS cor0
----
134
167
269
query I rowsort
SELECT ALL + col1 + 5 + - 63 * col2 * + 87 FROM tab2 AS cor0
----
-142442
-147951
-208256
query I rowsort
SELECT + col0 * + ( + col2 ) + col1 * + col2 FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT 96 FROM tab1, tab2 cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT DISTINCT + col2 * tab0.col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL + col0 * - tab0.col1 FROM tab0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) * cor0.col1 col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT col2 * 33 FROM tab1 AS cor0
----
1782
1881
3168
query I rowsort
SELECT + ( + col1 ) + col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - 11 FROM tab2 AS cor0
----
-11
-11
-11
query I rowsort
SELECT - - col2 * col2 AS col1 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT ALL - 75 * col0 AS col2 FROM tab1 AS cor0
----
-225
-4800
-6000
query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab0, tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - 79 col2 FROM tab0 AS cor0
----
-1896
-2765
-7031
query I rowsort
SELECT 11 FROM tab2 cor0
----
11
11
11
query I rowsort
SELECT + - 25 FROM tab2 AS cor0
----
-25
-25
-25
query I rowsort
SELECT DISTINCT ( + col1 ) * col0 * col1 + + col2 AS col0 FROM tab0 cor0
----
177537
329316
737091
query I rowsort
SELECT ALL - - col0 * - ( + col1 * 51 ) AS col2 FROM tab0 AS cor0
----
-105264
-173145
-413049
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 col0 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-5146
SELECT DISTINCT col2 + + col2 * col2 DIV 92 FROM tab1 AS cor0
----
196
85
92
skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT col2 + + col2 * col2 / 92 FROM tab1 AS cor0
----
196
85
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-5147
SELECT col0 - ( - col0 ) DIV col0 AS col2 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-5147
SELECT col0 - ( - col0 ) / col0 AS col2 FROM tab1
----
4
65
81
query I rowsort
SELECT col2 + - col1 * tab1.col0 * + col2 AS col0 FROM tab1
----
-36423
-4158
-99744
query I rowsort
SELECT DISTINCT - tab2.col1 + col0 * col0 FROM tab2
----
18
6025
6224
query I rowsort
SELECT + + col1 - + 43 AS col1 FROM tab1 AS cor0
----
-17
-30
-33
query I rowsort
SELECT 88 * 11 + col0 AS col2 FROM tab2
----
1046
1047
975
query I rowsort
SELECT + 56 FROM tab1 cor0
----
56
56
56
query I rowsort
SELECT DISTINCT 92 * ( col0 ) FROM tab1 AS cor0
----
276
5888
7360
query I rowsort
SELECT - 77 + 78 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - - col2 + + 89 FROM tab0 cor0
----
122
171
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * col0 col1 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - 22 col2 FROM tab1 AS cor0
----
-12
-9
4
query I rowsort
SELECT DISTINCT col0 + col1 * + col0 FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT - + 51 AS col2 FROM tab2 AS cor0
----
-51
query I rowsort
SELECT ALL + + cor0.col0 + cor0.col2 AS col2 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5161
SELECT + cor0.col1 DIV + col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5161
SELECT + cor0.col1 / + col1 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5162
SELECT DISTINCT - - col2 DIV 39 FROM tab1 AS cor0
----
1
2
skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT - - col2 / 39 FROM tab1 AS cor0
----
1
2
query I rowsort
SELECT - 25 AS col2 FROM tab0 AS cor0
----
-25
-25
-25
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5164
SELECT col0 + - col0 * - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5164
SELECT col0 + - col0 * - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5165
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
query I rowsort
SELECT ALL + 30 + - col1 AS col0 FROM tab2
----
-1
-29
13
query I rowsort
SELECT + + 4 * + col1 FROM tab0 AS cor0
----
344
364
388
query I rowsort
SELECT ALL + col1 * + col2 + col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT cor0.col0 * 50 FROM tab1, tab0 AS cor0
----
1200
1750
4450
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 ALL + col1 + 43 AS col2 FROM tab2 AS cor0
----
102
60
74
query I rowsort
SELECT col2 * + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL col0 + + col1 * col2 AS col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT col1 * - 46 * - ( + cor0.col0 * + col0 ) FROM tab2 cor0
----
16511976
4880462
69874
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5175
SELECT DISTINCT - col2 * CAST( tab1.col0 AS SIGNED ) FROM tab1
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-5175
SELECT DISTINCT - col2 * CAST ( tab1.col0 AS INTEGER ) FROM tab1
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5176
SELECT DISTINCT - + col0 + - CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-14
-156
-158
skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT - + col0 + - CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT DISTINCT - - col0 * col0 - col2 AS col1 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT DISTINCT - col1 * ( - ( + col0 ) ) + - cor0.col0 * ( - cor0.col2 + cor0.col0 * + col0 ) FROM tab2 AS cor0
----
-467922
-488694
63
query I rowsort
SELECT cor0.col0 + - 69 FROM tab0 AS cor0
----
-34
-45
20
query I rowsort
SELECT ALL + ( + cor0.col0 ) + 11 FROM tab2, tab2 AS cor0
----
9 values hashing to 6df2ce34690aa950a546f49e8a927138
query I rowsort
SELECT DISTINCT - ( - col0 ) * cor0.col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + 54 FROM tab2, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT ALL + 86 * col1 AS col2 FROM tab0 AS cor0
----
7396
7826
8342
query I rowsort
SELECT + 73 * + ( col2 ) * col0 AS col2 FROM tab2 AS cor0
----
13797
148044
219146
query I rowsort
SELECT ALL + 88 * col0 FROM tab2 AS cor0
----
616
6864
6952
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 cor2, tab0 cor3
----
3645 values hashing to 3b4587ab6c08d2179c6df094d2f76ad7
query I rowsort
SELECT cor0.col2 * + col0 - 95 FROM tab1 AS cor0
----
3553
67
7585
query I rowsort
SELECT + 80 - - col2 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-2836
-3169
-9136
query I rowsort
SELECT DISTINCT - 42 + + cor0.col0 FROM tab0 AS cor0
----
-18
-7
47
query I rowsort
SELECT DISTINCT col1 * col2 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + col1 * col1 + ( cor0.col0 ) FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT ( - 20 ) - - col1 FROM tab0
----
66
71
77
query I rowsort
SELECT - col2 + - col1 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT ( + col1 ) * col1 * + col0 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT col0 + col0 * - 44 * - tab2.col0 FROM tab2
----
2163
267774
274683
onlyif mysql # use DIV operator for integer division
query I rowsort label-5196
SELECT - col0 + - 29 * col1 + col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-353
-456
-756
skipif mysql # not compatible
query I rowsort label-5196
SELECT - col0 + - 29 * col1 + col1 / col1 AS col2 FROM tab1 AS cor0
----
-353
-456
-756
query I rowsort
SELECT DISTINCT col1 * + col0 + col0 * - col0 + tab1.col0 AS col1 FROM tab1
----
-3392
-5280
72
query I rowsort
SELECT - ( col0 ) * + col1 * 2 AS col1 FROM tab1 cor0
----
-1280
-156
-2080
query I rowsort
SELECT ALL + ( col0 ) * + 9 FROM tab1 AS cor0
----
27
576
720
query I rowsort
SELECT - col2 + + tab2.col0 AS col1 FROM tab2
----
-20
41
52
query I rowsort
SELECT DISTINCT ( + col2 ) + - 70 AS col1 FROM tab0
----
-37
-69
12
query I rowsort
SELECT DISTINCT tab0.col2 + - col0 * ( col0 ) FROM tab0
----
-1224
-543
-7839
query I rowsort
SELECT + 55 + col2 AS col2 FROM tab2
----
81
82
93
query I rowsort
SELECT DISTINCT tab0.col1 * + tab0.col2 + - col2 FROM tab0
----
2805
7380
96
query I rowsort
SELECT col0 + col2 * col2 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE - col1 NOT IN ( col2 )
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * tab0.col1 col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NULL >= col0 / col2 OR col2 * col2 + col1 * col1 IN ( col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + col2 col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + + col1 * + col1 AS col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT - col1 + col2 * - col0 FROM tab0 cor0
----
-132
-7389
-878
query I rowsort
SELECT col1 * + cor0.col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 AND ( + col2 + + col1 ) OR ( NULL ) IN ( col0 )
----
query I rowsort
SELECT + col2 + - col0 * col1 FROM tab2 cor0
----
-1305
-190
-4576
query I rowsort
SELECT col2 + + cor0.col0 * + cor0.col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT + cor0.col1 * col1 + - col2 AS col1 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT + cor0.col0 * col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + - col0 * + cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col0 + col0 * - col0 - - col1 * col0 * col0 FROM tab0 WHERE NULL IN ( col2 ) AND ( NULL ) <= + col1 * - col2 + + col0 * col1
----
query I rowsort
SELECT DISTINCT col0 * col1 * tab1.col0 AS col2 FROM tab1
----
234
40960
83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - tab0.col2 col2 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT + col0 - col0 * - col2 FROM tab1
----
165
3712
7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + tab1.col2 col0 FROM tab1
----
121
176
57
query I rowsort
SELECT - cor0.col2 * col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT - 40 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 01aad4539198a6509248e086869f90a6
query I rowsort
SELECT 9 + + col2 * + 13 AS col2 FROM tab1 AS cor0
----
1257
711
750
query I rowsort
SELECT DISTINCT col0 * col0 + cor0.col2 * col2 * col2 + col0 AS col1 FROM tab1 AS cor0
----
157476
189353
891216
query I rowsort
SELECT DISTINCT + col0 * col2 * - col1 AS col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT col0 * + col1 - col1 FROM tab1
----
1027
52
630
query III rowsort
SELECT * FROM tab2 WHERE NULL = - col0
----
query I rowsort
SELECT DISTINCT col1 * + col1 + col2 AS col2 FROM tab0 WHERE NOT NULL > NULL
----
query I rowsort
SELECT + col1 FROM tab2 WHERE NOT - col0 * col0 NOT IN ( - col2 )
----
query I rowsort
SELECT ALL - 97 * cor0.col2 - 80 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to e6732f22fbb10c0aff95a0406cf30520
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( 10 AS REAL ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176
onlyif mysql # use DIV operator for integer division
query I rowsort label-5234
SELECT - col0 DIV + col0 - - col1 FROM tab2
----
16
30
58
skipif mysql # not compatible
query I rowsort label-5234
SELECT - col0 / + col0 - - col1 FROM tab2
----
16
30
58
query I rowsort
SELECT DISTINCT tab0.col0 * - col0 AS col2 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT + 52 AS col0 FROM tab0
----
52
52
52
query I rowsort
SELECT col0 + + col2 * col2 AS col2 FROM tab2
----
1523
736
754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 col2 FROM tab1 WHERE NOT NULL <> - col0 * col2
----
query III rowsort
SELECT ALL * FROM tab1 WHERE col0 NOT IN ( + col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query III rowsort
SELECT * FROM tab1 WHERE NOT col0 < ( col1 )
----
64
10
57
80
13
96
query III rowsort
SELECT * FROM tab2 WHERE NULL > col2 * col1
----
query I rowsort
SELECT - col2 * col2 - col2 FROM tab0
----
-1122
-2
-6806
query I rowsort
SELECT ALL - col0 - - tab2.col0 * col1 AS col2 FROM tab2
----
1264
210
4524
query I rowsort
SELECT col0 * col0 - - tab0.col2 FROM tab0
----
1226
609
8003
onlyif mysql # use DIV operator for integer division
query I rowsort label-5245
SELECT + col0 * col0 DIV + col2 + col0 * col0 FROM tab0 AS cor0
----
2450
593
8017
skipif mysql # not compatible
query I rowsort label-5245
SELECT + col0 * col0 / + col2 + col0 * col0 FROM tab0 AS cor0
----
2450
593
8017
query I rowsort
SELECT - tab0.col1 + + col2 * + tab0.col0 FROM tab0
----
-62
706
7207
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 * - col0 col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT NULL = NULL
----
query I rowsort
SELECT - tab1.col1 * col0 + col2 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT DISTINCT + tab1.col2 + tab1.col0 FROM tab1
----
121
176
57
query I rowsort
SELECT col1 + - col2 * tab2.col1 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT + col2 - tab0.col1 AS col1 FROM tab0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 + col0 col1 FROM tab1
----
1328
1407
634
query I rowsort
SELECT col2 * col2 - - col1 * col2 FROM tab2
----
1566
2090
2210
query I rowsort
SELECT + col2 * + tab2.col0 + + col2 AS col0 FROM tab2
----
2054
216
3040
query I rowsort
SELECT col0 * col0 - col1 * + col1 FROM tab2
----
-912
2603
5952
query I rowsort
SELECT DISTINCT + col2 - - tab0.col1 AS col2 FROM tab0 WHERE NOT NULL > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 * - col2 col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-5259
SELECT - 65 DIV - cor0.col0 + cor0.col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
36
7298
794
skipif mysql # not compatible
query I rowsort label-5259
SELECT - 65 / - cor0.col0 + cor0.col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
36
7298
794
query I rowsort
SELECT ALL + - ( - col0 ) FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + 8 + col1 FROM tab2 AS cor0
----
25
39
67
query I rowsort
SELECT DISTINCT + cor0.col1 * 69 AS col1 FROM tab2, tab0 AS cor0
----
5934
6279
6693
onlyif mysql # use DIV operator for integer division
query I rowsort label-5263
SELECT ALL - 5 DIV col2 FROM tab0 AS cor0
----
-5
0
0
skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL - 5 / col2 FROM tab0 AS cor0
----
-5
0
0
query I rowsort
SELECT + col2 * - col1 + col1 * - col0 FROM tab1
----
-1210
-1482
-2288
query I rowsort
SELECT 52 + + tab1.col0 FROM tab1
----
116
132
55
query I rowsort
SELECT col2 * - 41 AS col0 FROM tab0 AS cor0
----
-1353
-3362
-41
query I rowsort
SELECT DISTINCT - + cor0.col1 * - 37 AS col1 FROM tab1 cor0
----
370
481
962
query I rowsort
SELECT DISTINCT - col1 + - col0 * col1 + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-2703
-465
-9263
query I rowsort
SELECT DISTINCT 32 FROM tab1, tab2, tab0 AS cor0
----
32
query I rowsort
SELECT DISTINCT 75 FROM tab0
----
75
query I rowsort
SELECT col0 * col0 + - tab1.col1 * col0 AS col1 FROM tab1
----
-69
3456
5360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5272
SELECT col1 * - cor0.col1 + col0 * + CAST( col0 + col1 AS SIGNED ) FROM tab0 AS cor0
----
-4756
-4789
7739
skipif mysql # not compatible
query I rowsort label-5272
SELECT col1 * - cor0.col1 + col0 * + CAST ( col0 + col1 AS INTEGER ) FROM tab0 AS cor0
----
-4756
-4789
7739
query I rowsort
SELECT DISTINCT - 11 + col2 FROM tab2 AS cor0
----
15
16
27
query I rowsort
SELECT DISTINCT - - col1 * col2 + col0 + - cor0.col1 * col1 FROM tab0 AS cor0
----
-4534
-730
-9277
query I rowsort
SELECT ( col0 ) + + col0 * + col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT + ( 28 ) - col1 FROM tab2 cor0
----
-3
-31
11
query I rowsort
SELECT DISTINCT + col1 + - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT - - ( - col2 ) + - col2 * col0 * 72 AS col1 FROM tab2 AS cor0
----
-13635
-146042
-216182
query I rowsort
SELECT ALL - 48 AS col0 FROM tab0 AS cor0
----
-48
-48
-48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 + col1 col0 FROM tab2 cor0
----
22
36
64
query I rowsort
SELECT - - ( - 57 ) * col1 + col1 * 79 + + col2 * col1 AS col2 FROM tab0 AS cor0
----
2231
4730
9464
query I rowsort
SELECT ALL - 6 * - 91 AS col0 FROM tab2 AS cor0
----
546
546
546
onlyif mysql # use DIV operator for integer division
query I rowsort label-5283
SELECT DISTINCT + col1 DIV col0 AS col2 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT + col1 / col0 AS col2 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT ALL - + col1 * col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - + 24 AS col0 FROM tab2 AS cor0
----
-24
-24
-24
query I rowsort
SELECT DISTINCT + 9 + + col2 AS col0 FROM tab1 AS cor0
----
105
63
66
query I rowsort
SELECT ALL tab2.col0 - - col2 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL col2 + - 15 AS col1 FROM tab1
----
39
42
81
query I rowsort
SELECT ALL - col0 * tab2.col0 + + col1 + tab2.col0 FROM tab2
----
-11
-5947
-6145
query I rowsort
SELECT ALL - col0 - + col1 AS col2 FROM tab2
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 + - tab2.col2 * col2 + - col0 col0 FROM tab2
----
-1458
-671
-689
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
7
78
79
query I rowsort
SELECT tab0.col2 - - 23 FROM tab0
----
105
24
56
query I rowsort
SELECT DISTINCT - + col1 * col0 * col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 89 AS REAL ) AS col1 FROM tab2 AS cor0
----
89
89
89
query I rowsort
SELECT + ( + col0 ) + - col0 * + 22 FROM tab2 AS cor0
----
-147
-1638
-1659
onlyif mysql # use DIV operator for integer division
query I rowsort label-5297
SELECT ALL tab2.col1 + col0 DIV - col0 FROM tab2
----
16
30
58
skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL tab2.col1 + col0 / - col0 FROM tab2
----
16
30
58
query I rowsort
SELECT ALL - col2 * 68 + + col2 * col0 * + col2 AS col2 FROM tab2
----
111492
3267
50960
query I rowsort
SELECT DISTINCT - col2 * + col2 * - col0 + + col1 * col2 AS col1 FROM tab0
----
132
28974
605898
query I rowsort
SELECT DISTINCT + col0 + 12 FROM tab0
----
101
36
47
query I rowsort
SELECT col1 - ( - col2 ) AS col1 FROM tab2
----
55
58
85
query I rowsort
SELECT + 18 * col2 AS col2 FROM tab2
----
468
486
684
query I rowsort
SELECT DISTINCT ( ( col2 ) ) FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT - + 46 + col1 AS col0 FROM tab1 AS cor0
----
-20
-33
-36
query I rowsort
SELECT col1 * + col1 + col0 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT - + 21 + col0 * + col1 FROM tab0 cor0
----
2043
3374
8078
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 + - col2 col2 FROM tab1
----
-19
20
23
query I rowsort
SELECT col2 * - col0 * col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT - 3 * - col0 AS col0 FROM tab0
----
105
267
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-5310
SELECT DISTINCT - CAST( col0 AS SIGNED ) DIV + col0 AS col1 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT - CAST ( col0 AS INTEGER ) / + col0 AS col1 FROM tab0
----
-1
query I rowsort
SELECT - col1 * - col0 * tab1.col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT + cor0.col2 + + cor0.col2 FROM tab2 cor0
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-5313
SELECT DISTINCT + - col2 DIV col2 + + cor0.col0 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT + - col2 / col2 + + cor0.col0 FROM tab1 AS cor0
----
2
63
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5314
SELECT DISTINCT - 68 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-5314
SELECT DISTINCT - 68 / col1 col2 FROM tab1 AS cor0
----
-2
-5
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 * - col1 col0 FROM tab1 AS cor0
----
1742
670
871
query I rowsort
SELECT - col2 * col0 + - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-15360
-324
-7296
query I rowsort
SELECT - - col1 * cor0.col1 + - col2 * - col0 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-60716
-655837
6014
query I rowsort
SELECT ALL + cor0.col1 + - cor0.col1 * + col0 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL - + ( col1 ) * + col0 + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT + - col2 * + col2 + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT col1 + + 20 FROM tab1
----
30
33
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-5322
SELECT col1 + 24 DIV col2 AS col1 FROM tab0
----
121
86
91
skipif mysql # not compatible
query I rowsort label-5322
SELECT col1 + 24 / col2 AS col1 FROM tab0
----
121
86
91
query I rowsort
SELECT DISTINCT col2 + - tab2.col2 AS col2 FROM tab2
----
0
query I rowsort
SELECT DISTINCT + col2 + 24 + col1 * col0 AS col0 FROM tab0 AS cor0
----
2121
3420
8205
query I rowsort
SELECT ALL + col2 * + 87 - 17 * col0 FROM tab1 AS cor0
----
3871
4647
6992
onlyif mysql # use DIV operator for integer division
query I rowsort label-5326
SELECT DISTINCT + + col2 * col2 * col1 + col2 DIV cor0.col1 FROM tab2 AS cor0
----
22599
24550
39884
skipif mysql # not compatible
query I rowsort label-5326
SELECT DISTINCT + + col2 * col2 * col1 + col2 / cor0.col1 FROM tab2 AS cor0
----
22599
24550
39884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5327
SELECT DISTINCT + col2 + CAST( NULL AS DECIMAL ) * - col1 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT + col2 + CAST ( NULL AS REAL ) * - col1 AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + cor0.col2 + col0 + + 1 * col0 AS col2 FROM tab1 AS cor0
----
185
256
60
query I rowsort
SELECT ALL col0 * col2 + col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT - col2 + 78 AS col1 FROM tab0 AS cor0
----
-4
45
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5331
SELECT + + col0 * - CAST( col2 AS SIGNED ) + col0 FROM tab1 AS cor0
----
-159
-3584
-7600
skipif mysql # not compatible
query I rowsort label-5331
SELECT + + col0 * - CAST ( col2 AS INTEGER ) + col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT col2 + + 52 FROM tab0 AS cor0
----
134
53
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-5333
SELECT + col2 DIV - col2 - - col0 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-5333
SELECT + col2 / - col2 - - col0 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT ALL + ( - col2 ) * + col1 + col2 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-5335
SELECT + + cor0.col0 DIV col2 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5335
SELECT + + cor0.col0 / col2 FROM tab1 cor0
----
0
0
1
query I rowsort
SELECT ALL + ( col0 ) * + col1 * - col0 + col0 FROM tab2 AS cor0
----
-106018
-1512
-358878
query I rowsort
SELECT - 43 * col2 + cor0.col2 FROM tab1 AS cor0
----
-2268
-2394
-4032
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5338
SELECT ALL CAST( NULL AS DECIMAL ) * col2 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL CAST ( NULL AS REAL ) * col2 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 - + col2 AS col1 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5340
SELECT CAST( cor0.col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5340
SELECT CAST ( cor0.col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - + 96 - col1 FROM tab1 AS cor0
----
-106
-109
-122
query I rowsort
SELECT - col0 * col1 + + col2 FROM tab0 cor0
----
-2031
-3394
-8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-5343
SELECT ALL col1 DIV ( col2 * + col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL col1 / ( col2 * + col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 76 col1 FROM tab1 AS cor0
----
50
63
66
query I rowsort
SELECT 46 * 64 * - col0 FROM tab0 AS cor0
----
-103040
-262016
-70656
query I rowsort
SELECT DISTINCT 32 + cor1.col0 * + 21 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1, tab0 cor2, tab0 AS cor3
----
1670
1691
179
query I rowsort
SELECT DISTINCT - cor0.col2 * - cor0.col2 * + 67 + + 31 FROM tab0, tab1 AS cor0
----
195403
217714
617503
query I rowsort
SELECT 50 + col2 FROM tab1 cor0
----
104
107
146
query I rowsort
SELECT DISTINCT - 54 AS col1 FROM tab0 AS cor0
----
-54
query I rowsort
SELECT - 69 + col2 FROM tab2 AS cor0
----
-31
-42
-43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5351
SELECT + 12 + - col1 + - CAST( col1 + col0 AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0
----
-101
-4734
-7441
skipif mysql # not compatible
query I rowsort label-5351
SELECT + 12 + - col1 + - CAST ( col1 + col0 AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0
----
-101
-4734
-7441
query I rowsort
SELECT DISTINCT 76 + + col1 AS col1 FROM tab0
----
162
167
173
query I rowsort
SELECT - col0 + - cor0.col0 * 8 AS col1 FROM tab1 AS cor0
----
-27
-576
-720
query I rowsort
SELECT - + col2 + cor0.col2 * - 14 FROM tab2 AS cor0
----
-390
-405
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * cor0.col0 col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + 2 + + 25 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT + cor0.col2 * + col0 * ( + col2 ) AS col1 FROM tab2 AS cor0
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-5358
SELECT + col0 + ( cor0.col2 ) DIV col2 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-5358
SELECT + col0 + ( cor0.col2 ) / col2 FROM tab1 AS cor0
----
4
65
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + - ( col2 ) * - col2 + cor0.col1 * col1 col0 FROM tab2 AS cor0
----
1697
1812
4235
query I rowsort
SELECT - + 97 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b
onlyif mysql # use DIV operator for integer division
query I rowsort label-5361
SELECT DISTINCT col2 DIV + col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT col2 / + col1 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col0 FROM tab2, tab0 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT ALL col2 + - ( col2 * col2 ) FROM tab0
----
-1056
-6642
0
query I rowsort
SELECT ALL + + 47 FROM tab2 cor0
----
47
47
47
query I rowsort
SELECT DISTINCT 8 AS col2 FROM tab1, tab2 cor0
----
8
query I rowsort
SELECT DISTINCT - 91 * + tab2.col2 AS col1 FROM tab2, tab1 AS cor0
----
-2366
-2457
-3458
onlyif mysql # use DIV operator for integer division
query I rowsort label-5367
SELECT DISTINCT col0 DIV ( + tab2.col0 ) AS col0 FROM tab2
----
1
skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT col0 / ( + tab2.col0 ) AS col0 FROM tab2
----
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5368
SELECT - CAST( + col2 * + col1 AS SIGNED ) FROM tab0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-5368
SELECT - CAST ( + col2 * + col1 AS INTEGER ) FROM tab0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - col1 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - col0 * col2 * cor0.col2 + + col2 * col2 AS col1 FROM tab2 cor0
----
-112632
-4374
-52052
query I rowsort
SELECT col1 - + col1 * - col1 FROM tab1 AS cor0
----
110
182
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-5372
SELECT ALL - col1 * col2 DIV 21 + col1 FROM tab0 AS cor0
----
-264
-49
93
skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL - col1 * col2 / 21 + col1 FROM tab0 AS cor0
----
-264
-49
93
query I rowsort
SELECT + 81 * col0 * + col2 AS col0 FROM tab1
----
13122
295488
622080
query I rowsort
SELECT DISTINCT + col2 * col0 AS col1 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5375
SELECT + 76 DIV col0 col2 FROM tab1
----
0
1
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5375
SELECT + 76 / col0 col2 FROM tab1
----
0
1
25
query I rowsort
SELECT DISTINCT - ( + col2 ) * + col1 AS col2 FROM tab1
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 + 59 col2 FROM tab1 cor0
----
221
3707
7739
query I rowsort
SELECT - + 86 + col1 + 35 FROM tab1 AS cor0
----
-25
-38
-41
query I rowsort
SELECT col0 + cor0.col1 + + cor0.col2 FROM tab2 AS cor0
----
134
163
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-5380
SELECT + 12 * col0 + - ( col2 ) + + col0 DIV col1 FROM tab2 AS cor0
----
57
911
914
skipif mysql # not compatible
query I rowsort label-5380
SELECT + 12 * col0 + - ( col2 ) + + col0 / col1 FROM tab2 AS cor0
----
57
911
914
onlyif mysql # use DIV operator for integer division
query I rowsort label-5381
SELECT col0 + - col2 - col2 * 23 DIV col0 AS col0 FROM tab1 AS cor0
----
-13
-43
-465
skipif mysql # not compatible
query I rowsort label-5381
SELECT col0 + - col2 - col2 * 23 / col0 AS col0 FROM tab1 AS cor0
----
-13
-43
-465
onlyif mysql # use DIV operator for integer division
query I rowsort label-5382
SELECT - col2 * col0 + - col0 * 76 + - cor0.col2 DIV 58 FROM tab2 AS cor0
----
-721
-7956
-9006
skipif mysql # not compatible
query I rowsort label-5382
SELECT - col2 * col0 + - col0 * 76 + - cor0.col2 / 58 FROM tab2 AS cor0
----
-721
-7956
-9006
query I rowsort
SELECT DISTINCT 69 + 8 * col1 AS col2 FROM tab2
----
205
317
541
query I rowsort
SELECT - col1 + + col1 * col1 AS col0 FROM tab0
----
7310
8190
9312
query I rowsort
SELECT ALL col1 - - 16 AS col2 FROM tab0 AS cor0
----
102
107
113
query I rowsort
SELECT DISTINCT - 39 - + col2 FROM tab2 AS cor0
----
-65
-66
-77
query I rowsort
SELECT DISTINCT + 42 AS col0 FROM tab0 AS cor0
----
42
query I rowsort
SELECT 91 * - col0 - - col2 FROM tab2 AS cor0
----
-610
-7072
-7151
query I rowsort
SELECT - ( + 66 ) + + cor0.col1 * ( col0 * col2 ) FROM tab0 AS cor0
----
3329
664052
68046
onlyif mysql # use DIV operator for integer division
query I rowsort label-5390
SELECT col0 * col0 * col2 + 24 DIV - 68 FROM tab2 AS cor0
----
1323
158184
237158
skipif mysql # not compatible
query I rowsort label-5390
SELECT col0 * col0 * col2 + 24 / - 68 FROM tab2 AS cor0
----
1323
158184
237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - 65 * - col0 + - col2 - + 58 FROM tab1 cor0
----
4045
5046
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5393
SELECT ALL ( col1 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL ( col1 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + ( cor0.col1 ) * ( - 59 ) AS col0 FROM tab0 AS cor0
----
5074
5369
5723
query I rowsort
SELECT - + 13 * col0 * col0 + col0 AS col0 FROM tab1 AS cor0
----
-114
-53184
-83120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5396
SELECT DISTINCT - - col0 + - col2 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5396
SELECT DISTINCT - - col0 + - col2 * + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + 37 * col1 FROM tab0 cor0
----
3182
3367
3589
query I rowsort
SELECT + col2 * + col0 + col2 * - col2 FROM tab1 AS cor0
----
-1536
-2754
399
query I rowsort
SELECT DISTINCT 51 - col0 * col2 * - col2 FROM tab1 AS cor0
----
207987
737331
8799
query I rowsort
SELECT ALL - - 29 * col0 AS col1 FROM tab1 AS cor0
----
1856
2320
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-5401
SELECT - col0 DIV col1 + col1 FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5401
SELECT - col0 / col1 + col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - ( col1 ) * 17 + 11 AS col2 FROM tab1 cor0
----
-159
-210
-431
query I rowsort
SELECT DISTINCT + + col1 * col2 + - col2 * 93 + col1 AS col2 FROM tab0 AS cor0
----
-145
-73
101
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5404
SELECT ALL col2 + - cor0.col2 - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL col2 + - cor0.col2 - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 81 * - cor0.col1 FROM tab1 AS cor0
----
-1053
-2106
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-5406
SELECT ALL col2 * col1 DIV + col1 + + ( col1 ) FROM tab1
----
109
67
80
skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL col2 * col1 / + col1 + + ( col1 ) FROM tab1
----
109
67
80
query I rowsort
SELECT + ( - col0 * - tab1.col1 ) AS col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT - cor0.col2 + col2 * - 1 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT + 23 AS col2 FROM tab2, tab1 AS cor0
----
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - ( 22 ) col0 FROM tab0 AS cor0
----
-1892
-2002
-2134
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - - cor0.col2 + col2 AS col0 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT ALL - + col0 + + ( - cor0.col0 ) * + col0 FROM tab2 AS cor0
----
-56
-6162
-6320
query I rowsort
SELECT ALL col2 + - ( 99 ) FROM tab2 AS cor0
----
-61
-72
-73
query I rowsort
SELECT + col1 - ( - col0 + col0 ) FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5416
SELECT - col2 * + CAST( NULL AS SIGNED ) - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5416
SELECT - col2 * + CAST ( NULL AS INTEGER ) - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + - col1 * col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT + - col2 * + 1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - - col0 + + 24 FROM tab1 AS cor0
----
104
27
88
query I rowsort
SELECT ALL + 40 AS col2 FROM tab0
----
40
40
40
query I rowsort
SELECT DISTINCT - 41 AS col0 FROM tab0
----
-41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5422
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 + - 18 AS col0 FROM tab0 AS cor0
----
-53
-7316
-810
query I rowsort
SELECT + + col1 * 15 + col1 FROM tab2 AS cor0
----
272
496
944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * ( - col0 ) * + col0 col0 FROM tab0 AS cor0
----
-13824
-42875
-704969
query I rowsort
SELECT DISTINCT - col0 * cor0.col2 AS col2 FROM tab2 cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5427
SELECT ALL - - col0 * CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL - - col0 * CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT - + 48 FROM tab1 AS cor0
----
-48
query I rowsort
SELECT ALL + col2 + - 12 * + col1 FROM tab0 AS cor0
----
-1010
-1163
-999
query I rowsort
SELECT ALL - col2 + ( tab2.col0 ) AS col2 FROM tab2
----
-20
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5431
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
NULL
query I rowsort
SELECT DISTINCT col0 * + col1 * - 30 + + col2 FROM tab0
----
-101849
-242888
-61887
query I rowsort
SELECT + + col1 * + 43 + - col1 FROM tab2 AS cor0
----
1302
2478
714
query I rowsort
SELECT - - ( col2 ) * col2 + + col1 FROM tab1 AS cor0
----
2942
3259
9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-5435
SELECT + col2 * cor0.col1 DIV - col0 - ( col0 ) * col2 FROM tab1 AS cor0
----
-3656
-630
-7695
skipif mysql # not compatible
query I rowsort label-5435
SELECT + col2 * cor0.col1 / - col0 - ( col0 ) * col2 FROM tab1 AS cor0
----
-3656
-630
-7695
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5436
SELECT + CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5436
SELECT + CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + col2 + col1 * - tab0.col0 AS col0 FROM tab0
----
-2007
-3359
-7928
query I rowsort
SELECT - ( + 69 ) * col1 - col0 AS col1 FROM tab1 AS cor0
----
-1797
-754
-977
query I rowsort
SELECT - ( 4 ) + + col0 AS col1 FROM tab2 AS cor0
----
3
74
75
query I rowsort
SELECT - - col2 - - cor0.col2 AS col2 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-5441
SELECT ALL col1 DIV + ( 69 ) FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL col1 / + ( 69 ) FROM tab0
----
1
1
1
query I rowsort
SELECT - 90 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5
query I rowsort
SELECT DISTINCT col1 - 33 FROM tab0
----
53
58
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-5444
SELECT ALL - col0 - col0 DIV - col1 FROM tab1
----
-3
-58
-74
skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL - col0 - col0 / - col1 FROM tab1
----
-3
-58
-74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 28 + col1 col2 FROM tab2
----
-34
52
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 col2 FROM tab2, tab1 AS cor0
----
-82
query I rowsort
SELECT DISTINCT + + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
7
78
79
query I rowsort
SELECT ALL - 6 * + col0 AS col2 FROM tab2 AS cor0
----
-42
-468
-474
query I rowsort
SELECT DISTINCT - 7 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-49
-546
-553
query I rowsort
SELECT DISTINCT + col1 * + col1 * col1 FROM tab1 AS cor0
----
1000
17576
2197
query I rowsort
SELECT + col0 * + tab1.col2 FROM tab1
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-5452
SELECT col1 * col2 DIV col1 + 3 + col1 col0 FROM tab2 AS cor0
----
58
61
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5452
SELECT col1 * col2 / col1 + 3 + col1 col0 FROM tab2 AS cor0
----
58
61
88
query I rowsort
SELECT DISTINCT - 3 + + col2 FROM tab0 AS cor0
----
-2
30
79
query I rowsort
SELECT + + 53 * + col0 AS col0 FROM tab2 AS cor0
----
371
4134
4187
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5455
SELECT ALL - col1 * col2 + + CAST( NULL AS SIGNED ) col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL - col1 * col2 + + CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col2 + - col0 + col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + + 50 AS col2 FROM tab1 AS cor0
----
50
50
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
44
query I rowsort
SELECT + cor0.col0 * 31 + - col2 AS col0 FROM tab1 AS cor0
----
1927
2384
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5461
SELECT ALL col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + cor0.col1 * + ( + cor0.col0 ) FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-5464
SELECT DISTINCT + - col1 DIV - ( + col1 ) AS col1 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT + - col1 / - ( + col1 ) AS col1 FROM tab1 AS cor0
----
1
query I rowsort
SELECT ALL + col1 * 56 AS col2 FROM tab1 AS cor0
----
1456
560
728
query I rowsort
SELECT ALL + ( + 52 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT DISTINCT - 66 AS col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
-66
query I rowsort
SELECT 84 + - cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 96c77dc4a265be5ae09f05e57ecf98f6
query I rowsort
SELECT DISTINCT cor0.col1 + - ( - col1 ) * + col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT - col1 * + 9 + col0 FROM tab1 cor0
----
-231
-26
-37
onlyif mysql # use DIV operator for integer division
query I rowsort label-5471
SELECT DISTINCT col2 DIV + col0 FROM tab2 cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-5471
SELECT DISTINCT col2 / + col0 FROM tab2 cor0
----
0
3
query I rowsort
SELECT - col2 * col0 * - 69 FROM tab2 cor0
----
13041
139932
207138
query I rowsort
SELECT DISTINCT + - cor0.col1 * col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT col1 + + 54 AS col0 FROM tab0
----
140
145
151
onlyif mysql # use DIV operator for integer division
query I rowsort label-5475
SELECT + col2 + - col1 DIV col2 AS col2 FROM tab0 AS cor0
----
-96
31
81
skipif mysql # not compatible
query I rowsort label-5475
SELECT + col2 + - col1 / col2 AS col2 FROM tab0 AS cor0
----
-96
31
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-5476
SELECT - + cor0.col1 + col2 DIV - col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-5476
SELECT - + cor0.col1 + col2 / - col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - ( col1 ) AS col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT + 83 AS col1 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to 5ced3720d5aeff0dd77d5059a38001b6
query I rowsort
SELECT + 72 * - cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to a2271746de2f822c2e7478dd6681881e
query I rowsort
SELECT DISTINCT 65 * col0 AS col2 FROM tab1
----
195
4160
5200
query I rowsort
SELECT - 77 FROM tab0
----
-77
-77
-77
query I rowsort
SELECT ALL + 3 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT + 62 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT - tab1.col1 + + col2 FROM tab1
----
28
47
83
query I rowsort
SELECT 95 AS col2 FROM tab1
----
95
95
95
query I rowsort
SELECT DISTINCT - col1 + ( + col2 ) AS col1 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-5487
SELECT DISTINCT - col1 DIV 12 + - ( col2 ) FROM tab2 AS cor0
----
-29
-30
-39
skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT - col1 / 12 + - ( col2 ) FROM tab2 AS cor0
----
-29
-30
-39
query I rowsort
SELECT - + col0 * - col2 + + col1 * + col1 FROM tab1 AS cor0
----
3748
7849
838
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - + col2 - col1 * + col1 * + col2 FROM tab1 cor0
----
-16320
-36558
-5757
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5491
SELECT col0 * - CAST( NULL AS SIGNED ) + - 42 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5491
SELECT col0 * - CAST ( NULL AS INTEGER ) + - 42 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col0 + ( - col0 * + cor0.col0 ) FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT + 85 FROM tab1, tab1 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT ALL 15 * col2 + - tab2.col2 + - col2 AS col2 FROM tab2
----
338
351
494
query I rowsort
SELECT ALL - 48 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c
query I rowsort
SELECT + 67 FROM tab1, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT - col1 + 31 + col0 FROM tab1 AS cor0
----
8
85
98
query I rowsort
SELECT ( - cor0.col0 ) * + col1 + - col2 AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-5499
SELECT + 46 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
6
skipif mysql # not compatible
query I rowsort label-5499
SELECT + 46 / col0 AS col2 FROM tab2 AS cor0
----
0
0
6
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
3645 values hashing to 2c0370ee2d7726affde9c7c0de12a506
query I rowsort
SELECT + col2 * col1 + - col1 AS col0 FROM tab1 AS cor0
----
1235
1378
560
onlyif mysql # use DIV operator for integer division
query I rowsort label-5502
SELECT + tab2.col2 DIV 28 - col0 * col2 FROM tab2
----
-189
-2028
-3001
skipif mysql # not compatible
query I rowsort label-5502
SELECT + tab2.col2 / 28 - col0 * col2 FROM tab2
----
-189
-2028
-3001
query I rowsort
SELECT DISTINCT ( - col2 ) + + col2 * + ( col0 ) FROM tab0
----
34
7216
759
query I rowsort
SELECT + col0 - - col2 * - col1 * - 21 AS col2 FROM tab2 AS cor0
----
13645
17584
32292
query I rowsort
SELECT - ( 77 ) * - col2 AS col1 FROM tab0 AS cor0
----
2541
6314
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5506
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 51 * - col1 + + col1 + col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5506
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 51 * - col1 + + col1 + col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col2 * col2 + col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT - 83 * 21 + - col0 AS col2 FROM tab2 AS cor0
----
-1750
-1821
-1822
query I rowsort
SELECT ALL + 56 FROM tab1 cor0
----
56
56
56
query I rowsort
SELECT + ( ( col1 ) ) AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + + col2 * + col1 - - 38 AS col0 FROM tab1 AS cor0
----
1286
1442
608
query I rowsort
SELECT ( col2 ) * 96 + - col2 FROM tab2 cor0
----
2470
2565
3610
query I rowsort
SELECT ALL + 65 + col1 AS col0 FROM tab2 AS cor0
----
124
82
96
query I rowsort
SELECT ALL + 50 * col0 - col0 AS col1 FROM tab1 AS cor0
----
147
3136
3920
query I rowsort
SELECT ALL 76 FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to a8a6c4c5005303c62d4e50b6c96b584f
onlyif mysql # use DIV operator for integer division
query I rowsort label-5516
SELECT ALL - col0 DIV col2 + col0 AS col2 FROM tab1 AS cor0
----
3
63
80
skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL - col0 / col2 + col0 AS col2 FROM tab1 AS cor0
----
3
63
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 * + col2 col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT cor0.col0 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1 cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + - col2 col0 FROM tab1 AS cor0
----
-109
-67
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5520
SELECT DISTINCT - - col1 DIV col0 FROM tab2 AS cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-5520
SELECT DISTINCT - - col1 / col0 FROM tab2 AS cor0
----
0
4
query I rowsort
SELECT + - col0 * - cor0.col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col0 + - 9 FROM tab1 AS cor0
----
-12
-73
-89
query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE NOT NULL < NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 + + col2 * + col1 col0 FROM tab0 AS cor0
----
194
2924
7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - 59 col2 FROM tab1 AS cor0
----
-123
-139
-62
query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-5527
SELECT col1 DIV - 74 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5527
SELECT col1 / - 74 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL + col0 + 66 - col1 AS col0 FROM tab1 cor0
----
120
133
43
query I rowsort
SELECT ALL + col1 + - 48 - - col1 AS col1 FROM tab0 AS cor0
----
124
134
146
query I rowsort
SELECT DISTINCT + 32 * - 63 + col2 AS col1 FROM tab0 AS cor0
----
-1934
-1983
-2015
onlyif mysql # use DIV operator for integer division
query I rowsort label-5531
SELECT DISTINCT col1 + col2 DIV + col2 AS col0 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT col1 + col2 / + col2 AS col0 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT - ( - 93 ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
2232
3255
8277
query I rowsort
SELECT - ( 50 ) + - col0 AS col1 FROM tab2 AS cor0
----
-128
-129
-57
query I rowsort
SELECT ALL 0 * col2 AS col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT col0 * ( + col0 ) - + col1 AS col1 FROM tab0
----
1128
490
7830
query I rowsort
SELECT DISTINCT + col0 * 33 AS col1 FROM tab0
----
1155
2937
792
query I rowsort
SELECT + col0 - - col1 * tab0.col0 AS col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT col2 + 7 - col1 * cor0.col2 FROM tab0 AS cor0
----
-2798
-7373
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5539
SELECT tab0.col1 * - col0 + + CAST( + col1 * col0 AS SIGNED ) FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5539
SELECT tab0.col1 * - col0 + + CAST ( + col1 * col0 AS INTEGER ) FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + 55 + col1 FROM tab2
----
114
72
86
query I rowsort
SELECT - ( - 44 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT + tab2.col2 + 60 AS col0 FROM tab2
----
86
87
98
query I rowsort
SELECT col1 * - ( col2 ) * + col0 AS col2 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL 30 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0
query I rowsort
SELECT + col2 * + 66 + 30 * col1 FROM tab1 AS cor0
----
4062
4344
6726
query I rowsort
SELECT DISTINCT col1 + 40 FROM tab2
----
57
71
99
query I rowsort
SELECT DISTINCT + 66 AS col1 FROM tab1, tab2 AS cor0
----
66
query I rowsort
SELECT + col0 + col1 + - cor0.col2 FROM tab2 AS cor0
----
11
111
58
query I rowsort
SELECT ALL + cor0.col0 * ( + col0 + + col2 ) * + 79 AS col0 FROM tab2 cor0
----
18802
640848
730197
onlyif mysql # use DIV operator for integer division
query I rowsort label-5550
SELECT ALL col0 + - col2 DIV + col2 col2 FROM tab0 AS cor0
----
23
34
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5550
SELECT ALL col0 + - col2 / + col2 col2 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT + col2 * cor0.col0 + ( + col0 * col2 ) + + 77 AS col0 FROM tab2 AS cor0
----
4133
455
6081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * - cor0.col0 * + col2 col1 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT DISTINCT - - col2 + cor0.col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT col0 + 58 * + col0 AS col2 FROM tab2
----
413
4602
4661
query I rowsort
SELECT + col2 + col2 * - tab1.col2 AS col0 FROM tab1
----
-2862
-3192
-9120
query I rowsort
SELECT ( + col0 ) + col1 * + col2 FROM tab1
----
1328
1407
634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5557
SELECT CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5557
SELECT CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT tab2.col1 + 16 AS col0 FROM tab2
----
33
47
75
query I rowsort
SELECT ALL + 20 * col0 AS col2 FROM tab1 AS cor0
----
1280
1600
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5560
SELECT ALL CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + ( col1 ) * + ( col0 ) FROM tab0 AS cor0
----
2031
3394
8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-5562
SELECT DISTINCT 54 + - col2 DIV col0 FROM tab2 AS cor0
----
51
54
skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT 54 + - col2 / col0 FROM tab2 AS cor0
----
51
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 24 * - col2 + col1 + - ( col1 ) col2 FROM tab0 AS cor0
----
1968
24
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-5564
SELECT ALL + 24 * + col1 - 34 DIV + col2 FROM tab1 cor0
----
240
312
624
skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL + 24 * + col1 - 34 / + col2 FROM tab1 cor0
----
240
312
624
onlyif mysql # use DIV operator for integer division
query I rowsort label-5565
SELECT ALL - + 65 DIV - col0 FROM tab2 AS cor0
----
0
0
9
skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL - + 65 / - col0 FROM tab2 AS cor0
----
0
0
9
query I rowsort
SELECT - col0 * - col1 AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + + col0 * + col2 + + ( + col2 ) * col0 FROM tab0 AS cor0
----
14596
1584
70
query I rowsort
SELECT + col0 * - 6 - + col2 * - 76 * + col1 AS col1 FROM tab2
----
116116
48622
63570
onlyif mysql # use DIV operator for integer division
query I rowsort label-5569
SELECT ALL - col0 * - col2 - cor0.col1 DIV - col0 FROM tab2 AS cor0
----
193
2028
3002
skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL - col0 * - col2 - cor0.col1 / - col0 FROM tab2 AS cor0
----
193
2028
3002
query I rowsort
SELECT DISTINCT - - col1 + col1 * col1 FROM tab0 AS cor0
----
7482
8372
9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-5571
SELECT col0 + col0 DIV col0 AS col2 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-5571
SELECT col0 + col0 / col0 AS col2 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT ALL + 97 AS col2 FROM tab1 AS cor0
----
97
97
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col1 ) col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + + col0 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + 16 * - col1 FROM tab1 AS cor0
----
-160
-208
-416
query I rowsort
SELECT ALL + - 3 * col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1728
-23763
-3675
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab2 cor1, tab1 cor2
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c
query I rowsort
SELECT DISTINCT - 35 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-35
query I rowsort
SELECT - col2 * 57 FROM tab1 AS cor0
----
-3078
-3249
-5472
query I rowsort
SELECT col0 * + ( col2 ) AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col1 + - 92 * + 78 FROM tab2 AS cor0
----
-7117
-7145
-7159
query I rowsort
SELECT col0 * + ( + 98 ) FROM tab1 AS cor0
----
294
6272
7840
query I rowsort
SELECT DISTINCT + + 77 FROM tab1, tab0, tab2 AS cor0
----
77
query I rowsort
SELECT 82 + + col0 FROM tab2
----
160
161
89
query I rowsort
SELECT + ( + col0 ) + col0 + + col1 * col2 AS col0 FROM tab0 AS cor0
----
167
2886
7640
query I rowsort
SELECT + col1 + 35 AS col2 FROM tab1 AS cor0
----
45
48
61
query I rowsort
SELECT - - 12 * col0 + + col1 + col0 FROM tab0 AS cor0
----
1248
398
552
query I rowsort
SELECT ALL + col2 + col2 * col0 AS col1 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL - ( - 75 ) * cor0.col1 AS col0 FROM tab2 AS cor0
----
1275
2325
4425
query I rowsort
SELECT 60 * - col1 + + col2 FROM tab1 AS cor0
----
-1506
-543
-684
query I rowsort
SELECT ALL + 11 + + col1 FROM tab0 AS cor0
----
102
108
97
query I rowsort
SELECT + col0 * ( - col1 ) AS col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT + 12 FROM tab0, tab0 cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT ALL col2 + 3 * - col1 FROM tab1
----
-24
27
57
query I rowsort
SELECT + col1 * + col2 + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-5596
SELECT - col2 DIV 37 + - col0 FROM tab2 AS cor0
----
-7
-78
-80
skipif mysql # not compatible
query I rowsort label-5596
SELECT - col2 / 37 + - col0 FROM tab2 AS cor0
----
-7
-78
-80
query I rowsort
SELECT DISTINCT + col2 + - 25 FROM tab1 AS cor0
----
29
32
71
query I rowsort
SELECT + col0 * + 20 FROM tab0 cor0
----
1780
480
700
query I rowsort
SELECT ALL ( 67 ) + col0 FROM tab2 AS cor0
----
145
146
74
query I rowsort
SELECT ALL ( + 80 ) FROM tab2
----
80
80
80
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - col2 + - col0 * col2 AS REAL ) FROM tab1
----
-216
-3705
-7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col1 col0 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5603
SELECT + + col1 + + col1 DIV - col2 + cor0.col0 FROM tab0 AS cor0
----
108
179
35
skipif mysql # not compatible
query I rowsort label-5603
SELECT + + col1 + + col1 / - col2 + cor0.col0 FROM tab0 AS cor0
----
108
179
35
query I rowsort
SELECT + - col0 * - ( 25 ) - col0 FROM tab2 AS cor0
----
168
1872
1896
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5605
SELECT + + col0 * CAST( NULL AS SIGNED ) + 91 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5605
SELECT + + col0 * CAST ( NULL AS INTEGER ) + 91 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + - col1 + col1 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT 95 * col2 AS col0 FROM tab2
----
2470
2565
3610
query I rowsort
SELECT col1 * col0 + - col1 * cor0.col0 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 + ( + col1 ) * col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT + col1 + 77 AS col2 FROM tab1 AS cor0
----
103
87
90
query I rowsort
SELECT DISTINCT col1 + col0 + ( tab2.col2 ) FROM tab2
----
134
163
65
query I rowsort
SELECT col1 * + ( - col0 ) * tab1.col2 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT - tab1.col2 * col1 + col1 AS col0 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT ALL - 86 FROM tab0, tab1 cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da
query I rowsort
SELECT + 40 AS col1 FROM tab0
----
40
40
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col0 + - col1 col0 FROM tab0 AS cor0
----
-62
706
7207
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 * 19 col1 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to e31bcb13a87e36511d0f9d80a1faeefb
query I rowsort
SELECT DISTINCT + 47 FROM tab2, tab2 AS cor0
----
47
query I rowsort
SELECT col1 * col0 * 34 AS col1 FROM tab0
----
115430
275366
70176
query I rowsort
SELECT + ( col1 + - col0 ) * tab2.col0 AS col0 FROM tab2
----
-1482
-4898
168
query I rowsort
SELECT + 56 AS col2 FROM tab0
----
56
56
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-5622
SELECT - 42 * + cor0.col0 + col0 DIV + col1 + col0 FROM tab2 AS cor0
----
-287
-3197
-3235
skipif mysql # not compatible
query I rowsort label-5622
SELECT - 42 * + cor0.col0 + col0 / + col1 + col0 FROM tab2 AS cor0
----
-287
-3197
-3235
query I rowsort
SELECT + col2 + col0 + cor0.col2 FROM tab1 AS cor0
----
111
178
272
query I rowsort
SELECT ALL + 28 FROM tab1
----
28
28
28
query I rowsort
SELECT + ( cor0.col1 ) * + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f5605ce6cbd6ecc79a4a887488bb6947
query I rowsort
SELECT - col0 - 44 * - col2 FROM tab1 AS cor0
----
2373
2444
4144
query I rowsort
SELECT ALL + cor0.col2 * + col0 * 68 FROM tab2 cor0
----
12852
137904
204136
query I rowsort
SELECT DISTINCT tab0.col2 + tab0.col2 FROM tab0
----
164
2
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5629
SELECT + col2 + CAST( NULL AS DECIMAL ) + col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5629
SELECT + col2 + CAST ( NULL AS REAL ) + col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * - 91 + col1 * tab2.col1 FROM tab2
----
-3617
-6900
324
query I rowsort
SELECT DISTINCT col1 * + col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL cor0.col0 + col1 AS col1 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5633
SELECT col0 + ( - cor0.col1 ) + col0 * CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5633
SELECT col0 + ( - cor0.col1 ) + col0 * CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( 16 ) * col0 + + col2 AS col2 FROM tab0 AS cor0
----
1506
417
561
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( + col0 ) ) col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL 93 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT - - cor0.col2 + - col1 AS col2 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT - col1 + 66 AS col1 FROM tab1 AS cor0
----
40
53
56
query I rowsort
SELECT DISTINCT - 94 * col1 + col0 AS col1 FROM tab1 cor0
----
-1142
-2441
-876
query I rowsort
SELECT DISTINCT + + 55 - - col2 FROM tab1 AS cor0
----
109
112
151
query I rowsort
SELECT DISTINCT col1 + cor0.col0 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - + col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - 65 + + col0 FROM tab1 AS cor0
----
-1
-62
15
query I rowsort
SELECT ALL - col2 + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT - - 14 * + col1 AS col0 FROM tab1 AS cor0
----
140
182
364
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + cor0.col0 col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL + ( - col2 ) FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL - 15 * 11 AS col2 FROM tab0 AS cor0
----
-165
-165
-165
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5649
SELECT - - CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-5649
SELECT - - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - 31 * + 11 FROM tab0 AS cor0
----
-341
-341
-341
query I rowsort
SELECT DISTINCT + 7 * cor0.col0 FROM tab2 AS cor0
----
49
546
553
query I rowsort
SELECT ALL - cor0.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT + col1 * col2 + + col2 FROM tab0 cor0
----
2871
7544
98
query I rowsort
SELECT tab0.col2 + 34 + - col2 * + col0 FROM tab0
----
-7182
-725
0
query I rowsort
SELECT ALL col1 * + col2 + - col1 * 87 + col0 FROM tab0
----
-366
-4620
-8307
query I rowsort
SELECT ALL 46 + + col2 FROM tab1
----
100
103
142
query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
24
35
89
query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT + 57 AS col0 FROM tab2
----
57
57
57
query I rowsort
SELECT - 3 + - col0 AS col1 FROM tab2
----
-10
-81
-82
query I rowsort
SELECT ALL ( - tab0.col1 ) * 70 + + 58 AS col0 FROM tab0
----
-5962
-6312
-6732
query I rowsort
SELECT + 28 AS col0 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
onlyif mysql # use DIV operator for integer division
query I rowsort label-5664
SELECT DISTINCT + col0 DIV + tab1.col0 + ( - col2 ) * - tab1.col1 FROM tab1
----
1249
1405
571
skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT + col0 / + tab1.col0 + ( - col2 ) * - tab1.col1 FROM tab1
----
1249
1405
571
query I rowsort
SELECT col0 + + col2 * + col2 AS col0 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT DISTINCT cor0.col0 + col1 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - + cor0.col2 + - ( col1 ) FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL - - col0 + + cor0.col2 * col1 * - col2 FROM tab2 AS cor0
----
-22592
-24469
-39806
query I rowsort
SELECT ALL + col1 + col0 * + col2 FROM tab1
----
188
3658
7693
query I rowsort
SELECT - - col2 + cor0.col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT + cor0.col2 * col2 + + 1 FROM tab1 AS cor0
----
2917
3250
9217
query I rowsort
SELECT + 29 + + col0 * + ( col2 * + col1 ) AS col0 FROM tab2
----
119681
51063
5888
query I rowsort
SELECT col0 + tab1.col1 * - tab1.col0 FROM tab1
----
-576
-75
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 + + tab0.col0 col2 FROM tab0
----
27
38
92
query I rowsort
SELECT ALL col0 * col0 + - col0 * col2 + - col2 AS col0 FROM tab0
----
-249
1189
541
query I rowsort
SELECT DISTINCT col2 + col1 + + col2 FROM tab1
----
124
134
205
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5677
SELECT ALL col2 * CAST( NULL AS DECIMAL ) + - col0 + + col1 * + cor0.col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL col2 * CAST ( NULL AS REAL ) + - col0 + + col1 * + cor0.col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col2 * - 77 + col1 * col1 AS col2 FROM tab2 AS cor0
----
3040
3215
5483
query I rowsort
SELECT ALL - - col2 + + cor0.col2 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT + + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT col2 * col1 * + col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT + col0 * - col2 + - 6 * - col0 * 98 AS col0 FROM tab2 AS cor0
----
3927
43450
43836
query I rowsort
SELECT ALL + cor0.col0 + + ( - cor0.col1 ) FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - ( 80 + col1 ) col2 FROM tab0 AS cor0
----
-14276
-15561
-17169
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5685
SELECT col0 * CAST( - col0 + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1488
178
2170
skipif mysql # not compatible
query I rowsort label-5685
SELECT col0 * CAST ( - col0 + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1488
178
2170
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5686
SELECT DISTINCT + col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT + col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL 60 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 + - 45 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5689
SELECT col2 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5689
SELECT col2 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5690
SELECT tab2.col0 * ( - col2 ) + col2 DIV - ( - ( col0 ) ) FROM tab2
----
-186
-2028
-3002
skipif mysql # not compatible
query I rowsort label-5690
SELECT tab2.col0 * ( - col2 ) + col2 / - ( - ( col0 ) ) FROM tab2
----
-186
-2028
-3002
query I rowsort
SELECT DISTINCT + col0 * 90 - col2 AS col2 FROM tab1 cor0
----
216
5703
7104
query I rowsort
SELECT col1 * + 64 + + 13 FROM tab1 AS cor0
----
1677
653
845
query I rowsort
SELECT ALL col1 * + col2 * col2 + cor0.col1 + + col1 AS col2 FROM tab1 AS cor0
----
119834
32510
75868
query I rowsort
SELECT DISTINCT - 77 + - col0 FROM tab0 AS cor0
----
-101
-112
-166
query I rowsort
SELECT DISTINCT + 78 + col2 FROM tab1 AS cor0
----
132
135
174
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5696
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 + col0 * col1 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5696
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 + col0 * col1 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + 80 + - 87 * col0 AS col1 FROM tab2 cor0
----
-529
-6706
-6793
query I rowsort
SELECT tab1.col2 + + col1 * + col0 AS col1 FROM tab1
----
1136
132
697
query I rowsort
SELECT + ( + 69 ) + col0 FROM tab2 AS cor0
----
147
148
76
query I rowsort
SELECT + + col1 * col1 * - col0 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT + col0 * cor0.col2 + - col2 * + col2 FROM tab2 AS cor0
----
-540
1352
1558
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col0 + - col0 col1 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT cor0.col2 + cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT ALL + - 50 FROM tab0 AS cor0
----
-50
-50
-50
query I rowsort
SELECT cor0.col0 * - col2 * 36 FROM tab0 AS cor0
----
-1260
-262728
-28512
query I rowsort
SELECT ALL + + cor0.col0 + - col2 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT 53 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT ALL - - 95 * + col2 FROM tab2 AS cor0
----
2470
2565
3610
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5709
SELECT ( cor0.col1 ) * - 1 + col0 * col0 + CAST( NULL AS SIGNED ) / + col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5709
SELECT ( cor0.col1 ) * - 1 + col0 * col0 + CAST ( NULL AS INTEGER ) / + col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - 62 - - col2 * - ( + col0 ) FROM tab1 AS cor0
----
-100
-3586
-7618
query I rowsort
SELECT 68 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1632
2380
6052
query I rowsort
SELECT col2 * 1 * col2 + ( + col2 ) FROM tab0
----
1122
2
6806
query I rowsort
SELECT ALL - ( col0 ) * col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + col2 - col2 * 64 AS col2 FROM tab0 AS cor0
----
-2079
-5166
-63
query I rowsort
SELECT DISTINCT + cor0.col2 * col0 + - col1 AS col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL col0 * cor0.col0 - ( col0 ) FROM tab1 cor0
----
4032
6
6320
query I rowsort
SELECT ALL - 6 + + col2 FROM tab0 AS cor0
----
-5
27
76
query I rowsort
SELECT + 61 + col0 * - 58 AS col1 FROM tab1 AS cor0
----
-113
-3651
-4579
query I rowsort
SELECT + col1 * ( + col1 ) + + col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT - 85 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede
query I rowsort
SELECT + ( col2 ) + - col1 * + col1 AS col0 FROM tab2
----
-251
-3455
-934
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 * cor0.col2 col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT - col1 * col2 + - ( col1 ) + + 99 FROM tab1 AS cor0
----
-1162
-1331
-481
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5724
SELECT - col0 + - CAST( NULL AS DECIMAL ) * + col0 / + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5724
SELECT - col0 + - CAST ( NULL AS REAL ) * + col0 / + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5725
SELECT + col2 * CAST( + col2 AS SIGNED ) - col0 FROM tab0 AS cor0
----
-34
1065
6635
skipif mysql # not compatible
query I rowsort label-5725
SELECT + col2 * CAST ( + col2 AS INTEGER ) - col0 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT - col2 * cor0.col0 - - 10 AS col2 FROM tab2 AS cor0
----
-179
-2018
-2992
query I rowsort
SELECT 62 * col2 AS col0 FROM tab2
----
1612
1674
2356
query I rowsort
SELECT ALL - 55 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to b90e74bece5521b514096c5b6e105fde
query I rowsort
SELECT DISTINCT + - cor0.col1 + + ( - 33 ) FROM tab0 cor0
----
-119
-124
-130
query I rowsort
SELECT ALL col0 * + 53 FROM tab1 AS cor0
----
159
3392
4240
query I rowsort
SELECT - col2 + 34 - ( + col1 ) AS col1 FROM tab0 AS cor0
----
-139
-64
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * cor0.col0 col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT col2 * + 9 - col0 FROM tab0
----
-26
273
649
query I rowsort
SELECT + 65 * - 28 FROM tab2 AS cor0
----
-1820
-1820
-1820
query I rowsort
SELECT - + ( - col2 ) * col1 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 * + 84 + - cor0.col2 col2 FROM tab1 AS cor0
----
8052
8091
8094
query I rowsort
SELECT ALL + + ( cor0.col2 ) * cor0.col2 + col1 * col2 * col1 FROM tab1 cor0
----
25440
39420
8949
query I rowsort
SELECT tab0.col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT - col2 * + 42 FROM tab1
----
-2268
-2394
-4032
query I rowsort
SELECT - col0 * 91 * col2 AS col0 FROM tab2
----
-17199
-184548
-273182
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5741
SELECT CAST( + 45 AS SIGNED ) FROM tab1 AS cor0
----
45
45
45
skipif mysql # not compatible
query I rowsort label-5741
SELECT CAST ( + 45 AS INTEGER ) FROM tab1 AS cor0
----
45
45
45
query I rowsort
SELECT - ( - col0 ) + + col0 * col2 FROM tab2 AS cor0
----
196
2106
3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - cor0.col2 ) + col0 col1 FROM tab1 cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5744
SELECT DISTINCT + col0 DIV col1 - col1 * col1 AS col2 FROM tab2 cor0
----
-285
-3480
-961
skipif mysql # not compatible
query I rowsort label-5744
SELECT DISTINCT + col0 / col1 - col1 * col1 AS col2 FROM tab2 cor0
----
-285
-3480
-961
query I rowsort
SELECT DISTINCT 83 AS col1 FROM tab1
----
83
query I rowsort
SELECT ALL + ( cor0.col1 ) * - col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + - col0 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
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 + - 93 AS col2 FROM tab0 AS cor0
----
-93
-93
-93
query I rowsort
SELECT ALL + 29 FROM tab2 cor0
----
29
29
29
query I rowsort
SELECT ALL + col2 * + col2 AS col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT - col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT 28 * + col2 FROM tab1 AS cor0
----
1512
1596
2688
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5754
SELECT DISTINCT 74 * col2 * CAST( - col0 + col0 AS SIGNED ) FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5754
SELECT DISTINCT 74 * col2 * CAST ( - col0 + col0 AS INTEGER ) FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 * cor0.col2 col0 FROM tab1 AS cor0
----
-1248
-702
-741
query I rowsort
SELECT ALL cor0.col0 + + col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - + ( + cor0.col0 ) * + col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ( + ( col1 ) ) - ( - col0 ) AS col2 FROM tab2
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5759
SELECT ALL col1 DIV - col2 + - col1 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL col1 / - col2 + - col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ALL + + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - + col1 + 62 AS col2 FROM tab1 AS cor0
----
36
49
52
query I rowsort
SELECT + 97 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5763
SELECT + ( + col0 ) * - CAST( NULL AS SIGNED ) + - col1 * tab1.col1 * - ( + col0 + col1 ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5763
SELECT + ( + col0 ) * - CAST ( NULL AS INTEGER ) + - col1 * tab1.col1 * - ( + col0 + col1 ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + + cor0.col0 * ( + 76 * col2 ) AS col1 FROM tab0 AS cor0
----
2757
554739
60278
query I rowsort
SELECT - 0 + + col0 * cor0.col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT + col1 + + ( col0 ) * 15 * - col0 + + col0 AS col2 FROM tab0 AS cor0
----
-118635
-18243
-8530
query I rowsort
SELECT tab0.col0 * + 28 AS col1 FROM tab0
----
2492
672
980
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5769
SELECT CAST( NULL AS SIGNED ) + - 33 / - cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5769
SELECT CAST ( NULL AS INTEGER ) + - 33 / - cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 8 AS col0 FROM tab0, tab2, tab1 AS cor0
----
8
query I rowsort
SELECT DISTINCT - col1 * tab2.col1 * + col0 + 55 + 12 FROM tab2
----
-22764
-271451
-6660
query I rowsort
SELECT DISTINCT - col1 + col0 + col2 FROM tab1
----
111
163
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5773
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5773
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5774
SELECT ALL - col2 DIV col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL - col2 / col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col2 ) col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT 67 * 76 + col1 * + 58 + - col1 FROM tab0 AS cor0
----
10279
10621
9994
onlyif mysql # use DIV operator for integer division
query I rowsort label-5777
SELECT DISTINCT + ( + 22 ) DIV col2 AS col2 FROM tab0 AS cor0
----
0
22
skipif mysql # not compatible
query I rowsort label-5777
SELECT DISTINCT + ( + 22 ) / col2 AS col2 FROM tab0 AS cor0
----
0
22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5778
SELECT + CAST( NULL AS SIGNED ) + col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5778
SELECT + CAST ( NULL AS INTEGER ) + col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 * 75 AS col1 FROM tab2 AS cor0
----
-1275
-2325
-4425
query I rowsort
SELECT DISTINCT col1 * - 42 + - col1 FROM tab2 AS cor0
----
-1333
-2537
-731
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5781
SELECT DISTINCT + col0 + CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5781
SELECT DISTINCT + col0 + CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - col0 * + ( + ( col0 ) ) * + col0 + - col2 * col0 - - col2 FROM tab0 AS cor0
----
-14583
-42909
-712185
query I rowsort
SELECT ALL - tab2.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT ALL col2 * col1 * + col2 + + col0 + col1 AS col0 FROM tab2 AS cor0
----
22637
24644
40021
query I rowsort
SELECT + - cor0.col2 * - ( col1 ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - - col2 * col2 + - ( - col1 ) AS col2 FROM tab0 cor0
----
1175
6815
98
query I rowsort
SELECT + col0 + ( col2 ) * col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL col0 * + col1 - ( col0 ) * col2 FROM tab2 cor0
----
-1659
2574
28
query I rowsort
SELECT DISTINCT + col0 * - 73 AS col2 FROM tab2 AS cor0
----
-511
-5694
-5767
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5790
SELECT ALL + - col0 + CAST( + col2 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
-1113
-36
-6813
skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL + - col0 + CAST ( + col2 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT col2 + ( col1 ) * - col1 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * ( col1 ) col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL - - cor0.col2 + ( col1 ) FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL + cor0.col0 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 40 col0 FROM tab2 AS cor0
----
-40
-40
-40
query I rowsort
SELECT 45 + col0 AS col1 FROM tab0 AS cor0
----
134
69
80
query I rowsort
SELECT + cor0.col1 + - cor0.col0 * + col0 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT DISTINCT - - 65 + - col2 FROM tab2 AS cor0
----
27
38
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5799
SELECT ALL + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5799
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col0 * + col2 AS col2 FROM tab0 cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + - col1 col1 FROM tab2 AS cor0
----
-24
19
62
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1, tab1 AS cor2
----
972 values hashing to 0a9194f200a4220e419d35c461f9fcfe
query I rowsort
SELECT DISTINCT 55 FROM tab1, tab2 AS cor0
----
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-5804
SELECT ALL - col0 DIV - col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL - col0 / - col0 FROM tab0
----
1
1
1
query I rowsort
SELECT - + 96 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 * - col1 + 95 col0 FROM tab2 AS cor0
----
-122
-1248
-4507
query I rowsort
SELECT ALL + ( + col1 ) + - col2 + col0 AS col2 FROM tab1 AS cor0
----
-25
-3
17
query I rowsort
SELECT DISTINCT 49 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1274
-1323
-1862
query I rowsort
SELECT + 14 + col1 FROM tab1 AS cor0
----
24
27
40
query I rowsort
SELECT DISTINCT - + cor0.col0 + col0 FROM tab0 cor0
----
0
query I rowsort
SELECT + ( col1 ) + + col0 AS col0 FROM tab2 AS cor0
----
137
38
96
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 * col0 - col0 ) > + col2 * - tab2.col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 - - col2 ) IN ( col1 / - col0 + tab0.col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5814
SELECT DISTINCT + col2 DIV tab2.col0 FROM tab2
----
0
3
skipif mysql # not compatible
query I rowsort label-5814
SELECT DISTINCT + col2 / tab2.col0 FROM tab2
----
0
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-5815
SELECT DISTINCT col1 * tab1.col1 DIV col0 col1 FROM tab1
----
1
2
225
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5815
SELECT DISTINCT col1 * tab1.col1 / col0 col1 FROM tab1
----
1
2
225
onlyif mysql # use DIV operator for integer division
query I rowsort label-5816
SELECT ALL - col2 * col2 DIV - tab2.col0 FROM tab2
----
104
18
8
skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL - col2 * col2 / - tab2.col0 FROM tab2
----
104
18
8
query I rowsort
SELECT - col0 + + col0 * col0 + col2 FROM tab1
----
4089
60
6416
query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE ( col1 + - col2 ) >= ( NULL )
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5819
SELECT cor0.col0 + + col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5819
SELECT cor0.col0 + + col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 66 * col2 - 45 col0 FROM tab1 cor0
----
3519
3717
6291
query I rowsort
SELECT col2 * + col2 * + col2 FROM tab2
----
17576
19683
54872
onlyif mysql # use DIV operator for integer division
query I rowsort label-5822
SELECT tab1.col1 * col0 DIV col0 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-5822
SELECT tab1.col1 * col0 / col0 FROM tab1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col2 + col0 * - col0 col1 FROM tab2
----
-6760
-7685
-778
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * + ( 74 ) col1 FROM tab1
----
4022
4228
7117
query I rowsort
SELECT 24 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT ALL + col1 * tab1.col1 + col2 * - ( + col1 ) FROM tab1
----
-1079
-470
-728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5827
SELECT 32 * + col2 * CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5827
SELECT 32 * + col2 * CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 + - col1 * cor0.col2 col1 FROM tab1 AS cor0
----
-1202
-1358
-524
query I rowsort
SELECT DISTINCT - - ( - col2 ) - - col2 * col0 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT + 63 * - col2 AS col2 FROM tab1
----
-3402
-3591
-6048
query I rowsort
SELECT col1 + cor0.col2 + - col0 FROM tab1 cor0
----
29
3
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-5832
SELECT - col0 DIV col2 + - col0 * cor0.col2 * col2 FROM tab1 AS cor0
----
-207937
-737280
-8748
skipif mysql # not compatible
query I rowsort label-5832
SELECT - col0 / col2 + - col0 * cor0.col2 * col2 FROM tab1 AS cor0
----
-207937
-737280
-8748
query I rowsort
SELECT 61 FROM tab2, tab1 cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT ALL + col0 * + tab1.col2 AS col2 FROM tab1
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) + + col1 col0 FROM tab2
----
-21
33
4
query I rowsort
SELECT ALL col2 + tab0.col1 + - col2 * col0 FROM tab0
----
-673
-7125
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-5837
SELECT + 27 DIV - ( - cor0.col1 ) col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5837
SELECT + 27 / - ( - cor0.col1 ) col0 FROM tab0 AS cor0
----
0
0
0
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 624c4b72c6f348b0f702418bfe39bd29
query I rowsort
SELECT ALL cor0.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT + + cor0.col1 * col1 FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-5841
SELECT DISTINCT col2 DIV col2 col1 FROM tab0 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5841
SELECT DISTINCT col2 / col2 col1 FROM tab0 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col1 ) col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + ( 81 ) FROM tab0
----
81
81
81
query I rowsort
SELECT DISTINCT + + ( 42 ) FROM tab2, tab1, tab0 AS cor0
----
42
query I rowsort
SELECT ALL - 88 * + 40 AS col0 FROM tab0
----
-3520
-3520
-3520
query I rowsort
SELECT DISTINCT + 75 * + col0 FROM tab1 AS cor0
----
225
4800
6000
query I rowsort
SELECT DISTINCT + 76 + - col1 FROM tab1 AS cor0
----
50
63
66
query I rowsort
SELECT + cor0.col2 + col1 * 91 + + col0 FROM tab0 AS cor0
----
7883
8452
8863
query I rowsort
SELECT ALL - 79 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-103
-114
-168
query I rowsort
SELECT - + col0 + col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT 32 * col2 + + col0 AS col0 FROM tab0 AS cor0
----
1080
2713
67
query I rowsort
SELECT ALL - col2 + + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1226
-609
-8003
query I rowsort
SELECT - 1 - + col2 AS col1 FROM tab2 cor0
----
-27
-28
-39
query I rowsort
SELECT - + col2 + col1 AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ( col2 ) + col1 + + col1 FROM tab1 AS cor0
----
106
122
77
query I rowsort
SELECT - col0 + col2 * + col1 FROM tab2 AS cor0
----
1456
567
830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - col2 * ( + col2 ) + + col1 col1 FROM tab1 AS cor0
----
-2864
-3229
-9190
query I rowsort
SELECT - ( col2 ) * - 90 FROM tab0 AS cor0
----
2970
7380
90
query I rowsort
SELECT ALL 58 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT + 78 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5861
SELECT + CAST( 57 + cor0.col0 AS SIGNED ) * + cor0.col2 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 04d9f3c15cbcf9689ba970eac2220fc7
skipif mysql # not compatible
query I rowsort label-5861
SELECT + CAST ( 57 + cor0.col0 AS INTEGER ) * + cor0.col2 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 04d9f3c15cbcf9689ba970eac2220fc7
query I rowsort
SELECT + ( 24 ) - + cor0.col0 FROM tab2, tab0 cor0
----
9 values hashing to 1406e6d891f94fa7f8418e711baaba17
onlyif mysql # use DIV operator for integer division
query I rowsort label-5863
SELECT DISTINCT - col2 DIV - tab1.col0 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-5863
SELECT DISTINCT - col2 / - tab1.col0 FROM tab1
----
0
1
18
query I rowsort
SELECT DISTINCT + 55 AS col1 FROM tab2, tab1 cor0
----
55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5865
SELECT CAST( NULL AS SIGNED ) / col0 - col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5865
SELECT CAST ( NULL AS INTEGER ) / col0 - col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL + ( 8 ) AS col2 FROM tab2 AS cor0
----
8
8
8
query I rowsort
SELECT DISTINCT col0 + - 26 FROM tab0 AS cor0
----
-2
63
9
query I rowsort
SELECT - - col1 * - col1 * col1 AS col1 FROM tab2 AS cor0
----
-205379
-29791
-4913
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 13 col0 FROM tab0 AS cor0
----
-13
-13
-13
onlyif mysql # use DIV operator for integer division
query I rowsort label-5871
SELECT - col0 DIV - cor0.col2 AS col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-5871
SELECT - col0 / - cor0.col2 AS col2 FROM tab0 AS cor0
----
0
1
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-5872
SELECT DISTINCT + + col1 DIV col0 AS col2 FROM tab2 AS cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT + + col1 / col0 AS col2 FROM tab2 AS cor0
----
0
4
query I rowsort
SELECT ALL + - 88 + col2 FROM tab2 AS cor0
----
-50
-61
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 col1 FROM tab0 AS cor0
----
75
75
75
query I rowsort
SELECT 85 * col1 FROM tab2 AS cor0
----
1445
2635
5015
query I rowsort
SELECT cor0.col0 * - col1 + 17 * + col2 AS col2 FROM tab1 AS cor0
----
329
592
840
query I rowsort
SELECT - col2 * col0 + + col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 col0 FROM tab1 AS cor0
----
89
89
89
query I rowsort
SELECT DISTINCT col1 * ( + col1 ) + col2 AS col1 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT ALL + cor0.col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT col1 * - ( - col0 ) AS col0 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-5882
SELECT + col1 DIV - col1 + + col2 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-5882
SELECT + col1 / - col1 + + col2 FROM tab1 AS cor0
----
53
56
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * col0 col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - col0 * 15 FROM tab1 AS cor0
----
-1200
-45
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-5885
SELECT col2 + + col0 DIV col0 col0 FROM tab1 AS cor0
----
55
58
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5885
SELECT col2 + + col0 / col0 col0 FROM tab1 AS cor0
----
55
58
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 * col2 + col0 col1 FROM tab1 cor0
----
208000
737360
8751
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5887
SELECT DISTINCT cor0.col1 + CAST( col1 AS SIGNED ) * col1 FROM tab0 AS cor0
----
7482
8372
9506
skipif mysql # not compatible
query I rowsort label-5887
SELECT DISTINCT cor0.col1 + CAST ( col1 AS INTEGER ) * col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT 86 * - col2 FROM tab0
----
-2838
-7052
-86
query I rowsort
SELECT ALL + + col0 - ( + col2 * col1 ) AS col2 FROM tab1 cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT + col2 * 35 + + col0 * col0 * + 26 + + col1 FROM tab1 AS cor0
----
108501
169773
2150
query I rowsort
SELECT DISTINCT - + col1 + + ( + col2 ) * col1 + - col2 * - col0 FROM tab0 AS cor0
----
14669
35
3544
query I rowsort
SELECT ALL - col1 + - ( col1 ) FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT ALL 93 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT - ( + cor0.col0 ) + - cor0.col0 AS col1 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT - 26 + col1 FROM tab0 AS cor0
----
60
65
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + cor0.col2 col1 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 + - col0 col2 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT tab1.col2 * ( + col2 ) * + col1 AS col0 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT ALL 5 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d
query I rowsort
SELECT col1 - + col1 * - 61 AS col2 FROM tab1
----
1612
620
806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 - + col2 col2 FROM tab0 AS cor0
----
-2
-51
30
query I rowsort
SELECT + 22 * + col0 + 30 FROM tab1 AS cor0
----
1438
1790
96
query I rowsort
SELECT + - 99 * - col0 - 77 * col2 * - col1 AS col0 FROM tab1 AS cor0
----
104016
108405
50226
query I rowsort
SELECT col1 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL + + ( - cor0.col1 ) FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 85 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT ALL 71 FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
81 values hashing to 39b7515708f32e28b7b5a1bfec0df356
query I rowsort
SELECT ALL 22 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 * col0 col2 FROM tab1
----
4096
6400
9
query I rowsort
SELECT - col1 + - col2 + - col1 AS col2 FROM tab1
----
-106
-122
-77
query I rowsort
SELECT ALL 19 AS col1 FROM tab1
----
19
19
19
query I rowsort
SELECT + + 32 + col0 FROM tab1 AS cor0
----
112
35
96
query I rowsort
SELECT ALL - col1 + - tab1.col1 * col2 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT - 0 + col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT 77 * 32 + + col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
3110
3301
3998
query I rowsort
SELECT ALL + 54 * + col2 + - col2 AS col1 FROM tab0 AS cor0
----
1749
4346
53
query I rowsort
SELECT DISTINCT - + col2 + 1 FROM tab1 cor0
----
-53
-56
-95
query I rowsort
SELECT DISTINCT + col0 + 49 AS col1 FROM tab2 AS cor0
----
127
128
56
query I rowsort
SELECT ALL cor0.col1 + + col0 * cor0.col0 FROM tab2 AS cor0
----
6143
6258
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col0 * col2 col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT col0 + col1 * col2 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT ALL - 25 + + 96 FROM tab2 AS cor0
----
71
71
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-5923
SELECT DISTINCT col1 DIV - 20 FROM tab2 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT col1 / - 20 FROM tab2 AS cor0
----
-1
-2
0
query I rowsort
SELECT ALL - col0 + + col0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 * + col1 + + col2 AS col2 FROM tab2 AS cor0
----
-251
-3455
-934
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL - ( col0 ) + + col1 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT ALL + 71 * col2 FROM tab0 cor0
----
2343
5822
71
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 91c4f11552b395e0eb390f09eebaec3d
query I rowsort
SELECT - 88 * + col2 * - cor0.col2 FROM tab2 AS cor0
----
127072
59488
64152
query I rowsort
SELECT ALL + - col0 + 86 FROM tab1 AS cor0
----
22
6
83
query I rowsort
SELECT ALL - col2 * cor0.col1 * - col0 AS col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT + cor0.col1 - col2 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL + + col0 * ( col1 ) FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5935
SELECT ALL + col0 + CAST( + col0 AS SIGNED ) FROM tab1
----
128
160
6
skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL + col0 + CAST ( + col0 AS INTEGER ) FROM tab1
----
128
160
6
query I rowsort
SELECT col1 + + 78 FROM tab1
----
104
88
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 col0 FROM tab1, tab1 AS cor0
----
11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5938
SELECT ALL + cor0.col0 + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL + cor0.col0 + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT col1 + + col2 + cor0.col1 * col1 AS col1 FROM tab2 AS cor0
----
1019
344
3566
query I rowsort
SELECT ALL + col1 - - col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT col0 + - col1 + 80 * col2 FROM tab1 cor0
----
4297
4614
7747
query I rowsort
SELECT DISTINCT + col2 + 74 FROM tab2 AS cor0
----
100
101
112
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1, tab0 cor2
----
3645 values hashing to f99537dcc805430f79ac82ef70a4bd59
query I rowsort
SELECT DISTINCT - cor0.col0 + col0 * 58 FROM tab1 cor0
----
171
3648
4560
query I rowsort
SELECT - col1 * + cor0.col2 + - cor0.col0 FROM tab0 cor0
----
-132
-2862
-7551
query I rowsort
SELECT ALL 94 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 5fc25b60fd90da23ba5e7be7e868d4d7
query I rowsort
SELECT ALL ( cor0.col1 ) + - col2 AS col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT + col2 - + cor0.col0 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT tab1.col2 - - col2 FROM tab1
----
108
114
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-5950
SELECT ALL - col2 DIV col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL - col2 / col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - 10 * col0 col0 FROM tab2 AS cor0
----
-43
-752
-754
query I rowsort
SELECT ALL + - cor0.col0 + + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT col1 * ( col1 ) + 12 AS col2 FROM tab1 AS cor0
----
112
181
688
query I rowsort
SELECT DISTINCT - 15 * + 27 + - cor0.col1 FROM tab1 cor0
----
-415
-418
-431
query I rowsort
SELECT ALL + col2 * - col2 - - col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT DISTINCT 72 * col2 FROM tab0 AS cor0
----
2376
5904
72
query I rowsort
SELECT DISTINCT + ( - 39 ) * + col2 FROM tab2 AS cor0
----
-1014
-1053
-1482
query I rowsort
SELECT ALL - tab0.col1 * 64 FROM tab0, tab1 AS cor0
----
9 values hashing to b45afe00874fb756ff92d6c69e7d5e98
query I rowsort
SELECT 79 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT ALL col0 - 3 AS col2 FROM tab2
----
4
75
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * - col2 - 99 col0 FROM tab0 AS cor0
----
-64
693
7199
query I rowsort
SELECT - + col1 * 39 - + col2 FROM tab0 AS cor0
----
-3387
-3631
-3784
query I rowsort
SELECT DISTINCT 21 AS col0 FROM tab1 cor0
----
21
query I rowsort
SELECT - 60 * - col1 + - col2 FROM tab2 AS cor0
----
1833
3514
982
query I rowsort
SELECT + col0 + 6 AS col0 FROM tab1 AS cor0
----
70
86
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 + col1 - col2 col0 FROM tab1 AS cor0
----
-21
-40
-76
query I rowsort
SELECT DISTINCT + ( + 24 ) AS col0 FROM tab2, tab1, tab2 AS cor0
----
24
query I rowsort
SELECT ALL - 5 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21
query I rowsort
SELECT 44 FROM tab0, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT - 6 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 8be8910507908e6353d02a545b748252
onlyif mysql # use DIV operator for integer division
query I rowsort label-5971
SELECT - col2 DIV 37 AS col2 FROM tab1
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-5971
SELECT - col2 / 37 AS col2 FROM tab1
----
-1
-1
-2
onlyif mysql # use DIV operator for integer division
query I rowsort label-5972
SELECT DISTINCT + col2 * - col2 + col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
-1444
-676
-732
skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT + col2 * - col2 + col2 / - col0 AS col0 FROM tab2 AS cor0
----
-1444
-676
-732
onlyif mysql # use DIV operator for integer division
query I rowsort label-5973
SELECT 96 + col2 DIV - col0 AS col1 FROM tab1
----
78
95
96
skipif mysql # not compatible
query I rowsort label-5973
SELECT 96 + col2 / - col0 AS col1 FROM tab1
----
78
95
96
query I rowsort
SELECT col2 + - 42 * + col1 FROM tab0 AS cor0
----
-3579
-3740
-4073
query I rowsort
SELECT ALL + 71 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
query I rowsort
SELECT tab2.col2 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL + ( + col0 + - 30 ) FROM tab0
----
-6
5
59
query I rowsort
SELECT + 44 AS col0 FROM tab1
----
44
44
44
query I rowsort
SELECT DISTINCT - + col0 * + 30 FROM tab2 AS cor0
----
-210
-2340
-2370
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5980
SELECT - + col1 + CAST( - 97 AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
-317
-6218
-7773
skipif mysql # not compatible
query I rowsort label-5980
SELECT - + col1 + CAST ( - 97 AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
-317
-6218
-7773
onlyif mysql # use DIV operator for integer division
query I rowsort label-5981
SELECT + col0 + + col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-5981
SELECT + col0 + + col1 / + col2 AS col2 FROM tab0 AS cor0
----
132
26
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5982
SELECT DISTINCT + + col0 * CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5982
SELECT DISTINCT + + col0 * CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( cor0.col0 AS REAL ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT + col0 * + col2 + 54 FROM tab0 AS cor0
----
7352
846
89
query I rowsort
SELECT cor0.col1 + cor0.col0 * + 23 FROM tab2 AS cor0
----
1834
1853
192
query I rowsort
SELECT 40 + col0 * + col0 AS col0 FROM tab0 AS cor0
----
1265
616
7961
query I rowsort
SELECT ALL ( col1 + - tab2.col2 ) AS col1 FROM tab2
----
-21
33
4
query I rowsort
SELECT DISTINCT 1 * col1 AS col1 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-5989
SELECT ALL col2 + cor0.col1 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
30
81
skipif mysql # not compatible
query I rowsort label-5989
SELECT ALL col2 + cor0.col1 / - col0 AS col1 FROM tab0 AS cor0
----
-1
30
81
query I rowsort
SELECT - 61 + col0 FROM tab2
----
-54
17
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 col2 FROM tab1
----
41
query I rowsort
SELECT cor0.col1 * + 69 FROM tab0, tab0 AS cor0
----
9 values hashing to 45c925e7846348e192cfdd0f425e3550
onlyif mysql # use DIV operator for integer division
query I rowsort label-5993
SELECT DISTINCT col0 * col0 DIV + 74 + + col1 AS col1 FROM tab1
----
26
65
99
skipif mysql # not compatible
query I rowsort label-5993
SELECT DISTINCT col0 * col0 / + 74 + + col1 AS col1 FROM tab1
----
26
65
99
query I rowsort
SELECT col2 * col1 * + ( - col1 ) AS col0 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT DISTINCT + col2 * - 14 FROM tab0
----
-1148
-14
-462
query I rowsort
SELECT - + ( - col0 ) + + col2 * - cor0.col2 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT DISTINCT ( 16 ) FROM tab1 AS cor0
----
16
query I rowsort
SELECT ALL + ( col2 ) * col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + - col1 * 31 FROM tab2 AS cor0
----
-1829
-527
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col0 * cor0.col1 col1 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT + col0 * + ( - col1 ) * col1 AS col1 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT DISTINCT col0 + + 50 - - col2 AS col0 FROM tab0
----
107
221
86
query I rowsort
SELECT ALL + ( - cor0.col1 ) FROM tab0, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT 35 - col2 AS col1 FROM tab1
----
-19
-22
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-6005
SELECT ALL + tab1.col0 DIV + col1 + tab1.col1 + col1 * col0 col0 FROM tab1
----
104
1059
656
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL + tab1.col0 / + col1 + tab1.col1 + col1 * col0 col0 FROM tab1
----
104
1059
656
query I rowsort
SELECT + - col2 + + col1 * - col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT - ( 7 ) * col1 * 80 FROM tab2
----
-17360
-33040
-9520
onlyif mysql # use DIV operator for integer division
query I rowsort label-6008
SELECT ( - col2 ) * col0 + - col2 DIV - col2 AS col2 FROM tab1
----
-161
-3647
-7679
skipif mysql # not compatible
query I rowsort label-6008
SELECT ( - col2 ) * col0 + - col2 / - col2 AS col2 FROM tab1
----
-161
-3647
-7679
query I rowsort
SELECT + 21 * col0 FROM tab0 AS cor0
----
1869
504
735
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col2 AS REAL ) FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6011
SELECT - - CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-6011
SELECT - - CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - col1 * - cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT + - col2 + + 71 * col0 FROM tab2 AS cor0
----
470
5512
5571
query I rowsort
SELECT 11 * - 58 FROM tab1 AS cor0
----
-638
-638
-638
query I rowsort
SELECT ALL + tab0.col0 - 71 FROM tab0
----
-36
-47
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-6016
SELECT 78 * tab1.col2 + col1 DIV + col2 + col1 AS col2 FROM tab1
----
4238
4456
7501
skipif mysql # not compatible
query I rowsort label-6016
SELECT 78 * tab1.col2 + col1 / + col2 + col1 AS col2 FROM tab1
----
4238
4456
7501
onlyif mysql # use DIV operator for integer division
query I rowsort label-6017
SELECT 53 + col0 DIV col2 FROM tab0
----
53
54
88
skipif mysql # not compatible
query I rowsort label-6017
SELECT 53 + col0 / col2 FROM tab0
----
53
54
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 18 col0 FROM tab1
----
-36
-39
-78
query I rowsort
SELECT - cor1.col0 AS col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT - - col1 * col2 * col1 + col1 * 91 + col0 AS col1 FROM tab0 AS cor0
----
18271
251918
687412
query I rowsort
SELECT DISTINCT - 14 * 79 * col1 FROM tab0 cor0
----
-100646
-107282
-95116
query I rowsort
SELECT ALL + col2 * - col0 + + col1 AS col0 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT - 50 + + col2 * + col0 FROM tab1 AS cor0
----
112
3598
7630
onlyif mysql # use DIV operator for integer division
query I rowsort label-6024
SELECT + col1 DIV + col2 col1 FROM tab0 AS cor0
----
1
2
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6024
SELECT + col1 / + col2 col1 FROM tab0 AS cor0
----
1
2
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6025
SELECT ALL - col1 DIV - col0 col1 FROM tab0 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL - col1 / - col0 col1 FROM tab0 AS cor0
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-6026
SELECT - cor0.col0 DIV - col1 + - ( - cor0.col2 ) * + col2 + ( + ( col1 ) * col1 ) AS col0 FROM tab1 AS cor0
----
3355
3592
9391
skipif mysql # not compatible
query I rowsort label-6026
SELECT - cor0.col0 / - col1 + - ( - cor0.col2 ) * + col2 + ( + ( col1 ) * col1 ) AS col0 FROM tab1 AS cor0
----
3355
3592
9391
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6027
SELECT DISTINCT - col2 * cor0.col1 + CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580
skipif mysql # not compatible
query I rowsort label-6027
SELECT DISTINCT - col2 * cor0.col1 + CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT col0 * - cor0.col0 + - ( 46 ) * - col1 FROM tab0 AS cor0
----
-3735
3237
3380
query I rowsort
SELECT ALL 47 + col0 * + col2 FROM tab1 AS cor0
----
209
3695
7727
query I rowsort
SELECT - - cor0.col1 + - col2 + - col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + 80 * col0 + 3 FROM tab1 AS cor0
----
243
5123
6403
query I rowsort
SELECT + + 53 * + col1 + 4 FROM tab2 AS cor0
----
1647
3131
905
query I rowsort
SELECT DISTINCT - col0 + col1 * + cor0.col1 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT DISTINCT + col2 * col1 + 79 * col2 FROM tab1 AS cor0
----
5073
5670
8832
query I rowsort
SELECT DISTINCT - col1 - ( - col1 ) FROM tab2
----
0
query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT ALL + col2 + col2 + + ( col1 ) * col1 FROM tab1 AS cor0
----
214
361
784
onlyif mysql # use DIV operator for integer division
query I rowsort label-6038
SELECT ALL + + 70 DIV + col2 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL + + 70 / + col2 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT + + 89 AS col0 FROM tab1 AS cor0
----
89
89
89
query I rowsort
SELECT ALL + + 15 * col0 + col1 * col2 FROM tab0 AS cor0
----
3198
622
8797
query I rowsort
SELECT ALL - 85 * + col0 + 96 AS col2 FROM tab0 AS cor0
----
-1944
-2879
-7469
query I rowsort
SELECT col0 + - 56 * 78 * + col2 AS col0 FROM tab0
----
-144120
-358087
-4333
query I rowsort
SELECT DISTINCT + col2 + + ( + col2 ) * - col1 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL col2 * + 2 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6045
SELECT DISTINCT + col2 * + CAST( NULL AS DECIMAL ) + - col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6045
SELECT DISTINCT + col2 * + CAST ( NULL AS REAL ) + - col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6046
SELECT ALL + cor0.col2 + CAST( NULL AS SIGNED ) 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-6046
SELECT ALL + cor0.col2 + 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-6047
SELECT - col2 * CAST( col0 AS SIGNED ) * cor0.col0 FROM tab1 AS cor0
----
-233472
-486
-614400
skipif mysql # not compatible
query I rowsort label-6047
SELECT - col2 * CAST ( col0 AS INTEGER ) * cor0.col0 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT ALL - - col1 * + 72 - + cor0.col1 FROM tab1 AS cor0
----
1846
710
923
query I rowsort
SELECT DISTINCT - + col1 + - cor0.col2 * + 45 AS col1 FROM tab0 AS cor0
----
-142
-1571
-3781
query I rowsort
SELECT DISTINCT col2 + + cor0.col2 * - 69 FROM tab0 AS cor0
----
-2244
-5576
-68
query I rowsort
SELECT + + cor0.col0 + cor0.col1 * col2 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT 96 * - col0 + - col2 AS col1 FROM tab0 AS cor0
----
-2337
-3361
-8626
query I rowsort
SELECT DISTINCT col1 + cor0.col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6054
SELECT ALL + col1 * cor0.col2 + col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
1535
647
838
skipif mysql # not compatible
query I rowsort label-6054
SELECT ALL + col1 * cor0.col2 + col0 / + col0 AS col2 FROM tab2 AS cor0
----
1535
647
838
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6055
SELECT + - CAST( NULL AS SIGNED ) + - col0 * + cor0.col0 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6055
SELECT + - CAST ( NULL AS INTEGER ) + - col0 * + cor0.col0 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + 33 FROM tab0 cor0
----
-33
-33
-33
query I rowsort
SELECT ALL + - col0 * - cor0.col2 + - cor0.col0 FROM tab0 AS cor0
----
0
7209
768
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + cor0.col0 + + col1 col1 FROM tab2 AS cor0
----
113
196
69
query I rowsort
SELECT DISTINCT + 54 * + cor0.col2 + col2 FROM tab2 AS cor0
----
1430
1485
2090
query I rowsort
SELECT + + 65 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( 52 ) + + cor0.col0 * ( - col2 ) * col1 col0 FROM tab1 cor0
----
-36371
-4106
-99692
query I rowsort
SELECT DISTINCT - + col1 * + col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + col2 * 54 FROM tab2 AS cor0
----
1404
1458
2052
onlyif mysql # use DIV operator for integer division
query I rowsort label-6064
SELECT DISTINCT col1 DIV col0 + col1 AS col0 FROM tab2 AS cor0
----
17
35
59
skipif mysql # not compatible
query I rowsort label-6064
SELECT DISTINCT col1 / col0 + col1 AS col0 FROM tab2 AS cor0
----
17
35
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + ( - 39 ) * + col1 + col2 col1 FROM tab1 AS cor0
----
22287
48768
54810
query I rowsort
SELECT + - col0 - 88 FROM tab0 cor0
----
-112
-123
-177
query I rowsort
SELECT ALL - col1 * - col2 + ( col2 ) * col0 FROM tab2
----
1026
3562
3648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6068
SELECT DISTINCT col1 * + col2 * + CAST( NULL AS SIGNED ) + col1 + + tab1.col2 * + 12 col2 FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6068
SELECT DISTINCT col1 * + col2 * + CAST ( NULL AS INTEGER ) + col1 + + tab1.col2 * + 12 col2 FROM tab1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6069
SELECT ALL - col2 + col2 DIV ( + 41 ) FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL - col2 + col2 / ( + 41 ) FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL col0 * - col2 + col2 * 11 + + col1 FROM tab1
----
-3011
-6611
458
query I rowsort
SELECT ALL + col0 + ( col0 ) * col0 AS col2 FROM tab2
----
56
6162
6320
query I rowsort
SELECT DISTINCT - col1 * + col0 * col0 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT - col0 - + col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL + col2 + ( + col0 ) AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + col1 * 25 + - col1 FROM tab2 AS cor0
----
1416
408
744
query I rowsort
SELECT DISTINCT - col2 - - col1 * - 65 FROM tab1 cor0
----
-1744
-707
-941
query I rowsort
SELECT - 26 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4e49eac022daeae6f88f610644ba3754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col1 * - ( 63 ) col0 FROM tab0 AS cor0
----
130032
213885
510237
query I rowsort
SELECT ALL + - 45 + cor0.col1 * col1 FROM tab1 AS cor0
----
124
55
631
query I rowsort
SELECT ALL col1 * - 30 AS col0 FROM tab0 cor0
----
-2580
-2730
-2910
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 67 col1 FROM tab1 AS cor0
----
67
67
67
query I rowsort
SELECT DISTINCT col2 + - col1 AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT + + col0 * + cor0.col1 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6084
SELECT - 33 DIV col1 AS col1 FROM tab1 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-6084
SELECT - 33 / col1 AS col1 FROM tab1 AS cor0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - col2 col1 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT 4 * col1 FROM tab2 AS cor0
----
124
236
68
query I rowsort
SELECT - - col2 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT col1 + - col2 * col2 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 283f1c907a0999dbd972d3bd45746c06
query I rowsort
SELECT ALL 79 + col2 AS col2 FROM tab1 AS cor0
----
133
136
175
query I rowsort
SELECT - - 52 * col1 FROM tab0 AS cor0
----
4472
4732
5044
onlyif mysql # use DIV operator for integer division
query I rowsort label-6092
SELECT - 69 * col2 DIV + 29 AS col2 FROM tab2 AS cor0
----
-61
-64
-90
skipif mysql # not compatible
query I rowsort label-6092
SELECT - 69 * col2 / + 29 AS col2 FROM tab2 AS cor0
----
-61
-64
-90
query I rowsort
SELECT - 48 FROM tab0 cor0
----
-48
-48
-48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6094
SELECT cor0.col0 + + CAST( NULL AS SIGNED ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6094
SELECT cor0.col0 + + CAST ( NULL AS INTEGER ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - 8 AS col1 FROM tab1 AS cor0
----
-8
-8
-8
query I rowsort
SELECT - - 53 + col0 * col2 * col0 FROM tab2 AS cor0
----
1376
158237
237211
query I rowsort
SELECT 34 + + cor0.col1 FROM tab2 AS cor0
----
51
65
93
query I rowsort
SELECT - + 71 * col2 AS col2 FROM tab0 AS cor0
----
-2343
-5822
-71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6100
SELECT + CAST( NULL AS SIGNED ) + 75 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6100
SELECT + CAST ( NULL AS INTEGER ) + 75 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + - ( + col1 ) * ( - col1 ) AS col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - + col2 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT 26 FROM tab1, tab2 AS cor0
----
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6104
SELECT - CAST( 94 + col0 AS SIGNED ) AS col2 FROM tab1
----
-158
-174
-97
skipif mysql # not compatible
query I rowsort label-6104
SELECT - CAST ( 94 + col0 AS INTEGER ) AS col2 FROM tab1
----
-158
-174
-97
query I rowsort
SELECT + col2 + + 64 * + col0 AS col1 FROM tab1
----
246
4153
5216
query I rowsort
SELECT col2 * 5 * tab1.col0 FROM tab1
----
18240
38400
810
query I rowsort
SELECT DISTINCT ( ( - tab0.col2 ) ) * col2 * 90 FROM tab0
----
-605160
-90
-98010
query I rowsort
SELECT - ( col0 ) + + col0 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6109
SELECT col0 * + col2 + - col0 DIV col2 FROM tab0 AS cor0
----
0
7297
792
skipif mysql # not compatible
query I rowsort label-6109
SELECT col0 * + col2 + - col0 / col2 FROM tab0 AS cor0
----
0
7297
792
query I rowsort
SELECT col2 - + cor0.col2 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 * col2 + col0 * - col0 AS col1 FROM tab1
----
-3526
-5152
1395
query I rowsort
SELECT ALL - col0 + + col2 * + col2 FROM tab2
----
1365
598
722
query I rowsort
SELECT ALL col0 + col0 * cor0.col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT DISTINCT + cor0.col1 * - col1 - col1 * cor0.col2 FROM tab2 AS cor0
----
-1798
-5015
-935
query I rowsort
SELECT DISTINCT + + col2 * cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - cor0.col0 * col2 + cor0.col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT col1 - col0 * + col0 * col1 FROM tab2 AS cor0
----
-106080
-1488
-358897
query I rowsort
SELECT DISTINCT - col2 * col0 + col0 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-240
-4288
-8720
onlyif mysql # use DIV operator for integer division
query I rowsort label-6120
SELECT + - col1 - - col0 DIV cor0.col2 FROM tab1 AS cor0
----
-13
-26
-9
skipif mysql # not compatible
query I rowsort label-6120
SELECT + - col1 - - col0 / cor0.col2 FROM tab1 AS cor0
----
-13
-26
-9
query I rowsort
SELECT - col0 + + cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
1264
210
4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-6122
SELECT ALL col2 * col0 DIV - col1 - + col2 FROM tab0 AS cor0
----
-1
-162
-42
skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL col2 * col0 / - col1 - + col2 FROM tab0 AS cor0
----
-1
-162
-42
onlyif mysql # use DIV operator for integer division
query I rowsort label-6123
SELECT DISTINCT - col0 + col1 DIV + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-108
-179
-35
skipif mysql # not compatible
query I rowsort label-6123
SELECT DISTINCT - col0 + col1 / + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-108
-179
-35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * col0 col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL col2 * - tab2.col1 AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + - col0 * - col0 + + col1 AS col1 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT DISTINCT + col0 + cor0.col2 AS col1 FROM tab0 cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6128
SELECT - col1 DIV + col0 + col2 FROM tab2 AS cor0
----
23
26
38
skipif mysql # not compatible
query I rowsort label-6128
SELECT - col1 / + col0 + col2 FROM tab2 AS cor0
----
23
26
38
query I rowsort
SELECT DISTINCT + col0 + - col0 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - - col1 * - col0 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT + col1 * col2 + + col2 FROM tab0 AS cor0
----
2871
7544
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 col2 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 * - col0 col0 FROM tab0 AS cor0
----
-2403
-648
-945
query I rowsort
SELECT ALL + ( - col2 ) * col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - - 50 AS col2 FROM tab2 AS cor0
----
50
50
50
query I rowsort
SELECT ALL ( - col1 * col0 ) AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT 84 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT ALL + ( + col2 ) * tab2.col2 AS col0 FROM tab2
----
1444
676
729
query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab1, tab2 cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col0 col1 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT col0 + col0 * + col0 * col1 AS col1 FROM tab1 AS cor0
----
237
41024
83280
query I rowsort
SELECT ALL col0 - + col2 AS col1 FROM tab1
----
-16
-51
7
query I rowsort
SELECT ALL + tab1.col1 AS col1 FROM tab1 WHERE ( NULL ) IN ( + col0 )
----
query I rowsort
SELECT + tab2.col2 + + col0 + tab2.col1 * - col2 FROM tab2
----
-1430
-529
-803
query I rowsort
SELECT DISTINCT col0 * col1 - + col1 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( + col2 * col2 * col2 )
----
query I rowsort
SELECT col1 + col1 + + col1 FROM tab1
----
30
39
78
query I rowsort
SELECT - col1 * + col1 + col1 + col2 FROM tab0
----
-7277
-8108
-9311
query I rowsort
SELECT DISTINCT + tab0.col0 * + col2 - + tab0.col0 FROM tab0
----
0
7209
768
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col2 )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE col1 NOT BETWEEN NULL AND ( + col2 * col2 )
----
35
97
1
query I rowsort
SELECT - col1 FROM tab0 WHERE ( NULL ) IN ( col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 ) IN ( + tab2.col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT ( col0 * + col2 + - col1 ) < - col2 + col1
----
26
27
38
query I rowsort
SELECT DISTINCT col2 + - col0 + + col2 FROM tab1
----
105
112
50
query I rowsort
SELECT + tab0.col2 * col0 * + col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT ALL col2 + + col0 AS col1 FROM tab0 WHERE NOT ( col2 * col0 + - col0 ) >= NULL
----
query I rowsort
SELECT ALL col0 + col0 + - col1 AS col2 FROM tab1
----
-20
118
147
query I rowsort
SELECT tab0.col1 - col2 * - col1 * col0 AS col0 FROM tab0
----
3492
664209
68198
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 + + col2 col2 FROM tab1
----
131
189
83
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col2 + + col0 ) IN ( - col2 * col2 + tab0.col2 * - col1 )
----
query I rowsort
SELECT + col1 * + col0 + + col2 AS col2 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT ALL + col2 * tab1.col2 - - col1 FROM tab1
----
2942
3259
9229
query I rowsort
SELECT col2 * col0 - + col2 AS col1 FROM tab2
----
162
2002
2964
query I rowsort
SELECT ALL col0 * col1 * + col0 AS col0 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT col2 - tab1.col1 AS col1 FROM tab1
----
28
47
83
query I rowsort
SELECT ALL + col2 + - col0 * col0 * col0 AS col1 FROM tab0
----
-13791
-42874
-704887
query I rowsort
SELECT DISTINCT col2 * + col1 + - col2 * + col0 AS col1 FROM tab1
----
-3078
-6432
1242
onlyif mysql # use DIV operator for integer division
query I rowsort label-6168
SELECT + cor0.col2 DIV cor0.col1 + col0 * - col1 * col1 AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
skipif mysql # not compatible
query I rowsort label-6168
SELECT + cor0.col2 / cor0.col1 + col0 * - col1 * col1 AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT - + col0 + + col0 AS col0 FROM tab1 AS cor0
----
0
0
0
query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NULL NOT IN ( - cor0.col1 )
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 = NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 + col1 * col2 NOT IN ( + col0 / - col1 + col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT + cor0.col0 + cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 00ff93cbcc751be1393f9e1fd72170f8
query I rowsort
SELECT ALL - col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 + col0 + - col0 >= + col2
----
query I rowsort
SELECT ALL col0 + + col1 * col1 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-244044
-678953
-9374
query I rowsort
SELECT + + col1 + 17 AS col2 FROM tab0 cor0
----
103
108
114
query I rowsort
SELECT DISTINCT col2 * col2 - col0 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT ALL + cor0.col0 + 2 + col2 FROM tab2 AS cor0
----
106
119
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + 40 col0 FROM tab0 AS cor0
----
122
41
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 * - col0 col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT + ( + ( - col0 ) ) FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col1 AS REAL ) / - cor0.col1 + col1 * col1 AS col1 FROM tab2 AS cor0
----
288
3480
960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col2 * + col0 col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL - 1 + - 89 * - col0 FROM tab0 AS cor0
----
2135
3114
7920
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6186
SELECT - col0 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6186
SELECT - col0 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6187
SELECT - col0 + - ( col1 ) * - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
210
3403
954
skipif mysql # not compatible
query I rowsort label-6187
SELECT - col0 + - ( col1 ) * - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
210
3403
954
onlyif mysql # use DIV operator for integer division
query I rowsort label-6188
SELECT + - 68 DIV col0 AS col2 FROM tab1 cor0
----
-1
-22
0
skipif mysql # not compatible
query I rowsort label-6188
SELECT + - 68 / col0 AS col2 FROM tab1 cor0
----
-1
-22
0
query I rowsort
SELECT + - ( 31 ) * - col0 AS col0 FROM tab1 AS cor0
----
1984
2480
93
query I rowsort
SELECT - - 21 * col0 AS col2 FROM tab1 AS cor0
----
1344
1680
63
query I rowsort
SELECT DISTINCT ( + 11 ) + tab1.col0 AS col0 FROM tab1
----
14
75
91
query I rowsort
SELECT ALL col0 + col0 * tab0.col1 * tab0.col0 FROM tab0
----
118860
49560
720900
query I rowsort
SELECT DISTINCT ( ( col1 ) ) AS col0 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 col2 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6195
SELECT DISTINCT CAST( NULL AS SIGNED ) col2 FROM tab1, tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab1, tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col1 + col0 * - col1 FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-6197
SELECT DISTINCT cor0.col0 DIV - col1 AS col0 FROM tab1 AS cor0
----
-6
0
skipif mysql # not compatible
query I rowsort label-6197
SELECT DISTINCT cor0.col0 / - col1 AS col0 FROM tab1 AS cor0
----
-6
0
query I rowsort
SELECT - col1 + 64 * col0 AS col0 FROM tab0 AS cor0
----
1450
2143
5605
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - tab2.col0 col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + - 43 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + tab1.col1 ) + + col0 * + 36 col1 FROM tab1
----
2294
2867
82
query I rowsort
SELECT + col1 * + 96 + + 72 FROM tab2
----
1704
3048
5736
query I rowsort
SELECT + col0 + + 70 FROM tab2
----
148
149
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-6204
SELECT ALL + tab1.col1 DIV 47 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL + tab1.col1 / 47 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - + col1 * + col2 AS col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + 89 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad
query I rowsort
SELECT col0 * + ( col0 ) FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT col1 * 95 AS col2 FROM tab2 AS cor0
----
1615
2945
5605
query I rowsort
SELECT DISTINCT + col2 * + 40 AS col1 FROM tab1 AS cor0
----
2160
2280
3840
query I rowsort
SELECT col1 * + 0 AS col2 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 col1 FROM tab2, tab2 AS cor0
----
55
query I rowsort
SELECT ALL tab0.col2 * + col0 * 76 FROM tab0
----
2660
554648
60192
query I rowsort
SELECT ALL - col1 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - col2 + 64 AS col1 FROM tab0 AS cor0
----
-18
31
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-6215
SELECT - cor0.col1 DIV ( col1 ) FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6215
SELECT - cor0.col1 / ( col1 ) FROM tab2 cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6216
SELECT - col1 + 92 DIV - col0 FROM tab1 AS cor0
----
-11
-14
-56
skipif mysql # not compatible
query I rowsort label-6216
SELECT - col1 + 92 / - col0 FROM tab1 AS cor0
----
-11
-14
-56
query I rowsort
SELECT - 59 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703
query I rowsort
SELECT ALL + tab0.col1 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - + 16 FROM tab1 AS cor0
----
-16
-16
-16
query I rowsort
SELECT 21 * col0 AS col2 FROM tab0 AS cor0
----
1869
504
735
query I rowsort
SELECT ALL + tab1.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL + 28 * - col0 FROM tab1
----
-1792
-2240
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-6223
SELECT + 76 DIV col0 AS col0 FROM tab1
----
0
1
25
skipif mysql # not compatible
query I rowsort label-6223
SELECT + 76 / col0 AS col0 FROM tab1
----
0
1
25
query I rowsort
SELECT - col0 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6225
SELECT DISTINCT + 43 + + cor0.col1 DIV - 46 FROM tab2 cor0
----
42
43
skipif mysql # not compatible
query I rowsort label-6225
SELECT DISTINCT + 43 + + cor0.col1 / - 46 FROM tab2 cor0
----
42
43
query I rowsort
SELECT 86 + col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1334
1490
656
onlyif mysql # use DIV operator for integer division
query I rowsort label-6227
SELECT cor0.col2 DIV col1 + + col1 - col0 AS col2 FROM tab2 AS cor0
----
-19
-60
24
skipif mysql # not compatible
query I rowsort label-6227
SELECT cor0.col2 / col1 + + col1 - col0 AS col2 FROM tab2 AS cor0
----
-19
-60
24
query I rowsort
SELECT + cor0.col2 * + col1 * 24 + - cor0.col1 FROM tab1 cor0
----
13670
29939
33670
query I rowsort
SELECT ALL + 20 + col2 FROM tab2
----
46
47
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-6230
SELECT - - col1 DIV - col2 + 15 FROM tab0 AS cor0
----
-82
13
14
skipif mysql # not compatible
query I rowsort label-6230
SELECT - - col1 / - col2 + 15 FROM tab0 AS cor0
----
-82
13
14
query I rowsort
SELECT ALL - ( col0 ) + + tab1.col1 FROM tab1
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6232
SELECT - cor0.col1 * CAST( 65 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1105
-2015
-3835
skipif mysql # not compatible
query I rowsort label-6232
SELECT - cor0.col1 * CAST ( 65 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1105
-2015
-3835
query I rowsort
SELECT - + 59 * col0 AS col2 FROM tab1 AS cor0
----
-177
-3776
-4720
query I rowsort
SELECT 61 + + col0 * ( - col0 ) FROM tab2 AS cor0
----
-6023
-6180
12
query I rowsort
SELECT + col0 + 95 + - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1073
-1306
-411
query I rowsort
SELECT DISTINCT - col0 * 12 FROM tab2 AS cor0
----
-84
-936
-948
query I rowsort
SELECT + col0 + - cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
111
163
31
query I rowsort
SELECT 98 FROM tab1, tab0 cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT + col2 + - 71 FROM tab1
----
-14
-17
25
query I rowsort
SELECT ALL col2 * ( col1 * col2 ) + - 38 * col0 + + col2 AS col1 FROM tab2
----
21584
22360
36946
onlyif mysql # use DIV operator for integer division
query I rowsort label-6241
SELECT DISTINCT + col1 DIV - ( col1 ) + - col1 AS col2 FROM tab2 AS cor0
----
-18
-32
-60
skipif mysql # not compatible
query I rowsort label-6241
SELECT DISTINCT + col1 / - ( col1 ) + - col1 AS col2 FROM tab2 AS cor0
----
-18
-32
-60
query I rowsort
SELECT col2 + + cor0.col0 * + 53 AS col2 FROM tab1 AS cor0
----
213
3449
4336
query I rowsort
SELECT DISTINCT + col1 * ( 23 ) FROM tab0 AS cor0
----
1978
2093
2231
query I rowsort
SELECT DISTINCT col0 + + col1 AS col0 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT - + col2 - - col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT 58 * - col0 + - col0 * - tab1.col1 AS col0 FROM tab1
----
-3072
-3600
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col0 + cor1.col1 col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
29
74
93
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab2 cor1, tab2 cor2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6249
SELECT CAST( col1 AS SIGNED ) AS col0 FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6249
SELECT CAST ( col1 AS INTEGER ) AS col0 FROM tab0 cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6250
SELECT + col1 * col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6250
SELECT + col1 * col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( + cor0.col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - - cor0.col0 * cor0.col0 + cor0.col1 * col2 * cor0.col1 FROM tab0 AS cor0
----
10634
244644
686963
query I rowsort
SELECT ALL - - cor0.col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT ( + col2 ) + 97 AS col1 FROM tab0 AS cor0
----
130
179
98
query I rowsort
SELECT - 30 * + col0 AS col0 FROM tab1 AS cor0
----
-1920
-2400
-90
query I rowsort
SELECT - - cor0.col1 * col1 FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6257
SELECT ALL + CAST( + col0 AS SIGNED ) AS col2 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL + CAST ( + col0 AS INTEGER ) AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT + 51 * 31 AS col0 FROM tab2
----
1581
query I rowsort
SELECT DISTINCT + col1 * col0 + - 29 AS col1 FROM tab2 AS cor0
----
1314
188
4573
query I rowsort
SELECT ALL + 31 + + cor0.col1 * - 84 FROM tab1 AS cor0
----
-1061
-2153
-809
query I rowsort
SELECT ALL - 42 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329
query I rowsort
SELECT ALL + + col1 * - col0 * - col1 AS col2 FROM tab0 AS cor0
----
177504
329315
737009
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6263
SELECT DISTINCT + col2 * col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6263
SELECT DISTINCT + col2 * col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 22 * + col2 FROM tab0 AS cor0
----
1804
22
726
query I rowsort
SELECT DISTINCT col0 * col0 * col0 + 76 * - col0 FROM tab2
----
-189
468624
487035
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab0, tab2 AS cor1
----
972 values hashing to 591a9a93560839231c038a1e10bd240a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 + - col2 col0 FROM tab2 AS cor0
----
-74
-75
-86
query I rowsort
SELECT - 30 * col0 + 35 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-455
-5070
-5135
query I rowsort
SELECT ALL + col2 + + col0 AS col0 FROM tab1 cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col2 + + col0 col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT + 34 * - col2 FROM tab2
----
-1292
-884
-918
query I rowsort
SELECT DISTINCT - + col0 * col0 * col0 FROM tab2 AS cor0
----
-343
-474552
-493039
query I rowsort
SELECT ( + 23 ) * col1 + - 81 FROM tab0 cor0
----
1897
2012
2150
query I rowsort
SELECT ALL ( ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6275
SELECT - + ( 40 ) * + col2 * 9 + - col0 + col1 * col0 DIV col0 AS col2 FROM tab2 AS cor0
----
-13742
-9379
-9696
skipif mysql # not compatible
query I rowsort label-6275
SELECT - + ( 40 ) * + col2 * 9 + - col0 + col1 * col0 / col0 AS col2 FROM tab2 AS cor0
----
-13742
-9379
-9696
query I rowsort
SELECT 85 + col2 AS col2 FROM tab2 AS cor0
----
111
112
123
query I rowsort
SELECT ALL + cor0.col0 * - col0 + + col0 + - col1 AS col0 FROM tab1 AS cor0
----
-32
-4042
-6333
query I rowsort
SELECT + col0 + - col1 * + col1 FROM tab0 cor0
----
-7372
-8192
-9374
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6279
SELECT ALL - + CAST( - 76 AS SIGNED ) + col0 FROM tab2 AS cor0
----
154
155
83
skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL - + CAST ( - 76 AS INTEGER ) + col0 FROM tab2 AS cor0
----
154
155
83
query I rowsort
SELECT - - ( col2 ) + + col1 AS col0 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + col0 ) + col0 col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col2 + ( - col0 ) * + col0 * col1 FROM tab0 AS cor0
----
-118824
-49503
-720729
query I rowsort
SELECT DISTINCT col0 * - col1 AS col2 FROM tab1
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 65 + col0 - + tab2.col1 * - col2 col1 FROM tab2
----
2599
3195
3302
query I rowsort
SELECT DISTINCT - tab0.col1 - col1 FROM tab0
----
-172
-182
-194
query I rowsort
SELECT - 89 AS col0 FROM tab1
----
-89
-89
-89
query I rowsort
SELECT + 91 + 65 + col2 AS col0 FROM tab2 AS cor0
----
182
183
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-6288
SELECT - - cor0.col0 + 71 DIV - col0 + + col2 FROM tab2 AS cor0
----
104
117
24
skipif mysql # not compatible
query I rowsort label-6288
SELECT - - cor0.col0 + 71 / - col0 + + col2 FROM tab2 AS cor0
----
104
117
24
query I rowsort
SELECT ALL - ( 13 ) * col2 + - cor0.col1 * - col0 AS col0 FROM tab1 AS cor0
----
-101
-208
-624
query I rowsort
SELECT DISTINCT col0 + 22 AS col0 FROM tab0 AS cor0
----
111
46
57
query I rowsort
SELECT DISTINCT + col0 + - col0 * - col2 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT ALL - - 83 + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1451
-563
-754
query I rowsort
SELECT ALL col1 - + col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 + col0 col2 FROM tab0
----
196
229
271
query I rowsort
SELECT ALL + ( - 22 ) * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1298
-374
-682
onlyif mysql # use DIV operator for integer division
query I rowsort label-6296
SELECT ALL + 4 DIV tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL + 4 / tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT - col0 * - 64 * 49 FROM tab2
----
21952
244608
247744
query I rowsort
SELECT - cor0.col0 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 col1 FROM tab2
----
55
58
85
query I rowsort
SELECT col2 * + ( + col1 ) + - cor0.col0 FROM tab0 cor0
----
2814
62
7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-6301
SELECT DISTINCT - cor0.col1 DIV cor0.col2 + + col1 * col2 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-6301
SELECT DISTINCT - cor0.col1 / cor0.col2 + + col1 * col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + - col2 + + col1 AS col2 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 + - col0 * + col1 AS col0 FROM tab2 AS cor0
----
-2686
-434
-9204
query I rowsort
SELECT DISTINCT + col0 * + 7 AS col1 FROM tab2 AS cor0
----
49
546
553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6305
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / col0 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6305
SELECT DISTINCT + CAST ( NULL AS REAL ) / col0 FROM tab2 cor0
----
NULL
query I rowsort
SELECT + 32 * - col0 FROM tab1 AS cor0
----
-2048
-2560
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6307
SELECT ALL - CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL - CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - ( - 6 ) * - col2 AS col1 FROM tab2 AS cor0
----
156
162
228
query I rowsort
SELECT - ( + col0 ) + col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6310
SELECT + ( cor0.col2 ) DIV col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-6310
SELECT + ( cor0.col2 ) / col0 FROM tab2 AS cor0
----
0
0
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-6311
SELECT + + cor0.col1 + 84 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
11
14
54
skipif mysql # not compatible
query I rowsort label-6311
SELECT + + cor0.col1 + 84 / cor0.col0 AS col2 FROM tab1 AS cor0
----
11
14
54
query I rowsort
SELECT ALL - 97 + col0 AS col1 FROM tab0 AS cor0
----
-62
-73
-8
query I rowsort
SELECT ALL + - 53 * + col0 + col1 * cor0.col1 * col2 AS col0 FROM tab2 cor0
----
25576
6795
86372
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * - col0 + + 25 col0 FROM tab0 AS cor0
----
-1200
-551
-7896
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 71 * col2 + - col0 col1 FROM tab1 AS cor0
----
-3837
-4111
-6896
query I rowsort
SELECT ALL - cor0.col0 * - cor0.col1 + 74 AS col0 FROM tab2 cor0
----
1417
291
4676
query I rowsort
SELECT DISTINCT + ( cor0.col1 ) FROM tab1 cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-6318
SELECT - - 62 DIV cor0.col1 + ( ( + col0 ) ) FROM tab1 AS cor0
----
5
70
84
skipif mysql # not compatible
query I rowsort label-6318
SELECT - - 62 / cor0.col1 + ( ( + col0 ) ) FROM tab1 AS cor0
----
5
70
84
query I rowsort
SELECT DISTINCT + + col0 - col1 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT + 4 - - col0 FROM tab0 AS cor0
----
28
39
93
query I rowsort
SELECT + cor0.col1 + - col1 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6323
SELECT - - col1 * cor0.col1 DIV ( - col2 * col0 ) - col0 FROM tab0 AS cor0
----
-303
-33
-90
skipif mysql # not compatible
query I rowsort label-6323
SELECT - - col1 * cor0.col1 / ( - col2 * col0 ) - col0 FROM tab0 AS cor0
----
-303
-33
-90
query I rowsort
SELECT DISTINCT + col1 + + cor0.col2 * - 67 FROM tab2 AS cor0
----
-1683
-1778
-2529
query I rowsort
SELECT - col0 + - col1 * - col0 * - col2 FROM tab1 AS cor0
----
-36544
-4215
-99920
onlyif mysql # use DIV operator for integer division
query I rowsort label-6326
SELECT ALL + col1 DIV col1 + col1 AS col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL + col1 / col1 + col1 AS col1 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT + + cor0.col0 * col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - col2 + + 88 AS col1 FROM tab2 AS cor0
----
50
61
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6329
SELECT - col0 + + col2 DIV + col2 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-6329
SELECT - col0 + + col2 / + col2 FROM tab1 AS cor0
----
-2
-63
-79
query I rowsort
SELECT - ( 56 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
query I rowsort
SELECT ALL - 24 * col0 FROM tab0
----
-2136
-576
-840
query I rowsort
SELECT 2 + col0 AS col2 FROM tab1
----
5
66
82
query I rowsort
SELECT DISTINCT col1 + + tab0.col1 AS col2 FROM tab0
----
172
182
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-6334
SELECT - + cor0.col2 DIV col2 + cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
34
7297
791
skipif mysql # not compatible
query I rowsort label-6334
SELECT - + cor0.col2 / col2 + cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
34
7297
791
query I rowsort
SELECT - cor0.col2 * + col1 * col1 + - col1 AS col0 FROM tab0 cor0
----
-244154
-679133
-9506
query I rowsort
SELECT + col1 + - 22 * col0 AS col0 FROM tab2 AS cor0
----
-123
-1657
-1721
onlyif mysql # use DIV operator for integer division
query I rowsort label-6337
SELECT + 61 DIV + col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6337
SELECT + 61 / + col1 FROM tab0
----
0
0
0
query I rowsort
SELECT col1 * 0 + + col1 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - col0 * + 96 FROM tab1 AS cor0
----
-288
-6144
-7680
query I rowsort
SELECT + + col2 - - col2 FROM tab0 AS cor0
----
164
2
66
query IIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab2 AS cor1 WHERE NOT NULL <= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col0 col0 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT + col0 * - col1 * col1 AS col0 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT + 19 AS col2 FROM tab0, tab1 cor0
----
19
query I rowsort
SELECT ( col0 ) * + cor0.col0 FROM tab1 cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6347
SELECT - 2 DIV - col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6347
SELECT - 2 / - col1 FROM tab2
----
0
0
0
query I rowsort
SELECT + 66 * col1 AS col2 FROM tab0
----
5676
6006
6402
query I rowsort
SELECT + ( + col2 ) - - col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - col1 - - col2 * col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT ALL - ( col0 ) * col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col0 + col0 * + col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT + + col0 + - col1 * col1 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT DISTINCT + + 72 * - col0 * + cor0.col1 FROM tab1 AS cor0
----
-46080
-5616
-74880
query I rowsort
SELECT DISTINCT - col0 * - cor0.col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT cor0.col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-6357
SELECT DISTINCT col2 DIV + 15 FROM tab2
----
1
2
skipif mysql # not compatible
query I rowsort label-6357
SELECT DISTINCT col2 / + 15 FROM tab2
----
1
2
query I rowsort
SELECT + col0 * ( col1 ) + - 32 AS col2 FROM tab2
----
1311
185
4570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL ( + col1 ) AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT col1 * col2 + + col2 * + col0 FROM tab0
----
132
14760
3630
query I rowsort
SELECT DISTINCT 73 * - col0 FROM tab1
----
-219
-4672
-5840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 * 69 col1 FROM tab0
----
6279
query I rowsort
SELECT 53 * + col2 + + col1 AS col1 FROM tab2
----
1437
1462
2031
query I rowsort
SELECT DISTINCT 69 AS col2 FROM tab0
----
69
query I rowsort
SELECT ALL + col2 * - 52 FROM tab0 AS cor0
----
-1716
-4264
-52
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab0 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 51e2051aff75c58a5edaa314f1412983
query I rowsort
SELECT + col1 * 45 FROM tab0 cor0
----
3870
4095
4365
query I rowsort
SELECT DISTINCT tab2.col0 * + tab2.col0 FROM tab2, tab0, tab1 AS cor0
----
49
6084
6241
query I rowsort
SELECT + cor0.col2 + cor0.col0 * ( - col1 ) FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - cor0.col0 * col2 + - ( - col2 * - col1 ) AS col1 FROM tab0 AS cor0
----
-132
-14760
-3630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6372
SELECT + + col1 * - CAST( - col0 AS SIGNED ) + col2 FROM tab1 AS cor0
----
1136
132
697
skipif mysql # not compatible
query I rowsort label-6372
SELECT + + col1 * - CAST ( - col0 AS INTEGER ) + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT + col2 * - 28 FROM tab1 AS cor0
----
-1512
-1596
-2688
query I rowsort
SELECT + cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-6375
SELECT ALL - + col1 DIV 23 + col1 AS col1 FROM tab1 AS cor0
----
10
13
25
skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL - + col1 / 23 + col1 AS col1 FROM tab1 AS cor0
----
10
13
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-6376
SELECT - col1 * 34 + col1 DIV col1 AS col1 FROM tab0 AS cor0
----
-2923
-3093
-3297
skipif mysql # not compatible
query I rowsort label-6376
SELECT - col1 * 34 + col1 / col1 AS col1 FROM tab0 AS cor0
----
-2923
-3093
-3297
query I rowsort
SELECT DISTINCT - col0 + 90 FROM tab0 AS cor0
----
1
55
66
query I rowsort
SELECT ALL col0 + ( col0 ) * cor0.col1 AS col0 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT ALL - col2 + + col2 * - col1 AS col1 FROM tab1
----
-1344
-1458
-627
query I rowsort
SELECT col0 * - col0 + tab0.col1 * - tab0.col0 * tab0.col2 FROM tab0
----
-4620
-672039
-68688
query I rowsort
SELECT col2 * + col0 + + col2 * col1 AS col0 FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT DISTINCT + cor0.col2 + + col2 * - col0 AS col0 FROM tab0 cor0
----
-34
-7216
-759
query I rowsort
SELECT + col0 + - 83 AS col2 FROM tab1 AS cor0
----
-19
-3
-80
query I rowsort
SELECT DISTINCT - cor0.col1 + col1 * - col0 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT - col0 - - col1 * - col0 * col1 AS col1 FROM tab0 AS cor0
----
-177528
-329350
-737098
query I rowsort
SELECT DISTINCT - col2 - - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT col1 - col0 * col0 * col1 AS col1 FROM tab0 AS cor0
----
-118728
-49450
-720720
query I rowsort
SELECT DISTINCT 60 AS col1 FROM tab0 AS cor0
----
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-6389
SELECT ALL - - col2 DIV col1 + col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-6389
SELECT ALL - - col2 / col1 + col2 / + col0 AS col2 FROM tab2 AS cor0
----
0
2
3
query I rowsort
SELECT ALL - 54 + + cor0.col0 + - col0 FROM tab1 AS cor0
----
-54
-54
-54
query I rowsort
SELECT 23 AS col2 FROM tab0 AS cor0
----
23
23
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-6392
SELECT ALL - + col1 DIV 52 + - col2 + 11 * col0 FROM tab2 AS cor0
----
50
831
831
skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL - + col1 / 52 + - col2 + 11 * col0 FROM tab2 AS cor0
----
50
831
831
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 * col0 + col1 * 33 col1 FROM tab0 AS cor0
----
2814
2914
3166
query I rowsort
SELECT DISTINCT 16 + 73 * + col2 AS col1 FROM tab0 AS cor0
----
2425
6002
89
query I rowsort
SELECT 62 + 7 FROM tab2 AS cor0
----
69
69
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-6396
SELECT + - cor0.col1 DIV + ( - col0 ) AS col2 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-6396
SELECT + - cor0.col1 / + ( - col0 ) AS col2 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT ALL + + col1 * - 85 AS col0 FROM tab0 cor0
----
-7310
-7735
-8245
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6398
SELECT DISTINCT - - CAST( - ( - col0 ) AS SIGNED ) + 96 * + col2 AS col0 FROM tab0 AS cor0
----
131
3192
7961
skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT - - CAST ( - ( - col0 ) AS INTEGER ) + 96 * + col2 AS col0 FROM tab0 AS cor0
----
131
3192
7961
query I rowsort
SELECT DISTINCT 20 + ( - col0 ) * + 90 * col1 FROM tab2 AS cor0
----
-120850
-19510
-414160
query I rowsort
SELECT ( col2 ) * + col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - 31 * + cor0.col1 FROM tab1 AS cor0
----
-310
-403
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-6402
SELECT - + 82 DIV cor0.col2 FROM tab0 AS cor0
----
-1
-2
-82
skipif mysql # not compatible
query I rowsort label-6402
SELECT - + 82 / cor0.col2 FROM tab0 AS cor0
----
-1
-2
-82
query I rowsort
SELECT DISTINCT - 32 * - col1 FROM tab1 AS cor0
----
320
416
832
query I rowsort
SELECT ( + tab1.col2 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL col1 + - ( - col0 ) AS col0 FROM tab2
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6406
SELECT ALL ( cor0.col1 ) DIV - col0 - col1 AS col0 FROM tab0 AS cor0
----
-89
-92
-99
skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL ( cor0.col1 ) / - col0 - col1 AS col0 FROM tab0 AS cor0
----
-89
-92
-99
query I rowsort
SELECT - col1 + - col1 * ( - 45 ) FROM tab0 AS cor0
----
3784
4004
4268
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6408
SELECT ALL col1 + col0 * CAST( NULL AS SIGNED ) - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL col1 + col0 * CAST ( NULL AS INTEGER ) - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col0 * col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + + 69 + col2 AS col2 FROM tab0 AS cor0
----
102
151
70
query I rowsort
SELECT DISTINCT + col1 * col2 - + 11 * + col0 FROM tab2 cor0
----
-223
676
760
query I rowsort
SELECT col2 * col1 + 30 FROM tab0 AS cor0
----
127
2868
7492
onlyif mysql # use DIV operator for integer division
query I rowsort label-6413
SELECT + col0 DIV col0 + + 3 AS col0 FROM tab2 AS cor0
----
4
4
4
skipif mysql # not compatible
query I rowsort label-6413
SELECT + col0 / col0 + + 3 AS col0 FROM tab2 AS cor0
----
4
4
4
query I rowsort
SELECT + - 41 + col2 AS col1 FROM tab0 AS cor0
----
-40
-8
41
query I rowsort
SELECT DISTINCT 71 + col2 AS col2 FROM tab2 cor0
----
109
97
98
query I rowsort
SELECT - ( + tab2.col1 ) * col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT + - col2 - + col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT + 97 - + cor0.col0 * - ( + cor0.col0 ) FROM tab0 cor0
----
1322
673
8018
query I rowsort
SELECT ALL 11 AS col1 FROM tab2 AS cor0
----
11
11
11
query I rowsort
SELECT ALL 82 * col1 FROM tab0 AS cor0
----
7052
7462
7954
query I rowsort
SELECT ALL + col2 + ( - 18 ) * + col0 FROM tab1 AS cor0
----
-1095
-1344
0
query I rowsort
SELECT - cor0.col1 * + cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 86c8e75d83d283b29460c020ab5988af
query I rowsort
SELECT + 30 * - tab0.col0 AS col1 FROM tab0
----
-1050
-2670
-720
query I rowsort
SELECT ALL 99 + tab1.col2 FROM tab1
----
153
156
195
query I rowsort
SELECT DISTINCT 74 + + 83 FROM tab2
----
157
query I rowsort
SELECT DISTINCT + 81 AS col2 FROM tab1 AS cor0
----
81
query I rowsort
SELECT 90 * ( - col1 ) FROM tab1
----
-1170
-2340
-900
query I rowsort
SELECT + 23 * + col2 AS col0 FROM tab1
----
1242
1311
2208
query I rowsort
SELECT DISTINCT - cor0.col2 + + col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT 97 * cor0.col1 FROM tab2 AS cor0
----
1649
3007
5723
query I rowsort
SELECT + cor0.col2 + + cor0.col0 * + col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL 30 * - col2 FROM tab2 AS cor0
----
-1140
-780
-810
query I rowsort
SELECT DISTINCT + - 40 AS col0 FROM tab1 AS cor0
----
-40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * + col0 col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6435
SELECT + ( - cor0.col1 ) DIV + 6 AS col2 FROM tab0 AS cor0
----
-14
-15
-16
skipif mysql # not compatible
query I rowsort label-6435
SELECT + ( - cor0.col1 ) / + 6 AS col2 FROM tab0 AS cor0
----
-14
-15
-16
query I rowsort
SELECT DISTINCT + col1 + 37 AS col2 FROM tab2
----
54
68
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6437
SELECT col2 * CAST( + col1 * col1 AS SIGNED ) FROM tab1
----
16224
36504
5700
skipif mysql # not compatible
query I rowsort label-6437
SELECT col2 * CAST ( + col1 * col1 AS INTEGER ) FROM tab1
----
16224
36504
5700
query I rowsort
SELECT ALL - col2 - - ( col1 ) AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL col0 + 13 * col0 AS col1 FROM tab0 cor0
----
1246
336
490
onlyif mysql # use DIV operator for integer division
query I rowsort label-6440
SELECT - col2 + col1 * col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80
skipif mysql # not compatible
query I rowsort label-6440
SELECT - col2 + col1 * col1 / - col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT cor0.col2 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + col2 * - ( + 37 + - col1 ) AS col2 FROM tab2 AS cor0
----
-162
-760
572
query I rowsort
SELECT DISTINCT col2 + ( + col0 ) + cor0.col1 * col0 FROM tab0 AS cor0
----
2121
3431
8270
query I rowsort
SELECT + + cor0.col2 + 75 FROM tab0 cor0
----
108
157
76
query I rowsort
SELECT ALL + - col1 * - 44 + + col1 AS col2 FROM tab1 AS cor0
----
1170
450
585
query I rowsort
SELECT DISTINCT - col2 + col0 * cor0.col1 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT col2 + col1 - col0 FROM tab2 AS cor0
----
-24
51
7
query I rowsort
SELECT + - 11 * cor0.col2 + col0 + - ( col1 ) * col2 AS col2 FROM tab1 cor0
----
-1133
-1995
-2224
query I rowsort
SELECT ALL + col2 * ( col0 + col1 ) AS col2 FROM tab1 AS cor0
----
1566
4218
8928
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) + - col2 * + col0 col0 FROM tab0 AS cor0
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-6451
SELECT DISTINCT - + 62 DIV 5 FROM tab0 cor0
----
-12
skipif mysql # not compatible
query I rowsort label-6451
SELECT DISTINCT - + 62 / 5 FROM tab0 cor0
----
-12
query I rowsort
SELECT ALL ( - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6453
SELECT + col2 + CAST( + col1 AS SIGNED ) * - col0 * - tab1.col2 AS col2 FROM tab1
----
36537
4266
99936
skipif mysql # not compatible
query I rowsort label-6453
SELECT + col2 + CAST ( + col1 AS INTEGER ) * - col0 * - tab1.col2 AS col2 FROM tab1
----
36537
4266
99936
query I rowsort
SELECT + 18 - - col2 FROM tab2 AS cor0
----
44
45
56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6455
SELECT + CAST( NULL AS SIGNED ) * - col1 - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6455
SELECT + CAST ( NULL AS INTEGER ) * - col1 - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 79 AS col1 FROM tab2, tab0 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to da0116d31b8af0da9f685c090d378baf
query I rowsort
SELECT + 99 + - 13 AS col2 FROM tab0 cor0
----
86
86
86
query I rowsort
SELECT DISTINCT + col1 * col1 + + col1 FROM tab1 AS cor0
----
110
182
702
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7
query I rowsort
SELECT DISTINCT + 26 * + col1 AS col1 FROM tab0 AS cor0
----
2236
2366
2522
query I rowsort
SELECT cor0.col2 * col2 + 90 AS col1 FROM tab1 AS cor0
----
3006
3339
9306
query I rowsort
SELECT - col1 * + cor0.col2 + + col2 AS col1 FROM tab1 cor0
----
-1152
-1350
-513
query I rowsort
SELECT cor1.col0 FROM tab2, tab0 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT - 13 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792
query I rowsort
SELECT + cor0.col0 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994
query I rowsort
SELECT DISTINCT col1 * ( col2 ) AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT cor0.col2 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT + ( + cor0.col2 ) + - col1 FROM tab1 AS cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col2 col1 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 * col0 col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT + - col2 - cor0.col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT - - 52 + + col0 FROM tab1 cor0
----
116
132
55
query I rowsort
SELECT - + col1 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL 75 + col1 FROM tab2 AS cor0
----
106
134
92
query I rowsort
SELECT DISTINCT - 5 + + col1 FROM tab1 AS cor0
----
21
5
8
query I rowsort
SELECT - 51 + col2 AS col2 FROM tab0 AS cor0
----
-18
-50
31
query I rowsort
SELECT + ( + col2 ) * col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL - - 15 + + col2 * col1 * - col1 FROM tab1 cor0
----
-16209
-36489
-5685
query I rowsort
SELECT ALL + + ( cor0.col0 ) + col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - 80 + + col0 FROM tab1 AS cor0
----
-16
-77
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6481
SELECT ALL + ( - col0 ) DIV col1 + - col1 FROM tab2 AS cor0
----
-21
-31
-60
skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL + ( - col0 ) / col1 + - col1 FROM tab2 AS cor0
----
-21
-31
-60
query I rowsort
SELECT DISTINCT + 66 * + cor0.col2 - - col2 FROM tab0 AS cor0
----
2211
5494
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col1 + - col2 col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT 55 + col0 FROM tab1 AS cor0
----
119
135
58
query I rowsort
SELECT col1 * col1 + col1 FROM tab2
----
306
3540
992
query I rowsort
SELECT col1 - + col2 * + tab1.col2 * + col2 AS col0 FROM tab1
----
-157438
-185183
-884723
query I rowsort
SELECT ALL - + cor0.col1 AS col2 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + 54 - col1 AS col1 FROM tab1 AS cor0
----
28
41
44
query I rowsort
SELECT ALL 61 * - cor0.col1 FROM tab1 AS cor0
----
-1586
-610
-793
query I rowsort
SELECT ALL + + col0 - ( + col2 ) AS col1 FROM tab0 AS cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 col0 FROM tab0 AS cor0
----
49
49
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6492
SELECT DISTINCT - CAST( col2 AS SIGNED ) - col0 FROM tab1 AS cor0
----
-121
-176
-57
skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT - CAST ( col2 AS INTEGER ) - col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT - 15 - col1 AS col0 FROM tab1 AS cor0
----
-25
-28
-41
query I rowsort
SELECT cor1.col0 + cor1.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 8a206af99264e378e55b667df888459e
query I rowsort
SELECT - cor0.col0 + col1 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT DISTINCT - - col1 * + cor0.col0 + col2 FROM tab2 cor0
----
1381
244
4628
query I rowsort
SELECT ALL col0 - - 13 AS col0 FROM tab2
----
20
91
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-6498
SELECT ALL + 28 DIV + 27 + col1 AS col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-6498
SELECT ALL + 28 / + 27 + col1 AS col1 FROM tab0
----
87
92
98
query I rowsort
SELECT + 21 * col2 FROM tab2
----
546
567
798
query I rowsort
SELECT col0 * + ( - col0 ) FROM tab1
----
-4096
-6400
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6501
SELECT DISTINCT CAST( col1 AS SIGNED ) * col0 + + col1 AS col2 FROM tab0
----
2150
3492
8190
skipif mysql # not compatible
query I rowsort label-6501
SELECT DISTINCT CAST ( col1 AS INTEGER ) * col0 + + col1 AS col2 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT - col2 + 77 FROM tab1 AS cor0
----
-19
20
23
query I rowsort
SELECT ALL - 47 + col0 FROM tab1
----
-44
17
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-6504
SELECT ALL col0 + tab1.col2 DIV + col0 AS col1 FROM tab1
----
21
64
81
skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL col0 + tab1.col2 / + col0 AS col1 FROM tab1
----
21
64
81
query I rowsort
SELECT DISTINCT col1 * - tab1.col0 - + col0 * col2 AS col2 FROM tab1
----
-240
-4288
-8720
query I rowsort
SELECT col0 * - tab2.col2 + col1 AS col2 FROM tab2
----
-158
-1969
-2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-6507
SELECT col1 + + col1 * tab0.col1 DIV + col2 AS col0 FROM tab0
----
191
310
9506
skipif mysql # not compatible
query I rowsort label-6507
SELECT col1 + + col1 * tab0.col1 / + col2 AS col0 FROM tab0
----
191
310
9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-6508
SELECT DISTINCT - col0 DIV + col1 + col2 FROM tab1
----
51
54
90
skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT - col0 / + col1 + col2 FROM tab1
----
51
54
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-6509
SELECT + col2 DIV col2 + tab0.col2 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-6509
SELECT + col2 / col2 + tab0.col2 FROM tab0
----
2
34
83
query I rowsort
SELECT + col0 * col2 * col1 + - col2 AS col0 FROM tab2
----
119626
50996
5832
query I rowsort
SELECT + col2 * - col2 * + col2 + col0 FROM tab1
----
-157461
-185129
-884656
query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) < col0 * col2
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 ) NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT col0 + col0 * + col0 FROM tab2 AS cor0
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-6515
SELECT col2 * cor0.col0 - + col0 * col2 DIV col1 FROM tab2 AS cor0
----
183
1994
2826
skipif mysql # not compatible
query I rowsort label-6515
SELECT col2 * cor0.col0 - + col0 * col2 / col1 FROM tab2 AS cor0
----
183
1994
2826
query I rowsort
SELECT col0 - + col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN ( col2 * + col2 * + col2 ) AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6518
SELECT DISTINCT col0 * tab1.col1 DIV + col2 AS col2 FROM tab1
----
1
10
11
skipif mysql # not compatible
query I rowsort label-6518
SELECT DISTINCT col0 * tab1.col1 / + col2 AS col2 FROM tab1
----
1
10
11
query I rowsort
SELECT + col0 * - col0 * col0 + tab2.col0 * + col0 * col1 AS col0 FROM tab2
----
-115596
-386942
1176
query I rowsort
SELECT col1 * + tab0.col2 * - col2 - col2 * - col1 FROM tab0
----
-604422
-90816
0
query I rowsort
SELECT - col1 + col0 * - col0 FROM tab1
----
-35
-4106
-6413
query I rowsort
SELECT ALL - + cor0.col1 * - col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col2 * tab0.col2 + col0 AS col2 FROM tab0
----
-1065
-6635
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6524
SELECT ALL + col0 DIV + col1 col1 FROM tab2 AS cor0
----
0
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL + col0 / + col1 col1 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT ALL - col2 + - col0 * - col0 FROM tab1 AS cor0
----
-45
4039
6304
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 * + col1 col2 FROM tab2 AS cor0
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * + col2 col1 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT - col1 * + col2 - col2 AS col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT - col1 * cor0.col0 + col0 FROM tab0 cor0
----
-2040
-3360
-8010
query I rowsort
SELECT + col1 - col0 * tab2.col1 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT ALL col1 * - col0 AS col2 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + tab2.col0 - tab2.col0 AS col1 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6533
SELECT - cor0.col0 DIV col0 AS col2 FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6533
SELECT - cor0.col0 / col0 AS col2 FROM tab2 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT col0 + - 34 * - cor0.col2 * - cor0.col1 FROM tab2 AS cor0
----
-21885
-28451
-52078
onlyif mysql # use DIV operator for integer division
query I rowsort label-6535
SELECT + - col1 DIV col2 + col2 * col2 * col0 FROM tab1 AS cor0
----
207936
737280
8748
skipif mysql # not compatible
query I rowsort label-6535
SELECT + - col1 / col2 + col2 * col2 * col0 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT - - col2 + ( - cor0.col0 * + col2 ) FROM tab0 AS cor0
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-6537
SELECT DISTINCT col0 DIV col0 + - tab0.col1 * + col1 AS col0 FROM tab0
----
-7395
-8280
-9408
skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT col0 / col0 + - tab0.col1 * + col1 AS col0 FROM tab0
----
-7395
-8280
-9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 * - 90 col0 FROM tab2
----
2340
2430
3420
query I rowsort
SELECT 53 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT + col2 * col1 + col2 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-6541
SELECT + col1 * - col1 DIV col1 col0 FROM tab2
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6541
SELECT + col1 * - col1 / col1 col0 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT + col0 * + 56 AS col2 FROM tab1
----
168
3584
4480
query I rowsort
SELECT tab0.col2 + 49 AS col0 FROM tab0
----
131
50
82
query I rowsort
SELECT + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + tab0.col1 * + col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT col2 + + col2 * 75 * col2 FROM tab0
----
504382
76
81708
query I rowsort
SELECT + + 17 * cor0.col0 FROM tab2 AS cor0
----
119
1326
1343
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col2 col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + 92 * col0 * col0 FROM tab2 AS cor0
----
4508
559728
574172
query I rowsort
SELECT 34 - - col1 FROM tab1
----
44
47
60
query I rowsort
SELECT ALL 45 * col0 FROM tab2
----
315
3510
3555
query I rowsort
SELECT + cor0.col1 * - 56 FROM tab0 AS cor0
----
-4816
-5096
-5432
query I rowsort
SELECT + + cor0.col1 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + cor0.col0 + + ( 12 ) * col1 AS col1 FROM tab2 AS cor0
----
283
379
786
query I rowsort
SELECT col0 * ( + cor0.col2 ) AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col0 * + ( + ( col0 ) * - col2 ) FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL col1 + - col1 * + cor0.col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6558
SELECT - col2 * CAST( + col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-6558
SELECT - col2 * CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + + col1 + - col2 * + 60 FROM tab1 AS cor0
----
-3214
-3410
-5747
query I rowsort
SELECT ALL - col0 * - 73 AS col1 FROM tab2 AS cor0
----
511
5694
5767
query I rowsort
SELECT + col2 * + 49 AS col1 FROM tab2 cor0
----
1274
1323
1862
query I rowsort
SELECT + col2 + col1 * col1 FROM tab2
----
327
3507
988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 46 ) * + col0 + + col0 * - col1 col2 FROM tab1 AS cor0
----
2304
2640
60
query I rowsort
SELECT ALL + + cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT 72 * col2 FROM tab2
----
1872
1944
2736
query I rowsort
SELECT + - 68 + 23 AS col2 FROM tab1 AS cor0
----
-45
-45
-45
query I rowsort
SELECT - + 23 AS col2 FROM tab0 AS cor0
----
-23
-23
-23
query I rowsort
SELECT + ( 21 ) + + cor0.col1 AS col0 FROM tab2 AS cor0
----
38
52
80
query I rowsort
SELECT - ( 37 ) FROM tab2 cor0
----
-37
-37
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + ( + cor0.col0 ) col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + ( - col2 ) * col2 + 53 * - ( + col1 * col2 ) FROM tab2 AS cor0
----
-35682
-45090
-81978
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col1 col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT - + 50 + col1 * - 71 AS col2 FROM tab2 AS cor0
----
-1257
-2251
-4239
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6574
SELECT ALL - CAST( - 75 AS SIGNED ) FROM tab0
----
75
75
75
skipif mysql # not compatible
query I rowsort label-6574
SELECT ALL - CAST ( - 75 AS INTEGER ) FROM tab0
----
75
75
75
query I rowsort
SELECT ALL 49 FROM tab2
----
49
49
49
query I rowsort
SELECT ALL - + cor0.col2 * + col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + + col1 * col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - 28 * - 74 AS col1 FROM tab1
----
2072
2072
2072
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 ALL 96 * col1 + col2 AS col1 FROM tab1 AS cor0
----
1017
1344
2550
query I rowsort
SELECT ALL - + col0 + + 19 FROM tab2 AS cor0
----
-59
-60
12
query I rowsort
SELECT col2 * col1 + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL 18 * + 43 + col1 - + cor0.col0 FROM tab2 AS cor0
----
712
755
798
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6584
SELECT ALL - + CAST( - col2 AS SIGNED ) * + col1 FROM tab1 cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL - + CAST ( - col2 AS INTEGER ) * + col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL + 10 + + cor0.col2 + + col0 FROM tab2 AS cor0
----
114
127
44
query I rowsort
SELECT 34 + col0 * - col2 + col1 * + 90 * + col2 AS col2 FROM tab1 cor0
----
104674
126232
47686
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 22 col1 FROM tab2 AS cor0
----
22
query I rowsort
SELECT + ( - 17 ) + col0 FROM tab1 AS cor0
----
-14
47
63
query I rowsort
SELECT - 90 * - col0 + col1 FROM tab1 AS cor0
----
296
5770
7213
query I rowsort
SELECT + 31 + 10 * - col1 AS col2 FROM tab2 AS cor0
----
-139
-279
-559
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6591
SELECT ALL CAST( NULL AS SIGNED ) + + cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1, tab2 cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45
skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL CAST ( NULL AS INTEGER ) + + cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1, tab2 cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - col2 col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + + col1 * + cor0.col1 + - ( + col2 ) + - cor0.col2 FROM tab0 AS cor0
----
7330
8117
9407
query I rowsort
SELECT + cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col2 * - col2 + - cor0.col0 * + col1 AS col2 FROM tab1 AS cor0
----
-10256
-2994
-3889
query I rowsort
SELECT DISTINCT 38 * cor0.col2 AS col1 FROM tab0 cor0
----
1254
3116
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6597
SELECT DISTINCT col2 + - col1 + 31 DIV col0 FROM tab0 AS cor0
----
-52
-9
-96
skipif mysql # not compatible
query I rowsort label-6597
SELECT DISTINCT col2 + - col1 + 31 / col0 FROM tab0 AS cor0
----
-52
-9
-96
query I rowsort
SELECT DISTINCT + 4 * + cor0.col2 AS col0 FROM tab1, tab2 AS cor0
----
104
108
152
query I rowsort
SELECT DISTINCT + 98 FROM tab0, tab1 AS cor0
----
98
query I rowsort
SELECT ALL 79 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab0 cor2
----
3645 values hashing to 1260d4dbe7a8d809e8010586a3c398c5
query I rowsort
SELECT DISTINCT + col0 * + col2 + col2 AS col1 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-6603
SELECT ALL + + col2 DIV 74 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6603
SELECT ALL + + col2 / 74 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - 92 * + cor0.col2 + cor1.col1 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 348ce30cf1b0363e97cd0a7ce14d389b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col0 + col1 col0 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT 26 + + col2 AS col0 FROM tab2 AS cor0
----
52
53
64
query I rowsort
SELECT - 38 * col0 + col2 AS col1 FROM tab1 AS cor0
----
-2375
-2944
-60
query I rowsort
SELECT ALL - 5 * col1 + - col1 AS col1 FROM tab1 cor0
----
-156
-60
-78
query I rowsort
SELECT DISTINCT + cor0.col0 * + col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col1 - cor0.col2 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6611
SELECT ALL 34 + + col1 DIV - col0 AS col0 FROM tab1 AS cor0
----
26
34
34
skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL 34 + + col1 / - col0 AS col0 FROM tab1 AS cor0
----
26
34
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6612
SELECT DISTINCT CAST( 98 AS SIGNED ) + col1 * + 99 * cor0.col0 + - col0 col0 FROM tab1 AS cor0
----
102978
63394
7817
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6612
SELECT DISTINCT CAST ( 98 AS INTEGER ) + col1 * + 99 * cor0.col0 + - col0 col0 FROM tab1 AS cor0
----
102978
63394
7817
query I rowsort
SELECT ALL - cor0.col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6615
SELECT DISTINCT - ( - 22 ) + col2 * CAST( ( col0 ) AS SIGNED ) + - 30 * 71 FROM tab0 AS cor0
----
-1316
-2073
5190
skipif mysql # not compatible
query I rowsort label-6615
SELECT DISTINCT - ( - 22 ) + col2 * CAST ( ( col0 ) AS INTEGER ) + - 30 * 71 FROM tab0 AS cor0
----
-1316
-2073
5190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col0 FROM tab2 AS cor0
----
54
54
54
query I rowsort
SELECT DISTINCT - + ( col1 ) * col0 * - col2 + col1 AS col2 FROM tab1 AS cor0
----
36490
4238
99853
onlyif mysql # use DIV operator for integer division
query I rowsort label-6618
SELECT ALL - col2 + cor0.col0 DIV col1 FROM tab2 cor0
----
-25
-27
-34
skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL - col2 + cor0.col0 / col1 FROM tab2 cor0
----
-25
-27
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6619
SELECT ALL - 67 * 36 + + col1 DIV - col1 - + cor0.col2 AS col2 FROM tab0 AS cor0
----
-2414
-2446
-2495
skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL - 67 * 36 + + col1 / - col1 - + cor0.col2 AS col2 FROM tab0 AS cor0
----
-2414
-2446
-2495
onlyif mysql # use DIV operator for integer division
query I rowsort label-6620
SELECT col1 DIV tab1.col1 + col1 * + col1 + col2 AS col1 FROM tab1
----
158
266
731
skipif mysql # not compatible
query I rowsort label-6620
SELECT col1 / tab1.col1 + col1 * + col1 + col2 AS col1 FROM tab1
----
158
266
731
query I rowsort
SELECT tab1.col2 * + col0 + col0 * - ( - col0 ) + col1 * col1 FROM tab1
----
14249
7844
847
query I rowsort
SELECT - 20 AS col0 FROM tab0, tab1, tab2 AS cor0, tab2
----
81 values hashing to 3d45fa4e6631691e5f0e0ca86982e9c2
query I rowsort
SELECT + tab1.col1 * col0 + col2 * col2 - col0 FROM tab1
----
10176
2991
3825
onlyif mysql # use DIV operator for integer division
query I rowsort label-6624
SELECT + + 36 * + col2 + - col0 DIV - col0 FROM tab0 AS cor0
----
1189
2953
37
skipif mysql # not compatible
query I rowsort label-6624
SELECT + + 36 * + col2 + - col0 / - col0 FROM tab0 AS cor0
----
1189
2953
37
query I rowsort
SELECT DISTINCT + 83 AS col1 FROM tab2, tab1 cor0
----
83
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab0 AS cor0 WHERE tab2.col0 * cor0.col1 NOT BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6627
SELECT - col0 DIV + 73 AS col2 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6627
SELECT - col0 / + 73 AS col2 FROM tab0
----
-1
0
0
query I rowsort
SELECT 83 * + col0 FROM tab2
----
581
6474
6557
query I rowsort
SELECT - col2 + col2 * col2 AS col1 FROM tab1
----
2862
3192
9120
query I rowsort
SELECT DISTINCT - col1 + col0 * - tab0.col2 * - col2 + col0 FROM tab0
----
-27
26074
598434
query I rowsort
SELECT - col0 * - ( ( col1 ) ) * + col0 AS col1 FROM tab0 cor0
----
118825
49536
720811
query I rowsort
SELECT ALL - col2 + + 65 AS col0 FROM tab2 AS cor0
----
27
38
39
query I rowsort
SELECT DISTINCT - - col1 * - cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + 42 * tab2.col1 + + col2 FROM tab2
----
1329
2504
752
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6635
SELECT + col2 + col1 * - CAST( col2 AS SIGNED ) FROM tab2
----
-1508
-608
-810
skipif mysql # not compatible
query I rowsort label-6635
SELECT + col2 + col1 * - CAST ( col2 AS INTEGER ) FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT ( - tab2.col0 ) AS col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT 26 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
onlyif mysql # use DIV operator for integer division
query I rowsort label-6638
SELECT ALL ( - col0 ) DIV col1 + 69 FROM tab1
----
63
63
69
skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL ( - col0 ) / col1 + 69 FROM tab1
----
63
63
69
query I rowsort
SELECT col0 + 59 AS col0 FROM tab2
----
137
138
66
query I rowsort
SELECT ALL col2 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT col0 * 58 FROM tab1 AS cor0
----
174
3712
4640
query I rowsort
SELECT ALL - cor0.col1 + - col1 * - col2 * col2 AS col1 FROM tab2 AS cor0
----
22568
24531
39825
query I rowsort
SELECT + cor0.col2 + - cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * ( + 66 ) col0 FROM tab0 AS cor0
----
1584
2310
5874
query I rowsort
SELECT DISTINCT - col0 * col1 - - col1 AS col2 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT + - col0 * ( + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + + col2 + + col1 * col2 * col0 FROM tab0 cor0
----
3396
664200
68145
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6648
SELECT ALL + col2 * CAST( col2 AS SIGNED ) + col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312
skipif mysql # not compatible
query I rowsort label-6648
SELECT ALL + 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-6649
SELECT - + col1 + + col0 DIV - col1 FROM tab2 cor0
----
-21
-31
-60
skipif mysql # not compatible
query I rowsort label-6649
SELECT - + col1 + + col0 / - col1 FROM tab2 cor0
----
-21
-31
-60
query I rowsort
SELECT ALL + 99 + cor0.col1 * 14 AS col2 FROM tab0 AS cor0
----
1303
1373
1457
query I rowsort
SELECT ALL + 1 * - col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT 8 * + col2 AS col0 FROM tab1 AS cor0
----
432
456
768
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 * - col1 col0 FROM tab2 cor0
----
1770
510
930
query I rowsort
SELECT - col0 * col1 - 60 * col0 AS col1 FROM tab0 cor0
----
-13439
-3504
-5495
query I rowsort
SELECT - + col2 + col1 * col0 + - col1 AS col1 FROM tab1 AS cor0
----
-2
573
931
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + cor0.col0 * col1 - col1 col0 FROM tab0 AS cor0
----
3298
664027
68026
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + 40 col0 FROM tab0 cor0
----
46
51
57
query I rowsort
SELECT - col2 + + 53 * ( + col1 ) AS col1 FROM tab2 AS cor0
----
1616
3101
863
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6659
SELECT - - col2 * CAST( NULL AS SIGNED ) * + col2 - + col1 * 53 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6659
SELECT - - col2 * CAST ( NULL AS INTEGER ) * + col2 - + col1 * 53 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6660
SELECT col2 DIV - col0 + + col0 + + col1 FROM tab0
----
109
132
180
skipif mysql # not compatible
query I rowsort label-6660
SELECT col2 / - col0 + + col0 + + col1 FROM tab0
----
109
132
180
query I rowsort
SELECT DISTINCT - tab2.col1 * + col1 + - tab2.col1 * tab2.col1 * col0 FROM tab2
----
-23120
-274999
-7688
query I rowsort
SELECT - col0 * + col1 + - tab1.col0 * - col0 + + col1 AS col2 FROM tab1
----
-43
3466
5373
query I rowsort
SELECT col0 FROM tab0 WHERE ( - col1 ) BETWEEN ( NULL ) AND col1 * - col0
----
query I rowsort
SELECT col1 + + col0 * col2 + - col0 * col2 AS col2 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL + col2 - tab1.col1 FROM tab1
----
28
47
83
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - col0 + col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - tab2.col0 * - col0 col2 FROM tab2
----
42
6006
6162
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + tab2.col1 col1 FROM tab2
----
1343
217
4602
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 + col2 ) BETWEEN col0 AND col2 * col0
----
64
10
57
80
13
96
query I rowsort
SELECT DISTINCT - col2 * col2 * col1 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT + col0 + col1 / col0 IN ( col0 * + col2 )
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - col2 * tab1.col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL col0 * + col1 * col2 FROM tab2
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-6674
SELECT col0 + col1 DIV + col1 FROM tab2
----
79
8
80
skipif mysql # not compatible
query I rowsort label-6674
SELECT col0 + col1 / + col1 FROM tab2
----
79
8
80
query I rowsort
SELECT DISTINCT + tab2.col1 * - tab2.col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT tab2.col2 * - col2 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT ALL col1 - col2 AS col1 FROM tab2
----
-21
33
4
query I rowsort
SELECT - col0 - + tab0.col1 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT - col1 + col1 FROM tab2 WHERE col2 BETWEEN col0 AND col2
----
0
query I rowsort
SELECT DISTINCT + col2 - col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT col1 - tab0.col0 AS col0 FROM tab0
----
2
62
62
query I rowsort
SELECT ALL + col0 - + tab1.col2 * col1 AS col2 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT col1 * col2 * col2 + + col0 AS col2 FROM tab2
----
22606
24627
39962
query I rowsort
SELECT ALL - col0 * col1 + tab2.col0 * + col2 AS col0 FROM tab2
----
-2574
-28
1659
onlyif mysql # use DIV operator for integer division
query I rowsort label-6685
SELECT DISTINCT col1 DIV col2 - - tab1.col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT col1 / col2 - - tab1.col0 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT ( - col2 ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL 92 AS col1 FROM tab2 AS cor0
----
92
92
92
query I rowsort
SELECT + + col1 + - col2 FROM tab2 AS cor0
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 col1 FROM tab2 AS cor0
----
-21
-21
-21
query I rowsort
SELECT + + col0 + + col1 * - col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab2, tab2 cor0, tab2 AS cor1
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6692
SELECT ALL + CAST( + 98 AS SIGNED ) * tab1.col0 * - col1 FROM tab1
----
-101920
-62720
-7644
skipif mysql # not compatible
query I rowsort label-6692
SELECT ALL + CAST ( + 98 AS INTEGER ) * tab1.col0 * - col1 FROM tab1
----
-101920
-62720
-7644
onlyif mysql # use DIV operator for integer division
query I rowsort label-6693
SELECT ALL 50 DIV + 69 AS col1 FROM tab1, tab0, tab2 cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL 50 / + 69 AS col1 FROM tab1, tab0, tab2 cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT DISTINCT tab2.col2 * - 14 FROM tab2
----
-364
-378
-532
query I rowsort
SELECT - col2 * col0 * col1 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT 76 FROM tab0, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT - cor0.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT DISTINCT + ( col1 ) * tab2.col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT + col0 * + cor0.col1 AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT + + 70 FROM tab1 AS cor0
----
70
70
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6701
SELECT - cor0.col2 - + CAST( + 92 + cor0.col0 AS SIGNED ) * 41 AS col0 FROM tab2 AS cor0
----
-4086
-6996
-7049
skipif mysql # not compatible
query I rowsort label-6701
SELECT - cor0.col2 - + CAST ( + 92 + cor0.col0 AS INTEGER ) * 41 AS col0 FROM tab2 AS cor0
----
-4086
-6996
-7049
query I rowsort
SELECT col2 * + col0 * + ( col0 ) - - cor0.col0 * - col0 FROM tab0 AS cor0
----
0
18432
641601
query I rowsort
SELECT DISTINCT + ( 60 + tab2.col2 ) AS col2 FROM tab2, tab0 AS cor0
----
86
87
98
query I rowsort
SELECT DISTINCT + cor1.col2 AS col0 FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1
----
26
27
38
query I rowsort
SELECT DISTINCT + - col0 + + col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT col2 + - col1 * col2 * ( - col0 + + cor0.col0 ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ( 1 ) * - cor0.col2 + col0 * col0 + - col0 AS col0 FROM tab2 AS cor0
----
15
5980
6124
query I rowsort
SELECT - cor0.col0 + 99 AS col0 FROM tab0 AS cor0
----
10
64
75
skipif mysql # not compatible
query I rowsort
SELECT ( - ( + col1 ) ) * + CAST ( 25 AS REAL ) + col1 FROM tab0 AS cor0
----
-2064
-2184
-2328
query I rowsort
SELECT + 15 * col2 FROM tab1 AS cor0
----
1440
810
855
query I rowsort
SELECT + + col0 * - col1 + cor0.col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT - ( 12 ) * col1 AS col0 FROM tab2 AS cor0
----
-204
-372
-708
query I rowsort
SELECT - 45 * - cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 3a7fa0e00bc72391fc4753e3301af1a9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6714
SELECT 28 + cor0.col2 DIV 79 - 69 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 554a468b6a424e4fa5db7bb1d2248b2b
skipif mysql # not compatible
query I rowsort label-6714
SELECT 28 + cor0.col2 / 79 - 69 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 554a468b6a424e4fa5db7bb1d2248b2b
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to c04c36412775e8805d6b3befa2f52917
query I rowsort
SELECT - + cor0.col1 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT DISTINCT col2 * + col1 + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL - col1 + + cor0.col0 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT - - cor0.col2 + + col0 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT col2 + + col2 * col0 AS col1 FROM tab1 AS cor0
----
216
3705
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 58 - - 97 col0 FROM tab1 AS cor0
----
-3615
-4543
-77
query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab0, tab2, tab0 cor0
----
24
35
89
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - ( tab1.col0 + col0 * ( col1 ) ) col0 FROM tab1
----
-14560
-2106
-7040
onlyif mysql # use DIV operator for integer division
query I rowsort label-6725
SELECT - col0 DIV + 95 + - col0 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-6725
SELECT - col0 / + 95 + - col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + col2 * 86 FROM tab2 AS cor0
----
2236
2322
3268
query I rowsort
SELECT ALL col2 * 53 FROM tab1 AS cor0
----
2862
3021
5088
query I rowsort
SELECT + + col1 + + col2 * - col0 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ALL col2 * 7 + col1 AS col0 FROM tab1 AS cor0
----
404
409
685
onlyif mysql # use DIV operator for integer division
query I rowsort label-6730
SELECT ALL col0 DIV ( - col1 ) FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL col0 / ( - col1 ) FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col1 + col2 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + col1 + + 92 AS col0 FROM tab0 AS cor0
----
178
183
189
query I rowsort
SELECT - 43 - - col0 * + col2 AS col1 FROM tab0
----
-8
7255
749
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 col1 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-6735
SELECT - - 68 DIV col1 AS col0 FROM tab2 cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-6735
SELECT - - 68 / col1 AS col0 FROM tab2 cor0
----
1
2
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-6736
SELECT 34 DIV + ( - col2 ) FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6736
SELECT 34 / + ( - col2 ) FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col2 + col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT 2 * col0 * ( - col2 ) + - col1 * - 21 FROM tab0
----
-12685
1967
222
query I rowsort
SELECT 25 + col2 AS col0 FROM tab1
----
121
79
82
query I rowsort
SELECT DISTINCT ( + col0 ) * + ( col0 ) FROM tab0 cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-6741
SELECT + + col1 + col2 DIV 35 AS col2 FROM tab0 AS cor0
----
86
93
97
skipif mysql # not compatible
query I rowsort label-6741
SELECT + + col1 + col2 / 35 AS col2 FROM tab0 AS cor0
----
86
93
97
query I rowsort
SELECT ALL col0 + col0 * col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT + + cor0.col0 * - col2 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 + col2 * cor0.col2 col1 FROM tab2 AS cor0
----
1490
722
775
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 + + col2 col0 FROM tab1
----
103
61
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - col0 + 72 * + cor0.col1 col1 FROM tab0 AS cor0
----
13850
6984
7019
query I rowsort
SELECT DISTINCT 87 * - col1 + + col2 + ( + col0 ) FROM tab2 AS cor0
----
-1362
-2663
-5029
query I rowsort
SELECT DISTINCT + - 79 + col0 + - col1 AS col0 FROM tab0 cor0
----
-141
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 57 col2 FROM tab1 AS cor0
----
-57
query I rowsort
SELECT DISTINCT - cor0.col2 + col0 * 36 FROM tab2 AS cor0
----
225
2782
2806
query I rowsort
SELECT ALL + + col2 + col0 * cor0.col2 + + col0 FROM tab2 AS cor0
----
2132
223
3119
query I rowsort
SELECT ALL + - 27 FROM tab0 AS cor0
----
-27
-27
-27
query I rowsort
SELECT DISTINCT + - cor0.col0 * col0 + col0 AS col1 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT ALL + - 87 FROM tab1 AS cor0
----
-87
-87
-87
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab2 AS cor1, tab1, tab1 cor2
----
3645 values hashing to 3ef3d333138b2b558b77004bad9bdabc
query I rowsort
SELECT - col0 * + 83 AS col0 FROM tab2 cor0
----
-581
-6474
-6557
query I rowsort
SELECT ALL + col2 * 51 FROM tab0 cor0
----
1683
4182
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6758
SELECT ALL col0 + - CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-6758
SELECT ALL col0 + - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-24
19
62
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab1 cor2
----
3645 values hashing to fb3687512d3714969d7c6afc5561ed79
query I rowsort
SELECT - col1 * 2 AS col0 FROM tab2 cor0
----
-118
-34
-62
query I rowsort
SELECT ALL - 22 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6762
SELECT ALL + 14 DIV col0 - + col0 FROM tab2 AS cor0
----
-5
-78
-79
skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL + 14 / col0 - + col0 FROM tab2 AS cor0
----
-5
-78
-79
query I rowsort
SELECT DISTINCT + col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - 39 * ( + col0 ) - + 40 FROM tab1 AS cor0
----
-157
-2536
-3160
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6765
SELECT DISTINCT + ( ( cor0.col0 ) ) + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6765
SELECT DISTINCT + ( ( cor0.col0 ) ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + col2 + + 10 AS col1 FROM tab1 AS cor0
----
106
64
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-6767
SELECT + col0 DIV col0 + col0 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-6767
SELECT + col0 / col0 + col0 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT ALL - col1 * 25 FROM tab2 AS cor0
----
-1475
-425
-775
onlyif mysql # use DIV operator for integer division
query I rowsort label-6769
SELECT ALL + ( - 48 ) + - col1 DIV ( + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-49
-49
-49
skipif mysql # not compatible
query I rowsort label-6769
SELECT ALL + ( - 48 ) + - col1 / ( + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-49
-49
-49
onlyif mysql # use DIV operator for integer division
query I rowsort label-6770
SELECT ALL + col0 - col1 DIV + ( - col1 ) AS col0 FROM tab2
----
79
8
80
skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL + col0 - col1 / + ( - col1 ) AS col0 FROM tab2
----
79
8
80
query I rowsort
SELECT col0 + 14 AS col1 FROM tab1 cor0
----
17
78
94
query I rowsort
SELECT DISTINCT - col2 - ( col1 ) AS col0 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT + + col0 - + col2 AS col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT + col2 + + col2 * - col1 * + tab2.col2 FROM tab2
----
-22572
-24510
-39858
query I rowsort
SELECT cor0.col1 * cor0.col2 + - ( col1 ) + - col0 * cor0.col0 * + col0 AS col2 FROM tab1 AS cor0
----
-261584
-510765
1351
query I rowsort
SELECT DISTINCT + - 63 FROM tab0, tab2, tab1 cor0
----
-63
query I rowsort
SELECT cor1.col0 * + cor0.col2 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 5a783d04f27f5464428a0aa6e48e0e25
query I rowsort
SELECT + 73 FROM tab2, tab2 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT DISTINCT col0 + col2 * - col2 + + col0 FROM tab1 AS cor0
----
-2910
-3121
-9056
query I rowsort
SELECT - col0 * + 51 FROM tab2
----
-357
-3978
-4029
query I rowsort
SELECT + 84 * tab2.col1 AS col0 FROM tab2
----
1428
2604
4956
query I rowsort
SELECT DISTINCT + cor0.col0 * + cor0.col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
4096
6400
9
query I rowsort
SELECT - cor0.col0 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT DISTINCT + - col1 * ( col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + cor0.col1 + + col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT 6 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab0 AS cor3
----
243 values hashing to b406364371011938300d901d81088d18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * 18 col0 FROM tab0
----
1476
18
594
query I rowsort
SELECT col0 * col1 + col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT 65 FROM tab0, tab0 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT + 98 * + 89 AS col1 FROM tab1 AS cor0
----
8722
8722
8722
query I rowsort
SELECT + col2 + col0 * + col1 AS col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT 46 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT 23 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
query I rowsort
SELECT + - ( col0 ) * cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6796
SELECT cor0.col0 * - CAST( - 65 AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to dac968b8ac8be9ece31e6d5d361e05ff
skipif mysql # not compatible
query I rowsort label-6796
SELECT cor0.col0 * - CAST ( - 65 AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to dac968b8ac8be9ece31e6d5d361e05ff
query I rowsort
SELECT + 76 * - col1 FROM tab2
----
-1292
-2356
-4484
onlyif mysql # use DIV operator for integer division
query I rowsort label-6798
SELECT 45 * col2 DIV ( + 13 ) FROM tab0
----
114
283
3
skipif mysql # not compatible
query I rowsort label-6798
SELECT 45 * col2 / ( + 13 ) FROM tab0
----
114
283
3
query I rowsort
SELECT - ( col2 + + 55 ) * col1 AS col0 FROM tab2
----
-1581
-2542
-4779
query I rowsort
SELECT DISTINCT + - 62 * col0 FROM tab0 AS cor0
----
-1488
-2170
-5518
query I rowsort
SELECT + col2 + col1 + + cor0.col0 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT + col0 + 4 FROM tab1 AS cor0
----
68
7
84
query I rowsort
SELECT - - col2 * + 45 + 98 FROM tab0 AS cor0
----
143
1583
3788
query I rowsort
SELECT + + col2 + + cor0.col0 + col2 AS col2 FROM tab0 cor0
----
253
37
90
query I rowsort
SELECT ALL - 59 + + col0 FROM tab0
----
-24
-35
30
onlyif mysql # use DIV operator for integer division
query I rowsort label-6806
SELECT ALL ( + col2 ) DIV + col0 + 83 FROM tab2
----
83
83
86
skipif mysql # not compatible
query I rowsort label-6806
SELECT ALL ( + col2 ) / + col0 + 83 FROM tab2
----
83
83
86
query I rowsort
SELECT ALL col2 + col2 + - ( - col2 + col0 * ( col0 ) ) FROM tab1
----
-3925
-6112
153
onlyif mysql # use DIV operator for integer division
query I rowsort label-6808
SELECT col2 DIV 22 + - 91 * col0 FROM tab2 AS cor0
----
-636
-7097
-7188
skipif mysql # not compatible
query I rowsort label-6808
SELECT col2 / 22 + - 91 * col0 FROM tab2 AS cor0
----
-636
-7097
-7188
query I rowsort
SELECT col0 * + col1 - 53 AS col2 FROM tab2 AS cor0
----
1290
164
4549
query I rowsort
SELECT ALL - col1 * col0 + col1 AS col1 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT ALL col2 + col0 * - col2 + col1 * col2 AS col1 FROM tab2
----
-2318
-468
675
query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
54
57
96
query I rowsort
SELECT ALL - cor0.col0 + - 51 AS col2 FROM tab1 AS cor0
----
-115
-131
-54
query I rowsort
SELECT DISTINCT + col1 * + col2 * + col2 FROM tab1 AS cor0
----
119808
32490
75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-6815
SELECT ALL - col1 * - col1 + col2 - col1 * col2 DIV - 65 AS col0 FROM tab2 cor0
----
1000
336
3530
skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL - col1 * - col1 + col2 - col1 * col2 / - 65 AS col0 FROM tab2 cor0
----
1000
336
3530
query I rowsort
SELECT - col0 - + 80 AS col0 FROM tab2 AS cor0
----
-158
-159
-87
query I rowsort
SELECT ALL cor0.col2 + - col2 * 11 + + col2 * - ( col0 ) FROM tab1 AS cor0
----
-4218
-702
-8640
query I rowsort
SELECT ALL + - col0 - 17 * 3 AS col0 FROM tab2 cor0
----
-129
-130
-58
query I rowsort
SELECT ALL + + ( col1 ) + col1 * col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT - col1 * col0 * col2 AS col2 FROM tab2 cor0
----
-119652
-51034
-5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 col0 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT - col2 * + 69 AS col1 FROM tab0 AS cor0
----
-2277
-5658
-69
query I rowsort
SELECT DISTINCT col1 * + 32 FROM tab1
----
320
416
832
query I rowsort
SELECT + ( + ( col2 ) ) FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL - + col2 + - col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT + + 38 * + 2 + + col0 AS col2 FROM tab1 AS cor0
----
140
156
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 66 col2 FROM tab0 cor0
----
-66
-66
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-6828
SELECT 25 DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-6828
SELECT 25 / col0 AS col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT DISTINCT - ( 18 ) * col2 FROM tab1 AS cor0
----
-1026
-1728
-972
onlyif mysql # use DIV operator for integer division
query I rowsort label-6830
SELECT DISTINCT - col2 DIV - col2 col0 FROM tab0 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT - col2 / - col2 col0 FROM tab0 AS cor0
----
1
query I rowsort
SELECT + + cor0.col0 * ( col0 ) * ( col1 ) AS col1 FROM tab0 AS cor0
----
118825
49536
720811
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6832
SELECT ALL col1 + 37 * ( col0 + CAST( col2 AS SIGNED ) ) FROM tab1
----
2135
4487
6525
skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL col1 + 37 * ( col0 + CAST ( col2 AS INTEGER ) ) FROM tab1
----
2135
4487
6525
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6833
SELECT DISTINCT + tab1.col2 * + CAST( NULL AS SIGNED ) + tab1.col0 / - col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-6833
SELECT DISTINCT + tab1.col2 * + CAST ( NULL AS INTEGER ) + tab1.col0 / - col0 FROM tab1
----
NULL
query I rowsort
SELECT col0 * - ( + 46 ) - + col2 AS col1 FROM tab0
----
-1137
-1611
-4176
query I rowsort
SELECT ALL - tab2.col1 * - col0 * + col2 + col0 FROM tab2
----
119730
51113
5866
onlyif mysql # use DIV operator for integer division
query I rowsort label-6836
SELECT ALL col1 DIV + ( col1 ) + col1 * - col0 FROM tab2
----
-1342
-216
-4601
skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL col1 / + ( col1 ) + col1 * - col0 FROM tab2
----
-1342
-216
-4601
query I rowsort
SELECT DISTINCT + col2 * col0 - col2 FROM tab2 cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT + col0 + col1 + + cor0.col1 AS col1 FROM tab1 cor0
----
106
55
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 col0 FROM tab1
----
31
31
31
query I rowsort
SELECT ALL ( + tab1.col2 ) * + col2 AS col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT cor0.col1 + col2 * ( + col0 ) AS col1 FROM tab2 AS cor0
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - col0 col0 FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-6843
SELECT ALL + ( col0 ) + + cor0.col2 + - 83 DIV - col1 AS col0 FROM tab1 AS cor0
----
129
182
60
skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL + ( col0 ) + + cor0.col2 + - 83 / - col1 AS col0 FROM tab1 AS cor0
----
129
182
60
query I rowsort
SELECT DISTINCT - + 34 * + col1 + col2 AS col0 FROM tab1 AS cor0
----
-283
-346
-830
query I rowsort
SELECT - - col2 + + 87 FROM tab1 AS cor0
----
141
144
183
query I rowsort
SELECT DISTINCT - 58 * col1 + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-12740
-5723
-7826
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) col0 FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * col0 col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT ( - col1 ) + - col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT ALL - - col1 * col0 + col2 AS col1 FROM tab0 AS cor0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 88 ) + + cor0.col2 * col1 col2 FROM tab0 cor0
----
185
2926
7550
query I rowsort
SELECT DISTINCT 61 + col2 * col0 FROM tab1 AS cor0
----
223
3709
7741
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( cor0.col2 AS REAL ) + - col2 * ( + 42 ) AS col1 FROM tab2 AS cor0
----
-1118
-1161
-1634
query I rowsort
SELECT ALL + col1 + + col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL ( + col2 ) + - col0 * - 83 FROM tab2 AS cor0
----
608
6500
6595
query I rowsort
SELECT ALL - - cor0.col2 + - col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT + + 51 * cor0.col1 AS col2 FROM tab0 AS cor0
----
4386
4641
4947
query I rowsort
SELECT ALL + col0 * - col1 + + col0 AS col0 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT col2 - + tab0.col2 FROM tab0
----
0
0
0
query I rowsort
SELECT 24 AS col0 FROM tab1 AS cor0
----
24
24
24
query I rowsort
SELECT ALL - col0 * 27 FROM tab2 AS cor0
----
-189
-2106
-2133
onlyif mysql # use DIV operator for integer division
query I rowsort label-6862
SELECT DISTINCT - + col1 DIV - col1 + col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT - + col1 / - col1 + col1 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT DISTINCT ( cor0.col2 ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - + col2 + col0 AS col2 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + ( + col1 ) * - col2 + - ( - 7 ) AS col1 FROM tab0 AS cor0
----
-2831
-7455
-90
query I rowsort
SELECT DISTINCT 48 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
48
query I rowsort
SELECT ALL 73 AS col0 FROM tab2
----
73
73
73
query I rowsort
SELECT + - cor0.col2 AS col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT - 30 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb
query I rowsort
SELECT col2 * - col1 + - 1 + col2 FROM tab2
----
-1509
-609
-811
query I rowsort
SELECT + + col0 * - col2 * - cor0.col2 + + col2 - col1 FROM tab1 cor0
----
207983
737363
8776
query I rowsort
SELECT + col2 + - ( col1 * + col0 ) FROM tab1
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-6873
SELECT col0 DIV - col1 + tab0.col1 * tab0.col1 FROM tab0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-6873
SELECT col0 / - col1 + tab0.col1 * tab0.col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT col0 * + col1 - col2 AS col0 FROM tab0
----
2031
3394
8017
query I rowsort
SELECT col2 + + col0 * 83 * col2 + col0 * - col2 FROM tab1 AS cor0
----
13338
299193
629856
onlyif mysql # use DIV operator for integer division
query I rowsort label-6876
SELECT cor0.col0 DIV 95 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6876
SELECT cor0.col0 / 95 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 + 48 * + 73 FROM tab1 AS cor0
----
3478
3491
3494
onlyif mysql # use DIV operator for integer division
query I rowsort label-6878
SELECT DISTINCT + + col0 + - col1 * 72 DIV - cor0.col1 AS col2 FROM tab1 AS cor0
----
136
152
75
skipif mysql # not compatible
query I rowsort label-6878
SELECT DISTINCT + + col0 + - col1 * 72 / - cor0.col1 AS col2 FROM tab1 AS cor0
----
136
152
75
query I rowsort
SELECT + col2 + tab0.col2 * col2 FROM tab0
----
1122
2
6806
query I rowsort
SELECT DISTINCT + + 21 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
21
query I rowsort
SELECT DISTINCT + col1 + + col0 FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-6882
SELECT DISTINCT - col1 DIV 9 AS col1 FROM tab1 AS cor0
----
-1
-2
skipif mysql # not compatible
query I rowsort label-6882
SELECT DISTINCT - col1 / 9 AS col1 FROM tab1 AS cor0
----
-1
-2
query I rowsort
SELECT DISTINCT - col0 * + col2 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT + - col1 + - ( + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL + col1 + - cor0.col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - cor0.col0 * - 2 + - col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - col1 * ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6888
SELECT ALL - col2 DIV + tab1.col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-6888
SELECT ALL - col2 / + tab1.col0 FROM tab1
----
-1
-18
0
query I rowsort
SELECT DISTINCT - 28 * + 16 FROM tab0 AS cor0
----
-448
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6890
SELECT - - CAST( col1 AS SIGNED ) + + col0 AS col0 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-6890
SELECT - - CAST ( col1 AS INTEGER ) + + col0 AS col0 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6891
SELECT ALL - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + ( - col0 ) ) * + col0 col1 FROM tab2 cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col0 FROM tab0
----
4
4
4
query I rowsort
SELECT col2 * 65 FROM tab0
----
2145
5330
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-6895
SELECT col2 DIV 64 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6895
SELECT col2 / 64 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 21 FROM tab2, tab2 AS cor0
----
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-6897
SELECT + 46 DIV - 9 AS col2 FROM tab0 AS cor0
----
-5
-5
-5
skipif mysql # not compatible
query I rowsort label-6897
SELECT + 46 / - 9 AS col2 FROM tab0 AS cor0
----
-5
-5
-5
query I rowsort
SELECT ALL col0 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - 4 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to df0306664dfa9962994889ea8d5edc5a
query I rowsort
SELECT ALL + 13 FROM tab2, tab0 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT - col1 * - col1 - - ( ( col0 ) ) * 51 FROM tab1 AS cor0
----
3364
4249
829
query I rowsort
SELECT DISTINCT + col2 + col0 * col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL col2 + - tab2.col0 * + col1 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT ALL 57 + col0 FROM tab1
----
121
137
60
query I rowsort
SELECT ALL col2 * - col1 + - col2 + tab2.col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT 88 + col0 FROM tab2
----
166
167
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-6907
SELECT ALL + col1 DIV col1 + ( + col0 ) FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL + col1 / col1 + ( + col0 ) FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT DISTINCT + col0 * col1 - col2 * col2 * col0 FROM tab1 cor0
----
-207296
-736240
-8670
query I rowsort
SELECT ALL - col2 + - col2 + + col1 AS col1 FROM tab1 AS cor0
----
-104
-179
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 - + ( + 33 * col2 ) col0 FROM tab2 AS cor0
----
-1080
-2886
-4256
query I rowsort
SELECT - - col2 * cor0.col0 + ( - col2 ) * - col1 * + col1 AS col1 FROM tab1 AS cor0
----
23904
36666
9348
query I rowsort
SELECT ALL + col1 * + cor0.col1 + ( + 1 ) FROM tab1 AS cor0
----
101
170
677
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - cor0.col2 + col2 + col1 col2 FROM tab0 AS cor0
----
-2719
-7289
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6914
SELECT + cor0.col1 * 31 DIV ( col1 ) FROM tab1 AS cor0
----
31
31
31
skipif mysql # not compatible
query I rowsort label-6914
SELECT + cor0.col1 * 31 / ( col1 ) FROM tab1 AS cor0
----
31
31
31
query I rowsort
SELECT + col1 + col2 + - 61 AS col0 FROM tab0 AS cor0
----
112
37
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 col1 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-6917
SELECT + col0 DIV 17 FROM tab2 cor0
----
0
4
4
skipif mysql # not compatible
query I rowsort label-6917
SELECT + col0 / 17 FROM tab2 cor0
----
0
4
4
query I rowsort
SELECT ALL - 35 * - tab1.col1 + col0 FROM tab1
----
414
535
913
query I rowsort
SELECT DISTINCT - 14 + - col2 AS col0 FROM tab1
----
-110
-68
-71
query I rowsort
SELECT ALL col1 * + tab2.col1 + - col1 FROM tab2
----
272
3422
930
query I rowsort
SELECT - + col1 + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT + 42 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
query I rowsort
SELECT ALL - 84 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 * col0 * col0 col1 FROM tab1
----
233472
486
614400
query I rowsort
SELECT tab0.col0 * - col0 + 54 AS col0 FROM tab0
----
-1171
-522
-7867
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6926
SELECT - col0 + - CAST( NULL AS DECIMAL ) * - ( - col0 * - 39 ) + - col2 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6926
SELECT - col0 + - CAST ( NULL AS REAL ) * - ( - col0 * - 39 ) + - col2 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + ( + tab2.col1 ) FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * 13 col1 FROM tab0 AS cor0
----
1157
312
455
query I rowsort
SELECT ALL + - 18 - + col1 * col1 FROM tab0 AS cor0
----
-7414
-8299
-9427
query I rowsort
SELECT + - 79 + 48 AS col0 FROM tab2 AS cor0
----
-31
-31
-31
query I rowsort
SELECT + cor0.col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-6932
SELECT - - col2 DIV + col2 + col1 DIV col1 AS col0 FROM tab0 AS cor0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-6932
SELECT - - col2 / + col2 + col1 / col1 AS col0 FROM tab0 AS cor0
----
2
2
2
query I rowsort
SELECT - 29 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 - col0 col0 FROM tab1 AS cor0
----
-100
-161
-177
query I rowsort
SELECT 0 * cor0.col1 + col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - col2 - col2 * - col0 AS col1 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT col0 + col0 * col1 AS col2 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT + + col0 * + col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ( col2 ) * col2 - + col1 * + cor0.col0 FROM tab1 cor0
----
2609
2838
8176
query I rowsort
SELECT 29 * tab2.col2 * col0 + + 72 * - ( col2 ) - - tab2.col0 FROM tab2
----
3544
57018
84401
query I rowsort
SELECT DISTINCT 49 * 36 - - col2 AS col1 FROM tab1
----
1818
1821
1860
query I rowsort
SELECT - col0 * + 72 + - col2 AS col0 FROM tab0
----
-1761
-2521
-6490
query I rowsort
SELECT ALL 10 + tab2.col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to afc1bb4263546ccc86f80f71764b5ee6
query I rowsort
SELECT 49 AS col0 FROM tab0
----
49
49
49
query I rowsort
SELECT DISTINCT 49 * col1 AS col0 FROM tab0
----
4214
4459
4753
query I rowsort
SELECT 34 * - ( - col0 ) AS col1 FROM tab2
----
238
2652
2686
query I rowsort
SELECT - col1 * 30 AS col2 FROM tab1
----
-300
-390
-780
query I rowsort
SELECT + - 44 * cor0.col1 + col2 + - 42 AS col1 FROM tab2 AS cor0
----
-1379
-2612
-752
query I rowsort
SELECT col2 * - col0 * col0 + col0 * col0 FROM tab2 cor0
----
-1274
-152100
-230917
query I rowsort
SELECT + + 69 + + col1 + - col2 AS col0 FROM tab2 AS cor0
----
102
48
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-6951
SELECT + col0 DIV col2 + + col0 * 43 + + col1 FROM tab0 AS cor0
----
1118
1637
3919
skipif mysql # not compatible
query I rowsort label-6951
SELECT + col0 / col2 + + col0 * 43 + + col1 FROM tab0 AS cor0
----
1118
1637
3919
query I rowsort
SELECT - col0 * 38 * - col2 AS col1 FROM tab0
----
1330
277324
30096
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 55 col1 FROM tab2
----
1705
3245
935
query I rowsort
SELECT + cor0.col1 + cor0.col1 * + ( - 87 ) + + col0 AS col0 FROM tab0 AS cor0
----
-7372
-7737
-8307
query I rowsort
SELECT ALL + col1 * + col0 * col0 FROM tab0 AS cor0
----
118825
49536
720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-6956
SELECT + 53 + - col1 + cor0.col0 DIV - col1 FROM tab0 AS cor0
----
-33
-38
-44
skipif mysql # not compatible
query I rowsort label-6956
SELECT + 53 + - col1 + cor0.col0 / - col1 FROM tab0 AS cor0
----
-33
-38
-44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6957
SELECT cor0.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6957
SELECT cor0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col1 * col0 + col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-6959
SELECT DISTINCT col2 DIV - 16 + col1 * - col1 FROM tab1 AS cor0
----
-103
-175
-679
skipif mysql # not compatible
query I rowsort label-6959
SELECT DISTINCT col2 / - 16 + col1 * - col1 FROM tab1 AS cor0
----
-103
-175
-679
query I rowsort
SELECT + col1 * 15 * - 38 AS col2 FROM tab0 AS cor0
----
-49020
-51870
-55290
query I rowsort
SELECT ALL - cor0.col0 + col0 * + 60 FROM tab1 AS cor0
----
177
3776
4720
query I rowsort
SELECT + 13 * + col1 * col2 + col2 AS col1 FROM tab0
----
1262
36927
97088
query I rowsort
SELECT + 80 * col0 FROM tab1 AS cor0
----
240
5120
6400
query I rowsort
SELECT DISTINCT - + 43 + col1 * - col0 FROM tab2 AS cor0
----
-1386
-260
-4645
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23
query I rowsort
SELECT ALL + ( - col1 ) * + col1 + col1 AS col1 FROM tab2 AS cor0
----
-272
-3422
-930
onlyif mysql # use DIV operator for integer division
query I rowsort label-6967
SELECT ALL + ( col0 ) DIV - col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-6967
SELECT ALL + ( col0 ) / - col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT ( - 21 ) AS col0 FROM tab0 AS cor0
----
-21
-21
-21
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 cor1, tab2 AS cor2
----
972 values hashing to f94a4a64ac54a61fc21f78e2b831ebee
query I rowsort
SELECT ALL 7 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT col1 + 55 * col0 AS col2 FROM tab1
----
191
3530
4413
query I rowsort
SELECT + col2 + 76 AS col0 FROM tab0
----
109
158
77
query I rowsort
SELECT ALL 69 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40
query I rowsort
SELECT + col0 * + col0 + 73 AS col2 FROM tab2 AS cor0
----
122
6157
6314
query I rowsort
SELECT + col2 + + col0 * col1 FROM tab1 cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT + cor0.col0 + 14 AS col0 FROM tab0 AS cor0
----
103
38
49
query I rowsort
SELECT DISTINCT - tab2.col2 * 21 AS col0 FROM tab2
----
-546
-567
-798
query I rowsort
SELECT ALL - col1 * - 3 + col0 AS col0 FROM tab0 AS cor0
----
282
326
362
onlyif mysql # use DIV operator for integer division
query I rowsort label-6979
SELECT DISTINCT - cor0.col1 DIV + col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-6979
SELECT DISTINCT - cor0.col1 / + col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT ALL - + col1 + + 7 AS col2 FROM tab2 AS cor0
----
-10
-24
-52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 * + cor0.col0 col2 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6982
SELECT DISTINCT col0 * - CAST( NULL AS DECIMAL ) * 20 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6982
SELECT DISTINCT col0 * - CAST ( NULL AS REAL ) * 20 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + ( 4 ) * - cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 54fe2011393c3e49b7fc4bc423d08ff1
query I rowsort
SELECT ALL + col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL - cor0.col0 * 87 FROM tab2 AS cor0
----
-609
-6786
-6873
query I rowsort
SELECT ALL - + col2 + + cor0.col1 * - col2 FROM tab2 cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT - 6 * col2 * + col0 FROM tab2 AS cor0
----
-1134
-12168
-18012
query I rowsort
SELECT DISTINCT + ( col0 ) * + col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6989
SELECT ALL - + CAST( col0 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL - + CAST ( col0 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - 44 * col0 FROM tab0 AS cor0
----
-1056
-1540
-3916
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6991
SELECT + ( col1 ) * col1 + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6991
SELECT + ( col1 ) * col1 + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * - 99 FROM tab1 AS cor0
----
-5346
-5643
-9504
onlyif mysql # use DIV operator for integer division
query I rowsort label-6993
SELECT DISTINCT - cor0.col1 DIV col0 + + col0 * col2 FROM tab0 AS cor0
----
33
7297
789
skipif mysql # not compatible
query I rowsort label-6993
SELECT DISTINCT - cor0.col1 / col0 + + col0 * col2 FROM tab0 AS cor0
----
33
7297
789
query I rowsort
SELECT DISTINCT - - 28 AS col2 FROM tab0 AS cor0
----
28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6995
SELECT ALL + CAST( col1 AS SIGNED ) - col1 * - ( - 43 ) FROM tab0 AS cor0
----
-3612
-3822
-4074
skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL + CAST ( col1 AS INTEGER ) - col1 * - ( - 43 ) FROM tab0 AS cor0
----
-3612
-3822
-4074
query I rowsort
SELECT - col1 * + 3 AS col1 FROM tab1 cor0
----
-30
-39
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 col2 FROM tab1 AS cor0
----
90
query I rowsort
SELECT ALL - col2 * 12 + col1 * col0 AS col2 FROM tab0
----
1668
3383
7115
query I rowsort
SELECT ALL col1 * + tab0.col0 * + 39 + - col0 + col2 AS col1 FROM tab0
----
132371
315854
80505
onlyif mysql # use DIV operator for integer division
query I rowsort label-7000
SELECT ALL + col2 + + 88 + - col2 DIV col1 FROM tab0
----
121
170
89
skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL + col2 + + 88 + - col2 / col1 FROM tab0
----
121
170
89
query I rowsort
SELECT DISTINCT - 6 * - col2 + 80 FROM tab2 AS cor0
----
236
242
308
query I rowsort
SELECT - ( col2 ) + ( - cor0.col0 * col0 ) - col1 * - col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
176895
328089
729006
query I rowsort
SELECT ALL + - col2 * - col2 + - col2 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT DISTINCT + + col2 + + col0 + col2 FROM tab0 AS cor0
----
253
37
90
query I rowsort
SELECT ALL - 85 AS col1 FROM tab0 AS cor0
----
-85
-85
-85
query I rowsort
SELECT DISTINCT - col0 + - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-131
-189
-83
query I rowsort
SELECT col1 - col1 * - col2 AS col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT + - col2 * col1 - + col0 AS col1 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT - - cor0.col0 + + col1 * - cor0.col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT + + 52 + col2 * + col1 FROM tab0 AS cor0
----
149
2890
7514
onlyif mysql # use DIV operator for integer division
query I rowsort label-7011
SELECT - cor0.col0 * col0 + + col1 DIV ( col1 ) FROM tab2 AS cor0
----
-48
-6083
-6240
skipif mysql # not compatible
query I rowsort label-7011
SELECT - cor0.col0 * col0 + + col1 / ( col1 ) FROM tab2 AS cor0
----
-48
-6083
-6240
query I rowsort
SELECT - cor0.col2 + cor0.col1 * col0 AS col1 FROM tab2 AS cor0
----
1305
190
4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 col2 FROM tab2
----
-88
-88
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-7014
SELECT + cor0.col2 DIV col0 - 33 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1020
-1947
-561
skipif mysql # not compatible
query I rowsort label-7014
SELECT + cor0.col2 / col0 - 33 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1020
-1947
-561
query I rowsort
SELECT DISTINCT + 38 * + col2 * col0 + - col2 * col1 * ( col2 ) FROM tab1 AS cor0
----
-69660
106134
172032
query I rowsort
SELECT - - col0 + + col2 AS col0 FROM tab0 cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7017
SELECT DISTINCT - 99 DIV + col0 + + ( col2 ) + - cor0.col2 FROM tab0 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-7017
SELECT DISTINCT - 99 / + col0 + + ( col2 ) + - cor0.col2 FROM tab0 AS cor0
----
-1
-2
-4
query I rowsort
SELECT ALL + ( col2 * 17 ) + 7 FROM tab0
----
1401
24
568
query I rowsort
SELECT col0 * + tab2.col1 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + col1 + - col0 * - 81 FROM tab2
----
598
6377
6416
query I rowsort
SELECT + + col2 + + 33 FROM tab2 AS cor0
----
59
60
71
query I rowsort
SELECT DISTINCT - col0 * + 52 AS col0 FROM tab2 cor0
----
-364
-4056
-4108
query I rowsort
SELECT + col1 + 33 * - ( col2 * col2 ) AS col0 FROM tab0 AS cor0
----
-221801
-35851
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL col2 + col0 + col2 * col1 AS col0 FROM tab2
----
1638
763
871
query I rowsort
SELECT ALL + col2 * col0 + ( col0 ) FROM tab1
----
165
3712
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7027
SELECT DISTINCT - col2 + + col2 * CAST( col2 + col0 AS SIGNED ) FROM tab0
----
13940
1848
35
skipif mysql # not compatible
query I rowsort label-7027
SELECT DISTINCT - col2 + + col2 * CAST ( col2 + col0 AS INTEGER ) FROM tab0
----
13940
1848
35
query I rowsort
SELECT DISTINCT + 85 * col1 + 48 AS col0 FROM tab0
----
7358
7783
8293
onlyif mysql # use DIV operator for integer division
query I rowsort label-7029
SELECT DISTINCT - 74 DIV + cor0.col1 FROM tab2, tab1, tab2 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT - 74 / + cor0.col1 FROM tab2, tab1, tab2 AS cor0
----
-1
-2
-4
query I rowsort
SELECT DISTINCT + col2 + 11 * - col0 AS col2 FROM tab1
----
-647
-784
21
query I rowsort
SELECT - col0 * + col1 + - tab0.col0 FROM tab0
----
-2088
-3430
-8188
query I rowsort
SELECT + - col2 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT col2 + - cor0.col1 * col1 FROM tab1 AS cor0
----
-43
-622
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-7034
SELECT DISTINCT - + col2 + - col1 DIV - col1 FROM tab2 AS cor0
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-7034
SELECT DISTINCT - + col2 + - col1 / - col1 FROM tab2 AS cor0
----
-25
-26
-37
query I rowsort
SELECT - - col1 * + cor0.col0 + col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT + col1 * - 85 * cor0.col1 FROM tab0 AS cor0
----
-628660
-703885
-799765
query I rowsort
SELECT ALL - - col1 * - ( col2 ) * col0 - 51 * col0 * - col1 AS col2 FROM tab2 AS cor0
----
115050
17459
5208
query I rowsort
SELECT - col2 * col0 + + col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL 44 FROM tab2
----
44
44
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-7040
SELECT - + 94 DIV - col1 FROM tab0 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-7040
SELECT - + 94 / - col1 FROM tab0 AS cor0
----
0
1
1
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 cor1, tab1, tab1 AS cor2
----
3645 values hashing to fb3687512d3714969d7c6afc5561ed79
query I rowsort
SELECT ALL + + cor0.col2 * col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + - 57 * col0 AS col0 FROM tab0 AS cor0
----
-1368
-1995
-5073
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7044
SELECT - CAST( col2 AS SIGNED ) * + col0 * 62 AS col1 FROM tab0 AS cor0
----
-2170
-452476
-49104
skipif mysql # not compatible
query I rowsort label-7044
SELECT - CAST ( col2 AS INTEGER ) * + col0 * 62 AS col1 FROM tab0 AS cor0
----
-2170
-452476
-49104
query I rowsort
SELECT 24 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT DISTINCT col0 * + col1 + 52 FROM tab1 AS cor0
----
1092
130
692
query I rowsort
SELECT ALL - col1 + col2 + + col0 FROM tab1 AS cor0
----
111
163
31
query I rowsort
SELECT tab1.col2 * - col0 AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL + 28 + cor0.col2 AS col1 FROM tab2 cor0
----
54
55
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-7050
SELECT DISTINCT - col0 DIV tab2.col0 AS col2 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-7050
SELECT DISTINCT - col0 / tab2.col0 AS col2 FROM tab2
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7051
SELECT DISTINCT + col0 DIV + tab0.col2 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-7051
SELECT DISTINCT + col0 / + tab0.col2 FROM tab0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 + tab2.col1 col1 FROM tab2
----
175
215
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-7053
SELECT ALL tab0.col2 DIV col0 AS col1 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7053
SELECT ALL tab0.col2 / col0 AS col1 FROM tab0
----
0
0
1
query I rowsort
SELECT col2 * + col2 * col2 AS col2 FROM tab1
----
157464
185193
884736
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= col1 * + col0 * - col0
----
query I rowsort
SELECT ALL + tab2.col2 * col1 - col1 * col1 AS col2 FROM tab2
----
-124
-1947
357
query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NULL < NULL
----
query I rowsort
SELECT ALL col0 + - col0 AS col1 FROM tab2 WHERE NULL IN ( col0 )
----
query I rowsort
SELECT DISTINCT col2 + col1 - tab0.col0 * - col2 AS col1 FROM tab0
----
133
7471
911
query I rowsort
SELECT - tab1.col1 - col1 FROM tab1
----
-20
-26
-52
query III rowsort
SELECT * FROM tab0 WHERE + col0 - col1 NOT IN ( - col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7062
SELECT DISTINCT col0 DIV + col1 AS col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-7062
SELECT DISTINCT col0 / + col1 AS col1 FROM tab0
----
0
query I rowsort
SELECT col2 * tab2.col0 * - col2 AS col2 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT - col2 * col0 * + col0 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT col2 + + tab2.col2 - col0 FROM tab2
----
-26
-3
47
query I rowsort
SELECT DISTINCT + + 16 + col2 * col0 AS col1 FROM tab0 AS cor0
----
51
7314
808
onlyif mysql # use DIV operator for integer division
query I rowsort label-7067
SELECT + cor0.col1 + + col2 DIV - col2 + - col2 * col1 FROM tab1 AS cor0
----
-1236
-1379
-561
skipif mysql # not compatible
query I rowsort label-7067
SELECT + cor0.col1 + + col2 / - col2 + - col2 * col1 FROM tab1 AS cor0
----
-1236
-1379
-561
onlyif mysql # use DIV operator for integer division
query I rowsort label-7068
SELECT + 43 DIV col0 FROM tab0 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-7068
SELECT + 43 / col0 FROM tab0 AS cor0
----
0
1
1
query I rowsort
SELECT + - col1 * col0 + col1 * - col1 + col0 AS col2 FROM tab1 AS cor0
----
-1129
-676
-751
query I rowsort
SELECT - col2 * - col2 + + col0 FROM tab1
----
2919
3313
9296
query I rowsort
SELECT DISTINCT tab0.col1 + + col0 * + tab0.col2 * col0 AS col1 FROM tab0
----
1322
19094
649613
query I rowsort
SELECT - tab2.col2 * col1 + - col0 FROM tab2
----
-1612
-725
-844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - col2 col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT DISTINCT + col0 * + col1 AS col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE NOT NULL = NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 WHERE NOT + col1 * - col1 * col0 IN ( tab2.col2 )
----
7
78
79
query I rowsort
SELECT DISTINCT - tab0.col2 * + col0 + col1 * col1 FROM tab0 WHERE col1 NOT BETWEEN col2 AND NULL
----
query I rowsort
SELECT DISTINCT + col0 + + col2 AS col1 FROM tab0 WHERE NULL < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7079
SELECT ALL col0 * + col0 * col1 - col2 DIV + col0 FROM tab2
----
106097
1516
358956
skipif mysql # not compatible
query I rowsort label-7079
SELECT ALL col0 * + col0 * col1 - col2 / + col0 FROM tab2
----
106097
1516
358956
query I rowsort
SELECT ALL col2 * - col1 - col1 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT col1 * - col1 FROM tab2 WHERE NOT + col1 = NULL
----
query I rowsort
SELECT ALL + - 27 + 13 + col2 AS col2 FROM tab1 AS cor0
----
40
43
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7083
SELECT DISTINCT + col2 DIV 68 + col0 FROM tab1 AS cor0
----
3
64
81
skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT + col2 / 68 + col0 FROM tab1 AS cor0
----
3
64
81
query I rowsort
SELECT DISTINCT 98 * 63 * col0 AS col2 FROM tab2 AS cor0
----
43218
481572
487746
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col0 FROM tab1, tab2 cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 79 col2 FROM tab1 AS cor0
----
-4266
-4503
-7584
query I rowsort
SELECT + cor1.col2 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT + tab1.col0 * - 43 FROM tab1, tab0 AS cor0
----
9 values hashing to c5dce7abb5fd727a74971785bec66ee6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7089
SELECT - CAST( NULL AS SIGNED ) + tab0.col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7089
SELECT - CAST ( NULL AS INTEGER ) + tab0.col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 - + col1 AS col1 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT col2 * - ( + tab2.col2 ) + 81 * tab2.col0 FROM tab2
----
-162
4955
5642
query I rowsort
SELECT cor0.col0 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7093
SELECT + CAST( NULL AS SIGNED ) / + col2 - col1 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7093
SELECT + CAST ( NULL AS INTEGER ) / + col2 - col1 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 - 78 FROM tab2
----
-104
-105
-116
query I rowsort
SELECT - 30 * col1 FROM tab0 AS cor0
----
-2580
-2730
-2910
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7096
SELECT ALL + CAST( col1 AS SIGNED ) * - cor0.col1 + col1 + ( cor0.col1 ) FROM tab0 AS cor0
----
-7224
-8099
-9215
skipif mysql # not compatible
query I rowsort label-7096
SELECT ALL + CAST ( col1 AS INTEGER ) * - cor0.col1 + col1 + ( cor0.col1 ) FROM tab0 AS cor0
----
-7224
-8099
-9215
query I rowsort
SELECT DISTINCT col0 * ( col0 ) + - ( + col0 ) FROM tab1 AS cor0
----
4032
6
6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT + ( - col2 ) + + cor0.col1 AS col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL 91 AS col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query I rowsort
SELECT ALL 31 + col2 * - col0 FROM tab0
----
-4
-7267
-761
query I rowsort
SELECT col0 * - tab0.col2 * + col1 AS col0 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT tab2.col1 * tab2.col2 AS col1 FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-7104
SELECT + + 96 + col1 * - col1 * col1 + cor0.col2 DIV - 21 col1 FROM tab0 AS cor0
----
-635961
-753478
-912577
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7104
SELECT + + 96 + col1 * - col1 * col1 + cor0.col2 / - 21 col1 FROM tab0 AS cor0
----
-635961
-753478
-912577
query I rowsort
SELECT ALL 54 + col1 AS col1 FROM tab0
----
140
145
151
query I rowsort
SELECT + col2 + cor0.col0 AS col0 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-7107
SELECT DISTINCT + col0 DIV + 95 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT + col0 / + 95 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - 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-7109
SELECT - + col0 * - CAST( - col1 AS SIGNED ) col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7109
SELECT - + col0 * - CAST ( - col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + + cor0.col0 * + 74 FROM tab2 AS cor0
----
518
5772
5846
query I rowsort
SELECT col0 * + cor0.col1 + + col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL col2 * + 56 + - col1 * col1 FROM tab0 AS cor0
----
-3689
-5548
-9353
query I rowsort
SELECT ( + col1 ) * - col1 AS col1 FROM tab2
----
-289
-3481
-961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7114
SELECT - cor0.col1 * CAST( + 74 AS SIGNED ) FROM tab1 AS cor0
----
-1924
-740
-962
skipif mysql # not compatible
query I rowsort label-7114
SELECT - cor0.col1 * CAST ( + 74 AS INTEGER ) FROM tab1 AS cor0
----
-1924
-740
-962
query I rowsort
SELECT + col1 * 54 FROM tab0 AS cor0
----
4644
4914
5238
query I rowsort
SELECT ALL col1 * - 98 FROM tab2 AS cor0
----
-1666
-3038
-5782
query I rowsort
SELECT - - col1 * + 8 FROM tab1 AS cor0
----
104
208
80
query I rowsort
SELECT ALL - 57 + - col1 FROM tab1
----
-67
-70
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7119
SELECT ALL + col0 + + col2 DIV col0 + - 47 FROM tab2
----
-37
31
32
skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL + col0 + + col2 / col0 + - 47 FROM tab2
----
-37
31
32
query I rowsort
SELECT DISTINCT - col0 + col2 AS col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT ALL - 42 + col0 FROM tab0
----
-18
-7
47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7122
SELECT - CAST( col2 AS SIGNED ) + - col2 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-111
-178
-272
skipif mysql # not compatible
query I rowsort label-7122
SELECT - CAST ( col2 AS INTEGER ) + - col2 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-111
-178
-272
query I rowsort
SELECT - cor0.col0 + - 99 AS col0 FROM tab0 AS cor0
----
-123
-134
-188
query I rowsort
SELECT ALL - col1 + - 1 + + col1 AS col1 FROM tab0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7125
SELECT ALL - - col2 DIV + col2 + - 93 * col1 FROM tab1 AS cor0
----
-1208
-2417
-929
skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL - - col2 / + col2 + - 93 * col1 FROM tab1 AS cor0
----
-1208
-2417
-929
query I rowsort
SELECT ALL - col0 - col1 AS col2 FROM tab2 cor0
----
-137
-38
-96
query I rowsort
SELECT + 66 + cor0.col2 * - 6 AS col0 FROM tab1 AS cor0
----
-258
-276
-510
query I rowsort
SELECT DISTINCT + 24 * col2 AS col1 FROM tab1 AS cor0
----
1296
1368
2304
query I rowsort
SELECT + ( col0 ) + - 28 * col0 FROM tab0 AS cor0
----
-2403
-648
-945
onlyif mysql # use DIV operator for integer division
query I rowsort label-7130
SELECT DISTINCT + ( + col1 ) DIV - ( 2 ) FROM tab2 AS cor0
----
-15
-29
-8
skipif mysql # not compatible
query I rowsort label-7130
SELECT DISTINCT + ( + col1 ) / - ( 2 ) FROM tab2 AS cor0
----
-15
-29
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7131
SELECT DISTINCT 92 DIV col2 FROM tab0 AS cor0
----
1
2
92
skipif mysql # not compatible
query I rowsort label-7131
SELECT DISTINCT 92 / col2 FROM tab0 AS cor0
----
1
2
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( col2 ) col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + col1 + col2 + ( cor0.col2 ) AS col0 FROM tab0 AS cor0
----
152
255
99
query I rowsort
SELECT - col1 + + col1 + col1 * - col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - - 55 FROM tab2 AS cor0
----
55
55
55
query I rowsort
SELECT ALL col0 + cor0.col0 * col0 AS col2 FROM tab2 cor0
----
56
6162
6320
query I rowsort
SELECT DISTINCT + cor0.col0 * + 29 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1
----
1856
2320
87
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to 283f1c907a0999dbd972d3bd45746c06
query I rowsort
SELECT ALL ( + cor0.col0 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT DISTINCT + cor0.col2 + 48 FROM tab0 cor0
----
130
49
81
query I rowsort
SELECT col2 * col0 + + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT - col2 * + col2 + 80 FROM tab2 cor0
----
-1364
-596
-649
query I rowsort
SELECT DISTINCT col0 + - 4 + col1 FROM tab2 cor0
----
133
34
92
query I rowsort
SELECT - col2 * - ( col1 ) FROM tab0 cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7145
SELECT ALL - + col0 * col1 DIV - 94 AS col0 FROM tab2 AS cor0
----
14
2
48
skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL - + col0 * col1 / - 94 AS col0 FROM tab2 AS cor0
----
14
2
48
query I rowsort
SELECT ALL col0 * - col0 - - col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT ALL + - cor0.col0 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT col0 + col2 * - col2 FROM tab2 AS cor0
----
-1365
-598
-722
onlyif mysql # use DIV operator for integer division
query I rowsort label-7149
SELECT ALL + col0 DIV - col0 + ( + cor0.col2 ) + 90 * ( + col2 ) AS col1 FROM tab0 cor0
----
3002
7461
90
skipif mysql # not compatible
query I rowsort label-7149
SELECT ALL + col0 / - col0 + ( + cor0.col2 ) + 90 * ( + col2 ) AS col1 FROM tab0 cor0
----
3002
7461
90
query I rowsort
SELECT col2 * ( col1 ) + col0 AS col1 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT cor0.col1 + + col1 FROM tab0 AS cor0
----
172
182
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-7152
SELECT ALL - col2 * col1 + col0 DIV col0 FROM tab0 AS cor0
----
-2837
-7461
-96
skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL - col2 * col1 + col0 / col0 FROM tab0 AS cor0
----
-2837
-7461
-96
query I rowsort
SELECT ALL + + col2 * cor0.col1 + col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL + + col1 * - col0 + col0 * + col2 FROM tab2 cor0
----
-2574
-28
1659
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col2 AS REAL ) AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT col1 - ( col1 ) * ( + col1 ) FROM tab1 cor0
----
-156
-650
-90
query I rowsort
SELECT ALL - 92 * col2 AS col0 FROM tab1 AS cor0
----
-4968
-5244
-8832
query I rowsort
SELECT ALL - + 95 + col0 * + col1 FROM tab0 AS cor0
----
1969
3300
8004
query I rowsort
SELECT DISTINCT - - col2 * col1 + col0 AS col1 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT 32 * + col1 * + col2 + col1 FROM tab1 AS cor0
----
18250
39949
44954
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7161
SELECT ALL + CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7162
SELECT - - col0 - + col2 DIV col0 FROM tab1 cor0
----
-15
64
79
skipif mysql # not compatible
query I rowsort label-7162
SELECT - - col0 - + col2 / col0 FROM tab1 cor0
----
-15
64
79
query I rowsort
SELECT DISTINCT - cor0.col1 * + 51 AS col1 FROM tab1 AS cor0
----
-1326
-510
-663
query I rowsort
SELECT - 63 * col2 + + col1 + 22 FROM tab0 AS cor0
----
-1971
-5053
56
query I rowsort
SELECT - 12 - + 94 FROM tab0 AS cor0
----
-106
-106
-106
query I rowsort
SELECT DISTINCT + - ( 66 ) + cor0.col1 FROM tab2 AS cor0
----
-35
-49
-7
query I rowsort
SELECT ( col1 ) + col0 AS col2 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7168
SELECT DISTINCT - col0 + col2 DIV col2 AS col0 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT - col0 + col2 / col2 AS col0 FROM tab0 AS cor0
----
-23
-34
-88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7169
SELECT ALL + CAST( NULL AS SIGNED ) * col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( 32 ) AS col1 FROM tab1 cor0
----
32
query I rowsort
SELECT + + ( col1 ) * + col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + col0 + + 28 AS col2 FROM tab2 AS cor0
----
106
107
35
query I rowsort
SELECT ALL - 2 + - 15 * col2 AS col2 FROM tab2 AS cor0
----
-392
-407
-572
query I rowsort
SELECT ALL + - ( - col2 ) * + col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - 47 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa
query I rowsort
SELECT + col1 * + 65 FROM tab1 cor0
----
1690
650
845
query I rowsort
SELECT + ( 91 ) AS col1 FROM tab1 cor0
----
91
91
91
query I rowsort
SELECT - tab2.col2 * + cor0.col1 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 3f5ea019223361c8c7a5502ecc1aeefb
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7179
SELECT CAST( col2 + col2 AS SIGNED ) AS col2 FROM tab0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-7179
SELECT CAST ( col2 + col2 AS INTEGER ) AS col2 FROM tab0
----
164
2
66
query I rowsort
SELECT 64 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
onlyif mysql # use DIV operator for integer division
query I rowsort label-7181
SELECT DISTINCT ( + col2 ) + + col0 DIV col0 AS col2 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-7181
SELECT DISTINCT ( + col2 ) + + col0 / col0 AS col2 FROM tab1
----
55
58
97
query I rowsort
SELECT ALL + + 94 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT - + col2 + - col1 * col2 AS col1 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT - 79 FROM tab2, tab0 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f
query I rowsort
SELECT - col1 * col1 * 5 + - col1 AS col0 FROM tab2
----
-1462
-17464
-4836
query I rowsort
SELECT - col1 + + 49 FROM tab2
----
-10
18
32
query I rowsort
SELECT DISTINCT ( 11 ) * tab0.col0 FROM tab0, tab2 AS cor0
----
264
385
979
query I rowsort
SELECT col1 + + 87 FROM tab2
----
104
118
146
query I rowsort
SELECT - 53 FROM tab0, tab2 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d
query I rowsort
SELECT - col0 + + tab2.col2 AS col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT DISTINCT col0 - 1 * - col1 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT - + col2 * ( - col1 + - col2 ) FROM tab0 AS cor0
----
14186
3927
98
query I rowsort
SELECT - 40 FROM tab2, tab0 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
query I rowsort
SELECT cor0.col2 AS col0 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL col2 * + col2 - - 19 * col2 AS col1 FROM tab2 AS cor0
----
1170
1242
2166
query I rowsort
SELECT DISTINCT + cor0.col1 * - ( - col2 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - - col2 + + ( + 8 ) AS col2 FROM tab2 AS cor0
----
34
35
46
query I rowsort
SELECT ALL cor1.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT - col0 + + col1 * col1 FROM tab0 cor0
----
7372
8192
9374
query I rowsort
SELECT - col2 + - col2 * - col0 FROM tab0 AS cor0
----
34
7216
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-7201
SELECT ALL col0 DIV ( col2 ) - - col0 col2 FROM tab0
----
24
70
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL col0 / ( col2 ) - - col0 col2 FROM tab0
----
24
70
90
query I rowsort
SELECT + - col0 + - col1 + + col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT col1 * col2 + col2 * col2 * 64 AS col0 FROM tab1 cor0
----
188028
208506
591072
query I rowsort
SELECT DISTINCT + + col1 * + col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + cor0.col0 * - ( - col1 + + col2 ) * col0 AS col1 FROM tab2 AS cor0
----
-131061
196
200772
query I rowsort
SELECT + ( col0 ) + cor0.col1 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 col0 FROM tab2
----
62
query I rowsort
SELECT ALL + 25 FROM tab0
----
25
25
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-7209
SELECT ALL 61 DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7209
SELECT ALL 61 / col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL cor0.col0 + + 20 AS col1 FROM tab0 AS cor0
----
109
44
55
query I rowsort
SELECT DISTINCT 12 FROM tab2, tab0 AS cor0
----
12
query I rowsort
SELECT 46 FROM tab1, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
onlyif mysql # use DIV operator for integer division
query I rowsort label-7213
SELECT - col1 DIV 71 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-7213
SELECT - col1 / 71 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT col0 + - col0 AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7215
SELECT - col2 + ( - col0 ) / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7215
SELECT - col2 + ( - col0 ) / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT col0 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + ( - col0 ) AS col2 FROM tab0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-7219
SELECT DISTINCT tab2.col0 * col2 DIV tab2.col0 AS col0 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT tab2.col0 * col2 / tab2.col0 AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT + col1 * col1 + - col1 AS col2 FROM tab1
----
156
650
90
query I rowsort
SELECT + tab0.col1 * + 87 AS col2 FROM tab0
----
7482
7917
8439
query I rowsort
SELECT cor0.col2 + 37 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 23cad427fce0a05ab476b87f624b584c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7223
SELECT + ( - col1 ) + CAST( NULL AS SIGNED ) + col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7223
SELECT + ( - col1 ) + CAST ( NULL AS INTEGER ) + col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 82 AS col0 FROM tab0 AS cor0
----
-82
query I rowsort
SELECT ALL + - 80 + col1 FROM tab1 AS cor0
----
-54
-67
-70
query I rowsort
SELECT - - col2 * + cor0.col0 + + col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col2 FROM tab1, tab0, tab1 AS cor0, tab2 AS cor1
----
-10
-13
-26
query I rowsort
SELECT 81 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7229
SELECT CAST( - cor0.col1 AS SIGNED ) col1 FROM tab1, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7229
SELECT CAST ( - cor0.col1 AS INTEGER ) col1 FROM tab1, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT ALL + 28 AS col2 FROM tab1 AS cor0
----
28
28
28
query I rowsort
SELECT 29 * - col2 FROM tab0 AS cor0
----
-2378
-29
-957
query I rowsort
SELECT DISTINCT + + col0 * col2 + col2 * + 42 + - col2 * + col1 FROM tab1 cor0
----
1026
10464
5472
query I rowsort
SELECT DISTINCT - col0 * col2 * + col0 - ( 37 ) AS col0 FROM tab1 AS cor0
----
-233509
-523
-614437
query I rowsort
SELECT - ( col0 ) * col0 + cor0.col2 * - col1 AS col2 FROM tab1 cor0
----
-1413
-4666
-7648
onlyif mysql # use DIV operator for integer division
query I rowsort label-7235
SELECT tab1.col1 DIV 8 col1 FROM tab1
----
1
1
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7235
SELECT tab1.col1 / 8 col1 FROM tab1
----
1
1
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7236
SELECT - tab1.col0 * - CAST( + col1 AS SIGNED ) * + col0 FROM tab1
----
234
40960
83200
skipif mysql # not compatible
query I rowsort label-7236
SELECT - tab1.col0 * - CAST ( + col1 AS INTEGER ) * + col0 FROM tab1
----
234
40960
83200
query I rowsort
SELECT ALL + tab0.col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL - col1 * ( col1 ) AS col2 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT + col0 * 37 AS col1 FROM tab0
----
1295
3293
888
query I rowsort
SELECT ( + tab2.col0 ) * - col1 - - col0 FROM tab2
----
-1264
-210
-4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7241
SELECT + CAST( + ( + col1 ) AS SIGNED ) * 36 FROM tab1
----
360
468
936
skipif mysql # not compatible
query I rowsort label-7241
SELECT + CAST ( + ( + col1 ) AS INTEGER ) * 36 FROM tab1
----
360
468
936
query I rowsort
SELECT DISTINCT - col0 + + 37 AS col1 FROM tab2
----
-41
-42
30
query I rowsort
SELECT - col1 + col2 * col0 AS col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT - 85 * col0 + + col2 + cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
-2002
-351
-5334
query I rowsort
SELECT DISTINCT + 56 + cor0.col0 AS col0 FROM tab0 cor0
----
145
80
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7246
SELECT + CAST( NULL AS SIGNED ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7246
SELECT + CAST ( NULL AS INTEGER ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 48 + col1 * col0 AS col0 FROM tab2 AS cor0
----
1391
265
4650
query I rowsort
SELECT + 98 - - col2 * col1 * col0 AS col2 FROM tab1 AS cor0
----
36578
4310
99938
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7249
SELECT CAST( NULL AS SIGNED ) + 43 / + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7249
SELECT CAST ( NULL AS INTEGER ) + 43 / + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col1 + + ( + col2 ) AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT col0 + - col0 + - 37 FROM tab1 AS cor0
----
-37
query I rowsort
SELECT - col0 * + 88 - cor0.col0 FROM tab0 AS cor0
----
-2136
-3115
-7921
query I rowsort
SELECT DISTINCT + col0 * ( col0 ) + - col1 * - col0 AS col0 FROM tab0 AS cor0
----
16020
2640
4620
query I rowsort
SELECT DISTINCT - - col0 - - col1 * + col2 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - cor0.col2 * + col2 * col0 AS col2 FROM tab2 cor0
----
-114076
-5103
-52728
query I rowsort
SELECT 10 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT - 56 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
query I rowsort
SELECT ALL + col2 + + ( col1 ) + col1 AS col1 FROM tab1
----
106
122
77
query I rowsort
SELECT col1 - 49 * 52 AS col2 FROM tab1
----
-2522
-2535
-2538
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7260
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query I rowsort
SELECT + col0 + - ( - 53 ) AS col1 FROM tab1 AS cor0
----
117
133
56
query I rowsort
SELECT ALL + col1 * + ( 16 ) + col0 * col1 FROM tab2 AS cor0
----
1615
5546
713
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 col2 FROM tab0, tab2 AS cor0
----
37
query I rowsort
SELECT - ( col1 ) * - cor0.col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT 72 + tab1.col1 * col2 FROM tab1
----
1320
1476
642
query I rowsort
SELECT col1 * ( col2 + 75 ) FROM tab2
----
1921
3162
5959
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 * + col0 col2 FROM tab2
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7268
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7268
SELECT DISTINCT + CAST ( NULL AS REAL ) * - col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + col2 * 29 FROM tab1
----
1566
1653
2784
query I rowsort
SELECT ALL tab0.col0 * + col0 AS col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT ALL - 1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
onlyif mysql # use DIV operator for integer division
query I rowsort label-7272
SELECT DISTINCT - cor0.col0 * col1 + - col1 + col1 DIV col0 FROM tab0 AS cor0
----
-2147
-3490
-8189
skipif mysql # not compatible
query I rowsort label-7272
SELECT DISTINCT - cor0.col0 * col1 + - col1 + col1 / col0 FROM tab0 AS cor0
----
-2147
-3490
-8189
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 - cor0.col0 * + col2 col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT ALL col0 + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT DISTINCT - + 5 FROM tab0 AS cor0
----
-5
query I rowsort
SELECT ALL - - cor0.col0 * + col2 + col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT - 50 * + col0 FROM tab1 AS cor0
----
-150
-3200
-4000
query I rowsort
SELECT DISTINCT + - 1 * + col1 * 35 FROM tab1 cor0
----
-350
-455
-910
query I rowsort
SELECT DISTINCT 35 * col2 FROM tab0 AS cor0
----
1155
2870
35
query I rowsort
SELECT DISTINCT + + 12 * - col0 * + 93 + cor0.col1 FROM tab0 AS cor0
----
-26698
-38963
-99233
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 col0 FROM tab2 cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7282
SELECT DISTINCT col2 + col0 + + CAST( 73 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
107
177
190
skipif mysql # not compatible
query I rowsort label-7282
SELECT DISTINCT col2 + col0 + + CAST ( 73 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
107
177
190
query I rowsort
SELECT ALL + ( col0 ) - cor0.col2 FROM tab2 AS cor0
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 90 col0 FROM tab1
----
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 + col1 col0 FROM tab2
----
122
80
94
query I rowsort
SELECT DISTINCT 32 FROM tab2, tab1, tab1 AS cor0
----
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-7287
SELECT DISTINCT + tab0.col2 DIV col2 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-7287
SELECT DISTINCT + tab0.col2 / col2 FROM tab0
----
1
query I rowsort
SELECT ALL col0 * + col1 * col2 AS col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT ALL + 50 FROM tab1 AS cor0
----
50
50
50
query I rowsort
SELECT - col2 + ( + 63 ) * cor0.col0 FROM tab0 cor0
----
1479
2204
5525
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7291
SELECT ALL - col0 * - CAST( col0 * col1 AS SIGNED ) FROM tab0 cor0
----
118825
49536
720811
skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL - col0 * - CAST ( col0 * col1 AS INTEGER ) FROM tab0 cor0
----
118825
49536
720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-7292
SELECT DISTINCT - - col2 + col1 * col1 DIV cor0.col1 FROM tab1 AS cor0
----
109
67
80
skipif mysql # not compatible
query I rowsort label-7292
SELECT DISTINCT - - col2 + col1 * col1 / cor0.col1 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7293
SELECT - - col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7293
SELECT - - col2 / - col0 AS col1 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT + - col2 * ( + 0 ) AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 + + col1 + - cor0.col2 FROM tab0 AS cor0
----
-73
20
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-7296
SELECT DISTINCT + - ( + col2 ) DIV col0 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-7296
SELECT DISTINCT + - ( + col2 ) / col0 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT col1 + - col0 * - cor0.col2 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT 47 + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-42
12
23
query I rowsort
SELECT cor0.col0 * 11 + col2 + - col0 * col0 FROM tab0 AS cor0
----
-279
-6860
-839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 86 col1 FROM tab1
----
-4644
-4902
-8256
query I rowsort
SELECT + - col1 + col0 * cor0.col0 FROM tab2 AS cor0
----
18
6025
6224
onlyif mysql # use DIV operator for integer division
query I rowsort label-7302
SELECT cor0.col1 + - cor0.col2 DIV + col2 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-7302
SELECT cor0.col1 + - cor0.col2 / + col2 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT ALL + - 66 + + 4 AS col1 FROM tab0 AS cor0
----
-62
-62
-62
query I rowsort
SELECT - col2 + col0 - col0 * ( col1 ) FROM tab1 AS cor0
----
-1056
-129
-633
query I rowsort
SELECT DISTINCT 50 AS col0 FROM tab0 AS cor0
----
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-7306
SELECT DISTINCT col1 DIV col2 + + col1 FROM tab0 cor0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT col1 / col2 + + col1 FROM tab0 cor0
----
194
88
92
query I rowsort
SELECT - col1 + 50 AS col0 FROM tab0 AS cor0
----
-36
-41
-47
query I rowsort
SELECT + ( + col2 ) + col0 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - 27 * - col2 FROM tab2 AS cor0
----
1026
702
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7310
SELECT + col1 * - col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7310
SELECT + col1 * - col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 col1 FROM tab1
----
4
4
4
query I rowsort
SELECT 18 * 44 FROM tab2
----
792
792
792
query I rowsort
SELECT DISTINCT + 65 AS col2 FROM tab2 AS cor0
----
65
query I rowsort
SELECT ALL 63 + col0 FROM tab1 cor0
----
127
143
66
query I rowsort
SELECT DISTINCT - 36 AS col2 FROM tab2 AS cor0
----
-36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7316
SELECT + CAST( + col0 AS SIGNED ) + + col0 AS col1 FROM tab2 AS cor0
----
14
156
158
skipif mysql # not compatible
query I rowsort label-7316
SELECT + CAST ( + col0 AS INTEGER ) + + col0 AS col1 FROM tab2 AS cor0
----
14
156
158
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( 11 AS REAL ) FROM tab1 AS cor0
----
-11
-11
-11
query I rowsort
SELECT 37 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2
query I rowsort
SELECT ( cor0.col1 ) FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT - 92 AS col2 FROM tab0
----
-92
-92
-92
query I rowsort
SELECT + cor0.col0 + 54 FROM tab0 AS cor0
----
143
78
89
query I rowsort
SELECT - col1 * + col0 * + ( + col1 ) AS col2 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL + - 72 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7324
SELECT - ( + col2 + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7324
SELECT - ( + col2 + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 30 FROM tab1
----
-30
query I rowsort
SELECT + ( col0 ) - col2 * cor0.col1 FROM tab1 AS cor0
----
-1168
-1401
-506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7327
SELECT - - 51 + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7327
SELECT - - 51 + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col0 + cor0.col1 + + 98 AS col1 FROM tab0 AS cor0
----
208
230
278
query I rowsort
SELECT col0 * + col0 * + col0 + + col2 * - col0 FROM tab0 cor0
----
13032
42840
697671
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - col1 col1 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort
SELECT - + col2 + CAST ( col2 AS REAL ) AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7332
SELECT - col1 + + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7332
SELECT - col1 + + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - cor0.col0 AS col2 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT - col1 * col2 - + col0 * + col0 AS col2 FROM tab1 AS cor0
----
-1413
-4666
-7648
query I rowsort
SELECT DISTINCT - col1 + + 12 AS col0 FROM tab0 AS cor0
----
-74
-79
-85
query I rowsort
SELECT - cor0.col1 * col2 + 82 + cor0.col2 AS col2 FROM tab0 cor0
----
-14
-2723
-7298
query I rowsort
SELECT ALL cor0.col1 * + ( + col0 + col2 ) AS col2 FROM tab2 AS cor0
----
1054
1989
6136
query I rowsort
SELECT DISTINCT - 79 * col1 AS col2 FROM tab2 AS cor0
----
-1343
-2449
-4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - col1 ) * col2 col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7340
SELECT + + ( + 77 ) * - col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7340
SELECT + + ( + 77 ) * - col0 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * cor0.col2 + col2 AS col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT - - cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL col1 * ( col2 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - 85 * cor0.col1 + cor0.col0 FROM tab2 AS cor0
----
-1366
-2628
-4937
query I rowsort
SELECT ALL - - 25 + + col1 FROM tab0 AS cor0
----
111
116
122
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7346
SELECT DISTINCT - CAST( + 89 AS SIGNED ) FROM tab2 AS cor0
----
-89
skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT - CAST ( + 89 AS INTEGER ) FROM tab2 AS cor0
----
-89
query I rowsort
SELECT ALL + ( 66 ) AS col2 FROM tab0 AS cor0
----
66
66
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7348
SELECT + + CAST( NULL AS SIGNED ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7348
SELECT + + CAST ( NULL AS INTEGER ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7349
SELECT ALL + - cor0.col1 DIV - col2 + col0 AS col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-7349
SELECT ALL + - cor0.col1 / - col2 + col0 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL 82 * - col0 + ( + 77 ) AS col0 FROM tab0 AS cor0
----
-1891
-2793
-7221
query I rowsort
SELECT ALL + + cor0.col2 + + cor0.col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + col1 + - 78 * col0 FROM tab1 AS cor0
----
-208
-4982
-6227
query I rowsort
SELECT - ( 3 ) AS col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166
query I rowsort
SELECT DISTINCT + col2 + + ( 6 ) * + col0 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
505
656
75
query I rowsort
SELECT DISTINCT - + col2 + col1 AS col1 FROM tab0 AS cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 * col2 + + col1 * + cor0.col2 col0 FROM tab1 AS cor0
----
-2808
-35910
-98592
query I rowsort
SELECT + col2 + + 21 FROM tab1 AS cor0
----
117
75
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7358
SELECT ALL + + col0 DIV 25 + col0 col0 FROM tab1 AS cor0
----
3
66
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL + + col0 / 25 + col0 col0 FROM tab1 AS cor0
----
3
66
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7359
SELECT - col2 DIV + col0 + col0 AS col2 FROM tab0 AS cor0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-7359
SELECT - col2 / + col0 + col0 AS col2 FROM tab0 AS cor0
----
23
35
89
query I rowsort
SELECT DISTINCT col1 - - col2 * col0 * col2 AS col2 FROM tab0
----
132
26222
598527
query I rowsort
SELECT cor0.col1 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL + col0 - col1 * 90 FROM tab1
----
-1090
-2337
-836
query I rowsort
SELECT col2 - + col1 AS col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT col2 * + col0 - ( + col1 + - col0 ) AS col1 FROM tab2
----
165
2047
3064
query I rowsort
SELECT ALL ( cor0.col1 ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7366
SELECT DISTINCT - CAST( + ( - col2 ) AS SIGNED ) * col0 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-7366
SELECT DISTINCT - CAST ( + ( - col2 ) AS INTEGER ) * col0 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 40 + col2 col1 FROM tab0 AS cor0
----
-39
-7
42
query I rowsort
SELECT DISTINCT cor0.col2 * + ( col1 ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT col1 * - col1 * - 26 - + tab0.col1 FROM tab0
----
192210
215215
244537
query I rowsort
SELECT ALL cor0.col0 + + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT - 75 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7372
SELECT ALL + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7373
SELECT col1 DIV + 18 + + col1 AS col2 FROM tab1
----
10
13
27
skipif mysql # not compatible
query I rowsort label-7373
SELECT col1 / + 18 + + col1 AS col2 FROM tab1
----
10
13
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT + 68 FROM tab0 AS cor0
----
68
68
68
query I rowsort
SELECT DISTINCT ( - col2 * col2 ) FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT 56 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT - cor0.col2 * + 49 + - 55 AS col0 FROM tab2 AS cor0
----
-1329
-1378
-1917
onlyif mysql # use DIV operator for integer division
query I rowsort label-7379
SELECT DISTINCT cor0.col2 + col2 DIV col0 FROM tab0 AS cor0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-7379
SELECT DISTINCT cor0.col2 + col2 / col0 FROM tab0 AS cor0
----
1
34
82
query I rowsort
SELECT DISTINCT col0 * + ( col1 ) + - col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT ALL col0 - - 93 FROM tab2 cor0
----
100
171
172
query I rowsort
SELECT - 72 AS col2 FROM tab1
----
-72
-72
-72
query I rowsort
SELECT - 5 * col1 FROM tab0
----
-430
-455
-485
onlyif mysql # use DIV operator for integer division
query I rowsort label-7384
SELECT ALL + + col0 DIV - 52 - - col2 * col1 FROM tab1 AS cor0
----
1247
1404
569
skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL + + col0 / - 52 - - col2 * col1 FROM tab1 AS cor0
----
1247
1404
569
query I rowsort
SELECT - col1 * 39 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-380
-494
-988
query I rowsort
SELECT cor0.col2 + ( + col1 + - col2 ) AS col0 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7387
SELECT DISTINCT + - col2 * + CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT + - col2 * + CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT 97 * - col2 FROM tab2
----
-2522
-2619
-3686
onlyif mysql # use DIV operator for integer division
query I rowsort label-7389
SELECT col1 DIV - col0 - CAST( col2 * + col0 AS SIGNED ) AS col0 FROM tab0
----
-37
-7299
-795
skipif mysql # not compatible
query I rowsort label-7389
SELECT col1 / - col0 - CAST ( col2 * + col0 AS INTEGER ) AS col0 FROM tab0
----
-37
-7299
-795
query I rowsort
SELECT DISTINCT col2 + col0 * ( + col2 ) FROM tab2
----
2054
216
3040
query I rowsort
SELECT DISTINCT + 76 FROM tab2, tab1, tab2 AS cor0
----
76
query I rowsort
SELECT ALL col1 + + col0 * - col0 FROM tab2
----
-18
-6025
-6224
query I rowsort
SELECT col2 * col0 + + col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT DISTINCT + ( + col0 ) * col2 + ( col0 ) FROM tab1
----
165
3712
7760
query I rowsort
SELECT col0 + + col2 - col0 FROM tab1
----
54
57
96
query I rowsort
SELECT - 46 - + col1 AS col0 FROM tab2
----
-105
-63
-77
query I rowsort
SELECT col0 * 38 AS col1 FROM tab1
----
114
2432
3040
query I rowsort
SELECT + col2 + - ( 42 * + col2 ) AS col2 FROM tab1 cor0
----
-2214
-2337
-3936
onlyif mysql # use DIV operator for integer division
query I rowsort label-7399
SELECT + col2 + - col2 DIV col1 FROM tab0 cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-7399
SELECT + col2 + - col2 / col1 FROM tab0 cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7400
SELECT DISTINCT - - col0 + col0 DIV - 88 FROM tab2 cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-7400
SELECT DISTINCT - - col0 + col0 / - 88 FROM tab2 cor0
----
7
78
79
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 - col2 + + ( - cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT + - col2 * ( col2 ) * col1 + + col0 * - cor0.col0 * col2 AS col0 FROM tab2 cor0
----
-198068
-23922
-261706
query I rowsort
SELECT ALL - - col0 - 85 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
1524
2642
5093
query I rowsort
SELECT + + col0 * col2 + - col2 * col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + + 53 AS col0 FROM tab0 AS cor0
----
142
77
88
query I rowsort
SELECT DISTINCT + col2 * tab0.col2 * col0 FROM tab0
----
26136
35
598436
query I rowsort
SELECT + col0 + - col0 * + cor0.col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT - + col0 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL OR NOT ( - col1 ) <= - col1
----
query I rowsort
SELECT + col0 * col0 * - col2 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT col2 * col0 * col2 FROM tab0
----
26136
35
598436
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 col0 FROM tab2
----
-189
-2028
-3002
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 + col0 * col1 * col0 AS col2 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT ALL col2 + col0 FROM tab1 WHERE NOT col2 = ( + col1 + tab1.col0 * col0 )
----
121
176
57
query I rowsort
SELECT DISTINCT + - col1 + + col0 * col0 AS col2 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT ALL - col0 * - col1 * + tab0.col1 AS col0 FROM tab0
----
177504
329315
737009
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 > ( - col2 )
----
7
31
27
78
59
26
query I rowsort
SELECT - + col2 + col2 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 * col0 - col1 FROM tab2 AS cor0
----
1326
186
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-7422
SELECT ALL - 95 DIV - col2 AS col0 FROM tab0 AS cor0
----
1
2
95
skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL - 95 / - col2 AS col0 FROM tab0 AS cor0
----
1
2
95
query I rowsort
SELECT DISTINCT col2 * + col1 + + col1 * col0 * col1 AS col1 FROM tab2 AS cor0
----
23477
273052
7564
onlyif mysql # use DIV operator for integer division
query I rowsort label-7424
SELECT DISTINCT + col0 * col2 DIV col0 + col0 AS col0 FROM tab1 AS cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT + col0 * col2 / col0 + col0 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - 89 + + col2 FROM tab2 AS cor0
----
-51
-62
-63
query I rowsort
SELECT - 85 * col2 AS col0 FROM tab1 AS cor0
----
-4590
-4845
-8160
onlyif mysql # use DIV operator for integer division
query I rowsort label-7427
SELECT + col1 + cor0.col2 DIV col1 + col2 * cor0.col2 FROM tab2 AS cor0
----
1463
735
760
skipif mysql # not compatible
query I rowsort label-7427
SELECT + col1 + cor0.col2 / col1 + col2 * cor0.col2 FROM tab2 AS cor0
----
1463
735
760
query I rowsort
SELECT DISTINCT - + 20 * - col0 AS col2 FROM tab1 AS cor0
----
1280
1600
60
query I rowsort
SELECT ALL - - col0 * + cor0.col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - col2 + - col0 AS col1 FROM tab1 AS cor0
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7431
SELECT cor0.col0 DIV col0 + - col0 + + col1 AS col0 FROM tab1 AS cor0
----
-53
-66
24
skipif mysql # not compatible
query I rowsort label-7431
SELECT cor0.col0 / col0 + - col0 + + col1 AS col0 FROM tab1 AS cor0
----
-53
-66
24
query I rowsort
SELECT DISTINCT + - col0 + col2 * + cor0.col1 * col1 AS col1 FROM tab1 cor0
----
16144
36501
5636
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - cor0.col0 * cor0.col0 col1 FROM tab1 AS cor0
----
-4032
-6
-6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-7434
SELECT col0 * col0 + col1 DIV + col2 + - cor0.col0 AS col1 FROM tab0 cor0
----
1287
554
7833
skipif mysql # not compatible
query I rowsort label-7434
SELECT col0 * col0 + col1 / + col2 + - cor0.col0 AS col1 FROM tab0 cor0
----
1287
554
7833
query I rowsort
SELECT - col0 + + col1 * col0 * col1 AS col1 FROM tab2 AS cor0
----
22752
271440
6720
query I rowsort
SELECT + 8 * - col0 + + col0 FROM tab1
----
-21
-448
-560
query I rowsort
SELECT cor0.col2 * col0 - col2 AS col2 FROM tab1 AS cor0
----
108
3591
7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7438
SELECT + col2 + col2 * + CAST( 81 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
15336
164294
243200
skipif mysql # not compatible
query I rowsort label-7438
SELECT + col2 + col2 * + CAST ( 81 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
15336
164294
243200
onlyif mysql # use DIV operator for integer division
query I rowsort label-7439
SELECT + cor0.col0 DIV - col2 + + CAST( col1 + + col0 AS SIGNED ) FROM tab0 AS cor0
----
110
179
97
skipif mysql # not compatible
query I rowsort label-7439
SELECT + cor0.col0 / - col2 + + CAST ( col1 + + col0 AS INTEGER ) FROM tab0 AS cor0
----
110
179
97
query I rowsort
SELECT - 74 * - ( - tab0.col0 ) FROM tab0
----
-1776
-2590
-6586
onlyif mysql # use DIV operator for integer division
query I rowsort label-7441
SELECT - cor0.col0 + + col1 * - col2 DIV col2 FROM tab1 AS cor0
----
-29
-74
-93
skipif mysql # not compatible
query I rowsort label-7441
SELECT - cor0.col0 + + col1 * - col2 / col2 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT ALL - cor0.col0 + col2 * + col0 FROM tab0 AS cor0
----
0
7209
768
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7443
SELECT DISTINCT 94 * col2 + - CAST( + 10 + col0 * col0 AS SIGNED ) FROM tab0 AS cor0
----
-1141
-223
2516
skipif mysql # not compatible
query I rowsort label-7443
SELECT DISTINCT 94 * col2 + - CAST ( + 10 + col0 * col0 AS INTEGER ) FROM tab0 AS cor0
----
-1141
-223
2516
query I rowsort
SELECT ALL - col1 * - col0 * + col1 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT DISTINCT cor0.col0 * - ( col2 ) AS col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + cor0.col2 * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT 80 + - col2 AS col2 FROM tab2
----
42
53
54
query I rowsort
SELECT - + cor0.col2 * - cor0.col0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cf1383d310e5e3e19470e0b8dc064d0c
query I rowsort
SELECT ALL + tab1.col0 * + cor0.col2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to d678abade8bf70a0dcfdc79d6219306c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 56 col1 FROM tab0
----
-4816
-5096
-5432
query I rowsort
SELECT ALL + 43 FROM tab1, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab0 AS cor0 WHERE NULL > NULL
----
query I rowsort
SELECT + col2 * 60 AS col0 FROM tab0
----
1980
4920
60
query I rowsort
SELECT DISTINCT ( tab0.col0 ) AS col0 FROM tab0, tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-7455
SELECT 47 DIV - cor0.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cfec97e44f49547b942301499081b7ab
skipif mysql # not compatible
query I rowsort label-7455
SELECT 47 / - cor0.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cfec97e44f49547b942301499081b7ab
query I rowsort
SELECT - 1 + col2 FROM tab2 AS cor0
----
25
26
37
query I rowsort
SELECT + - cor0.col0 + - col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT 86 * col1 + col0 FROM tab0 AS cor0
----
7420
7915
8377
query I rowsort
SELECT ALL - 95 FROM tab1, tab1 AS cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT - 62 FROM tab2, tab1 AS cor0
----
-62
query I rowsort
SELECT 55 * col0 + col0 FROM tab2 AS cor0
----
392
4368
4424
query I rowsort
SELECT - ( col2 ) + tab2.col2 FROM tab2
----
0
0
0
query I rowsort
SELECT + - 3 * + col0 + - ( cor0.col1 ) FROM tab1 AS cor0
----
-202
-253
-35
query I rowsort
SELECT ALL + 31 * cor0.col1 AS col2 FROM tab1 cor0
----
310
403
806
query I rowsort
SELECT ALL + - 34 FROM tab1 AS cor0
----
-34
-34
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7467
SELECT cor0.col0 - + col1 * CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
164
249
679
skipif mysql # not compatible
query I rowsort label-7467
SELECT cor0.col0 - + col1 * CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT ALL + col1 + col0 AS col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + col1 * col0 - ( - col1 ) * + col1 FROM tab2 AS cor0
----
1178
1632
8083
query I rowsort
SELECT ALL - col0 - + col0 * - 19 FROM tab0 AS cor0
----
1602
432
630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - col0 col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + + cor0.col2 - col2 * col0 * - col0 AS col1 FROM tab1 AS cor0
----
233529
540
614496
query I rowsort
SELECT - col2 * ( col1 ) + col0 * col0 FROM tab0
----
-2262
1128
459
query I rowsort
SELECT ALL + 71 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
query I rowsort
SELECT DISTINCT + col1 * + 21 AS col1 FROM tab1 cor0
----
210
273
546
query I rowsort
SELECT - col1 * - cor0.col0 + 46 FROM tab0 cor0
----
2110
3441
8145
query I rowsort
SELECT ALL - + 6 * + col0 FROM tab2 AS cor0
----
-42
-468
-474
query I rowsort
SELECT + 18 FROM tab1 cor0
----
18
18
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-7479
SELECT ALL - ( + ( - col2 ) ) + - cor0.col2 DIV - 51 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL - ( + ( - col2 ) ) + - cor0.col2 / - 51 FROM tab1 AS cor0
----
55
58
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7480
SELECT DISTINCT - CAST( - 53 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
53
skipif mysql # not compatible
query I rowsort label-7480
SELECT DISTINCT - CAST ( - 53 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
53
query I rowsort
SELECT ( ( - col1 ) ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL ( - cor0.col0 ) * col0 + + col1 AS col0 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT DISTINCT + 83 * col0 + col1 * col0 FROM tab2 cor0
----
11076
7900
798
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7484
SELECT DISTINCT col1 * cor0.col1 + + col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7484
SELECT DISTINCT col1 * cor0.col1 + + col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7485
SELECT ALL - col1 DIV - 47 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL - col1 / - 47 AS col1 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7486
SELECT tab0.col2 + col0 DIV col2 AS col2 FROM tab0
----
33
36
83
skipif mysql # not compatible
query I rowsort label-7486
SELECT tab0.col2 + col0 / col2 AS col2 FROM tab0
----
33
36
83
query I rowsort
SELECT DISTINCT + 3 AS col0 FROM tab1 AS cor0
----
3
query I rowsort
SELECT col2 + col0 * - col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT 40 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-2160
-2280
-3840
query I rowsort
SELECT DISTINCT cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
86
91
97
query I rowsort
SELECT + col1 * - col1 AS col2 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT ALL - col1 * ( col1 ) FROM tab2
----
-289
-3481
-961
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53
query I rowsort
SELECT DISTINCT + 73 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
73
query I rowsort
SELECT + col2 + + cor0.col1 * - col1 FROM tab1 AS cor0
----
-43
-622
-73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7496
SELECT + cor0.col2 + - CAST( NULL AS SIGNED ) + col0 * col0 * CAST( 3 AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7496
SELECT + cor0.col2 + - CAST ( NULL AS INTEGER ) + col0 * col0 * CAST ( 3 AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - cor0.col1 * + col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL - cor0.col1 * + 88 FROM tab0 AS cor0
----
-7568
-8008
-8536
query I rowsort
SELECT DISTINCT 80 - cor0.col1 FROM tab0, tab1 AS cor0
----
54
67
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7500
SELECT - - col0 * CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-7500
SELECT - - col0 * CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - 34 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb
onlyif mysql # use DIV operator for integer division
query I rowsort label-7502
SELECT ALL + + 45 * - cor0.col1 DIV - col1 FROM tab2 AS cor0
----
45
45
45
skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL + + 45 * - cor0.col1 / - col1 FROM tab2 AS cor0
----
45
45
45
query I rowsort
SELECT - 73 AS col2 FROM tab1
----
-73
-73
-73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col0 col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7505
SELECT ALL + CAST( 9 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
9
9
9
skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL + CAST ( 9 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
9
9
9
query I rowsort
SELECT ALL + col1 * + 29 + col0 AS col1 FROM tab0 cor0
----
2518
2728
2848
query I rowsort
SELECT - + ( col1 ) * col2 + + col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT - - 40 + + 55 * col0 AS col2 FROM tab2 AS cor0
----
425
4330
4385
query I rowsort
SELECT DISTINCT + - col0 * - col1 * - col0 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT + col2 * col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT col0 * col1 * - col2 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 + col0 + - col2 col1 FROM tab1
----
18
53
76
query I rowsort
SELECT + 38 * col1 * 11 - - 20 * col0 AS col0 FROM tab1 AS cor0
----
10928
5460
7034
onlyif mysql # use DIV operator for integer division
query I rowsort label-7514
SELECT ALL + + col1 DIV + col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-7514
SELECT ALL + + col1 / + col2 FROM tab0 AS cor0
----
1
2
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7515
SELECT + - col2 * - col0 - 11 DIV col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-7515
SELECT + - col2 * - col0 - 11 / col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - col0 * + col2 + 30 + cor0.col2 * col2 FROM tab2 AS cor0
----
-1322
-1528
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-7517
SELECT ALL - - 75 DIV - col1 FROM tab1 cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-7517
SELECT ALL - - 75 / - col1 FROM tab1 cor0
----
-2
-5
-7
query I rowsort
SELECT 0 AS col2 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7519
SELECT col1 * CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
100
169
676
skipif mysql # not compatible
query I rowsort label-7519
SELECT col1 * CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + + col0 * - col1 + cor0.col2 * col2 FROM tab2 cor0
----
-3926
101
512
query I rowsort
SELECT - cor0.col1 * + cor0.col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT + col2 * - 27 + ( cor0.col1 ) FROM tab1 AS cor0
----
-1432
-1529
-2579
query I rowsort
SELECT DISTINCT + col1 * - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - - cor0.col2 + + 32 * cor0.col1 + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-263
-528
808
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7525
SELECT - + col2 * CAST( NULL AS SIGNED ) * col0 + col0 + 94 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7525
SELECT - + col2 * CAST ( NULL AS INTEGER ) * col0 + col0 + 94 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 + + col2 * + ( - col1 ) + - col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - col0 + + col1 AS col1 FROM tab0
----
2
62
query I rowsort
SELECT ALL 37 + - col2 AS col1 FROM tab1
----
-17
-20
-59
query I rowsort
SELECT + 24 * - col0 AS col2 FROM tab0
----
-2136
-576
-840
query I rowsort
SELECT tab2.col1 * tab2.col1 AS col2 FROM tab2
----
289
3481
961
query I rowsort
SELECT ALL - col1 + col2 + - 41 FROM tab2
----
-20
-45
-74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - cor0.col2 + - col0 - col0 col0 FROM tab1 AS cor0
----
-168
-3776
-7840
query I rowsort
SELECT tab1.col0 * ( 28 ) AS col0 FROM tab1
----
1792
2240
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7534
SELECT - col1 * ( + ( col2 ) ) - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7534
SELECT - col1 * ( + ( col2 ) ) - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + + 82 * col2 AS col2 FROM tab1 AS cor0
----
4431
4738
7952
query I rowsort
SELECT ALL 36 + 54 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7537
SELECT + col0 + CAST( - col1 AS SIGNED ) + col0 * + ( + 33 * cor0.col2 ) FROM tab2 AS cor0
----
6213
66943
99128
skipif mysql # not compatible
query I rowsort label-7537
SELECT + col0 + CAST ( - col1 AS INTEGER ) + col0 * + ( + 33 * cor0.col2 ) FROM tab2 AS cor0
----
6213
66943
99128
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 - + col0 col1 FROM tab1 AS cor0
----
-185
-256
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + - col1 col1 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT DISTINCT + 73 FROM tab0, tab2, tab1 AS cor0, tab1
----
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + col2 col0 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7542
SELECT + CAST( NULL AS DECIMAL ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7542
SELECT + CAST ( NULL AS REAL ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-7543
SELECT col1 DIV - tab0.col2 AS col0 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-7543
SELECT col1 / - tab0.col2 AS col0 FROM tab0
----
-1
-2
-97
query I rowsort
SELECT - 27 * cor1.col0 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 362dc5606d6563c5360783951ad4dc61
query I rowsort
SELECT ALL col2 * 58 AS col0 FROM tab2
----
1508
1566
2204
query I rowsort
SELECT ALL - ( - 1 * - tab1.col1 ) + + 43 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 66723f19a1d7b891fa4d017b1be67ec0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7547
SELECT col2 * 74 DIV 22 FROM tab1
----
181
191
322
skipif mysql # not compatible
query I rowsort label-7547
SELECT col2 * 74 / 22 FROM tab1
----
181
191
322
query I rowsort
SELECT DISTINCT 55 + tab1.col0 FROM tab1, tab2 AS cor0
----
119
135
58
query I rowsort
SELECT - + col1 + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT DISTINCT + 94 AS col1 FROM tab2
----
94
query I rowsort
SELECT - + 86 + + col1 AS col2 FROM tab0 AS cor0
----
0
11
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7552
SELECT DISTINCT CAST( 73 + col2 AS SIGNED ) FROM tab2
----
100
111
99
skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT CAST ( 73 + col2 AS INTEGER ) FROM tab2
----
100
111
99
query I rowsort
SELECT 65 AS col0 FROM tab2
----
65
65
65
query I rowsort
SELECT DISTINCT + ( - 57 ) AS col0 FROM tab2
----
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7555
SELECT - col0 * 8 + - col2 DIV + col1 AS col1 FROM tab1
----
-26
-517
-647
skipif mysql # not compatible
query I rowsort label-7555
SELECT - col0 * 8 + - col2 / + col1 AS col1 FROM tab1
----
-26
-517
-647
query I rowsort
SELECT DISTINCT 65 AS col0 FROM tab1
----
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-7557
SELECT DISTINCT + col0 + col0 DIV col1 AS col0 FROM tab2
----
7
79
83
skipif mysql # not compatible
query I rowsort label-7557
SELECT DISTINCT + col0 + col0 / col1 AS col0 FROM tab2
----
7
79
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7558
SELECT ALL + col0 + col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL + col0 + col1 / + col2 AS col2 FROM tab0 AS cor0
----
132
26
90
query I rowsort
SELECT ALL col2 + col0 * + col2 * - col1 FROM tab0 AS cor0
----
-3394
-664036
-68079
query I rowsort
SELECT ALL + cor0.col2 * cor0.col2 + - col0 * - col0 AS col2 FROM tab2 AS cor0
----
6760
7685
778
onlyif mysql # use DIV operator for integer division
query I rowsort label-7561
SELECT + col1 DIV + 65 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7561
SELECT + col1 / + 65 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 - col1 col0 FROM tab2
----
100
3
45
query I rowsort
SELECT cor0.col0 - - col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - ( 3 ) AS col1 FROM tab0 AS cor0
----
-3
-3
-3
query I rowsort
SELECT - tab0.col2 + - tab0.col0 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT - + col1 + - col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL + cor0.col1 + col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT ALL - col2 - col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT - 97 + col2 FROM tab2 AS cor0
----
-59
-70
-71
query I rowsort
SELECT DISTINCT - + col0 * col1 * col0 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 + col2 + + ( col1 ) * - col0 FROM tab0 AS cor0
----
-1455
-2169
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7572
SELECT + 67 DIV - col1 + + ( col2 ) AS col0 FROM tab1 AS cor0
----
51
52
91
skipif mysql # not compatible
query I rowsort label-7572
SELECT + 67 / - col1 + + ( col2 ) AS col0 FROM tab1 AS cor0
----
51
52
91
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col0 AS REAL ) FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT + 76 + + cor0.col2 * + col2 FROM tab1 AS cor0
----
2992
3325
9292
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7575
SELECT ALL - col1 * + col2 + CAST( NULL AS SIGNED ) * - col0 + cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL - col1 * + col2 + CAST ( NULL AS INTEGER ) * - col0 + cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + cor0.col1 * col2 col2 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT ALL + col0 * - 30 FROM tab2 AS cor0
----
-210
-2340
-2370
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( col2 ) col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + col0 * + cor0.col1 + ( - col2 * cor0.col0 ) + 42 * + col0 AS col0 FROM tab1 AS cor0
----
-320
-3280
42
query I rowsort
SELECT + 17 * + col2 FROM tab1
----
1632
918
969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 96 col2 FROM tab1 AS cor0
----
-1248
-2496
-960
query I rowsort
SELECT DISTINCT ( 65 ) AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1 cor2
----
65
query I rowsort
SELECT DISTINCT - - ( + col0 ) + + col1 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
query I rowsort
SELECT - 82 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c
query I rowsort
SELECT ALL + cor1.col2 + + cor0.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c345857bb273aa2639457b7deb30fe90
query I rowsort
SELECT ALL + col0 + - 1 AS col1 FROM tab2 AS cor0
----
6
77
78
query I rowsort
SELECT DISTINCT - - 71 + 63 * col1 FROM tab1 AS cor0
----
1709
701
890
query I rowsort
SELECT ALL + col1 + + col1 - col0 AS col2 FROM tab0 cor0
----
148
159
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-7590
SELECT DISTINCT - ( col2 ) DIV - col2 AS col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-7590
SELECT DISTINCT - ( col2 ) / - col2 AS col1 FROM tab0 AS cor0
----
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7591
SELECT - - CAST( ( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-7591
SELECT - - CAST ( ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT col0 + + 10 AS col0 FROM tab0 AS cor0
----
34
45
99
query I rowsort
SELECT ALL + ( 26 ) + col0 * + ( ( - col1 ) ) * 42 FROM tab2 AS cor0
----
-193258
-56380
-9088
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7594
SELECT ALL - + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL - + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 * cor0.col0 + - col0 col2 FROM tab1 AS cor0
----
231
4928
6160
onlyif mysql # use DIV operator for integer division
query I rowsort label-7596
SELECT ALL col1 DIV + 50 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL col1 / + 50 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 48 FROM tab0 cor0
----
-48
-48
-48
onlyif mysql # use DIV operator for integer division
query I rowsort label-7598
SELECT ALL + 98 DIV + col1 + - col0 DIV - 22 FROM tab1 AS cor0
----
10
11
3
skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL + 98 / + col1 + - col0 / - 22 FROM tab1 AS cor0
----
10
11
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col2 * + col2 col1 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT - col0 * + 87 FROM tab1 AS cor0
----
-261
-5568
-6960
query I rowsort
SELECT + ( col0 ) + col0 AS col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT - col1 + + 62 FROM tab1 cor0
----
36
49
52
query I rowsort
SELECT + + 97 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
130
179
98
query I rowsort
SELECT ALL - 47 * + 49 FROM tab1 AS cor0
----
-2303
-2303
-2303
query I rowsort
SELECT ALL + - col2 + col0 * - col1 * - col0 FROM tab0 AS cor0
----
118824
49503
720729
query I rowsort
SELECT DISTINCT + + col2 + - col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - - 12 + + 48 FROM tab2 AS cor0
----
60
query I rowsort
SELECT ALL 65 + + col2 FROM tab1
----
119
122
161
query I rowsort
SELECT DISTINCT + col2 + - ( - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT cor0.col2 * cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 2dce99ccc9ab3f12533423eaad01995c
query I rowsort
SELECT tab1.col1 * - cor0.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to e4fd9d16116443b7eee5ff68e1d13137
onlyif mysql # use DIV operator for integer division
query I rowsort label-7612
SELECT + - col1 * col0 DIV + col2 + col2 FROM tab0 AS cor0
----
-16
-29
-3394
skipif mysql # not compatible
query I rowsort label-7612
SELECT + - col1 * col0 / + col2 + col2 FROM tab0 AS cor0
----
-16
-29
-3394
query I rowsort
SELECT DISTINCT col0 * + 59 AS col1 FROM tab0 AS cor0
----
1416
2065
5251
query I rowsort
SELECT ALL - col0 * 16 FROM tab0 AS cor0
----
-1424
-384
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col0 col0 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-7616
SELECT DISTINCT - col2 DIV - cor0.col0 AS col2 FROM tab1 cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-7616
SELECT DISTINCT - col2 / - cor0.col0 AS col2 FROM tab1 cor0
----
0
1
18
query I rowsort
SELECT + cor0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT + - 64 + + 8 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
query I rowsort
SELECT - ( col1 ) * + col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0 CROSS JOIN tab0, tab0 cor1
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0
query I rowsort
SELECT 98 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT + 66 + col0 * + tab2.col2 + 68 AS col1 FROM tab2
----
2162
3136
323
query I rowsort
SELECT ALL ( - col2 ) + col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT - 54 * 42 AS col1 FROM tab2
----
-2268
-2268
-2268
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 * + col1 col2 FROM tab2
----
-136
-248
-472
query I rowsort
SELECT ALL col1 * - col2 + - col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT 65 + col0 FROM tab2 AS cor0
----
143
144
72
query I rowsort
SELECT DISTINCT - + col1 - cor0.col2 AS col0 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT ALL + - cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT - cor0.col1 + + col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL col2 - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + + col0 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT + - col1 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col2 - col2 FROM tab1 cor0
----
0
query I rowsort
SELECT col2 * - col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT + col0 * + tab0.col1 * col0 AS col2 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT col0 * ( + col2 ) AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT - 91 FROM tab2, tab1 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945
query I rowsort
SELECT ( + 82 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT col2 + 16 * + col1 FROM tab2 AS cor0
----
310
523
970
query I rowsort
SELECT ALL cor0.col1 + - col2 AS col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT + col2 * - 74 AS col2 FROM tab2 AS cor0
----
-1924
-1998
-2812
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT DISTINCT col2 * + 76 FROM tab1
----
4104
4332
7296
query I rowsort
SELECT DISTINCT - col1 * + col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - - 56 FROM tab0 cor0
----
56
query I rowsort
SELECT + cor0.col2 * - col2 - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT ALL - col0 - cor0.col1 FROM tab1 AS cor0
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 32 + - 38 col2 FROM tab2 AS cor0
----
-70
-70
-70
query I rowsort
SELECT DISTINCT - - 41 AS col0 FROM tab0 AS cor0
----
41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7651
SELECT ALL + - CAST( NULL AS DECIMAL ) - col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL + - CAST ( NULL AS REAL ) - col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7652
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 * - col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7652
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 * - col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL 52 + 30 FROM tab2 AS cor0
----
82
82
82
query I rowsort
SELECT 33 * 59 AS col1 FROM tab2 cor0
----
1947
1947
1947
query I rowsort
SELECT DISTINCT - col2 + col1 * - col2 AS col0 FROM tab1 cor0
----
-1344
-1458
-627
query I rowsort
SELECT - col0 + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT ( 32 ) + col2 * ( + 89 ) FROM tab2 cor0
----
2346
2435
3414
query I rowsort
SELECT ALL + 53 FROM tab1, tab1 cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT DISTINCT + col1 + col1 * col0 * - col2 FROM tab0 AS cor0
----
-3298
-664027
-68026
query I rowsort
SELECT ALL + col2 + - ( + col2 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - 47 * col0 FROM tab1 AS cor0
----
-141
-3008
-3760
query I rowsort
SELECT + 98 * 36 FROM tab2 AS cor0
----
3528
3528
3528
query I rowsort
SELECT col0 * - col1 * + col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT - - 22 * + col1 AS col0 FROM tab1 AS cor0
----
220
286
572
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7665
SELECT - CAST( + col0 AS SIGNED ) * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-7665
SELECT - CAST ( + col0 AS INTEGER ) * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a
query I rowsort
SELECT + - 81 FROM tab2 AS cor0
----
-81
-81
-81
query I rowsort
SELECT 59 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT - + col1 + + col0 * + cor0.col2 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT + cor0.col2 * - col1 * + col2 AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 + - col2 + 72 col2 FROM tab2 AS cor0
----
57
68
69
query I rowsort
SELECT + - col0 + col2 * col1 + - 25 * col1 FROM tab2 cor0
----
-19
142
55
query I rowsort
SELECT 14 * + col1 AS col1 FROM tab0 AS cor0
----
1204
1274
1358
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - col1 * col2 col1 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT ALL - ( - col1 + - col1 ) FROM tab2
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7676
SELECT 69 DIV - 49 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7676
SELECT 69 / - 49 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT DISTINCT 77 * col0 * col2 + col1 AS col2 FROM tab0
----
2792
562037
61070
query I rowsort
SELECT col0 + col0 * col2 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7679
SELECT - - col1 * CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7679
SELECT - - col1 * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col0 + - col0 + col2 FROM tab0 AS cor0
----
-15
-69
-96
query I rowsort
SELECT ALL + col0 * col0 + col0 AS col0 FROM tab1 cor0
----
12
4160
6480
query I rowsort
SELECT ALL + col1 + 9 FROM tab0 AS cor0
----
100
106
95
query I rowsort
SELECT + col1 * ( - cor0.col2 ) + + col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL - col2 - col2 * + col2 FROM tab0 cor0
----
-1122
-2
-6806
query I rowsort
SELECT ALL col0 * - col1 + + ( - 81 ) AS col0 FROM tab2
----
-1424
-298
-4683
query I rowsort
SELECT col2 + + ( + col0 ) AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - cor0.col2 + 74 FROM tab2 AS cor0
----
36
47
48
query I rowsort
SELECT + 51 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
onlyif mysql # use DIV operator for integer division
query I rowsort label-7689
SELECT DISTINCT + + col2 * col0 + - 19 DIV + col2 FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT + + col2 * col0 + - 19 / + col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7690
SELECT ALL col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * + col1 * col1 FROM tab2
----
205379
29791
4913
query I rowsort
SELECT + + tab2.col1 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT col2 * - 40 FROM tab1 cor0
----
-2160
-2280
-3840
query I rowsort
SELECT col1 - + col2 AS col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT + col1 - - col1 * - col2 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT - + col0 * col2 + 28 FROM tab0 AS cor0
----
-7
-7270
-764
query I rowsort
SELECT - col2 * tab2.col1 - + col0 FROM tab2
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT col1 * 63 * + col2 + + col0 FROM tab1 AS cor0
----
35974
78704
88455
query I rowsort
SELECT ALL - col1 * col2 - - 47 AS col2 FROM tab2 AS cor0
----
-1487
-599
-790
onlyif mysql # use DIV operator for integer division
query I rowsort label-7700
SELECT ALL + col0 + 98 DIV col1 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-7700
SELECT ALL + col0 + 98 / col1 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT ALL + col1 * - 84 FROM tab1 AS cor0
----
-1092
-2184
-840
onlyif mysql # use DIV operator for integer division
query I rowsort label-7702
SELECT ALL - col2 DIV 7 AS col2 FROM tab2 AS cor0
----
-3
-3
-5
skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL - col2 / 7 AS col2 FROM tab2 AS cor0
----
-3
-3
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-7703
SELECT - 49 + 55 DIV cor0.col1 AS col0 FROM tab2 cor0
----
-46
-48
-49
skipif mysql # not compatible
query I rowsort label-7703
SELECT - 49 + 55 / cor0.col1 AS col0 FROM tab2 cor0
----
-46
-48
-49
onlyif mysql # use DIV operator for integer division
query I rowsort label-7704
SELECT + col0 * col1 DIV cor0.col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7704
SELECT + col0 * col1 / cor0.col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT 28 + ( col0 ) + - ( - cor0.col0 + col0 ) * + 68 * cor0.col1 AS col1 FROM tab2 AS cor0
----
106
107
35
query I rowsort
SELECT + 15 + 32 FROM tab1 AS cor0
----
47
47
47
query I rowsort
SELECT + col2 * + 22 AS col1 FROM tab2 AS cor0
----
572
594
836
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7708
SELECT 74 + ( col1 * CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7708
SELECT 74 + ( col1 * CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
51
query I rowsort
SELECT DISTINCT tab0.col1 + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 6c5da2c0e2b4192a86a061d47e155396
query I rowsort
SELECT 82 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT 18 * col0 FROM tab0 AS cor0
----
1602
432
630
query I rowsort
SELECT DISTINCT cor0.col2 + - col0 AS col0 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-7714
SELECT DISTINCT 98 DIV cor0.col1 + 65 * - cor0.col0 FROM tab1 AS cor0
----
-192
-4151
-5193
skipif mysql # not compatible
query I rowsort label-7714
SELECT DISTINCT 98 / cor0.col1 + 65 * - cor0.col0 FROM tab1 AS cor0
----
-192
-4151
-5193
query I rowsort
SELECT + ( col1 ) + + 48 * - col2 FROM tab1 AS cor0
----
-2566
-2726
-4595
query I rowsort
SELECT DISTINCT - + 68 FROM tab1 AS cor0
----
-68
query I rowsort
SELECT - col2 * - col2 + + col1 AS col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT col0 + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT + 46 + col1 FROM tab0 AS cor0
----
132
137
143
query I rowsort
SELECT - + col1 + cor0.col2 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7721
SELECT DISTINCT + ( + col1 ) + ( - 51 ) DIV col2 FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT + ( + col1 ) + ( - 51 ) / col2 FROM tab1 cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7722
SELECT col1 * col0 DIV ( col0 ) col0 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7722
SELECT col1 * col0 / ( col0 ) col0 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7723
SELECT ALL + + col0 DIV cor0.col0 + 95 AS col1 FROM tab0 AS cor0
----
96
96
96
skipif mysql # not compatible
query I rowsort label-7723
SELECT ALL + + col0 / cor0.col0 + 95 AS col1 FROM tab0 AS cor0
----
96
96
96
query I rowsort
SELECT ALL + col2 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-7725
SELECT DISTINCT col0 DIV col2 col2 FROM tab0 AS cor0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7725
SELECT DISTINCT col0 / col2 col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT - - ( col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - + col0 * - col1 + col0 FROM tab1 AS cor0
----
1120
704
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ( - col1 ) + col0 AS col0 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT col0 * col1 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL - 62 * col1 + 95 AS col1 FROM tab0 AS cor0
----
-5237
-5547
-5919
onlyif mysql # use DIV operator for integer division
query I rowsort label-7732
SELECT + - col1 DIV - col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-7732
SELECT + - col1 / - col0 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT - ( - cor0.col1 ) * cor0.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5
onlyif mysql # use DIV operator for integer division
query I rowsort label-7734
SELECT ALL - col1 DIV + 60 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL - col1 / + 60 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT 47 * + 13 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e1d717e50728c7eb3875b98baa4541ef
query I rowsort
SELECT DISTINCT col1 * ( col2 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7737
SELECT ALL + - col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL + - col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * + col2 * - ( col0 * col2 ) AS col2 FROM tab1
----
-11852352
-472392
-70778880
query I rowsort
SELECT DISTINCT + col2 - ( + col2 ) AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - ( col2 ) + col0 * col1 - - 17 FROM tab0 cor0
----
2048
3411
8034
onlyif mysql # use DIV operator for integer division
query I rowsort label-7741
SELECT ALL + ( col2 ) + + col1 DIV cor0.col2 FROM tab0 AS cor0
----
35
83
98
skipif mysql # not compatible
query I rowsort label-7741
SELECT ALL + ( col2 ) + + col1 / cor0.col2 FROM tab0 AS cor0
----
35
83
98
query I rowsort
SELECT ALL col1 * col2 + col1 AS col0 FROM tab1 cor0
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 46 col2 FROM tab2 AS cor0
----
1426
2714
782
query I rowsort
SELECT + - ( + 34 ) - col1 * 52 AS col2 FROM tab1 AS cor0
----
-1386
-554
-710
query I rowsort
SELECT + col1 - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) + - cor0.col2 - ( - col0 + + col1 ) * col1 col1 FROM tab2 AS cor0
----
-740
1033
1154
query I rowsort
SELECT ALL - 20 * + col1 + col1 AS col2 FROM tab0 AS cor0
----
-1634
-1729
-1843
query I rowsort
SELECT - col1 * 18 + col2 FROM tab0 AS cor0
----
-1515
-1556
-1745
query I rowsort
SELECT - 37 + - col2 FROM tab0
----
-119
-38
-70
query I rowsort
SELECT DISTINCT col1 * + tab0.col0 + + col2 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT 96 FROM tab1, tab2, tab0 cor0
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
query I rowsort
SELECT DISTINCT 88 + + col2 * + col0 FROM tab0
----
123
7386
880
query I rowsort
SELECT - ( + col1 ) + cor0.col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT 25 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-7756
SELECT ALL cor0.col2 * ( - col2 * + cor0.col0 ) + + col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-114075
-5102
-52727
skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL cor0.col2 * ( - col2 * + cor0.col0 ) + + col0 / col0 AS col1 FROM tab2 AS cor0
----
-114075
-5102
-52727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - 35 col0 FROM tab0 cor0
----
-1225
-3115
-840
query I rowsort
SELECT DISTINCT cor0.col2 + + 17 * 11 AS col0 FROM tab2 AS cor0
----
213
214
225
query I rowsort
SELECT DISTINCT + - col2 * cor0.col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + col0 + + col1 AS col0 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 col0 FROM tab1
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7762
SELECT ALL - + col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL - + col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * - 7 AS col1 FROM tab2 cor0
----
-119
-217
-413
query I rowsort
SELECT ALL - col2 + - col2 * - ( col0 ) AS col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT ALL - col0 * 33 + cor0.col1 FROM tab0 AS cor0
----
-1058
-2846
-706
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( cor0.col0 ) * col1 col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + col0 col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - + col0 * - 37 FROM tab1 AS cor0
----
111
2368
2960
query I rowsort
SELECT + - col1 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL - col1 + - 68 FROM tab0
----
-154
-159
-165
query I rowsort
SELECT 76 - + 73 AS col1 FROM tab0 AS cor0
----
3
3
3
query I rowsort
SELECT DISTINCT - col1 * + 63 * - col2 FROM tab1
----
35910
78624
88452
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( col1 ) * col0 col0 FROM tab2
----
-119652
-51034
-5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 90 * - col1 col2 FROM tab1 cor0
----
1170
2340
900
query I rowsort
SELECT + ( + 60 ) + + col2 FROM tab2
----
86
87
98
query I rowsort
SELECT + 63 AS col1 FROM tab1
----
63
63
63
query I rowsort
SELECT col0 + tab0.col0 * - ( - col0 ) * col1 FROM tab0
----
118860
49560
720900
query I rowsort
SELECT + col0 + - col2 * ( - col0 ) * + col2 FROM tab2
----
114155
5110
52806
query I rowsort
SELECT tab1.col2 + tab1.col2 AS col0 FROM tab1
----
108
114
192
query I rowsort
SELECT + 59 + + tab2.col1 * ( col0 ) FROM tab2
----
1402
276
4661
query I rowsort
SELECT ALL - ( + col1 ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to faf91d5263c18db4877a3c30c47e2487
onlyif mysql # use DIV operator for integer division
query I rowsort label-7783
SELECT col0 * col1 DIV col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-7783
SELECT col0 * col1 / col1 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 + col1 col1 FROM tab1 AS cor0
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * + col2 col0 FROM tab0
----
3395
664118
68112
query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NOT NULL NOT IN ( cor0.col0 + cor0.col0 )
----
query I rowsort
SELECT - 21 AS col0 FROM tab2
----
-21
-21
-21
query I rowsort
SELECT ( - col1 ) * + tab2.col2 * col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT + col1 * 67 FROM tab0
----
5762
6097
6499
query I rowsort
SELECT - col1 * - col2 - col2 * - col1 FROM tab0 AS cor0
----
14924
194
5676
query I rowsort
SELECT - - col0 + - col0 + col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7792
SELECT - col0 DIV + col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-7792
SELECT - col0 / + col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT - col2 + - cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT - + col0 * col0 * - col0 + col2 AS col2 FROM tab2 AS cor0
----
370
474578
493077
query I rowsort
SELECT ALL - col1 * + ( + col0 ) FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL 60 AS col2 FROM tab0
----
60
60
60
query I rowsort
SELECT DISTINCT ( - col2 + col0 ) * col2 * + col0 AS col0 FROM tab1
----
-122880
-8262
25536
query I rowsort
SELECT - - ( - col0 ) AS col1 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT - - 5 AS col0 FROM tab0 cor0
----
5
5
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 50 * col0 col0 FROM tab2 cor0
----
-350
-3900
-3950
query I rowsort
SELECT DISTINCT - cor1.col2 AS col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( 35 ) * col2 col1 FROM tab2 AS cor0
----
-1330
-910
-945
query I rowsort
SELECT + cor0.col2 * + col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-7804
SELECT - col0 DIV - ( cor0.col0 ) FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7804
SELECT - col0 / - ( cor0.col0 ) FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + ( - 19 ) FROM tab2
----
-19
-19
-19
query I rowsort
SELECT ALL ( 59 ) AS col2 FROM tab0
----
59
59
59
query I rowsort
SELECT ALL - col2 + + cor0.col0 * + col1 * col1 AS col0 FROM tab0 AS cor0
----
177471
329314
736927
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 * + col1 + - 60 * col0 col2 FROM tab2 AS cor0
----
-255
-3465
1905
query I rowsort
SELECT DISTINCT 54 * col2 * col1 FROM tab0
----
153252
402948
5238
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7810
SELECT ALL CAST( + 74 AS SIGNED ) AS col1 FROM tab0
----
74
74
74
skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL CAST ( + 74 AS INTEGER ) AS col1 FROM tab0
----
74
74
74
query I rowsort
SELECT ALL - col0 * + tab0.col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT - 67 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f
query I rowsort
SELECT DISTINCT 35 * col2 FROM tab2
----
1330
910
945
query I rowsort
SELECT ALL + 79 AS col0 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
query I rowsort
SELECT DISTINCT + col2 + ( - ( + col1 ) + - 39 ) FROM tab2 cor0
----
-18
-43
-72
query I rowsort
SELECT - + col0 * - 96 + cor0.col0 FROM tab1 cor0
----
291
6208
7760
query I rowsort
SELECT DISTINCT - col2 + col2 * + cor0.col0 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT ALL - col0 + ( + col1 * cor0.col1 + 57 ) AS col2 FROM tab1 AS cor0
----
146
730
93
query I rowsort
SELECT ALL col0 * + 24 - cor0.col1 AS col0 FROM tab1 AS cor0
----
1526
1907
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7820
SELECT DISTINCT - - col1 - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7820
SELECT DISTINCT - - col1 - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7821
SELECT 39 + col0 DIV col0 FROM tab1
----
40
40
40
skipif mysql # not compatible
query I rowsort label-7821
SELECT 39 + col0 / col0 FROM tab1
----
40
40
40
query I rowsort
SELECT DISTINCT col0 * + col0 - + col2 FROM tab0
----
1224
543
7839
query I rowsort
SELECT - 46 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9
query I rowsort
SELECT + col2 + - 45 AS col2 FROM tab2
----
-18
-19
-7
query I rowsort
SELECT - col2 + ( col2 ) * - col2 * - col1 AS col2 FROM tab1 AS cor0
----
119712
32433
75762
query I rowsort
SELECT DISTINCT + col2 + + col2 * tab0.col2 * tab0.col2 AS col1 FROM tab0
----
2
35970
551450
query I rowsort
SELECT - - col0 * 47 + 48 FROM tab1 AS cor0
----
189
3056
3808
query I rowsort
SELECT - - col2 * cor0.col0 + - col0 FROM tab2 AS cor0
----
182
1950
2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-7829
SELECT DISTINCT col1 DIV + 26 + - col1 + col1 DIV col0 FROM tab0
----
-80
-87
-92
skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT col1 / + 26 + - col1 + col1 / col0 FROM tab0
----
-80
-87
-92
query I rowsort
SELECT DISTINCT + tab2.col1 * 2 + + 97 + - tab2.col1 * + ( ( + col2 ) + + col1 ) AS col1 FROM tab2
----
-1639
-4800
-804
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7831
SELECT ALL - col2 + - CAST( 35 AS SIGNED ) * col2 AS col2 FROM tab0
----
-1188
-2952
-36
skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL - col2 + - CAST ( 35 AS INTEGER ) * col2 AS col2 FROM tab0
----
-1188
-2952
-36
query I rowsort
SELECT DISTINCT + tab0.col1 + + col1 FROM tab0
----
172
182
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-7833
SELECT DISTINCT tab0.col2 DIV col0 + tab0.col1 * - col0 col1 FROM tab0
----
-2063
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT tab0.col2 / col0 + tab0.col1 * - col0 col1 FROM tab0
----
-2063
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7834
SELECT ALL col1 + CAST( + col2 + col0 * + ( 72 ) AS SIGNED ) FROM tab1
----
296
4675
5869
skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL col1 + CAST ( + col2 + col0 * + ( 72 ) AS INTEGER ) FROM tab1
----
296
4675
5869
query I rowsort
SELECT col0 + 65 * - col1 AS col1 FROM tab2 cor0
----
-1026
-2008
-3757
query I rowsort
SELECT ALL col0 * - col2 + + col1 * col1 AS col0 FROM tab1
----
-3548
-7511
514
query I rowsort
SELECT cor0.col1 + + 24 FROM tab0 AS cor0
----
110
115
121
query I rowsort
SELECT + col1 - 24 * - cor0.col0 FROM tab0 AS cor0
----
2227
662
937
query I rowsort
SELECT DISTINCT - - col0 * 36 + cor0.col2 + col2 FROM tab1 AS cor0
----
216
2418
3072
query I rowsort
SELECT DISTINCT - + col2 * 75 AS col0 FROM tab0 cor0
----
-2475
-6150
-75
query I rowsort
SELECT - - col1 + + 25 FROM tab2 AS cor0
----
42
56
84
query I rowsort
SELECT ALL col2 * col0 + 21 AS col1 FROM tab0
----
56
7319
813
query I rowsort
SELECT ALL - 21 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1227
1383
549
onlyif mysql # use DIV operator for integer division
query I rowsort label-7844
SELECT col2 + col1 * col1 * + col1 + cor0.col1 * col1 DIV col1 FROM tab1 AS cor0
----
1067
17656
2306
skipif mysql # not compatible
query I rowsort label-7844
SELECT col2 + col1 * col1 * + col1 + cor0.col1 * col1 / col1 FROM tab1 AS cor0
----
1067
17656
2306
query I rowsort
SELECT ALL + - 49 FROM tab0 AS cor0
----
-49
-49
-49
onlyif mysql # use DIV operator for integer division
query I rowsort label-7846
SELECT + + col0 * col1 DIV col2 + col0 AS col2 FROM tab0 AS cor0
----
187
3430
86
skipif mysql # not compatible
query I rowsort label-7846
SELECT + + col0 * col1 / col2 + col0 AS col2 FROM tab0 AS cor0
----
187
3430
86
query I rowsort
SELECT 78 AS col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048
query I rowsort
SELECT ALL ( col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - col2 * + col2 + col0 AS col1 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT DISTINCT + - cor0.col2 AS col0 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT 99 + 87 FROM tab2 AS cor0
----
186
186
186
query I rowsort
SELECT - + 16 AS col2 FROM tab2 AS cor0
----
-16
-16
-16
query I rowsort
SELECT ALL - ( - 91 ) * col0 + + col1 * cor0.col2 + + col0 AS col0 FROM tab0 AS cor0
----
15650
3317
5046
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7854
SELECT DISTINCT - + CAST( NULL AS SIGNED ) - + col2 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7854
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) - + col2 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - 80 + col0 FROM tab2 AS cor0
----
-1
-2
-73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7856
SELECT ALL + - col0 * col1 * - col0 + CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7856
SELECT ALL + - col0 * col1 * - col0 + CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 88 * col0 FROM tab2
----
616
6864
6952
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col2 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT + 67 * + col1 AS col2 FROM tab0 AS cor0
----
5762
6097
6499
query I rowsort
SELECT ALL + col2 + - col1 * ( col0 ) AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT + - ( + col1 ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - 66 AS col1 FROM tab2 AS cor0
----
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-7863
SELECT DISTINCT 96 * col0 DIV + col2 FROM tab0 AS cor0
----
104
3360
69
skipif mysql # not compatible
query I rowsort label-7863
SELECT DISTINCT 96 * col0 / + col2 FROM tab0 AS cor0
----
104
3360
69
query I rowsort
SELECT ALL + + col1 + - col2 AS col2 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT - 36 * + col0 FROM tab0 AS cor0
----
-1260
-3204
-864
query I rowsort
SELECT ALL - - col1 + - col2 AS col0 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT - - cor0.col2 * + col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT - col0 + - col2 * + col0 AS col1 FROM tab1 cor0
----
-165
-3712
-7760
query I rowsort
SELECT col2 * + ( - col1 ) - cor0.col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT - cor0.col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT ( + col1 ) * + col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL - 47 * col0 FROM tab2 AS cor0
----
-329
-3666
-3713
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7873
SELECT + col1 + + col0 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7873
SELECT + col1 + + col0 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - 39 * col0 AS col1 FROM tab2 AS cor0
----
-273
-3042
-3081
query I rowsort
SELECT col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - col1 + col1 * + 32 * 39 AS col1 FROM tab2 AS cor0
----
21199
38657
73573
query I rowsort
SELECT ALL - 74 AS col0 FROM tab0 cor0
----
-74
-74
-74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 63 * - col0 col2 FROM tab1 AS cor0
----
189
4032
5040
query I rowsort
SELECT ALL + + 71 AS col1 FROM tab2 AS cor0
----
71
71
71
query I rowsort
SELECT DISTINCT ( + col0 ) * cor0.col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL ( + cor0.col0 + cor0.col1 ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to f65167375aa80cc8b3f3f8987d2662a3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 63 * + 66 col1 FROM tab2 AS cor0
----
108108
112266
158004
query I rowsort
SELECT ALL col0 * - col2 * - col1 AS col1 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT DISTINCT 3 * tab2.col0 * - tab2.col0 AS col2 FROM tab2
----
-147
-18252
-18723
query I rowsort
SELECT col2 * + cor0.col1 AS col1 FROM tab2 cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 + col0 col2 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT ALL + col0 + - 42 AS col2 FROM tab1 cor0
----
-39
22
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7888
SELECT + col1 DIV 83 + + col1 col2 FROM tab0 AS cor0
----
87
92
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7888
SELECT + col1 / 83 + + col1 col2 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT DISTINCT + cor0.col2 + - cor0.col1 AS col1 FROM tab2 cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT DISTINCT - 4 * + cor0.col2 + col2 FROM tab1 AS cor0
----
-162
-171
-288
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7892
SELECT ALL + CAST( 68 AS SIGNED ) * col0 col0 FROM tab0 AS cor0
----
1632
2380
6052
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL + CAST ( 68 AS INTEGER ) * col0 col0 FROM tab0 AS cor0
----
1632
2380
6052
query I rowsort
SELECT ALL + 80 + tab2.col2 * col0 FROM tab2
----
2108
269
3082
query I rowsort
SELECT - col0 * cor0.col0 + - cor0.col0 * col1 FROM tab2 cor0
----
-10686
-266
-7584
query I rowsort
SELECT + col1 * col1 + + ( - col2 ) AS col2 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT - col1 + - 86 FROM tab0
----
-172
-177
-183
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7897
SELECT ( + 95 + col1 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7897
SELECT ( + 95 + col1 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7898
SELECT ALL - 93 DIV col1 AS col0 FROM tab2
----
-1
-3
-5
skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL - 93 / col1 AS col0 FROM tab2
----
-1
-3
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 + + 55 col2 FROM tab2 AS cor0
----
106
106
106
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 51 * col0 ) col1 FROM tab2
----
-357
-3978
-4029
query I rowsort
SELECT tab2.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 col0 FROM tab0
----
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT + 23 AS col1 FROM tab2
----
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-7905
SELECT ALL - col2 DIV - col1 AS col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-7905
SELECT ALL - col2 / - col1 AS col1 FROM tab1
----
2
5
7
query I rowsort
SELECT - col0 + col0 + col1 FROM tab1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7907
SELECT + col1 DIV ( + tab0.col2 ) AS col1 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-7907
SELECT + col1 / ( + tab0.col2 ) AS col1 FROM tab0
----
1
2
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7908
SELECT + col0 + CAST( NULL AS SIGNED ) + col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7908
SELECT + col0 + CAST ( NULL AS INTEGER ) + col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7909
SELECT DISTINCT - col1 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7909
SELECT DISTINCT - col1 + - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + 73 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT + 68 * - col2 - col1 FROM tab0 AS cor0
----
-165
-2330
-5667
query I rowsort
SELECT 39 * col1 + cor0.col1 AS col0 FROM tab0 cor0
----
3440
3640
3880
onlyif mysql # use DIV operator for integer division
query I rowsort label-7913
SELECT ( col1 ) * - cor0.col2 * col0 - - col0 DIV + cor0.col1 FROM tab1 AS cor0
----
-36474
-4212
-99834
skipif mysql # not compatible
query I rowsort label-7913
SELECT ( col1 ) * - cor0.col2 * col0 - - col0 / + cor0.col1 FROM tab1 AS cor0
----
-36474
-4212
-99834
query I rowsort
SELECT ALL cor0.col1 + tab0.col1 FROM tab1, tab0 cor0 CROSS JOIN tab0, tab2, tab1 AS cor1
----
243 values hashing to b473f302945f174efcb65ec5fdad2e44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT cor0.col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + + col0 + + ( + col1 + ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
131
77
98
query I rowsort
SELECT + - col1 * col1 + col2 AS col0 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT - + col1 - - col0 * + col0 AS col1 FROM tab1 AS cor0
----
-17
4086
6387
query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT cor0.col2 NOT IN ( + cor0.col2 )
----
54 values hashing to d8165ceb99ded93f34ad83c310a80ea7
query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( - col2 + + col0 + + col2 ) NOT IN ( col1 * col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT col0 + + tab0.col2 AS col1 FROM tab0
----
171
36
57
query I rowsort
SELECT tab2.col2 + col1 - - col0 FROM tab2
----
134
163
65
query I rowsort
SELECT - col1 * - col2 + - col0 AS col1 FROM tab2
----
1456
567
830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col0 col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE + col1 + col2 >= + col1 * + col1
----
query I rowsort
SELECT DISTINCT + col0 + + cor0.col0 * col1 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-7928
SELECT + cor0.col1 + col0 - cor0.col2 * col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-25
-3
17
skipif mysql # not compatible
query I rowsort label-7928
SELECT + cor0.col1 + col0 - cor0.col2 * col1 / col1 AS col2 FROM tab1 AS cor0
----
-25
-3
17
query I rowsort
SELECT + col0 * col2 - - tab2.col1 FROM tab2
----
2087
220
3019
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col1 + - col2 ) > col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 + col0 + col1 * col1 * + col0 = NULL
----
query I rowsort
SELECT ALL tab2.col2 * + col0 * col0 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT ALL tab0.col0 * - col0 AS col2 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT col1 + col2 * + tab0.col1 FROM tab0
----
194
2924
7553
query III rowsort
SELECT * FROM tab1 WHERE ( - col2 ) IN ( tab1.col0 )
----
query I rowsort
SELECT + col2 + + cor0.col1 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7937
SELECT ALL + col2 DIV + col0 - col2 col1 FROM tab2 AS cor0
----
-24
-26
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL + col2 / + col0 - col2 col1 FROM tab2 AS cor0
----
-24
-26
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 - - col0 col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL + col2 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col0 * + col2 * col2 FROM tab1 cor0
----
207936
737280
8748
query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NOT NULL > NULL
----
query I rowsort
SELECT + - col2 + + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT - col1 - - col2 * col0 AS col0 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT ALL tab1.col2 + + col2 - + col2 AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL - col0 * col2 - + col1 FROM tab2
----
-2087
-220
-3019
query I rowsort
SELECT ALL col0 * - 78 AS col1 FROM tab0 AS cor0
----
-1872
-2730
-6942
query I rowsort
SELECT ALL + col0 - - col2 * ( + col1 + col1 ) FROM tab0
----
15013
229
5700
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7948
SELECT - col2 + col0 - - CAST( NULL AS SIGNED ) * - col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7948
SELECT - col2 + col0 - - CAST ( NULL AS INTEGER ) * - col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7949
SELECT - col0 - + col0 DIV col1 AS col0 FROM tab1 AS cor0
----
-3
-70
-86
skipif mysql # not compatible
query I rowsort label-7949
SELECT - col0 - + col0 / col1 AS col0 FROM tab1 AS cor0
----
-3
-70
-86
query I rowsort
SELECT ALL + + col0 + 6 * col2 AS col2 FROM tab2 AS cor0
----
169
234
307
query I rowsort
SELECT DISTINCT + - col1 + - 72 * - col0 - + col1 FROM tab0 AS cor0
----
1556
2326
6226
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7952
SELECT DISTINCT - col0 + + cor0.col0 * + col2 * - col0 + - CAST( + 59 + - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-233531
-545
-614459
skipif mysql # not compatible
query I rowsort label-7952
SELECT DISTINCT - col0 + + cor0.col0 * + col2 * - col0 + - CAST ( + 59 + - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-233531
-545
-614459
query I rowsort
SELECT DISTINCT - - col2 * cor0.col2 - col0 FROM tab0 AS cor0
----
-34
1065
6635
onlyif mysql # use DIV operator for integer division
query I rowsort label-7954
SELECT col2 + col0 DIV - 14 AS col0 FROM tab1 AS cor0
----
53
54
91
skipif mysql # not compatible
query I rowsort label-7954
SELECT col2 + col0 / - 14 AS col0 FROM tab1 AS cor0
----
53
54
91
query I rowsort
SELECT - 31 + tab2.col0 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 807a5b00b9fbc14d439f01404b0a03b4
query I rowsort
SELECT DISTINCT + 70 AS col1 FROM tab2, tab1, tab0 AS cor0
----
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT + col1 - col0 AS col2 FROM tab0
----
2
62
62
query I rowsort
SELECT DISTINCT + - col2 + - 51 FROM tab1 AS cor0
----
-105
-108
-147
onlyif mysql # use DIV operator for integer division
query I rowsort label-7960
SELECT ALL + col1 * 46 DIV col1 + + col0 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
100
113
23
skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL + col1 * 46 / col1 + + col0 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
100
113
23
query I rowsort
SELECT ALL col0 + col2 + col2 FROM tab2 AS cor0
----
130
155
61
query I rowsort
SELECT + + col2 * + col0 + col2 * - cor0.col1 * + col2 AS col2 FROM tab1 AS cor0
----
-112128
-28842
-75654
query I rowsort
SELECT + cor0.col0 - + 5 AS col1 FROM tab0 AS cor0
----
19
30
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7964
SELECT ALL - + cor0.col2 + CAST( NULL AS DECIMAL ) * + ( - col1 ) * col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL - + cor0.col2 + CAST ( NULL AS REAL ) * + ( - col1 ) * col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col1 * 67 + - col1 FROM tab2 AS cor0
----
-1156
-2108
-4012
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7966
SELECT DISTINCT + col2 * + CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7966
SELECT DISTINCT + col2 * + CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7967
SELECT + tab2.col1 + tab2.col0 + + col2 DIV col0 AS col2 FROM tab2
----
137
41
96
skipif mysql # not compatible
query I rowsort label-7967
SELECT + tab2.col1 + tab2.col0 + + col2 / col0 AS col2 FROM tab2
----
137
41
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7968
SELECT DISTINCT col2 * col0 + col1 DIV col0 + + col1 FROM tab1 cor0
----
196
3658
7693
skipif mysql # not compatible
query I rowsort label-7968
SELECT DISTINCT col2 * col0 + col1 / col0 + + col1 FROM tab1 cor0
----
196
3658
7693
query I rowsort
SELECT col0 * col1 + col1 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7970
SELECT - cor0.col1 - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7970
SELECT - cor0.col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * - cor0.col0 + col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT col1 * col0 + col1 + + col2 * - col2 AS col2 FROM tab1
----
-2599
-2812
-8163
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - col0 * - col2 - + col2 )
----
query I rowsort
SELECT ALL - col1 - + col2 AS col2 FROM tab1
----
-109
-67
-80
query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 ) IN ( col1 * col1 + + col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT ALL col0 + + col2 * - tab1.col0 FROM tab1
----
-159
-3584
-7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 * col0 * - col1 col1 FROM tab2
----
-22814
-271459
-6696
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - col2 * col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7979
SELECT - col0 + - col1 + + col2 * + col0 DIV - col0 AS col2 FROM tab1
----
-131
-189
-83
skipif mysql # not compatible
query I rowsort label-7979
SELECT - col0 + - col1 + + col2 * + col0 / - col0 AS col2 FROM tab1
----
-131
-189
-83
query I rowsort
SELECT ALL - col2 + + col0 * - col1 AS col0 FROM tab1
----
-1136
-132
-697
query III rowsort
SELECT * FROM tab1 WHERE col2 * + col2 = ( col1 )
----
query I rowsort
SELECT ALL + col1 + + tab1.col1 FROM tab1
----
20
26
52
query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT IN ( col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 col0 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT cor1.col0 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2 cor2
----
24
35
89
query I rowsort
SELECT DISTINCT + col0 * - col1 * col2 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT - + ( + col2 ) * cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - col1 + + col2 * + 53 AS col2 FROM tab0 AS cor0
----
-44
1663
4255
query I rowsort
SELECT ALL cor0.col1 * 74 FROM tab2, tab1 AS cor0
----
9 values hashing to 1e02e0a7a89afafa17b6eb0df6058190
query I rowsort
SELECT ALL + col0 + col2 AS col2 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7991
SELECT DISTINCT cor0.col2 DIV - 53 AS col0 FROM tab1, tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-7991
SELECT DISTINCT cor0.col2 / - 53 AS col0 FROM tab1, tab0 AS cor0
----
-1
0
query I rowsort
SELECT ALL + cor0.col1 - col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT tab0.col1 / col1 + + col0 FROM tab0 WHERE NOT ( + col2 ) NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT ALL - cor0.col1 * col1 AS col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT 50 * col1 + - 93 FROM tab2 AS cor0
----
1457
2857
757
query I rowsort
SELECT DISTINCT + cor0.col1 + col2 + col0 AS col2 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT ALL col0 * 84 AS col2 FROM tab2
----
588
6552
6636
query I rowsort
SELECT + 14 * + col0 AS col1 FROM tab1 AS cor0
----
1120
42
896
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 37 col0 FROM tab1
----
370
481
962
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * - 63 col0 FROM tab2 AS cor0
----
1071
1953
3717
onlyif mysql # use DIV operator for integer division
query I rowsort label-8001
SELECT DISTINCT cor0.col1 DIV ( col1 ) + + 22 + 45 FROM tab1 AS cor0
----
68
skipif mysql # not compatible
query I rowsort label-8001
SELECT DISTINCT cor0.col1 / ( col1 ) + + 22 + 45 FROM tab1 AS cor0
----
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-8003
SELECT ( - 6 ) + cor0.col2 DIV + ( 78 ) AS col1 FROM tab1 AS cor0
----
-5
-6
-6
skipif mysql # not compatible
query I rowsort label-8003
SELECT ( - 6 ) + cor0.col2 / + ( 78 ) AS col1 FROM tab1 AS cor0
----
-5
-6
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 45 + - col0 col1 FROM tab2 AS cor0
----
-33
-34
38
query I rowsort
SELECT DISTINCT + - col2 - + col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT + - 38 FROM tab0 cor0
----
-38
-38
-38
query I rowsort
SELECT - col1 + - 54 + col0 * + 63 AS col0 FROM tab2 AS cor0
----
356
4801
4906
query I rowsort
SELECT 0 * - col1 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT tab0.col1 + + col1 * + col1 FROM tab0
----
7482
8372
9506
skipif mysql # not compatible
query I rowsort
SELECT col2 * + col1 + ( col1 + col1 ) * CAST ( + col2 AS REAL ) AS col2 FROM tab0
----
22386
291
8514
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8011
SELECT + + ( col1 ) - CAST( + col0 + + col2 AS DECIMAL ) * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8011
SELECT + + ( col1 ) - CAST ( + col0 + + col2 AS REAL ) * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( + col0 ) - - col1 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - 36 * col2 + ( cor0.col0 ) FROM tab1 AS cor0
----
-1941
-1988
-3376
query I rowsort
SELECT + + 4 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
37
5
86
query I rowsort
SELECT ALL - 55 * col1 FROM tab1 AS cor0
----
-1430
-550
-715
query I rowsort
SELECT DISTINCT - 55 + + col0 FROM tab1 AS cor0
----
-52
25
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8017
SELECT ALL - col1 DIV col2 + + CAST( + col1 + - col2 AS SIGNED ) * 12 DIV - ( col1 ) FROM tab1 AS cor0
----
12
56
76
skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL - col1 / col2 + + CAST ( + col1 + - col2 AS INTEGER ) * 12 / - ( col1 ) FROM tab1 AS cor0
----
12
56
76
query I rowsort
SELECT DISTINCT col1 - col0 * + col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT - 18 - col2 * col1 FROM tab1 AS cor0
----
-1266
-1422
-588
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + cor0.col1 * col2 col0 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT - col2 * + col0 - col0 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT DISTINCT - - cor0.col2 * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-8023
SELECT col2 DIV col1 - col0 * + col1 * - col2 FROM tab1 AS cor0
----
36485
4214
99847
skipif mysql # not compatible
query I rowsort label-8023
SELECT col2 / col1 - col0 * + col1 * - col2 FROM tab1 AS cor0
----
36485
4214
99847
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 - + col1 col0 FROM tab1 AS cor0
----
1235
1378
560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8025
SELECT ALL + col0 * - col1 + col0 + - cor0.col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL + col0 * - col1 + col0 + - cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( 87 ) + cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to bc3171eda4d1f95ac12eb4ab7ce97c59
query I rowsort
SELECT ALL col0 * + cor0.col1 + - col2 AS col1 FROM tab1 AS cor0
----
24
583
944
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to 635619591835474e6aa6acdff4ab166c
query I rowsort
SELECT ALL + col2 + col0 * 19 FROM tab2
----
1508
1539
160
query I rowsort
SELECT + cor0.col0 + 99 AS col1 FROM tab2 AS cor0
----
106
177
178
query I rowsort
SELECT col1 * col1 - + 44 * col2 FROM tab0 AS cor0
----
4673
5944
9365
query I rowsort
SELECT - - col0 * - 66 AS col0 FROM tab0 AS cor0
----
-1584
-2310
-5874
onlyif mysql # use DIV operator for integer division
query I rowsort label-8033
SELECT + col1 - col0 DIV - col2 col1 FROM tab0 AS cor0
----
132
86
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8033
SELECT + col1 - col0 / - col2 col1 FROM tab0 AS cor0
----
132
86
92
query I rowsort
SELECT + col2 * - col1 - col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT cor0.col2 + + col0 + col2 AS col1 FROM tab1 AS cor0
----
111
178
272
query I rowsort
SELECT ALL - col1 + col2 * col0 * col1 FROM tab0 AS cor0
----
3298
664027
68026
query I rowsort
SELECT cor0.col2 + + ( cor0.col0 + col1 ) * col1 AS col2 FROM tab0 AS cor0
----
12805
16462
9493
query I rowsort
SELECT - cor0.col0 * + 46 + + col1 FROM tab2 AS cor0
----
-291
-3529
-3617
query I rowsort
SELECT col2 - + ( 26 ) AS col0 FROM tab0 AS cor0
----
-25
56
7
query I rowsort
SELECT 20 FROM tab0 cor0
----
20
20
20
query I rowsort
SELECT - 67 AS col0 FROM tab0 AS cor0
----
-67
-67
-67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 99 ) * col1 col1 FROM tab1 AS cor0
----
1287
2574
990
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 - + 49 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b8456b6b9bf6c451b69a245d2bb87296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8044
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + tab1.col1 * + col0 AS col2 FROM tab1
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 + col0 * + ( + col2 ) col1 FROM tab1 cor0
----
145
3631
7663
query I rowsort
SELECT - col1 + cor0.col1 * + col0 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-8048
SELECT DISTINCT + + col2 DIV - ( + 35 * + cor0.col1 ) FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT + + col2 / - ( + 35 * + cor0.col1 ) FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT + tab2.col2 * + col1 * + 35 AS col2 FROM tab2
----
22610
29295
53690
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 col2 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8051
SELECT ALL col1 DIV col0 - - tab1.col2 FROM tab1
----
57
62
96
skipif mysql # not compatible
query I rowsort label-8051
SELECT ALL col1 / col0 - - tab1.col2 FROM tab1
----
57
62
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col1 FROM tab1
----
-4
-4
-4
query I rowsort
SELECT ALL - col0 - - col0 * - col1 AS col0 FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT ALL cor0.col1 - - col1 AS col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT - 7 FROM tab1
----
-7
query I rowsort
SELECT cor0.col2 * col0 + - col2 * - col2 AS col0 FROM tab0 AS cor0
----
14022
1881
36
query I rowsort
SELECT DISTINCT - - col2 * - cor0.col2 - - ( 19 ) FROM tab1 AS cor0
----
-2897
-3230
-9197
query I rowsort
SELECT DISTINCT 41 + - col0 AS col1 FROM tab2 AS cor0
----
-37
-38
34
query I rowsort
SELECT col0 * col2 + + ( col0 ) + + col0 * col2 FROM tab2
----
385
4134
6083
query I rowsort
SELECT tab0.col0 * + col1 + - ( tab0.col0 + col0 ) AS col2 FROM tab0
----
2016
3325
7921
query I rowsort
SELECT - col2 + + col1 * col1 AS col0 FROM tab0
----
7363
8199
9408
query I rowsort
SELECT ALL cor0.col1 + cor0.col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL + + col0 + - col2 * + 53 AS col0 FROM tab2 AS cor0
----
-1300
-1424
-1935
onlyif mysql # use DIV operator for integer division
query I rowsort label-8064
SELECT DISTINCT + ( col0 ) * col0 DIV - 24 FROM tab0 AS cor0
----
-24
-330
-51
skipif mysql # not compatible
query I rowsort label-8064
SELECT DISTINCT + ( col0 ) * col0 / - 24 FROM tab0 AS cor0
----
-24
-330
-51
query I rowsort
SELECT DISTINCT col2 * - col1 FROM tab2 cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8066
SELECT DISTINCT + ( - col0 ) * ( cor0.col1 ) + col2 * - CAST( NULL AS SIGNED ) * + 91 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8066
SELECT DISTINCT + ( - col0 ) * ( cor0.col1 ) + col2 * - CAST ( NULL AS INTEGER ) * + 91 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8067
SELECT ALL + col0 DIV 41 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL + col0 / 41 FROM tab1
----
0
1
1
query I rowsort
SELECT col0 * 25 AS col2 FROM tab0 cor0
----
2225
600
875
query I rowsort
SELECT - + col0 * + col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT col1 + 49 * + col2 AS col1 FROM tab0 AS cor0
----
146
1703
4109
query I rowsort
SELECT ALL + col0 * ( - cor0.col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - + ( - cor0.col2 ) * col1 AS col0 FROM tab1 cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 col1 FROM tab1 cor0
----
61
61
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-8074
SELECT ALL - 87 DIV + 82 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8074
SELECT ALL - 87 / + 82 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - col2 + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 col2 FROM tab1 AS cor0
----
68
query I rowsort
SELECT DISTINCT + + cor0.col0 AS col2 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL 81 FROM tab1 cor0
----
81
81
81
query I rowsort
SELECT ( cor0.col2 ) * col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - col2 + 57 - - col1 * - ( col0 ) FROM tab1 AS cor0
----
-1079
-640
-75
query I rowsort
SELECT - ( - col1 ) * col1 AS col0 FROM tab1 cor0
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8082
SELECT DISTINCT + CAST( col0 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-8082
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT + cor0.col1 * - 2 AS col0 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT ALL col0 + + cor0.col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT + - 40 AS col1 FROM tab0 AS cor0
----
-40
-40
-40
query I rowsort
SELECT DISTINCT + 59 AS col0 FROM tab0, tab0 AS cor0
----
59
query I rowsort
SELECT ALL + col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + 13 FROM tab0, tab2, tab0 cor0
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8089
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - col1 * 26 AS col1 FROM tab0 AS cor0
----
-2236
-2366
-2522
query I rowsort
SELECT ALL - 40 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
query I rowsort
SELECT DISTINCT - ( cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - - cor0.col2 + + col2 * + ( 76 ) AS col1 FROM tab0 AS cor0
----
2541
6314
77
query I rowsort
SELECT col1 * - col2 + - col0 * - col2 * + col2 AS col0 FROM tab0
----
-62
23298
590974
query I rowsort
SELECT 40 + + 42 FROM tab0
----
82
82
82
query I rowsort
SELECT col1 + - 84 * col2 AS col2 FROM tab2
----
-2125
-2237
-3175
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 9 * 80 col1 FROM tab2 AS cor0
----
727
798
799
query I rowsort
SELECT ALL cor0.col1 * - 31 + col1 + col0 AS col2 FROM tab1 AS cor0
----
-236
-310
-777
query I rowsort
SELECT - - col2 * col0 + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT col0 + col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL - col2 + - 1 AS col0 FROM tab0 AS cor0
----
-2
-34
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-8102
SELECT - col1 DIV cor0.col0 + col2 FROM tab2 AS cor0
----
23
26
38
skipif mysql # not compatible
query I rowsort label-8102
SELECT - col1 / cor0.col0 + col2 FROM tab2 AS cor0
----
23
26
38
query I rowsort
SELECT DISTINCT - - col2 * 26 + - col2 * + col0 AS col0 FROM tab1 AS cor0
----
-2166
-5184
1242
query I rowsort
SELECT cor0.col1 + + ( - col2 ) * - cor0.col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL + col1 + - col0 * + 66 AS col0 FROM tab1 AS cor0
----
-172
-4214
-5267
query I rowsort
SELECT DISTINCT col1 * col0 + - col1 * col2 AS col1 FROM tab0 AS cor0
----
-774
3298
637
query I rowsort
SELECT DISTINCT - - col0 * - col0 + - 68 FROM tab2 AS cor0
----
-117
-6152
-6309
query I rowsort
SELECT - tab0.col2 * col2 + col1 FROM tab0
----
-1003
-6633
96
query I rowsort
SELECT ALL col0 + - tab1.col0 * 9 AS col2 FROM tab1
----
-24
-512
-640
query I rowsort
SELECT DISTINCT - 75 + + col1 FROM tab1
----
-49
-62
-65
query I rowsort
SELECT DISTINCT ( col0 ) + - col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT tab0.col0 * - 90 + + ( + col0 ) AS col2 FROM tab0
----
-2136
-3115
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-8113
SELECT col1 DIV + 41 FROM tab0 AS cor0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-8113
SELECT col1 / + 41 FROM tab0 AS cor0
----
2
2
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-8114
SELECT ALL - - col2 * col0 + col2 DIV col0 FROM tab1 AS cor0
----
180
3648
7681
skipif mysql # not compatible
query I rowsort label-8114
SELECT ALL - - col2 * col0 + col2 / col0 FROM tab1 AS cor0
----
180
3648
7681
onlyif mysql # use DIV operator for integer division
query I rowsort label-8115
SELECT + + col0 DIV CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-8115
SELECT + + col0 / CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT + - col0 + + col2 * col2 AS col1 FROM tab2 cor0
----
1365
598
722
query I rowsort
SELECT ALL - - col2 + col1 * col0 AS col2 FROM tab0 cor0
----
2097
3396
8181
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8118
SELECT - - 94 * cor0.col2 * CAST( NULL AS SIGNED ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8118
SELECT - - 94 * cor0.col2 * CAST ( NULL AS INTEGER ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8119
SELECT 39 + col0 DIV + 23 FROM tab2 AS cor0
----
39
42
42
skipif mysql # not compatible
query I rowsort label-8119
SELECT 39 + col0 / + 23 FROM tab2 AS cor0
----
39
42
42
query I rowsort
SELECT + col1 * + col1 + col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT ALL + ( + col2 ) * + col1 * + 67 + - col2 * col1 FROM tab2
----
101244
42636
55242
query I rowsort
SELECT DISTINCT ( + col1 * col1 ) + col1 AS col2 FROM tab1
----
110
182
702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8123
SELECT DISTINCT ( 48 ) + col0 * + CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT ( 48 ) + col0 * + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT - + tab1.col2 FROM tab1, tab0, tab2 cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - tab0.col1 col2 FROM tab0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8126
SELECT ALL + + cor0.col1 DIV + col0 FROM tab1 cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL + + cor0.col1 / + col0 FROM tab1 cor0
----
0
0
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8127
SELECT - 65 DIV + col2 FROM tab0 AS cor0
----
-1
-65
0
skipif mysql # not compatible
query I rowsort label-8127
SELECT - 65 / + col2 FROM tab0 AS cor0
----
-1
-65
0
query I rowsort
SELECT col2 - col2 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + + 89 FROM tab2 AS cor0
----
89
89
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 * - col2 col0 FROM tab0 AS cor0
----
1089
2706
33
query I rowsort
SELECT ALL col2 * + 63 AS col0 FROM tab0
----
2079
5166
63
query I rowsort
SELECT ALL - cor0.col0 * col1 FROM tab0 cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-8133
SELECT ALL - col2 DIV 37 + + col0 * col2 * col2 FROM tab0 AS cor0
----
26136
35
598434
skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL - col2 / 37 + + col0 * col2 * col2 FROM tab0 AS cor0
----
26136
35
598434
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) col1 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + col1 + + ( col0 + + col2 ) AS col0 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT ALL - - 26 * 16 AS col0 FROM tab1 AS cor0
----
416
416
416
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + CAST ( + col2 AS REAL ) + col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT 92 + - col1 * col1 FROM tab2 AS cor0
----
-197
-3389
-869
query I rowsort
SELECT + col1 * cor0.col0 + col0 FROM tab2 AS cor0
----
1422
224
4680
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 cor2
----
3645 values hashing to ced36882687f040e969c817b62d2e456
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 col0 FROM tab2, tab2 cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT - 59 AS col1 FROM tab0
----
-59
-59
-59
query I rowsort
SELECT col2 * + col1 * col2 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT DISTINCT ( 94 ) AS col1 FROM tab1
----
94
query I rowsort
SELECT + 58 * 8 FROM tab1 cor0
----
464
464
464
query I rowsort
SELECT + + 59 + + col0 * - 55 FROM tab1 cor0
----
-106
-3461
-4341
query I rowsort
SELECT - + col2 + + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT ALL - 23 * col2 * + col0 AS col0 FROM tab0
----
-167854
-18216
-805
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8149
SELECT col0 * cor0.col1 + - CAST( + ( col2 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1305
190
4576
skipif mysql # not compatible
query I rowsort label-8149
SELECT col0 * cor0.col1 + - CAST ( + ( col2 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT - 51 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8151
SELECT DISTINCT + + col2 * col2 * cor0.col2 + - col0 DIV - col2 AS col1 FROM tab1 AS cor0
----
157464
185194
884736
skipif mysql # not compatible
query I rowsort label-8151
SELECT DISTINCT + + col2 * col2 * cor0.col2 + - col0 / - col2 AS col1 FROM tab1 AS cor0
----
157464
185194
884736
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 * - col2 * - col1 + col2 col0 FROM tab0 AS cor0
----
-611802
-93621
-96
query I rowsort
SELECT + col0 + 47 AS col2 FROM tab1 AS cor0
----
111
127
50
query I rowsort
SELECT + col2 * col0 * + cor0.col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT col0 * + 4 AS col0 FROM tab2 AS cor0
----
28
312
316
query I rowsort
SELECT col1 + - 34 AS col1 FROM tab2
----
-17
-3
25
query I rowsort
SELECT DISTINCT + col2 * ( + col0 ) FROM tab0
----
35
7298
792
query I rowsort
SELECT - - 91 AS col1 FROM tab2 AS cor0
----
91
91
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-8159
SELECT + + col0 + + 58 DIV cor0.col1 FROM tab1 AS cor0
----
5
69
84
skipif mysql # not compatible
query I rowsort label-8159
SELECT + + col0 + + 58 / cor0.col1 FROM tab1 AS cor0
----
5
69
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8160
SELECT ALL + col2 * - CAST( - col2 AS SIGNED ) FROM tab0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL + col2 * - CAST ( - col2 AS INTEGER ) FROM tab0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - col1 * - ( 88 ) FROM tab1
----
1144
2288
880
query I rowsort
SELECT DISTINCT col0 * 67 AS col1 FROM tab2
----
469
5226
5293
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8163
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL 50 FROM tab2, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8165
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - col1 * ( - col2 ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL cor0.col2 * + col1 - + 13 * col1 AS col0 FROM tab2 AS cor0
----
425
434
767
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col2 col0 FROM tab1 cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-8169
SELECT col1 * - col1 + + col0 DIV col1 FROM tab1
----
-163
-676
-94
skipif mysql # not compatible
query I rowsort label-8169
SELECT col1 * - col1 + + col0 / col1 FROM tab1
----
-163
-676
-94
query I rowsort
SELECT DISTINCT + col2 - ( col2 ) AS col0 FROM tab1
----
0
query I rowsort
SELECT + col2 * - col0 + col1 * col0 FROM tab0
----
1272
3360
801
query I rowsort
SELECT col1 + + ( - col2 ) * + col0 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT tab1.col0 * - 34 + - 47 * - col1 + col1 FROM tab1
----
-1696
-2096
1146
query I rowsort
SELECT + col0 * + ( 89 ) + + col1 * - 31 - - col1 AS col1 FROM tab0
----
-444
205
5191
onlyif mysql # use DIV operator for integer division
query I rowsort label-8175
SELECT ALL - + cor0.col0 DIV + cor0.col1 FROM tab2 cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL - + cor0.col0 / + cor0.col1 FROM tab2 cor0
----
-1
-4
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8176
SELECT ALL col1 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL col1 / cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT DISTINCT - col0 * col0 + + 26 * + col0 FROM tab0 AS cor0
----
-315
-5607
48
query I rowsort
SELECT ALL - - col0 * - 30 FROM tab2 AS cor0
----
-210
-2340
-2370
onlyif mysql # use DIV operator for integer division
query I rowsort label-8179
SELECT col1 DIV col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-8179
SELECT col1 / col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT col1 + ( + col0 ) * - col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT + col1 * col0 + col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT + 76 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT ALL col0 * - tab1.col1 + - tab1.col1 FROM tab1
----
-104
-1053
-650
query I rowsort
SELECT ALL col1 * - col0 + + col1 FROM tab1
----
-1027
-52
-630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - 45 * + cor0.col1 AS col2 FROM tab1 cor0
----
-1170
-450
-585
query I rowsort
SELECT + 21 + col0 FROM tab1 cor0
----
101
24
85
query I rowsort
SELECT ALL - ( col1 ) + 27 FROM tab0 AS cor0
----
-59
-64
-70
query I rowsort
SELECT ALL + - 35 + - col1 FROM tab1 AS cor0
----
-45
-48
-61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - cor0.col1 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - 30 + col0 FROM tab1 AS cor0
----
-27
34
50
query I rowsort
SELECT ALL + 17 * - col2 FROM tab0 AS cor0
----
-1394
-17
-561
onlyif mysql # use DIV operator for integer division
query I rowsort label-8193
SELECT ALL 55 + + col0 DIV - col2 FROM tab0 AS cor0
----
20
54
55
skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL 55 + + col0 / - col2 FROM tab0 AS cor0
----
20
54
55
query I rowsort
SELECT ALL - - ( col0 ) + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - col2 + + col0 * - col2 * - col2 FROM tab1 AS cor0
----
207879
737184
8694
query I rowsort
SELECT ALL 26 + col0 * - col2 FROM tab2 AS cor0
----
-163
-2002
-2976
query I rowsort
SELECT - ( + col0 * + col2 ) + - col1 FROM tab0
----
-132
-7389
-878
query I rowsort
SELECT col2 * col2 + 76 FROM tab0
----
1165
6800
77
query I rowsort
SELECT ALL 26 * col0 AS col0 FROM tab1
----
1664
2080
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8200
SELECT + cor0.col1 * + CAST( NULL AS SIGNED ) * tab2.col2 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8200
SELECT + cor0.col1 * + CAST ( NULL AS INTEGER ) * tab2.col2 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + - cor0.col1 * - col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT 4 + - col1 + col2 AS col0 FROM tab0 AS cor0
----
-49
-5
-92
query I rowsort
SELECT DISTINCT - + col2 * cor0.col2 * + 65 FROM tab2 cor0
----
-43940
-47385
-93860
query I rowsort
SELECT DISTINCT - + col2 * - col1 * col2 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT DISTINCT - + col2 * col2 * - col0 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT + col0 + + col0 * 23 AS col2 FROM tab1 AS cor0
----
1536
1920
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - ( 80 ) col2 FROM tab0 AS cor0
----
-6880
-7280
-7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8208
SELECT DISTINCT - cor0.col0 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8208
SELECT DISTINCT - cor0.col0 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8209
SELECT DISTINCT + cor0.col1 DIV + ( - col1 ) FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-8209
SELECT DISTINCT + cor0.col1 / + ( - col1 ) FROM tab1 AS cor0
----
-1
query I rowsort
SELECT ALL + col0 * 96 + cor0.col0 AS col1 FROM tab1 AS cor0
----
291
6208
7760
query I rowsort
SELECT ALL + col1 + ( - 27 ) * + col2 FROM tab0 AS cor0
----
-2123
-805
70
query I rowsort
SELECT DISTINCT - cor0.col2 * ( + 50 ) AS col0 FROM tab2 AS cor0
----
-1300
-1350
-1900
query I rowsort
SELECT - 4 + tab1.col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 8b5a32e0e42af4983e9b5a7337fdaeb2
query I rowsort
SELECT DISTINCT + ( + 32 ) FROM tab2 cor0
----
32
query I rowsort
SELECT ALL - + col2 * col0 + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-406
-4345
-6630
query I rowsort
SELECT ALL - col0 * + 52 * - col0 + + col2 AS col1 FROM tab0 AS cor0
----
29985
411974
63701
query I rowsort
SELECT ALL - 55 + + 2 * col0 AS col1 FROM tab1 AS cor0
----
-49
105
73
query I rowsort
SELECT + + col1 + + col0 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT ( ( - col0 ) ) FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col1 AS REAL ) AS col2 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT + col1 + 77 FROM tab0 cor0
----
163
168
174
onlyif mysql # use DIV operator for integer division
query I rowsort label-8222
SELECT ALL ( col0 ) + col0 DIV - 81 + col2 AS col0 FROM tab2 AS cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL ( col0 ) + col0 / - 81 + col2 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL col0 * - 8 + col2 FROM tab2 AS cor0
----
-29
-594
-598
onlyif mysql # use DIV operator for integer division
query I rowsort label-8224
SELECT ( - col0 ) DIV col0 + + ( + col1 ) - col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8224
SELECT ( - col0 ) / col0 + + ( + col1 ) - col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT 7 * 91 + + col2 * col0 + + col2 * - col1 * - 32 FROM tab0 AS cor0
----
246719
3776
92245
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 + - 84 col1 FROM tab2 AS cor0
----
-5
-6
-77
query I rowsort
SELECT - + ( col2 ) + - col2 + col1 FROM tab1 AS cor0
----
-104
-179
-82
query I rowsort
SELECT DISTINCT + 41 FROM tab1 AS cor0
----
41
query I rowsort
SELECT DISTINCT ( 58 ) AS col0 FROM tab0 AS cor0
----
58
query I rowsort
SELECT DISTINCT + col0 + + 0 - + col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT + col2 * - tab1.col0 * - col0 FROM tab1
----
233472
486
614400
query I rowsort
SELECT ALL col1 + 68 - 72 AS col1 FROM tab2
----
13
27
55
query I rowsort
SELECT DISTINCT col0 + + col0 * + col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT ALL - - 49 FROM tab0 AS cor0
----
49
49
49
query I rowsort
SELECT 55 * col1 + col2 + col2 * ( col2 + col1 ) AS col0 FROM tab2 AS cor0
----
3063
3298
5481
query I rowsort
SELECT DISTINCT + + col0 * + 37 FROM tab1 AS cor0
----
111
2368
2960
query I rowsort
SELECT DISTINCT + cor0.col0 + + 18 * col0 FROM tab0 AS cor0
----
1691
456
665
onlyif mysql # use DIV operator for integer division
query I rowsort label-8238
SELECT DISTINCT 97 + - col0 DIV + ( ( col2 ) ) AS col0 FROM tab0 AS cor0
----
62
96
97
skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT 97 + - col0 / + ( ( col2 ) ) AS col0 FROM tab0 AS cor0
----
62
96
97
query I rowsort
SELECT col1 * - 22 AS col0 FROM tab0
----
-1892
-2002
-2134
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col0 FROM tab1, tab0 cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062
query I rowsort
SELECT ALL + col2 + ( col1 ) AS col0 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col1 FROM tab0, tab0 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT ( NULL ) >= ( NULL )
----
query I rowsort
SELECT ALL - cor0.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5
query I rowsort
SELECT + - col0 - + col2 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT - 33 - - col1 FROM tab1 AS cor0
----
-20
-23
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8247
SELECT + col2 - col2 DIV cor0.col1 AS col0 FROM tab2 cor0
----
26
27
36
skipif mysql # not compatible
query I rowsort label-8247
SELECT + col2 - col2 / cor0.col1 AS col0 FROM tab2 cor0
----
26
27
36
query I rowsort
SELECT - ( + col1 ) * col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL col0 * col2 + col1 FROM tab1
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa
onlyif mysql # use DIV operator for integer division
query I rowsort label-8251
SELECT col2 * 45 DIV tab2.col0 AS col0 FROM tab2
----
15
173
21
skipif mysql # not compatible
query I rowsort label-8251
SELECT col2 * 45 / tab2.col0 AS col0 FROM tab2
----
15
173
21
query I rowsort
SELECT - col2 * - col2 + - 28 AS col2 FROM tab1 AS cor0
----
2888
3221
9188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) * - tab2.col2 + col1 col0 FROM tab2
----
-1427
-617
-698
query I rowsort
SELECT 6 * 74 FROM tab2
----
444
444
444
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT + ( col1 ) AS col2 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8257
SELECT - - col0 * col2 DIV cor0.col1 FROM tab0 AS cor0
----
0
80
9
skipif mysql # not compatible
query I rowsort label-8257
SELECT - - col0 * col2 / cor0.col1 FROM tab0 AS cor0
----
0
80
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 42 col2 FROM tab1 AS cor0
----
-2268
-2394
-4032
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col1 * col1 col1 FROM tab1 AS cor0
----
110
182
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL - ( - col2 + 65 ) * + col2 AS col0 FROM tab0
----
-1056
-64
1394
query I rowsort
SELECT ALL 38 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT DISTINCT 39 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
39
skipif mysql # not compatible
query I rowsort
SELECT ALL - cor0.col1 + - col0 * col2 + CAST ( col0 AS REAL ) FROM tab2 AS cor0
----
-2009
-213
-2940
query I rowsort
SELECT - cor0.col0 * + col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT col1 * ( + col1 ) * col2 + - cor0.col2 FROM tab0 AS cor0
----
244035
678960
9408
query I rowsort
SELECT - 66 * + col0 AS col0 FROM tab2 AS cor0
----
-462
-5148
-5214
query I rowsort
SELECT DISTINCT - col0 * ( - col2 ) AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - - col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - 77 FROM tab2
----
-77
query I rowsort
SELECT + + 13 + + col0 * col2 FROM tab0 AS cor0
----
48
7311
805
onlyif mysql # use DIV operator for integer division
query I rowsort label-8272
SELECT + + ( cor0.col0 ) DIV + col1 FROM tab1 cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-8272
SELECT + + ( cor0.col0 ) / + col1 FROM tab1 cor0
----
0
6
6
query I rowsort
SELECT + - col0 * + 55 AS col0 FROM tab1 AS cor0
----
-165
-3520
-4400
query I rowsort
SELECT + - cor0.col1 + + 73 * cor0.col2 FROM tab2 AS cor0
----
1839
1940
2757
query I rowsort
SELECT - 89 * 15 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 0f70a9d9b1c3400faf4fd01dde28e0e7
query I rowsort
SELECT - col0 * - col1 * 31 AS col1 FROM tab2
----
142662
41633
6727
query I rowsort
SELECT ALL - ( + col0 ) * + col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT - tab0.col1 * + col1 * col2 AS col1 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT + col1 * col1 + + col1 AS col2 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT - - 78 AS col1 FROM tab0 cor0
----
78
78
78
query I rowsort
SELECT ALL 59 * + col1 FROM tab1
----
1534
590
767
query I rowsort
SELECT col2 * col0 + - ( - col1 ) FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT col1 + col2 * 2 AS col2 FROM tab1 AS cor0
----
124
134
205
query I rowsort
SELECT DISTINCT cor1.col2 * + cor0.col2 * 8 FROM tab0, tab2 AS cor0, tab1 cor1
----
9 values hashing to 464c68d2c81c65cc9eccbad5a39a880f
query I rowsort
SELECT + tab2.col0 * ( + 24 ) + + col1 AS col1 FROM tab2
----
1913
1931
199
onlyif mysql # use DIV operator for integer division
query I rowsort label-8286
SELECT col1 * 0 + 36 DIV tab0.col2 col2 FROM tab0
----
0
1
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8286
SELECT col1 * 0 + 36 / tab0.col2 col2 FROM tab0
----
0
1
36
query I rowsort
SELECT ALL - col0 + - col0 * + 75 AS col2 FROM tab2 AS cor0
----
-532
-5928
-6004
query I rowsort
SELECT DISTINCT + - col1 * - col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 ) OR - col0 + col0 + - col2 * + col1 <> + cor0.col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT ( NULL ) IN ( + tab1.col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < NULL
----
query I rowsort
SELECT + cor0.col0 * - col0 AS col2 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT + cor0.col2 * + cor0.col1 * col2 AS col1 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT ALL + - col1 * + col0 * col1 AS col2 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT - col0 + cor0.col1 * + col1 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT ALL - col1 * col1 + col2 AS col2 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT + cor0.col0 * col2 * - col1 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT - tab1.col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
onlyif mysql # use DIV operator for integer division
query I rowsort label-8300
SELECT col1 DIV col2 - - col1 AS col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8300
SELECT col1 / col2 - - col1 AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT tab0.col2 AS col2 FROM tab1, tab2 cor0 CROSS JOIN tab0
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # use DIV operator for integer division
query I rowsort label-8302
SELECT ALL - col1 + - cor0.col2 * col1 DIV - col0 FROM tab0 AS cor0
----
-8
-95
32
skipif mysql # not compatible
query I rowsort label-8302
SELECT ALL - col1 + - cor0.col2 * col1 / - col0 FROM tab0 AS cor0
----
-8
-95
32
query I rowsort
SELECT ALL - - col2 * + col1 AS col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT + col0 + + col1 * - cor0.col0 - - col1 FROM tab0 AS cor0
----
-1954
-3263
-7919
query I rowsort
SELECT ALL - cor0.col0 * - col2 * col0 AS col1 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT ALL 75 - col1 AS col0 FROM tab0
----
-11
-16
-22
query I rowsort
SELECT DISTINCT tab2.col0 + col1 * col0 * col0 AS col2 FROM tab2
----
106176
1526
359034
query I rowsort
SELECT ALL - col1 * col2 + + col0 FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT col0 * + tab0.col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT tab2.col2 * + col0 + - col2 * - col2 FROM tab2
----
2704
4446
918
query I rowsort
SELECT DISTINCT - col1 + - col1 + col0 AS col0 FROM tab1
----
-49
44
54
query I rowsort
SELECT - cor0.col0 * col0 * + col2 AS col1 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT DISTINCT col1 + + col1 * + col1 FROM tab0
----
7482
8372
9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + tab1.col0 * - col0 col2 FROM tab1
----
-35
-4106
-6413
query I rowsort
SELECT ALL + col2 + tab2.col1 - - col1 * col2 FROM tab2
----
1619
701
895
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 + - col1 * - col1 BETWEEN NULL AND - col2 + - col1 * + col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT col2 * - col2 + col0 + + col1 FROM tab1
----
-2887
-3175
-9123
query I rowsort
SELECT DISTINCT - col2 + - col1 - col0 AS col1 FROM tab2
----
-134
-163
-65
query I rowsort
SELECT ALL + tab1.col2 * + col0 AS col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT - col0 + + col1 < ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8321
SELECT col2 DIV col1 + + tab2.col0 * col0 FROM tab2
----
49
6084
6243
skipif mysql # not compatible
query I rowsort label-8321
SELECT col2 / col1 + + tab2.col0 * col0 FROM tab2
----
49
6084
6243
onlyif mysql # use DIV operator for integer division
query I rowsort label-8322
SELECT + col2 DIV col2 + - col0 + col1 FROM tab0
----
3
63
63
skipif mysql # not compatible
query I rowsort label-8322
SELECT + col2 / col2 + - col0 + col1 FROM tab0
----
3
63
63
query I rowsort
SELECT + tab2.col0 * col0 * col0 AS col0 FROM tab2
----
343
474552
493039
query I rowsort
SELECT DISTINCT tab0.col1 * col2 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT + col1 * col2 + + tab2.col1 - col2 FROM tab2
----
1567
625
841
onlyif mysql # use DIV operator for integer division
query I rowsort label-8326
SELECT col2 + + col1 DIV - col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-8326
SELECT col2 + + col1 / - col2 FROM tab1
----
54
57
96
query I rowsort
SELECT + col0 * col1 * - col0 + - col0 FROM tab2 WHERE NULL BETWEEN ( col1 + col2 ) AND col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8328
SELECT ALL col1 + col1 DIV + col0 col0 FROM tab2
----
17
35
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL col1 + col1 / + col0 col0 FROM tab2
----
17
35
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8329
SELECT cor0.col1 * + CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8329
SELECT cor0.col1 * + CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col0 * - col0 + - tab2.col2 + ( col2 ) FROM tab2
----
-49
-6084
-6241
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab2 cor1, tab0, tab2 cor2
----
3645 values hashing to b050f98b2d07c1b092b73ecf6b5b347c
query I rowsort
SELECT ALL + cor0.col0 * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-8333
SELECT 6 DIV - col0 AS col2 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8333
SELECT 6 / - col0 AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL + - 25 * col0 + ( col0 + col1 ) AS col1 FROM tab0 cor0
----
-2045
-490
-743
query I rowsort
SELECT ALL - ( col0 ) * 81 + - col1 FROM tab2 AS cor0
----
-598
-6377
-6416
query I rowsort
SELECT col1 - + col0 * col0 AS col2 FROM tab0
----
-1128
-490
-7830
query I rowsort
SELECT ALL col1 * - col0 - col1 FROM tab1
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT col0 + - col0 * col0 AS col2 FROM tab2 cor0
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT + col0 * col1 + col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 * - col2 col0 FROM tab2 AS cor0
----
-1406
-650
-702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col2 col1 FROM tab2
----
-26
-27
-38
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN col1 AND NULL
----
query I rowsort
SELECT col2 + col1 * + col0 FROM tab0
----
2097
3396
8181
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( - cor0.col2 * col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8345
SELECT + col0 + col1 DIV col0 col1 FROM tab0
----
27
37
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8345
SELECT + col0 + col1 / col0 col1 FROM tab0
----
27
37
90
query I rowsort
SELECT DISTINCT - col1 * col0 - col1 FROM tab2
----
-1360
-248
-4661
query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + col0 AND ( NULL )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col1 ) < NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 ) = ( + col0 )
----
query I rowsort
SELECT ALL + col1 * col1 - - col0 AS col0 FROM tab2
----
3559
368
968
query I rowsort
SELECT col0 + col1 * col2 + + col0 FROM tab1
----
1408
1410
698
query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 BETWEEN NULL AND col1 / col1
----
query I rowsort
SELECT col1 FROM tab1 WHERE NOT NULL NOT IN ( + col2 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT tab1.col2 NOT BETWEEN col1 AND NULL
----
query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NULL IN ( col2 + col1 )
----
query I rowsort
SELECT col1 FROM tab1 WHERE NULL BETWEEN - col1 AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8357
SELECT tab0.col2 DIV col2 + col0 AS col1 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-8357
SELECT tab0.col2 / col2 + col0 AS col1 FROM tab0
----
25
36
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-8358
SELECT ALL col1 DIV - col0 col2 FROM tab1
----
-8
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8358
SELECT ALL col1 / - col0 col2 FROM tab1
----
-8
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8359
SELECT DISTINCT col1 DIV tab0.col0 AS col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-8359
SELECT DISTINCT col1 / tab0.col0 AS col0 FROM tab0
----
1
2
3
query I rowsort
SELECT DISTINCT - ( 93 ) FROM tab1, tab2 AS cor0, tab0 AS cor1
----
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col2 FROM tab1
----
89
89
89
query I rowsort
SELECT - - 88 FROM tab2 AS cor0
----
88
88
88
query I rowsort
SELECT ALL + 15 * col0 * - 91 - 88 FROM tab1 AS cor0
----
-109288
-4183
-87448
query I rowsort
SELECT DISTINCT + 70 + + col0 * 66 FROM tab2 AS cor0
----
5218
5284
532
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8365
SELECT - + col0 + col1 * CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
1168
1401
506
skipif mysql # not compatible
query I rowsort label-8365
SELECT - + col0 + col1 * CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT + col0 + - 66 * - col2 FROM tab2 AS cor0
----
1789
1794
2587
query I rowsort
SELECT - col0 * - 64 AS col1 FROM tab1 AS cor0
----
192
4096
5120
query I rowsort
SELECT - col1 * 11 + 84 FROM tab2 AS cor0
----
-103
-257
-565
query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) * + col1 + - cor0.col1 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT ALL - - 49 * - ( col1 ) FROM tab0 AS cor0
----
-4214
-4459
-4753
query I rowsort
SELECT DISTINCT - + ( - col1 ) + col2 * - col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT - 27 + - 28 AS col2 FROM tab0 AS cor0
----
-55
-55
-55
query I rowsort
SELECT + col0 * + col0 + + col0 - + col0 * + col2 AS col1 FROM tab2 AS cor0
----
-133
3318
4134
query I rowsort
SELECT + 89 + col1 + col1 AS col0 FROM tab2 AS cor0
----
123
151
207
query I rowsort
SELECT ALL - 62 * col2 AS col1 FROM tab0 AS cor0
----
-2046
-5084
-62
query I rowsort
SELECT - 80 AS col1 FROM tab1 AS cor0
----
-80
-80
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8377
SELECT DISTINCT CAST( - col0 AS SIGNED ) * - col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190
skipif mysql # not compatible
query I rowsort label-8377
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * - col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL + + 86 * - col1 AS col2 FROM tab1 AS cor0
----
-1118
-2236
-860
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8379
SELECT ALL + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 69 - col1 * + 92 col0 FROM tab0 AS cor0
----
-7819
-8214
-8820
query I rowsort
SELECT - - 50 AS col1 FROM tab0 AS cor0
----
50
50
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-8382
SELECT + col0 DIV + cor0.col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8382
SELECT + col0 / + cor0.col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT - cor0.col1 + - 78 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 15546e8cf3a6f4dc5ade833889074d81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * - tab2.col0 col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT - 90 + + col0 AS col0 FROM tab0
----
-1
-55
-66
query I rowsort
SELECT + ( col0 ) + cor0.col1 AS col2 FROM tab2 AS cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - cor0.col2 col2 FROM tab0 AS cor0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col2 FROM tab1 AS cor0
----
23
23
23
query I rowsort
SELECT - ( - col1 ) * - ( col0 ) + - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT + - cor0.col0 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT col2 + col0 * + 85 FROM tab0 AS cor0
----
2073
2976
7647
onlyif mysql # use DIV operator for integer division
query I rowsort label-8392
SELECT ALL + - col1 * - col2 * - 46 + col2 DIV + col0 AS col1 FROM tab1 cor0
----
-26220
-57407
-64566
skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL + - col1 * - col2 * - 46 + col2 / + col0 AS col1 FROM tab1 cor0
----
-26220
-57407
-64566
query I rowsort
SELECT DISTINCT 45 + + col2 FROM tab2 AS cor0
----
71
72
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-8394
SELECT ALL col2 + col0 * ( + ( col0 ) ) DIV col0 FROM tab1 AS cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-8394
SELECT ALL col2 + col0 * ( + ( col0 ) ) / col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT col1 + col0 * col2 AS col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT col2 * + col2 * + col2 + - col1 FROM tab1 cor0
----
157438
185183
884723
query I rowsort
SELECT - 36 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab2 cor1, tab0, tab2 AS cor2
----
3645 values hashing to b050f98b2d07c1b092b73ecf6b5b347c
query I rowsort
SELECT ALL + cor0.col1 * + 62 + - 74 FROM tab2 cor0
----
1848
3584
980
query I rowsort
SELECT ALL 79 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 + tab1.col0 col0 FROM tab1
----
132
148
71
query I rowsort
SELECT DISTINCT col1 + + cor0.col2 * + col0 AS col1 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT ALL 60 AS col0 FROM tab2 AS cor0
----
60
60
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8404
SELECT - CAST( NULL AS SIGNED ) - + 20 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8404
SELECT - CAST ( NULL AS INTEGER ) - + 20 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8405
SELECT + + CAST( NULL AS DECIMAL ) * ( col2 ) * - ( col0 * col1 ) - + 19 / 10 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8405
SELECT + + CAST ( NULL AS REAL ) * ( col2 ) * - ( col0 * col1 ) - + 19 / 10 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL 83 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3
query I rowsort
SELECT cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT 33 * ( + col2 ) AS col2 FROM tab0
----
1089
2706
33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8410
SELECT - CAST( + col0 AS SIGNED ) + + tab2.col2 - + col1 AS col1 FROM tab2
----
-11
-111
-58
skipif mysql # not compatible
query I rowsort label-8410
SELECT - CAST ( + col0 AS INTEGER ) + + tab2.col2 - + col1 AS col1 FROM tab2
----
-11
-111
-58
onlyif mysql # use DIV operator for integer division
query I rowsort label-8411
SELECT DISTINCT ( + col1 ) * - tab1.col2 DIV + ( - col2 ) AS col2 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8411
SELECT DISTINCT ( + col1 ) * - tab1.col2 / + ( - col2 ) AS col2 FROM tab1
----
10
13
26
query I rowsort
SELECT cor1.col0 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT - col2 * + 82 FROM tab2
----
-2132
-2214
-3116
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * cor0.col0 + + col0 col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT + 43 FROM tab0 cor0
----
43
43
43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8416
SELECT DISTINCT tab0.col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT tab0.col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
NULL
query I rowsort
SELECT col1 + - col2 + - col0 * 66 FROM tab2 AS cor0
----
-458
-5115
-5235
query I rowsort
SELECT col2 * + 26 AS col0 FROM tab0
----
2132
26
858
query I rowsort
SELECT ALL col2 * 43 + col0 AS col1 FROM tab2 AS cor0
----
1168
1196
1713
onlyif mysql # use DIV operator for integer division
query I rowsort label-8420
SELECT DISTINCT + col1 DIV col0 - col1 DIV + col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8420
SELECT DISTINCT + col1 / col0 - col1 / + col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT col1 * - col0 * 96 - + col1 FROM tab1 cor0
----
-61450
-7514
-99853
onlyif mysql # use DIV operator for integer division
query I rowsort label-8422
SELECT DISTINCT - - col0 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT - - col0 / + col1 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - cor0.col2 + + ( - col2 ) * col0 FROM tab2 AS cor0
----
-2054
-216
-3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-8425
SELECT DISTINCT - + col2 * col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
364
590
6
skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT - + col2 * col0 / - col1 AS col1 FROM tab1 AS cor0
----
364
590
6
query I rowsort
SELECT ALL + 12 * col0 - - col2 FROM tab0 AS cor0
----
1150
321
421
query I rowsort
SELECT ALL - + 28 AS col1 FROM tab1 AS cor0
----
-28
-28
-28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8428
SELECT ALL + CAST( col1 AS SIGNED ) - + col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL + CAST ( col1 AS INTEGER ) - + col1 FROM tab2 AS cor0
----
0
0
0
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2, tab1 cor3
----
3645 values hashing to d10b928ceb6690f7c98bfe77a5adfcac
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8430
SELECT CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-8430
SELECT CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT DISTINCT + 50 AS col0 FROM tab2 AS cor0
----
50
query I rowsort
SELECT ALL - ( + 98 ) FROM tab2 AS cor0
----
-98
-98
-98
query I rowsort
SELECT DISTINCT - 54 AS col2 FROM tab2 cor0
----
-54
query I rowsort
SELECT - 0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + 54 + + col1 * col0 AS col1 FROM tab1 AS cor0
----
1094
132
694
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col1 ) col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT 41 * col2 FROM tab0 AS cor0
----
1353
3362
41
query I rowsort
SELECT ALL - col0 + - ( - cor0.col0 ) * + cor0.col1 AS col1 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT - cor0.col2 + col1 * + col1 FROM tab2 AS cor0
----
251
3455
934
onlyif mysql # use DIV operator for integer division
query I rowsort label-8440
SELECT + col0 * col2 + + col1 DIV + cor0.col2 FROM tab0 cor0
----
132
7299
794
skipif mysql # not compatible
query I rowsort label-8440
SELECT + col0 * col2 + + col1 / + cor0.col2 FROM tab0 cor0
----
132
7299
794
query I rowsort
SELECT ALL + col0 * 25 FROM tab0 AS cor0
----
2225
600
875
query I rowsort
SELECT + col2 + + 85 FROM tab1 AS cor0
----
139
142
181
query I rowsort
SELECT DISTINCT + + cor0.col2 * 73 FROM tab0 AS cor0
----
2409
5986
73
query I rowsort
SELECT - 57 * col1 * col1 - - tab1.col2 AS col2 FROM tab1
----
-38478
-5643
-9537
query I rowsort
SELECT tab0.col0 * tab0.col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT - tab1.col0 * col1 + + ( col0 ) AS col0 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT DISTINCT + ( tab2.col2 ) + 49 * + col2 * tab2.col2 - 64 AS col0 FROM tab2
----
33086
35684
70730
onlyif mysql # use DIV operator for integer division
query I rowsort label-8448
SELECT ALL + tab1.col1 DIV + col0 AS col2 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL + tab1.col1 / + col0 AS col2 FROM tab1
----
0
0
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8449
SELECT DISTINCT 93 DIV - col2 + - col2 - - col0 DIV - col2 FROM tab0
----
-129
-35
-84
skipif mysql # not compatible
query I rowsort label-8449
SELECT DISTINCT 93 / - col2 + - col2 - - col0 / - col2 FROM tab0
----
-129
-35
-84
query I rowsort
SELECT col1 * - col2 + ( col2 * col1 ) FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8451
SELECT ALL + + col0 * col1 DIV col1 + cor0.col2 DIV col1 col1 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL + + col0 * col1 / col1 + cor0.col2 / col1 col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + + cor0.col2 + col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - + cor0.col1 + + col1 - + 66 AS col1 FROM tab2 AS cor0
----
-66
-66
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col2 col0 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 + + 96 * - col1 col2 FROM tab0 cor0
----
-8194
-8734
-9250
query I rowsort
SELECT DISTINCT + col0 * 57 FROM tab1 cor0
----
171
3648
4560
query I rowsort
SELECT DISTINCT col2 + ( - tab0.col2 ) + tab0.col2 AS col0 FROM tab0
----
1
33
82
query I rowsort
SELECT - - col1 * ( 35 ) + col1 + col0 AS col2 FROM tab0 cor0
----
3120
3365
3527
query I rowsort
SELECT ALL col2 + ( 71 ) FROM tab0
----
104
153
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-8460
SELECT ALL - col0 + col0 DIV col0 col2 FROM tab0
----
-23
-34
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL - col0 + col0 / col0 col2 FROM tab0
----
-23
-34
-88
query I rowsort
SELECT ALL col0 + - ( - col1 ) FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT + 30 FROM tab1
----
30
query I rowsort
SELECT ALL - 16 * + 53 AS col1 FROM tab2
----
-848
-848
-848
query I rowsort
SELECT 43 AS col0 FROM tab0
----
43
43
43
query I rowsort
SELECT + 96 * 43 + - col1 * col0 FROM tab1
----
3088
3488
4050
query I rowsort
SELECT DISTINCT - ( col2 + + col0 ) FROM tab0
----
-171
-36
-57
query I rowsort
SELECT + cor1.col2 AS col2 FROM tab2, tab0 cor0, tab0, tab0 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + cor0.col0 * 89 col1 FROM tab1 cor0
----
321
5753
7216
query I rowsort
SELECT DISTINCT col1 - - cor0.col1 FROM tab2 AS cor0
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-8470
SELECT ALL + 20 DIV col1 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL + 20 / col1 FROM tab2 AS cor0
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8471
SELECT ALL - col0 + + col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL - col0 + + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + 18 AS col0 FROM tab2 cor0
----
18
18
18
query I rowsort
SELECT DISTINCT + + 34 * col2 + col0 FROM tab1 AS cor0
----
1839
2002
3344
onlyif mysql # use DIV operator for integer division
query I rowsort label-8474
SELECT ALL - col1 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL - col1 / col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT ALL 19 * - col2 AS col1 FROM tab2 AS cor0
----
-494
-513
-722
query I rowsort
SELECT DISTINCT + 45 * + col0 + - ( - col0 ) * col1 FROM tab2 AS cor0
----
4898
532
8112
query I rowsort
SELECT DISTINCT + cor0.col2 * - col1 + col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT - - col1 * - col0 + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT + 87 * - col2 FROM tab2 cor0
----
-2262
-2349
-3306
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8480
SELECT + col1 + - col2 * CAST( NULL AS SIGNED ) / col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8480
SELECT + col1 + - col2 * CAST ( NULL AS INTEGER ) / col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 76 * + col2 + + ( - cor0.col1 + - col0 ) AS col0 FROM tab2 AS cor0
----
1839
2014
2792
onlyif mysql # use DIV operator for integer division
query I rowsort label-8482
SELECT + + 33 + + 7 DIV - col1 FROM tab1 cor0
----
33
33
33
skipif mysql # not compatible
query I rowsort label-8482
SELECT + + 33 + + 7 / - col1 FROM tab1 cor0
----
33
33
33
query I rowsort
SELECT DISTINCT - 9 * col1 AS col2 FROM tab2 AS cor0
----
-153
-279
-531
query I rowsort
SELECT + 14 * - cor0.col0 + + col1 AS col1 FROM tab2 AS cor0
----
-1033
-1089
-67
query I rowsort
SELECT 35 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT - 79 * - ( - col1 ) AS col2 FROM tab1
----
-1027
-2054
-790
query I rowsort
SELECT ( + 99 ) AS col2 FROM tab2
----
99
99
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col0 FROM tab2
----
94
94
94
query I rowsort
SELECT col0 * col1 * col0 AS col2 FROM tab2 AS cor0
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-8490
SELECT - + cor0.col0 DIV 82 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-8490
SELECT - + cor0.col0 / 82 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + 12 AS REAL ) + - tab2.col1 col2 FROM tab2
----
-19
-47
-5
query I rowsort
SELECT ALL col1 + col0 * + col0 * - col2 FROM tab0
----
-1128
-18922
-649431
query I rowsort
SELECT DISTINCT - 20 + col2 FROM tab1
----
34
37
76
query I rowsort
SELECT DISTINCT - 5 + col2 FROM tab2
----
21
22
33
query I rowsort
SELECT 6 * - col1 FROM tab0
----
-516
-546
-582
query I rowsort
SELECT cor0.col2 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL 91 * col1 * - 36 AS col1 FROM tab1
----
-32760
-42588
-85176
query I rowsort
SELECT DISTINCT 47 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8499
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-8499
SELECT + CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL + 48 + col1 FROM tab2 AS cor0
----
107
65
79
query I rowsort
SELECT ALL + 83 - - 94 AS col2 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 3e9bae01f3a3a2b949fc6087ee51cc33
query I rowsort
SELECT - 56 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
query I rowsort
SELECT tab1.col0 * - tab1.col2 FROM tab1
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8504
SELECT ALL + col1 DIV ( + col0 ) FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL + col1 / ( + col0 ) FROM tab1
----
0
0
8
query I rowsort
SELECT + 91 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT - + col0 + 41 * 43 AS col1 FROM tab0 cor0
----
1674
1728
1739
query I rowsort
SELECT + + col2 * + ( - ( + col1 ) ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - + col2 * 64 + - col0 * - col0 FROM tab0 AS cor0
----
-1536
1161
2673
query I rowsort
SELECT - col1 + ( - 88 ) FROM tab1 AS cor0
----
-101
-114
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-8510
SELECT ALL col2 - col0 DIV tab0.col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL col2 - col0 / tab0.col1 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT + col2 * col2 - - ( - col2 ) * - col2 FROM tab1
----
18432
5832
6498
onlyif mysql # use DIV operator for integer division
query I rowsort label-8512
SELECT DISTINCT - col1 DIV col2 - - col2 * - tab1.col0 AS col1 FROM tab1
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-8512
SELECT DISTINCT - col1 / col2 - - col2 * - tab1.col0 AS col1 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - 9 AS col1 FROM tab1, tab1 cor0
----
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8514
SELECT DISTINCT col1 * col0 + + col2 DIV col0 - ( + col0 ) FROM tab0
----
2041
3360
8010
skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT col1 * col0 + + col2 / col0 - ( + col0 ) FROM tab0
----
2041
3360
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-8515
SELECT DISTINCT + col1 - 39 * tab1.col0 DIV col0 col2 FROM tab1
----
-13
-26
-29
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8515
SELECT DISTINCT + col1 - 39 * tab1.col0 / col0 col2 FROM tab1
----
-13
-26
-29
query I rowsort
SELECT col1 * - 81 * col2 + + col0 - + col2 FROM tab1
----
-101104
-113775
-46163
query I rowsort
SELECT - + col0 + + col1 AS col2 FROM tab2 cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + 22 col1 FROM tab2 AS cor0
----
-48
-49
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col1 * col1 col0 FROM tab1
----
-43
-622
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-8520
SELECT + col2 * col1 + - 64 - col0 DIV tab2.col1 col2 FROM tab2
----
1469
578
773
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8520
SELECT + col2 * col1 + - 64 - col0 / tab2.col1 col2 FROM tab2
----
1469
578
773
onlyif mysql # use DIV operator for integer division
query I rowsort label-8521
SELECT - col0 DIV col1 + + col0 AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8521
SELECT - col0 / col1 + + col0 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + 85 - - 27 FROM tab2 AS cor0
----
112
112
112
query I rowsort
SELECT ALL + col0 * - col2 * col0 + - col0 AS col1 FROM tab0 cor0
----
-1260
-19032
-649611
query I rowsort
SELECT - - 25 + - 99 * col1 AS col2 FROM tab0 AS cor0
----
-8489
-8984
-9578
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col1 col1 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8526
SELECT DISTINCT CAST( NULL AS SIGNED ) + - ( col1 ) * CAST( 88 + - cor0.col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8526
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - ( col1 ) * CAST ( 88 + - cor0.col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + 8 * - col2 * col2 - CAST ( col2 AS REAL ) * + col2 * col2 AS col2 FROM tab0 AS cor0
----
-44649
-605160
-9
query I rowsort
SELECT ALL col2 + + col2 * cor0.col2 FROM tab0 cor0
----
1122
2
6806
onlyif mysql # use DIV operator for integer division
query I rowsort label-8529
SELECT - - col0 DIV col0 + col0 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-8529
SELECT - - col0 / col0 + col0 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT DISTINCT + 79 + col1 * - cor0.col2 FROM tab0 AS cor0
----
-18
-2759
-7383
query I rowsort
SELECT DISTINCT - ( - 50 ) + cor0.col2 AS col1 FROM tab2 AS cor0
----
76
77
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8532
SELECT - CAST( col0 AS SIGNED ) + + col1 AS col0 FROM tab0 AS cor0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-8532
SELECT - CAST ( col0 AS INTEGER ) + + col1 AS col0 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-8533
SELECT - + col0 - col2 DIV col1 AS col2 FROM tab0 cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-8533
SELECT - + col0 - col2 / col1 AS col2 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT + tab2.col0 * + 48 AS col2 FROM tab2
----
336
3744
3792
query I rowsort
SELECT ALL ( + 97 ) - + col1 AS col1 FROM tab2 AS cor0
----
38
66
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 + - col1 col0 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT ALL - ( 73 ) * - col2 * - ( col1 ) AS col2 FROM tab2 AS cor0
----
-111982
-47158
-61101
query I rowsort
SELECT + 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-8539
SELECT DISTINCT + CAST( cor0.col1 AS SIGNED ) * + cor0.col0 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT + CAST ( cor0.col1 AS INTEGER ) * + cor0.col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - - 81 * col1 AS col1 FROM tab2 cor0
----
1377
2511
4779
query I rowsort
SELECT - col2 + - col1 AS col0 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT + cor0.col0 + - cor0.col1 * - col1 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT + - col0 * cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT 79 * tab0.col1 AS col1 FROM tab0
----
6794
7189
7663
query I rowsort
SELECT - - 90 * - col0 FROM tab0 AS cor0
----
-2160
-3150
-8010
query I rowsort
SELECT 54 * + col0 FROM tab0 AS cor0
----
1296
1890
4806
query I rowsort
SELECT + 42 * + col0 AS col2 FROM tab2 AS cor0
----
294
3276
3318
query I rowsort
SELECT DISTINCT + - cor0.col0 + col0 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT col2 * + ( - col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - + col0 * - cor0.col1 AS col2 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL col1 + - 21 FROM tab1 AS cor0
----
-11
-8
5
query I rowsort
SELECT ALL + col2 - + 10 FROM tab2 AS cor0
----
16
17
28
query I rowsort
SELECT DISTINCT ( + col0 + + 32 ) AS col0 FROM tab2
----
110
111
39
query I rowsort
SELECT DISTINCT - + 20 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-20
query I rowsort
SELECT + + col2 + col2 * - ( - col1 * + col2 ) FROM tab2 cor0
----
22626
24586
39910
query I rowsort
SELECT DISTINCT - 10 * + col2 + col1 FROM tab1 AS cor0
----
-514
-560
-947
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 * - col2 + - col0 col2 FROM tab0 cor0
----
-133
-2895
-7633
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8558
SELECT - cor0.col0 + - col0 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8558
SELECT - cor0.col0 + - col0 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + 42 AS col1 FROM tab1 cor0
----
-42
query I rowsort
SELECT ( - col1 ) * - col1 + + col0 AS col0 FROM tab0
----
7420
8370
9444
query I rowsort
SELECT ( 51 ) AS col0 FROM tab0
----
51
51
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8562
SELECT - CAST( NULL AS SIGNED ) / + tab1.col0 + tab1.col1 - col1 col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8562
SELECT - CAST ( NULL AS INTEGER ) / + tab1.col0 + tab1.col1 - col1 col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + + 0 * - col0 FROM tab0
----
1
33
82
query I rowsort
SELECT + 81 + - col0 FROM tab2
----
2
3
74
query I rowsort
SELECT ALL 86 + tab1.col1 AS col0 FROM tab1
----
112
96
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-8566
SELECT col1 + col2 * col0 DIV col0 + col2 AS col0 FROM tab1
----
124
134
205
skipif mysql # not compatible
query I rowsort label-8566
SELECT col1 + col2 * col0 / col0 + col2 AS col0 FROM tab1
----
124
134
205
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8567
SELECT + cor0.col1 * col0 + + CAST( - col0 AS SIGNED ) col2 FROM tab2 AS cor0
----
1264
210
4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8567
SELECT + cor0.col1 * col0 + + CAST ( - col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
1264
210
4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 - + col1 col2 FROM tab0 AS cor0
----
-117
-122
-128
query I rowsort
SELECT + 16 + - col0 FROM tab2 cor0
----
-62
-63
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8570
SELECT 25 + col2 - + 83 * col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
-11
52
75
skipif mysql # not compatible
query I rowsort label-8570
SELECT 25 + col2 - + 83 * col0 / + col2 AS col1 FROM tab1 AS cor0
----
-11
52
75
query I rowsort
SELECT DISTINCT + 76 * col1 AS col0 FROM tab0 AS cor0
----
6536
6916
7372
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8572
SELECT ALL + 60 * - cor0.col2 * + CAST( NULL AS SIGNED ) + cor0.col1 + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8572
SELECT ALL + 60 * - cor0.col2 * + CAST ( NULL AS INTEGER ) + cor0.col1 + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 * col1 + ( + col1 ) FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT - 7 AS col2 FROM tab2 cor0
----
-7
query I rowsort
SELECT - - cor0.col1 - - col1 AS col0 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8576
SELECT DISTINCT + col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8576
SELECT DISTINCT + col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col0 * ( - col2 ) + - col2 * ( cor0.col0 ) FROM tab0 AS cor0
----
-14596
-1584
-70
query I rowsort
SELECT ( - cor0.col0 ) + + col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 62 AS col2 FROM tab1 AS cor0
----
-62
query I rowsort
SELECT ALL - + ( - col2 ) + + col1 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) * col2 col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col2 + 89 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-75
23
87
query I rowsort
SELECT 59 AS col1 FROM tab1 cor0
----
59
59
59
query I rowsort
SELECT ALL + col1 + col0 * col2 * col0 AS col2 FROM tab0 AS cor0
----
1322
19094
649613
query I rowsort
SELECT DISTINCT - 45 FROM tab0, tab0 AS cor0
----
-45
query I rowsort
SELECT DISTINCT + col1 * + col2 + col0 FROM tab0 cor0
----
132
2862
7551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8587
SELECT ALL CAST( NULL AS DECIMAL ) * ( + col1 ) + col2 * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8587
SELECT ALL CAST ( NULL AS REAL ) * ( + col1 ) + col2 * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( 97 ) + + col1 FROM tab0 AS cor0
----
-11
-6
0
query I rowsort
SELECT ALL - 93 * col0 * col2 + + cor0.col1 * - col0 AS col0 FROM tab1 AS cor0
----
-15144
-339904
-715280
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8590
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8590
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 59 * - col0 AS col2 FROM tab2 AS cor0
----
-413
-4602
-4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8592
SELECT DISTINCT - + col1 + ( - col2 * CAST( NULL AS SIGNED ) + col1 ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8592
SELECT DISTINCT - + col1 + ( - col2 * CAST ( NULL AS INTEGER ) + col1 ) AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - + 32 * col0 FROM tab2 AS cor0
----
-224
-2496
-2528
query I rowsort
SELECT DISTINCT - col2 + 3 AS col0 FROM tab0 AS cor0
----
-30
-79
2
query I rowsort
SELECT - ( 74 ) + col2 FROM tab1 AS cor0
----
-17
-20
22
query I rowsort
SELECT DISTINCT - col2 * - col0 * + col2 FROM tab1 AS cor0
----
207936
737280
8748
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8597
SELECT + CAST( NULL AS SIGNED ) * - 79 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8597
SELECT + CAST ( NULL AS INTEGER ) * - 79 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 * - ( col2 ) * col1 AS col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( ( col0 ) ) * col0 col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - ( + 20 ) FROM tab2 AS cor0
----
-20
-20
-20
query I rowsort
SELECT - col1 + + col0 AS col1 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT ALL 86 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
query I rowsort
SELECT ALL + col2 * + col1 + - col2 * col0 FROM tab0 AS cor0
----
164
2046
62
query I rowsort
SELECT DISTINCT - ( + tab1.col0 ) * - col1 AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL - - cor0.col1 * - ( + col2 ) FROM tab2 AS cor0
----
-1534
-646
-837
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to d2c0c94b38e721d8cf9f7df226475a2f
onlyif mysql # use DIV operator for integer division
query I rowsort label-8607
SELECT DISTINCT + col0 DIV - ( + ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-8607
SELECT DISTINCT + col0 / - ( + ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-1
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8608
SELECT DISTINCT + + cor0.col2 * CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-8608
SELECT DISTINCT + + cor0.col2 * CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8609
SELECT - cor0.col2 + ( - 1 ) DIV - col1 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-8609
SELECT - cor0.col2 + ( - 1 ) / - col1 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - + col1 + - col2 * + 14 FROM tab2 cor0
----
-409
-423
-549
onlyif mysql # use DIV operator for integer division
query I rowsort label-8611
SELECT + - col2 + col2 DIV + 23 FROM tab1 AS cor0
----
-52
-55
-92
skipif mysql # not compatible
query I rowsort label-8611
SELECT + - col2 + col2 / + 23 FROM tab1 AS cor0
----
-52
-55
-92
query I rowsort
SELECT ALL + 9 + - col2 FROM tab1
----
-45
-48
-87
query I rowsort
SELECT + col1 * 98 + cor0.col0 FROM tab1 AS cor0
----
1044
1354
2551
onlyif mysql # use DIV operator for integer division
query I rowsort label-8614
SELECT col1 + tab0.col1 DIV col1 AS col2 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-8614
SELECT col1 + tab0.col1 / col1 AS col2 FROM tab0
----
87
92
98
query I rowsort
SELECT + + col1 * - ( - col2 ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT col1 * 35 FROM tab2
----
1085
2065
595
onlyif mysql # use DIV operator for integer division
query I rowsort label-8617
SELECT 39 - col0 DIV ( cor0.col1 ) AS col2 FROM tab1 cor0
----
33
33
39
skipif mysql # not compatible
query I rowsort label-8617
SELECT 39 - col0 / ( cor0.col1 ) AS col2 FROM tab1 cor0
----
33
33
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * + 35 - 43 * - cor0.col0 col2 FROM tab2 AS cor0
----
56
624
632
onlyif mysql # use DIV operator for integer division
query I rowsort label-8619
SELECT ( col1 ) + col0 + cor0.col1 DIV + col2 FROM tab1 AS cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-8619
SELECT ( col1 ) + col0 + cor0.col1 / + col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT cor0.col1 - col1 * - col2 AS col1 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-8621
SELECT DISTINCT - col0 + + 51 * + col1 DIV - col1 FROM tab2
----
-129
-130
-58
skipif mysql # not compatible
query I rowsort label-8621
SELECT DISTINCT - col0 + + 51 * + col1 / - col1 FROM tab2
----
-129
-130
-58
query I rowsort
SELECT + tab1.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8623
SELECT col0 * col0 * CAST( col1 AS SIGNED ) FROM tab1
----
234
40960
83200
skipif mysql # not compatible
query I rowsort label-8623
SELECT col0 * col0 * CAST ( col1 AS INTEGER ) FROM tab1
----
234
40960
83200
query I rowsort
SELECT - col1 * col2 + 29 FROM tab2 cor0
----
-1505
-617
-808
onlyif mysql # use DIV operator for integer division
query I rowsort label-8625
SELECT col0 + col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-8625
SELECT col0 + col2 / - col2 AS col2 FROM tab0 AS cor0
----
23
34
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8626
SELECT + - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-8626
SELECT + - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8627
SELECT DISTINCT + col1 DIV - col0 AS col1 FROM tab1
----
-8
0
skipif mysql # not compatible
query I rowsort label-8627
SELECT DISTINCT + col1 / - col0 AS col1 FROM tab1
----
-8
0
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1, tab0 cor1
----
972 values hashing to 5e655b1287771868a8f868574a94d749
query I rowsort
SELECT 83 * col0 FROM tab0
----
1992
2905
7387
query I rowsort
SELECT + ( + col0 ) * col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + 16 + - 19 FROM tab0 cor0
----
-3
-3
-3
query I rowsort
SELECT DISTINCT + 29 + + col2 + + col1 AS col1 FROM tab1 AS cor0
----
109
138
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8633
SELECT DISTINCT + col1 * col0 * col0 + col0 * col0 DIV + col2 col2 FROM tab1 AS cor0
----
234
41031
83266
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8633
SELECT DISTINCT + col1 * col0 * col0 + col0 * col0 / + col2 col2 FROM tab1 AS cor0
----
234
41031
83266
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8634
SELECT CAST( col0 AS SIGNED ) * - col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-8634
SELECT CAST ( col0 AS INTEGER ) * - col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8635
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 * - col0 AS col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 * - col0 AS col2 FROM tab1 cor0
----
NULL
query I rowsort
SELECT ALL ( - ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + col2 * - col1 + + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL 81 * col0 * cor0.col0 FROM tab2 AS cor0
----
3969
492804
505521
query I rowsort
SELECT DISTINCT - 28 * col1 * col2 + + cor0.col0 FROM tab2 AS cor0
----
-18009
-23429
-42874
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT - 9 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a
query I rowsort
SELECT ALL - ( 25 ) FROM tab2
----
-25
-25
-25
query I rowsort
SELECT 82 AS col0 FROM tab0
----
82
82
82
query I rowsort
SELECT ALL - tab2.col0 * - tab2.col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - 42 * - cor0.col0 + - col0 AS col2 FROM tab0 AS cor0
----
1435
3649
984
query I rowsort
SELECT - 37 + col2 FROM tab0 AS cor0
----
-36
-4
45
query I rowsort
SELECT ALL 89 * tab0.col0 - - col2 * col2 FROM tab0
----
14645
3116
3225
query I rowsort
SELECT ALL - col1 - - col0 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT ALL + col1 * col1 + col2 AS col2 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT + + 44 * col2 FROM tab0 AS cor0
----
1452
3608
44
query I rowsort
SELECT DISTINCT col0 + - col0 * + col1 FROM tab1 cor0
----
-576
-75
-960
query I rowsort
SELECT col1 * - cor0.col0 + cor0.col0 * - col1 AS col0 FROM tab0 cor0
----
-16198
-4128
-6790
query I rowsort
SELECT DISTINCT + + 71 + col2 FROM tab2 AS cor0
----
109
97
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-8654
SELECT ALL + 26 DIV + col1 + col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL + 26 / + col1 + col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + cor0.col0 * col2 * + col2 FROM tab0 cor0
----
26136
35
598436
query I rowsort
SELECT col0 * 21 AS col1 FROM tab1
----
1344
1680
63
query I rowsort
SELECT + col2 + ( - cor0.col2 ) FROM tab1 AS cor0
----
0
0
0
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab2, tab2 cor1
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 89 col0 FROM tab1 AS cor0
----
-102
-115
-99
query I rowsort
SELECT + + col2 + col1 * col1 * col2 FROM tab1 AS cor0
----
16320
36558
5757
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * 50 + - col0 col2 FROM tab0 AS cor0
----
1176
1715
4361
query I rowsort
SELECT + col1 + col0 AS col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT 75 * col1 AS col0 FROM tab1 AS cor0
----
1950
750
975
query I rowsort
SELECT DISTINCT + + col2 + - 8 * + col2 FROM tab0 cor0
----
-231
-574
-7
query I rowsort
SELECT ( cor0.col1 ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT + 63 FROM tab1, tab1 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT - + col1 * - 19 FROM tab1 AS cor0
----
190
247
494
query I rowsort
SELECT ALL 17 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
onlyif mysql # use DIV operator for integer division
query I rowsort label-8669
SELECT ALL col0 DIV + col2 col0 FROM tab0 cor0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL col0 / + col2 col0 FROM tab0 cor0
----
0
1
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8670
SELECT ALL - CAST( ( col2 ) AS SIGNED ) * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL - CAST ( ( col2 ) AS INTEGER ) * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT + col2 + 66 FROM tab1 AS cor0
----
120
123
162
onlyif mysql # use DIV operator for integer division
query I rowsort label-8672
SELECT - - col0 DIV + ( col1 ) FROM tab2 cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-8672
SELECT - - col0 / + ( col1 ) FROM tab2 cor0
----
0
1
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-8673
SELECT + col2 * col2 DIV col1 FROM tab1 AS cor0
----
112
324
708
skipif mysql # not compatible
query I rowsort label-8673
SELECT + col2 * col2 / col1 FROM tab1 AS cor0
----
112
324
708
query I rowsort
SELECT ALL col0 + + 26 FROM tab2 AS cor0
----
104
105
33
query I rowsort
SELECT - - cor0.col0 * + 14 FROM tab1 AS cor0
----
1120
42
896
onlyif mysql # use DIV operator for integer division
query I rowsort label-8676
SELECT ALL + col2 * cor0.col0 DIV cor0.col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL + col2 * cor0.col0 / cor0.col2 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8677
SELECT - col0 / CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8677
SELECT - col0 / CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8678
SELECT + cor0.col2 DIV - col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-8678
SELECT + cor0.col2 / - col1 FROM tab1 AS cor0
----
-2
-5
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8679
SELECT DISTINCT + - col2 + 53 DIV + col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-8679
SELECT DISTINCT + - col2 + 53 / + col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + + 53 - - tab0.col1 * - 51 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 1022ac29c5d2d6cae07e82af44d1ad90
query I rowsort
SELECT col2 + - col1 * ( + col1 + col1 * + col2 ) FROM tab2
----
-11233
-26881
-93961
query I rowsort
SELECT DISTINCT col1 + col1 AS col2 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT DISTINCT - col0 + + 15 AS col1 FROM tab1 AS cor0
----
-49
-65
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 + + col0 col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col0 * + 28 + col1 FROM tab1 AS cor0
----
110
1802
2253
query I rowsort
SELECT DISTINCT + col1 * + col0 * ( - col2 * + col0 ) - col0 * col2 FROM tab1
----
-12798
-2338368
-7994880
query I rowsort
SELECT 42 * + 72 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 99e0abe2588d577b69cded568ae172c5
query I rowsort
SELECT DISTINCT + col0 * + 63 AS col1 FROM tab1 cor0
----
189
4032
5040
onlyif mysql # use DIV operator for integer division
query I rowsort label-8689
SELECT ALL - + col0 DIV ( + col2 ) FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL - + col0 / ( + col2 ) FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT col0 + + col2 * + col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL tab1.col1 * 22 AS col2 FROM tab1
----
220
286
572
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8692
SELECT DISTINCT - col0 + + col2 * CAST( 95 AS SIGNED ) FROM tab1 AS cor0
----
5127
5351
9040
skipif mysql # not compatible
query I rowsort label-8692
SELECT DISTINCT - col0 + + col2 * CAST ( 95 AS INTEGER ) FROM tab1 AS cor0
----
5127
5351
9040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + cor0.col1 col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8694
SELECT + + 28 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8694
SELECT + + 28 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 6 * + ( - cor0.col0 ) AS col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
42
468
474
query I rowsort
SELECT - 96 - col1 FROM tab0
----
-182
-187
-193
query I rowsort
SELECT + - cor0.col0 + col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-8698
SELECT 17 DIV col1 + + col0 * - 26 FROM tab2
----
-182
-2028
-2053
skipif mysql # not compatible
query I rowsort label-8698
SELECT 17 / col1 + + col0 * - 26 FROM tab2
----
-182
-2028
-2053
query I rowsort
SELECT ALL + + 59 + - col2 FROM tab1 AS cor0
----
-37
2
5
query I rowsort
SELECT + col1 * + col1 * 55 FROM tab1 AS cor0
----
37180
5500
9295
query I rowsort
SELECT ALL - 18 AS col2 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e
query I rowsort
SELECT + 1 * - col2 AS col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT 10 * col1 + col2 * 32 * + col2 + col2 * col1 AS col1 FROM tab2 AS cor0
----
23756
24475
47024
query I rowsort
SELECT ALL col2 * - col2 + col2 AS col2 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL - - col1 * + col2 + + ( 29 ) * - col1 FROM tab0 AS cor0
----
-2716
344
4823
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8706
SELECT DISTINCT col0 + col2 + - CAST( 26 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
10
145
31
skipif mysql # not compatible
query I rowsort label-8706
SELECT DISTINCT col0 + col2 + - CAST ( 26 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
10
145
31
query I rowsort
SELECT DISTINCT + 44 - col0 FROM tab1 AS cor0
----
-20
-36
41
query I rowsort
SELECT - col2 * cor0.col2 + 24 FROM tab0 AS cor0
----
-1065
-6700
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8709
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + cor1.col2 + - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-8709
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + cor1.col2 + - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
query I rowsort
SELECT DISTINCT cor0.col1 + + 30 AS col2 FROM tab0 AS cor0
----
116
121
127
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - col0 col0 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT ALL - col2 * 48 FROM tab1 AS cor0
----
-2592
-2736
-4608
query I rowsort
SELECT col2 + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT + col1 * - 91 FROM tab2 AS cor0
----
-1547
-2821
-5369
query I rowsort
SELECT - 39 * cor0.col1 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8f9f14ef6fc1705922ed31c1c226478a
query I rowsort
SELECT + + col2 - ( - col0 + - col0 ) FROM tab0 cor0
----
260
71
81
query I rowsort
SELECT DISTINCT col1 * - 90 - - col0 AS col2 FROM tab2 AS cor0
----
-1451
-2783
-5232
query I rowsort
SELECT - - 67 * - col2 - + cor0.col0 AS col0 FROM tab0 cor0
----
-102
-2235
-5583
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + cor0.col2 col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT 69 + cor0.col0 AS col0 FROM tab2 AS cor0
----
147
148
76
query I rowsort
SELECT col0 * col0 + col1 * - col0 + col2 * col2 * 43 FROM tab0 AS cor0
----
-2127
288954
45339
query I rowsort
SELECT - ( - col2 ) * - 61 AS col2 FROM tab1 AS cor0
----
-3294
-3477
-5856
query I rowsort
SELECT ALL - + col1 + col0 - + col1 FROM tab1 AS cor0
----
-49
44
54
query I rowsort
SELECT ALL 67 AS col2 FROM tab0 AS cor0
----
67
67
67
query I rowsort
SELECT DISTINCT - col0 * col2 + 40 + - col2 FROM tab2 AS cor0
----
-176
-2014
-3000
query I rowsort
SELECT ALL + - 70 - + col0 AS col0 FROM tab2 AS cor0
----
-148
-149
-77
query I rowsort
SELECT - ( - col1 ) + + ( 78 ) FROM tab2 AS cor0
----
109
137
95
query I rowsort
SELECT DISTINCT ( tab1.col2 ) + - tab1.col0 * + 6 AS col2 FROM tab1
----
-327
-384
36
query I rowsort
SELECT DISTINCT + col2 + 10 FROM tab1
----
106
64
67
query I rowsort
SELECT - 11 + tab2.col1 FROM tab2
----
20
48
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-8732
SELECT 55 DIV + tab2.col0 + col0 AS col1 FROM tab2
----
14
78
79
skipif mysql # not compatible
query I rowsort label-8732
SELECT 55 / + tab2.col0 + col0 AS col1 FROM tab2
----
14
78
79
query I rowsort
SELECT ALL + cor1.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-8734
SELECT col2 * col1 + col2 * + col1 * col1 + tab1.col2 DIV + 11 FROM tab1
----
17480
37912
6275
skipif mysql # not compatible
query I rowsort label-8734
SELECT col2 * col1 + col2 * + col1 * col1 + tab1.col2 / + 11 FROM tab1
----
17480
37912
6275
query I rowsort
SELECT col0 * + col2 * col0 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT ALL ( col2 * col0 ) FROM tab2
----
189
2028
3002
query I rowsort
SELECT + 87 * col2 AS col1 FROM tab0 cor0
----
2871
7134
87
query I rowsort
SELECT + - 52 AS col1 FROM tab2 cor0
----
-52
-52
-52
query I rowsort
SELECT col0 + 51 FROM tab1 AS cor0
----
115
131
54
query I rowsort
SELECT + col0 * cor0.col2 + - 23 * col1 FROM tab0 AS cor0
----
-1186
-2196
5205
query I rowsort
SELECT col0 * - col0 * cor0.col1 + + col2 AS col2 FROM tab1 AS cor0
----
-180
-40903
-83104
query I rowsort
SELECT ALL - + cor0.col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8743
SELECT + - col0 DIV col1 + 12 * - 96 * col1 col1 FROM tab0 AS cor0
----
-104832
-111744
-99072
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8743
SELECT + - col0 / col1 + 12 * - 96 * col1 col1 FROM tab0 AS cor0
----
-104832
-111744
-99072
query I rowsort
SELECT + ( col2 ) - ( - col0 ) AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - - col0 - col0 * - 23 FROM tab0 AS cor0
----
2136
576
840
query I rowsort
SELECT DISTINCT + 75 + cor0.col1 FROM tab1 AS cor0
----
101
85
88
query I rowsort
SELECT DISTINCT 43 - - col2 FROM tab0 AS cor0
----
125
44
76
query I rowsort
SELECT + col1 * 9 AS col1 FROM tab2 AS cor0
----
153
279
531
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to c670882ff9ea3f0bb08fc55ec569be96
query I rowsort
SELECT DISTINCT col1 * + ( col0 ) AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + - col2 * col1 + cor0.col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT col2 + + ( - col1 ) FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT + cor0.col0 * col1 * + col0 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT - - col0 * col2 AS col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT + + col1 + col1 AS col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL - - col1 * col1 AS col1 FROM tab2 AS cor0
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 81 ) col2 FROM tab0, tab2 cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1
query I rowsort
SELECT ALL - col1 * 87 AS col1 FROM tab2 cor0
----
-1479
-2697
-5133
query I rowsort
SELECT + + 69 * col1 FROM tab1 cor0
----
1794
690
897
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 + col2 col0 FROM tab0 cor0
----
17
49
98
query I rowsort
SELECT ALL + col1 - cor0.col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8762
SELECT ALL col0 DIV 10 FROM tab2
----
0
7
7
skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL col0 / 10 FROM tab2
----
0
7
7
query I rowsort
SELECT col2 * tab2.col0 - + col0 FROM tab2
----
182
1950
2923
query I rowsort
SELECT DISTINCT - 8 * 0 AS col1 FROM tab0
----
0
query I rowsort
SELECT ALL ( col2 ) AS col2 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL + col2 * 42 * + col2 AS col2 FROM tab2
----
28392
30618
60648
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) * col1 col0 FROM tab0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8768
SELECT - - col1 DIV + CAST( 63 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8768
SELECT - - col1 / + CAST ( 63 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 * + 10 FROM tab2 AS cor0
----
70
780
790
onlyif mysql # use DIV operator for integer division
query I rowsort label-8770
SELECT DISTINCT + + col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-8770
SELECT DISTINCT + + col2 / - col1 AS col1 FROM tab2 AS cor0
----
-2
0
query I rowsort
SELECT col0 * 93 + + col0 FROM tab1 cor0
----
282
6016
7520
query I rowsort
SELECT ALL + + col1 AS col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL tab2.col0 - col2 AS col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT DISTINCT 90 + col1 - + tab0.col1 * + ( + col2 * col2 ) FROM tab0
----
-611703
-93478
90
query I rowsort
SELECT DISTINCT ( + col0 ) * col0 + - 54 - + col2 AS col1 FROM tab0
----
1170
489
7785
query I rowsort
SELECT + ( + col1 ) AS col0 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT 31 FROM tab0
----
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-8778
SELECT DISTINCT + col0 + ( col0 ) DIV - col1 + - col1 AS col2 FROM tab0
----
-2
-62
skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT + col0 + ( col0 ) / - col1 + - col1 AS col2 FROM tab0
----
-2
-62
query I rowsort
SELECT + 11 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 0c9c9a26da1b45580001288543ac8dbe
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + ( + col1 ) + + col2 col1 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT col0 * ( col1 ) AS col0 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8783
SELECT col0 + 95 DIV - col1 AS col0 FROM tab2 AS cor0
----
4
74
77
skipif mysql # not compatible
query I rowsort label-8783
SELECT col0 + 95 / - col1 AS col0 FROM tab2 AS cor0
----
4
74
77
query I rowsort
SELECT - col1 * 80 + 73 AS col2 FROM tab1 AS cor0
----
-2007
-727
-967
query I rowsort
SELECT - 85 * - col2 AS col2 FROM tab2
----
2210
2295
3230
query I rowsort
SELECT + 5 + - col0 FROM tab2 cor0
----
-2
-73
-74
query I rowsort
SELECT ALL ( - tab1.col2 ) AS col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT - 7 * - col0 + - col1 AS col2 FROM tab2 AS cor0
----
18
487
536
query I rowsort
SELECT DISTINCT - + 4 - col2 AS col0 FROM tab1 AS cor0
----
-100
-58
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-8790
SELECT - + col2 * + col0 * - ( + col2 ) + col1 DIV + cor0.col0 AS col0 FROM tab0 cor0
----
26139
37
598437
skipif mysql # not compatible
query I rowsort label-8790
SELECT - + col2 * + col0 * - ( + col2 ) + col1 / + cor0.col0 AS col0 FROM tab0 cor0
----
26139
37
598437
onlyif mysql # use DIV operator for integer division
query I rowsort label-8791
SELECT ALL - 51 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
-7
0
0
skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL - 51 / cor0.col0 AS col1 FROM tab2 AS cor0
----
-7
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8792
SELECT DISTINCT col2 DIV + col1 AS col0 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT col2 / + col1 AS col0 FROM tab1 AS cor0
----
2
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8793
SELECT ALL + col0 DIV col0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-8793
SELECT ALL + col0 / col0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT + col0 * ( + cor0.col2 ) FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8795
SELECT ALL col1 * CAST( NULL AS SIGNED ) + 98 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL col1 * CAST ( NULL AS INTEGER ) + 98 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col2 + 75 FROM tab0 AS cor0
----
-7
42
74
query I rowsort
SELECT ALL - col1 * + 95 AS col2 FROM tab1 AS cor0
----
-1235
-2470
-950
query I rowsort
SELECT - - col1 + - 45 AS col1 FROM tab0 AS cor0
----
41
46
52
query I rowsort
SELECT DISTINCT + 63 FROM tab2
----
63
query I rowsort
SELECT ALL + col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT - - col1 * - col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8802
SELECT ALL - CAST( NULL AS DECIMAL ) * - ( + col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL - CAST ( NULL AS REAL ) * - ( + col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8803
SELECT ALL + + col1 DIV col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL + + col1 / col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 + - col0 * col1 * - col0 FROM tab0 AS cor0
----
118826
49569
720893
onlyif mysql # use DIV operator for integer division
query I rowsort label-8805
SELECT + 37 * - 33 + + col0 DIV col0 AS col0 FROM tab0 AS cor0
----
-1220
-1220
-1220
skipif mysql # not compatible
query I rowsort label-8805
SELECT + 37 * - 33 + + col0 / col0 AS col0 FROM tab0 AS cor0
----
-1220
-1220
-1220
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8806
SELECT DISTINCT CAST( col1 AS SIGNED ) * col1 + + col0 * - col2 FROM tab0 AS cor0
----
6604
9374
983
skipif mysql # not compatible
query I rowsort label-8806
SELECT DISTINCT CAST ( col1 AS INTEGER ) * col1 + + col0 * - col2 FROM tab0 AS cor0
----
6604
9374
983
query I rowsort
SELECT 50 * col0 + + col2 AS col0 FROM tab0 AS cor0
----
1233
1751
4532
query I rowsort
SELECT ALL - col2 - col0 * col2 AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT DISTINCT - col2 * - 65 + col0 AS col0 FROM tab2 AS cor0
----
1762
1768
2549
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8810
SELECT DISTINCT col1 * + 5 + col2 * CAST( NULL AS SIGNED ) - cor0.col1 * - col2 / - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8810
SELECT DISTINCT col1 * + 5 + col2 * CAST ( NULL AS INTEGER ) - cor0.col1 * - col2 / - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - - 12 AS col0 FROM tab2 AS cor0
----
12
12
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col2 col0 FROM tab1 AS cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + col2 col1 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-8814
SELECT ALL col1 DIV - col1 AS col1 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL col1 / - col1 AS col1 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - + col0 + 4 AS col2 FROM tab0 AS cor0
----
-20
-31
-85
query I rowsort
SELECT ALL + col1 + cor0.col1 * col1 AS col2 FROM tab2 cor0
----
306
3540
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-8817
SELECT DISTINCT - - cor0.col2 DIV 97 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8817
SELECT DISTINCT - - cor0.col2 / 97 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - ( + col2 ) + - col1 * + col2 + 99 AS col0 FROM tab0 AS cor0
----
-2772
-7445
1
query I rowsort
SELECT 72 + col2 + col1 FROM tab2 AS cor0
----
127
130
157
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8820
SELECT - ( col1 ) * col1 + + CAST( + 31 AS SIGNED ) col0 FROM tab2 AS cor0
----
-258
-3450
-930
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8820
SELECT - ( col1 ) * col1 + + CAST ( + 31 AS INTEGER ) col0 FROM tab2 AS cor0
----
-258
-3450
-930
query I rowsort
SELECT ALL 96 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT ALL - 17 FROM tab0 cor0
----
-17
-17
-17
onlyif mysql # use DIV operator for integer division
query I rowsort label-8823
SELECT DISTINCT + cor0.col0 DIV tab2.col1 FROM tab2, tab1 AS cor0
----
0
1
2
3
4
skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT + cor0.col0 / tab2.col1 FROM tab2, tab1 AS cor0
----
0
1
2
3
4
query I rowsort
SELECT + ( col1 ) * col2 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8825
SELECT ALL col0 * tab1.col0 + + col1 * 78 DIV tab1.col0 FROM tab1
----
4108
6412
685
skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL col0 * tab1.col0 + + col1 * 78 / tab1.col0 FROM tab1
----
4108
6412
685
onlyif mysql # use DIV operator for integer division
query I rowsort label-8826
SELECT - + col0 + col1 DIV col2 col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8826
SELECT - + col0 + col1 / col2 col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + ( - col1 ) + 81 * col1 FROM tab1 cor0
----
1040
2080
800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 * ( col2 ) col0 FROM tab1 AS cor0
----
-2890
-3239
-9203
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8829
SELECT - col2 * col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8829
SELECT - col2 * col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1456
567
830
onlyif mysql # use DIV operator for integer division
query I rowsort label-8831
SELECT + ( col0 ) DIV - col2 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8831
SELECT + ( col0 ) / - col2 FROM tab1
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8832
SELECT ALL CAST( 7 AS SIGNED ) + col2 + ( col1 ) AS col2 FROM tab2
----
62
65
92
skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL CAST ( 7 AS INTEGER ) + col2 + ( col1 ) AS col2 FROM tab2
----
62
65
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + cor0.col1 + - col2 col1 FROM tab2 AS cor0
----
1508
608
810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8834
SELECT + + 29 * - cor0.col2 + CAST( NULL AS SIGNED ) - col1 * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8834
SELECT + + 29 * - cor0.col2 + CAST ( NULL AS INTEGER ) - col1 * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + col1 + col2 AS col0 FROM tab0
----
195
205
264
onlyif mysql # use DIV operator for integer division
query I rowsort label-8836
SELECT DISTINCT - col1 + - 45 DIV col0 FROM tab0
----
-87
-91
-98
skipif mysql # not compatible
query I rowsort label-8836
SELECT DISTINCT - col1 + - 45 / col0 FROM tab0
----
-87
-91
-98
query I rowsort
SELECT DISTINCT + 56 + col1 FROM tab1
----
66
69
82
query I rowsort
SELECT col1 * col2 + - col2 + col2 * col0 FROM tab1
----
1512
4161
8832
query I rowsort
SELECT + ( 96 ) AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
query I rowsort
SELECT col1 + ( col1 * col1 ) AS col2 FROM tab2
----
306
3540
992
query I rowsort
SELECT + tab0.col2 + col0 AS col2 FROM tab0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8842
SELECT ALL + col2 DIV cor0.col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL + col2 / cor0.col0 FROM tab2 AS cor0
----
0
0
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-8843
SELECT + + cor0.col1 * col1 + - ( col0 ) DIV col2 + col2 FROM tab0 AS cor0
----
7429
8362
9375
skipif mysql # not compatible
query I rowsort label-8843
SELECT + + cor0.col1 * col1 + - ( col0 ) / col2 + col2 FROM tab0 AS cor0
----
7429
8362
9375
query I rowsort
SELECT ALL cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * - col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - 98 + col1 FROM tab0 AS cor0
----
-1
-12
-7
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-8848
SELECT - ( 54 ) DIV col1 FROM tab1 AS cor0
----
-2
-4
-5
skipif mysql # not compatible
query I rowsort label-8848
SELECT - ( 54 ) / col1 FROM tab1 AS cor0
----
-2
-4
-5
query I rowsort
SELECT col1 * - 68 * cor0.col1 FROM tab0 AS cor0
----
-502928
-563108
-639812
query I rowsort
SELECT ALL + col0 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col2 + - 9 FROM tab1 cor0
----
45
48
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-8852
SELECT ALL - col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8852
SELECT ALL - col1 / - col1 AS col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - - col1 * col2 + col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT - cor1.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT ALL - 81 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1
query I rowsort
SELECT ALL - 85 + col2 FROM tab1 AS cor0
----
-28
-31
11
query I rowsort
SELECT DISTINCT ( 67 ) FROM tab2, tab0, tab2 cor0
----
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8858
SELECT + - CAST( NULL AS SIGNED ) 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-8858
SELECT + - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8859
SELECT + + 65 DIV - col0 - + col0 * - col1 FROM tab1 AS cor0
----
1040
57
639
skipif mysql # not compatible
query I rowsort label-8859
SELECT + + 65 / - col0 - + col0 * - col1 FROM tab1 AS cor0
----
1040
57
639
query I rowsort
SELECT DISTINCT ( 24 ) + - col1 FROM tab2 AS cor0
----
-35
-7
7
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab1 cor1, tab0 AS cor2
----
972 values hashing to 43f0c51511c8642d19190fd4dfcf905a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8862
SELECT CAST( NULL AS SIGNED ) + + 33 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8862
SELECT CAST ( NULL AS INTEGER ) + + 33 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL + cor0.col0 * 49 + + 84 AS col0 FROM tab0 cor0
----
1260
1799
4445
query I rowsort
SELECT DISTINCT 32 FROM tab0
----
32
query I rowsort
SELECT + + col2 * 26 + + col2 FROM tab2 AS cor0
----
1026
702
729
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab0, tab0 AS cor1
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237
query I rowsort
SELECT DISTINCT 69 AS col2 FROM tab2, tab1 AS cor0
----
69
query I rowsort
SELECT ALL col2 * + 88 FROM tab1
----
4752
5016
8448
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8869
SELECT - - col0 + + CAST( + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-8869
SELECT - - col0 + + CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - col1 * + 15 * + 95 AS col0 FROM tab2 AS cor0
----
-24225
-44175
-84075
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 85 * - col0 col2 FROM tab1
----
-255
-5440
-6800
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8872
SELECT - 91 * - ( - tab2.col0 + CAST( + tab2.col2 AS SIGNED ) ) col2 FROM tab2
----
-3731
-4732
1820
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8872
SELECT - 91 * - ( - tab2.col0 + CAST ( + tab2.col2 AS INTEGER ) ) col2 FROM tab2
----
-3731
-4732
1820
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8873
SELECT + CAST( 5 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
5
5
5
skipif mysql # not compatible
query I rowsort label-8873
SELECT + CAST ( 5 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
5
5
5
query I rowsort
SELECT + col0 + cor0.col1 * + cor0.col1 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT + col2 * + ( col0 * + col0 ) FROM tab0
----
1225
19008
649522
query I rowsort
SELECT + 16 + col1 AS col2 FROM tab1 AS cor0
----
26
29
42
query I rowsort
SELECT - - 17 + col1 AS col1 FROM tab0 AS cor0
----
103
108
114
query I rowsort
SELECT 47 * col2 AS col1 FROM tab0
----
1551
3854
47
query I rowsort
SELECT + col2 + + col2 AS col0 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT - + cor0.col2 * - col0 + cor0.col0 + col1 AS col1 FROM tab1 AS cor0
----
191
3722
7773
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 + - col2 col2 FROM tab0
----
-11
-60
21
query I rowsort
SELECT ALL - col2 + cor0.col0 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT ALL - ( col0 ) + - col0 FROM tab0 AS cor0
----
-178
-48
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 21 ) col0 FROM tab1, tab0 AS cor0
----
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8885
SELECT + col2 * - cor0.col1 * CAST( NULL AS SIGNED ) + col0 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8885
SELECT + col2 * - cor0.col1 * CAST ( NULL AS INTEGER ) + col0 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - 39 FROM tab0 AS cor0
----
-39
query I rowsort
SELECT DISTINCT - - cor0.col1 + + cor0.col0 * + col2 AS col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT - col1 + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT ALL + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT col2 * ( 9 ) AS col1 FROM tab0 AS cor0
----
297
738
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8891
SELECT DISTINCT - - col1 DIV 53 + col1 FROM tab2 AS cor0
----
17
31
60
skipif mysql # not compatible
query I rowsort label-8891
SELECT DISTINCT - - col1 / 53 + col1 FROM tab2 AS cor0
----
17
31
60
query I rowsort
SELECT ALL col1 + - ( col2 ) * + col0 - col0 AS col2 FROM tab0 cor0
----
-7296
-730
27
query I rowsort
SELECT DISTINCT + col0 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * ( - 46 ) + col0 col2 FROM tab1 AS cor0
----
141
3008
3760
query I rowsort
SELECT 51 + col1 FROM tab2
----
110
68
82
query I rowsort
SELECT ALL - 54 * col0 + col0 * ( col0 ) * + col1 FROM tab1
----
37504
72
78880
query I rowsort
SELECT 72 * col2 FROM tab1
----
3888
4104
6912
query I rowsort
SELECT + ( - 31 ) * col0 + 37 + + col1 * col1 FROM tab1 AS cor0
----
-1847
-2274
620
query I rowsort
SELECT - col1 * cor0.col0 * col0 AS col0 FROM tab1 cor0
----
-234
-40960
-83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * col0 col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT col1 - - col2 * col1 FROM tab2 AS cor0
----
1593
663
868
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-8903
SELECT DISTINCT + + col0 + col0 * + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT + + col0 + col0 * + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT - 31 + - col0 + cor0.col2 FROM tab2 cor0
----
-11
-72
-83
query I rowsort
SELECT + ( - col1 ) + col0 * col2 FROM tab1 cor0
----
136
3638
7667
query I rowsort
SELECT DISTINCT 77 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
77
query I rowsort
SELECT - 94 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8909
SELECT ALL + 11 DIV col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8909
SELECT ALL + 11 / col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - - 62 * + 77 FROM tab1 cor0
----
4774
4774
4774
onlyif mysql # use DIV operator for integer division
query I rowsort label-8911
SELECT DISTINCT col0 * ( col0 ) + 46 DIV + col1 FROM tab1 AS cor0
----
10
4100
6403
skipif mysql # not compatible
query I rowsort label-8911
SELECT DISTINCT col0 * ( col0 ) + 46 / + col1 FROM tab1 AS cor0
----
10
4100
6403
query I rowsort
SELECT ALL - 14 * col1 AS col0 FROM tab1 AS cor0
----
-140
-182
-364
query I rowsort
SELECT ALL - - col0 + col1 * 85 AS col1 FROM tab2 AS cor0
----
1524
2642
5093
query I rowsort
SELECT - - col0 - col0 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - tab2.col0 AS col2 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8916
SELECT ALL - ( - col1 ) DIV col0 - - col2 AS col0 FROM tab1
----
57
62
96
skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL - ( - col1 ) / col0 - - col2 AS col0 FROM tab1
----
57
62
96
query I rowsort
SELECT DISTINCT col0 * + col2 + - col0 FROM tab2
----
182
1950
2923
query I rowsort
SELECT DISTINCT col2 + col1 AS col2 FROM tab1
----
109
67
80
query I rowsort
SELECT ALL tab1.col2 + col0 * + col2 AS col1 FROM tab1
----
216
3705
7776
query I rowsort
SELECT ALL - col0 * col1 + - col2 FROM tab0
----
-2097
-3396
-8181
query I rowsort
SELECT - col0 * - col0 AS col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT col2 - - 6 FROM tab0
----
39
7
88
query I rowsort
SELECT DISTINCT + col2 + col1 AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT col2 + col2 * + 1 + col2 FROM tab1
----
162
171
288
query I rowsort
SELECT ALL + + col2 * 50 - col1 AS col2 FROM tab1 AS cor0
----
2674
2840
4787
onlyif mysql # use DIV operator for integer division
query I rowsort label-8926
SELECT ALL + - col0 DIV + 43 + + col1 FROM tab2 AS cor0
----
16
31
58
skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL + - col0 / + 43 + + col1 FROM tab2 AS cor0
----
16
31
58
query I rowsort
SELECT ALL col2 + - col0 * - col0 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT DISTINCT cor0.col0 + col2 * col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8929
SELECT CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8929
SELECT CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8930
SELECT ALL CAST( NULL AS SIGNED ) + 40 * cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL CAST ( NULL AS INTEGER ) + 40 * 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-8931
SELECT - CAST( NULL AS SIGNED ) + + col2 col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8931
SELECT - CAST ( NULL AS INTEGER ) + + col2 col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + + col0 + col0 * 75 AS col0 FROM tab0 AS cor0
----
1848
2695
6853
query I rowsort
SELECT ALL + + 31 + col0 FROM tab1 AS cor0
----
111
34
95
query I rowsort
SELECT ALL + - 55 + - ( col0 ) FROM tab0 cor0
----
-144
-79
-90
query I rowsort
SELECT DISTINCT ( + cor0.col2 ) * col0 - col0 AS col2 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT DISTINCT + + col2 + - col1 * + col0 FROM tab0 cor0
----
-2031
-3394
-8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-8937
SELECT - cor0.col0 DIV col0 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8937
SELECT - cor0.col0 / col0 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT ( col2 ) * + col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + - 54 FROM tab1 AS cor0
----
-54
-54
-54
query I rowsort
SELECT ALL - col0 + cor0.col2 + cor0.col2 FROM tab2 cor0
----
-26
-3
47
query I rowsort
SELECT ALL - 42 + - col2 + col2 * + ( - col0 ) FROM tab1 AS cor0
----
-258
-3747
-7818
query I rowsort
SELECT ALL + ( - col1 ) - - 75 FROM tab0
----
-11
-16
-22
query I rowsort
SELECT - 78 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
query I rowsort
SELECT ALL - + col0 * col0 AS col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT - 35 * col2 FROM tab2 AS cor0
----
-1330
-910
-945
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 col2 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-8947
SELECT ALL + col2 + - col2 DIV + 60 - 78 AS col0 FROM tab0 AS cor0
----
-45
-77
3
skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL + col2 + - col2 / + 60 - 78 AS col0 FROM tab0 AS cor0
----
-45
-77
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8948
SELECT DISTINCT cor0.col0 * col1 * - CAST( NULL AS SIGNED ) + + 61 AS col2 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT cor0.col0 * col1 * - CAST ( NULL AS INTEGER ) + + 61 AS col2 FROM tab0 cor0
----
NULL
query I rowsort
SELECT ALL cor0.col1 + - cor0.col1 + col0 * col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - 43 * cor0.col2 FROM tab2 AS cor0
----
-1118
-1161
-1634
onlyif mysql # use DIV operator for integer division
query I rowsort label-8951
SELECT ALL - - cor0.col0 DIV - col1 FROM tab2 cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL - - cor0.col0 / - col1 FROM tab2 cor0
----
-1
-4
0
query I rowsort
SELECT DISTINCT + 42 * - col0 + - 95 FROM tab2 AS cor0
----
-3371
-3413
-389
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8953
SELECT DISTINCT + cor0.col2 * col2 + - ( - col2 ) * + CAST( + col0 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
158860
2052
238602
skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT + cor0.col2 * col2 + - ( - col2 ) * + CAST ( + col0 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
158860
2052
238602
onlyif mysql # use DIV operator for integer division
query I rowsort label-8954
SELECT DISTINCT + - col2 - - ( + col0 + col0 ) * col0 DIV + 13 FROM tab0 AS cor0
----
1136
187
55
skipif mysql # not compatible
query I rowsort label-8954
SELECT DISTINCT + - col2 - - ( + col0 + col0 ) * col0 / + 13 FROM tab0 AS cor0
----
1136
187
55
query I rowsort
SELECT + col2 - + cor0.col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT - col1 - + col0 * 13 AS col2 FROM tab0 AS cor0
----
-1248
-398
-552
query I rowsort
SELECT ALL + + col1 * + col2 - + cor0.col0 AS col2 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT ALL - col2 - col0 * col0 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT ALL - - cor0.col0 * + ( + col0 ) + col2 AS col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT DISTINCT + col1 - 62 * col1 AS col0 FROM tab0 AS cor0
----
-5246
-5551
-5917
query I rowsort
SELECT col0 - col1 * + col0 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT 88 AS col1 FROM tab1, tab1 cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to fcc118615fb2799d7d418f949644d6cb
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8963
SELECT ALL + - cor0.col0 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL + - cor0.col0 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8964
SELECT ALL col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * - ( - col0 + cor0.col1 ) FROM tab1 AS cor0
----
-598
540
871
query I rowsort
SELECT col0 * + ( tab2.col0 + - col2 ) FROM tab2
----
-140
3239
4056
query I rowsort
SELECT col1 * 58 AS col1 FROM tab0 AS cor0
----
4988
5278
5626
query I rowsort
SELECT - cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-8969
SELECT ALL col2 + ( tab0.col2 ) * + col0 DIV 1 FROM tab0
----
36
7380
825
skipif mysql # not compatible
query I rowsort label-8969
SELECT ALL col2 + ( tab0.col2 ) * + col0 / 1 FROM tab0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 20 col2 FROM tab0
----
-1720
-1820
-1940
query I rowsort
SELECT 52 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c
query I rowsort
SELECT + + 8 FROM tab1 AS cor0
----
8
8
8
query I rowsort
SELECT DISTINCT - ( ( col0 ) ) FROM tab0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8974
SELECT DISTINCT + 29 DIV - 81 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-8974
SELECT DISTINCT + 29 / - 81 FROM tab0
----
0
query I rowsort
SELECT 28 + col0 FROM tab1
----
108
31
92
query I rowsort
SELECT DISTINCT tab1.col2 AS col2 FROM tab1, tab2 cor0
----
54
57
96
query I rowsort
SELECT DISTINCT 31 * - tab1.col1 AS col2 FROM tab1
----
-310
-403
-806
query I rowsort
SELECT + tab2.col0 + - col1 AS col2 FROM tab2
----
-24
19
62
query I rowsort
SELECT ALL + ( col2 ) * col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 35 + - cor0.col1 col0 FROM tab1 AS cor0
----
22
25
9
query I rowsort
SELECT DISTINCT - 78 * - col1 FROM tab2 AS cor0
----
1326
2418
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-8982
SELECT ALL + tab0.col0 DIV + col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL + tab0.col0 / + col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ( ( col1 ) ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT 21 * col1 FROM tab1 AS cor0
----
210
273
546
query I rowsort
SELECT - - 49 * col2 FROM tab0 AS cor0
----
1617
4018
49
query I rowsort
SELECT - 84 * 47 + - col2 AS col0 FROM tab2 AS cor0
----
-3974
-3975
-3986
query I rowsort
SELECT - 2 + 82 AS col2 FROM tab2 cor0
----
80
80
80
query I rowsort
SELECT DISTINCT + 99 FROM tab2, tab0 cor0
----
99
query I rowsort
SELECT ALL + tab2.col0 * + 99 FROM tab2
----
693
7722
7821
query I rowsort
SELECT + 33 * - cor0.col2 FROM tab1 AS cor0
----
-1782
-1881
-3168
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-8992
SELECT + ( + col1 ) DIV + col2 FROM tab0 cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-8992
SELECT + ( + col1 ) / + col2 FROM tab0 cor0
----
1
2
97
query I rowsort
SELECT DISTINCT - col1 * - col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - ( - col0 ) * col0 + ( + col2 ) FROM tab0 AS cor0
----
1226
609
8003
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8995
SELECT ALL - + CAST( - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL - + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8996
SELECT + 6 + + cor0.col0 DIV col1 + CAST( - col2 AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
-156
-3636
-7668
skipif mysql # not compatible
query I rowsort label-8996
SELECT + 6 + + cor0.col0 / col1 + CAST ( - col2 AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
-156
-3636
-7668
query I rowsort
SELECT DISTINCT - col1 + 39 FROM tab2 cor0
----
-20
22
8
query I rowsort
SELECT ALL 3 * col0 AS col0 FROM tab0
----
105
267
72
query I rowsort
SELECT - 66 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112
query I rowsort
SELECT DISTINCT 77 + col1 * col0 FROM tab0 AS cor0
----
2141
3472
8176
query I rowsort
SELECT DISTINCT + col0 * col0 + ( 31 ) * col1 AS col0 FROM tab1 AS cor0
----
4406
6803
815
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - ( col1 ) ) * - 52 - col0 col0 FROM tab1
----
1349
456
596
query I rowsort
SELECT ALL tab1.col0 * - col2 + col2 FROM tab1
----
-108
-3591
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-9004
SELECT ALL - 51 DIV + 45 + - col2 + - col1 FROM tab1
----
-110
-68
-81
skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL - 51 / + 45 + - col2 + - col1 FROM tab1
----
-110
-68
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 + col2 * col0 + + 49 * col0 col0 FROM tab0 cor0
----
-1645
-96
3560
query I rowsort
SELECT DISTINCT - tab1.col2 * - tab1.col1 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT + 26 AS col1 FROM tab1, tab1 cor0
----
26
query I rowsort
SELECT DISTINCT + 45 AS col1 FROM tab2, tab1 AS cor0
----
45
query I rowsort
SELECT + col1 * 97 FROM tab2
----
1649
3007
5723
query I rowsort
SELECT - + col1 * + col0 - ( + col2 ) FROM tab2 AS cor0
----
-1381
-244
-4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-9011
SELECT DISTINCT - tab0.col0 - ( - col1 ) DIV col1 FROM tab0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-9011
SELECT DISTINCT - tab0.col0 - ( - col1 ) / col1 FROM tab0
----
-23
-34
-88
query I rowsort
SELECT ALL col1 + - ( - col0 ) * col1 - - col0 AS col0 FROM tab0
----
2174
3527
8279
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9013
SELECT cor0.col1 * ( + 67 ) + + cor0.col0 + + CAST( NULL AS DECIMAL ) / - 99 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9013
SELECT cor0.col1 * ( + 67 ) + + cor0.col0 + + CAST ( NULL AS REAL ) / - 99 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 - col1 * + 45 FROM tab1
----
-1196
-460
-598
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9015
SELECT + CAST( col1 AS SIGNED ) + col0 - col1 * + col0 FROM tab2 AS cor0
----
-1247
-179
-4465
skipif mysql # not compatible
query I rowsort label-9015
SELECT + CAST ( col1 AS INTEGER ) + col0 - col1 * + col0 FROM tab2 AS cor0
----
-1247
-179
-4465
query I rowsort
SELECT col1 - ( - col2 ) FROM tab2
----
55
58
85
query I rowsort
SELECT ALL col1 + - 26 + col0 AS col1 FROM tab2
----
111
12
70
query I rowsort
SELECT DISTINCT - - ( 86 ) + col0 AS col0 FROM tab2 cor0
----
164
165
93
query I rowsort
SELECT ALL - + col1 + col0 + - col0 * - col0 AS col1 FROM tab0 AS cor0
----
1163
514
7919
query I rowsort
SELECT DISTINCT - + col1 * col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + ( col1 ) + col1 * + col2 FROM tab1
----
1261
1430
580
query I rowsort
SELECT + col0 + 5 FROM tab0
----
29
40
94
query I rowsort
SELECT ALL - 95 * - col2 + + col1 AS col1 FROM tab1
----
5156
5425
9133
query I rowsort
SELECT ALL 68 + col2 * - tab2.col2 * col0 + tab2.col0 AS col1 FROM tab2
----
-113929
-5028
-52582
onlyif mysql # use DIV operator for integer division
query I rowsort label-9025
SELECT ALL + ( col0 * - tab1.col2 ) + + col2 DIV + col2 FROM tab1
----
-161
-3647
-7679
skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL + ( col0 * - tab1.col2 ) + + col2 / + col2 FROM tab1
----
-161
-3647
-7679
query I rowsort
SELECT DISTINCT - ( + 50 ) + col1 FROM tab1 AS cor0
----
-24
-37
-40
query I rowsort
SELECT + col2 * col2 - col2 * col1 AS col2 FROM tab2 AS cor0
----
-108
-858
798
query I rowsort
SELECT ALL + + 82 * 99 FROM tab2 AS cor0
----
8118
8118
8118
query I rowsort
SELECT ALL + ( + cor0.col0 ) * - col0 + - col2 FROM tab2 AS cor0
----
-6110
-6279
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 97 ) col0 FROM tab2 AS cor0
----
97
97
97
query I rowsort
SELECT - 57 * col2 * col0 - + col0 AS col2 FROM tab1 AS cor0
----
-208000
-437840
-9237
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9032
SELECT ALL ( col1 ) * CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9032
SELECT ALL ( col1 ) * CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 42 FROM tab1 cor0
----
-42
query I rowsort
SELECT - + 96 * + col1 FROM tab1 AS cor0
----
-1248
-2496
-960
query I rowsort
SELECT DISTINCT + - 92 FROM tab0 AS cor0
----
-92
query I rowsort
SELECT ALL - 97 + - col2 AS col2 FROM tab2 AS cor0
----
-123
-124
-135
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 28 col1 FROM tab1 AS cor0
----
-28
-28
-28
query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
17
31
59
query I rowsort
SELECT DISTINCT - + col2 * + col2 + - col0 + col1 * col1 AS col2 FROM tab0 AS cor0
----
1468
6283
9373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9040
SELECT - col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9040
SELECT - col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col2 * + 55 * + col2 FROM tab2 cor0
----
-37180
-40095
-79420
query I rowsort
SELECT DISTINCT - - col2 * - cor0.col0 AS col2 FROM tab2 cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9043
SELECT DISTINCT + col2 + + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-9043
SELECT DISTINCT + col2 + + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL + col0 + ( + ( col1 ) ) FROM tab2 cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9045
SELECT DISTINCT - col0 + + col1 DIV + cor0.col2 AS col0 FROM tab0 AS cor0
----
-22
-88
62
skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT - col0 + + col1 / + cor0.col2 AS col0 FROM tab0 AS cor0
----
-22
-88
62
query I rowsort
SELECT ALL - + col2 * col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT cor0.col1 * 5 + - col0 FROM tab1 AS cor0
----
-14
-15
127
query I rowsort
SELECT ALL 27 * - col2 FROM tab1
----
-1458
-1539
-2592
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT cor0.col2 * - 23 AS col0 FROM tab0 AS cor0
----
-1886
-23
-759
query I rowsort
SELECT ALL - col0 * col1 + 62 + col2 AS col0 FROM tab1 AS cor0
----
-521
-882
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9052
SELECT ALL + col1 DIV col2 - 42 FROM tab1 AS cor0
----
-42
-42
-42
skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL + col1 / col2 - 42 FROM tab1 AS cor0
----
-42
-42
-42
query I rowsort
SELECT ALL col0 + 68 AS col1 FROM tab0 AS cor0
----
103
157
92
query I rowsort
SELECT + 82 * col0 AS col1 FROM tab0 AS cor0
----
1968
2870
7298
query I rowsort
SELECT + col2 - + col0 * + col1 FROM tab1 AS cor0
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-9056
SELECT DISTINCT - cor0.col2 DIV col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-9056
SELECT DISTINCT - cor0.col2 / col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9057
SELECT CAST( col0 AS SIGNED ) * col2 + + col2 FROM tab2
----
2054
216
3040
skipif mysql # not compatible
query I rowsort label-9057
SELECT CAST ( col0 AS INTEGER ) * col2 + + col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT ALL + 94 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 - 14 * + 24 col0 FROM tab0 AS cor0
----
-1561
-8257
-912
query I rowsort
SELECT - col0 * - 13 - + tab2.col1 AS col1 FROM tab2
----
1010
60
955
query I rowsort
SELECT ( + ( + col0 ) ) FROM tab1
----
3
64
80
query I rowsort
SELECT ALL 75 * col1 + + 83 FROM tab0
----
6533
6908
7358
query I rowsort
SELECT col2 * col1 + + 7 * col2 AS col2 FROM tab0
----
104
3069
8036
query I rowsort
SELECT + col2 * + ( - col2 ) + col1 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT + tab1.col2 * col1 + col1 * + 87 AS col1 FROM tab1
----
1440
2379
3666
onlyif mysql # use DIV operator for integer division
query I rowsort label-9066
SELECT col1 DIV + tab2.col0 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-9066
SELECT col1 / + tab2.col0 FROM tab2
----
0
0
4
query I rowsort
SELECT - col2 * tab0.col1 + + ( col0 ) FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT + tab2.col1 + - col1 * col2 AS col1 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT + 71 + + col1 + - cor0.col2 FROM tab1 AS cor0
----
-12
24
43
query I rowsort
SELECT ALL + - col2 + + col2 * - col0 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT ALL col1 * col1 + - tab2.col0 AS col0 FROM tab2
----
210
3403
954
onlyif mysql # use DIV operator for integer division
query I rowsort label-9072
SELECT DISTINCT col1 DIV - col0 AS col1 FROM tab1
----
-8
0
skipif mysql # not compatible
query I rowsort label-9072
SELECT DISTINCT col1 / - col0 AS col1 FROM tab1
----
-8
0
query I rowsort
SELECT - - col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) col2 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT + col0 * tab2.col2 * col1 AS col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT col1 + col2 * + col0 AS col2 FROM tab1
----
188
3658
7693
query I rowsort
SELECT ALL cor0.col2 + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL + ( + 84 ) * + col2 + - col0 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
119
14186
3564
query I rowsort
SELECT + + 90 AS col2 FROM tab2 AS cor0
----
90
90
90
query I rowsort
SELECT ALL + col1 * - 68 AS col0 FROM tab1 cor0
----
-1768
-680
-884
query I rowsort
SELECT - + ( ( - col1 ) ) * col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ( - 55 ) + col1 AS col1 FROM tab0 AS cor0
----
31
36
42
query I rowsort
SELECT ALL - + 61 * + col1 + col2 AS col1 FROM tab2 AS cor0
----
-1864
-3573
-999
query I rowsort
SELECT DISTINCT - + ( + col1 ) + + cor0.col1 FROM tab1 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9086
SELECT DISTINCT + 90 DIV + col1 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT + 90 / + col1 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT ALL + + col1 + col2 AS col1 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9088
SELECT ALL - CAST( NULL AS SIGNED ) + col0 * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL - CAST ( NULL AS INTEGER ) + col0 * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( - 89 ) FROM tab2 cor0
----
-89
-89
-89
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col2 AS REAL ) / cor0.col2 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT + 21 + 82 AS col1 FROM tab2 AS cor0
----
103
103
103
onlyif mysql # use DIV operator for integer division
query I rowsort label-9092
SELECT ALL cor0.col2 DIV - cor0.col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-9092
SELECT ALL cor0.col2 / - cor0.col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT ALL + col0 + col0 * + col2 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT ALL ( 78 ) * + col0 AS col1 FROM tab2
----
546
6084
6162
onlyif mysql # use DIV operator for integer division
query I rowsort label-9095
SELECT DISTINCT + ( - 18 ) DIV col0 col2 FROM tab2
----
-2
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9095
SELECT DISTINCT + ( - 18 ) / col0 col2 FROM tab2
----
-2
0
query I rowsort
SELECT ALL - 56 - + 54 * + col0 * - col2 FROM tab2 cor0
----
10150
109456
162052
query I rowsort
SELECT ( 6 ) AS col1 FROM tab2 AS cor0
----
6
6
6
query I rowsort
SELECT DISTINCT 81 AS col1 FROM tab1
----
81
query I rowsort
SELECT ALL + + ( - col0 ) * col0 AS col0 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT - col1 * cor0.col1 * + col0 AS col2 FROM tab0 cor0
----
-177504
-329315
-737009
query I rowsort
SELECT 51 * - col0 FROM tab2 AS cor0
----
-357
-3978
-4029
query I rowsort
SELECT - col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9103
SELECT ( 54 ) DIV col2 + 54 FROM tab1
----
54
54
55
skipif mysql # not compatible
query I rowsort label-9103
SELECT ( 54 ) / col2 + 54 FROM tab1
----
54
54
55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9104
SELECT ALL - col2 + - CAST( NULL AS DECIMAL ) + + ( col2 ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL - col2 + - CAST ( NULL AS REAL ) + + ( col2 ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + col0 * + col1 FROM tab0 cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT + - col2 + 73 - col2 AS col1 FROM tab2 cor0
----
-3
19
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-9107
SELECT ALL 74 DIV 85 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942
skipif mysql # not compatible
query I rowsort label-9107
SELECT ALL 74 / 85 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9108
SELECT + + col1 + CAST( - 71 AS SIGNED ) * - cor0.col0 AS col1 FROM tab2 AS cor0
----
528
5597
5626
skipif mysql # not compatible
query I rowsort label-9108
SELECT + + col1 + CAST ( - 71 AS INTEGER ) * - cor0.col0 AS col1 FROM tab2 AS cor0
----
528
5597
5626
query I rowsort
SELECT - + col0 * - ( - 93 ) + + col1 * col1 AS col2 FROM tab1 AS cor0
----
-5852
-7271
397
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - col1 col0 FROM tab0 cor0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 col0 FROM tab0 AS cor0
----
37
37
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 28 ) col1 FROM tab0 AS cor0
----
28
28
28
query I rowsort
SELECT - col0 * tab1.col1 AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + col0 * - 82 FROM tab1
----
-246
-5248
-6560
query I rowsort
SELECT DISTINCT col1 * + 68 AS col2 FROM tab1
----
1768
680
884
query I rowsort
SELECT + 83 * 31 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to d7c5dc98abcadff2b2fb6d8adc9d2c62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9117
SELECT - CAST( cor0.col1 AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
skipif mysql # not compatible
query I rowsort label-9117
SELECT - CAST ( cor0.col1 AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
onlyif mysql # use DIV operator for integer division
query I rowsort label-9118
SELECT ALL col1 - + col1 DIV tab2.col1 FROM tab2
----
16
30
58
skipif mysql # not compatible
query I rowsort label-9118
SELECT ALL col1 - + col1 / tab2.col1 FROM tab2
----
16
30
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-9119
SELECT + - col1 DIV + col1 - col1 AS col0 FROM tab2 AS cor0
----
-18
-32
-60
skipif mysql # not compatible
query I rowsort label-9119
SELECT + - col1 / + col1 - col1 AS col0 FROM tab2 AS cor0
----
-18
-32
-60
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 ALL + - col0 * + 51 FROM tab1 AS cor0
----
-153
-3264
-4080
query I rowsort
SELECT DISTINCT + col0 * + col2 + + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT - cor0.col1 + + ( + col1 ) AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col2 + col1 + col0 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT + ( - col2 ) + cor0.col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + col0 - + col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - + ( + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL col1 * cor0.col0 AS col0 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9129
SELECT ALL + cor0.col2 DIV - ( + 9 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 4e0dfe7956efeaff5bfb6d0443440d4b
skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL + cor0.col2 / - ( + 9 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 4e0dfe7956efeaff5bfb6d0443440d4b
query I rowsort
SELECT DISTINCT + - 60 FROM tab1 AS cor0
----
-60
query I rowsort
SELECT ALL 49 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 cor1, tab0 AS cor2, tab2 cor3
----
243 values hashing to 5e90817546f910a557285348e10199b6
query I rowsort
SELECT ALL cor0.col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT + + cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9134
SELECT DISTINCT col0 + col0 DIV + col2 FROM tab0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-9134
SELECT DISTINCT col0 + col0 / + col2 FROM tab0
----
24
70
90
query I rowsort
SELECT ALL col2 + + col0 * - tab1.col0 AS col1 FROM tab1
----
-4039
-6304
45
query I rowsort
SELECT + col2 + - col1 * + ( + col1 ) AS col2 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT ALL tab0.col0 + - col1 AS col2 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9139
SELECT - + col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9139
SELECT - + col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * + col1 + + col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT ALL - col1 * col2 - + col1 * - col1 * - col1 FROM tab0 AS cor0
----
-638894
-761033
-912770
query I rowsort
SELECT ALL - 33 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to bbc05afe7eb6fed16e9d75f7f74d1948
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 col1 FROM tab2 AS cor0
----
60
60
60
query I rowsort
SELECT DISTINCT + cor0.col0 + 88 * - col2 AS col2 FROM tab1 AS cor0
----
-4749
-4952
-8368
onlyif mysql # use DIV operator for integer division
query I rowsort label-9145
SELECT ALL col2 * col2 DIV + col2 AS col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL col2 * col2 / + col2 AS col2 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT col2 * ( + col2 ) AS col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT cor0.col2 * cor1.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 3a284e2c11914d1b470b4242a365931a
query I rowsort
SELECT + col1 + 34 AS col0 FROM tab1 cor0
----
44
47
60
query I rowsort
SELECT ALL + cor0.col0 + + ( + 46 ) FROM tab2 AS cor0
----
124
125
53
query I rowsort
SELECT + 44 - col1 AS col1 FROM tab2
----
-15
13
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-9151
SELECT ALL col0 DIV + col1 + col2 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL col0 / + col1 + col2 FROM tab0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9152
SELECT col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9152
SELECT col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + + 79 * col2 + + col2 AS col1 FROM tab2
----
2139
2191
3057
query I rowsort
SELECT + col2 * - col2 * tab1.col2 FROM tab1
----
-157464
-185193
-884736
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9155
SELECT - col1 + CAST( - 11 * + col0 AS SIGNED ) + - col0 AS col1 FROM tab0
----
-1159
-374
-517
skipif mysql # not compatible
query I rowsort label-9155
SELECT - col1 + CAST ( - 11 * + col0 AS INTEGER ) + - col0 AS col1 FROM tab0
----
-1159
-374
-517
query I rowsort
SELECT DISTINCT col1 - 40 AS col1 FROM tab0
----
46
51
57
query I rowsort
SELECT DISTINCT - 54 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
-54
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * - CAST ( - col0 AS REAL ) FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9159
SELECT + col1 DIV ( col0 + col1 ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9159
SELECT + col1 / ( col0 + col1 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + 21 * col0 FROM tab1
----
1344
1680
63
query I rowsort
SELECT DISTINCT ( col2 ) + - col0 * col2 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT - 68 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-42
-55
-58
onlyif mysql # use DIV operator for integer division
query I rowsort label-9163
SELECT ALL ( tab1.col0 ) * col2 + 47 DIV - 98 FROM tab1
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-9163
SELECT ALL ( tab1.col0 ) * col2 + 47 / - 98 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL + 18 + col2 * + col1 AS col1 FROM tab1
----
1266
1422
588
onlyif mysql # use DIV operator for integer division
query I rowsort label-9165
SELECT - + col0 DIV col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-9165
SELECT - + col0 / col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT + - 32 + col2 FROM tab2 AS cor0
----
-5
-6
6
query I rowsort
SELECT ALL - cor0.col0 - + col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT ALL - + cor0.col0 * + col0 - 54 * col0 FROM tab1 AS cor0
----
-10720
-171
-7552
query I rowsort
SELECT ALL + col0 + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-36
-673
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9170
SELECT ALL + + col1 + col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9170
SELECT ALL + + col1 + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 52 * col0 * + col1 FROM tab1
----
33280
4056
54080
query I rowsort
SELECT DISTINCT col2 + - col2 AS col0 FROM tab2 cor0
----
0
query I rowsort
SELECT ALL - col0 + + col1 * 53 + + col2 FROM tab0 AS cor0
----
4567
4816
5107
query I rowsort
SELECT + 69 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1794
690
897
query I rowsort
SELECT DISTINCT - + col2 * col1 + - 44 * + col0 AS col2 FROM tab2 cor0
----
-1145
-4122
-4966
query I rowsort
SELECT - - cor0.col1 * + col0 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9177
SELECT + col1 + + col1 DIV col0 AS col1 FROM tab0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-9177
SELECT + col1 + + col1 / col0 AS col1 FROM tab0
----
89
92
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-9178
SELECT ALL col0 DIV + col2 + - col0 AS col2 FROM tab0 cor0
----
-24
-88
0
skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL col0 / + col2 + - col0 AS col2 FROM tab0 cor0
----
-24
-88
0
query I rowsort
SELECT DISTINCT + - col0 * + col0 AS col1 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT - col2 - - col0 * col1 FROM tab2 AS cor0
----
1305
190
4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col2 col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + col0 + - col2 * tab0.col1 FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT - tab0.col1 + - col2 AS col2 FROM tab0
----
-119
-173
-98
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( col0 ) AND ( col2 + col0 ) > NULL
----
query I rowsort
SELECT + col2 * tab0.col1 + + col1 * col0 AS col2 FROM tab0
----
15561
3492
4902
query I rowsort
SELECT + 0 * cor0.col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 81 + cor0.col2 FROM tab1 AS cor0
----
-24
-27
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-9188
SELECT - - 33 + col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
32
33
33
skipif mysql # not compatible
query I rowsort label-9188
SELECT - - 33 + col2 / - col0 AS col1 FROM tab0 AS cor0
----
32
33
33
query I rowsort
SELECT 9 * col2 FROM tab2 AS cor0
----
234
243
342
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - col1 + + col0 col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT - - 5 AS col2 FROM tab0 AS cor0
----
5
query I rowsort
SELECT ALL - + 98 + - col2 * cor0.col1 FROM tab2 cor0
----
-1632
-744
-935
query I rowsort
SELECT + - col0 + + cor0.col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9194
SELECT CAST( NULL AS SIGNED ) * col1 + col0 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9194
SELECT CAST ( NULL AS INTEGER ) * col1 + col0 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 - ( col1 ) FROM tab2
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) + - col0 col0 FROM tab0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 col1 FROM tab1
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9198
SELECT ALL CAST( NULL AS DECIMAL ) * - col2 + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL CAST ( NULL AS REAL ) * - col2 + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * col2 * col2 + col0 + - tab1.col0 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT DISTINCT - 98 + + col1 AS col2 FROM tab0
----
-1
-12
-7
query I rowsort
SELECT DISTINCT + 31 * - col1 FROM tab1
----
-310
-403
-806
query I rowsort
SELECT 55 * col2 FROM tab2
----
1430
1485
2090
query I rowsort
SELECT - 13 + col2 AS col0 FROM tab0 AS cor0
----
-12
20
69
query I rowsort
SELECT ALL col1 + - col1 FROM tab2 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9205
SELECT ALL + col0 DIV - col2 col0 FROM tab0 AS cor0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL + col0 / - col2 col0 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT + col1 * col1 + cor0.col1 FROM tab0 AS cor0
----
7482
8372
9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-9207
SELECT ALL + col1 DIV cor0.col2 col2 FROM tab0 AS cor0
----
1
2
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL + col1 / cor0.col2 col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT - col0 + - col0 * + col2 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT + - 10 * - cor0.col0 + - col0 AS col1 FROM tab0 AS cor0
----
216
315
801
query I rowsort
SELECT col1 - tab1.col1 * col2 * col2 AS col1 FROM tab1
----
-119795
-32480
-75790
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - col2 col0 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE NOT NULL < NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * tab2.col2 col2 FROM tab2
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-9214
SELECT + col0 * - col0 * col0 + col0 DIV - col2 FROM tab0
----
-13824
-42910
-704970
skipif mysql # not compatible
query I rowsort label-9214
SELECT + col0 * - col0 * col0 + col0 / - col2 FROM tab0
----
-13824
-42910
-704970
onlyif mysql # use DIV operator for integer division
query I rowsort label-9215
SELECT DISTINCT tab0.col1 * tab0.col1 - col1 DIV col1 col2 FROM tab0
----
7395
8280
9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9215
SELECT DISTINCT tab0.col1 * tab0.col1 - col1 / col1 col2 FROM tab0
----
7395
8280
9408
query I rowsort
SELECT DISTINCT col1 + tab1.col1 AS col1 FROM tab1 WHERE NOT NULL >= NULL
----
query I rowsort
SELECT DISTINCT - col0 + col0 AS col0 FROM tab2
----
0
query I rowsort
SELECT DISTINCT - tab1.col0 - col2 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE ( NULL ) IN ( - col0 )
----
query I rowsort
SELECT DISTINCT col2 * - col0 * + col1 AS col0 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL col1 * col0 - col1 * - col2 FROM tab2
----
1054
1989
6136
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - tab2.col2 )
----
query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NULL IN ( - col1 )
----
query I rowsort
SELECT ALL + col2 + - tab2.col0 AS col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( col2 )
----
query I rowsort
SELECT - col1 * + tab0.col0 + + col2 FROM tab0
----
-2031
-3394
-8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col1 col0 FROM tab1
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 * col2 col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT col2 + - tab1.col0 * - col0 FROM tab1
----
4153
63
6496
query I rowsort
SELECT - col1 - + col1 * col1 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT + - col1 * - col2 * + col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT ALL - + col2 + col1 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9233
SELECT + cor0.col1 DIV col1 + - col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-7395
-8280
-9408
skipif mysql # not compatible
query I rowsort label-9233
SELECT + cor0.col1 / col1 + - col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-7395
-8280
-9408
query I rowsort
SELECT ALL col0 * col0 + + col1 AS col2 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT ALL - + cor0.col0 * + col1 + - col2 FROM tab1 cor0
----
-1136
-132
-697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col1 col1 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-9237
SELECT ALL col0 + col2 * col1 DIV col2 - + col2 FROM tab1 AS cor0
----
-25
-3
17
skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL col0 + col2 * col1 / col2 - + col2 FROM tab1 AS cor0
----
-25
-3
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-9238
SELECT DISTINCT + col1 DIV - cor0.col1 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-9238
SELECT DISTINCT + col1 / - cor0.col1 FROM tab1 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 * - col2 + col1 col0 FROM tab1 AS cor0
----
-16211
-36478
-5690
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) > NULL
----
query I rowsort
SELECT col0 * - col0 * col2 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT col2 + col2 * col0 * col0 FROM tab2 AS cor0
----
1350
158210
237196
query I rowsort
SELECT DISTINCT + cor0.col1 * - cor0.col0 + col2 AS col0 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL - col0 * + col1 + col0 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE ( col0 + + col0 ) <= NULL
----
query I rowsort
SELECT DISTINCT + col1 * - col2 / - col1 FROM tab0 AS cor0 WHERE NOT ( + col2 + - col0 ) BETWEEN NULL AND NULL
----
query I rowsort
SELECT ( + cor0.col0 ) * 47 FROM tab0 cor0
----
1128
1645
4183
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - cor0.col2 * 49 col1 FROM tab2 AS cor0
----
31654
41013
75166
query I rowsort
SELECT 63 AS col0 FROM tab0
----
63
63
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9250
SELECT + + CAST( 36 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
36
36
36
skipif mysql # not compatible
query I rowsort label-9250
SELECT + + CAST ( 36 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
36
36
36
query I rowsort
SELECT + 29 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
query I rowsort
SELECT col1 + - tab1.col2 * 51 * 46 AS col1 FROM tab1
----
-126658
-133712
-225203
query I rowsort
SELECT DISTINCT col2 - col0 AS col1 FROM tab2
----
-41
-52
20
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 * - col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT col0 - - col0 FROM tab2 cor0
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-9256
SELECT ALL - + 77 * col2 + - CAST( - col1 AS SIGNED ) DIV + col0 AS col1 FROM tab2 AS cor0
----
-2002
-2075
-2926
skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL - + 77 * col2 + - CAST ( - col1 AS INTEGER ) / + col0 AS col1 FROM tab2 AS cor0
----
-2002
-2075
-2926
query I rowsort
SELECT + col2 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( cor0.col0 ) * 71 col2 FROM tab2 AS cor0
----
497
5538
5609
query I rowsort
SELECT ALL 30 + + col2 * - col1 AS col0 FROM tab0 cor0
----
-2808
-67
-7432
onlyif mysql # use DIV operator for integer division
query I rowsort label-9260
SELECT DISTINCT - - 91 DIV col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-9260
SELECT DISTINCT - - 91 / col0 FROM tab0 AS cor0
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-9261
SELECT ALL - 89 DIV + cor0.col2 + - col2 AS col1 FROM tab0 AS cor0
----
-35
-83
-90
skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL - 89 / + cor0.col2 + - col2 AS col1 FROM tab0 AS cor0
----
-35
-83
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-9262
SELECT ALL + col1 * col0 + col1 DIV col1 AS col1 FROM tab2 AS cor0
----
1344
218
4603
skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL + col1 * col0 + col1 / col1 AS col1 FROM tab2 AS cor0
----
1344
218
4603
query I rowsort
SELECT - ( col2 ) - - col0 * - col1 FROM tab2 AS cor0
----
-1381
-244
-4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-9264
SELECT ALL - + 54 DIV col1 AS col0 FROM tab2 AS cor0
----
-1
-3
0
skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL - + 54 / col1 AS col0 FROM tab2 AS cor0
----
-1
-3
0
query I rowsort
SELECT DISTINCT 98 * col2 + - 74 FROM tab0 AS cor0
----
24
3160
7962
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 + 6 col2 FROM tab2 AS cor0
----
6
6
6
query I rowsort
SELECT ALL + col1 * + col0 AS col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - cor0.col2 + ( col0 ) FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT + col0 * - 9 AS col0 FROM tab0 AS cor0
----
-216
-315
-801
query I rowsort
SELECT 4 * cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to f4078de312e4f2ca27f2fa4a703df416
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9271
SELECT ALL + - CAST( NULL AS SIGNED ) * col2 + col1 * - 35 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL + - CAST ( NULL AS INTEGER ) * col2 + col1 * - 35 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 + 73 col0 FROM tab2 AS cor0
----
137
query I rowsort
SELECT DISTINCT - + 65 * + col1 + + col1 AS col1 FROM tab2 AS cor0
----
-1088
-1984
-3776
query I rowsort
SELECT col1 * ( + col2 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - ( - cor0.col0 ) * + col1 + col1 * col2 - + col1 * col0 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + + ( col1 ) + - col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9277
SELECT ALL CAST( + ( col2 ) AS SIGNED ) + ( col0 ) FROM tab1 AS cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL CAST ( + ( col2 ) AS INTEGER ) + ( col0 ) FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT col1 * + col1 * + cor0.col0 AS col1 FROM tab2 cor0
----
22831
271518
6727
query I rowsort
SELECT ALL + col2 * col1 + col0 AS col0 FROM tab2 AS cor0
----
1612
725
844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 73 * + 64 col0 FROM tab0
----
4672
query I rowsort
SELECT DISTINCT cor0.col2 + 34 * col2 AS col1 FROM tab1 AS cor0
----
1890
1995
3360
query I rowsort
SELECT + ( + col1 ) + - col2 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT - 70 AS col1 FROM tab2 AS cor0
----
-70
query I rowsort
SELECT ALL - - col0 * + col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT cor0.col1 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - col0 + - 44 AS col1 FROM tab1 AS cor0
----
-108
-124
-47
query I rowsort
SELECT DISTINCT ( + cor0.col0 ) * col2 + ( - col2 ) - + col1 FROM tab1 cor0
----
3581
7571
82
query I rowsort
SELECT ALL - - col2 + + 54 AS col1 FROM tab1 AS cor0
----
108
111
150
onlyif mysql # use DIV operator for integer division
query I rowsort label-9289
SELECT + ( col1 ) * col1 + col0 DIV - 77 AS col1 FROM tab1 AS cor0
----
100
168
676
skipif mysql # not compatible
query I rowsort label-9289
SELECT + ( col1 ) * col1 + col0 / - 77 AS col1 FROM tab1 AS cor0
----
100
168
676
query I rowsort
SELECT DISTINCT - col2 * col2 + - col2 AS col2 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT ALL - 32 * + cor0.col2 - - col2 AS col2 FROM tab1 cor0
----
-1674
-1767
-2976
query I rowsort
SELECT DISTINCT 75 + col2 AS col2 FROM tab1 AS cor0
----
129
132
171
onlyif mysql # use DIV operator for integer division
query I rowsort label-9293
SELECT ALL + col0 * col2 DIV ( + col1 * cor0.col2 + col1 ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9293
SELECT ALL + col0 * col2 / ( + col1 * cor0.col2 + col1 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
17
31
59
query I rowsort
SELECT + cor0.col2 * + 31 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 5a64c3d970ba3e1198feb105e3a9b1e5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9296
SELECT DISTINCT - + cor0.col1 * - CAST( NULL AS DECIMAL ) * cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9296
SELECT DISTINCT - + cor0.col1 * - CAST ( NULL AS REAL ) * cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - cor0.col2 * cor0.col2 + - 66 * col0 AS col0 FROM tab1 AS cor0
----
-14496
-3114
-7473
query I rowsort
SELECT ALL col2 + - col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - tab2.col0 * col1 - col1 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT DISTINCT ( col2 ) - - col0 AS col0 FROM tab2
----
104
117
34
query I rowsort
SELECT - col0 - - col0 * tab1.col2 FROM tab1
----
159
3584
7600
query I rowsort
SELECT DISTINCT - col2 + 31 FROM tab0
----
-2
-51
30
query I rowsort
SELECT DISTINCT + col1 * + 98 + 98 AS col0 FROM tab2
----
1764
3136
5880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9304
SELECT - col0 / + CAST( NULL AS SIGNED ) - + col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9304
SELECT - col0 / + CAST ( NULL AS INTEGER ) - + col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * 80 AS col1 FROM tab0
----
2640
6560
80
query I rowsort
SELECT + col2 + 80 * - col0 AS col0 FROM tab1
----
-186
-5063
-6304
query I rowsort
SELECT DISTINCT col1 + + col2 AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT col0 + - 29 AS col2 FROM tab2
----
-22
49
50
query I rowsort
SELECT DISTINCT - col1 + 7 AS col1 FROM tab2
----
-10
-24
-52
query I rowsort
SELECT - 37 * - tab0.col2 * col1 AS col0 FROM tab0
----
105006
276094
3589
query I rowsort
SELECT + tab0.col0 * + col0 * col0 AS col2 FROM tab0
----
13824
42875
704969
query I rowsort
SELECT 41 + + col1 * col1 FROM tab2 AS cor0
----
1002
330
3522
query I rowsort
SELECT ALL - col1 * + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT ALL - col1 * - col2 + + ( + cor0.col2 ) + col0 * 93 * 38 FROM tab2 AS cor0
----
25602
277212
279870
query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT ALL + 52 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c
query I rowsort
SELECT DISTINCT + col2 + + col1 AS col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT + 66 + col1 * cor0.col0 FROM tab0 AS cor0
----
2130
3461
8165
query I rowsort
SELECT - cor0.col1 - 79 AS col0 FROM tab1 AS cor0
----
-105
-89
-92
query I rowsort
SELECT DISTINCT 42 + - ( + tab1.col2 ) * 98 AS col0 FROM tab1
----
-5250
-5544
-9366
query I rowsort
SELECT ALL - 79 AS col0 FROM tab1
----
-79
-79
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9322
SELECT - CAST( + 42 AS SIGNED ) - col1 * col0 AS col2 FROM tab1 AS cor0
----
-1082
-120
-682
skipif mysql # not compatible
query I rowsort label-9322
SELECT - CAST ( + 42 AS INTEGER ) - col1 * col0 AS col2 FROM tab1 AS cor0
----
-1082
-120
-682
query I rowsort
SELECT 86 * + 18 AS col2 FROM tab0 AS cor0
----
1548
1548
1548
query I rowsort
SELECT ALL 91 - col0 AS col0 FROM tab0 AS cor0
----
2
56
67
query I rowsort
SELECT DISTINCT - 10 + 88 AS col1 FROM tab1 cor0
----
78
query I rowsort
SELECT ALL - 8 - - col0 AS col1 FROM tab0 cor0
----
16
27
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - col0 col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL + col1 * col1 - col2 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT + - col1 + + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-9330
SELECT + col2 DIV + col1 + col2 FROM tab2 cor0
----
26
27
40
skipif mysql # not compatible
query I rowsort label-9330
SELECT + col2 / + col1 + col2 FROM tab2 cor0
----
26
27
40
query I rowsort
SELECT DISTINCT - 52 - col1 * 11 FROM tab0 cor0
----
-1053
-1119
-998
query I rowsort
SELECT DISTINCT 56 - - col1 * + col1 FROM tab2 AS cor0
----
1017
345
3537
query I rowsort
SELECT + + col0 * col0 * col1 AS col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT ALL col0 * - col1 + col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT - col0 * + col2 * - col0 + col2 FROM tab2 AS cor0
----
1350
158210
237196
query I rowsort
SELECT + + 82 * + col0 * ( col2 ) FROM tab1 AS cor0
----
13284
299136
629760
query I rowsort
SELECT DISTINCT - 93 + + 80 AS col0 FROM tab2
----
-13
query I rowsort
SELECT ALL + col2 + + col1 * tab2.col2 AS col0 FROM tab2
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 * - tab0.col0 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 9815e1cba0dd18e853cda373f4186255
query I rowsort
SELECT cor0.col2 + cor0.col0 * - col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT 3 + ( + col1 ) * + col2 FROM tab1
----
1251
1407
573
query I rowsort
SELECT 67 * + 75 + + col1 + 92 AS col2 FROM tab2
----
5134
5148
5176
query I rowsort
SELECT col2 * + 86 AS col0 FROM tab2
----
2236
2322
3268
onlyif mysql # use DIV operator for integer division
query I rowsort label-9344
SELECT + col0 - cor0.col2 DIV col0 AS col0 FROM tab1 AS cor0
----
-15
64
79
skipif mysql # not compatible
query I rowsort label-9344
SELECT + col0 - cor0.col2 / col0 AS col0 FROM tab1 AS cor0
----
-15
64
79
query I rowsort
SELECT + col0 * - col1 + col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL + 31 FROM tab2, tab0 cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT ALL + tab1.col2 * col0 + - col1 FROM tab1
----
136
3638
7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT - + 64 * col0 + + col2 FROM tab1 AS cor0
----
-138
-4039
-5024
query I rowsort
SELECT DISTINCT + 88 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
88
query I rowsort
SELECT DISTINCT + cor0.col2 + - 4 * col1 * col2 FROM tab2 AS cor0
----
-2546
-3321
-6110
onlyif mysql # use DIV operator for integer division
query I rowsort label-9352
SELECT ALL + + cor0.col2 + col2 DIV + ( + cor0.col1 ) + 25 AS col2 FROM tab2 cor0
----
51
52
65
skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL + + cor0.col2 + col2 / + ( + cor0.col1 ) + 25 AS col2 FROM tab2 cor0
----
51
52
65
query I rowsort
SELECT DISTINCT col1 + - cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL + col0 + col1 * col2 AS col0 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT ( col2 ) * tab1.col1 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - col1 * + col2 * col0 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT + col2 + col1 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-9358
SELECT - ( + cor0.col0 ) DIV - cor0.col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-9358
SELECT - ( + cor0.col0 ) / - cor0.col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT + 31 * col1 AS col0 FROM tab1 AS cor0
----
310
403
806
query I rowsort
SELECT + col2 + + 14 FROM tab0
----
15
47
96
query I rowsort
SELECT DISTINCT + col0 * 42 FROM tab2
----
294
3276
3318
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9362
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL + CAST ( NULL AS REAL ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT col1 * - 92 FROM tab1
----
-1196
-2392
-920
query I rowsort
SELECT ALL - tab0.col1 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
onlyif mysql # use DIV operator for integer division
query I rowsort label-9365
SELECT - col1 DIV + col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-9365
SELECT - col1 / + col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT + 42 * - col1 * + col0 FROM tab1 AS cor0
----
-26880
-3276
-43680
query I rowsort
SELECT + col0 * + col2 AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT - - 36 + + cor0.col2 FROM tab1 cor0
----
132
90
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-9369
SELECT + - col2 DIV + ( cor0.col2 + + ( col1 ) ) AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9369
SELECT + - col2 / + ( cor0.col2 + + ( col1 ) ) AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9370
SELECT col2 * col0 DIV - 40 AS col2 FROM tab0 cor0
----
-182
-19
0
skipif mysql # not compatible
query I rowsort label-9370
SELECT col2 * col0 / - 40 AS col2 FROM tab0 cor0
----
-182
-19
0
query I rowsort
SELECT ALL col2 * 83 AS col1 FROM tab0 AS cor0
----
2739
6806
83
query I rowsort
SELECT DISTINCT + + col0 * + cor0.col2 + 53 AS col1 FROM tab1 cor0
----
215
3701
7733
query I rowsort
SELECT ALL + tab2.col0 + tab2.col2 FROM tab2
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-9374
SELECT DISTINCT col0 DIV - col1 AS col0 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-9374
SELECT DISTINCT col0 / - col1 AS col0 FROM tab2
----
-1
-4
0
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2, tab0 cor3
----
3645 values hashing to fb1fb273a543ea33958edfcaa2e7ed26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9376
SELECT + col1 DIV 38 col1 FROM tab2 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9376
SELECT + col1 / 38 col1 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT col1 + 30 * - ( col0 ) AS col0 FROM tab0 AS cor0
----
-2579
-634
-953
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9378
SELECT ALL + 79 + - cor0.col1 * - CAST( + col1 AS SIGNED ) * - col0 AS col2 FROM tab2 AS cor0
----
-22752
-271439
-6648
skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL + 79 + - cor0.col1 * - CAST ( + col1 AS INTEGER ) * - col0 AS col2 FROM tab2 AS cor0
----
-22752
-271439
-6648
query I rowsort
SELECT DISTINCT - tab1.col1 * + 96 AS col1 FROM tab1
----
-1248
-2496
-960
query I rowsort
SELECT - ( + col1 ) + col0 AS col1 FROM tab2 cor0
----
-24
19
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9381
SELECT - ( + 26 ) * - col1 * + CAST( NULL AS SIGNED ) - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9381
SELECT - ( + 26 ) * - col1 * + CAST ( NULL AS INTEGER ) - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0 cor1
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d
query I rowsort
SELECT - col2 + col0 AS col0 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT + col1 + - tab2.col0 AS col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT ALL - col0 + + col2 * col0 FROM tab2
----
182
1950
2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-9386
SELECT ALL - col1 * col2 + 1 DIV col0 AS col1 FROM tab2
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL - col1 * col2 + 1 / col0 AS col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
10
13
26
query I rowsort
SELECT DISTINCT col0 + col1 * ( + col2 ) FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT + col0 + col2 * tab2.col0 * - col0 FROM tab2
----
-1316
-158106
-237079
query I rowsort
SELECT + 83 * col0 * 7 AS col2 FROM tab1
----
1743
37184
46480
query I rowsort
SELECT DISTINCT - 0 + - col1 AS col0 FROM tab0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9392
SELECT ALL col0 + col2 DIV tab2.col0 FROM tab2
----
10
78
79
skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL col0 + col2 / tab2.col0 FROM tab2
----
10
78
79
query I rowsort
SELECT DISTINCT + + 45 + + col1 * + col2 FROM tab0 AS cor0
----
142
2883
7507
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 - cor0.col2 col0 FROM tab2 AS cor0
----
-5
6
7
query I rowsort
SELECT DISTINCT - - col2 * col0 * + 50 FROM tab0 AS cor0
----
1750
364900
39600
query I rowsort
SELECT ALL - ( col2 ) + + cor0.col0 AS col1 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT - + cor0.col0 * + col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT + - 97 - col2 FROM tab1 AS cor0
----
-151
-154
-193
query I rowsort
SELECT ALL 63 * col0 AS col0 FROM tab2 AS cor0
----
441
4914
4977
onlyif mysql # use DIV operator for integer division
query I rowsort label-9400
SELECT + 83 DIV col0 + + 71 FROM tab1 AS cor0
----
72
72
98
skipif mysql # not compatible
query I rowsort label-9400
SELECT + 83 / col0 + + 71 FROM tab1 AS cor0
----
72
72
98
query I rowsort
SELECT ALL - - col1 * - 58 * + ( - col1 ) FROM tab2 AS cor0
----
16762
201898
55738
query I rowsort
SELECT ALL 66 + - cor0.col2 AS col2 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 4c86c73df1f2cfb8df53c4a7c34401fe
query I rowsort
SELECT ALL - col2 * col1 + col1 * + col0 FROM tab1 AS cor0
----
-1326
-208
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col1 * 59 * - col0 + + cor0.col1 * col2 col2 FROM tab1 AS cor0
----
-3144
-37133
-60016
query I rowsort
SELECT - 70 * + 46 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to b0dbd26e1d4bf6ed7bdac572b1582295
onlyif mysql # use DIV operator for integer division
query I rowsort label-9406
SELECT col2 + - 28 DIV - col1 FROM tab2 AS cor0
----
26
27
39
skipif mysql # not compatible
query I rowsort label-9406
SELECT col2 + - 28 / - col1 FROM tab2 AS cor0
----
26
27
39
query I rowsort
SELECT ALL ( - col0 ) * tab2.col2 + + col1 * - col0 * + col2 FROM tab2
----
-121680
-54036
-6048
query I rowsort
SELECT DISTINCT + col1 * ( 46 ) + col0 FROM tab0 AS cor0
----
3980
4275
4497
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 + + cor0.col0 col1 FROM tab0 AS cor0
----
-49
-60
5
query I rowsort
SELECT DISTINCT - 1 + ( + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
25
26
37
query I rowsort
SELECT ( col0 ) * tab2.col2 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-9412
SELECT ( 46 ) DIV + col2 + ( - 8 ) FROM tab1
----
-8
-8
-8
skipif mysql # not compatible
query I rowsort label-9412
SELECT ( 46 ) / + col2 + ( - 8 ) FROM tab1
----
-8
-8
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 + - col2 col0 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT ALL + + col1 + 57 * + col0 FROM tab1 AS cor0
----
197
3658
4573
query I rowsort
SELECT DISTINCT - + cor0.col0 * - col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL - ( + 51 ) * - col1 FROM tab0 AS cor0
----
4386
4641
4947
query I rowsort
SELECT ALL + col1 + col2 * col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT ALL - + 90 FROM tab0 AS cor0
----
-90
-90
-90
query I rowsort
SELECT ALL 20 * col0 AS col0 FROM tab1 AS cor0
----
1280
1600
60
query I rowsort
SELECT DISTINCT + col2 + - tab2.col0 - - tab2.col2 AS col2 FROM tab2
----
-26
-3
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-9421
SELECT ALL - ( - col2 ) DIV col0 - + 49 * - col2 * - col1 AS col2 FROM tab2
----
-31654
-41010
-75166
skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL - ( - col2 ) / col0 - + 49 * - col2 * - col1 AS col2 FROM tab2
----
-31654
-41010
-75166
query I rowsort
SELECT DISTINCT 87 - col2 AS col0 FROM tab0
----
5
54
86
query I rowsort
SELECT col2 + 36 + tab1.col1 FROM tab1
----
103
116
145
query I rowsort
SELECT DISTINCT 90 - + 86 AS col0 FROM tab2
----
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 - - col0 col2 FROM tab1
----
-46
15
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-9426
SELECT ALL + 27 - ( + col1 ) DIV + col1 AS col0 FROM tab1
----
26
26
26
skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL + 27 - ( + col1 ) / + col1 AS col0 FROM tab1
----
26
26
26
query I rowsort
SELECT - 93 + 50 * + col1 + + col1 AS col2 FROM tab1
----
1233
417
570
query I rowsort
SELECT - 98 FROM tab2, tab2 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638
query I rowsort
SELECT + + 80 FROM tab0 cor0
----
80
80
80
query I rowsort
SELECT tab1.col1 * - tab1.col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT ALL + col0 + col0 * - 50 + col0 AS col2 FROM tab2
----
-336
-3744
-3792
query I rowsort
SELECT - 67 + + 28 FROM tab2, tab2 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col0 FROM tab0, tab2, tab1 cor0
----
27 values hashing to c023509f63faa044d654943e6df55ca2
query I rowsort
SELECT ALL tab1.col1 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT + 0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 col1 FROM tab2, tab0 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT DISTINCT + ( cor0.col0 ) + - col2 * - 25 AS col2 FROM tab0 AS cor0
----
2139
60
849
onlyif mysql # use DIV operator for integer division
query I rowsort label-9438
SELECT ALL + + col2 * + cor0.col0 DIV + col0 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL + + col2 * + cor0.col0 / + col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT col2 + col0 + + col2 * + ( - 32 * + col2 ) AS col0 FROM tab0 AS cor0
----
-214997
-34791
4
query I rowsort
SELECT + col1 + - cor0.col0 * + col2 FROM tab0 cor0
----
-706
-7207
62
query I rowsort
SELECT ALL + + 21 * - col1 AS col1 FROM tab0 AS cor0
----
-1806
-1911
-2037
query I rowsort
SELECT DISTINCT - cor0.col1 + + col1 AS col0 FROM tab1 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9443
SELECT + col1 + col1 DIV col2 + + col0 FROM tab0 AS cor0
----
112
181
229
skipif mysql # not compatible
query I rowsort label-9443
SELECT + col1 + col1 / col2 + + col0 FROM tab0 AS cor0
----
112
181
229
onlyif mysql # use DIV operator for integer division
query I rowsort label-9444
SELECT DISTINCT col2 DIV tab2.col0 AS col0 FROM tab2
----
0
3
skipif mysql # not compatible
query I rowsort label-9444
SELECT DISTINCT col2 / tab2.col0 AS col0 FROM tab2
----
0
3
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * cor0.col2 + CAST ( + col0 AS REAL ) FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL - + col0 * + cor0.col1 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + col2 * col0 * cor0.col0 FROM tab2 AS cor0
----
1323
158184
237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col2 FROM tab1 AS cor0
----
41
41
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) + + tab2.col1 col2 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 * + 67 col2 FROM tab0 cor0
----
2345
488966
53064
query I rowsort
SELECT + col0 * ( col1 ) + - cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
-2609
-2838
-8176
query I rowsort
SELECT + cor0.col1 * col0 + + col2 + col1 AS col0 FROM tab0 AS cor0
----
2183
3493
8272
query I rowsort
SELECT DISTINCT + col1 * - ( - col2 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9454
SELECT ALL - - col1 DIV 2 + col2 * - col1 FROM tab1 AS cor0
----
-1242
-1391
-565
skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL - - col1 / 2 + col2 * - col1 FROM tab1 AS cor0
----
-1242
-1391
-565
query I rowsort
SELECT + col2 + ( + 98 ) * - col0 + col0 FROM tab0 AS cor0
----
-2295
-3394
-8551
query I rowsort
SELECT ALL col2 * col2 AS col2 FROM tab2 cor0
----
1444
676
729
skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 * CAST ( + col2 AS REAL ) + + col0 + 11 AS col2 FROM tab2 AS cor0
----
1623
736
855
query I rowsort
SELECT DISTINCT - col1 * cor0.col2 * - 28 FROM tab2 AS cor0
----
18088
23436
42952
query I rowsort
SELECT - cor0.col0 + - 71 * + col0 AS col2 FROM tab1 AS cor0
----
-216
-4608
-5760
query I rowsort
SELECT col0 * + ( 35 ) + + col1 - ( 88 ) FROM tab2 AS cor0
----
188
2694
2701
query I rowsort
SELECT DISTINCT col1 * + 37 AS col2 FROM tab0 AS cor0
----
3182
3367
3589
onlyif mysql # use DIV operator for integer division
query I rowsort label-9462
SELECT ALL col0 DIV col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-9462
SELECT ALL col0 / col1 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT + - col2 + col2 * - col2 FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT ALL - 52 - + col2 FROM tab1
----
-106
-109
-148
query I rowsort
SELECT ALL - col1 + - 40 FROM tab1 cor0
----
-50
-53
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9466
SELECT col0 * 46 * 49 + + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9466
SELECT col0 * 46 * 49 + + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 * + col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + + cor0.col1 - + col1 AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9469
SELECT ( + col0 ) DIV - col2 + col2 * col0 FROM tab1 AS cor0
----
162
3647
7680
skipif mysql # not compatible
query I rowsort label-9469
SELECT ( + col0 ) / - col2 + col2 * col0 FROM tab1 AS cor0
----
162
3647
7680
query I rowsort
SELECT + col1 + ( col2 ) - + col2 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-3581
-7571
-82
query I rowsort
SELECT - 30 * col1 + col2 FROM tab2 AS cor0
----
-1744
-472
-903
onlyif mysql # use DIV operator for integer division
query I rowsort label-9472
SELECT - + cor0.col2 * col2 DIV col0 FROM tab2 AS cor0
----
-104
-18
-8
skipif mysql # not compatible
query I rowsort label-9472
SELECT - + cor0.col2 * col2 / col0 FROM tab2 AS cor0
----
-104
-18
-8
query I rowsort
SELECT + col0 * ( + 35 ) * col0 AS col2 FROM tab2
----
1715
212940
218435
query I rowsort
SELECT - col0 * + col0 + col2 + tab1.col1 FROM tab1
----
-4029
-6291
71
query I rowsort
SELECT DISTINCT col0 * - col0 + col1 * - col1 * - col0 AS col2 FROM tab2 AS cor0
----
16590
265434
6678
query I rowsort
SELECT ALL + col1 * col0 + col2 * - col0 - col0 FROM tab2 AS cor0
----
-1738
21
2496
query I rowsort
SELECT col1 * + 15 AS col2 FROM tab1
----
150
195
390
query I rowsort
SELECT DISTINCT 87 AS col0 FROM tab0, tab2, tab2 AS cor0, tab1
----
87
query I rowsort
SELECT - 98 AS col1 FROM tab1 AS cor0
----
-98
-98
-98
query I rowsort
SELECT - + cor0.col0 + + col2 * - ( + cor0.col1 ) FROM tab0 cor0
----
-132
-2862
-7551
query I rowsort
SELECT + + 38 * col0 FROM tab1 AS cor0
----
114
2432
3040
query I rowsort
SELECT + 52 + + col2 * + ( + col1 ) AS col1 FROM tab1 AS cor0
----
1300
1456
622
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9483
SELECT ALL + col0 / + col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL + col0 / + col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 7 FROM tab0 AS cor0
----
-7
query I rowsort
SELECT ALL 18 + - col2 + + col1 * - col2 FROM tab0 AS cor0
----
-2853
-7526
-80
query I rowsort
SELECT - - 17 AS col1 FROM tab0 cor0
----
17
17
17
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 col1 * col0 AS col2 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9489
SELECT + col1 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-9489
SELECT + col1 / - col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT ALL - col0 * col2 * - col2 AS col0 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT - - 86 * + col2 + ( 36 * + col2 ) FROM tab2 AS cor0
----
3172
3294
4636
query I rowsort
SELECT ALL - 40 + + cor0.col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 65c1ead9a904fe27810187090fe4809d
query I rowsort
SELECT DISTINCT - col1 * col0 + + 98 FROM tab2 AS cor0
----
-119
-1245
-4504
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 + cor0.col2 col1 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL col2 - cor0.col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col2 + 42 FROM tab0 AS cor0
----
124
43
75
query I rowsort
SELECT - cor0.col2 + - col0 AS col1 FROM tab0 cor0
----
-171
-36
-57
query I rowsort
SELECT ALL col1 + + col2 * + col0 AS col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL + col2 * - col2 + 51 AS col1 FROM tab2 AS cor0
----
-1393
-625
-678
query I rowsort
SELECT col2 * - ( ( col2 ) ) AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL col2 * cor0.col1 + + 26 AS col2 FROM tab0 AS cor0
----
123
2864
7488
query I rowsort
SELECT ALL + + col2 * + col0 + 62 FROM tab0 AS cor0
----
7360
854
97
query I rowsort
SELECT + col2 + - tab2.col1 AS col2 FROM tab2
----
-33
-4
21
query I rowsort
SELECT DISTINCT - 32 AS col0 FROM tab0, tab2, tab0 AS cor0
----
-32
query I rowsort
SELECT DISTINCT - 71 AS col1 FROM tab1
----
-71
query I rowsort
SELECT col0 * - col1 * tab2.col1 AS col0 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT - col1 - col2 AS col2 FROM tab2
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-9508
SELECT DISTINCT tab1.col1 DIV col0 + col2 FROM tab1
----
57
62
96
skipif mysql # not compatible
query I rowsort label-9508
SELECT DISTINCT tab1.col1 / col0 + col2 FROM tab1
----
57
62
96
query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 + col2 * col0 ) NOT BETWEEN ( - col2 ) AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9510
SELECT + col0 DIV col1 + - col1 * tab0.col2 AS col2 FROM tab0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-9510
SELECT + col0 / col1 + - col1 * tab0.col2 AS col2 FROM tab0
----
-2838
-7462
-97
query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col1 + - col1 ) IN ( col1 * col2 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN ( NULL ) AND + col1
----
query I rowsort
SELECT - col2 FROM tab0 WHERE NOT - col1 * col0 + col2 NOT IN ( tab0.col1 - - col2 )
----
query I rowsort
SELECT tab1.col2 * + tab1.col2 + col1 AS col2 FROM tab1
----
2942
3259
9229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 * - col2 col0 FROM tab0
----
-244068
-679042
-9409
query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + col2 - + col2 * col2 )
----
query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col2 / tab2.col0 )
----
query I rowsort
SELECT ALL col0 * - col1 * - col1 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT ALL col2 * col1 * col1 AS col0 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT + tab2.col1 * - col1 AS col0 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT col1 + - col0 * - col1 FROM tab2
----
1360
248
4661
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = col2 + - col0
----
query I rowsort
SELECT ALL + col1 - tab0.col0 FROM tab0
----
2
62
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 col1 FROM tab0
----
171
36
57
query I rowsort
SELECT - tab1.col1 + col0 AS col0 FROM tab1
----
-23
54
67
query I rowsort
SELECT DISTINCT tab2.col0 * col1 + + col0 AS col2 FROM tab2
----
1422
224
4680
query I rowsort
SELECT col2 * - col0 + tab1.col0 AS col1 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT col1 + + tab1.col0 * tab1.col2 FROM tab1
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + + col2 col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT ALL - col2 + col1 - col0 * + col0 FROM tab0
----
-1129
-523
-7912
query I rowsort
SELECT ALL col0 * - col2 * tab0.col2 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT ALL - tab0.col2 FROM tab0 WHERE NULL IN ( tab0.col0 / col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9533
SELECT DISTINCT - col1 + + col0 * + col2 - tab2.col2 DIV - col0 AS col0 FROM tab2
----
161
1969
2985
skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT - col1 + + col0 * + col2 - tab2.col2 / - col0 AS col0 FROM tab2
----
161
1969
2985
query I rowsort
SELECT - tab0.col0 * col0 - col0 FROM tab0
----
-1260
-600
-8010
query I rowsort
SELECT + col0 + + col0 * col2 AS col2 FROM tab2
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-9536
SELECT DISTINCT - col1 DIV + tab0.col0 col1 FROM tab0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT - col1 / + tab0.col0 col1 FROM tab0
----
-1
-2
-3
query I rowsort
SELECT + col0 + col2 * col0 * 0 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL col2 - - ( col1 + 0 ) FROM tab0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9539
SELECT DISTINCT - tab2.col0 - tab2.col2 DIV col1 FROM tab2
----
-7
-78
-81
skipif mysql # not compatible
query I rowsort label-9539
SELECT DISTINCT - tab2.col0 - tab2.col2 / col1 FROM tab2
----
-7
-78
-81
query I rowsort
SELECT ALL + ( cor0.col2 ) * 8 AS col2 FROM tab2 AS cor0
----
208
216
304
query I rowsort
SELECT 30 * col2 AS col2 FROM tab1 cor0
----
1620
1710
2880
query I rowsort
SELECT DISTINCT - col0 + + col0 * 6 * + cor0.col1 FROM tab0 AS cor0
----
12360
20335
48505
query I rowsort
SELECT DISTINCT + ( col1 ) * + col0 * col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT + col1 + cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT 49 + + tab0.col0 FROM tab0
----
138
73
84
query I rowsort
SELECT ALL 25 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9547
SELECT CAST( NULL AS SIGNED ) + col0 * tab1.col0 / + 23 - - col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9547
SELECT CAST ( NULL AS INTEGER ) + col0 * tab1.col0 / + 23 - - col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + 4 * - col2 + + col2 AS col1 FROM tab0
----
-246
-3
-99
query I rowsort
SELECT DISTINCT + col2 - - tab2.col1 FROM tab2
----
55
58
85
query I rowsort
SELECT 2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
query I rowsort
SELECT 3 * + col1 * 42 FROM tab1
----
1260
1638
3276
onlyif mysql # use DIV operator for integer division
query I rowsort label-9552
SELECT ALL tab1.col1 + - col2 DIV + col2 FROM tab1
----
12
25
9
skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL tab1.col1 + - col2 / + col2 FROM tab1
----
12
25
9
query I rowsort
SELECT DISTINCT + + col1 + col1 * + ( cor0.col2 + - col0 ) FROM tab1 AS cor0
----
-60
1352
221
query I rowsort
SELECT + + cor0.col2 + col1 + - col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT cor0.col0 * + cor0.col0 + - col0 + col2 AS col1 FROM tab1 cor0
----
4089
60
6416
query I rowsort
SELECT - col1 + col0 * - ( col1 ) * col2 AS col2 FROM tab2 AS cor0
----
-119711
-51051
-5890
query I rowsort
SELECT ALL 30 + cor0.col1 * col2 * - col0 FROM tab1 AS cor0
----
-36450
-4182
-99810
query I rowsort
SELECT - 89 * col0 + - col1 + col2 AS col1 FROM tab0 AS cor0
----
-2189
-3211
-7930
onlyif mysql # use DIV operator for integer division
query I rowsort label-9559
SELECT 23 + + col2 + col0 DIV col2 AS col2 FROM tab1 AS cor0
----
119
77
81
skipif mysql # not compatible
query I rowsort label-9559
SELECT 23 + + col2 + col0 / col2 AS col2 FROM tab1 AS cor0
----
119
77
81
query I rowsort
SELECT ALL + 73 * + col0 AS col0 FROM tab0 AS cor0
----
1752
2555
6497
query I rowsort
SELECT DISTINCT - + col0 * - col0 * + col0 AS col1 FROM tab0 cor0
----
13824
42875
704969
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 cor2
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9563
SELECT DISTINCT + col0 / + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT + col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + - col1 + col1 + + col2 AS col0 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9565
SELECT ALL + col0 + - col1 * 23 DIV - col0 FROM tab0 cor0
----
106
112
98
skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL + col0 + - col1 * 23 / - col0 FROM tab0 cor0
----
106
112
98
query I rowsort
SELECT ALL col1 + ( - 81 ) * + col1 - + 56 * 67 FROM tab0 AS cor0
----
-10632
-11032
-11512
query I rowsort
SELECT + cor0.col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9568
SELECT col2 + - CAST( NULL AS DECIMAL ) / + col2 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9568
SELECT col2 + - CAST ( NULL AS REAL ) / + col2 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 28 AS col0 FROM tab0 AS cor0
----
-28
query I rowsort
SELECT ALL - - 40 * - col1 + - col0 FROM tab0 AS cor0
----
-3464
-3729
-3915
onlyif mysql # use DIV operator for integer division
query I rowsort label-9571
SELECT ALL col0 + + col0 DIV col0 FROM tab1 cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL col0 + + col0 / col0 FROM tab1 cor0
----
4
65
81
query I rowsort
SELECT ALL + col0 + 58 AS col1 FROM tab0 cor0
----
147
82
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 + + ( col0 ) col1 FROM tab0
----
143
78
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col2 col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9575
SELECT ALL CAST( NULL AS SIGNED ) + cor0.col0 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL CAST ( NULL AS INTEGER ) + cor0.col0 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 43 + - 37 AS col2 FROM tab0 AS cor0
----
-80
query I rowsort
SELECT DISTINCT col1 * col0 + - col1 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-9578
SELECT DISTINCT + cor0.col1 DIV - col1 FROM tab1 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT + cor0.col1 / - col1 FROM tab1 cor0
----
-1
query I rowsort
SELECT - 5 - + col1 FROM tab2 AS cor0
----
-22
-36
-64
query I rowsort
SELECT - 93 * cor0.col1 + col0 * col1 * col1 FROM tab0 AS cor0
----
169506
320294
728546
onlyif mysql # use DIV operator for integer division
query I rowsort label-9581
SELECT ALL - col1 * col0 DIV - col0 AS col0 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL - col1 * col0 / - col0 AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT 5 - col1 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-7391
-8276
-9404
onlyif mysql # use DIV operator for integer division
query I rowsort label-9583
SELECT ALL + col0 * col0 DIV col1 + col1 AS col1 FROM tab2 AS cor0
----
162
32
384
skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL + col0 * col0 / col1 + col1 AS col1 FROM tab2 AS cor0
----
162
32
384
query I rowsort
SELECT DISTINCT - col2 + col0 * + col0 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
106059
1492
358930
query I rowsort
SELECT ALL - ( ( tab0.col0 ) + - col0 ) * col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + 3 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT + col1 + - col2 * - col0 AS col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL - 57 + col0 * - col2 FROM tab2
----
-2085
-246
-3059
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * 52 col1 FROM tab2 AS cor0
----
-1352
-1404
-1976
query I rowsort
SELECT + ( - cor0.col1 ) * col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT col2 * 4 * + 17 AS col0 FROM tab2
----
1768
1836
2584
query I rowsort
SELECT ALL ( - tab1.col2 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT - - cor0.col0 AS col1 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9594
SELECT ALL - CAST( + 60 AS SIGNED ) + cor0.col1 * col2 FROM tab1 AS cor0
----
1188
1344
510
skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL - CAST ( + 60 AS INTEGER ) + cor0.col1 * col2 FROM tab1 AS cor0
----
1188
1344
510
query I rowsort
SELECT DISTINCT - + 61 AS col0 FROM tab1 AS cor0
----
-61
query I rowsort
SELECT DISTINCT cor0.col1 * + 11 AS col2 FROM tab1 AS cor0
----
110
143
286
query I rowsort
SELECT - ( + 90 ) AS col1 FROM tab2
----
-90
-90
-90
query I rowsort
SELECT DISTINCT + tab1.col2 * - col0 AS col1 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL + 89 FROM tab2
----
89
89
89
query I rowsort
SELECT col0 + + 25 FROM tab1 AS cor0
----
105
28
89
query I rowsort
SELECT DISTINCT + 63 * cor0.col1 FROM tab1, tab0 cor0
----
5418
5733
6111
onlyif mysql # use DIV operator for integer division
query I rowsort label-9602
SELECT ALL + col1 DIV tab1.col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL + col1 / tab1.col1 FROM tab1
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * cor0.col2 - col1 col1 FROM tab0 AS cor0 WHERE NULL > NULL
----
query I rowsort
SELECT DISTINCT - cor0.col0 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT + col2 + col0 * - cor0.col1 + col1 FROM tab1 AS cor0
----
-573
-931
2
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 > - col0 * col1 + - col1 / + col1
----
onlyif mysql # use DIV operator for integer division
query III rowsort label-9607
SELECT * FROM tab1 WHERE - col1 + col1 NOT IN ( + col1 DIV + col2 )
----
skipif mysql # not compatible
query III rowsort label-9607
SELECT * FROM tab1 WHERE - col1 + col1 NOT IN ( + col1 / + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9608
SELECT ALL + col0 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-9608
SELECT ALL + col0 / + tab0.col1 col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col0 FROM tab0 WHERE - col0 IN ( col1 )
----
query I rowsort
SELECT + col0 + col0 + col1 AS col0 FROM tab0
----
134
167
269
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN NULL AND col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND col1 * col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9613
SELECT tab0.col0 DIV - col1 + + col2 * + col1 + - col0 AS col1 FROM tab0
----
2814
62
7373
skipif mysql # not compatible
query I rowsort label-9613
SELECT tab0.col0 / - col1 + + col2 * + col1 + - col0 AS col1 FROM tab0
----
2814
62
7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-9614
SELECT col0 + col0 DIV col2 FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( col0 )
----
24
70
90
skipif mysql # not compatible
query I rowsort label-9614
SELECT col0 + col0 / col2 FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( col0 )
----
24
70
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----
query I rowsort
SELECT - col0 * - cor0.col0 + + col2 AS col0 FROM tab2 cor0
----
6110
6279
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-9617
SELECT DISTINCT + + col2 * col2 DIV + col1 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
162
35
36
skipif mysql # not compatible
query I rowsort label-9617
SELECT DISTINCT + + col2 * col2 / + col1 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
162
35
36
query I rowsort
SELECT + col1 + + col1 + - col2 * + col2 FROM tab1 AS cor0
----
-2864
-3229
-9190
query I rowsort
SELECT + col1 * col0 + + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT + col2 * col1 + col0 + + col0 FROM tab1 AS cor0
----
1408
1410
698
query I rowsort
SELECT + + col2 + + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL col1 * cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT + col1 * col1 + - col1 FROM tab0 AS cor0
----
7310
8190
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-9624
SELECT + cor0.col1 + cor0.col1 * - col2 DIV - col2 FROM tab1 cor0
----
20
26
52
skipif mysql # not compatible
query I rowsort label-9624
SELECT + cor0.col1 + cor0.col1 * - col2 / - col2 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT - col2 * tab2.col1 * + 88 AS col2 FROM tab2
----
-134992
-56848
-73656
query I rowsort
SELECT ALL - col0 - - 78 * col1 FROM tab0
----
6684
7009
7531
query I rowsort
SELECT DISTINCT tab1.col2 - 77 AS col2 FROM tab1
----
-20
-23
19
query I rowsort
SELECT - col2 + + col0 * ( + col0 ) FROM tab2
----
22
6058
6203
onlyif mysql # use DIV operator for integer division
query I rowsort label-9629
SELECT ALL + col0 - + col1 DIV col0 FROM tab0
----
21
33
88
skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL + col0 - + col1 / col0 FROM tab0
----
21
33
88
query I rowsort
SELECT - - col1 * + col2 - 98 FROM tab2 AS cor0
----
1436
548
739
query I rowsort
SELECT DISTINCT col2 * col1 + 5 - - col0 FROM tab0 AS cor0
----
137
2867
7556
query I rowsort
SELECT - col0 - ( + 58 ) FROM tab2 cor0
----
-136
-137
-65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9633
SELECT col0 + CAST( + 16 AS SIGNED ) AS col2 FROM tab2
----
23
94
95
skipif mysql # not compatible
query I rowsort label-9633
SELECT col0 + CAST ( + 16 AS INTEGER ) AS col2 FROM tab2
----
23
94
95
query I rowsort
SELECT - - 30 * col2 + cor0.col0 FROM tab2 AS cor0
----
1219
817
858
query I rowsort
SELECT ALL + + 68 * - cor0.col0 FROM tab0 AS cor0
----
-1632
-2380
-6052
query I rowsort
SELECT - ( col0 ) + + col1 * ( col2 ) FROM tab0 AS cor0
----
2814
62
7373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9637
SELECT + CAST( + 87 AS SIGNED ) + + cor0.col2 * - ( - 87 ) FROM tab0 AS cor0
----
174
2958
7221
skipif mysql # not compatible
query I rowsort label-9637
SELECT + CAST ( + 87 AS INTEGER ) + + cor0.col2 * - ( - 87 ) FROM tab0 AS cor0
----
174
2958
7221
query I rowsort
SELECT ALL - - 30 * + 1 + + col0 FROM tab0 AS cor0
----
119
54
65
query I rowsort
SELECT + col0 + cor0.col0 * col1 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-9640
SELECT DISTINCT + - col1 DIV cor0.col1 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT + - col1 / cor0.col1 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT DISTINCT + ( + col2 ) * col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - col1 * col0 + + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ( col2 ) + + col2 * 23 * - col1 FROM tab2 AS cor0
----
-14820
-19224
-35256
query I rowsort
SELECT - ( col1 ) * col1 + col2 AS col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT - cor0.col0 - - col2 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT 82 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT ( 71 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT - 0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - col0 + 13 FROM tab1 AS cor0
----
-51
-67
10
query I rowsort
SELECT ALL col0 * ( + col1 ) + + cor0.col1 AS col2 FROM tab0 cor0
----
2150
3492
8190
query I rowsort
SELECT col2 + - 63 * col2 AS col2 FROM tab0 AS cor0
----
-2046
-5084
-62
query I rowsort
SELECT DISTINCT - - ( cor0.col0 ) + - cor0.col0 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 * cor0.col1 col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL + 4 * col1 AS col2 FROM tab2 AS cor0
----
124
236
68
query I rowsort
SELECT DISTINCT - 76 FROM tab1 AS cor0
----
-76
query I rowsort
SELECT 47 AS col1 FROM tab2 AS cor0
----
47
47
47
query I rowsort
SELECT DISTINCT + col0 * - ( - col2 ) + - col0 * col1 + + col1 FROM tab2 AS cor0
----
-2515
1676
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-9658
SELECT + col2 DIV col1 - - col2 FROM tab1 AS cor0
----
103
56
62
skipif mysql # not compatible
query I rowsort label-9658
SELECT + col2 / col1 - - col2 FROM tab1 AS cor0
----
103
56
62
query I rowsort
SELECT + + col2 - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + cor0.col2 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 22 col0 FROM tab2, tab2 cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9
query I rowsort
SELECT DISTINCT 18 + - cor0.col2 * + cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
-1230
-1386
-552
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9663
SELECT DISTINCT + col1 + 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-9663
SELECT DISTINCT + col1 + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - 11 AS col0 FROM tab2
----
-11
-11
-11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 col0 FROM tab2
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-9666
SELECT DISTINCT - col1 DIV col0 - - cor0.col2 FROM tab0 AS cor0
----
-1
30
81
skipif mysql # not compatible
query I rowsort label-9666
SELECT DISTINCT - col1 / col0 - - cor0.col2 FROM tab0 AS cor0
----
-1
30
81
query I rowsort
SELECT DISTINCT + cor0.col0 + 67 * ( + col2 ) - + 4 AS col2 FROM tab1 AS cor0
----
3617
3879
6508
query I rowsort
SELECT DISTINCT - cor0.col1 + 28 FROM tab1 cor0
----
15
18
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * ( - col0 ) col0 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-9670
SELECT ALL + col2 + - 28 DIV + 56 + col2 * col2 AS col0 FROM tab1 cor0
----
2970
3306
9312
skipif mysql # not compatible
query I rowsort label-9670
SELECT ALL + col2 + - 28 / + 56 + col2 * col2 AS col0 FROM tab1 cor0
----
2970
3306
9312
query I rowsort
SELECT ALL - + col0 + - ( + 84 ) FROM tab2 AS cor0
----
-162
-163
-91
query I rowsort
SELECT ALL - + col1 + + 28 AS col1 FROM tab1 AS cor0
----
15
18
2
query I rowsort
SELECT DISTINCT col1 * + col1 * cor0.col0 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT ( col1 ) + col2 * col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT ALL tab1.col2 - col0 AS col0 FROM tab1
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 - col0 col2 FROM tab1 AS cor0
----
0
0
0
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 07504092eb64a26979c0bde05f7718cb
query I rowsort
SELECT DISTINCT + col2 * + col0 * cor0.col1 FROM tab1 AS cor0
----
36480
4212
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 * col0 col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - col1 + col2 * + col2 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT ALL - + 81 * - col1 * - cor0.col1 AS col2 FROM tab0 cor0
----
-599076
-670761
-762129
query I rowsort
SELECT DISTINCT - 63 + + col0 + + ( + col2 ) AS col2 FROM tab0 AS cor0
----
-27
-6
108
query I rowsort
SELECT ALL - col0 * col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT ALL + 38 * col2 FROM tab0 AS cor0
----
1254
3116
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9685
SELECT CAST( NULL AS SIGNED ) * + 93 + - col2 + + ( + col0 * + col2 ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9685
SELECT CAST ( NULL AS INTEGER ) * + 93 + - col2 + + ( + col0 * + col2 ) AS col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9686
SELECT - tab1.col1 DIV + tab1.col2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-9686
SELECT - tab1.col1 / + tab1.col2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL + ( col2 ) * - 86 * - col0 FROM tab1
----
13932
313728
660480
query I rowsort
SELECT DISTINCT 52 * col2 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-29640
-64896
-73008
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9689
SELECT CAST( NULL AS SIGNED ) FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-9689
SELECT CAST ( NULL AS INTEGER ) FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-9690
SELECT ALL - - 18 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL - - 18 / + col0 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 * col2 * 34 FROM tab0 AS cor0
----
228616
34
37026
query I rowsort
SELECT + 52 * cor0.col0 FROM tab1 AS cor0
----
156
3328
4160
query I rowsort
SELECT - cor0.col2 + col1 * col1 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT ALL + ( - 51 ) FROM tab0
----
-51
-51
-51
query I rowsort
SELECT ALL + ( - cor0.col1 ) + - col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT DISTINCT + 91 AS col1 FROM tab0, tab0 AS cor0
----
91
query I rowsort
SELECT - + cor0.col0 + + 35 * col0 FROM tab1 AS cor0
----
102
2176
2720
onlyif mysql # use DIV operator for integer division
query I rowsort label-9698
SELECT DISTINCT col0 DIV - 97 AS col2 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT col0 / - 97 AS col2 FROM tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9699
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * col1 + col2 col2 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT - + col2 - - 93 AS col1 FROM tab0 AS cor0
----
11
60
92
query I rowsort
SELECT DISTINCT + - cor0.col2 * + col2 + col1 * 37 AS col1 FROM tab2 AS cor0
----
-815
1507
418
query I rowsort
SELECT ALL col2 * col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT - cor0.col2 + col1 * cor0.col0 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT - + col1 + cor0.col0 FROM tab0 cor0
----
-2
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-9706
SELECT + 78 + col1 DIV + 52 FROM tab0 AS cor0
----
79
79
79
skipif mysql # not compatible
query I rowsort label-9706
SELECT + 78 + col1 / + 52 FROM tab0 AS cor0
----
79
79
79
query I rowsort
SELECT ALL + - col0 * + ( - 0 ) + + cor0.col1 - col0 * 44 FROM tab1 AS cor0
----
-106
-2806
-3507
query I rowsort
SELECT ALL - 18 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * ( cor0.col0 ) col1 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-9710
SELECT - col0 DIV - 80 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9710
SELECT - col0 / - 80 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 37 col0 FROM tab2 cor0
----
1147
2183
629
query I rowsort
SELECT ALL - + col0 - + 60 FROM tab2 AS cor0
----
-138
-139
-67
query I rowsort
SELECT cor0.col0 + + col2 * + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + + col2 * col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-9715
SELECT DISTINCT 8 DIV - 72 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9715
SELECT DISTINCT 8 / - 72 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT 22 FROM tab2, tab2 AS cor0
----
22
query I rowsort
SELECT DISTINCT - col0 * 24 FROM tab0
----
-2136
-576
-840
query I rowsort
SELECT col0 * ( + col1 * - col0 ) FROM tab1
----
-234
-40960
-83200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9719
SELECT + CAST( - 8 AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e
skipif mysql # not compatible
query I rowsort label-9719
SELECT + CAST ( - 8 AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e
onlyif mysql # use DIV operator for integer division
query I rowsort label-9720
SELECT + ( + ( - cor0.col1 ) ) DIV + 29 FROM tab0, tab0 AS cor0
----
9 values hashing to 286b207e8c7713c5fdef5f2000639bd6
skipif mysql # not compatible
query I rowsort label-9720
SELECT + ( + ( - cor0.col1 ) ) / + 29 FROM tab0, tab0 AS cor0
----
9 values hashing to 286b207e8c7713c5fdef5f2000639bd6
query I rowsort
SELECT ( 34 ) AS col2 FROM tab0
----
34
34
34
query I rowsort
SELECT + 57 AS col1 FROM tab2
----
57
57
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9723
SELECT - - CAST( NULL AS SIGNED ) + + col1 * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9723
SELECT - - CAST ( NULL AS INTEGER ) + + col1 * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9724
SELECT - CAST( col2 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
-164
-2
-66
skipif mysql # not compatible
query I rowsort label-9724
SELECT - CAST ( col2 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
-164
-2
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9725
SELECT DISTINCT ( + col2 ) + CAST( 62 AS SIGNED ) * col0 AS col2 FROM tab2
----
461
4862
4936
skipif mysql # not compatible
query I rowsort label-9725
SELECT DISTINCT ( + col2 ) + CAST ( 62 AS INTEGER ) * col0 AS col2 FROM tab2
----
461
4862
4936
query I rowsort
SELECT ALL tab2.col2 FROM tab2, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
onlyif mysql # use DIV operator for integer division
query I rowsort label-9727
SELECT + col1 * col1 DIV 12 FROM tab1
----
14
56
8
skipif mysql # not compatible
query I rowsort label-9727
SELECT + col1 * col1 / 12 FROM tab1
----
14
56
8
query I rowsort
SELECT + - cor0.col0 * col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT - 64 * cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 82ce522d279c092dedf37bdd561697d3
query I rowsort
SELECT + col2 * col1 + ( cor0.col0 ) + + cor0.col0 * + col1 FROM tab0 AS cor0
----
15650
3527
4926
query I rowsort
SELECT cor0.col0 + cor0.col0 * + 91 FROM tab1 AS cor0
----
276
5888
7360
onlyif mysql # use DIV operator for integer division
query I rowsort label-9732
SELECT cor0.col0 DIV - 41 AS col1 FROM tab1 cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-9732
SELECT cor0.col0 / - 41 AS col1 FROM tab1 cor0
----
-1
-1
0
query I rowsort
SELECT DISTINCT - col1 - + col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL - col1 * col2 - + 14 FROM tab0
----
-111
-2852
-7476
onlyif mysql # use DIV operator for integer division
query I rowsort label-9735
SELECT + 48 DIV + col1 FROM tab2
----
0
1
2
skipif mysql # not compatible
query I rowsort label-9735
SELECT + 48 / + col1 FROM tab2
----
0
1
2
query I rowsort
SELECT 65 + + col1 * - 58 * + col0 AS col1 FROM tab2
----
-12521
-266851
-77829
query I rowsort
SELECT ALL 22 + col2 * - 62 AS col1 FROM tab0
----
-2024
-40
-5062
query I rowsort
SELECT ALL tab0.col0 * col0 + ( - ( col0 ) * ( ( + col2 ) ) ) - + tab0.col0 FROM tab0
----
-240
1155
534
query I rowsort
SELECT - - ( - col1 ) + col1 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 col2 FROM tab1, tab0 cor0
----
-69
query I rowsort
SELECT - - col2 * col1 + ( col0 ) * - col1 FROM tab0 AS cor0
----
-3298
-637
774
query I rowsort
SELECT DISTINCT + col2 + + col0 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT - tab1.col0 * + 68 + - col2 AS col2 FROM tab1
----
-258
-4409
-5536
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT - col1 * 52 + col1 AS col1 FROM tab1
----
-1326
-510
-663
query I rowsort
SELECT + 6 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 96 + 67 * col1 col1 FROM tab0
----
5633
5919
6402
query I rowsort
SELECT ALL ( cor0.col1 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT tab1.col2 * 41 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to c15533fb6957e815e6e8a2e0338907a5
query I rowsort
SELECT col0 * ( - ( + col2 ) ) + ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT cor0.col0 * col0 + 56 AS col1 FROM tab0 AS cor0
----
1281
632
7977
query I rowsort
SELECT DISTINCT + col1 + col1 * 69 * col2 + + 37 FROM tab0
----
195945
515006
6827
query I rowsort
SELECT DISTINCT + col2 * + 44 + tab0.col1 + - col0 AS col1 FROM tab0
----
106
1514
3610
query I rowsort
SELECT + 1 * - 55 AS col0 FROM tab2 AS cor0
----
-55
-55
-55
query I rowsort
SELECT + ( 80 ) * + col0 FROM tab1 AS cor0
----
240
5120
6400
query I rowsort
SELECT - 32 * + cor0.col0 FROM tab2 AS cor0
----
-224
-2496
-2528
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 * col2 col0 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT + ( 78 ) FROM tab2 AS cor0
----
78
78
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9759
SELECT DISTINCT CAST( - ( + col0 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-9759
SELECT DISTINCT CAST ( - ( + col0 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + 93 * cor0.col0 * - col0 AS col0 FROM tab1 AS cor0
----
-380928
-595200
-837
query I rowsort
SELECT DISTINCT + col1 + - ( - cor0.col1 ) * col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL + 15 * + col2 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
109470
11880
525
onlyif mysql # use DIV operator for integer division
query I rowsort label-9763
SELECT DISTINCT - - col2 * cor0.col2 + col2 DIV col0 FROM tab0 AS cor0
----
1
1090
6724
skipif mysql # not compatible
query I rowsort label-9763
SELECT DISTINCT - - col2 * cor0.col2 + col2 / col0 FROM tab0 AS cor0
----
1
1090
6724
query I rowsort
SELECT ( - cor0.col0 ) * col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL 28 * 62 AS col1 FROM tab1 AS cor0
----
1736
1736
1736
query I rowsort
SELECT col0 * col1 * - col0 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT ALL + tab2.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT ALL ( + ( + col2 ) ) FROM tab2
----
26
27
38
query I rowsort
SELECT + cor1.col2 FROM tab2, tab1, tab0 AS cor0, tab2 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 + - col1 * + col0 col2 FROM tab2 AS cor0
----
-1054
-1989
-6136
query I rowsort
SELECT 63 * col0 + + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-2674
-5884
-7204
query I rowsort
SELECT ALL + + col1 * - col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL col1 + + 52 + col1 FROM tab1 AS cor0
----
104
72
78
query I rowsort
SELECT DISTINCT + ( + col2 ) * 47 FROM tab1 AS cor0
----
2538
2679
4512
query I rowsort
SELECT - cor0.col0 * - cor0.col0 * col0 FROM tab1 AS cor0
----
262144
27
512000
query I rowsort
SELECT - - 61 * + col2 FROM tab0 AS cor0
----
2013
5002
61
query I rowsort
SELECT DISTINCT - 45 + + col0 * col1 AS col1 FROM tab1 AS cor0
----
33
595
995
onlyif mysql # use DIV operator for integer division
query I rowsort label-9778
SELECT ALL + - cor0.col1 DIV col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL + - cor0.col1 / col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 * - cor0.col1 + 30 col0 FROM tab0 AS cor0
----
-7366
-8251
-9379
query I rowsort
SELECT DISTINCT + - 26 + col2 FROM tab1 AS cor0
----
28
31
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 * cor0.col0 col2 FROM tab0 cor0
----
-1246
-336
-490
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 col0 FROM tab1
----
94
94
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-9783
SELECT DISTINCT + 15 DIV 3 FROM tab1, tab0, tab0 AS cor0
----
5
skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT + 15 / 3 FROM tab1, tab0, tab0 AS cor0
----
5
query I rowsort
SELECT + col0 + + col1 * ( + col1 ) FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT 66 * col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
101244
42636
55242
query I rowsort
SELECT ALL + + col1 + - col0 + + col2 * + cor0.col2 FROM tab0 AS cor0
----
1151
63
6726
query I rowsort
SELECT - cor0.col2 * + col1 + col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9788
SELECT DISTINCT col0 * CAST( + col1 AS SIGNED ) FROM tab0 cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT col0 * CAST ( + col1 AS INTEGER ) FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9789
SELECT - col1 + + 45 DIV + ( - col0 ) FROM tab2 AS cor0
----
-17
-37
-59
skipif mysql # not compatible
query I rowsort label-9789
SELECT - col1 + + 45 / + ( - col0 ) FROM tab2 AS cor0
----
-17
-37
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9790
SELECT DISTINCT + col1 + CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-9790
SELECT DISTINCT + col1 + CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - col2 * col0 - col2 FROM tab0 AS cor0
----
-36
-7380
-825
onlyif mysql # use DIV operator for integer division
query I rowsort label-9792
SELECT DISTINCT - col2 DIV col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9792
SELECT DISTINCT - col2 / col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9793
SELECT + + col1 + - ( + col2 ) DIV col1 AS col1 FROM tab2 AS cor0
----
15
31
59
skipif mysql # not compatible
query I rowsort label-9793
SELECT + + col1 + - ( + col2 ) / col1 AS col1 FROM tab2 AS cor0
----
15
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9794
SELECT DISTINCT + cor0.col0 * CAST( col1 AS SIGNED ) * col2 AS col1 FROM tab2 cor0
----
119652
51034
5859
skipif mysql # not compatible
query I rowsort label-9794
SELECT DISTINCT + cor0.col0 * CAST ( col1 AS INTEGER ) * col2 AS col1 FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT ALL - - col1 * - 47 FROM tab0 AS cor0
----
-4042
-4277
-4559
query I rowsort
SELECT ALL - - col2 + 59 * col0 AS col2 FROM tab0 AS cor0
----
1449
2066
5333
query I rowsort
SELECT ALL - col1 * + col0 - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-9798
SELECT - col1 + + col0 DIV 53 AS col1 FROM tab2 AS cor0
----
-16
-31
-58
skipif mysql # not compatible
query I rowsort label-9798
SELECT - col1 + + col0 / 53 AS col1 FROM tab2 AS cor0
----
-16
-31
-58
query I rowsort
SELECT DISTINCT col0 + col1 + 65 FROM tab1 AS cor0
----
139
158
94
query I rowsort
SELECT ALL - ( col0 ) - - 85 FROM tab1
----
21
5
82
query I rowsort
SELECT DISTINCT - col1 * col1 + col2 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT cor0.col0 + col1 * - col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT + col2 + ( 58 ) FROM tab2 cor0
----
84
85
96
query I rowsort
SELECT ALL - col2 + col0 * - 85 FROM tab0 AS cor0
----
-2073
-2976
-7647
query I rowsort
SELECT DISTINCT - - col0 + + ( - 14 + + col2 ) FROM tab2 AS cor0
----
103
20
90
query I rowsort
SELECT DISTINCT + cor0.col2 + + 51 * - col0 AS col0 FROM tab2 AS cor0
----
-330
-3952
-3991
query I rowsort
SELECT ALL - 16 + col1 FROM tab0 AS cor0
----
70
75
81
query I rowsort
SELECT + ( + col1 + col0 ) AS col0 FROM tab0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-9809
SELECT - col1 + 96 DIV - col1 AS col2 FROM tab2 AS cor0
----
-22
-34
-60
skipif mysql # not compatible
query I rowsort label-9809
SELECT - col1 + 96 / - col1 AS col2 FROM tab2 AS cor0
----
-22
-34
-60
query I rowsort
SELECT DISTINCT + 55 AS col2 FROM tab1, tab2, tab1 AS cor0
----
55
query I rowsort
SELECT + 80 * 92 FROM tab2, tab2 AS cor0
----
9 values hashing to 18a5cdc777d3f35ba7325d41cf66a8a7
query I rowsort
SELECT - col1 + + col1 * + col2 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT cor0.col1 + col1 * cor0.col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT ALL + - cor0.col1 + cor0.col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 * + col2 * col1 - 20 * + col2 FROM tab0 AS cor0
----
243408
677402
9389
query I rowsort
SELECT DISTINCT - col1 + col0 + + col1 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - + col1 + + ( - col0 * - col0 + col1 * col1 ) FROM tab1 cor0
----
4186
6556
659
query I rowsort
SELECT DISTINCT - ( + 55 ) + col2 * + col2 AS col2 FROM tab0 AS cor0
----
-54
1034
6669
query I rowsort
SELECT - + col2 * + col1 - - col1 * cor0.col1 * - 72 AS col0 FROM tab0 AS cor0
----
-535350
-603694
-677545
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * col1 col2 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9821
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9821
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
query I rowsort
SELECT DISTINCT + - 58 * + 60 + cor0.col2 AS col2 FROM tab0 cor0
----
-3398
-3447
-3479
query I rowsort
SELECT ALL + cor0.col1 FROM tab0, tab2, tab1 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL + cor0.col0 * col0 + col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-667
3996
6231
query I rowsort
SELECT DISTINCT + - 14 * col2 FROM tab1 AS cor0
----
-1344
-756
-798
onlyif mysql # use DIV operator for integer division
query I rowsort label-9826
SELECT + 52 DIV + col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9826
SELECT + 52 / + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 + - col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-9828
SELECT - col2 DIV col1 AS col2 FROM tab1 cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-9828
SELECT - col2 / col1 AS col2 FROM tab1 cor0
----
-2
-5
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9829
SELECT - col0 * + col0 - ( + col1 ) DIV - col2 AS col0 FROM tab0 AS cor0
----
-1128
-574
-7920
skipif mysql # not compatible
query I rowsort label-9829
SELECT - col0 * + col0 - ( + col1 ) / - col2 AS col0 FROM tab0 AS cor0
----
-1128
-574
-7920
query I rowsort
SELECT + + 33 + - col0 AS col2 FROM tab2 AS cor0
----
-45
-46
26
query I rowsort
SELECT - 63 AS col0 FROM tab1 cor0
----
-63
-63
-63
query I rowsort
SELECT ALL + 93 * - col1 + + 39 * col0 FROM tab1 AS cor0
----
-2301
1566
1911
query I rowsort
SELECT col1 * + col2 AS col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - col1 * col2 - ( 92 ) FROM tab2 AS cor0
----
-1626
-738
-929
skipif mysql # not compatible
query I rowsort
SELECT col0 * + col1 - - CAST ( - col0 AS REAL ) FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT - col2 - - col2 * col0 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT col0 * + col2 + - cor0.col0 * col1 * - col0 AS col0 FROM tab0 AS cor0
----
118860
50328
728109
query I rowsort
SELECT col1 + + cor0.col0 * ( 69 ) AS col2 FROM tab2 AS cor0
----
514
5441
5468
query I rowsort
SELECT + 83 AS col1 FROM tab1 cor0
----
83
83
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9840
SELECT + col0 + + col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9840
SELECT + col0 + + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + - 13 col1 FROM tab0 cor0
----
11
22
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9842
SELECT + col0 + + CAST( col1 AS SIGNED ) * + col0 col0 FROM tab1 cor0
----
1120
704
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9842
SELECT + col0 + + CAST ( col1 AS INTEGER ) * + col0 col0 FROM tab1 cor0
----
1120
704
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-9843
SELECT - col1 + - col0 DIV 54 FROM tab0 AS cor0
----
-86
-92
-97
skipif mysql # not compatible
query I rowsort label-9843
SELECT - col1 + - col0 / 54 FROM tab0 AS cor0
----
-86
-92
-97
query I rowsort
SELECT ALL - col1 * + 3 FROM tab2 AS cor0
----
-177
-51
-93
query I rowsort
SELECT DISTINCT 21 - + cor1.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-57
-58
14
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9846
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-9846
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL
query I rowsort
SELECT - 49 AS col1 FROM tab0 cor0
----
-49
-49
-49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - 99 * - col1 col1 FROM tab2 AS cor0
----
1666
3038
5782
query I rowsort
SELECT 39 FROM tab0 cor0
----
39
39
39
query I rowsort
SELECT + 9 * col2 AS col0 FROM tab0 cor0
----
297
738
9
query I rowsort
SELECT ALL - 61 - col1 AS col1 FROM tab2 AS cor0
----
-120
-78
-92
query I rowsort
SELECT 11 AS col0 FROM tab1
----
11
11
11
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 * col2 + CAST ( - col1 AS REAL ) FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT DISTINCT 90 * col1 + - col0 * + col1 - col0 AS col1 FROM tab0 AS cor0
----
2
5300
5652
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9855
SELECT DISTINCT col2 - col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT col2 - col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
query I rowsort
SELECT + col2 * col0 + + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9857
SELECT ALL col1 * col0 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL col1 * col0 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT tab2.col1 * ( col0 ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT - ( col0 + col0 * col0 ) FROM tab0
----
-1260
-600
-8010
query I rowsort
SELECT DISTINCT - col0 + + ( - ( col1 ) ) * col1 + 74 FROM tab0 cor0
----
-7346
-8296
-9370
query I rowsort
SELECT ALL - - col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9862
SELECT DISTINCT + col0 * ( + col1 ) * - col0 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9862
SELECT DISTINCT + col0 * ( + col1 ) * - col0 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + col1 * 74 AS col1 FROM tab0 AS cor0
----
6364
6734
7178
query I rowsort
SELECT + col0 * + 17 FROM tab2 AS cor0
----
119
1326
1343
query I rowsort
SELECT DISTINCT - - cor0.col2 * + cor0.col1 * - col2 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT + cor0.col0 + - col1 * + col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT + 83 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
query I rowsort
SELECT cor0.col1 + 65 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 29598ea62ff6f542ca3dfa57eb0a9945
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9869
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
query I rowsort
SELECT DISTINCT - col0 + col1 + col0 * col2 AS col0 FROM tab2 AS cor0
----
2009
213
2940
query I rowsort
SELECT ALL + cor0.col1 * + 4 + col0 * - col0 FROM tab1 AS cor0
----
-4056
-6348
95
query I rowsort
SELECT - col0 * col2 - - col0 FROM tab0
----
-7209
-768
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9873
SELECT DISTINCT + - col0 * + col1 + + col1 - - CAST( col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
-1954
-3263
-7919
skipif mysql # not compatible
query I rowsort label-9873
SELECT DISTINCT + - col0 * + col1 + + col1 - - CAST ( col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
-1954
-3263
-7919
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9874
SELECT + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9874
SELECT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * - col1 + col2 * + col1 AS col0 FROM tab0 AS cor0
----
-4558
-819
-9312
query I rowsort
SELECT tab2.col1 - col1 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL + 12 * col0 AS col1 FROM tab0
----
1068
288
420
query I rowsort
SELECT - ( cor0.col1 ) AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT ALL - 72 * + col1 FROM tab0 AS cor0
----
-6192
-6552
-6984
query I rowsort
SELECT ALL - - col0 * + col2 AS col1 FROM tab2 cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 + col0 col2 FROM tab2 AS cor0
----
150
151
79
query I rowsort
SELECT ALL - - cor0.col2 * + cor0.col0 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-9883
SELECT + col1 * col1 DIV col0 AS col1 FROM tab1 cor0
----
1
2
225
skipif mysql # not compatible
query I rowsort label-9883
SELECT + col1 * col1 / col0 AS col1 FROM tab1 cor0
----
1
2
225
query I rowsort
SELECT - ( - col1 ) + col0 FROM tab1
----
29
74
93
query I rowsort
SELECT col2 + + 10 * + col2 + + col1 FROM tab1
----
1069
620
637
query I rowsort
SELECT col0 + col1 * - tab1.col1 - tab1.col0 * + col0 AS col0 FROM tab1
----
-4132
-6489
-682
onlyif mysql # use DIV operator for integer division
query I rowsort label-9887
SELECT ALL - CAST( + col0 AS SIGNED ) DIV + col0 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9887
SELECT ALL - CAST ( + col0 AS INTEGER ) / + col0 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT ALL - col2 + + tab2.col0 AS col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT cor0.col0 * - 70 FROM tab2, tab1 cor0
----
9 values hashing to 3b14badc2ebba8cef5c7aa68ca5156f1
query I rowsort
SELECT DISTINCT 17 + + cor0.col1 FROM tab2, tab2 AS cor0, tab1 cor1
----
34
48
76
query I rowsort
SELECT + col1 + + cor0.col2 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-9892
SELECT - col2 + + col0 DIV ( col2 + col0 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-9892
SELECT - col2 + + col0 / ( col2 + col0 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT 59 + col2 FROM tab2 AS cor0
----
85
86
97
query I rowsort
SELECT DISTINCT - + 27 * col0 AS col1 FROM tab1 AS cor0
----
-1728
-2160
-81
query I rowsort
SELECT + 39 AS col1 FROM tab0 AS cor0
----
39
39
39
query I rowsort
SELECT + col2 * + col0 + - col0 AS col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT 79 * col0 FROM tab1 AS cor0
----
237
5056
6320
query I rowsort
SELECT DISTINCT - tab2.col2 + col1 + col0 AS col0 FROM tab2
----
11
111
58
query I rowsort
SELECT 60 * - col2 AS col0 FROM tab1
----
-3240
-3420
-5760
onlyif mysql # use DIV operator for integer division
query I rowsort label-9900
SELECT tab2.col0 DIV col0 + col2 AS col0 FROM tab2
----
27
28
39
skipif mysql # not compatible
query I rowsort label-9900
SELECT tab2.col0 / col0 + col2 AS col0 FROM tab2
----
27
28
39
query I rowsort
SELECT ALL - tab2.col0 * col1 + col0 AS col1 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT + col1 * + col2 + col0 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT 22 + col1 * + tab0.col2 FROM tab0
----
119
2860
7484
query I rowsort
SELECT ALL col0 * col1 + col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT - ( - col1 ) + 33 + + col1 FROM tab2
----
151
67
95
query I rowsort
SELECT DISTINCT - - 58 * col1 + + col0 + col1 AS col1 FROM tab1 AS cor0
----
1537
654
847
query I rowsort
SELECT DISTINCT + 74 AS col0 FROM tab0, tab1, tab1 AS cor0
----
74
query I rowsort
SELECT col2 - col1 * - col0 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-9909
SELECT DISTINCT col1 * col0 + 86 DIV - col2 AS col2 FROM tab0 AS cor0
----
2062
3309
8098
skipif mysql # not compatible
query I rowsort label-9909
SELECT DISTINCT col1 * col0 + 86 / - col2 AS col2 FROM tab0 AS cor0
----
2062
3309
8098
query I rowsort
SELECT - col2 * col1 + cor0.col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT + col2 + + 8 AS col2 FROM tab1 AS cor0
----
104
62
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + col1 col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT + + cor0.col0 * - col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - col0 * ( 70 ) * col0 AS col2 FROM tab1 cor0
----
-286720
-448000
-630
query I rowsort
SELECT + col1 * - 33 + 76 FROM tab1 cor0
----
-254
-353
-782
query I rowsort
SELECT col0 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9918
SELECT DISTINCT col0 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-9918
SELECT DISTINCT col0 / cor0.col1 AS col0 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT - cor0.col2 * 37 FROM tab1 AS cor0
----
-1998
-2109
-3552
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col0 * + ( + col1 ) col0 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT + + col0 * 79 AS col2 FROM tab2 AS cor0
----
553
6162
6241
query I rowsort
SELECT DISTINCT - col2 + + 42 FROM tab1 AS cor0
----
-12
-15
-54
query I rowsort
SELECT ALL - + 62 AS col0 FROM tab1 AS cor0
----
-62
-62
-62
query I rowsort
SELECT ALL + - col0 * - col1 + col2 + + col2 * col2 FROM tab2 AS cor0
----
2825
5304
973
query I rowsort
SELECT - + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL + col2 * col1 + cor0.col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT col0 * - col2 - - col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT + ( col1 ) + col1 * - 24 FROM tab1 AS cor0
----
-230
-299
-598
query I rowsort
SELECT ALL + col0 + col1 * col1 * col0 FROM tab2 AS cor0
----
22910
271596
6734
query I rowsort
SELECT ALL + 12 - + col2 * + col1 FROM tab2 AS cor0
----
-1522
-634
-825
query I rowsort
SELECT ( 52 ) * col2 AS col2 FROM tab0 AS cor0
----
1716
4264
52
query I rowsort
SELECT DISTINCT 20 FROM tab0 cor0
----
20
query I rowsort
SELECT + col1 * + col1 + - col1 AS col0 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT ALL + ( - col2 ) * + col2 + - col0 FROM tab1 AS cor0
----
-2919
-3313
-9296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 * - col0 col0 FROM tab2 AS cor0
----
-161
-1794
-1817
query I rowsort
SELECT ALL - - col1 + + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL + col1 + - col0 + col2 FROM tab1 AS cor0
----
29
3
77
query I rowsort
SELECT ALL - col2 * col1 FROM tab0 cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9939
SELECT ALL + col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL + col0 / - col2 AS col2 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT + 82 * + col2 + 91 AS col1 FROM tab0 AS cor0
----
173
2797
6815
query I rowsort
SELECT DISTINCT + + col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL + - 14 FROM tab0 cor0
----
-14
-14
-14
query I rowsort
SELECT DISTINCT + col2 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT 13 AS col0 FROM tab1, tab2 cor0, tab0 AS cor1
----
13
query I rowsort
SELECT - + ( col2 ) * - 30 + + col1 * cor0.col1 * + col2 - cor0.col2 FROM tab2 AS cor0
----
12084
26730
91260
query I rowsort
SELECT ( tab0.col2 ) - - col0 * col0 FROM tab0
----
1226
609
8003
query I rowsort
SELECT DISTINCT + 38 * col1 - col0 FROM tab2
----
1171
2164
567
query I rowsort
SELECT - - 94 FROM tab2 AS cor0
----
94
94
94
query I rowsort
SELECT + ( cor0.col2 ) AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT ALL 81 - - col1 AS col2 FROM tab0
----
167
172
178
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 * + ( + col0 ) col0 FROM tab1 AS cor0
----
198
4224
5280
onlyif mysql # use DIV operator for integer division
query I rowsort label-9952
SELECT 3 * - col1 - col1 DIV 29 AS col2 FROM tab1 AS cor0
----
-30
-39
-78
skipif mysql # not compatible
query I rowsort label-9952
SELECT 3 * - col1 - col1 / 29 AS col2 FROM tab1 AS cor0
----
-30
-39
-78
query I rowsort
SELECT - + 55 FROM tab2 AS cor0
----
-55
-55
-55
query I rowsort
SELECT DISTINCT 60 FROM tab2, tab1 AS cor0
----
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 * col0 col0 FROM tab1
----
233472
486
614400
query I rowsort
SELECT tab1.col2 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT - col2 + col2 + - col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + col0 * - ( col1 ) AS col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + + 6 + + 56 * + col0 FROM tab2 AS cor0
----
398
4374
4430
query I rowsort
SELECT col2 + - 96 + ( tab2.col1 ) FROM tab2
----
-11
-38
-41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 * 66 + 69 + + col2 col0 FROM tab1
----
321
4350
5445
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9962
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-9962
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab0
----
NULL
query I rowsort
SELECT - cor1.col2 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT DISTINCT + 63 * col2 AS col1 FROM tab1
----
3402
3591
6048
query I rowsort
SELECT - 69 * ( col0 ) + - cor0.col1 FROM tab2 AS cor0
----
-514
-5441
-5468
query I rowsort
SELECT ALL + + 77 + col1 * cor0.col0 FROM tab2 AS cor0
----
1420
294
4679
onlyif mysql # use DIV operator for integer division
query I rowsort label-9967
SELECT 26 * - col2 DIV + cor0.col2 + 45 AS col2 FROM tab0 AS cor0
----
19
19
19
skipif mysql # not compatible
query I rowsort label-9967
SELECT 26 * - col2 / + cor0.col2 + 45 AS col2 FROM tab0 AS cor0
----
19
19
19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 col1 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT + tab0.col0 * + ( + col2 * + ( col2 ) ) FROM tab0
----
26136
35
598436
query I rowsort
SELECT 83 * - tab0.col0 * col2 FROM tab0
----
-2905
-605734
-65736
query I rowsort
SELECT ALL 55 AS col2 FROM tab1
----
55
55
55
query I rowsort
SELECT DISTINCT 80 * - col0 AS col2 FROM tab1
----
-240
-5120
-6400
query I rowsort
SELECT - col2 * + 41 FROM tab0 AS cor0
----
-1353
-3362
-41
query I rowsort
SELECT - 32 + + col1 * 14 FROM tab2
----
206
402
794
query I rowsort
SELECT ALL tab1.col0 FROM tab1, tab2 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
onlyif mysql # use DIV operator for integer division
query I rowsort label-9976
SELECT ALL - col0 DIV col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL - col0 / col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9977
SELECT + col1 * + CAST( NULL AS SIGNED ) * 10 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9977
SELECT + col1 * + CAST ( NULL AS INTEGER ) * 10 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 * col0 + col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT - + col1 + - col0 + + col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - - col1 - CAST ( cor0.col2 AS REAL ) col0 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT + col0 + + 32 FROM tab1 AS cor0
----
112
35
96
query I rowsort
SELECT + 50 + + col2 AS col0 FROM tab1 AS cor0
----
104
107
146
query I rowsort
SELECT ALL + 20 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 8550664862df5be7a3d3f6037537d2d8
query I rowsort
SELECT 38 * - col1 FROM tab1
----
-380
-494
-988
query I rowsort
SELECT + cor0.col2 + - 1 * - col1 - + col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - col1 + - col2 * col0 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT ALL 87 + 94 FROM tab1 AS cor0
----
181
181
181
query I rowsort
SELECT DISTINCT 92 * + cor0.col1 + - col1 FROM tab0 AS cor0
----
7826
8281
8827
onlyif mysql # use DIV operator for integer division
query I rowsort label-9989
SELECT - - col1 * cor0.col1 DIV col0 - + cor0.col2 FROM tab1 AS cor0
----
-56
-94
171
skipif mysql # not compatible
query I rowsort label-9989
SELECT - - col1 * cor0.col1 / col0 - + cor0.col2 FROM tab1 AS cor0
----
-56
-94
171
onlyif mysql # use DIV operator for integer division
query I rowsort label-9990
SELECT DISTINCT + 19 + + col1 DIV col0 AS col1 FROM tab1 AS cor0
----
19
27
skipif mysql # not compatible
query I rowsort label-9990
SELECT DISTINCT + 19 + + col1 / col0 AS col1 FROM tab1 AS cor0
----
19
27
query I rowsort
SELECT + 86 AS col2 FROM tab1 AS cor0
----
86
86
86
query I rowsort
SELECT DISTINCT - col1 * - col1 AS col1 FROM tab1
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-9993
SELECT + col0 DIV col2 AS col1 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-9993
SELECT + col0 / col2 AS col1 FROM tab0 AS cor0
----
0
1
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9994
SELECT ALL - cor0.col0 + - CAST( col1 AS SIGNED ) * - col2 * col2 col1 FROM tab0 AS cor0
----
611795
62
93630
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL - cor0.col0 + - CAST ( col1 AS INTEGER ) * - col2 * col2 col1 FROM tab0 AS cor0
----
611795
62
93630
query I rowsort
SELECT DISTINCT + - col0 * 33 AS col2 FROM tab1 AS cor0
----
-2112
-2640
-99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9996
SELECT cor0.col2 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9996
SELECT cor0.col2 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( + col0 + + tab0.col0 ) FROM tab0
----
-178
-48
-70
query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab2, tab0, tab0 AS cor0
----
1
33
82