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 ALL - col0 * - col1 AS col0 FROM tab2
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT - tab2.col1 * col1 AS col2 FROM tab2
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-3
SELECT col1 DIV - 43 + + col0 * tab2.col2 FROM tab2
----
189
2027
3002
skipif mysql # not compatible
query I rowsort label-3
SELECT col1 / - 43 + + col0 * tab2.col2 FROM tab2
----
189
2027
3002
query I rowsort
SELECT + 51 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT col0 * - 54 AS col2 FROM tab1
----
-162
-3456
-4320
query I rowsort
SELECT 54 * - col0 + + col0 + col0 FROM tab2
----
-364
-4056
-4108
onlyif mysql # use DIV operator for integer division
query I rowsort label-7
SELECT + col1 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7
SELECT + col1 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 86 AS col2 FROM tab1
----
86
86
86
query I rowsort
SELECT ALL + col0 * col2 * col0 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT ALL - col0 * - tab1.col1 * + tab1.col0 FROM tab1
----
234
40960
83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-11
SELECT 0 DIV - tab0.col0 FROM tab0, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-11
SELECT 0 / - tab0.col0 FROM tab0, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT 32 FROM tab1, tab2, tab2 cor0
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a
query I rowsort
SELECT + 31 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT ALL col2 * - col0 AS col2 FROM tab2
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-15
SELECT ALL - col1 + cor0.col0 * + CAST( NULL AS SIGNED ) * 34 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-15
SELECT ALL - col1 + cor0.col0 * + CAST ( NULL AS INTEGER ) * 34 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( col2 ) * col1 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT - - cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 * - col2 - + 72 * col1 col0 FROM tab2 AS cor0
----
-24831
-25772
-44132
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-19
SELECT - - col2 + - cor0.col0 * + CAST( NULL AS SIGNED ) / - 89 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-19
SELECT - - col2 + - cor0.col0 * + CAST ( NULL AS INTEGER ) / - 89 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col0 + col0 * ( + col1 ) AS col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT - - 76 FROM tab1 cor0
----
76
76
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-23
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * col1 + - col1 * + col0 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * col1 + - col1 * + col0 AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - + 85 AS col1 FROM tab0 AS cor0
----
-85
-85
-85
query I rowsort
SELECT DISTINCT - + 36 + + ( - col1 ) FROM tab1 AS cor0
----
-46
-49
-62
query I rowsort
SELECT DISTINCT - + col0 * - col1 + col2 FROM tab2 AS cor0
----
1381
244
4628
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-27
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-27
SELECT DISTINCT CAST ( NULL AS REAL ) * col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - col2 + - 4 FROM tab0
----
-37
-5
-86
query I rowsort
SELECT ALL 46 FROM tab1, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) + - col2 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 + 20 AS col1 FROM tab0 AS cor0
----
106
111
117
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 + + ( tab1.col2 ) * + col1 col2 FROM tab1
----
1328
1407
634
query I rowsort
SELECT DISTINCT + - col2 + col2 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL col0 - + 48 AS col2 FROM tab0
----
-13
-24
41
query I rowsort
SELECT DISTINCT + 11 FROM tab2
----
11
query I rowsort
SELECT ( 60 ) * - col2 + col2 AS col1 FROM tab0
----
-1947
-4838
-59
query I rowsort
SELECT DISTINCT - 83 AS col2 FROM tab1
----
-83
query I rowsort
SELECT ALL - + col2 * col1 * + col1 AS col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 85 col1 FROM tab0 AS cor0
----
109
120
174
query I rowsort
SELECT + col2 - + col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT DISTINCT col1 + col2 AS col1 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT 4 + col1 + 43 FROM tab1
----
57
60
73
query I rowsort
SELECT + 71 AS col1 FROM tab0
----
71
71
71
query I rowsort
SELECT DISTINCT 19 * col2 + - 59 FROM tab1
----
1024
1765
967
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 29 + col1 * ( col0 ) col2 FROM tab0
----
2093
3424
8128
query I rowsort
SELECT ALL - col0 + + col2 * 63 FROM tab1
----
3399
3527
5968
query I rowsort
SELECT col0 * + 31 + + col2 FROM tab2
----
244
2444
2487
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + cor0.col1 * - 98 col0 FROM tab2 AS cor0
----
-1649
-3007
-5723
query I rowsort
SELECT DISTINCT + - cor0.col0 * - col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT ALL + + col2 * + ( col0 ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col1 * col1 + col1 + col1 FROM tab2 AS cor0
----
1023
323
3599
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-52
SELECT col0 * - CAST( 52 AS SIGNED ) FROM tab0 AS cor0
----
-1248
-1820
-4628
skipif mysql # not compatible
query I rowsort label-52
SELECT col0 * - CAST ( 52 AS INTEGER ) FROM tab0 AS cor0
----
-1248
-1820
-4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * + col0 col0 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + ( + cor0.col2 ) * cor0.col1 col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT col1 + col0 * - col0 AS col2 FROM tab0
----
-1128
-490
-7830
query I rowsort
SELECT DISTINCT - col2 + - col0 + - col1 AS col2 FROM tab0
----
-133
-143
-262
query I rowsort
SELECT DISTINCT tab0.col1 + tab0.col0 * + tab0.col1 * - tab0.col2 FROM tab0
----
-3298
-664027
-68026
onlyif mysql # use DIV operator for integer division
query I rowsort label-58
SELECT col2 DIV col1 + + col1 FROM tab2
----
19
31
59
skipif mysql # not compatible
query I rowsort label-58
SELECT col2 / col1 + + col1 FROM tab2
----
19
31
59
query I rowsort
SELECT ALL col1 * - col0 AS col2 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT col2 * + col0 + col0 + col2 FROM tab2 AS cor0
----
2132
223
3119
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + col0 + col1 col0 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT - col1 + col2 + - col2 * - col0 AS col2 FROM tab2 AS cor0
----
185
1995
3023
onlyif mysql # use DIV operator for integer division
query I rowsort label-63
SELECT DISTINCT - col2 - col0 DIV col0 FROM tab0 AS cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-63
SELECT DISTINCT - col2 - col0 / col0 FROM tab0 AS cor0
----
-2
-34
-83
query I rowsort
SELECT DISTINCT col2 * + col1 - col1 FROM tab2 AS cor0
----
1475
629
806
onlyif mysql # use DIV operator for integer division
query I rowsort label-65
SELECT ALL col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-65
SELECT ALL col1 / - col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + cor0.col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT cor0.col2 * col0 * col2 FROM tab2 cor0
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-68
SELECT cor0.col0 DIV col2 AS col1 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-68
SELECT cor0.col0 / col2 AS col1 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT col0 + + tab1.col0 FROM tab1
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - cor0.col2 col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-71
SELECT DISTINCT cor0.col2 + col1 DIV cor0.col1 AS col2 FROM tab1 cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-71
SELECT DISTINCT cor0.col2 + col1 / cor0.col1 AS col2 FROM tab1 cor0
----
55
58
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-72
SELECT + cor0.col1 DIV col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-72
SELECT + cor0.col1 / col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT ALL + - col2 - cor0.col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT col0 * - col1 - col1 * - cor0.col1 AS col0 FROM tab0 cor0
----
182
5332
6014
query I rowsort
SELECT DISTINCT + - 63 * + col0 AS col2 FROM tab1 AS cor0
----
-189
-4032
-5040
query I rowsort
SELECT DISTINCT + - 41 + col1 AS col1 FROM tab1 cor0
----
-15
-28
-31
query I rowsort
SELECT - col2 + + col1 + - col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + ( - col0 ) * - col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + col0 * col1 + - col2 FROM tab0
----
2031
3394
8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-80
SELECT ALL - 2 DIV - cor0.col0 + col0 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-80
SELECT ALL - 2 / - cor0.col0 + col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + + 9 * cor0.col2 FROM tab2 AS cor0
----
234
243
342
query I rowsort
SELECT DISTINCT + col0 * + col1 + col1 * col1 * - col0 AS col0 FROM tab1 AS cor0
----
-12480
-1950
-5760
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 ALL + - 36 + + col2 FROM tab1 AS cor0
----
18
21
60
query I rowsort
SELECT 63 AS col1 FROM tab1 cor0
----
63
63
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-86
SELECT DISTINCT - cor0.col2 - col1 DIV col0 AS col0 FROM tab2 AS cor0
----
-26
-31
-38
skipif mysql # not compatible
query I rowsort label-86
SELECT DISTINCT - cor0.col2 - col1 / col0 AS col0 FROM tab2 AS cor0
----
-26
-31
-38
query I rowsort
SELECT ALL - col0 + + col1 * col1 FROM tab0 cor0
----
7372
8192
9374
query I rowsort
SELECT + col2 * col1 + + col0 + + col0 FROM tab2 cor0
----
1690
804
851
query I rowsort
SELECT 37 * cor0.col1 + col0 * col1 FROM tab1 AS cor0
----
1010
1040
1521
query I rowsort
SELECT DISTINCT + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - + 99 * - col2 AS col0 FROM tab0 AS cor0
----
3267
8118
99
query I rowsort
SELECT ALL + ( cor0.col2 ) * col0 + col0 * - col2 * col2 AS col1 FROM tab2 AS cor0
----
-111074
-4914
-50700
query I rowsort
SELECT ALL - 91 + col0 AS col1 FROM tab1 AS cor0
----
-11
-27
-88
query I rowsort
SELECT - cor0.col0 * - col1 + col1 * col1 AS col1 FROM tab1 AS cor0
----
1209
740
754
query I rowsort
SELECT DISTINCT col2 + col2 * col1 AS col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL + col1 * col1 + + col0 + col2 FROM tab1 AS cor0
----
221
345
733
query I rowsort
SELECT ALL + - col1 * + col2 + col0 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL col0 * + tab2.col1 + col2 AS col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT DISTINCT col1 + - tab0.col1 FROM tab0
----
0
query I rowsort
SELECT col0 * col2 + - col2 * + ( - col2 ) AS col1 FROM tab0
----
14022
1881
36
query I rowsort
SELECT + col1 * - tab1.col1 AS col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT - + 32 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-58
-59
-70
query I rowsort
SELECT ( + col2 ) * col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + tab0.col1 * col1 AS col1 FROM tab0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 42 col0 FROM tab0
----
-42
-42
-42
query I rowsort
SELECT ALL - 97 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b
query I rowsort
SELECT + 54 FROM tab1, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT - tab0.col0 * ( col0 ) FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT - 30 * col1 AS col2 FROM tab0 AS cor0
----
-2580
-2730
-2910
query I rowsort
SELECT DISTINCT - 17 * cor0.col0 + cor0.col1 + col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-401
2516
6040
query I rowsort
SELECT DISTINCT - 63 * col1 FROM tab0 AS cor0
----
-5418
-5733
-6111
query I rowsort
SELECT ALL - - 66 * col1 AS col2 FROM tab0 cor0
----
5676
6006
6402
query I rowsort
SELECT col0 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1
----
-1
-33
-82
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab2 AS cor2, tab2
----
13122 values hashing to 7906d4cca461d7c03d1aa351c32c1658
query I rowsort
SELECT DISTINCT col1 * ( cor0.col1 ) FROM tab2 AS cor0
----
289
3481
961
skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 * - CAST ( + col2 AS REAL ) AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + - col0 + - ( col0 ) FROM tab0 AS cor0
----
-178
-48
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 54 col0 FROM tab2 AS cor0
----
-5
23
37
query I rowsort
SELECT ALL 85 + - ( col1 ) FROM tab2 AS cor0
----
26
54
68
query I rowsort
SELECT ALL 70 + col0 FROM tab2 AS cor0
----
148
149
77
query I rowsort
SELECT ALL + 45 * 1 - col0 FROM tab2 AS cor0
----
-33
-34
38
query I rowsort
SELECT ALL + ( + 80 ) + col1 AS col1 FROM tab0 AS cor0
----
166
171
177
query I rowsort
SELECT + ( cor0.col1 ) + col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT - col0 * + col1 - - col1 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT - ( col1 ) * + col2 + + ( - col1 ) * cor0.col2 FROM tab0 AS cor0
----
-14924
-194
-5676
query I rowsort
SELECT ( 76 ) - - col1 FROM tab0 AS cor0
----
162
167
173
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT col2 * + tab1.col1 * col0 FROM tab1
----
36480
4212
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col1 * col2 col0 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT + 10 * - cor0.col1 - - col2 AS col1 FROM tab0 AS cor0
----
-827
-828
-969
query I rowsort
SELECT - ( col0 ) * - col2 * col0 AS col0 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT - col1 + + col1 + + col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT 42 * + col0 AS col0 FROM tab0 AS cor0
----
1008
1470
3738
query I rowsort
SELECT + - col0 + - cor0.col1 + col1 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-136
SELECT cor0.col0 + col1 + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
134
167
269
skipif mysql # not compatible
query I rowsort label-136
SELECT cor0.col0 + col1 + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
134
167
269
query I rowsort
SELECT ALL 23 + - tab1.col1 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e628bc29206616d3425e581e915f2b6f
query I rowsort
SELECT DISTINCT - ( - col2 * - col1 + col2 ) FROM tab1
----
-1344
-1458
-627
query I rowsort
SELECT DISTINCT - - 79 FROM tab1 AS cor0
----
79
query I rowsort
SELECT cor0.col1 - + col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - 1 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9
query I rowsort
SELECT DISTINCT - + cor0.col0 * col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT col1 * col1 * col1 FROM tab1 AS cor0
----
1000
17576
2197
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col1 col0 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT + col2 + - ( 27 ) AS col0 FROM tab1 cor0
----
27
30
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c
onlyif mysql # use DIV operator for integer division
query I rowsort label-147
SELECT DISTINCT - cor0.col1 DIV col0 - + col1 col0 FROM tab1 AS cor0
----
-10
-13
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-147
SELECT DISTINCT - cor0.col1 / col0 - + col1 col0 FROM tab1 AS cor0
----
-10
-13
-34
query I rowsort
SELECT + col1 + 79 AS col0 FROM tab1
----
105
89
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-149
SELECT ALL - CAST( 50 AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8
skipif mysql # not compatible
query I rowsort label-149
SELECT ALL - CAST ( 50 AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8
query I rowsort
SELECT - + col2 * col2 + + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT - 34 + col1 FROM tab2 AS cor0
----
-17
-3
25
query I rowsort
SELECT 4 + + ( + col0 ) FROM tab1 cor0
----
68
7
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-153
SELECT DISTINCT - - col0 DIV - 75 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-153
SELECT DISTINCT - - col0 / - 75 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT ALL + col1 + + ( - cor0.col0 ) * - col0 * - 64 AS col2 FROM tab1 AS cor0
----
-262134
-409587
-550
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT - 32 * 77 FROM tab2, tab0 AS cor0
----
-2464
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-157
SELECT ALL col0 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-157
SELECT ALL col0 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col2 + + col2 AS col1 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - - cor0.col0 FROM tab2, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + - cor0.col0 * 16 AS col0 FROM tab0 AS cor0
----
-1424
-384
-560
query I rowsort
SELECT DISTINCT - + col2 * + col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-163
SELECT DISTINCT col0 + + 76 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
5
71
85
skipif mysql # not compatible
query I rowsort label-163
SELECT DISTINCT col0 + + 76 / cor0.col1 AS col2 FROM tab1 AS cor0
----
5
71
85
query I rowsort
SELECT - + col2 * col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + + col0 * col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col2 * - 53 + - col2 AS col1 FROM tab0 AS cor0
----
-1782
-4428
-54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-167
SELECT ALL col2 + + CAST( + col2 AS SIGNED ) * col1 FROM tab1 AS cor0
----
1344
1458
627
skipif mysql # not compatible
query I rowsort label-167
SELECT ALL col2 + + CAST ( + col2 AS INTEGER ) * col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL col0 * - col1 - - col1 * col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 85 col0 FROM tab1 AS cor0
----
-255
-5440
-6800
query I rowsort
SELECT DISTINCT - ( - col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - 47 FROM tab1 AS cor0
----
-47
-47
-47
onlyif mysql # use DIV operator for integer division
query I rowsort label-172
SELECT ALL + col2 DIV col2 + - col1 FROM tab0 cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-172
SELECT ALL + col2 / col2 + - col1 FROM tab0 cor0
----
-85
-90
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-173
SELECT ALL - CAST( NULL AS SIGNED ) + 81 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-173
SELECT ALL - CAST ( NULL AS INTEGER ) + 81 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-174
SELECT CAST( NULL AS SIGNED ) + + 30 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-174
SELECT CAST ( NULL AS INTEGER ) + + 30 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + col0 * - col2 FROM tab0 cor0
----
-36
-7380
-825
query I rowsort
SELECT col2 * ( + 59 ) - tab1.col1 AS col1 FROM tab1
----
3160
3353
5651
query I rowsort
SELECT ALL 81 + - col1 AS col1 FROM tab1 cor0
----
55
68
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-178
SELECT - - cor0.col0 + + col1 DIV - ( + 49 + col0 ) FROM tab0 AS cor0
----
23
34
89
skipif mysql # not compatible
query I rowsort label-178
SELECT - - cor0.col0 + + col1 / - ( + 49 + col0 ) FROM tab0 AS cor0
----
23
34
89
query I rowsort
SELECT DISTINCT 53 AS col0 FROM tab2 AS cor0
----
53
query I rowsort
SELECT ALL - - col0 - col1 * ( col2 + col0 ) * - 66 FROM tab0 AS cor0
----
1027115
230507
323556
onlyif mysql # use DIV operator for integer division
query I rowsort label-181
SELECT DISTINCT 91 DIV col1 AS col1 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-181
SELECT DISTINCT 91 / col1 AS col1 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT ALL col0 * col2 + - col2 FROM tab1 cor0
----
108
3591
7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-183
SELECT - - col2 - col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-183
SELECT - - col2 - col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col0 * col2 + 34 FROM tab1 cor0
----
-128
-3614
-7646
query I rowsort
SELECT ALL ( - col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT 72 FROM tab2, tab0 cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-187
SELECT ALL + CAST( NULL AS SIGNED ) * - 9 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-187
SELECT ALL + CAST ( NULL AS INTEGER ) * - 9 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-188
SELECT 30 DIV - col0 + col1 AS col1 FROM tab0 AS cor0
----
85
91
97
skipif mysql # not compatible
query I rowsort label-188
SELECT 30 / - col0 + col1 AS col1 FROM tab0 AS cor0
----
85
91
97
query I rowsort
SELECT - + 30 * col0 AS col1 FROM tab0 AS cor0
----
-1050
-2670
-720
query I rowsort
SELECT + col2 + col2 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col2 AS col1 FROM tab1, tab2, tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + 26 * tab1.col2 + 48 AS col0 FROM tab1
----
1452
1530
2544
onlyif mysql # use DIV operator for integer division
query I rowsort label-193
SELECT + 27 DIV + col2 - 86 * - col0 AS col0 FROM tab0
----
2064
3037
7654
skipif mysql # not compatible
query I rowsort label-193
SELECT + 27 / + col2 - 86 * - col0 AS col0 FROM tab0
----
2064
3037
7654
query I rowsort
SELECT + 94 * col0 AS col1 FROM tab2
----
658
7332
7426
query I rowsort
SELECT DISTINCT col0 * tab0.col0 + + col0 AS col2 FROM tab0
----
1260
600
8010
query I rowsort
SELECT DISTINCT 9 + col2 AS col2 FROM tab1
----
105
63
66
query I rowsort
SELECT + col1 * + col2 AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT - tab0.col1 * - 78 FROM tab0, tab0 AS cor0
----
9 values hashing to 226f7bda3805102b1cfe16bbcd69bedc
query I rowsort
SELECT col0 * 24 FROM tab0
----
2136
576
840
query I rowsort
SELECT + 30 FROM tab1, tab2 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT ALL - - col2 * - 10 + col0 * + col0 + col1 FROM tab2 AS cor0
----
-190
5878
5883
query I rowsort
SELECT ALL col0 * cor0.col1 - + col0 AS col2 FROM tab2 cor0
----
1264
210
4524
query I rowsort
SELECT - col1 * ( col1 * - col0 ) + col0 AS col1 FROM tab0 cor0
----
177528
329350
737098
query I rowsort
SELECT + 87 + + 32 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to d2a0ef1182e6bf2495fa932b2816ad80
query I rowsort
SELECT - cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col0 col2 FROM tab1, tab1 cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( col0 ) col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT col1 + col0 * + col0 + col2 AS col1 FROM tab0 AS cor0
----
1323
695
8094
query I rowsort
SELECT ALL col1 + col0 + cor0.col2 FROM tab0 AS cor0
----
133
143
262
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-210
SELECT DISTINCT + + col1 * CAST( NULL AS SIGNED ) + cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-210
SELECT DISTINCT + + col1 * CAST ( NULL AS INTEGER ) + cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - col1 + 9 * cor0.col0 FROM tab2 cor0
----
32
643
694
query I rowsort
SELECT DISTINCT - - col2 * + col1 AS col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT - col1 + + ( col1 * + col2 ) + + col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 cor2, tab1 AS cor3
----
13122 values hashing to 9c6d099b034200e1c977782393db33a5
query I rowsort
SELECT + ( 74 ) * col2 FROM tab1 AS cor0
----
3996
4218
7104
query I rowsort
SELECT DISTINCT + 24 * col2 FROM tab0 AS cor0
----
1968
24
792
query I rowsort
SELECT ALL - - ( + col2 ) + - col0 + + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2865
-3256
-9200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-218
SELECT ALL - - CAST( ( - col2 ) AS SIGNED ) + - 81 + col0 * col2 * + col0 AS col0 FROM tab0 AS cor0
----
1143
18894
649359
skipif mysql # not compatible
query I rowsort label-218
SELECT ALL - - CAST ( ( - col2 ) AS INTEGER ) + - 81 + col0 * col2 * + col0 AS col0 FROM tab0 AS cor0
----
1143
18894
649359
query I rowsort
SELECT + 2 AS col0 FROM tab0 AS cor0
----
2
2
2
query I rowsort
SELECT ALL + + col1 + 6 AS col0 FROM tab1 cor0
----
16
19
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-221
SELECT - + 89 + col0 DIV - col0 FROM tab2 AS cor0
----
-90
-90
-90
skipif mysql # not compatible
query I rowsort label-221
SELECT - + 89 + col0 / - col0 FROM tab2 AS cor0
----
-90
-90
-90
query I rowsort
SELECT col0 + col1 * col1 AS col0 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT ALL + - cor0.col2 * - cor0.col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL - - 87 FROM tab1 AS cor0
----
87
87
87
query I rowsort
SELECT ALL - 21 * - col0 AS col0 FROM tab2 AS cor0
----
147
1638
1659
query I rowsort
SELECT ALL - col2 + - col0 * ( + col0 ) FROM tab1 cor0
----
-4153
-63
-6496
query I rowsort
SELECT 53 + - col0 AS col1 FROM tab2 AS cor0
----
-25
-26
46
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 9b60cb1db2fb2fa5700b0e572b4b6546
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 + col1 col1 FROM tab0 AS cor0
----
103
109
98
query I rowsort
SELECT ALL - 16 AS col2 FROM tab2 AS cor0
----
-16
-16
-16
query I rowsort
SELECT cor0.col0 + col0 - 40 FROM tab1 AS cor0
----
-34
120
88
query I rowsort
SELECT col1 * - col0 * tab2.col0 AS col1 FROM tab2
----
-106097
-1519
-358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-233
SELECT ALL col0 DIV col1 AS col1 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-233
SELECT ALL col0 / col1 AS col1 FROM tab1
----
0
6
6
query I rowsort
SELECT + col1 + - col1 AS col0 FROM tab0 WHERE - col2 - + col0 IN ( tab0.col2 * col1 )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( + tab2.col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-236
SELECT DISTINCT tab2.col1 DIV - col1 AS col0 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT tab2.col1 / - col1 AS col0 FROM tab2
----
-1
query I rowsort
SELECT + col2 + col2 * + tab0.col1 AS col2 FROM tab0 WHERE NULL IN ( col2 )
----
query I rowsort
SELECT - col2 * - col2 + col0 + - tab1.col0 * tab1.col1 AS col0 FROM tab1
----
2673
2841
8256
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 - + tab1.col1 col0 FROM tab1
----
1027
52
630
query I rowsort
SELECT ALL - tab1.col0 * tab1.col0 + - col0 - col1 FROM tab1
----
-38
-4170
-6493
query I rowsort
SELECT - col1 + tab0.col1 - col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL + col2 * + col1 * col1 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT - col2 + tab0.col0 * + col2 FROM tab0
----
34
7216
759
query I rowsort
SELECT - tab2.col2 FROM tab2 WHERE NOT ( NULL ) IN ( col0 )
----
query I rowsort
SELECT - col0 - tab0.col1 * col0 FROM tab0
----
-2088
-3430
-8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-246
SELECT ALL - tab0.col2 DIV + col2 col0 FROM tab0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-246
SELECT ALL - tab0.col2 / + col2 col0 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT + col0 * col2 * - col1 AS col0 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT - col1 * - col2 * col1 AS col1 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT - col1 - - col1 * col0 FROM tab2
----
1326
186
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-250
SELECT ALL - col2 DIV col2 AS col2 FROM tab0 WHERE ( - col2 * - col0 + - col2 DIV col2 ) NOT IN ( - col0 * - col2 )
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-250
SELECT ALL - col2 / col2 AS col2 FROM tab0 WHERE ( - col2 * - col0 + - col2 / col2 ) NOT IN ( - col0 * - col2 )
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 - + col0 * col1 col2 FROM tab0 WHERE NOT ( col0 / col0 ) > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 col0 FROM tab1 AS cor0
----
3
3
3
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 NOT BETWEEN ( NULL ) AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-254
SELECT col2 * col0 DIV - tab0.col1 - col1 FROM tab0
----
-171
-95
-97
skipif mysql # not compatible
query I rowsort label-254
SELECT col2 * col0 / - tab0.col1 - col1 FROM tab0
----
-171
-95
-97
query I rowsort
SELECT + col2 * - col0 + - tab1.col2 AS col2 FROM tab1
----
-216
-3705
-7776
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= NULL
----
query I rowsort
SELECT - col1 + col2 AS col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT ALL col2 * cor0.col1 - - col0 * + col2 AS col2 FROM tab1 AS cor0 WHERE NULL <> col2
----
query I rowsort
SELECT cor0.col1 * - col2 * + col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT cor0.col1 + + cor0.col0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to d994d266bacb99d3939b70b2c7903ce8
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + col0 + tab2.col0 )
----
query I rowsort
SELECT DISTINCT + col0 * + tab2.col0 FROM tab2
----
49
6084
6241
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + tab0.col2 )
----
query I rowsort
SELECT col0 * + col1 + - col0 FROM tab2
----
1264
210
4524
query I rowsort
SELECT ALL col1 + + col0 AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( - col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 * + col0 + col2 col2 FROM tab2
----
114114
5130
52754
query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT IN ( col2 )
----
query I rowsort
SELECT ALL - col2 * tab1.col0 * col2 AS col1 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT - col0 * col2 * + col0 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT - col0 * + col2 AS col2 FROM tab1
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-271
SELECT col0 * col0 DIV + col1 + + col1 FROM tab1
----
26
419
505
skipif mysql # not compatible
query I rowsort label-271
SELECT col0 * col0 / + col1 + + col1 FROM tab1
----
26
419
505
query I rowsort
SELECT ALL col0 * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - col2 + col1 * + cor0.col1 FROM tab1 cor0
----
43
622
73
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( + col0 + + col2 ) AND ( col0 )
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-275
SELECT - CAST( NULL AS SIGNED ) FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-275
SELECT - CAST ( NULL AS INTEGER ) FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT 89 - + 30 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT ALL + cor0.col0 * 65 * col2 FROM tab0 AS cor0
----
2275
474370
51480
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 cor2, tab1 cor3
----
3645 values hashing to 7ccb6e2515d95809a8c30b73a5cf5f46
query I rowsort
SELECT + 2 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT + cor0.col0 * - ( - cor0.col0 ) FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - cor0.col0 * ( cor0.col0 * + col0 ) FROM tab1 AS cor0
----
-262144
-27
-512000
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2, tab1 cor3
----
3645 values hashing to 460ecaf0151851c22525e8eac77a0a82
query I rowsort
SELECT ( + 27 ) + - col2 FROM tab0
----
-55
-6
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 + col2 col0 FROM tab2
----
-40
-51
-52
query I rowsort
SELECT ALL col2 + - col2 - - col1 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL 90 * + ( col0 ) - col0 * + col2 AS col0 FROM tab0
----
1368
3115
712
query I rowsort
SELECT ALL - cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT ( cor0.col0 ) * col1 * col0 AS col1 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT ALL - + col2 * - col0 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 col1 FROM tab2 AS cor0
----
85
85
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 * - ( - col2 ) col1 FROM tab2 AS cor0
----
-416
-432
-608
onlyif mysql # use DIV operator for integer division
query I rowsort label-292
SELECT + ( + col0 ) + ( + ( col1 ) ) DIV - col0 FROM tab1 AS cor0
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-292
SELECT + ( + col0 ) + ( + ( col1 ) ) / - col0 FROM tab1 AS cor0
----
-5
64
80
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2, tab0, tab2 AS cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 4 col1 FROM tab0 AS cor0
----
4
4
4
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 2563d2f4127fd757b80c46400c5511cb
query I rowsort
SELECT + col1 + + col0 * ( col2 ) FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-297
SELECT + col1 * - CAST( 80 AS SIGNED ) AS col1 FROM tab2 cor0
----
-1360
-2480
-4720
skipif mysql # not compatible
query I rowsort label-297
SELECT + col1 * - CAST ( 80 AS INTEGER ) AS col1 FROM tab2 cor0
----
-1360
-2480
-4720
query I rowsort
SELECT + col1 + 1 * - cor0.col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - + col0 * cor0.col2 + - col2 FROM tab2 cor0
----
-2054
-216
-3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-300
SELECT DISTINCT + 21 DIV + col2 AS col1 FROM tab0
----
0
21
skipif mysql # not compatible
query I rowsort label-300
SELECT DISTINCT + 21 / + col2 AS col1 FROM tab0
----
0
21
query I rowsort
SELECT - - cor0.col1 AS col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT 43 * - col2 + + tab0.col0 AS col0 FROM tab0
----
-1395
-3437
-8
query I rowsort
SELECT DISTINCT col1 * + col2 + + cor0.col2 FROM tab0 cor0
----
2871
7544
98
query I rowsort
SELECT 7 + + 38 * col0 * 89 AS col1 FROM tab0 AS cor0
----
118377
301005
81175
query I rowsort
SELECT + 86 * + col1 + col0 AS col2 FROM tab2 AS cor0
----
1541
2673
5152
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-306
SELECT - + CAST( NULL AS DECIMAL ) * cor0.col2 * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-306
SELECT - + CAST ( NULL AS REAL ) * cor0.col2 * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - cor0.col0 * + 1 + col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT col1 * - col2 + col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-309
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 72 col2 FROM tab2 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-309
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 72 col2 FROM tab2 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 37 col1 FROM tab2
----
-10
-11
1
query I rowsort
SELECT - col1 * + col1 + 8 AS col0 FROM tab2
----
-281
-3473
-953
query I rowsort
SELECT DISTINCT tab1.col2 * tab1.col0 AS col1 FROM tab1, tab2, tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-313
SELECT ALL + + 90 DIV col1 FROM tab1 AS cor0
----
3
6
9
skipif mysql # not compatible
query I rowsort label-313
SELECT ALL + + 90 / col1 FROM tab1 AS cor0
----
3
6
9
query I rowsort
SELECT ALL + - 72 FROM tab0 AS cor0
----
-72
-72
-72
query I rowsort
SELECT DISTINCT - col0 + - col2 * col1 AS col0 FROM tab0 cor0
----
-132
-2862
-7551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-316
SELECT + col1 * col0 * - CAST( + 85 AS SIGNED ) AS col0 FROM tab2 cor0
----
-114155
-18445
-391170
skipif mysql # not compatible
query I rowsort label-316
SELECT + col1 * col0 * - CAST ( + 85 AS INTEGER ) AS col0 FROM tab2 cor0
----
-114155
-18445
-391170
query I rowsort
SELECT + col1 * + col0 - 17 FROM tab1
----
1023
61
623
query I rowsort
SELECT col0 * ( - col1 ) + tab2.col0 + col2 FROM tab2
----
-1226
-183
-4498
query I rowsort
SELECT ALL col2 - 56 FROM tab2
----
-18
-29
-30
query I rowsort
SELECT DISTINCT col2 + col0 AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ( - 57 ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b
query I rowsort
SELECT ALL + col2 * + col0 + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT - col0 + ( col2 ) * + col1 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT ALL + 30 * ( col2 ) FROM tab1 AS cor0
----
1620
1710
2880
query I rowsort
SELECT + col1 + + col1 AS col1 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT ALL - col2 * + col0 + - col1 FROM tab2 cor0
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT + 31 * col0 AS col0 FROM tab2 AS cor0
----
217
2418
2449
query I rowsort
SELECT + 23 * ( - cor0.col2 ) FROM tab1 AS cor0
----
-1242
-1311
-2208
query I rowsort
SELECT - 63 + 85 AS col0 FROM tab0 AS cor0
----
22
22
22
query I rowsort
SELECT + - 64 + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1184
1340
506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-331
SELECT ALL - - CAST( NULL AS SIGNED ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-331
SELECT ALL - - 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-332
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT - CAST ( NULL AS REAL ) * + col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - + ( + cor0.col2 ) + col1 + ( + ( - cor0.col0 ) ) FROM tab2 AS cor0
----
-100
-3
-45
query I rowsort
SELECT ALL 32 * col2 AS col1 FROM tab0 AS cor0
----
1056
2624
32
query I rowsort
SELECT DISTINCT - col2 * cor0.col0 AS col1 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - + col2 * 67 FROM tab1 AS cor0
----
-3618
-3819
-6432
query I rowsort
SELECT + cor0.col0 + cor0.col2 * - cor0.col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL - ( col0 ) + - col2 FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-339
SELECT - + ( + 34 ) DIV col2 - + ( + cor0.col0 ) * cor0.col0 * 42 AS col1 FROM tab1 AS cor0
----
-172032
-268800
-378
skipif mysql # not compatible
query I rowsort label-339
SELECT - + ( + 34 ) / col2 - + ( + cor0.col0 ) * cor0.col0 * 42 AS col1 FROM tab1 AS cor0
----
-172032
-268800
-378
query I rowsort
SELECT DISTINCT + cor0.col1 * - 3 + col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194
onlyif mysql # use DIV operator for integer division
query I rowsort label-341
SELECT DISTINCT - ( col1 ) + + col1 DIV + col2 FROM tab0 AS cor0
----
-84
-90
0
skipif mysql # not compatible
query I rowsort label-341
SELECT DISTINCT - ( col1 ) + + col1 / + col2 FROM tab0 AS cor0
----
-84
-90
0
query I rowsort
SELECT DISTINCT - col2 * - 99 AS col0 FROM tab1 AS cor0
----
5346
5643
9504
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-343
SELECT + CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-343
SELECT + CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * 77 AS col0 FROM tab1 AS cor0
----
-1001
-2002
-770
onlyif mysql # use DIV operator for integer division
query I rowsort label-345
SELECT - col0 DIV 88 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-345
SELECT - col0 / 88 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT - + ( 41 ) + - cor0.col0 FROM tab0 AS cor0
----
-130
-65
-76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-347
SELECT DISTINCT CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-347
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
query I rowsort
SELECT - 52 FROM tab2, tab0 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
query I rowsort
SELECT DISTINCT - + ( col0 ) + - col0 * + col1 FROM tab1 AS cor0
----
-1120
-704
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-350
SELECT - + 37 * col2 + + col1 DIV col0 FROM tab2 AS cor0
----
-1406
-962
-995
skipif mysql # not compatible
query I rowsort label-350
SELECT - + 37 * col2 + + col1 / col0 FROM tab2 AS cor0
----
-1406
-962
-995
query I rowsort
SELECT DISTINCT + 81 FROM tab1, tab0 AS cor0
----
81
query I rowsort
SELECT col2 * tab0.col2 + col1 * - col2 FROM tab0
----
-1749
-738
-96
query I rowsort
SELECT - col0 - 24 FROM tab2
----
-102
-103
-31
query I rowsort
SELECT col0 + + ( col2 ) * 92 FROM tab1 AS cor0
----
4971
5308
8912
onlyif mysql # use DIV operator for integer division
query I rowsort label-355
SELECT ALL ( + 98 ) + + col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
98
98
98
skipif mysql # not compatible
query I rowsort label-355
SELECT ALL ( + 98 ) + + col2 / + col1 AS col0 FROM tab0 AS cor0
----
98
98
98
query I rowsort
SELECT ALL + 87 FROM tab2, tab1 cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT + 52 * col0 + col0 FROM tab2
----
371
4134
4187
query I rowsort
SELECT col1 * + col1 + - col0 * col0 + 28 AS col0 FROM tab0
----
388
6848
8212
query I rowsort
SELECT ( - col2 ) + tab2.col2 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-360
SELECT 39 DIV 38 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-360
SELECT 39 / 38 FROM tab2
----
1
1
1
query I rowsort
SELECT ALL - tab2.col0 + tab2.col2 + col0 FROM tab2
----
26
27
38
query I rowsort
SELECT + 34 + col0 AS col1 FROM tab2 cor0
----
112
113
41
query I rowsort
SELECT - - col0 * + col0 + col1 FROM tab0 cor0
----
1322
662
8012
query I rowsort
SELECT DISTINCT - tab2.col2 + col2 AS col2 FROM tab2
----
0
query I rowsort
SELECT ( col2 ) * - col1 AS col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + 41 AS col1 FROM tab2
----
41
41
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-367
SELECT col0 * 14 DIV - col1 + 17 + - col0 FROM tab0
----
-10
-23
-85
skipif mysql # not compatible
query I rowsort label-367
SELECT col0 * 14 / - col1 + 17 + - col0 FROM tab0
----
-10
-23
-85
query I rowsort
SELECT - col0 * col0 + col2 + col1 FROM tab1 AS cor0
----
-4029
-6291
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-369
SELECT DISTINCT + + cor0.col0 * - CAST( - ( + col1 ) AS SIGNED ) + + col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190
skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT + + cor0.col0 * - CAST ( - ( + col1 ) AS INTEGER ) + + col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL - col0 + + col0 * cor0.col2 - + col2 FROM tab0 cor0
----
-1
7127
735
query I rowsort
SELECT - + col2 + 82 AS col1 FROM tab0 AS cor0
----
0
49
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * col0 col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + 47 * col1 FROM tab1
----
1222
470
611
query I rowsort
SELECT - ( 59 ) AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-376
SELECT DISTINCT CAST( cor0.col2 AS SIGNED ) FROM tab2, tab2 cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-376
SELECT DISTINCT CAST ( cor0.col2 AS INTEGER ) FROM tab2, tab2 cor0
----
26
27
38
query I rowsort
SELECT - col1 + + col1 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT + 73 FROM tab1, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT DISTINCT + 70 * - 91 FROM tab0, tab2 AS cor0
----
-6370
onlyif mysql # use DIV operator for integer division
query I rowsort label-380
SELECT - tab2.col0 + ( col1 ) * - col0 DIV col0 FROM tab2
----
-137
-38
-96
skipif mysql # not compatible
query I rowsort label-380
SELECT - tab2.col0 + ( col1 ) * - col0 / col0 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT DISTINCT + cor0.col0 * - 15 AS col1 FROM tab0 cor0
----
-1335
-360
-525
onlyif mysql # use DIV operator for integer division
query I rowsort label-382
SELECT ALL + + col2 DIV - col1 + ( col2 ) FROM tab1 AS cor0
----
52
52
89
skipif mysql # not compatible
query I rowsort label-382
SELECT ALL + + col2 / - col1 + ( col2 ) FROM tab1 AS cor0
----
52
52
89
query I rowsort
SELECT DISTINCT cor0.col1 * - 17 - col0 FROM tab1 AS cor0
----
-234
-301
-445
onlyif mysql # use DIV operator for integer division
query I rowsort label-384
SELECT ALL + col1 DIV ( + col0 * col1 ) + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-384
SELECT ALL + col1 / ( + col0 * col1 ) + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL col2 * - col1 + + 30 AS col1 FROM tab1 AS cor0
----
-1218
-1374
-540
query I rowsort
SELECT ALL + 69 * col2 * - col1 FROM tab0
----
-195822
-514878
-6693
query I rowsort
SELECT - tab1.col0 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT ALL - col1 * tab0.col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT 91 FROM tab0
----
91
91
91
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2, tab0, tab0 AS cor0, tab1
----
-24
-35
-89
query I rowsort
SELECT - - col2 + - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT - + col2 + col1 - ( col0 ) FROM tab1 AS cor0
----
-111
-163
-31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-393
SELECT + cor0.col0 * CAST( NULL AS SIGNED ) + 7 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-393
SELECT + cor0.col0 * CAST ( NULL AS INTEGER ) + 7 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 cor2, tab2 AS cor3
----
3645 values hashing to bd2b318ad064d89aa12ab468220362b6
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-396
SELECT + + cor0.col2 DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-396
SELECT + + cor0.col2 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * + col0 - - col1 AS col0 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT - 46 * - 4 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c59da973957e88f33a1dd3cfd0019fab
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-399
SELECT + - col2 + CAST( 93 AS SIGNED ) FROM tab0 AS cor0
----
11
60
92
skipif mysql # not compatible
query I rowsort label-399
SELECT + - col2 + CAST ( 93 AS INTEGER ) FROM tab0 AS cor0
----
11
60
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-400
SELECT + - col2 * col1 - - col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
-1533
-645
-836
skipif mysql # not compatible
query I rowsort label-400
SELECT + - col2 * col1 - - col1 / + col1 AS col2 FROM tab2 AS cor0
----
-1533
-645
-836
query I rowsort
SELECT DISTINCT + col0 * + col2 - col2 FROM tab2 cor0
----
162
2002
2964
query I rowsort
SELECT col1 + + 65 AS col0 FROM tab1 AS cor0
----
75
78
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-403
SELECT ALL CAST( NULL AS SIGNED ) * + 22 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-403
SELECT ALL CAST ( NULL AS INTEGER ) * + 22 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 + cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT - col1 + + cor0.col2 * col0 * - col0 FROM tab0 AS cor0
----
-1322
-19094
-649613
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - col2 + col0 * - ( - 67 ) col2 FROM tab2 AS cor0
----
-368
3692
4647
query I rowsort
SELECT + - col0 * + 9 FROM tab2 AS cor0
----
-63
-702
-711
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + col0 * col2 col0 FROM tab2 AS cor0
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 * col1 col2 FROM tab2
----
1612
725
844
query I rowsort
SELECT - col2 * 50 + + col2 FROM tab1 AS cor0
----
-2646
-2793
-4704
onlyif mysql # use DIV operator for integer division
query I rowsort label-411
SELECT + + col0 + 98 DIV col1 AS col2 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-411
SELECT + + col0 + 98 / col1 AS col2 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT + + ( col2 ) + - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT cor0.col2 AS col2 FROM tab1, tab2 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT + 76 + + 57 AS col0 FROM tab2
----
133
133
133
onlyif mysql # use DIV operator for integer division
query I rowsort label-415
SELECT ALL 53 DIV 8 FROM tab2
----
6
6
6
skipif mysql # not compatible
query I rowsort label-415
SELECT ALL 53 / 8 FROM tab2
----
6
6
6
query I rowsort
SELECT DISTINCT + 90 - + col2 * - 42 FROM tab2 AS cor0
----
1182
1224
1686
query I rowsort
SELECT ALL - + col2 + + col1 FROM tab1 cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + + 78 FROM tab1 cor0
----
78
78
78
query I rowsort
SELECT 50 * col0 AS col1 FROM tab0 AS cor0
----
1200
1750
4450
query I rowsort
SELECT DISTINCT + - 0 + cor0.col1 + - 60 * + 49 * col1 AS col2 FROM tab1 AS cor0
----
-29390
-38207
-76414
query I rowsort
SELECT + + col1 + col1 AS col1 FROM tab1 cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-423
SELECT ALL - col0 + col1 DIV CAST( 54 + col1 AS SIGNED ) FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-423
SELECT ALL - col0 + col1 / CAST ( 54 + col1 AS INTEGER ) FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-424
SELECT ALL - 32 DIV + col0 FROM tab2
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-424
SELECT ALL - 32 / + col0 FROM tab2
----
-4
0
0
query I rowsort
SELECT 0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT - 32 AS col2 FROM tab2
----
-32
-32
-32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 21 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757
query I rowsort
SELECT + col1 * 23 FROM tab0 AS cor0
----
1978
2093
2231
query I rowsort
SELECT + col0 * col0 + + col1 AS col1 FROM tab1 cor0
----
35
4106
6413
query I rowsort
SELECT ALL - + ( + 99 ) * + col2 FROM tab1 AS cor0
----
-5346
-5643
-9504
query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - 19 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4
query I rowsort
SELECT - 28 AS col1 FROM tab1
----
-28
-28
-28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 17 col0 FROM tab1, tab2, tab2 AS cor0
----
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + ( - col1 ) col2 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT col1 * + 34 AS col1 FROM tab2
----
1054
2006
578
query I rowsort
SELECT DISTINCT col0 + - 60 * + col1 AS col2 FROM tab2
----
-1853
-3462
-941
onlyif mysql # use DIV operator for integer division
query I rowsort label-438
SELECT 38 + 7 DIV col0 AS col1 FROM tab1 AS cor0
----
38
38
40
skipif mysql # not compatible
query I rowsort label-438
SELECT 38 + 7 / col0 AS col1 FROM tab1 AS cor0
----
38
38
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-439
SELECT + - CAST( 9 AS SIGNED ) + + col0 * col2 AS col0 FROM tab2 AS cor0
----
180
2019
2993
skipif mysql # not compatible
query I rowsort label-439
SELECT + - CAST ( 9 AS INTEGER ) + + col0 * col2 AS col0 FROM tab2 AS cor0
----
180
2019
2993
query I rowsort
SELECT - ( 16 ) + col0 FROM tab1 AS cor0
----
-13
48
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-441
SELECT - 98 + + 61 DIV col0 FROM tab2 AS cor0
----
-90
-98
-98
skipif mysql # not compatible
query I rowsort label-441
SELECT - 98 + + 61 / col0 FROM tab2 AS cor0
----
-90
-98
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-442
SELECT - + col2 - CAST( 15 * col0 + - CAST( col2 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
-105
-1170
-1185
skipif mysql # not compatible
query I rowsort label-442
SELECT - + col2 - CAST ( 15 * col0 + - CAST ( col2 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
-105
-1170
-1185
query I rowsort
SELECT - + col0 * - col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - col0 + ( col2 ) - col0 FROM tab2 cor0
----
-120
-130
13
query I rowsort
SELECT - col2 - tab0.col0 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT tab0.col1 + col2 AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT + col0 + ( - ( col0 ) ) * 29 + - 61 * - col0 AS col2 FROM tab1
----
2112
2640
99
query I rowsort
SELECT ALL col2 * 86 + + col2 FROM tab2
----
2262
2349
3306
onlyif mysql # use DIV operator for integer division
query I rowsort label-449
SELECT col1 DIV - 38 + - ( - col1 ) * col2 AS col1 FROM tab1
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-449
SELECT col1 / - 38 + - ( - col1 ) * col2 AS col1 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-450
SELECT - tab0.col0 DIV + ( + col0 ) + + col2 AS col2 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-450
SELECT - tab0.col0 / + ( + col0 ) + + col2 AS col2 FROM tab0
----
0
32
81
query I rowsort
SELECT - col1 + 34 + 47 * - col0 FROM tab2
----
-326
-3691
-3696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * col0 - tab0.col0 * col1 col1 FROM tab0
----
-1488
-178
-2170
query I rowsort
SELECT + col1 + ( col2 ) + col2 FROM tab1
----
124
134
205
onlyif mysql # use DIV operator for integer division
query I rowsort label-454
SELECT + cor0.col2 DIV 60 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
skipif mysql # not compatible
query I rowsort label-454
SELECT + cor0.col2 / 60 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab2 cor1, tab1, tab0 AS cor2
----
3645 values hashing to b803f2d602a28da5cf35ddc7c7fa2eeb
query I rowsort
SELECT ALL + col1 + + cor0.col1 * - col2 + cor0.col2 * col0 FROM tab0 AS cor0
----
-1960
-73
35
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
query I rowsort
SELECT col2 + - cor0.col0 * + 67 FROM tab0 AS cor0
----
-1575
-2344
-5881
onlyif mysql # use DIV operator for integer division
query I rowsort label-459
SELECT + col2 DIV CAST( 44 AS SIGNED ) - col1 FROM tab1 cor0
----
-11
-25
-9
skipif mysql # not compatible
query I rowsort label-459
SELECT + col2 / CAST ( 44 AS INTEGER ) - col1 FROM tab1 cor0
----
-11
-25
-9
query I rowsort
SELECT DISTINCT col1 - 19 AS col2 FROM tab0 AS cor0
----
67
72
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-461
SELECT - - cor0.col2 + + col2 DIV col2 AS col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-461
SELECT - - cor0.col2 + + col2 / col2 AS col2 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT ALL + cor0.col1 + ( 80 ) * - cor0.col1 - - col1 FROM tab1 AS cor0
----
-1014
-2028
-780
onlyif mysql # use DIV operator for integer division
query I rowsort label-463
SELECT ALL - col1 DIV tab2.col1 AS col0 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-463
SELECT ALL - col1 / tab2.col1 AS col0 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT + col0 - col0 * col1 FROM tab1
----
-576
-75
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 col1 FROM tab2
----
-18
query I rowsort
SELECT 30 * + col0 FROM tab1 AS cor0
----
1920
2400
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-467
SELECT + col2 DIV ( + col0 * - 23 ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-467
SELECT + col2 / ( + col0 * - 23 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + + cor0.col1 * col2 + + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT 83 FROM tab1, tab0 cor0
----
83
query I rowsort
SELECT ALL 54 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT DISTINCT + - col0 * - col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL - - col1 + - col0 + col0 AS col2 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-473
SELECT ALL + 2 DIV + col1 + 59 * col2 + - col2 AS col0 FROM tab0 cor0
----
1914
4756
58
skipif mysql # not compatible
query I rowsort label-473
SELECT ALL + 2 / + col1 + 59 * col2 + - col2 AS col0 FROM tab0 cor0
----
1914
4756
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col0 col1 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-475
SELECT - 88 DIV - cor0.col2 FROM tab0 AS cor0
----
1
2
88
skipif mysql # not compatible
query I rowsort label-475
SELECT - 88 / - cor0.col2 FROM tab0 AS cor0
----
1
2
88
query I rowsort
SELECT + col1 * cor0.col1 * ( + col0 ) FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT DISTINCT - 26 * + col2 FROM tab2 AS cor0
----
-676
-702
-988
query I rowsort
SELECT DISTINCT - - col1 + - col2 FROM tab2 AS cor0
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + + col1 col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + 22 * col2 FROM tab0 cor0
----
1804
22
726
query I rowsort
SELECT ALL - 21 * col0 AS col2 FROM tab2 AS cor0
----
-147
-1638
-1659
query I rowsort
SELECT 70 FROM tab0
----
70
70
70
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab2 cor1, tab1, tab2 AS cor2
----
3645 values hashing to e3f81e329d34d83e4528a9ef7b933946
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab0 AS cor0, tab1 AS cor1
----
972 values hashing to 0a9194f200a4220e419d35c461f9fcfe
query I rowsort
SELECT DISTINCT + 94 + + col1 * + 14 AS col0 FROM tab2 AS cor0
----
332
528
920
query I rowsort
SELECT DISTINCT 38 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
200
3686
7718
query I rowsort
SELECT DISTINCT - - 87 * col2 * ( - col1 ) FROM tab2 AS cor0
----
-133458
-56202
-72819
query I rowsort
SELECT + 11 * cor0.col2 AS col1 FROM tab2 AS cor0
----
286
297
418
query I rowsort
SELECT ALL - col1 + - col0 * + cor0.col0 * col2 FROM tab0 cor0
----
-1322
-19094
-649613
query I rowsort
SELECT ALL - 4 FROM tab1 cor0
----
-4
-4
-4
query I rowsort
SELECT col1 * - ( 2 ) AS col0 FROM tab0 AS cor0
----
-172
-182
-194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 54 + col0 + col2 col2 FROM tab2 AS cor0
----
412
4316
4383
query I rowsort
SELECT ALL - col2 + - col0 * col1 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT + + col0 * + cor0.col0 AS col2 FROM tab1 cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + ( + 69 ) * col1 col0 FROM tab2 AS cor0
----
1190
2170
4130
query I rowsort
SELECT ALL ( col2 ) * - ( + 4 ) FROM tab0
----
-132
-328
-4
query I rowsort
SELECT ALL 2 AS col0 FROM tab1
----
2
2
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-499
SELECT ALL + col0 * col1 DIV col0 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-499
SELECT ALL + col0 * col1 / col0 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + + ( - cor0.col0 * col1 ) col2 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT - cor0.col1 - - col1 * - col0 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT - + col1 * - col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - ( 45 ) + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-55
-58
-71
query I rowsort
SELECT ( col1 ) * - col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT + 49 + - col1 + + cor0.col1 * - ( + 74 ) AS col0 FROM tab2 AS cor0
----
-1226
-2276
-4376
query I rowsort
SELECT ALL + - 63 + + cor0.col2 FROM tab1 AS cor0
----
-6
-9
33
query I rowsort
SELECT DISTINCT + + ( - ( - col1 ) ) * + col2 AS col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL + 89 - 12 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-223
-31
-67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 94 col0 FROM tab2 AS cor0
----
-2444
-2538
-3572
query I rowsort
SELECT ALL + ( + ( col0 ) ) * - ( - 25 ) + col1 AS col0 FROM tab2 cor0
----
1992
2009
206
query I rowsort
SELECT 44 * + col2 + col1 AS col1 FROM tab2 AS cor0
----
1203
1219
1689
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 17 - + 23 col2 FROM tab1 AS cor0
----
-6
query I rowsort
SELECT col2 * ( col0 ) * col2 AS col1 FROM tab0
----
26136
35
598436
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + col0 AS REAL ) + col1 * - col2 * - col2 FROM tab0 AS cor0
----
132
611973
93678
query I rowsort
SELECT ALL 89 + col1 * + col2 AS col1 FROM tab0 AS cor0
----
186
2927
7551
query I rowsort
SELECT DISTINCT cor0.col1 + col2 + cor0.col1 * - 48 * - col1 FROM tab1 AS cor0
----
32528
4867
8221
onlyif mysql # use DIV operator for integer division
query I rowsort label-517
SELECT + + col0 * ( - col1 ) + - col1 DIV col1 AS col2 FROM tab0 AS cor0
----
-2065
-3396
-8100
skipif mysql # not compatible
query I rowsort label-517
SELECT + + col0 * ( - col1 ) + - col1 / col1 AS col2 FROM tab0 AS cor0
----
-2065
-3396
-8100
query I rowsort
SELECT + 99 + + col2 FROM tab0 AS cor0
----
100
132
181
onlyif mysql # use DIV operator for integer division
query I rowsort label-519
SELECT + - 14 + 26 * col2 DIV - col0 FROM tab1 cor0
----
-37
-45
-482
skipif mysql # not compatible
query I rowsort label-519
SELECT + - 14 + 26 * col2 / - col0 FROM tab1 cor0
----
-37
-45
-482
query I rowsort
SELECT DISTINCT - col1 * + col2 * col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT + 72 + col0 FROM tab0
----
107
161
96
query I rowsort
SELECT ALL - ( col2 ) + + col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + 80 FROM tab1, tab1 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT col0 * + 84 FROM tab1
----
252
5376
6720
query I rowsort
SELECT - 19 + col0 * + col0 FROM tab0 AS cor0
----
1206
557
7902
query I rowsort
SELECT col1 * 24 AS col1 FROM tab2
----
1416
408
744
query I rowsort
SELECT + cor0.col0 * col2 AS col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + + col1 + 96 AS col1 FROM tab0 AS cor0
----
182
187
193
query I rowsort
SELECT DISTINCT - - col2 + - col2 * + col1 FROM tab0 cor0
----
-2805
-7380
-96
query I rowsort
SELECT col2 + col0 * col0 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-531
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-531
SELECT ALL + CAST ( NULL AS REAL ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - col2 * 16 AS col0 FROM tab1
----
-1536
-864
-912
query I rowsort
SELECT col2 * + ( col2 ) AS col1 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-534
SELECT + CAST( NULL AS DECIMAL ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-534
SELECT + CAST ( NULL AS REAL ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-535
SELECT + CAST( col1 AS SIGNED ) + col1 * + col2 FROM tab1 AS cor0
----
1261
1430
580
skipif mysql # not compatible
query I rowsort label-535
SELECT + CAST ( col1 AS INTEGER ) + col1 * + col2 FROM tab1 AS cor0
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col2 ) + + cor0.col2 * 85 col2 FROM tab0 AS cor0
----
2838
7052
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 0 - ( tab0.col1 ) col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT - ( + col2 ) * + col2 * col0 + - col2 AS col1 FROM tab2 AS cor0
----
-114114
-5130
-52754
query I rowsort
SELECT ALL 72 FROM tab0 cor0
----
72
72
72
query I rowsort
SELECT DISTINCT - col1 * col1 * + col0 FROM tab1
----
-13520
-2028
-6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT + tab2.col1 * + tab2.col0 * 24 AS col1 FROM tab2
----
110448
32232
5208
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-543
SELECT 46 * col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-543
SELECT 46 * col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col2 - col2 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 * - col0 + + ( + col0 ) col0 FROM tab1 AS cor0
----
147
3136
3920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 8 col0 FROM tab1 AS cor0
----
8
query I rowsort
SELECT ALL + + ( - col0 ) * - 69 FROM tab2 AS cor0
----
483
5382
5451
query I rowsort
SELECT ALL + col2 + col2 * 71 FROM tab2 AS cor0
----
1872
1944
2736
query I rowsort
SELECT DISTINCT cor0.col2 + col1 * - 54 FROM tab2 AS cor0
----
-1647
-3160
-880
query I rowsort
SELECT - col2 + col2 * cor0.col0 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT ALL + col1 + cor0.col2 * 71 * 32 AS col2 FROM tab1 AS cor0
----
122714
129514
218125
query I rowsort
SELECT DISTINCT - + 85 + + col1 FROM tab2 AS cor0
----
-26
-54
-68
query I rowsort
SELECT - cor0.col2 + 84 AS col2 FROM tab2 AS cor0
----
46
57
58
query I rowsort
SELECT + col0 + + col1 * + col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT col1 * + col2 + + col0 + - cor0.col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT col0 * 24 AS col2 FROM tab2 AS cor0
----
168
1872
1896
query I rowsort
SELECT DISTINCT 8 * col2 AS col2 FROM tab0
----
264
656
8
query I rowsort
SELECT col2 * col1 + col2 + col1 FROM tab0 AS cor0
----
195
2957
7635
query I rowsort
SELECT + + col0 * col0 + + ( + col1 + col0 ) AS col1 FROM tab0 AS cor0
----
1357
686
8101
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( + col1 ) + - col0 * 54 + col1 col0 FROM tab2 AS cor0
----
-3960
-672
614
query I rowsort
SELECT ALL cor0.col2 + + col1 * col1 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT DISTINCT - col1 * col0 + col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL + cor0.col0 + - 35 AS col0 FROM tab2 AS cor0
----
-28
43
44
query I rowsort
SELECT - col1 * - ( col2 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - 94 AS col0 FROM tab2 AS cor0
----
-94
-94
-94
query I rowsort
SELECT ALL + col1 * col1 * col0 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT DISTINCT + - 81 FROM tab2 cor0
----
-81
query I rowsort
SELECT ALL + ( col2 ) * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT - 84 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4
query I rowsort
SELECT ALL + col2 + - col0 * - col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT - 10 AS col1 FROM tab1 AS cor0
----
-10
-10
-10
query I rowsort
SELECT - col1 - col2 FROM tab1 cor0
----
-109
-67
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-573
SELECT + col2 * + cor0.col0 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-573
SELECT + col2 * + cor0.col0 + - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + col0 AS col0 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT - tab0.col0 * tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 18f45a7edd86e3eccc832dcdb6123662
query I rowsort
SELECT ALL 5 * - col1 FROM tab1
----
-130
-50
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-577
SELECT 98 DIV + col1 FROM tab1
----
3
7
9
skipif mysql # not compatible
query I rowsort label-577
SELECT 98 / + col1 FROM tab1
----
3
7
9
query I rowsort
SELECT 47 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
query I rowsort
SELECT 87 * col2 FROM tab0
----
2871
7134
87
query I rowsort
SELECT 36 * - tab1.col0 FROM tab1
----
-108
-2304
-2880
query I rowsort
SELECT ALL + 43 FROM tab1
----
43
43
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 col2 FROM tab2
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 col2 FROM tab0
----
-45
-45
-45
query I rowsort
SELECT ALL - cor0.col0 + - col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) + col1 * 43 FROM tab0 AS cor0
----
3674
3824
4136
query I rowsort
SELECT DISTINCT - 72 * - col1 + - col0 - + col2 * + cor0.col2 * col1 FROM tab2 AS cor0
----
-20374
-23403
-35714
query I rowsort
SELECT DISTINCT col0 * col2 + + 45 * col2 AS col2 FROM tab2 AS cor0
----
1404
3198
4712
query I rowsort
SELECT + + 71 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT DISTINCT - col2 * - col1 + 0 AS col2 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + tab2.col0 + - tab2.col1 col1 FROM tab2
----
158
1969
2985
query I rowsort
SELECT DISTINCT - col0 + - cor0.col1 * 99 * col1 + + col0 * col0 FROM tab0 AS cor0
----
-731652
-811987
-930301
query I rowsort
SELECT ALL cor0.col2 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + - col1 + 33 AS col1 FROM tab0 cor0
----
-53
-58
-64
query I rowsort
SELECT - + col1 + cor0.col1 - + col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - 14 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc
query I rowsort
SELECT ALL + ( 16 ) * + col1 FROM tab1 AS cor0
----
160
208
416
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab1 cor1, tab2, tab0 AS cor2
----
3645 values hashing to 32e6d0f63bf719b0a999c75379e75eca
query I rowsort
SELECT - 52 * 44 FROM tab2 AS cor0
----
-2288
-2288
-2288
query I rowsort
SELECT 12 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT DISTINCT + 94 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-601
SELECT ALL + 95 DIV col1 + + cor0.col2 + - col2 AS col0 FROM tab1 AS cor0
----
3
7
9
skipif mysql # not compatible
query I rowsort label-601
SELECT ALL + 95 / col1 + + cor0.col2 + - col2 AS col0 FROM tab1 AS cor0
----
3
7
9
query I rowsort
SELECT DISTINCT 99 FROM tab0, tab2 AS cor0
----
99
query I rowsort
SELECT tab2.col2 + tab2.col1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 993162448d72b066e1ac9ba4caa8d8d7
query I rowsort
SELECT col1 + col2 * col1 AS col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT + ( - 75 ) + tab2.col1 AS col1 FROM tab2
----
-16
-44
-58
query I rowsort
SELECT ALL + 69 AS col1 FROM tab0
----
69
69
69
query I rowsort
SELECT - ( 67 ) - - tab0.col0 AS col2 FROM tab0
----
-32
-43
22
query I rowsort
SELECT + col2 + col2 * + col2 FROM tab2
----
1482
702
756
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-609
SELECT + CAST( NULL AS SIGNED ) * 68 + col0 * tab0.col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-609
SELECT + CAST ( NULL AS INTEGER ) * 68 + col0 * tab0.col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col1 + + cor0.col2 AS col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL - - 23 * col1 AS col0 FROM tab2 AS cor0
----
1357
391
713
query I rowsort
SELECT ALL + 46 * col0 FROM tab1 AS cor0
----
138
2944
3680
query I rowsort
SELECT ALL ( + 40 ) * - col0 * ( ( - col0 ) ) FROM tab2
----
1960
243360
249640
query I rowsort
SELECT 70 * + cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to be00591f9886d7eb84584586c1406373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-615
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-615
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
NULL
query I rowsort
SELECT ALL - 52 * - col2 + - col0 * ( col1 ) FROM tab0
----
-3343
-348
-3835
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-617
SELECT DISTINCT CAST( - col2 AS SIGNED ) * col0 FROM tab2
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT 11 * - col2 FROM tab1
----
-1056
-594
-627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-619
SELECT - CAST( NULL AS SIGNED ) * col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-619
SELECT - CAST ( NULL AS INTEGER ) * col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 4 AS col0 FROM tab1 AS cor0
----
-4
-4
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 * tab0.col0 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to e1120e7b687b32270ef70393236e7341
query I rowsort
SELECT - - cor1.col1 + ( - 63 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to bb2f36b137e12918d0b4f624c711b86d
onlyif mysql # use DIV operator for integer division
query I rowsort label-624
SELECT DISTINCT + 78 + + cor0.col1 DIV + cor0.col2 FROM tab1 cor0
----
78
skipif mysql # not compatible
query I rowsort label-624
SELECT DISTINCT + 78 + + cor0.col1 / + cor0.col2 FROM tab1 cor0
----
78
query I rowsort
SELECT ALL + + col1 * + col1 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - + 24 FROM tab1 AS cor0
----
-24
query I rowsort
SELECT - + cor0.col2 + col1 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - 16 AS col2 FROM tab2 AS cor0
----
-16
-16
-16
query I rowsort
SELECT + tab1.col1 + col2 + tab1.col1 AS col1 FROM tab1
----
106
122
77
query I rowsort
SELECT DISTINCT tab2.col2 + col1 AS col1 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT tab2.col2 + col2 * tab2.col2 AS col0 FROM tab2
----
1482
702
756
query I rowsort
SELECT col2 * - ( 73 ) AS col2 FROM tab0
----
-2409
-5986
-73
query I rowsort
SELECT + col0 * + tab1.col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT col1 * tab2.col2 + 33 AS col0 FROM tab2
----
1567
679
870
query I rowsort
SELECT col2 + - col2 * col1 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT + col2 + - col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT ALL + 34 + cor1.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to dbfa8b02fdedc56eeb01277972b5fb7c
query I rowsort
SELECT - col1 + 6 AS col0 FROM tab1 cor0
----
-20
-4
-7
query I rowsort
SELECT col1 - ( col0 ) FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-640
SELECT ALL - col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-640
SELECT ALL - col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * ( - col0 ) - col0 * - col1 * col0 AS col2 FROM tab0 AS cor0
----
118790
48744
713513
onlyif mysql # use DIV operator for integer division
query I rowsort label-642
SELECT ALL - - col2 DIV 72 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-642
SELECT ALL - - col2 / 72 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT col2 * + ( col0 ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + ( col2 ) + col1 * 91 FROM tab1 AS cor0
----
1279
2420
967
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * col2 + col0 col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT + 75 * col2 + + col2 FROM tab1 AS cor0
----
4104
4332
7296
query I rowsort
SELECT DISTINCT - + col0 + - ( col2 ) AS col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ( - cor0.col2 ) * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT - col2 * ( col1 ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-650
SELECT ALL - + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-650
SELECT ALL - + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + - cor0.col2 * + col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - 14 FROM tab1 AS cor0
----
-14
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col2 FROM tab1 AS cor0
----
90
90
90
query I rowsort
SELECT - col2 + 34 + col0 AS col0 FROM tab0
----
25
41
68
query I rowsort
SELECT 4 + + col0 AS col2 FROM tab0 AS cor0
----
28
39
93
query I rowsort
SELECT 79 + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-1985
-3316
-8020
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) > col2 + col2
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT + cor0.col1 + - col2 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT - col0 * col0 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE NOT NULL > - tab1.col1 * col1
----
query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) < col0 / - col1
----
query I rowsort
SELECT - col2 * cor0.col0 + col2 + col1 AS col0 FROM tab2 AS cor0
----
-131
-1943
-2947
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 * - cor0.col2 col2 FROM tab1 AS cor0 WHERE - col0 * + col1 + + col2 = ( - col0 )
----
query I rowsort
SELECT - col2 - tab1.col1 AS col1 FROM tab1
----
-109
-67
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-666
SELECT col1 * col0 - col1 DIV col1 FROM tab1
----
1039
639
77
skipif mysql # not compatible
query I rowsort label-666
SELECT col1 * col0 - col1 / col1 FROM tab1
----
1039
639
77
query I rowsort
SELECT ALL + tab2.col0 - col1 * + col2 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT tab2.col2 * + col1 AS col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 <= ( col2 )
----
64
10
57
query I rowsort
SELECT DISTINCT col1 * col0 * + col0 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT + col2 * - col2 + tab2.col0 AS col2 FROM tab2
----
-1365
-598
-722
query I rowsort
SELECT col0 + - col0 + col0 AS col0 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - tab2.col0 col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL + col2 + - col1 FROM tab0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 / col1 col1 FROM tab0 WHERE col0 / col0 = - col2
----
query I rowsort
SELECT DISTINCT tab2.col0 FROM tab2 WHERE NOT + col1 NOT IN ( - col1 )
----
query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE ( col1 * - col1 ) NOT BETWEEN NULL AND NULL OR NOT NULL BETWEEN NULL AND col0 * col2 - - col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-678
SELECT DISTINCT col2 + + col2 DIV col0 FROM tab2
----
26
30
38
skipif mysql # not compatible
query I rowsort label-678
SELECT DISTINCT col2 + + col2 / col0 FROM tab2
----
26
30
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-679
SELECT DISTINCT col0 DIV + col0 + col1 AS col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-679
SELECT DISTINCT col0 / + col0 + col1 AS col1 FROM tab0
----
87
92
98
query I rowsort
SELECT DISTINCT - col1 + - col1 AS col1 FROM tab0
----
-172
-182
-194
query I rowsort
SELECT - col0 - - col2 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT col0 * + col0 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
6110
6279
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 * + col2 col1 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT col1 * + col0 * + col1 AS col2 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT - col1 + tab2.col2 + col2 FROM tab2
----
-7
23
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-686
SELECT col0 DIV + tab2.col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-686
SELECT col0 / + tab2.col0 FROM tab2
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-687
SELECT DISTINCT + col2 DIV col1 + + col2 * + col2 col2 FROM tab2
----
1446
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-687
SELECT DISTINCT + col2 / col1 + + col2 * + col2 col2 FROM tab2
----
1446
676
729
query I rowsort
SELECT + col1 * col0 + tab1.col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT DISTINCT + col1 + + col2 FROM tab0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col1 col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT col1 FROM tab2 WHERE NOT - col1 BETWEEN col2 AND NULL
----
17
31
59
query I rowsort
SELECT ALL + tab1.col1 * - col1 * tab1.col2 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT - - col0 * + col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col2 * col0 + - col2 AS col0 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT + col2 * col0 + col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT + - col1 + + cor0.col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT + tab1.col1 FROM tab1, tab2, tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-698
SELECT ALL - col0 DIV - col0 + - col2 - tab2.col2 * - col2 AS col2 FROM tab2
----
1407
651
703
skipif mysql # not compatible
query I rowsort label-698
SELECT ALL - col0 / - col0 + - col2 - tab2.col2 * - col2 AS col2 FROM tab2
----
1407
651
703
query I rowsort
SELECT + 67 + + col2 * col0 FROM tab1 AS cor0
----
229
3715
7747
onlyif mysql # use DIV operator for integer division
query I rowsort label-700
SELECT - col1 DIV col1 AS col0 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-700
SELECT - col1 / col1 AS col0 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT cor0.col2 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + - 45 * col1 col1 FROM tab2 AS cor0
----
-1388
-2577
-686
query I rowsort
SELECT + col2 + - 67 * 42 FROM tab1 AS cor0
----
-2718
-2757
-2760
query I rowsort
SELECT + ( - ( + tab1.col0 ) * tab1.col2 + - 65 * tab1.col0 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 83c53dfccfc90dc324006da9f71b7df0
query I rowsort
SELECT ALL - - col2 * - col0 - - 5 AS col0 FROM tab1 AS cor0
----
-157
-3643
-7675
query I rowsort
SELECT col2 * + cor0.col0 + 79 AS col2 FROM tab0 AS cor0
----
114
7377
871
onlyif mysql # use DIV operator for integer division
query I rowsort label-707
SELECT ALL + col1 DIV ( + col0 ) AS col1 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-707
SELECT ALL + col1 / ( + col0 ) AS col1 FROM tab1 AS cor0
----
0
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 * - col2 col0 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT DISTINCT col2 * - ( - 95 * cor0.col2 ) + - 85 AS col0 FROM tab2 AS cor0
----
137095
64135
69170
query I rowsort
SELECT ALL - cor0.col2 * 95 + cor0.col2 FROM tab0 AS cor0
----
-3102
-7708
-94
query I rowsort
SELECT col1 * + 72 * 49 AS col1 FROM tab2 AS cor0
----
109368
208152
59976
query I rowsort
SELECT cor0.col2 * ( + col1 ) + - col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371
onlyif mysql # use DIV operator for integer division
query I rowsort label-713
SELECT ALL col0 DIV ( - col0 ) AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-713
SELECT ALL col0 / ( - col0 ) AS col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - col0 * col2 - col2 * + cor0.col2 FROM tab2 cor0
----
-2704
-4446
-918
query I rowsort
SELECT DISTINCT + col1 + + col1 * cor0.col2 * col0 FROM tab1 AS cor0
----
36490
4238
99853
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - 45 col1 FROM tab1 AS cor0
----
1170
450
585
onlyif mysql # use DIV operator for integer division
query I rowsort label-717
SELECT + cor0.col0 + + col0 DIV cor0.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-717
SELECT + cor0.col0 + + col0 / cor0.col1 col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - col0 * + 31 + ( - col1 ) FROM tab2 AS cor0
----
-2466
-2477
-248
query I rowsort
SELECT col1 * - col1 + 57 FROM tab1 cor0
----
-112
-43
-619
query I rowsort
SELECT ALL - col1 + - col1 FROM tab1 WHERE NOT ( NULL ) IN ( col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col0 - - col1 col0 FROM tab1
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-722
SELECT ALL + col1 - - col0 DIV tab0.col1 col0 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-722
SELECT ALL + col1 - - col0 / tab0.col1 col0 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE NOT ( NULL ) = NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-724
SELECT col0 + - tab1.col0 DIV col0 FROM tab1
----
2
63
79
skipif mysql # not compatible
query I rowsort label-724
SELECT col0 + - tab1.col0 / col0 FROM tab1
----
2
63
79
query I rowsort
SELECT ALL - col2 * + col1 - - col2 AS col1 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT col0 + tab1.col2 * col1 FROM tab1 WHERE NOT col0 < NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - tab1.col0 * - col1 col0 FROM tab1
----
1136
132
697
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) > + col1
----
query I rowsort
SELECT ALL + tab0.col1 * tab0.col0 FROM tab0 WHERE NOT NULL <= NULL
----
query I rowsort
SELECT DISTINCT + col2 * col0 FROM tab1 cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-731
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-731
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL + col1 * col2 + 32 FROM tab1 AS cor0
----
1280
1436
602
query I rowsort
SELECT - + col0 * + col1 * cor0.col1 FROM tab0 cor0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL + tab0.col2 * col2 + col1 * tab0.col2 AS col0 FROM tab0 WHERE NOT NULL > NULL
----
query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT + col0 * col2 * + col2 IN ( + col0 )
----
26
27
38
query I rowsort
SELECT DISTINCT tab2.col0 - col2 * - col0 AS col2 FROM tab2
----
196
2106
3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 50 col1 FROM tab2 AS cor0
----
50
50
50
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > col0
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-739
SELECT col1 * CAST( col1 AS SIGNED ) + col1 * - cor0.col0 FROM tab2 AS cor0
----
-1054
-1121
744
skipif mysql # not compatible
query I rowsort label-739
SELECT col1 * CAST ( col1 AS INTEGER ) + col1 * - cor0.col0 FROM tab2 AS cor0
----
-1054
-1121
744
onlyif mysql # use DIV operator for integer division
query I rowsort label-740
SELECT DISTINCT col0 DIV ( + 13 ) col2 FROM tab2
----
0
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT col0 / ( + 13 ) col2 FROM tab2
----
0
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-741
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0, tab2, tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0, tab2, tab1 AS cor1
----
NULL
query I rowsort
SELECT DISTINCT + col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-743
SELECT col1 * CAST( - 38 AS SIGNED ) DIV + col0 FROM tab2 AS cor0
----
-168
-28
-8
skipif mysql # not compatible
query I rowsort label-743
SELECT col1 * CAST ( - 38 AS INTEGER ) / + col0 FROM tab2 AS cor0
----
-168
-28
-8
query I rowsort
SELECT DISTINCT + cor0.col1 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + col2 + 22 * col2 col0 FROM tab0 AS cor0
----
1975
58
783
query I rowsort
SELECT DISTINCT - + col1 * + ( + 11 ) + col1 + + col2 AS col1 FROM tab2 cor0
----
-132
-283
-564
query I rowsort
SELECT ALL - col0 * ( - 81 ) AS col0 FROM tab2 AS cor0
----
567
6318
6399
onlyif mysql # use DIV operator for integer division
query I rowsort label-748
SELECT - col0 DIV - 27 AS col0 FROM tab2 AS cor0
----
0
2
2
skipif mysql # not compatible
query I rowsort label-748
SELECT - col0 / - 27 AS col0 FROM tab2 AS cor0
----
0
2
2
query I rowsort
SELECT ALL cor0.col1 * 6 FROM tab0 cor0
----
516
546
582
query I rowsort
SELECT ALL - col2 + - col0 * + col0 FROM tab2 cor0
----
-6110
-6279
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-751
SELECT + - 81 DIV col2 col0 FROM tab0 AS cor0
----
-2
-81
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-751
SELECT + - 81 / col2 col0 FROM tab0 AS cor0
----
-2
-81
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-752
SELECT DISTINCT + + col0 DIV - cor0.col1 col2 FROM tab2 AS cor0
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT + + col0 / - cor0.col1 col2 FROM tab2 AS cor0
----
-1
-4
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-753
SELECT 82 DIV ( col1 + + 34 ) col0 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-753
SELECT 82 / ( col1 + + 34 ) col0 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 71 ) + - col1 * 97 * + 31 col0 FROM tab0 AS cor0
----
-258673
-273708
-291750
onlyif mysql # use DIV operator for integer division
query I rowsort label-755
SELECT ALL 33 DIV 90 col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-755
SELECT ALL 33 / 90 col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 11 + cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to a977d8abd302e4c12f955e523a31744f
query I rowsort
SELECT ALL + ( col1 ) * col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL - ( 22 ) * col1 AS col2 FROM tab0 AS cor0
----
-1892
-2002
-2134
query I rowsort
SELECT DISTINCT + - ( - 34 ) + col2 AS col2 FROM tab1 AS cor0
----
130
88
91
query I rowsort
SELECT + 55 * col2 AS col0 FROM tab0 AS cor0
----
1815
4510
55
query I rowsort
SELECT ALL + - col0 - + col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-762
SELECT + cor0.col1 * cor0.col1 + + 1 + 18 DIV col2 AS col0 FROM tab1 AS cor0
----
101
170
677
skipif mysql # not compatible
query I rowsort label-762
SELECT + cor0.col1 * cor0.col1 + + 1 + 18 / col2 AS col0 FROM tab1 AS cor0
----
101
170
677
query I rowsort
SELECT DISTINCT + cor0.col1 + + cor0.col2 * + ( col2 ) AS col2 FROM tab2 AS cor0
----
1461
735
760
onlyif mysql # use DIV operator for integer division
query I rowsort label-764
SELECT - - col2 DIV - col1 + - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-764
SELECT - - col2 / - col1 + - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - cor0.col2 * cor0.col2 + - col1 AS col1 FROM tab0 AS cor0
----
-1175
-6815
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + col2 col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT DISTINCT + cor0.col2 + + col0 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-768
SELECT ALL col1 * - col0 + - CAST( - col2 AS SIGNED ) + + cor0.col2 * + 50 FROM tab0 AS cor0
----
-3344
-381
-3917
skipif mysql # not compatible
query I rowsort label-768
SELECT ALL col1 * - col0 + - CAST ( - col2 AS INTEGER ) + + cor0.col2 * + 50 FROM tab0 AS cor0
----
-3344
-381
-3917
query I rowsort
SELECT ALL - 64 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 100c625e45715c20368551989514ba64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-770
SELECT col1 * + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-770
SELECT col1 * + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 26 + + col0 FROM tab0
----
-2
63
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-772
SELECT + ( col2 ) + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-772
SELECT + ( col2 ) + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 85 col1 FROM tab0 AS cor0
----
171
176
182
query I rowsort
SELECT ALL + col2 + + col0 * - 22 FROM tab2 AS cor0
----
-127
-1690
-1700
query I rowsort
SELECT DISTINCT col1 + cor0.col2 + - cor0.col1 * col2 FROM tab1 AS cor0
----
-1139
-1324
-503
query I rowsort
SELECT col1 * + col2 + + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT + col1 + + 57 FROM tab0 AS cor0
----
143
148
154
query I rowsort
SELECT + col0 + col2 + - 38 AS col1 FROM tab0
----
-2
133
19
query I rowsort
SELECT DISTINCT + 18 + col2 AS col0 FROM tab1
----
114
72
75
query I rowsort
SELECT DISTINCT + tab2.col1 + - tab2.col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT + 11 + - col2 * + ( col1 ) * - col0 FROM tab0
----
3406
664129
68123
query I rowsort
SELECT - - col1 * ( col1 ) AS col0 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT - + col0 - 87 FROM tab1 AS cor0
----
-151
-167
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-784
SELECT ALL + col2 DIV ( col1 ) + col2 * + 73 AS col2 FROM tab1 AS cor0
----
3944
4166
7015
skipif mysql # not compatible
query I rowsort label-784
SELECT ALL + col2 / ( col1 ) + col2 * + 73 AS col2 FROM tab1 AS cor0
----
3944
4166
7015
query I rowsort
SELECT DISTINCT + + col0 + 85 FROM tab1 AS cor0
----
149
165
88
query I rowsort
SELECT - col0 * - col1 + - col1 * col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-787
SELECT col0 + + CAST( + cor0.col0 AS SIGNED ) * + cor0.col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480
skipif mysql # not compatible
query I rowsort label-787
SELECT col0 + + CAST ( + cor0.col0 AS INTEGER ) * + cor0.col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT DISTINCT + + 18 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-790
SELECT - + 38 DIV + 88 + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
skipif mysql # not compatible
query I rowsort label-790
SELECT - + 38 / + 88 + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT - tab0.col2 + + tab0.col1 * col2 * + tab0.col2 AS col2 FROM tab0
----
611802
93621
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-792
SELECT col2 + + CAST( NULL AS SIGNED ) * 0 / + col1 + col1 / - 23 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-792
SELECT col2 + + CAST ( NULL AS INTEGER ) * 0 / + col1 + col1 / - 23 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - + tab0.col0 * 55 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to ec1556e43e6aa368731ac4f30738a75a
query I rowsort
SELECT DISTINCT 23 AS col0 FROM tab0, tab2 AS cor0
----
23
query I rowsort
SELECT ALL + col2 * - 59 + col1 FROM tab2 AS cor0
----
-1475
-1562
-2225
query I rowsort
SELECT DISTINCT - col2 + ( - col0 * - cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-45
4039
6304
onlyif mysql # use DIV operator for integer division
query I rowsort label-797
SELECT ALL + cor0.col2 * + col2 + col0 DIV + col0 FROM tab1 AS cor0
----
2917
3250
9217
skipif mysql # not compatible
query I rowsort label-797
SELECT ALL + cor0.col2 * + col2 + col0 / + col0 FROM tab1 AS cor0
----
2917
3250
9217
query I rowsort
SELECT DISTINCT + col1 + col0 - col2 FROM tab2 cor0
----
11
111
58
query I rowsort
SELECT + cor0.col0 * - col0 + - 29 * col2 FROM tab2 AS cor0
----
-6838
-7343
-832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 + col2 * col1 col2 FROM tab0
----
0
2752
7371
query I rowsort
SELECT DISTINCT + - 72 FROM tab0 cor0
----
-72
query I rowsort
SELECT 22 * + col0 FROM tab2 AS cor0
----
154
1716
1738
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 ALL - 54 * + col1 FROM tab0
----
-4644
-4914
-5238
onlyif mysql # use DIV operator for integer division
query I rowsort label-805
SELECT + col0 DIV - col2 + + tab1.col0 FROM tab1
----
3
63
80
skipif mysql # not compatible
query I rowsort label-805
SELECT + col0 / - col2 + + tab1.col0 FROM tab1
----
3
63
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) col1 FROM tab0
----
86
91
97
query I rowsort
SELECT + col0 * col1 + ( 74 ) - - cor0.col0 FROM tab1 AS cor0
----
1194
155
778
query I rowsort
SELECT DISTINCT - + col1 * col2 + + 40 FROM tab0 AS cor0
----
-2798
-57
-7422
query I rowsort
SELECT DISTINCT col1 + + col0 * col0 FROM tab0 cor0
----
1322
662
8012
query I rowsort
SELECT ALL col0 + - cor0.col0 * - col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT 43 + - col1 AS col0 FROM tab0 AS cor0
----
-43
-48
-54
query I rowsort
SELECT ALL - col0 * - col1 + 52 FROM tab1 AS cor0
----
1092
130
692
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 - col2 col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - ( - col1 ) + + cor0.col2 AS col1 FROM tab0 cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-815
SELECT DISTINCT + col2 DIV col1 + - cor0.col0 FROM tab1 AS cor0
----
-1
-59
-73
skipif mysql # not compatible
query I rowsort label-815
SELECT DISTINCT + col2 / col1 + - cor0.col0 FROM tab1 AS cor0
----
-1
-59
-73
query I rowsort
SELECT ALL - 18 AS col2 FROM tab2 AS cor0
----
-18
-18
-18
query I rowsort
SELECT - col0 - cor0.col0 AS col0 FROM tab1 cor0
----
-128
-160
-6
query I rowsort
SELECT ALL 12 + col1 AS col0 FROM tab0 AS cor0
----
103
109
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-819
SELECT DISTINCT + col0 + + col1 + CAST( NULL AS SIGNED ) * col1 * col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-819
SELECT DISTINCT + col0 + + col1 + CAST ( NULL AS INTEGER ) * col1 * col1 FROM tab0 cor0
----
NULL
query I rowsort
SELECT + ( - cor0.col1 ) + 14 AS col1 FROM tab1 AS cor0
----
-12
1
4
query I rowsort
SELECT DISTINCT + col1 * - col2 + + 51 AS col2 FROM tab1 AS cor0
----
-1197
-1353
-519
query I rowsort
SELECT ALL 23 - + col0 AS col1 FROM tab1 AS cor0
----
-41
-57
20
query I rowsort
SELECT + 97 + - col1 FROM tab2 AS cor0
----
38
66
80
query I rowsort
SELECT ALL 0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - + ( col2 ) FROM tab1 cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-826
SELECT + - col2 * 39 DIV col2 - + col2 AS col2 FROM tab0 AS cor0
----
-121
-40
-72
skipif mysql # not compatible
query I rowsort label-826
SELECT + - col2 * 39 / col2 - + col2 AS col2 FROM tab0 AS cor0
----
-121
-40
-72
query I rowsort
SELECT DISTINCT ( 80 ) AS col1 FROM tab1
----
80
query I rowsort
SELECT - + col2 - + 61 FROM tab2 cor0
----
-87
-88
-99
query I rowsort
SELECT + 65 + + col1 * + cor0.col0 * - 89 FROM tab0 cor0
----
-183631
-302090
-720746
query I rowsort
SELECT + + col2 * - 24 + + cor0.col1 * + ( col0 * + col0 ) AS col0 FROM tab0 AS cor0
----
118801
48744
718843
query I rowsort
SELECT 56 - + 95 AS col2 FROM tab2 AS cor0
----
-39
-39
-39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-832
SELECT ALL + + cor0.col2 * col0 * CAST( col1 AS SIGNED ) + + col0 AS col1 FROM tab1 cor0
----
36544
4215
99920
skipif mysql # not compatible
query I rowsort label-832
SELECT ALL + + cor0.col2 * col0 * CAST ( col1 AS INTEGER ) + + col0 AS col1 FROM tab1 cor0
----
36544
4215
99920
query I rowsort
SELECT ALL col0 * col2 + - cor0.col1 * + col0 + col1 FROM tab0 AS cor0
----
-1186
-3263
-710
query I rowsort
SELECT 0 * col1 + + cor0.col1 + col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + ( col2 ) * col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL + col0 * col0 * - col2 + col0 FROM tab2
----
-1316
-158106
-237079
query I rowsort
SELECT - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + + col0 * col0 col0 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + + 68 AS col0 FROM tab0 AS cor0
----
-2770
-29
-7394
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor2.col0 col2 FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-841
SELECT ALL - CAST( - cor0.col0 AS SIGNED ) FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-841
SELECT ALL - CAST ( - cor0.col0 AS INTEGER ) FROM tab2 AS cor0
----
7
78
79
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 DISTINCT + col0 * 42 FROM tab0
----
1008
1470
3738
query I rowsort
SELECT DISTINCT + - 1 - + col0 AS col1 FROM tab1 AS cor0
----
-4
-65
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col0 col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - 51 + 8 AS col2 FROM tab0 AS cor0
----
-43
-43
-43
onlyif mysql # use DIV operator for integer division
query I rowsort label-847
SELECT DISTINCT + col0 DIV col1 + col0 AS col1 FROM tab2 cor0
----
7
79
83
skipif mysql # not compatible
query I rowsort label-847
SELECT DISTINCT + col0 / col1 + col0 AS col1 FROM tab2 cor0
----
7
79
83
query I rowsort
SELECT ALL 36 - + col0 * - col1 FROM tab2 AS cor0
----
1379
253
4638
query I rowsort
SELECT - 1 * col1 AS col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT col2 * 86 AS col1 FROM tab1 AS cor0
----
4644
4902
8256
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 86 col0 FROM tab1 AS cor0
----
-86
query I rowsort
SELECT ( 53 ) * - col2 FROM tab2 AS cor0
----
-1378
-1431
-2014
query I rowsort
SELECT DISTINCT - 7 + 32 AS col2 FROM tab1, tab1 AS cor0
----
25
query I rowsort
SELECT + col0 - + col0 * + tab2.col0 FROM tab2
----
-42
-6006
-6162
query I rowsort
SELECT + + tab1.col1 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT tab0.col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT - col1 - - col0 AS col0 FROM tab0
----
-2
-62
query I rowsort
SELECT col1 + + col1 * col1 AS col2 FROM tab2
----
306
3540
992
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
query I rowsort
SELECT ALL - - 41 * col2 + + col0 * col0 + + cor0.col0 FROM tab0 AS cor0
----
11372
1301
1953
query I rowsort
SELECT 66 AS col2 FROM tab1 AS cor0
----
66
66
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 + col1 + + 83 col2 FROM tab0 AS cor0
----
183
188
194
query I rowsort
SELECT + 97 AS col2 FROM tab2 AS cor0
----
97
97
97
query I rowsort
SELECT + - col1 * cor0.col1 + ( + cor0.col1 ) * - col1 + ( col0 ) FROM tab1 AS cor0
----
-1349
-136
-258
query I rowsort
SELECT col0 + col1 + - cor0.col1 * ( col0 ) AS col1 FROM tab0 AS cor0
----
-1954
-3263
-7919
onlyif mysql # use DIV operator for integer division
query I rowsort label-866
SELECT ALL - col0 + tab0.col2 DIV - col1 AS col2 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-866
SELECT ALL - col0 + tab0.col2 / - col1 AS col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - + cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-7
-78
-79
query I rowsort
SELECT - - cor0.col1 * col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT ALL - col1 * + ( col2 ) FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT - 64 FROM tab2, tab2 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e
query I rowsort
SELECT ALL + + col0 * 31 AS col0 FROM tab0 AS cor0
----
1085
2759
744
query I rowsort
SELECT DISTINCT + - cor0.col1 * col2 + 9 AS col0 FROM tab0 AS cor0
----
-2829
-7453
-88
query I rowsort
SELECT ALL ( 35 ) * tab2.col0 + col1 AS col1 FROM tab2
----
276
2782
2789
query I rowsort
SELECT ALL ( col0 ) + - col0 * + 72 FROM tab2
----
-497
-5538
-5609
query I rowsort
SELECT DISTINCT - 64 + + 88 FROM tab0
----
24
query I rowsort
SELECT col1 * - col2 + col2 + + col0 * tab1.col2 AS col0 FROM tab1
----
-1188
3135
6528
query I rowsort
SELECT DISTINCT col0 + + cor0.col2 - - col0 * col1 AS col0 FROM tab2 AS cor0
----
1460
251
4706
query I rowsort
SELECT ALL + - 84 * cor0.col2 + col2 * col0 AS col1 FROM tab2 AS cor0
----
-156
-190
-2079
query I rowsort
SELECT DISTINCT ( + col0 ) * col2 + - col0 * - col1 AS col0 FROM tab2
----
406
4345
6630
query I rowsort
SELECT + col0 + tab0.col0 * col1 + + col2 FROM tab0
----
2121
3431
8270
query I rowsort
SELECT - 32 + - col2 AS col0 FROM tab2
----
-58
-59
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-882
SELECT + col2 DIV 97 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-882
SELECT + col2 / 97 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-883
SELECT DISTINCT tab1.col2 + 53 DIV - col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-883
SELECT DISTINCT tab1.col2 + 53 / - col2 FROM tab1
----
54
57
96
query I rowsort
SELECT 50 + col2 * col0 AS col1 FROM tab0
----
7348
842
85
query I rowsort
SELECT col0 + col2 * col1 * ( 22 ) FROM tab1
----
12604
27536
30891
onlyif mysql # use DIV operator for integer division
query I rowsort label-886
SELECT + col1 DIV - col1 + + col0 FROM tab2 cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-886
SELECT + col1 / - col1 + + col0 FROM tab2 cor0
----
6
77
78
query I rowsort
SELECT DISTINCT - cor0.col2 * + col0 + ( + col1 ) FROM tab0 cor0
----
-706
-7207
62
query I rowsort
SELECT ALL 6 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
query I rowsort
SELECT DISTINCT + - col2 * - col1 + 28 FROM tab0 AS cor0
----
125
2866
7490
query I rowsort
SELECT ALL + - cor0.col0 + - col1 + col2 FROM tab0 AS cor0
----
-131
-77
-98
query I rowsort
SELECT - 50 + col2 * - col1 FROM tab2 AS cor0
----
-1584
-696
-887
query I rowsort
SELECT DISTINCT col2 * - col2 + 59 * col2 FROM tab0 AS cor0
----
-1886
58
858
query I rowsort
SELECT DISTINCT + col0 + col1 * ( cor0.col1 ) FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT DISTINCT + col1 * - cor0.col2 - ( + 16 ) FROM tab0 AS cor0
----
-113
-2854
-7478
query I rowsort
SELECT + col1 * + col1 AS col0 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT ALL col1 * + col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT 46 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
72
73
84
query I rowsort
SELECT DISTINCT - 13 * + col2 AS col0 FROM tab1 cor0
----
-1248
-702
-741
onlyif mysql # use DIV operator for integer division
query I rowsort label-899
SELECT + - 64 + + cor0.col1 * ( + col2 ) DIV col2 AS col1 FROM tab0 AS cor0
----
22
27
33
skipif mysql # not compatible
query I rowsort label-899
SELECT + - 64 + + cor0.col1 * ( + col2 ) / col2 AS col1 FROM tab0 AS cor0
----
22
27
33
query I rowsort
SELECT ALL - - col0 * col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT 40 FROM tab1, tab0 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT + tab2.col0 - - col1 * + col2 AS col2 FROM tab2
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-903
SELECT ALL cor0.col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-903
SELECT ALL cor0.col2 / + col0 AS col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT ALL - + cor0.col2 * + ( 17 ) FROM tab0 AS cor0
----
-1394
-17
-561
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-905
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-905
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT cor0.col1 + + col1 * col0 AS col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - col2 * + ( - col2 ) FROM tab2 cor0
----
1444
676
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-908
SELECT ALL - - col1 - CAST( NULL AS SIGNED ) * - 0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-908
SELECT ALL - - col1 - CAST ( NULL AS INTEGER ) * - 0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col0 + - col1 * col0 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT - 71 + - 35 * + col1 AS col1 FROM tab2 AS cor0
----
-1156
-2136
-666
query I rowsort
SELECT + - ( + 33 ) * + col0 + + cor0.col2 FROM tab1 AS cor0
----
-2055
-2544
-45
query I rowsort
SELECT ALL + col0 + - 28 * + col2 * - col2 AS col1 FROM tab1
----
258128
81651
91036
onlyif mysql # use DIV operator for integer division
query I rowsort label-913
SELECT ALL - col1 DIV - col1 - col1 * - col1 FROM tab1 AS cor0
----
101
170
677
skipif mysql # not compatible
query I rowsort label-913
SELECT ALL - col1 / - col1 - col1 * - col1 FROM tab1 AS cor0
----
101
170
677
query I rowsort
SELECT DISTINCT - - col0 * - 47 AS col0 FROM tab1 AS cor0
----
-141
-3008
-3760
query I rowsort
SELECT ALL + col1 - ( - col0 ) AS col0 FROM tab0
----
110
132
180
query I rowsort
SELECT cor0.col2 - + 54 * + col0 FROM tab1 cor0
----
-108
-3399
-4224
query I rowsort
SELECT DISTINCT + ( 24 ) - col2 FROM tab0 AS cor0
----
-58
-9
23
query I rowsort
SELECT - 92 + + col2 * col0 AS col1 FROM tab0 AS cor0
----
-57
700
7206
query I rowsort
SELECT ALL + col1 + + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT - col2 * col0 + col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT cor0.col2 + 65 AS col1 FROM tab2 AS cor0
----
103
91
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-922
SELECT CAST( 6 AS SIGNED ) FROM tab1 AS cor0
----
6
6
6
skipif mysql # not compatible
query I rowsort label-922
SELECT CAST ( 6 AS INTEGER ) FROM tab1 AS cor0
----
6
6
6
query I rowsort
SELECT - 73 * - ( + tab1.col0 ) FROM tab1
----
219
4672
5840
query I rowsort
SELECT 10 * - 35 * cor0.col2 AS col2 FROM tab0 cor0
----
-11550
-28700
-350
query I rowsort
SELECT + col2 * ( col0 ) AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - col0 * 87 * + cor0.col2 AS col1 FROM tab0 cor0
----
-3045
-634926
-68904
query I rowsort
SELECT DISTINCT + col0 * + 7 + col2 FROM tab2 AS cor0
----
572
591
76
query I rowsort
SELECT ALL + cor0.col2 + + ( - cor0.col1 ) + 34 AS col1 FROM tab1 AS cor0
----
117
62
81
query I rowsort
SELECT ( + col0 ) * - col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT - col2 + + col2 * - col0 - + 68 AS col0 FROM tab0 AS cor0
----
-104
-7448
-893
query I rowsort
SELECT - + 38 * + col2 * 84 FROM tab1 AS cor0
----
-172368
-181944
-306432
query I rowsort
SELECT ALL + 71 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT DISTINCT + col0 + + col1 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + col0 + + 12 AS col1 FROM tab2 AS cor0
----
19
90
91
query I rowsort
SELECT ALL cor0.col2 + + col0 * - 27 FROM tab1 AS cor0
----
-1671
-2064
-27
query I rowsort
SELECT DISTINCT + ( cor1.col0 ) + cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
121
176
57
query I rowsort
SELECT ALL - col1 * 66 FROM tab0
----
-5676
-6006
-6402
query I rowsort
SELECT DISTINCT + col2 * 63 AS col2 FROM tab1
----
3402
3591
6048
onlyif mysql # use DIV operator for integer division
query I rowsort label-939
SELECT ALL tab1.col1 DIV - ( + col0 ) FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-939
SELECT ALL tab1.col1 / - ( + col0 ) FROM tab1
----
-8
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-940
SELECT + col1 * CAST( NULL AS SIGNED ) * cor0.col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-940
SELECT + col1 * CAST ( NULL AS INTEGER ) * cor0.col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 + + col2 * col1 AS col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT + 22 * + col1 AS col0 FROM tab2
----
1298
374
682
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-943
SELECT DISTINCT col0 - CAST( 2 AS SIGNED ) AS col0 FROM tab1
----
1
62
78
skipif mysql # not compatible
query I rowsort label-943
SELECT DISTINCT col0 - CAST ( 2 AS INTEGER ) AS col0 FROM tab1
----
1
62
78
query I rowsort
SELECT + + col1 * - 15 + + col1 * + col0 FROM tab1 AS cor0
----
-312
490
845
onlyif mysql # use DIV operator for integer division
query I rowsort label-945
SELECT - col0 + + ( + col0 ) DIV + col2 FROM tab0
----
-24
-88
0
skipif mysql # not compatible
query I rowsort label-945
SELECT - col0 + + ( + col0 ) / + col2 FROM tab0
----
-24
-88
0
query I rowsort
SELECT DISTINCT + - cor0.col2 - 48 AS col1 FROM tab1 AS cor0
----
-102
-105
-144
query I rowsort
SELECT col1 - - col0 * - 30 FROM tab1 AS cor0
----
-1910
-2387
-64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-948
SELECT - cor0.col0 * - CAST( - col2 AS SIGNED ) + - col1 AS col0 FROM tab2 AS cor0
----
-2087
-220
-3019
skipif mysql # not compatible
query I rowsort label-948
SELECT - cor0.col0 * - CAST ( - col2 AS INTEGER ) + - col1 AS col0 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT + 16 * + col1 FROM tab2
----
272
496
944
query I rowsort
SELECT DISTINCT ( col2 ) * - col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT tab2.col1 * + cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 2dce99ccc9ab3f12533423eaad01995c
query I rowsort
SELECT - col0 + + col2 + col0 AS col0 FROM tab0 AS cor0
----
1
33
82
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab0 cor1, tab0 cor2
----
972 values hashing to 04d825fa29899c3ee2704c26a542267d
query I rowsort
SELECT + - 6 + col2 * col0 + + col0 FROM tab2 AS cor0
----
190
2100
3075
query I rowsort
SELECT - - ( ( + col0 ) ) + - 15 AS col1 FROM tab1 AS cor0
----
-12
49
65
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 - + 95 col2 FROM tab1 AS cor0
----
-95
-95
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 * + cor0.col1 col1 FROM tab1 AS cor0
----
1326
510
663
query I rowsort
SELECT + 39 + + col0 FROM tab2 cor0
----
117
118
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-960
SELECT col2 DIV + col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-960
SELECT col2 / + col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT DISTINCT + - 5 + - col1 * - 67 FROM tab0 AS cor0
----
5757
6092
6494
query I rowsort
SELECT ALL + - col1 * col2 * col0 - cor0.col2 * col1 FROM tab1 AS cor0
----
-101088
-37050
-5616
query I rowsort
SELECT ALL - + ( col2 ) * ( col0 ) + col2 FROM tab0 AS cor0
----
-34
-7216
-759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT ALL - 25 * + col0 AS col1 FROM tab0
----
-2225
-600
-875
onlyif mysql # use DIV operator for integer division
query I rowsort label-966
SELECT - - col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-966
SELECT - - col2 / + col0 AS col1 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT - ( col2 ) * + col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT + 49 + col2 AS col2 FROM tab0 AS cor0
----
131
50
82
query I rowsort
SELECT DISTINCT ( + col1 ) * cor0.col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - cor0.col1 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - ( cor0.col1 ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + - 4 * - cor0.col1 AS col0 FROM tab0 cor0
----
344
364
388
query I rowsort
SELECT ALL - col2 * 68 FROM tab0 AS cor0
----
-2244
-5576
-68
query I rowsort
SELECT + - col1 * - 31 AS col0 FROM tab2 AS cor0
----
1829
527
961
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + cor0.col2 + + 23 AS col0 FROM tab1 cor0
----
119
77
80
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 ALL col1 * col1 col2 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-979
SELECT DISTINCT col2 * + CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-979
SELECT DISTINCT col2 * + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + col2 * col2 + - col1 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT - col1 * + col0 - ( - 64 ) FROM tab1
----
-14
-576
-976
query I rowsort
SELECT DISTINCT - ( col1 ) * col2 AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ( - col1 ) - - ( col0 ) FROM tab1
----
-23
54
67
query I rowsort
SELECT DISTINCT + - col1 * + 96 + - col1 AS col2 FROM tab2 AS cor0
----
-1649
-3007
-5723
query I rowsort
SELECT ALL 39 - + col2 * + col0 FROM tab0 cor0
----
-7259
-753
4
query I rowsort
SELECT DISTINCT + col0 + - col2 * col0 * col0 FROM tab0 AS cor0
----
-1190
-18984
-649433
query I rowsort
SELECT DISTINCT + 55 + - col0 FROM tab2 AS cor0
----
-23
-24
48
query I rowsort
SELECT ALL - - ( + col1 ) + col0 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - ( col1 ) + - col0 - col1 * - col1 FROM tab1 AS cor0
----
26
647
76
query I rowsort
SELECT + col0 + + cor0.col1 * + col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-991
SELECT DISTINCT ( - col1 ) DIV col2 FROM tab0 cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-991
SELECT DISTINCT ( - col1 ) / col2 FROM tab0 cor0
----
-1
-2
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-992
SELECT DISTINCT + 55 DIV - col0 + + col1 * col2 FROM tab0 AS cor0
----
2836
7462
96
skipif mysql # not compatible
query I rowsort label-992
SELECT DISTINCT + 55 / - col0 + + col1 * col2 FROM tab0 AS cor0
----
2836
7462
96
query I rowsort
SELECT cor0.col2 + - cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT ALL + ( + col0 ) + + col2 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT 27 - ( col1 ) AS col1 FROM tab2 AS cor0
----
-32
-4
10
query I rowsort
SELECT ALL - 31 AS col1 FROM tab1 cor0
----
-31
-31
-31
query I rowsort
SELECT + ( cor0.col2 ) + - col2 * col2 AS col1 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT DISTINCT + 49 + - 86 * col2 AS col0 FROM tab2 AS cor0
----
-2187
-2273
-3219
query I rowsort
SELECT - 28 FROM tab2, tab0 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115
query I rowsort
SELECT DISTINCT - tab0.col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + cor0.col0 * + col1 + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ( - 45 ) * col0 FROM tab2 AS cor0
----
-315
-3510
-3555
onlyif mysql # use DIV operator for integer division
query I rowsort label-1003
SELECT DISTINCT col1 DIV 18 AS col1 FROM tab2
----
0
1
3
skipif mysql # not compatible
query I rowsort label-1003
SELECT DISTINCT col1 / 18 AS col1 FROM tab2
----
0
1
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1004
SELECT col0 * - CAST( col1 * col2 AS SIGNED ) FROM tab2
----
-119652
-51034
-5859
skipif mysql # not compatible
query I rowsort label-1004
SELECT col0 * - CAST ( col1 * col2 AS INTEGER ) FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT ALL ( col1 ) * col1 + - col0 FROM tab1
----
36
673
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 42 col1 FROM tab2 AS cor0
----
42
42
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-1007
SELECT col0 DIV ( col1 ) + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-1007
SELECT col0 / ( col1 ) + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col1 + + ( 79 ) AS col2 FROM tab0 AS cor0
----
-12
-18
-7
query I rowsort
SELECT ALL + col2 + col2 + + 99 AS col1 FROM tab0 AS cor0
----
101
165
263
query I rowsort
SELECT DISTINCT col2 + + 75 * 22 FROM tab1 AS cor0
----
1704
1707
1746
query I rowsort
SELECT col0 * 86 FROM tab0 AS cor0
----
2064
3010
7654
query I rowsort
SELECT ALL - - col1 - + 9 FROM tab2 cor0
----
22
50
8
query I rowsort
SELECT ALL + col2 * + 56 + 94 FROM tab0 AS cor0
----
150
1942
4686
query I rowsort
SELECT col1 * - 31 - + col1 FROM tab2 AS cor0
----
-1888
-544
-992
query I rowsort
SELECT DISTINCT - - col0 + + 71 FROM tab0 AS cor0
----
106
160
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col0 col2 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - ( 8 ) col0 FROM tab2 AS cor0
----
56
624
632
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - ( - col2 ) col2 FROM tab1 cor0
----
0
query I rowsort
SELECT ALL - + col0 + ( + col1 ) AS col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT cor0.col1 + ( ( - col2 ) + + col2 * col0 ) FROM tab2 AS cor0
----
193
2061
2981
query I rowsort
SELECT ALL - col2 * + ( col0 + + col2 ) * - col2 AS col1 FROM tab0 AS cor0
----
1149804
36
62073
query I rowsort
SELECT ALL - 53 AS col1 FROM tab2
----
-53
-53
-53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col1 col0 FROM tab0, tab2, tab2 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1024
SELECT - col0 + + col1 DIV cor0.col2 + + col0 AS col0 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-1024
SELECT - col0 + + col1 / cor0.col2 + + col0 AS col0 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT DISTINCT + tab1.col1 * + tab1.col1 - 61 * + 54 * + col1 FROM tab1
----
-32840
-42653
-84968
query I rowsort
SELECT ALL ( + col1 + - col1 ) AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT 33 AS col2 FROM tab0
----
33
33
33
query I rowsort
SELECT + 23 + - 33 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e
query I rowsort
SELECT ALL + col0 * - 56 + 92 AS col1 FROM tab2 cor0
----
-300
-4276
-4332
query I rowsort
SELECT ALL col1 * 41 FROM tab2 AS cor0
----
1271
2419
697
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1031
SELECT - cor0.col1 * + CAST( + col1 AS SIGNED ) - + col2 FROM tab0 AS cor0
----
-7429
-8363
-9410
skipif mysql # not compatible
query I rowsort label-1031
SELECT - cor0.col1 * + CAST ( + col1 AS INTEGER ) - + col2 FROM tab0 AS cor0
----
-7429
-8363
-9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-1032
SELECT ALL cor0.col0 DIV 91 + col1 * col2 AS col1 FROM tab2 cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL cor0.col0 / 91 + col1 * col2 AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT - 90 * col2 + col2 FROM tab2
----
-2314
-2403
-3382
query I rowsort
SELECT - 0 + col1 * col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT 29 * tab0.col2 - col2 AS col2 FROM tab0
----
2296
28
924
query I rowsort
SELECT tab1.col1 + 96 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 7aea66a026ca6117f48a84e11ba23cd0
query I rowsort
SELECT ALL 50 AS col0 FROM tab2
----
50
50
50
query I rowsort
SELECT ALL + 16 + - col1 FROM tab1 AS cor0
----
-10
3
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-1039
SELECT DISTINCT 54 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT 54 / cor0.col2 AS col0 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT DISTINCT cor0.col2 * + col1 + col1 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1041
SELECT + CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1041
SELECT + CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL - + 64 * - col1 * col2 + col1 FROM tab2 cor0
----
41361
53599
98235
onlyif mysql # use DIV operator for integer division
query I rowsort label-1043
SELECT - col2 + col1 DIV tab1.col0 FROM tab1
----
-46
-57
-96
skipif mysql # not compatible
query I rowsort label-1043
SELECT - col2 + col1 / tab1.col0 FROM tab1
----
-46
-57
-96
query I rowsort
SELECT ALL + + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - - 4 * + col0 AS col1 FROM tab0 cor0
----
140
356
96
query I rowsort
SELECT + ( + col0 ) + col0 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL cor0.col2 * col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - 46 * col2 FROM tab0 cor0
----
-1518
-3772
-46
query I rowsort
SELECT DISTINCT + ( col0 ) + - cor0.col0 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - - 32 AS col0 FROM tab2 AS cor0
----
32
32
32
query I rowsort
SELECT DISTINCT - - col0 + + col2 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - cor0.col2 * - col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ALL - col2 * col2 + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-18432
-5832
-6498
query I rowsort
SELECT DISTINCT - tab0.col2 * - col1 FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 95 + + col1 + col0 * - cor0.col2 * + col0 col0 FROM tab0 AS cor0
----
-1223
-19017
-649526
query I rowsort
SELECT - 17 + + col1 * + col1 FROM tab2 AS cor0
----
272
3464
944
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col0 AS REAL ) * + col2 + - col2 * col1 AS col0 FROM tab1 AS cor0
----
-1566
-4218
-8928
query I rowsort
SELECT DISTINCT 57 FROM tab0, tab1 AS cor0
----
57
query I rowsort
SELECT ALL + + col1 * - 20 + - col0 FROM tab0 AS cor0
----
-1744
-1909
-1975
query I rowsort
SELECT ALL - col0 * - col2 AS col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT + col0 + col2 + - col0 AS col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT + + col0 - 33 AS col1 FROM tab2 AS cor0
----
-26
45
46
query I rowsort
SELECT ALL + ( + col1 ) * + col0 * col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT 7 + col2 AS col0 FROM tab2 AS cor0
----
33
34
45
query I rowsort
SELECT DISTINCT + 92 + col1 FROM tab1
----
102
105
118
query I rowsort
SELECT - col1 + - col1 + + col2 FROM tab1 AS cor0
----
2
37
70
query I rowsort
SELECT + + col0 * - col0 * col1 AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT 18 + col1 * col2 FROM tab0
----
115
2856
7480
query I rowsort
SELECT col2 * 26 FROM tab1
----
1404
1482
2496
query I rowsort
SELECT 63 * cor0.col1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 1512f97ee1242d9b56779532f209738c
query I rowsort
SELECT DISTINCT - col0 * 14 FROM tab1
----
-1120
-42
-896
query I rowsort
SELECT - 83 * + col0 AS col1 FROM tab2 AS cor0
----
-581
-6474
-6557
query I rowsort
SELECT + ( 19 ) + col0 FROM tab0
----
108
43
54
query I rowsort
SELECT DISTINCT - ( ( - col1 ) ) FROM tab2
----
17
31
59
query I rowsort
SELECT ALL cor1.col0 + 58 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to f6f3465972467e1fd5e1ead438c6261f
query I rowsort
SELECT ALL tab2.col2 * tab2.col0 * col0 AS col0 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT - 59 * col2 * col2 + col1 FROM tab2
----
-39825
-42980
-85179
onlyif mysql # use DIV operator for integer division
query I rowsort label-1080
SELECT DISTINCT + + 57 DIV + cor0.col0 + ( col1 ) * col1 AS col2 FROM tab0 AS cor0
----
7398
8281
9410
skipif mysql # not compatible
query I rowsort label-1080
SELECT DISTINCT + + 57 / + cor0.col0 + ( col1 ) * col1 AS col2 FROM tab0 AS cor0
----
7398
8281
9410
query I rowsort
SELECT ALL - - 11 + + 17 + cor0.col1 FROM tab0, tab2 cor0
----
9 values hashing to ac5728d6a67b1ee5db32d7b34c238f5a
query I rowsort
SELECT - cor0.col2 + + 9 AS col2 FROM tab2 cor0
----
-17
-18
-29
query I rowsort
SELECT - col0 + - col0 * + col1 * - col0 + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1635
41466
84368
query I rowsort
SELECT - + col1 + - 47 AS col0 FROM tab2 cor0
----
-106
-64
-78
query I rowsort
SELECT DISTINCT - + 8 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
-8
query I rowsort
SELECT col1 + 40 AS col2 FROM tab0 cor0
----
126
131
137
skipif mysql # not compatible
query I rowsort
SELECT - cor0.col0 + CAST ( - col1 + - col0 * 35 AS REAL ) FROM tab1 AS cor0
----
-134
-2314
-2893
query I rowsort
SELECT - col0 * 15 + col0 * col0 FROM tab2 AS cor0
----
-56
4914
5056
query I rowsort
SELECT + + col0 + - col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 * + ( + col0 ) + col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT - - col0 * col2 + col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT + col0 + - 55 * - col2 + tab2.col0 AS col2 FROM tab2
----
1499
1586
2248
query I rowsort
SELECT - cor0.col1 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT col1 * - col2 * + col0 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT + col2 * - 45 + + col1 * col1 - col2 AS col0 FROM tab2
----
-1459
-281
2285
query I rowsort
SELECT DISTINCT col0 * col1 + + tab2.col2 AS col0 FROM tab2
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-1097
SELECT col2 + 76 DIV + col2 FROM tab0
----
35
77
82
skipif mysql # not compatible
query I rowsort label-1097
SELECT col2 + 76 / + col2 FROM tab0
----
35
77
82
query I rowsort
SELECT - col0 + col2 * col1 AS col0 FROM tab1 AS cor0
----
1168
1401
506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + col1 col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - col1 * - col1 * col1 FROM tab1 AS cor0
----
1000
17576
2197
query I rowsort
SELECT - 60 * + cor0.col0 FROM tab1 AS cor0
----
-180
-3840
-4800
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1102
SELECT DISTINCT CAST( - col0 AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-1102
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( + 23 AS REAL ) + col1 + col1 / - col2 AS col0 FROM tab0 AS cor0
----
107
113
23
query I rowsort
SELECT ( - col2 ) AS col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT + 79 + cor0.col1 * cor0.col2 FROM tab2 cor0
----
1613
725
916
query I rowsort
SELECT DISTINCT - ( ( col1 ) ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1107
SELECT ALL + + col0 DIV - col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1107
SELECT ALL + + col0 / - col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + col0 * + col1 * 15 AS col0 FROM tab1
----
1170
15600
9600
query I rowsort
SELECT - col0 + + 62 * + col2 FROM tab0
----
2022
27
4995
query I rowsort
SELECT tab1.col2 - + col1 FROM tab1
----
28
47
83
query I rowsort
SELECT ALL - col1 - - col0 AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT - - ( - col1 ) + + col2 + col2 FROM tab2 AS cor0
----
-7
23
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1113
SELECT ALL + - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL + - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1114
SELECT DISTINCT CAST( col2 AS SIGNED ) + col0 FROM tab2 AS cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-1114
SELECT DISTINCT CAST ( col2 AS INTEGER ) + col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT 63 FROM tab1 cor0
----
63
63
63
query I rowsort
SELECT + - col1 * col2 - 83 * 68 FROM tab1 AS cor0
----
-6214
-6892
-7048
query I rowsort
SELECT col0 * col1 + - col2 AS col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT + col0 + + col0 * col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT DISTINCT ( tab2.col2 + + col2 ) AS col1 FROM tab2
----
52
54
76
query I rowsort
SELECT + - ( + col1 ) * 3 AS col2 FROM tab0 AS cor0
----
-258
-273
-291
query I rowsort
SELECT DISTINCT - - cor0.col2 + + col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT col0 * + 60 AS col2 FROM tab0 AS cor0
----
1440
2100
5340
query I rowsort
SELECT ALL + 37 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - 78 * - col1 col1 FROM tab1 cor0
----
-13182
-52728
-7800
query I rowsort
SELECT ALL - cor0.col0 + 3 AS col0 FROM tab2 AS cor0
----
-4
-75
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-1126
SELECT DISTINCT col0 DIV col0 - - ( - 94 ) * col1 FROM tab1
----
-1221
-2443
-939
skipif mysql # not compatible
query I rowsort label-1126
SELECT DISTINCT col0 / col0 - - ( - 94 ) * col1 FROM tab1
----
-1221
-2443
-939
query I rowsort
SELECT DISTINCT + 85 * + col0 FROM tab2 AS cor0
----
595
6630
6715
query I rowsort
SELECT DISTINCT ( - col0 ) + col0 * ( + col0 * - col1 + + 11 ) AS col1 FROM tab1 AS cor0
----
-204
-40320
-82400
onlyif mysql # use DIV operator for integer division
query I rowsort label-1129
SELECT DISTINCT ( + 24 ) DIV + cor0.col0 + - 78 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-70
-78
skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT ( + 24 ) / + cor0.col0 + - 78 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-70
-78
query I rowsort
SELECT DISTINCT - 3 FROM tab0, tab1, tab1 cor0
----
-3
query I rowsort
SELECT DISTINCT + + 86 * - col0 FROM tab2 AS cor0
----
-602
-6708
-6794
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 * col2 * col0 col2 FROM tab0 cor0
----
-2555
-532754
-57816
query I rowsort
SELECT + + col1 + col2 * - ( col2 ) AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
onlyif mysql # use DIV operator for integer division
query I rowsort label-1134
SELECT DISTINCT - 54 DIV - cor0.col2 AS col0 FROM tab1 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-1134
SELECT DISTINCT - 54 / - cor0.col2 AS col0 FROM tab1 cor0
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1135
SELECT - - col2 DIV col0 col2 FROM tab2 AS cor0
----
0
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1135
SELECT - - col2 / col0 col2 FROM tab2 AS cor0
----
0
0
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1136
SELECT col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1136
SELECT col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - cor0.col0 + - cor0.col1 * - col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT col2 * 52 - + col0 FROM tab2 AS cor0
----
1274
1397
1897
query I rowsort
SELECT + col1 * - 23 AS col1 FROM tab2 AS cor0
----
-1357
-391
-713
query I rowsort
SELECT - - col0 - - col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT + col2 * + ( col0 ) * - col1 AS col1 FROM tab2 cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL col2 + - col0 * 65 FROM tab1 AS cor0
----
-141
-4103
-5104
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1143
SELECT - col0 * - CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-1143
SELECT - col0 * - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + 78 + col2 * col1 AS col1 FROM tab1
----
1326
1482
648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1145
SELECT - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1145
SELECT - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + cor0.col2 + ( 65 ) AS col0 FROM tab0 AS cor0
----
147
66
98
query I rowsort
SELECT DISTINCT - 61 * - col1 + cor0.col2 AS col0 FROM tab0 cor0
----
5279
5633
5918
query I rowsort
SELECT ALL + + 7 + - col2 + - col0 AS col2 FROM tab0 AS cor0
----
-164
-29
-50
query I rowsort
SELECT ALL 22 + ( + col0 ) AS col0 FROM tab1 AS cor0
----
102
25
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-1150
SELECT ALL - + col0 * col0 DIV col1 FROM tab1 AS cor0
----
-409
-492
0
skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL - + col0 * col0 / col1 FROM tab1 AS cor0
----
-409
-492
0
query I rowsort
SELECT + col2 * - col1 + col2 + - ( 5 ) FROM tab2 cor0
----
-1513
-613
-815
query I rowsort
SELECT - col1 * col2 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1153
SELECT DISTINCT + - CAST( col2 AS SIGNED ) + + col2 + - ( col1 ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-1153
SELECT DISTINCT + - CAST ( col2 AS INTEGER ) + + col2 + - ( col1 ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-1154
SELECT DISTINCT - col2 + col0 DIV col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-1154
SELECT DISTINCT - col2 + col0 / col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + ( + 58 ) + - col2 AS col0 FROM tab1 AS cor0
----
-38
1
4
query I rowsort
SELECT + + ( + cor0.col1 ) * col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - + col2 + 26 + col0 FROM tab2 AS cor0
----
6
67
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1158
SELECT ALL + tab1.col1 + col1 * - tab1.col2 * col1 + - 60 DIV - 98 AS col0 FROM tab1
----
-16211
-36478
-5690
skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL + tab1.col1 + col1 * - tab1.col2 * col1 + - 60 / - 98 AS col0 FROM tab1
----
-16211
-36478
-5690
query I rowsort
SELECT 49 + + 46 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
onlyif mysql # use DIV operator for integer division
query I rowsort label-1160
SELECT ALL col0 DIV + col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
33
36
83
skipif mysql # not compatible
query I rowsort label-1160
SELECT ALL col0 / + col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
33
36
83
query I rowsort
SELECT 5 + - 75 AS col1 FROM tab0 AS cor0
----
-70
-70
-70
query I rowsort
SELECT ALL - 64 + col0 FROM tab1 AS cor0
----
-61
0
16
query I rowsort
SELECT - col0 * col0 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-4086
-6387
17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1164
SELECT DISTINCT + + 73 + + ( col0 * - CAST( NULL AS SIGNED ) ) - + cor0.col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1164
SELECT DISTINCT + + 73 + + ( col0 * - CAST ( NULL AS INTEGER ) ) - + cor0.col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL ( - cor0.col0 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT DISTINCT 30 * ( col1 ) + col2 AS col1 FROM tab0 AS cor0
----
2613
2812
2911
query I rowsort
SELECT + col1 * 5 AS col1 FROM tab1
----
130
50
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-1168
SELECT + col2 + + cor0.col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
54
58
96
skipif mysql # not compatible
query I rowsort label-1168
SELECT + col2 + + cor0.col0 / + col2 AS col2 FROM tab1 AS cor0
----
54
58
96
query I rowsort
SELECT - + 36 FROM tab1 AS cor0
----
-36
-36
-36
query I rowsort
SELECT 9 * + col0 AS col1 FROM tab0 AS cor0
----
216
315
801
query I rowsort
SELECT - 85 + col1 FROM tab0 AS cor0
----
1
12
6
query I rowsort
SELECT + - 78 * + col1 FROM tab0 cor0
----
-6708
-7098
-7566
query I rowsort
SELECT - + cor0.col0 + col0 * 89 FROM tab2 AS cor0
----
616
6864
6952
onlyif mysql # use DIV operator for integer division
query I rowsort label-1174
SELECT ( + col1 ) DIV col2 + + ( col1 * col0 ) FROM tab1
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-1174
SELECT ( + col1 ) / col2 + + ( col1 * col0 ) FROM tab1
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1175
SELECT ( + col1 ) * col2 + - CAST( NULL AS DECIMAL ) + - col1 / + col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1175
SELECT ( + col1 ) * col2 + - CAST ( NULL AS REAL ) + - col1 / + col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 66 FROM tab2, tab1 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT cor0.col2 - cor0.col1 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 546a494e1798cb1c65d1510d48d04dff
query I rowsort
SELECT ALL tab0.col0 + - ( + 2 ) * col1 AS col0 FROM tab0
----
-148
-159
-93
query I rowsort
SELECT DISTINCT cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
54
57
96
query I rowsort
SELECT ALL - col0 * + 91 + col2 FROM tab0
----
-2151
-3184
-8017
query I rowsort
SELECT DISTINCT tab2.col0 + - 81 * col0 AS col2 FROM tab2
----
-560
-6240
-6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-1182
SELECT DISTINCT + col1 + col2 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-1182
SELECT DISTINCT + col1 + col2 / cor0.col2 AS col1 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT ALL col0 + + ( - col2 ) FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT + 25 + col0 FROM tab1 AS cor0
----
105
28
89
query I rowsort
SELECT ALL + - cor0.col0 * 55 + + cor0.col2 * col2 FROM tab0 AS cor0
----
-1924
-231
1829
query I rowsort
SELECT ALL - - 46 + + col1 - col1 FROM tab0 AS cor0
----
46
46
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1187
SELECT + - CAST( NULL AS SIGNED ) * + col1 + + col0 * - col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1187
SELECT + - CAST ( NULL AS INTEGER ) * + col1 + + col0 * - col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col2 + - ( + col0 ) FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT cor1.col2 AS col1 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-1190
SELECT + 85 - - col2 DIV + col0 FROM tab0 AS cor0
----
85
85
86
skipif mysql # not compatible
query I rowsort label-1190
SELECT + 85 - - col2 / + col0 FROM tab0 AS cor0
----
85
85
86
query I rowsort
SELECT - + col0 * 17 FROM tab1 AS cor0
----
-1088
-1360
-51
query I rowsort
SELECT - + cor0.col1 + + 38 + 51 AS col0 FROM tab0 AS cor0
----
-2
-8
3
query I rowsort
SELECT ALL cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1194
SELECT + - cor0.col2 + - CAST( NULL AS SIGNED ) * + col0 + + cor0.col2 * + ( + col0 * col2 + col1 ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1194
SELECT + - cor0.col2 + - CAST ( NULL AS INTEGER ) * + col0 + + cor0.col2 * + ( + col0 * col2 + col1 ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * + col1 AS col0 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT - cor0.col0 + - 3 FROM tab2 AS cor0
----
-10
-81
-82
query I rowsort
SELECT ALL col1 * + 6 + - 10 FROM tab2 AS cor0
----
176
344
92
query I rowsort
SELECT col1 * col1 + col2 + + cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
3805
7945
892
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1199
SELECT - cor0.col2 * - CAST( cor0.col0 AS SIGNED ) + col0 FROM tab2 AS cor0
----
196
2106
3081
skipif mysql # not compatible
query I rowsort label-1199
SELECT - cor0.col2 * - CAST ( cor0.col0 AS INTEGER ) + col0 FROM tab2 AS cor0
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-1200
SELECT + + cor0.col0 DIV col0 + cor0.col1 AS col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-1200
SELECT + + cor0.col0 / col0 + cor0.col1 AS col1 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT DISTINCT ( cor0.col1 ) * col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT + ( 43 ) AS col2 FROM tab0 cor0
----
43
query I rowsort
SELECT + + col0 * 19 + + col1 FROM tab0 AS cor0
----
1782
542
762
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 col0 FROM tab2 cor0
----
4
query I rowsort
SELECT ALL - cor0.col0 * - col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL col0 + col0 + - col1 * - col0 FROM tab1
----
1200
768
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1207
SELECT ALL CAST( 12 AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL CAST ( 12 AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT - 58 * - 63 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 97df5824b9de7c93f94f653d37198a7e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - col0 col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT + + col2 * cor0.col2 + + 95 + - col1 FROM tab0 AS cor0
----
-1
1098
6728
onlyif mysql # use DIV operator for integer division
query I rowsort label-1211
SELECT + + cor0.col1 DIV cor0.col1 + 29 * - col2 + col1 * ( + cor0.col1 * - cor0.col2 + cor0.col2 ) FROM tab1 AS cor0
----
-17759
-36665
-6782
skipif mysql # not compatible
query I rowsort label-1211
SELECT + + cor0.col1 / cor0.col1 + 29 * - col2 + col1 * ( + cor0.col1 * - cor0.col2 + cor0.col2 ) FROM tab1 AS cor0
----
-17759
-36665
-6782
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) * + ( - 69 ) + col0 col0 FROM tab2 AS cor0
----
1870
1872
2701
query I rowsort
SELECT ALL + 64 AS col0 FROM tab1
----
64
64
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 93 col1 FROM tab0, tab2 AS cor0
----
93
query I rowsort
SELECT DISTINCT + col0 * - col0 + - cor0.col0 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT DISTINCT + - cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - + col0 * + col2 - 35 FROM tab0 AS cor0
----
-70
-7333
-827
query I rowsort
SELECT tab2.col1 * tab2.col1 * - col2 FROM tab2
----
-10982
-25947
-90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-1219
SELECT col0 DIV tab1.col1 col0 FROM tab1
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1219
SELECT col0 / tab1.col1 col0 FROM tab1
----
0
6
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-1220
SELECT ALL + 98 DIV col0 FROM tab2
----
1
1
14
skipif mysql # not compatible
query I rowsort label-1220
SELECT ALL + 98 / col0 FROM tab2
----
1
1
14
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1221
SELECT + 84 + col2 * - CAST( col2 AS SIGNED ) + + col2 AS col0 FROM tab1 AS cor0
----
-2778
-3108
-9036
skipif mysql # not compatible
query I rowsort label-1221
SELECT + 84 + col2 * - CAST ( col2 AS INTEGER ) + + col2 AS col0 FROM tab1 AS cor0
----
-2778
-3108
-9036
query I rowsort
SELECT col0 - + col2 * 31 FROM tab1
----
-1671
-1703
-2896
query I rowsort
SELECT - cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT + tab2.col2 + 46 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 12ac2c911ebc449ce7e87e03bf0fdc73
query I rowsort
SELECT + - col0 - - 20 AS col1 FROM tab1 AS cor0
----
-44
-60
17
query I rowsort
SELECT DISTINCT - col0 + ( col0 ) AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT col2 - ( + cor0.col0 ) * col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT - col0 + + tab0.col2 AS col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT ALL + col0 + 54 * + ( - tab0.col0 ) * col1 AS col2 FROM tab0
----
-111432
-183295
-437257
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + ( col0 ) * + col2 col1 FROM tab2
----
2087
220
3019
query I rowsort
SELECT - tab1.col2 - - col1 * col2 FROM tab1
----
1152
1350
513
query I rowsort
SELECT + col2 + 83 AS col2 FROM tab1
----
137
140
179
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1233
SELECT DISTINCT col2 * 84 + - col0 * col0 * - CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
109289
361140
3787
skipif mysql # not compatible
query I rowsort label-1233
SELECT DISTINCT col2 * 84 + - col0 * col0 * - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
109289
361140
3787
query I rowsort
SELECT tab1.col0 + 35 AS col2 FROM tab1
----
115
38
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col1 * 95 col0 FROM tab1
----
1007
1331
2524
onlyif mysql # use DIV operator for integer division
query I rowsort label-1236
SELECT ALL - col0 DIV - col2 + + ( col2 ) col2 FROM tab0 AS cor0
----
33
36
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1236
SELECT ALL - col0 / - col2 + + ( col2 ) col2 FROM tab0 AS cor0
----
33
36
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1237
SELECT DISTINCT + col2 + + ( col1 ) * - cor0.col2 * - CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT + col2 + + ( col1 ) * - cor0.col2 * - CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 78 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * col2 + col0 + col1 * col2 col2 FROM tab1 AS cor0
----
-3014
-6352
1245
query I rowsort
SELECT ALL col0 * + cor0.col1 + + col1 FROM tab0 AS cor0
----
2150
3492
8190
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 4805bcb9c04e49d1f6f82defa880d751
query I rowsort
SELECT DISTINCT - col2 - + 94 FROM tab0 AS cor0
----
-127
-176
-95
query I rowsort
SELECT ALL col1 * - col0 + - col1 + - col0 AS col0 FROM tab0 AS cor0
----
-2174
-3527
-8279
query I rowsort
SELECT - - cor0.col0 * 5 + + 94 + - col1 * + col0 * - col1 FROM tab1 AS cor0
----
14014
2137
6814
query I rowsort
SELECT ALL + ( - col0 ) * + col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT 53 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT DISTINCT 38 FROM tab0, tab0 AS cor0
----
38
query I rowsort
SELECT + - ( - 28 ) * col1 FROM tab2 AS cor0
----
1652
476
868
query I rowsort
SELECT 58 * - col1 FROM tab1 AS cor0
----
-1508
-580
-754
query I rowsort
SELECT DISTINCT - + col1 + col1 * ( col0 ) AS col0 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT DISTINCT col0 * + col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL 52 AS col1 FROM tab2 AS cor0
----
52
52
52
query I rowsort
SELECT - - cor0.col0 + col1 * 71 FROM tab2 AS cor0
----
1286
2208
4267
query I rowsort
SELECT DISTINCT cor0.col0 * - col1 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT 59 AS col1 FROM tab1
----
59
59
59
query I rowsort
SELECT + 73 AS col2 FROM tab0
----
73
73
73
query I rowsort
SELECT DISTINCT 33 FROM tab2 AS cor0
----
33
query I rowsort
SELECT ALL - cor0.col0 * + cor0.col0 * col1 + - cor0.col2 FROM tab2 AS cor0
----
-106135
-1546
-358982
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col2 col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL + 96 FROM tab1, tab0 cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT col2 * + 17 * tab0.col1 + col0 AS col0 FROM tab0
----
126943
1684
48270
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 * + ( 14 * col2 ) col1 FROM tab1
----
17472
19656
7980
query I rowsort
SELECT ALL + col1 * + ( + 73 ) * + tab0.col1 AS col1 FROM tab0
----
539908
604513
686857
query I rowsort
SELECT col2 + + col2 * col0 AS col1 FROM tab0
----
36
7380
825
query I rowsort
SELECT + 62 FROM tab1, tab1 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) AS col2 FROM tab1, tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - + col2 + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT col0 * col0 + + 12 AS col1 FROM tab1 AS cor0
----
21
4108
6412
query I rowsort
SELECT ALL - + col2 + col2 - - col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + - col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1271
SELECT CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1271
SELECT CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 * - 7 * col0 AS col1 FROM tab2 AS cor0
----
1519
32214
9401
query I rowsort
SELECT DISTINCT - + ( - col2 ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - - col1 * 17 AS col0 FROM tab2 cor0
----
1003
289
527
query I rowsort
SELECT DISTINCT + col0 * - 57 + + col2 AS col0 FROM tab2 AS cor0
----
-372
-4420
-4465
query I rowsort
SELECT DISTINCT - col1 * - col2 + - col1 * col0 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-3298
-65274
-656656
query I rowsort
SELECT - 10 + - col0 * - col0 AS col0 FROM tab2 AS cor0
----
39
6074
6231
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1278
SELECT ALL + CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - col1 - ( - 26 ) col1 FROM tab2 AS cor0
----
-1317
-191
-4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 + col0 col2 FROM tab1 AS cor0
----
145
161
84
query I rowsort
SELECT DISTINCT + 79 FROM tab0 AS cor0
----
79
query I rowsort
SELECT DISTINCT - cor0.col1 + + cor0.col0 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-1283
SELECT - tab0.col2 DIV col0 + ( - col0 ) + col2 * col1 AS col0 FROM tab0
----
2813
62
7373
skipif mysql # not compatible
query I rowsort label-1283
SELECT - tab0.col2 / col0 + ( - col0 ) + col2 * col1 AS col0 FROM tab0
----
2813
62
7373
query I rowsort
SELECT col2 - col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL + - 70 FROM tab1 AS cor0
----
-70
-70
-70
query I rowsort
SELECT + 85 - + cor0.col0 FROM tab1 AS cor0
----
21
5
82
query I rowsort
SELECT ALL + col1 + col1 * 24 AS col1 FROM tab0 AS cor0
----
2150
2275
2425
query I rowsort
SELECT ALL + 53 * - col2 FROM tab1 AS cor0
----
-2862
-3021
-5088
query I rowsort
SELECT - - col0 + col0 AS col0 FROM tab0 cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-1290
SELECT ALL col0 DIV + col2 col2 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1290
SELECT ALL col0 / + col2 col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT ALL - col1 * - col0 * col1 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT + col1 - cor0.col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL ( - col1 ) * col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + cor0.col0 + - col2 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT + col2 * col2 * + col2 + + col2 FROM tab1 AS cor0
----
157518
185250
884832
onlyif mysql # use DIV operator for integer division
query I rowsort label-1296
SELECT ALL - ( col1 ) DIV 18 FROM tab0 AS cor0
----
-4
-5
-5
skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL - ( col1 ) / 18 FROM tab0 AS cor0
----
-4
-5
-5
query I rowsort
SELECT + cor0.col0 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - ( col1 ) * 71 AS col0 FROM tab1 AS cor0
----
-1846
-710
-923
query I rowsort
SELECT DISTINCT 75 FROM tab1 AS cor0
----
75
query I rowsort
SELECT ALL + - col0 + + 88 AS col1 FROM tab1 cor0
----
24
8
85
query I rowsort
SELECT 49 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197
query I rowsort
SELECT + - col2 + col2 * col2 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT DISTINCT + tab0.col2 AS col0 FROM tab0, tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT tab0.col0 AS col2 FROM tab0, tab2 cor0, tab2 cor1
----
24
35
89
query I rowsort
SELECT + col1 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1306
SELECT DISTINCT + col2 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1306
SELECT DISTINCT + col2 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - col1 + - col2 * - col2 + col0 * + 80 * - col2 AS col2 FROM tab1 AS cor0
----
-10070
-288601
-605197
onlyif mysql # use DIV operator for integer division
query I rowsort label-1308
SELECT - col0 * + 68 + + col0 DIV col0 + 7 * + col1 FROM tab0 cor0
----
-1029
-1700
-5414
skipif mysql # not compatible
query I rowsort label-1308
SELECT - col0 * + 68 + + col0 / col0 + 7 * + col1 FROM tab0 cor0
----
-1029
-1700
-5414
query I rowsort
SELECT DISTINCT + col2 + col0 * + col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT - - col0 * 33 + + col0 + - col0 FROM tab1 AS cor0
----
2112
2640
99
query I rowsort
SELECT - - col1 * + col1 * col0 + col2 + - col1 FROM tab0 AS cor0
----
177451
329219
737000
query I rowsort
SELECT col0 * 45 + + col2 AS col1 FROM tab1 AS cor0
----
189
2937
3696
onlyif mysql # use DIV operator for integer division
query I rowsort label-1313
SELECT - 2 DIV + col1 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1313
SELECT - 2 / + col1 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL col0 + col0 + col0 FROM tab0
----
105
267
72
query I rowsort
SELECT DISTINCT tab1.col0 + - col1 * + 70 FROM tab1
----
-1817
-636
-830
query I rowsort
SELECT ALL - col0 + tab1.col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT + + col2 * col2 + col2 + col2 * + 9 FROM tab2 AS cor0
----
1824
936
999
query I rowsort
SELECT cor0.col2 + + cor0.col2 * - 77 AS col1 FROM tab0 cor0
----
-2508
-6232
-76
query I rowsort
SELECT + - col2 + - cor0.col0 * col2 + - col0 FROM tab0 cor0
----
-71
-7469
-849
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col0 FROM tab2, tab0 cor0
----
36
query I rowsort
SELECT 7 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT DISTINCT + - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-3
-64
-80
query I rowsort
SELECT - col0 * tab2.col1 AS col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - col1 * - 95 AS col2 FROM tab0
----
8170
8645
9215
query I rowsort
SELECT ALL + 80 + col2 * ( col1 ) AS col0 FROM tab0
----
177
2918
7542
onlyif mysql # use DIV operator for integer division
query I rowsort label-1326
SELECT + col1 + col0 + - col1 DIV - 46 AS col1 FROM tab2
----
138
38
96
skipif mysql # not compatible
query I rowsort label-1326
SELECT + col1 + col0 + - col1 / - 46 AS col1 FROM tab2
----
138
38
96
query I rowsort
SELECT 74 AS col0 FROM tab1
----
74
74
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-1328
SELECT + 7 DIV col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1328
SELECT + 7 / col1 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 21 * + cor0.col0 col1 FROM tab2 AS cor0
----
-147
-1638
-1659
query I rowsort
SELECT ALL col0 * col0 + col1 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-912
2603
5952
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + col2 col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT ALL + col0 + - col2 * + col1 FROM tab2 AS cor0
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-1333
SELECT - 1 DIV - cor0.col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1333
SELECT - 1 / - cor0.col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 93 FROM tab2, tab0 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT 63 + col1 + + tab0.col0 * + col1 AS col1 FROM tab0
----
2213
3555
8253
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1336
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - col0 - tab1.col1 AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1336
SELECT DISTINCT + CAST ( NULL AS REAL ) + - col0 - tab1.col1 AS col2 FROM tab1
----
NULL
query I rowsort
SELECT + cor1.col2 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL + tab1.col1 FROM tab1, tab2 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT - - 13 + 4 FROM tab0 AS cor0
----
17
17
17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1340
SELECT + CAST( NULL AS SIGNED ) - - col0 * + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1340
SELECT + CAST ( NULL AS INTEGER ) - - col0 * + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * - 20 + cor0.col0 AS col2 FROM tab1 AS cor0
----
1344
1680
63
query I rowsort
SELECT + ( - col0 ) * - cor0.col1 * + 42 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
142589
340076
86655
query I rowsort
SELECT 19 * col2 * + col0 FROM tab2 cor0
----
3591
38532
57038
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1344
SELECT CAST( + col0 AS SIGNED ) * col2 + CAST( col0 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
-1272
-3360
-801
skipif mysql # not compatible
query I rowsort label-1344
SELECT CAST ( + col0 AS INTEGER ) * col2 + CAST ( col0 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
-1272
-3360
-801
onlyif mysql # use DIV operator for integer division
query I rowsort label-1345
SELECT - col1 - col1 DIV col0 FROM tab0 AS cor0
----
-89
-92
-99
skipif mysql # not compatible
query I rowsort label-1345
SELECT - col1 - col1 / col0 FROM tab0 AS cor0
----
-89
-92
-99
query I rowsort
SELECT + + col1 + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT col1 * - cor0.col0 + 94 AS col1 FROM tab2 AS cor0
----
-123
-1249
-4508
query I rowsort
SELECT ALL + - col2 * col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + col0 + + col1 * - col1 FROM tab2 AS cor0
----
-210
-3403
-954
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 6 + - col1 * col1 col1 FROM tab1 cor0
----
-106
-175
-682
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT DISTINCT 58 * 71 AS col0 FROM tab0, tab0 cor0
----
4118
query I rowsort
SELECT ALL 60 + + tab1.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 4795521d3b453f5e361af4dccb226f29
query I rowsort
SELECT ALL tab0.col1 * + 10 FROM tab0
----
860
910
970
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1355
SELECT + col2 * + CAST( NULL AS SIGNED ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1355
SELECT + col2 * + CAST ( NULL AS INTEGER ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT + col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - ( col0 ) + - col0 col1 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT + col2 + - col2 * + 80 FROM tab0 AS cor0
----
-2607
-6478
-79
query I rowsort
SELECT + 80 + - col2 * - col0 AS col2 FROM tab2 AS cor0
----
2108
269
3082
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1361
SELECT DISTINCT CAST( col0 AS SIGNED ) + + col1 * col2 + + col2 * col2 FROM tab1 AS cor0
----
10544
3883
4323
skipif mysql # not compatible
query I rowsort label-1361
SELECT DISTINCT CAST ( col0 AS INTEGER ) + + col1 * col2 + + col2 * col2 FROM tab1 AS cor0
----
10544
3883
4323
query I rowsort
SELECT - col0 + ( + col1 ) * 66 FROM tab2 cor0
----
1043
2039
3816
query I rowsort
SELECT ALL + 63 * col2 * - col1 FROM tab1 AS cor0
----
-35910
-78624
-88452
query I rowsort
SELECT col0 * col2 + col1 - col0 FROM tab1 AS cor0
----
185
3594
7613
query I rowsort
SELECT ALL col0 * - 86 FROM tab1
----
-258
-5504
-6880
query I rowsort
SELECT ALL - 52 + ( col2 ) * ( cor0.col1 ) * col0 FROM tab0 AS cor0
----
3343
664066
68060
query I rowsort
SELECT ALL 90 * + col0 FROM tab2 AS cor0
----
630
7020
7110
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1368
SELECT ALL - col1 * - 2 * col0 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL - col1 * - 2 * col0 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( col1 ) * + col1 + col1 FROM tab0 cor0
----
-7310
-8190
-9312
query I rowsort
SELECT + 73 FROM tab0 cor0
----
73
73
73
query I rowsort
SELECT 87 AS col2 FROM tab0 AS cor0
----
87
87
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-1372
SELECT ALL - col1 DIV - col1 AS col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1372
SELECT ALL - col1 / - col1 AS col1 FROM tab1
----
1
1
1
query I rowsort
SELECT - 36 + col0 AS col0 FROM tab2 cor0
----
-29
42
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-1374
SELECT DISTINCT - + CAST( + col0 AS SIGNED ) DIV - col0 + 35 FROM tab1 AS cor0
----
36
skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT - + CAST ( + col0 AS INTEGER ) / - col0 + 35 FROM tab1 AS cor0
----
36
query I rowsort
SELECT DISTINCT - 95 * - col0 - - cor0.col1 FROM tab1 AS cor0
----
311
6090
7613
query I rowsort
SELECT + 93 AS col2 FROM tab0 AS cor0
----
93
93
93
query I rowsort
SELECT - 1 + 24 AS col0 FROM tab2
----
23
23
23
query I rowsort
SELECT 7 * cor0.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to eb8e4907382073cf46d4e4e322830309
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT - col1 * + col0 + col1 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1014
-26
-620
query I rowsort
SELECT ALL ( + col2 ) + + 34 AS col0 FROM tab0 AS cor0
----
116
35
67
query I rowsort
SELECT col1 * - col1 - - 98 AS col0 FROM tab1 AS cor0
----
-2
-578
-71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 45 col0 FROM tab0 AS cor0
----
-45
query I rowsort
SELECT 40 * - ( + col1 ) FROM tab1
----
-1040
-400
-520
query I rowsort
SELECT DISTINCT 53 - col0 AS col0 FROM tab0
----
-36
18
29
query I rowsort
SELECT ALL + cor1.col1 FROM tab1, tab1 cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL - + 49 FROM tab0 AS cor0
----
-49
-49
-49
query I rowsort
SELECT ALL + ( col1 + col1 ) AS col2 FROM tab1
----
20
26
52
query I rowsort
SELECT DISTINCT 9 FROM tab2
----
9
query I rowsort
SELECT 46 FROM tab1, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT DISTINCT - tab0.col2 * + col2 AS col1 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT ALL - col2 - ( + col0 ) AS col1 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT - col0 + 75 AS col0 FROM tab0 AS cor0
----
-14
40
51
query I rowsort
SELECT ALL col2 * + col2 * - 35 + + col2 * 5 AS col1 FROM tab0 cor0
----
-234930
-30
-37950
query I rowsort
SELECT ALL + - col0 * cor0.col0 + - col1 AS col2 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT - - col2 * ( col1 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - 86 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1398
SELECT 89 - tab2.col2 * - CAST( col1 AS SIGNED ) FROM tab2
----
1623
735
926
skipif mysql # not compatible
query I rowsort label-1398
SELECT 89 - tab2.col2 * - CAST ( col1 AS INTEGER ) FROM tab2
----
1623
735
926
query I rowsort
SELECT DISTINCT col2 * + col2 + col0 FROM tab1
----
2919
3313
9296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 * col1 col2 FROM tab0
----
8514
9009
9603
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1401
SELECT DISTINCT + tab2.col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0, tab1 AS cor0, tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1401
SELECT DISTINCT + tab2.col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0, tab1 AS cor0, tab1
----
NULL
query I rowsort
SELECT DISTINCT - 3 + tab0.col0 * col0 * - col2 AS col1 FROM tab0
----
-1228
-19011
-649525
query I rowsort
SELECT - - cor0.col1 + col0 * cor0.col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
119711
51051
5890
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 9af67d6f98010464af5d560bf949d487
query I rowsort
SELECT DISTINCT + col2 + cor0.col1 * col0 FROM tab1 cor0
----
1136
132
697
query I rowsort
SELECT ALL col0 * + 13 + col0 * cor0.col0 FROM tab2 AS cor0
----
140
7098
7268
query I rowsort
SELECT col1 + col0 AS col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + - col1 * cor0.col1 + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT - + col2 * 27 FROM tab2 AS cor0
----
-1026
-702
-729
query I rowsort
SELECT ALL col0 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - col1 + col1 + col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1412
SELECT DISTINCT col1 + col2 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1412
SELECT DISTINCT col1 + col2 * + CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL
query I rowsort
SELECT + cor0.col2 + col2 + + col0 AS col2 FROM tab1 AS cor0
----
111
178
272
query I rowsort
SELECT + - col1 * - col0 + col1 + col2 FROM tab0 AS cor0
----
2183
3493
8272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - cor0.col2 ) col1 FROM tab2, tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - col1 - + col0 * + col0 AS col2 FROM tab1
----
-35
-4106
-6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-1417
SELECT DISTINCT col1 DIV - tab1.col1 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-1417
SELECT DISTINCT col1 / - tab1.col1 FROM tab1
----
-1
query I rowsort
SELECT col0 + - col2 * + ( + 71 * - col1 ) AS col0 FROM tab2
----
108992
45945
59434
query I rowsort
SELECT col2 + - col1 + col0 FROM tab0 AS cor0
----
-29
-61
80
query I rowsort
SELECT 23 + + 73 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
query I rowsort
SELECT - 67 FROM tab1, tab1 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f
query I rowsort
SELECT ALL - + cor0.col0 * + col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - ( col2 ) + col2 * col1 col1 FROM tab0 AS cor0
----
14186
3927
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-1424
SELECT - col1 + cor0.col2 DIV col0 AS col1 FROM tab1 cor0
----
-10
-12
-8
skipif mysql # not compatible
query I rowsort label-1424
SELECT - col1 + cor0.col2 / col0 AS col1 FROM tab1 cor0
----
-10
-12
-8
query I rowsort
SELECT DISTINCT col2 + + 32 * - cor0.col2 FROM tab0 AS cor0
----
-1023
-2542
-31
query I rowsort
SELECT ALL + - col1 + col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1427
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - 93 * col2 * - col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1427
SELECT DISTINCT + CAST ( NULL AS REAL ) - 93 * col2 * - col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - + cor0.col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT DISTINCT - + col2 * - col0 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-1430
SELECT + col2 * + 5 - - cor0.col0 DIV + 34 FROM tab0 AS cor0
----
165
412
6
skipif mysql # not compatible
query I rowsort label-1430
SELECT + col2 * + 5 - - cor0.col0 / + 34 FROM tab0 AS cor0
----
165
412
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 col1 FROM tab1 cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1432
SELECT ALL - cor0.col0 + + 22 * cor0.col1 * + col2 + col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
164074
2098
62411
skipif mysql # not compatible
query I rowsort label-1432
SELECT ALL - cor0.col0 + + 22 * cor0.col1 * + col2 + col1 / - col1 AS col0 FROM tab0 AS cor0
----
164074
2098
62411
query I rowsort
SELECT ALL col1 * cor0.col1 + cor0.col2 * 83 + + cor0.col0 FROM tab1 AS cor0
----
4895
5161
8217
query I rowsort
SELECT - col1 + 66 * col2 FROM tab0 AS cor0
----
-31
2092
5321
onlyif mysql # use DIV operator for integer division
query I rowsort label-1435
SELECT DISTINCT + col2 * col2 - + col0 DIV col1 AS col0 FROM tab1 AS cor0
----
2916
3243
9210
skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT + col2 * col2 - + col0 / col1 AS col0 FROM tab1 AS cor0
----
2916
3243
9210
query I rowsort
SELECT ALL + 26 * col1 FROM tab1 cor0
----
260
338
676
query I rowsort
SELECT - + ( 10 ) * + col2 + col0 FROM tab1 AS cor0
----
-506
-537
-880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 - col1 * col2 col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT - 28 + + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1371
-245
-4630
onlyif mysql # use DIV operator for integer division
query I rowsort label-1440
SELECT DISTINCT - - 36 - ( col2 ) DIV + 64 AS col2 FROM tab0 cor0
----
35
36
skipif mysql # not compatible
query I rowsort label-1440
SELECT DISTINCT - - 36 - ( col2 ) / + 64 AS col2 FROM tab0 cor0
----
35
36
query I rowsort
SELECT DISTINCT - col2 * + col0 AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + col0 * ( + col0 * tab2.col0 ) FROM tab2
----
343
474552
493039
query I rowsort
SELECT ALL + 47 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT col1 + - col0 * + col2 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL col0 * + cor0.col0 + + col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1447
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 63 * col2 + - col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1447
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 63 * col2 + - col2 FROM tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1448
SELECT + CAST( NULL AS DECIMAL ) * + col0 * - col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1448
SELECT + CAST ( NULL AS REAL ) * + col0 * - col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 * + col2 + col1 AS col0 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT 7 * + col1 FROM tab2 AS cor0
----
119
217
413
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1451
SELECT DISTINCT - col2 / - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1451
SELECT DISTINCT - col2 / - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1452
SELECT + col0 DIV col2 AS col2 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1452
SELECT + col0 / col2 AS col2 FROM tab1 cor0
----
0
0
1
query I rowsort
SELECT ALL col0 * 88 * col1 FROM tab1 AS cor0
----
56320
6864
91520
query I rowsort
SELECT ALL + col0 * + 72 FROM tab0 AS cor0
----
1728
2520
6408
query I rowsort
SELECT - col2 * col0 * + col1 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT col2 * 73 AS col1 FROM tab0 AS cor0
----
2409
5986
73
query I rowsort
SELECT + col2 + col0 + ( col1 ) FROM tab2 AS cor0
----
134
163
65
query IIIIII rowsort
SELECT * FROM tab2, tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
query I rowsort
SELECT + 63 AS col1 FROM tab2 AS cor0
----
63
63
63
query I rowsort
SELECT ALL + 87 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT DISTINCT + col2 * ( + 10 + + col0 ) AS col1 FROM tab2
----
2288
3382
459
query I rowsort
SELECT col1 + tab0.col2 * col1 FROM tab0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-1463
SELECT DISTINCT col0 DIV - 11 FROM tab0
----
-2
-3
-8
skipif mysql # not compatible
query I rowsort label-1463
SELECT DISTINCT col0 / - 11 FROM tab0
----
-2
-3
-8
query I rowsort
SELECT - 12 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0
query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1466
SELECT DISTINCT + col2 * - CAST( col2 AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8748
skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT + col2 * - CAST ( col2 AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-1467
SELECT DISTINCT + col0 DIV + col0 FROM tab2 cor0
----
1
skipif mysql # not compatible
query I rowsort label-1467
SELECT DISTINCT + col0 / + col0 FROM tab2 cor0
----
1
query I rowsort
SELECT ALL col2 + col1 * - col1 FROM tab0 cor0
----
-7363
-8199
-9408
query I rowsort
SELECT - 50 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to faf91d5263c18db4877a3c30c47e2487
query I rowsort
SELECT ALL + 96 AS col0 FROM tab1
----
96
96
96
query I rowsort
SELECT col2 + - col1 * 76 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-215655
-567030
-7371
query I rowsort
SELECT ALL col2 * 36 FROM tab1 AS cor0
----
1944
2052
3456
query I rowsort
SELECT cor0.col0 + col1 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-1474
SELECT col1 DIV + 59 + col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-1474
SELECT col1 / + 59 + col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT cor0.col1 * col0 - 68 * + col2 AS col0 FROM tab2 AS cor0
----
-1241
-1619
2834
query I rowsort
SELECT + + col1 * cor0.col0 + col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT + 66 * + ( col1 + + 25 ) AS col2 FROM tab1
----
2310
2508
3366
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
3645 values hashing to 677ef6b86493a7e48d2f6a3cfd7eea4c
query I rowsort
SELECT DISTINCT + col0 + + col1 * - tab2.col1 + 36 FROM tab2
----
-174
-3367
-918
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0 CROSS JOIN tab2, tab1, tab1 AS cor1
----
3645 values hashing to 6156c969b7e054b8a333fdb86aee82f2
query I rowsort
SELECT - - col2 * - col2 * col2 AS col2 FROM tab0 AS cor0
----
-1
-35937
-551368
query I rowsort
SELECT 31 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
query I rowsort
SELECT ALL + + 86 AS col0 FROM tab1 AS cor0
----
86
86
86
query I rowsort
SELECT 50 AS col2 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80
query I rowsort
SELECT + col1 + - col1 * col1 * col2 FROM tab0
----
-243982
-678951
-9312
query I rowsort
SELECT DISTINCT - 88 + + col0 * col2 FROM tab0 AS cor0
----
-53
704
7210
query I rowsort
SELECT + + col0 * col1 * cor0.col0 + + col0 * col0 + ( col1 ) * col2 AS col1 FROM tab2 AS cor0
----
112984
2405
366574
query I rowsort
SELECT - + 91 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-169
-170
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-1489
SELECT ALL - col2 + col0 DIV col2 AS col1 FROM tab0 AS cor0
----
-33
-81
34
skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL - col2 + col0 / col2 AS col1 FROM tab0 AS cor0
----
-33
-81
34
query I rowsort
SELECT DISTINCT - - col0 + + col2 - - cor0.col2 AS col2 FROM tab1 AS cor0
----
111
178
272
query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab0 cor0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1492
SELECT - - cor0.col2 * - col0 + + CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1492
SELECT - - cor0.col2 * - col0 + + CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 + + col0 * CAST ( - col1 AS REAL ) AS col0 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT + col1 * col2 * - col1 + - col1 FROM tab0 cor0
----
-244154
-679133
-9506
query I rowsort
SELECT ALL ( col2 ) FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL + + 87 AS col2 FROM tab0 AS cor0
----
87
87
87
query I rowsort
SELECT - col2 + + col0 + + ( + ( + col0 ) ) FROM tab2 AS cor0
----
-13
120
130
query I rowsort
SELECT DISTINCT col1 + - col1 * + col0 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT + - 28 * col0 FROM tab0 AS cor0
----
-2492
-672
-980
onlyif mysql # use DIV operator for integer division
query I rowsort label-1500
SELECT ALL col2 DIV + cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL col2 / + cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT ALL ( col1 ) * + col0 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-1502
SELECT DISTINCT + cor0.col1 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-1502
SELECT DISTINCT + cor0.col1 / cor0.col0 AS col2 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT DISTINCT + 20 AS col1 FROM tab1, tab1 AS cor0
----
20
skipif mysql # not compatible
query I rowsort
SELECT ALL cor0.col0 * CAST ( col1 AS REAL ) FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col0 col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - + col2 + - ( 99 ) FROM tab1 cor0
----
-153
-156
-195
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - ( 84 ) + cor0.col0 col2 FROM tab0 AS cor0
----
119
2796
6977
query I rowsort
SELECT - + col2 * cor0.col0 * 34 FROM tab2 AS cor0
----
-102068
-6426
-68952
query I rowsort
SELECT DISTINCT + 76 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1510
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
query I rowsort
SELECT DISTINCT 81 * - col2 + - col1 FROM tab1 AS cor0
----
-4400
-4627
-7789
onlyif mysql # use DIV operator for integer division
query I rowsort label-1512
SELECT DISTINCT + - 64 + 18 DIV + col1 AS col1 FROM tab2 AS cor0
----
-63
-64
skipif mysql # not compatible
query I rowsort label-1512
SELECT DISTINCT + - 64 + 18 / + col1 AS col1 FROM tab2 AS cor0
----
-63
-64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + col0 col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + - ( cor0.col1 ) + col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + + cor0.col0 * - cor0.col2 + col0 + ( cor0.col2 * - col0 ) FROM tab2 AS cor0
----
-371
-3978
-5925
query I rowsort
SELECT ALL 65 * + col0 AS col2 FROM tab2 AS cor0
----
455
5070
5135
query I rowsort
SELECT - 19 + - col0 AS col1 FROM tab2 AS cor0
----
-26
-97
-98
query I rowsort
SELECT - ( 26 ) AS col0 FROM tab2 AS cor0
----
-26
-26
-26
query I rowsort
SELECT ALL - ( + 99 ) + - cor0.col0 * col2 FROM tab2 cor0
----
-2127
-288
-3101
query I rowsort
SELECT + 32 * - ( col0 ) AS col1 FROM tab1
----
-2048
-2560
-96
query I rowsort
SELECT col2 + col0 * + 99 FROM tab2 AS cor0
----
720
7748
7859
query I rowsort
SELECT ALL + - 78 * col0 + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-14404
-2827
-4710
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1523
SELECT - col1 * - col1 + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
7363
8199
9408
skipif mysql # not compatible
query I rowsort label-1523
SELECT - col1 * - col1 + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT DISTINCT - + 37 + col1 AS col2 FROM tab0 AS cor0
----
49
54
60
query I rowsort
SELECT DISTINCT 63 FROM tab0 cor0
----
63
query I rowsort
SELECT 91 + - cor0.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to fd28a601d73bf6c4499821824b89a6c0
query I rowsort
SELECT + col2 * + col0 * + col1 + + ( - col2 ) FROM tab1
----
36423
4158
99744
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1528
SELECT DISTINCT ( tab1.col2 ) * col1 + CAST( NULL AS SIGNED ) + - col1 * tab1.col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1528
SELECT DISTINCT ( tab1.col2 ) * col1 + CAST ( NULL AS INTEGER ) + - col1 * tab1.col2 FROM tab1
----
NULL
query I rowsort
SELECT ALL 42 * + col1 + col0 AS col2 FROM tab2
----
1309
2556
793
query I rowsort
SELECT DISTINCT col0 + - ( col2 ) + col0 AS col1 FROM tab1
----
-48
64
71
query I rowsort
SELECT ( - 37 ) AS col1 FROM tab2
----
-37
-37
-37
query I rowsort
SELECT + col0 + - col0 - col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL + 34 FROM tab2 AS cor0
----
34
34
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1534
SELECT ALL + + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL + + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - + 73 * ( col0 ) + col0 AS col2 FROM tab1 AS cor0
----
-216
-4608
-5760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 - - cor0.col1 * ( col0 ) col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 61 + + col0 FROM tab2 AS cor0
----
-54
17
18
query I rowsort
SELECT - 68 - - 59 FROM tab1 AS cor0
----
-9
-9
-9
query I rowsort
SELECT cor0.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT + col1 + - 91 * col1 * + 14 AS col2 FROM tab1 AS cor0
----
-12730
-16549
-33098
query I rowsort
SELECT DISTINCT + - 50 * + col2 FROM tab2 AS cor0
----
-1300
-1350
-1900
query I rowsort
SELECT ALL + 60 FROM tab1, tab1 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query I rowsort
SELECT + ( col2 ) * + col0 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT DISTINCT 3 FROM tab0, tab1 cor0
----
3
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1, tab2 cor1
----
243 values hashing to ea21cea53be47edd19229592e3d26141
query I rowsort
SELECT + ( + ( cor0.col2 ) ) * + 35 AS col2 FROM tab1 AS cor0
----
1890
1995
3360
onlyif mysql # use DIV operator for integer division
query I rowsort label-1547
SELECT 10 DIV - col0 + - tab1.col0 FROM tab1
----
-6
-64
-80
skipif mysql # not compatible
query I rowsort label-1547
SELECT 10 / - col0 + - tab1.col0 FROM tab1
----
-6
-64
-80
query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab2, tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL - 82 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to ce62f59690969f4492d78eb57c3181f0
query I rowsort
SELECT - ( - col0 ) * col1 + tab2.col1 AS col1 FROM tab2
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-1551
SELECT DISTINCT + col0 + col1 DIV col0 + ( + 16 + col0 ) FROM tab0
----
195
67
88
skipif mysql # not compatible
query I rowsort label-1551
SELECT DISTINCT + col0 + col1 / col0 + ( + 16 + col0 ) FROM tab0
----
195
67
88
query I rowsort
SELECT - 48 * col1 FROM tab0 AS cor0
----
-4128
-4368
-4656
query I rowsort
SELECT - col1 * col0 * col0 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT 31 * cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 2c3ed7addfeaba76ba47d1fb342a0dbb
query I rowsort
SELECT 90 * + col2 FROM tab1
----
4860
5130
8640
query I rowsort
SELECT DISTINCT + col0 + - col2 AS col2 FROM tab1
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1557
SELECT ALL - col0 * - col0 + col1 * CAST( - col0 * + col0 AS SIGNED ) AS col1 FROM tab0
----
-117600
-48960
-712890
skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL - col0 * - col0 + col1 * CAST ( - col0 * + col0 AS INTEGER ) AS col1 FROM tab0
----
-117600
-48960
-712890
query I rowsort
SELECT DISTINCT tab1.col0 + 21 * tab1.col2 FROM tab1
----
1137
1261
2096
query I rowsort
SELECT 0 * - col1 FROM tab2
----
0
0
0
query I rowsort
SELECT ( tab1.col1 ) AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL + 55 + + 17 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
query I rowsort
SELECT - col1 * + 56 + col0 FROM tab0 AS cor0
----
-4792
-5007
-5397
query I rowsort
SELECT - 96 * + col2 * col2 - 85 AS col2 FROM tab0
----
-104629
-181
-645589
query I rowsort
SELECT 0 + tab0.col2 * 95 AS col1 FROM tab0
----
3135
7790
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-1565
SELECT ALL - - col0 DIV col0 + - col2 FROM tab2 AS cor0
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL - - col0 / col0 + - col2 FROM tab2 AS cor0
----
-25
-26
-37
query I rowsort
SELECT + cor0.col0 + + ( - col0 ) FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1567
SELECT ALL + col0 + - 61 DIV col2 + - col2 * ( col1 + - col1 ) AS col2 FROM tab1 AS cor0
----
2
63
80
skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL + col0 + - 61 / col2 + - col2 * ( col1 + - col1 ) AS col2 FROM tab1 AS cor0
----
2
63
80
query I rowsort
SELECT + col2 + col0 * + tab1.col2 FROM tab1
----
216
3705
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query IIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0, tab0 cor1
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * 39 * 31 col1 FROM tab2 cor0
----
31434
32643
45942
query I rowsort
SELECT DISTINCT - - col0 * - col1 + - ( + col1 ) + + col0 AS col0 FROM tab0 AS cor0
----
-2126
-3457
-8101
query I rowsort
SELECT ALL + col1 + + col1 AS col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT + col0 + + ( col1 * - col0 + col1 ) AS col1 FROM tab1 AS cor0
----
-49
-566
-947
query I rowsort
SELECT ALL + + col2 * ( - col2 ) - + col0 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT ( + ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col1 col0 FROM tab1
----
10
13
26
query I rowsort
SELECT - col0 * col0 * - col1 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT - ( - tab2.col2 * + tab2.col0 ) FROM tab2, tab0 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + cor0.col0 + ( + col0 * - col1 ) - ( col2 + + col1 ) FROM tab0 cor0
----
-2159
-3458
-8183
query I rowsort
SELECT DISTINCT 70 AS col2 FROM tab0, tab0 AS cor0
----
70
query I rowsort
SELECT 86 FROM tab2, tab1 cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( cor0.col1 ) col1 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1584
SELECT - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1584
SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1585
SELECT + CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-1585
SELECT + CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - col2 * - col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + 1 AS col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + 31 * 42 AS col0 FROM tab0 cor0
----
1302
1302
1302
query I rowsort
SELECT DISTINCT + col0 * + tab1.col2 * 26 FROM tab1
----
199680
4212
94848
query I rowsort
SELECT - 17 - col2 AS col2 FROM tab1 AS cor0
----
-113
-71
-74
query I rowsort
SELECT 5 * col0 + 21 FROM tab2 AS cor0
----
411
416
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-1592
SELECT - col1 DIV cor0.col2 + CAST( col1 AS SIGNED ) DIV - col2 AS col2 FROM tab0 AS cor0
----
-194
-2
-4
skipif mysql # not compatible
query I rowsort label-1592
SELECT - col1 / cor0.col2 + CAST ( col1 AS INTEGER ) / - col2 AS col2 FROM tab0 AS cor0
----
-194
-2
-4
query I rowsort
SELECT ALL ( col1 ) + - 81 FROM tab2 AS cor0
----
-22
-50
-64
query I rowsort
SELECT DISTINCT - 42 AS col2 FROM tab2 AS cor0
----
-42
query I rowsort
SELECT + col1 + - col1 + cor0.col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL - cor0.col1 + col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - col0 * col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT 81 * col2 FROM tab2 AS cor0
----
2106
2187
3078
query I rowsort
SELECT + 61 * + col0 + col2 FROM tab2 AS cor0
----
454
4784
4857
query I rowsort
SELECT - 96 AS col2 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798
query I rowsort
SELECT 93 * cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1f8f6090116a8ad86d2dd0b7c3651663
query I rowsort
SELECT + col1 + - col1 * + col1 * col1 AS col2 FROM tab1 AS cor0
----
-17550
-2184
-990
query I rowsort
SELECT DISTINCT + + cor0.col0 + - col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT col2 + + col1 * - col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT DISTINCT + - cor0.col2 * - col1 * col1 FROM tab1 cor0
----
16224
36504
5700
query I rowsort
SELECT DISTINCT + col0 + - col1 AS col1 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT + cor0.col0 + col2 * col0 * cor0.col2 FROM tab1 AS cor0
----
208000
737360
8751
query I rowsort
SELECT ALL col2 * + tab2.col1 FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1609
SELECT DISTINCT - col1 * col2 + col2 DIV cor0.col0 + col2 * col2 AS col0 FROM tab2 cor0
----
-105
-858
798
skipif mysql # not compatible
query I rowsort label-1609
SELECT DISTINCT - col1 * col2 + col2 / cor0.col0 + col2 * col2 AS col0 FROM tab2 cor0
----
-105
-858
798
query I rowsort
SELECT ALL - - col0 + col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - col2 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT + + col2 + + cor0.col2 * - col1 AS col0 FROM tab0 cor0
----
-2805
-7380
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 + + col2 col1 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN ( col1 ) AND ( NULL ) OR - col1 < ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1614
SELECT ALL - col2 DIV + col0 AS col2 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1614
SELECT ALL - col2 / + col0 AS col2 FROM tab0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1615
SELECT DISTINCT tab0.col0 DIV - col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-1615
SELECT DISTINCT tab0.col0 / - col1 FROM tab0
----
0
query I rowsort
SELECT col1 + col0 * col0 AS col2 FROM tab1 AS cor0
----
35
4106
6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 col1 FROM tab2 cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * cor0.col2 - col2 col2 FROM tab2 AS cor0
----
-2054
-216
-3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col0 + cor0.col2 col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT - 72 AS col2 FROM tab2
----
-72
query I rowsort
SELECT 38 * + col2 FROM tab2
----
1026
1444
988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col2 * col0 col1 FROM tab0
----
-7209
-768
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1623
SELECT col2 DIV + col0 - - col1 * - col0 * + tab0.col2 AS col2 FROM tab0
----
-3395
-664118
-68111
skipif mysql # not compatible
query I rowsort label-1623
SELECT col2 / + col0 - - col1 * - col0 * + tab0.col2 AS col2 FROM tab0
----
-3395
-664118
-68111
onlyif mysql # use DIV operator for integer division
query I rowsort label-1624
SELECT DISTINCT + col2 * + col2 + - tab2.col2 * col1 DIV col0 AS col0 FROM tab2
----
1436
610
657
skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT + col2 * + col2 + - tab2.col2 * col1 / col0 AS col0 FROM tab2
----
1436
610
657
query I rowsort
SELECT ALL col2 + col2 * + col2 * col1 FROM tab1
----
119904
32547
75870
onlyif mysql # use DIV operator for integer division
query I rowsort label-1626
SELECT + + col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-1626
SELECT + + col0 / + col1 AS col2 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT DISTINCT tab0.col2 + - col0 + + tab0.col0 * - col2 AS col2 FROM tab0
----
-69
-7305
-783
query III rowsort
SELECT * FROM tab1 WHERE col2 + col0 <= ( NULL )
----
query I rowsort
SELECT ALL col2 + col2 - + col0 FROM tab1
----
105
112
50
query I rowsort
SELECT ALL + col2 * col1 AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - col0 * - col2 AS col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - col2 * - tab0.col2 + col2 - col0 FROM tab0
----
-33
1098
6717
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + col1 NOT IN ( col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT col1 * + tab0.col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT + col0 * + col2 * col1 AS col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT ALL tab2.col0 * - col2 * col1 FROM tab2
----
-119652
-51034
-5859
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col2 + + col1
----
query I rowsort
SELECT DISTINCT col2 * - tab1.col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE col0 <> - col2
----
17
31
59
query I rowsort
SELECT + col2 + + col2 AS col1 FROM tab1
----
108
114
192
query I rowsort
SELECT - col0 * col0 + + col2 FROM tab1
----
-4039
-6304
45
query I rowsort
SELECT col2 * + col1 * col2 AS col0 FROM tab0
----
611884
93654
97
query I rowsort
SELECT col0 * col2 + col1 AS col2 FROM tab0
----
132
7389
878
query I rowsort
SELECT ALL - col0 - col1 * + col1 AS col1 FROM tab1
----
-164
-249
-679
query I rowsort
SELECT + + ( col1 ) + + col2 AS col1 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-1646
SELECT DISTINCT - col1 + + cor0.col0 DIV col0 FROM tab2 AS cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-1646
SELECT DISTINCT - col1 + + cor0.col0 / col0 FROM tab2 AS cor0
----
-16
-30
-58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1647
SELECT ALL ( col0 ) * CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL ( col0 ) * CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - col1 * cor0.col0 - + 16 * col1 AS col2 FROM tab1 AS cor0
----
-1248
-494
-800
onlyif mysql # use DIV operator for integer division
query I rowsort label-1649
SELECT DISTINCT col0 - col1 DIV col1 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT col0 - col1 / col1 FROM tab0 AS cor0
----
23
34
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + - cor0.col0 * + col1 col2 FROM tab0 AS cor0
----
-14823
-3153
-3396
query I rowsort
SELECT 63 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0
query I rowsort
SELECT ALL - ( col0 ) * ( col0 ) * col2 FROM tab0 cor0
----
-1225
-19008
-649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 20 col0 FROM tab0 cor0
----
20
20
20
query I rowsort
SELECT ALL 4 FROM tab1 AS cor0
----
4
4
4
query I rowsort
SELECT DISTINCT + 11 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
11
query I rowsort
SELECT DISTINCT + col0 + col1 * - 64 AS col0 FROM tab0 cor0
----
-5480
-5735
-6173
query I rowsort
SELECT ALL + col0 + - col1 + - col1 * + col1 FROM tab1
----
-102
-46
-699
query I rowsort
SELECT col1 * col1 * - tab2.col1 AS col0 FROM tab2
----
-205379
-29791
-4913
onlyif mysql # use DIV operator for integer division
query I rowsort label-1659
SELECT DISTINCT col1 DIV + col0 AS col2 FROM tab1
----
0
8
skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT col1 / + col0 AS col2 FROM tab1
----
0
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-1660
SELECT DISTINCT col0 DIV col1 AS col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-1660
SELECT DISTINCT col0 / col1 AS col1 FROM tab0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1661
SELECT ALL tab2.col2 DIV col0 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL tab2.col2 / col0 FROM tab2
----
0
0
3
query I rowsort
SELECT ALL col2 FROM tab1 WHERE col0 - col2 >= ( NULL )
----
query I rowsort
SELECT - tab0.col1 + col0 + col2 AS col1 FROM tab0
----
-29
-61
80
query I rowsort
SELECT col1 * col2 * col2 AS col1 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT ALL + col0 * cor0.col1 * - col1 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT cor0.col0 FROM tab0 AS cor0 WHERE NULL IN ( cor0.col1 )
----
query I rowsort
SELECT ALL + col1 * - col0 * col1 AS col1 FROM tab2 cor0
----
-22831
-271518
-6727
query I rowsort
SELECT tab1.col2 + - col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT col1 - - col0 FROM tab1 WHERE ( col2 ) IN ( col1 + - tab1.col0 * col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 col0 FROM tab0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1671
SELECT DISTINCT + tab0.col1 DIV col0 AS col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-1671
SELECT DISTINCT + tab0.col1 / col0 AS col0 FROM tab0
----
1
2
3
query I rowsort
SELECT col0 FROM tab0 WHERE NOT col1 - + col1 > + col0 * col1 + col1
----
24
35
89
query I rowsort
SELECT ALL col1 FROM tab1 WHERE + col2 - - col2 >= - col0 * + col1 + col1 * + tab1.col0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1674
SELECT - col2 DIV col2 AS col1 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1674
SELECT - col2 / col2 AS col1 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NULL IN ( col0 - + col0 * col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1676
SELECT ALL + col0 DIV col2 AS col2 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL + col0 / col2 AS col2 FROM tab1
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1677
SELECT tab1.col2 * - col2 - - col0 DIV col1 FROM tab1
----
-2916
-3243
-9210
skipif mysql # not compatible
query I rowsort label-1677
SELECT tab1.col2 * - col2 - - col0 / col1 FROM tab1
----
-2916
-3243
-9210
query I rowsort
SELECT DISTINCT - + 80 AS col2 FROM tab0 AS cor0
----
-80
query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - + 24 + col1 FROM tab2 cor0
----
-7
35
7
query I rowsort
SELECT ALL col2 + + col1 * col0 FROM tab1 cor0
----
1136
132
697
query I rowsort
SELECT ALL 90 FROM tab1 AS cor0
----
90
90
90
query I rowsort
SELECT ALL + col1 + - col0 * - 89 FROM tab2 AS cor0
----
654
7001
7048
query I rowsort
SELECT ALL - 74 AS col1 FROM tab1
----
-74
-74
-74
query I rowsort
SELECT - col2 + col2 * + 10 FROM tab1 AS cor0
----
486
513
864
query I rowsort
SELECT ALL - 92 + 65 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
query I rowsort
SELECT + col2 * - col2 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL - - 23 * - col2 FROM tab2 cor0
----
-598
-621
-874
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * col2 * col0 col1 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT + - 93 FROM tab1 AS cor0
----
-93
-93
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-1692
SELECT DISTINCT + col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT + col0 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to 617c9545df26d6d983e3967864e8e9e4
query I rowsort
SELECT col1 * 27 + + col0 * - ( col0 ) FROM tab0 AS cor0
----
-5464
1394
1746
query I rowsort
SELECT + cor0.col0 + col1 * - col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT ( col0 ) * col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT col0 * 33 * col0 AS col2 FROM tab0
----
19008
261393
40425
onlyif mysql # use DIV operator for integer division
query I rowsort label-1699
SELECT + + ( - col2 ) * 38 DIV + col1 FROM tab0 cor0
----
-14
-34
0
skipif mysql # not compatible
query I rowsort label-1699
SELECT + + ( - col2 ) * 38 / + col1 FROM tab0 cor0
----
-14
-34
0
query I rowsort
SELECT + + 87 * + col1 AS col0 FROM tab2 AS cor0
----
1479
2697
5133
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 + col0 col1 FROM tab0 cor0
----
-13
-2
52
query I rowsort
SELECT - 86 + - cor0.col0 * - cor0.col2 FROM tab0 AS cor0
----
-51
706
7212
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 + + col2 col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1704
SELECT ALL - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1705
SELECT cor0.col1 + + col0 DIV ( col2 ) FROM tab0 cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-1705
SELECT cor0.col1 + + col0 / ( col2 ) FROM tab0 cor0
----
132
86
92
query I rowsort
SELECT ALL 81 AS col0 FROM tab0
----
81
81
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + col2 col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + col1 + col1 * col0 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-1709
SELECT ALL + - cor0.col1 + - 86 DIV + col0 col2 FROM tab0 AS cor0
----
-89
-91
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1709
SELECT ALL + - cor0.col1 + - 86 / + col0 col2 FROM tab0 AS cor0
----
-89
-91
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-1710
SELECT ALL col0 DIV - col2 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL col0 / - col2 FROM tab0
----
-1
-35
0
query I rowsort
SELECT 55 + - col2 FROM tab2
----
17
28
29
query I rowsort
SELECT DISTINCT - tab1.col2 AS col0 FROM tab2, tab0, tab2 AS cor0, tab1
----
-54
-57
-96
query I rowsort
SELECT + col2 + - cor0.col1 * col2 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1714
SELECT col1 DIV + 58 col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1714
SELECT col1 / + 58 col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 + + tab0.col0 FROM tab0
----
-9
34
7
query I rowsort
SELECT - 15 + + 38 + col1 * 7 FROM tab2 AS cor0
----
142
240
436
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 + + col0 col1 FROM tab0 AS cor0
----
253
37
90
query I rowsort
SELECT + tab2.col0 * 22 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to a3d05ac03ebcc5262a670a5402f27a36
query I rowsort
SELECT col0 * + 92 FROM tab2
----
644
7176
7268
query I rowsort
SELECT 39 * - col2 FROM tab2
----
-1014
-1053
-1482
query I rowsort
SELECT + - col0 * + 89 + + col2 * - 67 FROM tab2 AS cor0
----
-2432
-8684
-9577
onlyif mysql # use DIV operator for integer division
query I rowsort label-1722
SELECT + + ( + col0 ) * - col1 + + ( col2 ) DIV + col0 AS col0 FROM tab2 cor0
----
-1343
-214
-4602
skipif mysql # not compatible
query I rowsort label-1722
SELECT + + ( + col0 ) * - col1 + + ( col2 ) / + col0 AS col0 FROM tab2 cor0
----
-1343
-214
-4602
query I rowsort
SELECT + - 41 + col2 FROM tab1 AS cor0
----
13
16
55
query I rowsort
SELECT - - col1 * - 27 * cor0.col0 + - 77 AS col2 FROM tab1 cor0
----
-17357
-2183
-28157
query I rowsort
SELECT + ( - tab2.col0 ) * - col0 * + 66 FROM tab2
----
3234
401544
411906
query I rowsort
SELECT + col2 + 27 FROM tab0 AS cor0
----
109
28
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1727
SELECT CAST( NULL AS DECIMAL ) + 72 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1727
SELECT CAST ( NULL AS REAL ) + 72 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * 7 + + 88 AS col0 FROM tab1
----
466
487
760
query I rowsort
SELECT col1 + - 1 AS col2 FROM tab1
----
12
25
9
query I rowsort
SELECT - col1 * 53 - + col2 AS col2 FROM tab1
----
-1432
-587
-785
query I rowsort
SELECT DISTINCT - col1 + col1 AS col1 FROM tab2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL 22 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
onlyif mysql # use DIV operator for integer division
query I rowsort label-1734
SELECT ALL - - cor0.col2 - + col1 DIV 45 FROM tab0 AS cor0
----
-1
32
80
skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL - - cor0.col2 - + col1 / 45 FROM tab0 AS cor0
----
-1
32
80
query I rowsort
SELECT + + col2 + 6 FROM tab1 AS cor0
----
102
60
63
query I rowsort
SELECT ALL + + ( - cor0.col1 ) + cor0.col1 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( + col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - col1 * 88 + col1 AS col1 FROM tab0 AS cor0
----
-7482
-7917
-8439
query I rowsort
SELECT - ( - 41 ) FROM tab1 AS cor0
----
41
41
41
query I rowsort
SELECT DISTINCT + + ( - col2 ) * col2 + 5 - 38 AS col2 FROM tab2 AS cor0
----
-1477
-709
-762
query I rowsort
SELECT DISTINCT + + 89 AS col2 FROM tab2 AS cor0
----
89
query I rowsort
SELECT DISTINCT - ( 97 ) * col1 - ( 32 ) AS col0 FROM tab1 AS cor0
----
-1002
-1293
-2554
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1743
SELECT + + CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1743
SELECT + + CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col2 * - col1 + - col1 AS col2 FROM tab2 cor0
----
-1593
-663
-868
query I rowsort
SELECT ALL + 5 * + cor0.col0 + - col2 + cor0.col0 * + 21 FROM tab1 AS cor0
----
1607
1984
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1746
SELECT + CAST( - col0 AS SIGNED ) col1 FROM tab0 cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1746
SELECT + CAST ( - col0 AS INTEGER ) col1 FROM tab0 cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) + col1 * 52 col0 FROM tab0 AS cor0
----
4505
4814
5045
query I rowsort
SELECT ALL col0 - + 77 * col1 AS col0 FROM tab2 cor0
----
-1230
-2380
-4465
query I rowsort
SELECT - col1 * ( col0 ) FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL + col0 * - col2 AS col1 FROM tab2
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1751
SELECT DISTINCT - - CAST( - col1 AS SIGNED ) + - col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62
skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT - - CAST ( - col1 AS INTEGER ) + - col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + ( + col1 ) ) + + col1 * - col0 col2 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT DISTINCT 30 * - col0 FROM tab1 cor0
----
-1920
-2400
-90
query I rowsort
SELECT ALL + + cor0.col2 * col0 * cor0.col0 FROM tab1 cor0
----
233472
486
614400
query I rowsort
SELECT - 19 - + col1 * ( col2 ) FROM tab1 AS cor0
----
-1267
-1423
-589
query I rowsort
SELECT - 50 + - col1 * col2 AS col1 FROM tab1 AS cor0
----
-1298
-1454
-620
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1758
SELECT ALL + 33 * col0 DIV ( col1 ) + + cor0.col1 + ( - 69 ) FROM tab0 cor0
----
26
39
54
skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL + 33 * col0 / ( col1 ) + + cor0.col1 + ( - 69 ) FROM tab0 cor0
----
26
39
54
query I rowsort
SELECT DISTINCT + 19 * 56 AS col0 FROM tab0
----
1064
onlyif mysql # use DIV operator for integer division
query I rowsort label-1760
SELECT col0 * col0 + + col0 DIV - col1 AS col2 FROM tab1 AS cor0
----
4090
6394
9
skipif mysql # not compatible
query I rowsort label-1760
SELECT col0 * col0 + + col0 / - col1 AS col2 FROM tab1 AS cor0
----
4090
6394
9
query I rowsort
SELECT DISTINCT col0 * + col1 AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT - - 66 * + col0 + + ( + col0 ) FROM tab2 AS cor0
----
469
5226
5293
query I rowsort
SELECT ALL 49 * col2 + - col0 * col2 AS col2 FROM tab1 AS cor0
----
-2976
-855
2484
query I rowsort
SELECT cor0.col1 + - 74 * + cor0.col1 FROM tab0 AS cor0
----
-6278
-6643
-7081
query I rowsort
SELECT ALL + col0 * col0 - 57 FROM tab0 AS cor0
----
1168
519
7864
query I rowsort
SELECT ALL + cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT - 93 + tab2.col0 AS col1 FROM tab2
----
-14
-15
-86
query I rowsort
SELECT + col1 + col0 - 47 AS col1 FROM tab1
----
-18
27
46
query I rowsort
SELECT ALL - tab1.col2 FROM tab1, tab2 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT DISTINCT cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
1
33
82
query I rowsort
SELECT DISTINCT - col1 + - 72 * - col1 FROM tab1 AS cor0
----
1846
710
923
query I rowsort
SELECT DISTINCT + col2 * ( col0 ) * + col1 + - 16 AS col1 FROM tab2 AS cor0
----
119636
51018
5843
query I rowsort
SELECT col2 - - 73 AS col2 FROM tab0 AS cor0
----
106
155
74
query I rowsort
SELECT ALL + + col2 * - col2 AS col2 FROM tab2 cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-1775
SELECT col2 DIV - 59 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1775
SELECT col2 / - 59 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT col2 + col2 * - col0 * - col0 FROM tab2 AS cor0
----
1350
158210
237196
onlyif mysql # use DIV operator for integer division
query I rowsort label-1777
SELECT DISTINCT - cor0.col0 * + col0 + col2 DIV col0 col2 FROM tab0 AS cor0
----
-1225
-575
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1777
SELECT DISTINCT - cor0.col0 * + col0 + col2 / col0 col2 FROM tab0 AS cor0
----
-1225
-575
-7921
query I rowsort
SELECT + - col1 - ( col1 * - col2 ) FROM tab0 AS cor0
----
0
2752
7371
onlyif mysql # use DIV operator for integer division
query I rowsort label-1779
SELECT DISTINCT - col2 DIV col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-1779
SELECT DISTINCT - col2 / col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT ALL + - col1 * col1 * col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT + col0 + + ( + col0 ) AS col1 FROM tab2 AS cor0
----
14
156
158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1782
SELECT col0 + CAST( - col1 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
-148
-159
-93
skipif mysql # not compatible
query I rowsort label-1782
SELECT col0 + CAST ( - col1 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
-148
-159
-93
query I rowsort
SELECT + - col2 * 29 * - col0 FROM tab2 AS cor0
----
5481
58812
87058
onlyif mysql # use DIV operator for integer division
query I rowsort label-1784
SELECT ( - col1 ) DIV ( col0 ) + + col0 - col0 FROM tab2
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-1784
SELECT ( - col1 ) / ( col0 ) + + col0 - col0 FROM tab2
----
-4
0
0
query I rowsort
SELECT DISTINCT + 36 - - col1 FROM tab0
----
122
127
133
query I rowsort
SELECT ALL col1 * + tab1.col0 - + col2 FROM tab1
----
24
583
944
query I rowsort
SELECT ALL - col2 + 5 AS col0 FROM tab0
----
-28
-77
4
query I rowsort
SELECT DISTINCT col0 + + col0 * col0 FROM tab1
----
12
4160
6480
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL col2 + + ( + col2 + col1 ) * col1 AS col1 FROM tab0
----
10267
15825
9507
query I rowsort
SELECT ALL + + cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + - col1 + - 44 AS col2 FROM tab2 cor0
----
-103
-61
-75
query I rowsort
SELECT - + col1 * + ( col1 ) - + col1 * - 83 AS col0 FROM tab2 AS cor0
----
1122
1416
1612
query I rowsort
SELECT + col2 + - ( col0 ) + col0 AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL 42 * - cor0.col2 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 1b5c65be4eb3a857f9dc00223508cc62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1796
SELECT CAST( col1 AS SIGNED ) AS col0 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-1796
SELECT CAST ( col1 AS INTEGER ) AS col0 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1797
SELECT ALL + 7 DIV cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to e30b1feec13aa0bbbc46a0526de3ebe0
skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL + 7 / cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to e30b1feec13aa0bbbc46a0526de3ebe0
query I rowsort
SELECT DISTINCT - + 79 AS col1 FROM tab1 AS cor0
----
-79
query I rowsort
SELECT ALL + 9 + - col0 * - ( - ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-40
-6075
-6232
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 col0 FROM tab2
----
-76
-76
-76
query I rowsort
SELECT + - col1 * col1 FROM tab1 cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 col1 FROM tab1, tab1 cor0, tab0 cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f
query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT ALL + + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - 41 FROM tab1 AS cor0
----
-41
-41
-41
onlyif mysql # use DIV operator for integer division
query I rowsort label-1806
SELECT DISTINCT + - col0 * col0 + - col1 DIV + ( col1 + + cor0.col2 ) FROM tab2 AS cor0
----
-49
-6084
-6241
skipif mysql # not compatible
query I rowsort label-1806
SELECT DISTINCT + - col0 * col0 + - col1 / + ( col1 + + cor0.col2 ) FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - - col0 * - col0 + col2 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT + + cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT + 38 * - cor0.col0 FROM tab0 cor0
----
-1330
-3382
-912
query I rowsort
SELECT - 78 + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1612
-724
-915
query I rowsort
SELECT 85 * col0 AS col0 FROM tab1 AS cor0
----
255
5440
6800
query I rowsort
SELECT + - 80 * col2 AS col0 FROM tab1 AS cor0
----
-4320
-4560
-7680
query I rowsort
SELECT ALL + 65 * col1 FROM tab2
----
1105
2015
3835
query I rowsort
SELECT DISTINCT - 98 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-98
query I rowsort
SELECT cor1.col0 FROM tab2, tab1, tab1 cor0, tab2 AS cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT - ( col2 ) + col2 + + col0 * col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT ALL + - col2 * cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL 9 * + cor0.col1 + + col2 FROM tab0 AS cor0
----
807
874
901
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1819
SELECT ALL + 49 * + col2 - - CAST( NULL AS SIGNED ) / - col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL + 49 * + col2 - - CAST ( NULL AS INTEGER ) / - col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 88 * + col2 + ( - col1 ) FROM tab1 AS cor0
----
4726
5006
8435
query I rowsort
SELECT DISTINCT - - cor0.col2 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - + col0 + - col0 * col0 AS col0 FROM tab0 cor0
----
-1260
-600
-8010
query I rowsort
SELECT - - col0 + + ( - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL + col2 + 51 FROM tab2 AS cor0
----
77
78
89
query I rowsort
SELECT - col1 * 82 FROM tab1 AS cor0
----
-1066
-2132
-820
query I rowsort
SELECT DISTINCT col2 + - ( - col0 ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT col1 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1828
SELECT DISTINCT + cor0.col0 + - ( - 32 ) * col1 * + CAST( - 2 + - col0 AS SIGNED ) FROM tab1 AS cor0
----
-21056
-34032
-4157
skipif mysql # not compatible
query I rowsort label-1828
SELECT DISTINCT + cor0.col0 + - ( - 32 ) * col1 * + CAST ( - 2 + - col0 AS INTEGER ) FROM tab1 AS cor0
----
-21056
-34032
-4157
query I rowsort
SELECT DISTINCT + col1 - + 6 FROM tab0 AS cor0
----
80
85
91
query I rowsort
SELECT DISTINCT col2 * + ( col1 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL col1 * col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + col2 * cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL + tab1.col0 * + col2 + col2 * col2 AS col1 FROM tab1
----
16896
3078
6897
onlyif mysql # use DIV operator for integer division
query I rowsort label-1834
SELECT col0 DIV - col1 AS col2 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-1834
SELECT col0 / - col1 AS col2 FROM tab1
----
-6
-6
0
query I rowsort
SELECT + col2 * - col0 + + ( + col0 ) FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT col1 * 28 FROM tab0 cor0
----
2408
2548
2716
query I rowsort
SELECT DISTINCT + + 18 AS col1 FROM tab1, tab0 AS cor0
----
18
query I rowsort
SELECT col0 - ( + col0 ) * col1 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-1839
SELECT col0 + col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-1839
SELECT col0 + col0 / - col1 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - col2 * ( + 10 ) FROM tab0
----
-10
-330
-820
query I rowsort
SELECT + col2 - + col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1842
SELECT - col1 + - CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-137
-38
-96
skipif mysql # not compatible
query I rowsort label-1842
SELECT - col1 + - CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT - 87 * + col1 * + col0 + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-179592
-295400
-704702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1844
SELECT - CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-1844
SELECT - CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - col0 + col0 AS col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT ( 39 ) FROM tab0 AS cor0
----
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-1847
SELECT - - col1 DIV - col1 + col0 * - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-1344
-218
-4603
skipif mysql # not compatible
query I rowsort label-1847
SELECT - - col1 / - col1 + col0 * - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-1344
-218
-4603
query I rowsort
SELECT DISTINCT 59 AS col1 FROM tab0 AS cor0
----
59
query I rowsort
SELECT - col1 + - 56 AS col0 FROM tab1 cor0
----
-66
-69
-82
query I rowsort
SELECT - ( 83 ) * col2 AS col0 FROM tab0 AS cor0
----
-2739
-6806
-83
query I rowsort
SELECT - 33 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1852
SELECT DISTINCT + CAST( + 75 AS SIGNED ) * + tab1.col1 FROM tab1, tab1 AS cor0
----
1950
750
975
skipif mysql # not compatible
query I rowsort label-1852
SELECT DISTINCT + CAST ( + 75 AS INTEGER ) * + tab1.col1 FROM tab1, tab1 AS cor0
----
1950
750
975
query I rowsort
SELECT ALL + col1 * - col1 AS col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT 87 * + cor0.col2 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to d4b10b061c552fb03bd97a44401b3b33
onlyif mysql # use DIV operator for integer division
query I rowsort label-1855
SELECT - cor0.col1 + + col1 DIV 23 FROM tab2 AS cor0
----
-17
-30
-57
skipif mysql # not compatible
query I rowsort label-1855
SELECT - cor0.col1 + + col1 / 23 FROM tab2 AS cor0
----
-17
-30
-57
query I rowsort
SELECT - 68 * - cor0.col1 FROM tab1 AS cor0
----
1768
680
884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 col2 FROM tab1 AS cor0
----
91
91
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-1858
SELECT - col0 DIV col1 FROM tab1 cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-1858
SELECT - col0 / col1 FROM tab1 cor0
----
-6
-6
0
query I rowsort
SELECT ALL col0 * 96 AS col2 FROM tab2
----
672
7488
7584
query I rowsort
SELECT DISTINCT 76 * col2 FROM tab0
----
2508
6232
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-1861
SELECT ALL ( 54 ) DIV col0 FROM tab1
----
0
0
18
skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL ( 54 ) / col0 FROM tab1
----
0
0
18
query I rowsort
SELECT ALL - 46 FROM tab2
----
-46
-46
-46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 + - col1 * 2 col0 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT + 5 FROM tab2
----
5
5
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 * col0 - - col1 col1 FROM tab2
----
311
3177
3179
query I rowsort
SELECT ALL col1 * + 19 - col2 AS col1 FROM tab1
----
133
151
440
query I rowsort
SELECT DISTINCT - col0 + + col2 + - col0 AS col2 FROM tab1 AS cor0
----
-64
-71
48
query I rowsort
SELECT - 90 AS col2 FROM tab1
----
-90
-90
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1869
SELECT ALL - CAST( + col1 AS SIGNED ) - + tab1.col2 * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL - CAST ( + col1 AS INTEGER ) - + tab1.col2 * - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 98 * + 49 - + col1 * col1 AS col2 FROM tab1
----
-4902
-4971
-5478
query I rowsort
SELECT - ( + col2 * col1 + - 56 * - col1 ) FROM tab1
----
-1130
-1976
-2860
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 - col0 col0 FROM tab2
----
182
1950
2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-1873
SELECT - 68 DIV col1 + ( ( - cor0.col2 ) ) FROM tab1 AS cor0
----
-101
-56
-63
skipif mysql # not compatible
query I rowsort label-1873
SELECT - 68 / col1 + ( ( - cor0.col2 ) ) FROM tab1 AS cor0
----
-101
-56
-63
query I rowsort
SELECT ALL + col2 - col1 * cor0.col0 * col0 AS col0 FROM tab2 AS cor0
----
-106059
-1492
-358930
query I rowsort
SELECT + - col2 + + col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL - col2 * col2 + - 8 FROM tab1 AS cor0
----
-2924
-3257
-9224
query I rowsort
SELECT - col0 - col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT DISTINCT col0 + - col2 - - 95 AS col0 FROM tab2 AS cor0
----
136
147
75
query I rowsort
SELECT + 87 + + col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
249
3735
7767
query I rowsort
SELECT ALL + + 36 + col2 AS col0 FROM tab0 cor0
----
118
37
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1881
SELECT - ( cor0.col1 ) + CAST( col2 + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-1881
SELECT - ( cor0.col1 ) + CAST ( col2 + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + - ( cor0.col0 ) * col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT + + ( col1 ) * cor0.col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-1884
SELECT DISTINCT + col0 DIV col0 - - ( + col0 ) AS col1 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT + col0 / col0 - - ( + col0 ) AS col1 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT DISTINCT + ( col0 ) * - 74 AS col0 FROM tab1 cor0
----
-222
-4736
-5920
query I rowsort
SELECT 76 FROM tab1, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT + col0 + + 38 * col2 FROM tab0 AS cor0
----
1278
3205
73
query I rowsort
SELECT - col2 * + col2 + col1 AS col1 FROM tab1
----
-2890
-3239
-9203
query I rowsort
SELECT DISTINCT - col2 - ( col0 ) FROM tab0 cor0
----
-171
-36
-57
query I rowsort
SELECT ALL col0 * - 15 * 76 FROM tab0 AS cor0
----
-101460
-27360
-39900
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 + - col0 col2 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT - col1 * - 84 FROM tab1 AS cor0
----
1092
2184
840
query I rowsort
SELECT col0 + + ( + col1 ) AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + col0 + col2 * - 85 FROM tab1 AS cor0
----
-4587
-4781
-8080
query I rowsort
SELECT + col1 + col1 * + col1 AS col2 FROM tab2 AS cor0
----
306
3540
992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1896
SELECT DISTINCT - CAST( - 80 AS SIGNED ) * - col1 + ( cor0.col2 ) FROM tab1 AS cor0
----
-2026
-743
-944
skipif mysql # not compatible
query I rowsort label-1896
SELECT DISTINCT - CAST ( - 80 AS INTEGER ) * - col1 + ( cor0.col2 ) FROM tab1 AS cor0
----
-2026
-743
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-1897
SELECT ALL CAST( col0 AS SIGNED ) + col2 DIV + col1 - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL CAST ( col0 AS INTEGER ) + col2 / + col1 - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT ALL + ( + col0 ) * + col0 * col2 AS col0 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT + col1 * + col2 - col1 * + 93 FROM tab2 AS cor0
----
-2046
-3953
-935
query I rowsort
SELECT 2 AS col0 FROM tab1 AS cor0
----
2
2
2
query I rowsort
SELECT DISTINCT - 37 + 28 + col2 FROM tab0 AS cor0
----
-8
24
73
query I rowsort
SELECT ALL 85 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
query I rowsort
SELECT + - 30 AS col1 FROM tab1 AS cor0
----
-30
-30
-30
onlyif mysql # use DIV operator for integer division
query I rowsort label-1905
SELECT col2 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1905
SELECT col2 / cor0.col0 AS col1 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT + 43 * - col2 AS col1 FROM tab2 AS cor0
----
-1118
-1161
-1634
query I rowsort
SELECT DISTINCT - 45 * col0 FROM tab0 AS cor0
----
-1080
-1575
-4005
query I rowsort
SELECT - - 93 + + 4 * cor0.col2 FROM tab2 AS cor0
----
197
201
245
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 5 * + col2 col2 FROM tab2 AS cor0
----
-142
-208
-269
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1910
SELECT - CAST( NULL AS SIGNED ) * - col0 * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1910
SELECT - CAST ( NULL AS INTEGER ) * - col0 * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - 99 + col0 * col2 FROM tab0 AS cor0
----
134
7397
891
onlyif mysql # use DIV operator for integer division
query I rowsort label-1912
SELECT DISTINCT 74 DIV 9 AS col1 FROM tab2 AS cor0
----
8
skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT 74 / 9 AS col1 FROM tab2 AS cor0
----
8
query I rowsort
SELECT DISTINCT + + col0 * - col0 + + col1 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT - 46 * - col1 AS col0 FROM tab0 AS cor0
----
3956
4186
4462
query I rowsort
SELECT - + 14 + col2 * + col0 AS col0 FROM tab2 AS cor0
----
175
2014
2988
query I rowsort
SELECT DISTINCT + col1 * - ( tab0.col1 + - col0 ) * 9 FROM tab0
----
-1638
-47988
-54126
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1917
SELECT ALL + CAST( + col0 AS SIGNED ) + cor0.col0 AS col0 FROM tab2 cor0
----
14
156
158
skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL + CAST ( + col0 AS INTEGER ) + cor0.col0 AS col0 FROM tab2 cor0
----
14
156
158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1918
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1918
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + - col0 + - col0 * col2 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT + col2 - - cor0.col0 FROM tab0 cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 + col1 * ( - 96 + cor0.col2 ) col2 FROM tab0 AS cor0
----
-1183
-5332
-9118
query I rowsort
SELECT ALL + - cor0.col0 * - col0 - 88 AS col0 FROM tab0 cor0
----
1137
488
7833
query I rowsort
SELECT DISTINCT col0 - - col1 * - ( col0 * col1 + col0 * cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-113280
-42816
-6237
query I rowsort
SELECT + - col1 * col1 - + col0 FROM tab0 cor0
----
-7420
-8370
-9444
query I rowsort
SELECT 38 + col0 FROM tab1
----
102
118
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-1926
SELECT DISTINCT - col0 DIV + 23 AS col1 FROM tab1 AS cor0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT - col0 / + 23 AS col1 FROM tab1 AS cor0
----
-2
-3
0
query I rowsort
SELECT - + col1 + 0 * 18 * col0 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - - col2 * ( col1 ) AS col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-1929
SELECT + cor0.col0 + + col0 DIV + col1 FROM tab2 AS cor0
----
7
79
83
skipif mysql # not compatible
query I rowsort label-1929
SELECT + cor0.col0 + + col0 / + col1 FROM tab2 AS cor0
----
7
79
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1930
SELECT DISTINCT col1 * + CAST( 54 AS SIGNED ) col2 FROM tab2 cor0
----
1674
3186
918
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT col1 * + CAST ( 54 AS INTEGER ) col2 FROM tab2 cor0
----
1674
3186
918
query I rowsort
SELECT - + col2 * + 37 FROM tab1 cor0
----
-1998
-2109
-3552
query I rowsort
SELECT - tab0.col2 + - 30 FROM tab0
----
-112
-31
-63
onlyif mysql # use DIV operator for integer division
query I rowsort label-1933
SELECT col2 - + col1 DIV + 19 AS col1 FROM tab0
----
-4
29
78
skipif mysql # not compatible
query I rowsort label-1933
SELECT col2 - + col1 / + 19 AS col1 FROM tab0
----
-4
29
78
query I rowsort
SELECT - col2 + - 42 * 31 * + tab0.col2 FROM tab0
----
-106846
-1303
-42999
onlyif mysql # use DIV operator for integer division
query I rowsort label-1935
SELECT DISTINCT tab0.col2 DIV tab0.col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-1935
SELECT DISTINCT tab0.col2 / tab0.col1 FROM tab0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1936
SELECT + col1 * col2 * - cor0.col2 + + cor0.col1 DIV + col0 col2 FROM tab2 AS cor0
----
-22595
-24548
-39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1936
SELECT + col1 * col2 * - cor0.col2 + + cor0.col1 / + col0 col2 FROM tab2 AS cor0
----
-22595
-24548
-39884
query I rowsort
SELECT - - cor0.col2 + + col2 FROM tab1 AS cor0
----
108
114
192
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 76903cfa3a27727fd541d9dcdf362a4c
query I rowsort
SELECT DISTINCT col1 + - 13 * + 32 FROM tab0 AS cor0
----
-319
-325
-330
query I rowsort
SELECT col2 * ( + ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + - cor0.col2 * col0 - col2 * col2 * - col0 AS col1 FROM tab2 cor0
----
111074
4914
50700
query I rowsort
SELECT DISTINCT + + col0 * col0 * cor0.col2 - - col0 * - cor0.col0 FROM tab0 AS cor0
----
0
18432
641601
query I rowsort
SELECT ALL col0 + - cor0.col0 * ( + col2 ) AS col2 FROM tab0 AS cor0
----
-7209
-768
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col1 col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-1945
SELECT col1 + cor0.col1 + col1 DIV cor0.col0 AS col1 FROM tab2 cor0
----
118
34
66
skipif mysql # not compatible
query I rowsort label-1945
SELECT col1 + cor0.col1 + col1 / cor0.col0 AS col1 FROM tab2 cor0
----
118
34
66
query I rowsort
SELECT 0 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL tab0.col2 + - col1 + col0 FROM tab0
----
-29
-61
80
query I rowsort
SELECT - - col2 * 70 * + 50 + col1 FROM tab2 AS cor0
----
133017
91059
94531
query I rowsort
SELECT - col1 * 62 FROM tab0
----
-5332
-5642
-6014
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT + + 40 * + col0 FROM tab0 AS cor0
----
1400
3560
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-1952
SELECT - col1 DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1952
SELECT - col1 / cor0.col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + col0 + + col0 * tab0.col1 AS col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( + col0 ) >= NULL
----
query I rowsort
SELECT + col2 - + col1 AS col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT ( + col1 ) * col0 * + col0 FROM tab0
----
118825
49536
720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-1957
SELECT col2 DIV - col2 AS col1 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1957
SELECT col2 / - col2 AS col1 FROM tab1
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1958
SELECT col2 DIV col0 AS col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1958
SELECT col2 / col0 AS col0 FROM tab0
----
0
0
1
query I rowsort
SELECT DISTINCT - col0 * col2 + + col2 * + col0 AS col1 FROM tab1 cor0
----
0
query I rowsort
SELECT + col1 * - col0 + col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL - col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - 66 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a
query I rowsort
SELECT DISTINCT col2 * col2 + col1 AS col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT + col1 - ( - col2 ) FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + 7 * + col2 FROM tab1 AS cor0
----
378
399
672
query I rowsort
SELECT - tab2.col0 - + col0 FROM tab2
----
-14
-156
-158
query I rowsort
SELECT + 8 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT ALL col1 + col1 - - 84 FROM tab0
----
256
266
278
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col2 FROM tab2, tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col2 FROM tab2, tab0 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT - 87 + + cor0.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 7662ecd93170c99bdfe0dda495e221ba
query I rowsort
SELECT ALL col0 + - 27 - + col2 AS col0 FROM tab0
----
-20
-36
7
query I rowsort
SELECT tab1.col0 * + 1 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT - + col2 + - col2 * + col2 * col1 FROM tab0 AS cor0
----
-611966
-93687
-98
query I rowsort
SELECT ALL - col0 * 15 - - 98 FROM tab0 AS cor0
----
-1237
-262
-427
query I rowsort
SELECT ALL col2 + 87 AS col0 FROM tab2 AS cor0
----
113
114
125
query I rowsort
SELECT ALL + col2 * + 57 AS col2 FROM tab1 AS cor0
----
3078
3249
5472
query I rowsort
SELECT ALL + col2 * + cor0.col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT cor0.col2 + - ( + 0 ) AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - col1 - col0 FROM tab2 cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT 95 AS col1 FROM tab2
----
95
query I rowsort
SELECT 91 FROM tab2, tab1 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT - - 5 + col1 FROM tab1 AS cor0
----
15
18
31
query I rowsort
SELECT DISTINCT 83 AS col1 FROM tab0
----
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1985
SELECT ( col1 * col1 + - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1985
SELECT ( col1 * col1 + - CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col0 + cor0.col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - + ( col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT - + ( cor0.col0 ) * col0 - col2 FROM tab0 AS cor0
----
-1226
-609
-8003
query I rowsort
SELECT ALL + - 14 + col2 FROM tab2 AS cor0
----
12
13
24
query I rowsort
SELECT + + 11 FROM tab2 cor0
----
11
11
11
query I rowsort
SELECT DISTINCT col2 + - col0 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT + col1 * - col1 * - col1 FROM tab2 AS cor0
----
205379
29791
4913
query I rowsort
SELECT + - col2 * col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + - col1 * - col2 * col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT - - cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT ALL tab0.col2 * cor0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to a584dbed06a50254bcac9acbc3ee58b4
query I rowsort
SELECT DISTINCT + 91 AS col1 FROM tab2
----
91
query I rowsort
SELECT ALL + col2 - - col0 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT - - col1 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - col0 * + col2 - col1 FROM tab0
----
-132
-7389
-878
onlyif mysql # use DIV operator for integer division
query I rowsort label-2001
SELECT ALL - col0 - - tab1.col2 DIV col2 col2 FROM tab1
----
-2
-63
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL - col0 - - tab1.col2 / col2 col2 FROM tab1
----
-2
-63
-79
query I rowsort
SELECT ALL col2 + tab1.col1 * - col0 - tab1.col1 * col2 FROM tab1
----
-1153
-1428
-2192
query I rowsort
SELECT ALL + col0 * - col0 * - col2 AS col2 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT ALL - 64 AS col2 FROM tab0
----
-64
-64
-64
query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col0 + + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-1322
-15383
-3414
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * col2 col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - + cor0.col1 * col1 * col0 AS col2 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT DISTINCT col2 * - col1 + + col1 AS col2 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT 71 * col2 FROM tab0
----
2343
5822
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 col1 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col1 * + col2 col0 FROM tab1
----
1328
1407
634
query I rowsort
SELECT DISTINCT 64 + - tab1.col2 AS col1 FROM tab1
----
-32
10
7
query I rowsort
SELECT ALL - tab0.col0 * col2 + - tab0.col0 FROM tab0
----
-70
-7387
-816
query I rowsort
SELECT DISTINCT 5 + + 37 FROM tab1
----
42
query I rowsort
SELECT ALL + 85 + col2 AS col1 FROM tab2
----
111
112
123
query I rowsort
SELECT - col2 + - tab0.col0 AS col0 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT ALL - - 52 + + col2 + + col1 * col0 AS col2 FROM tab1 AS cor0
----
1188
184
749
query I rowsort
SELECT DISTINCT - col1 * - col1 + cor0.col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT + col0 + col2 * + col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL + col0 * col0 * + col1 + + col2 * col0 * col1 AS col1 FROM tab0 cor0
----
117648
122220
1384929
query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col1 + + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT - 10 AS col0 FROM tab0 AS cor0
----
-10
-10
-10
query I rowsort
SELECT + + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - col2 + - col0 * + col0 FROM tab2 AS cor0
----
-6110
-6279
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-2025
SELECT - col0 DIV + col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-2025
SELECT - col0 / + col1 FROM tab2 AS cor0
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col2 + cor0.col1 col2 FROM tab0 cor0
----
1175
6815
98
query I rowsort
SELECT col2 + + col2 * - col0 + + col1 FROM tab1
----
-3581
-7571
-82
query I rowsort
SELECT DISTINCT tab0.col1 + col0 AS col2 FROM tab0
----
110
132
180
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( col2 * col0 + - col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2030
SELECT ALL col0 - - col2 DIV col2 FROM tab0 cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-2030
SELECT ALL col0 - - col2 / col2 FROM tab0 cor0
----
25
36
90
query I rowsort
SELECT - col1 + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580
onlyif mysql # use DIV operator for integer division
query I rowsort label-2032
SELECT DISTINCT col2 DIV + col0 + - col1 DIV col0 FROM tab2
----
-1
0
skipif mysql # not compatible
query I rowsort label-2032
SELECT DISTINCT col2 / + col0 + - col1 / col0 FROM tab2
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2033
SELECT + col1 + - col0 DIV + col0 FROM tab1
----
12
25
9
skipif mysql # not compatible
query I rowsort label-2033
SELECT + col1 + - col0 / + col0 FROM tab1
----
12
25
9
query III rowsort
SELECT * FROM tab2 WHERE col2 <= ( + col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT col2 + col1 + - tab2.col2 AS col0 FROM tab2 WHERE col0 / col0 <= ( NULL )
----
query I rowsort
SELECT col0 * col2 + col0 + col0 FROM tab0
----
105
7476
840
query I rowsort
SELECT col2 + + col2 / col2 AS col0 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2038
SELECT + col0 + + col1 * + col0 + col0 DIV col2 FROM tab1
----
1120
705
81
skipif mysql # not compatible
query I rowsort label-2038
SELECT + col0 + + col1 * + col0 + col0 / col2 FROM tab1
----
1120
705
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - tab0.col0 col0 FROM tab0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-2040
SELECT col0 DIV tab0.col2 AS col2 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-2040
SELECT col0 / tab0.col2 AS col2 FROM tab0
----
0
1
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-2041
SELECT + col1 - col2 DIV col1 FROM tab2
----
15
31
59
skipif mysql # not compatible
query I rowsort label-2041
SELECT + col1 - col2 / col1 FROM tab2
----
15
31
59
query III rowsort
SELECT * FROM tab1 WHERE NOT col1 NOT BETWEEN col2 AND NULL
----
query I rowsort
SELECT - col2 * + col0 + - col0 - - col2 FROM tab2
----
-169
-2080
-3043
query I rowsort
SELECT ALL - col0 * - col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - col2 + col1 * + col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NULL NOT BETWEEN ( col0 * - col2 ) AND - col1 + - col0 * col0
----
query I rowsort
SELECT ALL + + col2 + - col1 * - col0 FROM tab0 AS cor0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-2048
SELECT + col1 - - col1 DIV cor0.col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-2048
SELECT + col1 - - col1 / cor0.col1 FROM tab0 AS cor0
----
87
92
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + cor0.col1 col1 FROM tab1 cor0
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * col1 col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col0 * + col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT - cor0.col0 - col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT - col1 * - col1 + col2 * col0 FROM tab1 AS cor0
----
3748
7849
838
query I rowsort
SELECT + cor0.col0 * - col2 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-2056
SELECT - + col1 + + col1 DIV + col0 FROM tab0 AS cor0
----
-83
-90
-95
skipif mysql # not compatible
query I rowsort label-2056
SELECT - + col1 + + col1 / + col0 FROM tab0 AS cor0
----
-83
-90
-95
query I rowsort
SELECT ALL col2 - + col1 * col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96
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 DISTINCT col0 * col1 + - tab1.col1 FROM tab1
----
1027
52
630
query I rowsort
SELECT - col1 * + col0 + - col1 * + col1 * col1 AS col2 FROM tab2
----
-209981
-30008
-6256
query I rowsort
SELECT col1 - - col1 FROM tab2
----
118
34
62
query I rowsort
SELECT DISTINCT + col1 + - tab1.col1 AS col1 FROM tab1
----
0
query I rowsort
SELECT DISTINCT + - ( col0 ) * col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT 15 * - 34 FROM tab1 AS cor0
----
-510
-510
-510
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2065
SELECT ( - col2 ) * + col2 * CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-157464
-185193
-884736
skipif mysql # not compatible
query I rowsort label-2065
SELECT ( - col2 ) * + col2 * CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-157464
-185193
-884736
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - ( - 48 ) FROM tab0 cor0
----
48
48
48
query I rowsort
SELECT col0 - cor0.col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT - 55 FROM tab1, tab0 AS cor0
----
-55
query I rowsort
SELECT - - 41 AS col2 FROM tab0 AS cor0
----
41
41
41
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0 CROSS JOIN tab1, tab1 AS cor1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor1.col0 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-7
-78
-79
query I rowsort
SELECT - ( - cor0.col1 ) FROM tab1, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2074
SELECT ALL + CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL + CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2075
SELECT + col0 + - CAST( NULL AS SIGNED ) * + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2075
SELECT + col0 + - CAST ( NULL AS INTEGER ) * + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - cor0.col1 * cor0.col0 * + col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT + 22 * - 63 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8ae621a72a1fcce738298a7f10ac2629
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * ( + col0 ) col2 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-2079
SELECT - - col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2079
SELECT - - col1 / + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2080
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2080
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT tab0.col2 + col2 FROM tab0
----
164
2
66
query I rowsort
SELECT ( - col0 ) + + col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT - 72 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888
query I rowsort
SELECT DISTINCT col1 + cor0.col2 * col2 * col1 AS col1 FROM tab1 AS cor0
----
119821
32500
75842
query I rowsort
SELECT + 76 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
query I rowsort
SELECT DISTINCT - ( + col1 ) + + col0 AS col2 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT - - col1 + + cor0.col2 * col2 * ( - 20 + col0 ) AS col1 FROM tab0 AS cor0
----
112
4442
464047
query I rowsort
SELECT - cor0.col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT + col0 * ( - col2 ) * col1 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL + cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2092
SELECT DISTINCT ( col2 + col1 ) * col2 DIV + col1 FROM tab2
----
122
37
50
skipif mysql # not compatible
query I rowsort label-2092
SELECT DISTINCT ( col2 + col1 ) * col2 / + col1 FROM tab2
----
122
37
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2093
SELECT ALL CAST( + col0 AS SIGNED ) AS col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL CAST ( + col0 AS INTEGER ) AS col1 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 col0 FROM tab0
----
64
64
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-2095
SELECT DISTINCT 29 DIV 66 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-2095
SELECT DISTINCT 29 / 66 FROM tab2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( tab0.col0 ) col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT col2 * 58 * + col1 FROM tab1
----
33060
72384
81432
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2098
SELECT + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-2098
SELECT + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
7
78
79
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab1 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to b3ea820890445d59f3f7464a1521d42d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col0 * ( col0 * col2 ) col2 FROM tab1
----
-13307904
-26244
-58982400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2101
SELECT - col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2101
SELECT - col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor1.col2 * + cor0.col2 + + 34 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
2950
3112
3283
5218
5506
9250
onlyif mysql # use DIV operator for integer division
query I rowsort label-2103
SELECT + col0 DIV col2 + col2 AS col2 FROM tab0 AS cor0
----
33
36
83
skipif mysql # not compatible
query I rowsort label-2103
SELECT + col0 / col2 + col2 AS col2 FROM tab0 AS cor0
----
33
36
83
query I rowsort
SELECT + - col1 + col0 * + col0 * + col2 FROM tab2 cor0
----
1292
158125
237141
query I rowsort
SELECT - + col1 AS col1 FROM tab2 cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + 37 * col0 AS col0 FROM tab1 AS cor0
----
111
2368
2960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 col2 FROM tab1 AS cor0
----
-19
-19
-19
query I rowsort
SELECT ALL col2 * col0 * + col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT - + col2 + cor0.col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL - 99 * + col2 * ( + cor0.col1 ) FROM tab2 AS cor0
----
-151866
-63954
-82863
query I rowsort
SELECT 8 * col0 FROM tab0 AS cor0
----
192
280
712
query I rowsort
SELECT ALL - cor0.col1 * col0 * col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL + - 20 * col1 FROM tab2 AS cor0
----
-1180
-340
-620
query I rowsort
SELECT + 95 AS col1 FROM tab0
----
95
95
95
query I rowsort
SELECT + - col0 + - col2 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT ALL + - col1 + 96 FROM tab1 cor0
----
70
83
86
query I rowsort
SELECT DISTINCT + - col1 * + 67 - 74 AS col2 FROM tab2 AS cor0
----
-1213
-2151
-4027
query I rowsort
SELECT ALL - - col0 - - cor0.col2 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL + + col1 * 22 FROM tab1 cor0
----
220
286
572
query I rowsort
SELECT DISTINCT + - col0 + col2 * + col1 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT DISTINCT ( + col2 ) + + col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL - col0 * - col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT + 98 * - col0 FROM tab0 cor0
----
-2352
-3430
-8722
query I rowsort
SELECT ALL col0 + - col2 + cor0.col0 * cor0.col1 * col2 FROM tab0 AS cor0
----
3429
664125
68103
query I rowsort
SELECT ALL + col1 + 78 * col0 FROM tab0 AS cor0
----
1958
2827
7033
query I rowsort
SELECT - cor0.col2 * - col1 * - col0 FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT col2 + + 68 + + col1 FROM tab2 AS cor0
----
123
126
153
query I rowsort
SELECT DISTINCT - col2 * + col0 + - col0 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT - col0 * col1 * ( - col1 ) FROM tab1
----
13520
2028
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-2131
SELECT ALL - col2 DIV cor0.col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL - col2 / cor0.col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT 51 + col1 FROM tab1
----
61
64
77
query I rowsort
SELECT + + ( - ( + col0 ) ) + 84 FROM tab2 AS cor0
----
5
6
77
query I rowsort
SELECT + ( col2 ) * col0 + 59 AS col2 FROM tab0 AS cor0
----
7357
851
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2135
SELECT ALL - CAST( + col2 AS SIGNED ) * col2 + col2 AS col2 FROM tab2
----
-1406
-650
-702
skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL - CAST ( + col2 AS INTEGER ) * col2 + col2 AS col2 FROM tab2
----
-1406
-650
-702
query I rowsort
SELECT DISTINCT - 98 * + col0 + + col2 FROM tab1
----
-240
-6215
-7744
onlyif mysql # use DIV operator for integer division
query I rowsort label-2137
SELECT - + 32 DIV col2 AS col0 FROM tab0 AS cor0
----
-32
0
0
skipif mysql # not compatible
query I rowsort label-2137
SELECT - + 32 / col2 AS col0 FROM tab0 AS cor0
----
-32
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2138
SELECT col2 * col0 + + CAST( NULL AS SIGNED ) / ( cor0.col1 ) + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2138
SELECT col2 * col0 + + CAST ( NULL AS INTEGER ) / ( cor0.col1 ) + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + + col2 AS col0 FROM tab1
----
-7
16
51
query I rowsort
SELECT 14 + col2 * - col2 + - col1 FROM tab2
----
-1447
-721
-746
query I rowsort
SELECT DISTINCT 63 + 44 AS col1 FROM tab1
----
107
onlyif mysql # use DIV operator for integer division
query I rowsort label-2142
SELECT + col2 DIV tab0.col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2142
SELECT + col2 / tab0.col2 FROM tab0
----
1
1
1
query I rowsort
SELECT col0 + 15 * + col0 FROM tab2
----
112
1248
1264
query I rowsort
SELECT + - 20 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb
onlyif mysql # use DIV operator for integer division
query I rowsort label-2145
SELECT DISTINCT 54 * col1 DIV - col1 AS col2 FROM tab0
----
-54
skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT 54 * col1 / - col1 AS col2 FROM tab0
----
-54
query I rowsort
SELECT ALL + tab1.col2 * col2 AS col2 FROM tab1
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-2147
SELECT ALL tab0.col2 DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL tab0.col2 / col1 FROM tab0
----
0
0
0
query I rowsort
SELECT - cor0.col2 * 37 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cdb0f9d0ea5da1d07affc20c839dce2a
onlyif mysql # use DIV operator for integer division
query I rowsort label-2149
SELECT DISTINCT cor0.col1 + cor0.col2 DIV ( col1 ) AS col0 FROM tab2 AS cor0
----
19
31
59
skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT cor0.col1 + cor0.col2 / ( col1 ) AS col0 FROM tab2 AS cor0
----
19
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 + col2 col0 FROM tab0 AS cor0
----
140
59
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2151
SELECT cor0.col1 / + col0 + - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2151
SELECT cor0.col1 / + col0 + - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + cor0.col0 + - col2 AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT - + col2 * col1 + - cor0.col0 FROM tab2 cor0
----
-1612
-725
-844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + cor0.col1 + col2 * 65 col2 FROM tab2 AS cor0
----
1775
1813
2525
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL col1 * cor0.col0 + + 38 AS col1 FROM tab1 cor0
----
1078
116
678
query I rowsort
SELECT DISTINCT 67 AS col0 FROM tab2 AS cor0
----
67
query I rowsort
SELECT - 37 * - cor0.col1 + - 95 AS col2 FROM tab0 AS cor0
----
3087
3272
3494
query I rowsort
SELECT ALL - - col2 * col2 + 13 AS col2 FROM tab2 AS cor0
----
1457
689
742
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2160
SELECT ALL + col1 * + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL + col1 * + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2161
SELECT DISTINCT - - col0 * + cor0.col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT - - col0 * + cor0.col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT 41 FROM tab2, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT ALL cor1.col0 * - 97 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to 2fd53acd4657ee3cea26bc517f1e9aaa
query I rowsort
SELECT DISTINCT col2 - + tab1.col0 * - col1 * - col0 FROM tab1
----
-180
-40903
-83104
query I rowsort
SELECT col2 * ( tab1.col2 ) FROM tab1
----
2916
3249
9216
query I rowsort
SELECT - col1 - col1 AS col0 FROM tab1
----
-20
-26
-52
query I rowsort
SELECT DISTINCT + col0 * col1 + - cor0.col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT - - col2 + + 95 FROM tab1 AS cor0
----
149
152
191
query I rowsort
SELECT DISTINCT + col0 + col1 * col2 FROM tab1 AS cor0
----
1328
1407
634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT ALL + cor0.col2 - - cor0.col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + ( col0 ) - + col2 FROM tab2 AS cor0
----
-20
41
52
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col0 AS REAL ) * col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT + 26 * + col1 + - col0 * - ( - col1 ) + + cor0.col1 FROM tab1 AS cor0
----
-370
-689
624
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2175
SELECT + CAST( col0 AS SIGNED ) + col0 * - col1 * ( - col1 ) AS col2 FROM tab2 AS cor0
----
22910
271596
6734
skipif mysql # not compatible
query I rowsort label-2175
SELECT + CAST ( col0 AS INTEGER ) + col0 * - col1 * ( - col1 ) AS col2 FROM tab2 AS cor0
----
22910
271596
6734
query I rowsort
SELECT - - col1 + col0 * col0 AS col0 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT DISTINCT + + ( - ( col0 ) ) * col1 + 48 * cor0.col2 AS col0 FROM tab2 cor0
----
-3354
1079
481
query I rowsort
SELECT - + ( + cor0.col2 ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - 82 + + col2 - col1 AS col2 FROM tab1 AS cor0
----
-35
-54
1
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9
query I rowsort
SELECT - - 39 - col2 * - col2 AS col1 FROM tab2 AS cor0
----
1483
715
768
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * ( + col1 ) col0 FROM tab1 AS cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 col2 FROM tab1
----
93
93
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 col0 FROM tab0
----
48
48
48
query I rowsort
SELECT ALL 54 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab2 AS cor0 WHERE NULL >= ( NULL )
----
query I rowsort
SELECT tab1.col0 + col1 AS col2 FROM tab1
----
29
74
93
query I rowsort
SELECT + col1 * 64 FROM tab1 AS cor0
----
1664
640
832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 + col2 col0 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ( - col2 ) * + col0 AS col2 FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-2191
SELECT DISTINCT + 85 DIV tab0.col1 AS col1 FROM tab0, tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT + 85 / tab0.col1 AS col1 FROM tab0, tab2 AS cor0
----
0
query I rowsort
SELECT + - col2 * - col2 + col1 AS col0 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT - - 12 * + col0 AS col0 FROM tab1 AS cor0
----
36
768
960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2194
SELECT ALL + CAST( NULL AS SIGNED ) - col1 * - col2 col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL + CAST ( NULL AS INTEGER ) - col1 * - col2 col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col0 * - col2 + col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT col1 + col0 * + col0 * + col1 + + 52 * + col0 AS col0 FROM tab2 AS cor0
----
110222
1914
363071
query I rowsort
SELECT ALL + 78 * - col1 + col2 FROM tab2 AS cor0
----
-1288
-2391
-4576
query I rowsort
SELECT + 5 * - 70 AS col1 FROM tab1 AS cor0
----
-350
-350
-350
query I rowsort
SELECT + col2 + col1 * col0 AS col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT + + 23 * + col0 FROM tab0 AS cor0
----
2047
552
805
query I rowsort
SELECT DISTINCT ( + col1 ) + col1 AS col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT - 55 * col0 FROM tab2 AS cor0
----
-385
-4290
-4345
query I rowsort
SELECT ALL - - col2 - col0 * col2 FROM tab1 cor0
----
-108
-3591
-7584
query I rowsort
SELECT + - ( + col2 ) * + col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + ( + col1 * + col1 + + ( tab0.col2 ) ) AS col0 FROM tab0
----
7429
8363
9410
query I rowsort
SELECT - - 10 FROM tab2 AS cor0
----
10
10
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-2208
SELECT + 72 + - cor0.col0 DIV - col1 col0 FROM tab1 AS cor0
----
72
78
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2208
SELECT + 72 + - cor0.col0 / - col1 col0 FROM tab1 AS cor0
----
72
78
78
query I rowsort
SELECT - 23 + - col0 FROM tab2 AS cor0
----
-101
-102
-30
onlyif mysql # use DIV operator for integer division
query I rowsort label-2210
SELECT - col0 + + col0 DIV col1 + col0 * cor0.col2 col0 FROM tab1 AS cor0
----
159
3590
7606
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2210
SELECT - col0 + + col0 / col1 + col0 * cor0.col2 col0 FROM tab1 AS cor0
----
159
3590
7606
query I rowsort
SELECT + - 92 * col1 AS col1 FROM tab2 AS cor0
----
-1564
-2852
-5428
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2212
SELECT ALL - - col0 * col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL - - col0 * col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col0 col0 FROM tab1 cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * 27 + + col0 col1 FROM tab2 AS cor0
----
1671
538
844
query I rowsort
SELECT + col0 + - cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT ALL - - col1 * - col1 + 69 AS col0 FROM tab0 AS cor0
----
-7327
-8212
-9340
query I rowsort
SELECT DISTINCT col2 * - col0 + col1 AS col1 FROM tab1 cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT - col0 * col1 + ( + col2 ) AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL col0 + - col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + ( - tab0.col2 ) * - 44 * - col2 FROM tab0
----
-295856
-44
-47916
query I rowsort
SELECT DISTINCT - 64 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-64
query I rowsort
SELECT DISTINCT - 74 * col2 FROM tab0
----
-2442
-6068
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-2223
SELECT col2 * + col2 - - col0 DIV col2 FROM tab0 AS cor0
----
1089
36
6725
skipif mysql # not compatible
query I rowsort label-2223
SELECT col2 * + col2 - - col0 / col2 FROM tab0 AS cor0
----
1089
36
6725
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 + col2 col2 FROM tab1 AS cor0
----
129
132
171
query I rowsort
SELECT DISTINCT + - cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT 95 * 17 AS col1 FROM tab1 cor0
----
1615
1615
1615
query I rowsort
SELECT + cor1.col2 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT - 74 * 45 - col1 FROM tab0 AS cor0
----
-3416
-3421
-3427
query I rowsort
SELECT DISTINCT 70 AS col0 FROM tab0, tab0 AS cor0
----
70
query I rowsort
SELECT ALL + 86 FROM tab1, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
onlyif mysql # use DIV operator for integer division
query I rowsort label-2231
SELECT ALL + - col0 * - col0 DIV col0 AS col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL + - col0 * - col0 / col0 AS col2 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 * col1 col1 FROM tab2 AS cor0
----
255
465
885
onlyif mysql # use DIV operator for integer division
query I rowsort label-2233
SELECT DISTINCT + col1 * col2 * col0 + 68 DIV col2 col1 FROM tab1 AS cor0
----
36481
4213
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT + col1 * col2 * col0 + 68 / col2 col1 FROM tab1 AS cor0
----
36481
4213
99840
query I rowsort
SELECT 20 + tab0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8ba9372c9c6e904a4234cb687d26837e
query I rowsort
SELECT DISTINCT tab2.col0 FROM tab2, tab1, tab0 AS cor0
----
7
78
79
query I rowsort
SELECT - 90 FROM tab1, tab2 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5
query I rowsort
SELECT col2 - - col1 * + col2 AS col0 FROM tab1
----
1344
1458
627
query I rowsort
SELECT + cor1.col0 * - 48 AS col0 FROM tab0, tab2 cor0, tab0 cor1
----
27 values hashing to 4d4f1d37d610e1e412f5055daaab4960
query I rowsort
SELECT ALL + - cor0.col2 + + 11 FROM tab1, tab0 AS cor0
----
9 values hashing to 577f38bdbad56499f0d0f56a458a6c46
query I rowsort
SELECT ALL + col1 - col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT col2 * + 34 AS col1 FROM tab0
----
1122
2788
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-2242
SELECT DISTINCT - cor0.col1 DIV ( - col1 * cor0.col1 ) FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2242
SELECT DISTINCT - cor0.col1 / ( - col1 * cor0.col1 ) FROM tab2 AS cor0
----
0
query I rowsort
SELECT - col1 * - 51 + - col0 FROM tab0 AS cor0
----
4362
4552
4912
query I rowsort
SELECT ALL + col0 + - col2 * + 78 AS col2 FROM tab0 AS cor0
----
-2550
-43
-6307
onlyif mysql # use DIV operator for integer division
query I rowsort label-2245
SELECT - cor0.col1 DIV 2 - - col0 FROM tab2 AS cor0
----
-8
49
71
skipif mysql # not compatible
query I rowsort label-2245
SELECT - cor0.col1 / 2 - - col0 FROM tab2 AS cor0
----
-8
49
71
query I rowsort
SELECT DISTINCT + - cor0.col2 - - col2 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT cor0.col0 + col0 AS col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT + - col0 + + ( 81 ) FROM tab0 AS cor0
----
-8
46
57
query I rowsort
SELECT ALL col1 + col2 * + 34 AS col0 FROM tab2
----
1309
943
949
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0
query I rowsort
SELECT ALL + 68 * + cor0.col0 FROM tab1 cor0
----
204
4352
5440
query I rowsort
SELECT - 53 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d
query I rowsort
SELECT ALL - - 37 * - col2 FROM tab0 AS cor0
----
-1221
-3034
-37
query I rowsort
SELECT DISTINCT - ( - 69 ) * col2 FROM tab1 AS cor0
----
3726
3933
6624
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + cor0.col2 * col2 col1 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT - + col1 + col2 * col2 AS col1 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT - - 81 + col2 AS col0 FROM tab2 AS cor0
----
107
108
119
onlyif mysql # use DIV operator for integer division
query I rowsort label-2258
SELECT ALL + ( col2 ) * 88 + col2 - col1 DIV - CAST( 97 AS SIGNED ) FROM tab2
----
2314
2403
3382
skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL + ( col2 ) * 88 + col2 - col1 / - CAST ( 97 AS INTEGER ) FROM tab2
----
2314
2403
3382
query I rowsort
SELECT DISTINCT - ( + col0 ) * ( - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + ( cor0.col1 ) * - ( 53 + col1 ) * col2 FROM tab2 cor0
----
-171808
-45220
-70308
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col1 col2 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT - 86 AS col0 FROM tab2 AS cor0
----
-86
query I rowsort
SELECT ALL - col2 * col0 + - col2 AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-2264
SELECT DISTINCT col2 DIV - col1 + ( col1 ) * col2 * - col2 AS col0 FROM tab2 AS cor0
----
-22599
-24550
-39884
skipif mysql # not compatible
query I rowsort label-2264
SELECT DISTINCT col2 / - col1 + ( col1 ) * col2 * - col2 AS col0 FROM tab2 AS cor0
----
-22599
-24550
-39884
query I rowsort
SELECT DISTINCT + - cor0.col2 * + 45 + col2 * + col2 FROM tab0 cor0
----
-396
-44
3034
query I rowsort
SELECT ALL - col0 * - 54 AS col2 FROM tab0 cor0
----
1296
1890
4806
query I rowsort
SELECT - cor0.col2 + ( - col2 ) * - cor0.col1 FROM tab2 cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT col1 + cor0.col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT DISTINCT + cor0.col1 * - cor0.col0 + col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL - col1 * + cor0.col2 - - col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL + cor0.col0 * 91 + 67 FROM tab2 cor0
----
704
7165
7256
query I rowsort
SELECT DISTINCT + col2 + - col1 * col1 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-2273
SELECT ALL cor0.col2 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL cor0.col2 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - col1 * - col2 - 89 FROM tab2 AS cor0
----
1445
557
748
query I rowsort
SELECT DISTINCT col2 * ( + cor0.col2 ) + col2 * - col2 + col0 AS col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT col0 + + col2 * + col1 + col0 * col0 FROM tab2
----
6966
7696
893
query I rowsort
SELECT 73 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
query I rowsort
SELECT ALL col0 - col0 * col2 AS col2 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT + - cor0.col2 * - col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + cor0.col1 + + 10 * ( col2 * - col0 ) AS col2 FROM tab2 cor0
----
-1859
-20221
-30003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col1 col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT col2 - - col0 AS col2 FROM tab2
----
104
117
34
query I rowsort
SELECT - col1 - + tab0.col2 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT ALL + - col2 * cor0.col2 + col2 AS col0 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT - col1 * col2 - col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT + - col0 * + col2 AS col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT - col1 + + col2 * 87 FROM tab2 AS cor0
----
2203
2318
3289
query I rowsort
SELECT - + col0 - - col0 * + col1 AS col2 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT ALL + + col1 + ( col2 ) AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL cor0.col2 * + col0 * - ( cor0.col0 ) + 84 FROM tab2 AS cor0
----
-1239
-158100
-237074
query I rowsort
SELECT + + 23 * 79 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d7765073eb47ce1dbc85f370a7ceaa0c
query I rowsort
SELECT ALL col0 + 80 FROM tab2
----
158
159
87
query I rowsort
SELECT + cor0.col1 * + col1 + - col1 AS col1 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT - - 59 * - 38 - + col2 AS col2 FROM tab2 AS cor0
----
-2268
-2269
-2280
query I rowsort
SELECT col1 * col1 + cor0.col2 * + 20 AS col2 FROM tab1 AS cor0
----
1240
1756
2089
query I rowsort
SELECT col0 * - ( col2 ) FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL + tab0.col2 + 46 * 79 FROM tab0
----
3635
3667
3716
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2298
SELECT + col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2298
SELECT + col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2299
SELECT + + col0 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-2299
SELECT + + col0 / - col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT + 54 AS col1 FROM tab1 AS cor0
----
54
54
54
query I rowsort
SELECT DISTINCT col1 + - col2 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 + 28 FROM tab0 AS cor0
----
63
7326
820
query I rowsort
SELECT col0 + + col2 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + 29 + + col1 AS col2 FROM tab1
----
39
42
55
query I rowsort
SELECT + col0 - 32 * - col0 AS col1 FROM tab1
----
2112
2640
99
query I rowsort
SELECT DISTINCT 37 * - col2 FROM tab2
----
-1406
-962
-999
query I rowsort
SELECT col0 + - col1 * col2 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT 60 + col0 AS col1 FROM tab1
----
124
140
63
query I rowsort
SELECT - 82 * - col2 FROM tab0 AS cor0
----
2706
6724
82
query I rowsort
SELECT DISTINCT col2 + + col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL + + col1 + - col1 AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL - 15 + + col1 * + 48 FROM tab0 AS cor0
----
4113
4353
4641
query I rowsort
SELECT DISTINCT 96 * col1 AS col0 FROM tab0 cor0
----
8256
8736
9312
query I rowsort
SELECT + - col0 + 69 AS col0 FROM tab0 AS cor0
----
-20
34
45
query I rowsort
SELECT col0 * + col0 * col1 FROM tab1
----
234
40960
83200
query I rowsort
SELECT - + ( - 59 ) * + cor0.col0 FROM tab0 AS cor0
----
1416
2065
5251
query I rowsort
SELECT - cor0.col0 * - col2 + col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT + 57 * ( - cor0.col1 ) * 33 FROM tab0, tab1 AS cor0
----
-18810
-24453
-48906
query I rowsort
SELECT col1 * 50 FROM tab1
----
1300
500
650
query I rowsort
SELECT - cor0.col0 FROM tab0, tab1, tab2 cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT DISTINCT tab2.col2 * col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT 31 AS col2 FROM tab2
----
31
query I rowsort
SELECT ALL + 85 FROM tab2, tab2 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT DISTINCT col2 * - 59 AS col1 FROM tab0
----
-1947
-4838
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2325
SELECT - CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-2325
SELECT - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2326
SELECT CAST( + col2 AS SIGNED ) * - col2 + + ( col1 ) AS col0 FROM tab0 AS cor0
----
-1003
-6633
96
skipif mysql # not compatible
query I rowsort label-2326
SELECT CAST ( + col2 AS INTEGER ) * - col2 + + ( col1 ) AS col0 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT + col1 + - 60 * + col1 FROM tab1 AS cor0
----
-1534
-590
-767
query I rowsort
SELECT ALL - col0 + tab0.col1 AS col2 FROM tab0
----
2
62
62
query I rowsort
SELECT DISTINCT - col0 + col1 AS col2 FROM tab1
----
-54
-67
23
query I rowsort
SELECT DISTINCT + ( - col1 ) * ( - ( - col2 ) ) + col0 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-2331
SELECT + - col1 DIV - col1 + + 38 AS col0 FROM tab1 AS cor0
----
39
39
39
skipif mysql # not compatible
query I rowsort label-2331
SELECT + - col1 / - col1 + + 38 AS col0 FROM tab1 AS cor0
----
39
39
39
query I rowsort
SELECT ALL - cor0.col0 - col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT - col2 + cor0.col2 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + cor0.col0 + + col1 + 45 FROM tab0 AS cor0
----
155
177
225
query I rowsort
SELECT col2 + + 32 + + col2 FROM tab1 AS cor0
----
140
146
224
query I rowsort
SELECT ALL - cor0.col2 * - 67 * 3 + col2 * + 42 AS col0 FROM tab2 AS cor0
----
6318
6561
9234
query I rowsort
SELECT col2 * - 21 + + col1 FROM tab0 AS cor0
----
-1631
-607
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2338
SELECT + col1 * CAST( NULL AS DECIMAL ) * - col2 col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2338
SELECT + col1 * CAST ( NULL AS REAL ) * - col2 col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + - col1 FROM tab1 cor0
----
-20
-26
-52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2340
SELECT + col2 * + CAST( NULL AS SIGNED ) + + col0 * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2340
SELECT + col2 * + CAST ( NULL AS INTEGER ) + + col0 * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * - 89 FROM tab0 AS cor0
----
-7654
-8099
-8633
query I rowsort
SELECT DISTINCT + 27 * cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
1593
459
837
query I rowsort
SELECT DISTINCT tab1.col1 - col0 * - 81 FROM tab1
----
269
5194
6493
query I rowsort
SELECT - col2 + + 53 * col2 FROM tab1 AS cor0
----
2808
2964
4992
query I rowsort
SELECT - col1 * 50 + + col1 - col0 AS col2 FROM tab2 AS cor0
----
-1526
-2969
-912
query I rowsort
SELECT DISTINCT + col1 - col1 * - tab1.col2 FROM tab1
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-2347
SELECT ALL - cor0.col0 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL - cor0.col0 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + + 41 * col2 + + col1 FROM tab2 AS cor0
----
1125
1138
1575
query I rowsort
SELECT + 4 + cor0.col0 AS col2 FROM tab2 AS cor0
----
11
82
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 10 + + 38 * + col0 col2 FROM tab0 AS cor0
----
1340
3392
922
query I rowsort
SELECT - col0 * - col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL + + col0 * + col1 - - col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT - 47 AS col1 FROM tab2 cor0
----
-47
-47
-47
query I rowsort
SELECT ALL + cor0.col0 * col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + + ( col1 ) * cor0.col0 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ( - col1 ) * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - 91 + + cor0.col2 * 50 AS col1 FROM tab2 cor0
----
1209
1259
1809
query I rowsort
SELECT tab2.col2 - - col1 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT + 42 + col2 FROM tab1 AS cor0
----
138
96
99
query I rowsort
SELECT - 22 * - col2 AS col2 FROM tab0 AS cor0
----
1804
22
726
query I rowsort
SELECT + col0 + - cor0.col1 * col1 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT ALL + col1 * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT col2 + - col2 * ( cor0.col1 * col1 ) FROM tab2 AS cor0
----
-10944
-25920
-90480
query I rowsort
SELECT ALL ( tab1.col2 ) AS col1 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2365
SELECT - col2 DIV + col1 col0 FROM tab1
----
-2
-5
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2365
SELECT - col2 / + col1 col0 FROM tab1
----
-2
-5
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + cor0.col2 col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - cor0.col0 * + col1 - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT ALL + - col0 * 51 + + 4 * - cor0.col2 FROM tab1 cor0
----
-3492
-369
-4464
query I rowsort
SELECT DISTINCT + - cor0.col2 - - ( col2 * + cor0.col0 ) FROM tab1 AS cor0
----
108
3591
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 col0 FROM tab1
----
23
query I rowsort
SELECT ALL col0 + col1 * col2 AS col1 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT ALL cor0.col2 * col1 + + col1 AS col2 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT ALL + col0 * + col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT + ( ( + col0 ) ) * - 13 FROM tab1
----
-1040
-39
-832
query I rowsort
SELECT - 3 * col0 + col1 FROM tab0
----
-176
-8
14
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2376
SELECT ALL - CAST( + 12 AS SIGNED ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0
skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL - CAST ( + 12 AS INTEGER ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0
query I rowsort
SELECT + 56 + col2 FROM tab1
----
110
113
152
query I rowsort
SELECT col2 + col1 + ( - col0 ) * - col0 * + ( 29 ) FROM tab2
----
1479
176521
181044
query I rowsort
SELECT DISTINCT + col0 + - col1 AS col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT + 48 FROM tab0
----
48
48
48
query I rowsort
SELECT ALL + 66 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
query I rowsort
SELECT + 53 + col1 + col0 AS col1 FROM tab1
----
127
146
82
query I rowsort
SELECT - col2 + cor0.col2 AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2384
SELECT ALL - - col0 * col0 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL - - col0 * col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2385
SELECT ALL col1 * - cor0.col1 + col0 * col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
-164
-249
-679
skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL col1 * - cor0.col1 + col0 * col2 / - col2 AS col2 FROM tab1 AS cor0
----
-164
-249
-679
query I rowsort
SELECT DISTINCT + col1 + - col1 + - col1 * col1 AS col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT col0 * col1 + ( - 57 * - col1 ) + 11 * - ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
12384
6603
8913
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2388
SELECT - - 83 + col1 * + CAST( cor0.col1 AS SIGNED ) + - col1 FROM tab1 AS cor0
----
173
239
733
skipif mysql # not compatible
query I rowsort label-2388
SELECT - - 83 + col1 * + CAST ( cor0.col1 AS INTEGER ) + - col1 FROM tab1 AS cor0
----
173
239
733
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( - col1 ) col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT + col1 * 36 AS col1 FROM tab2 AS cor0
----
1116
2124
612
query I rowsort
SELECT col0 * - 28 FROM tab2 AS cor0
----
-196
-2184
-2212
onlyif mysql # use DIV operator for integer division
query I rowsort label-2392
SELECT + - col0 * col2 DIV col1 FROM tab2 AS cor0
----
-176
-34
-6
skipif mysql # not compatible
query I rowsort label-2392
SELECT + - col0 * col2 / col1 FROM tab2 AS cor0
----
-176
-34
-6
query I rowsort
SELECT DISTINCT - col1 * 31 AS col1 FROM tab2 AS cor0
----
-1829
-527
-961
query I rowsort
SELECT DISTINCT ( col0 ) * + cor0.col0 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2395
SELECT ALL CAST( NULL AS DECIMAL ) * - cor0.col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL CAST ( NULL AS REAL ) * - cor0.col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 27 FROM tab2 cor0
----
27
27
27
query I rowsort
SELECT DISTINCT + 81 * col0 + col0 * + col0 FROM tab0 AS cor0
----
15130
2520
4060
query I rowsort
SELECT - ( col2 ) + col1 AS col0 FROM tab0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - 8 * col2 col2 FROM tab1 AS cor0
----
406
446
755
query I rowsort
SELECT - ( - col2 ) * col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + - col2 * 80 * + cor0.col2 + - col0 AS col0 FROM tab0 AS cor0
----
-115
-538009
-87144
query I rowsort
SELECT ALL 73 + col1 * - col1 FROM tab2 AS cor0
----
-216
-3408
-888
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2403
SELECT ALL + col0 - cor0.col0 * col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL + col0 - cor0.col0 * col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 36 * - 9 col1 FROM tab1 AS cor0
----
-324
-324
-324
query I rowsort
SELECT - ( + col1 ) + + col1 * col2 AS col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL + 3 * col2 + - col1 * - col2 AS col2 FROM tab2 AS cor0
----
1612
760
918
onlyif mysql # use DIV operator for integer division
query I rowsort label-2407
SELECT ALL + col0 DIV cor0.col0 AS col1 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL + col0 / cor0.col0 AS col1 FROM tab0 cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2408
SELECT DISTINCT - col2 DIV cor0.col0 + - col2 FROM tab2 AS cor0
----
-26
-30
-38
skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT - col2 / cor0.col0 + - col2 FROM tab2 AS cor0
----
-26
-30
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2409
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * + col2 + + ( col0 ) AS col0 FROM tab2 AS cor0
----
1612
725
844
skipif mysql # not compatible
query I rowsort label-2409
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * + col2 + + ( col0 ) AS col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT 39 * - col1 + col0 * - col1 * + ( col0 + 59 ) FROM tab2
----
-15531
-185997
-632775
query I rowsort
SELECT 59 AS col2 FROM tab1
----
59
59
59
query I rowsort
SELECT cor0.col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT - - 66 + + col0 * col0 FROM tab1 AS cor0
----
4162
6466
75
query I rowsort
SELECT DISTINCT 62 FROM tab0
----
62
query I rowsort
SELECT ALL + + col2 + cor0.col2 FROM tab2 AS cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( + col1 ) col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + 45 AS col2 FROM tab2 cor0
----
45
45
45
query I rowsort
SELECT ALL + - col2 * col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL 69 FROM tab2, tab2 cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 + col0 col2 FROM tab0 AS cor0
----
-49
-60
5
query I rowsort
SELECT 69 AS col0 FROM tab0 AS cor0
----
69
69
69
query I rowsort
SELECT DISTINCT cor0.col0 * col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + 3 - - cor0.col1 FROM tab2 AS cor0
----
20
34
62
query I rowsort
SELECT DISTINCT 88 + col2 AS col2 FROM tab2 cor0
----
114
115
126
query I rowsort
SELECT ALL - col0 + + col1 * + cor0.col1 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT + col0 - col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col0 * + col1 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT - 82 AS col2 FROM tab1, tab0 cor0
----
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2429
SELECT col1 - - col0 DIV + col0 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-2429
SELECT col1 - - col0 / + col0 FROM tab0
----
87
92
98
query I rowsort
SELECT cor0.col2 + + 38 AS col2 FROM tab0 AS cor0
----
120
39
71
query I rowsort
SELECT ALL + - cor0.col2 * + 78 * col0 AS col0 FROM tab1 AS cor0
----
-12636
-284544
-599040
query I rowsort
SELECT - col1 + ( + 42 ) FROM tab2 AS cor0
----
-17
11
25
query I rowsort
SELECT ALL + - col2 * ( col2 ) + + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT - cor0.col2 + 87 FROM tab2 AS cor0
----
49
60
61
query I rowsort
SELECT ALL + + col0 + - 76 * 91 FROM tab1 AS cor0
----
-6836
-6852
-6913
query I rowsort
SELECT DISTINCT + col1 * ( - cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col0 col1 FROM tab1 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2438
SELECT DISTINCT - - col0 / - col1 - - 90 * col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2438
SELECT DISTINCT - - col0 / - col1 - - 90 * col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + + col0 * ( + 84 + + col1 ) FROM tab2 AS cor0
----
11154
7979
805
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - ( - col1 + - col1 * cor0.col2 ) col0 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + ( - cor0.col0 ) * - col1 col2 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT col1 + col2 * col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT DISTINCT 92 + col2 * tab2.col2 AS col0 FROM tab2
----
1536
768
821
query I rowsort
SELECT col1 * - col0 + col0 * - col2 + - col2 * - cor0.col0 AS col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col2 * - col2 * 70 AS col0 FROM tab2
----
-101080
-47320
-51030
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2446
SELECT ALL - CAST( 7 AS SIGNED ) AS col1 FROM tab0, tab2 cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5
skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL - CAST ( 7 AS INTEGER ) AS col1 FROM tab0, tab2 cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5
query I rowsort
SELECT + 56 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
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 DISTINCT - col2 * + ( - 61 ) - col2 FROM tab1
----
3240
3420
5760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * cor0.col1 - - col2 col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT + cor0.col2 * col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT + + col0 - 78 FROM tab1 AS cor0
----
-14
-75
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2453
SELECT col1 * + CAST( NULL AS SIGNED ) + - 52 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2453
SELECT col1 * + CAST ( NULL AS INTEGER ) + - 52 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + ( - col0 + + col2 ) * 85 AS col2 FROM tab0 AS cor0
----
-2889
-513
798
query I rowsort
SELECT ALL 21 AS col2 FROM tab0 AS cor0
----
21
21
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2456
SELECT CAST( ( - col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-2456
SELECT CAST ( ( - col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - - col2 + - 4 FROM tab1 AS cor0
----
50
53
92
query I rowsort
SELECT ALL - - cor0.col2 + + 52 AS col2 FROM tab2 AS cor0
----
78
79
90
query I rowsort
SELECT + - col1 + + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2460
SELECT DISTINCT + cor0.col1 + cor0.col1 DIV col2 AS col0 FROM tab0 cor0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-2460
SELECT DISTINCT + cor0.col1 + cor0.col1 / col2 AS col0 FROM tab0 cor0
----
194
88
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-2461
SELECT DISTINCT + - col1 DIV + col1 + - col0 * col2 FROM tab0 AS cor0
----
-36
-7299
-793
skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT + - col1 / + col1 + - col0 * col2 FROM tab0 AS cor0
----
-36
-7299
-793
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * cor0.col1 col2 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) + col0 * col2 col1 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT col0 + - col0 * + col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col0 col1 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + tab2.col0 * - CAST ( col2 AS REAL ) FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT tab2.col1 * col1 AS col2 FROM tab2
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT col1 + - col1 * 64 AS col0 FROM tab2 AS cor0
----
-1071
-1953
-3717
query I rowsort
SELECT + - 60 * - col0 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-34560
-475260
-73500
query I rowsort
SELECT - + 74 * + col2 FROM tab1 AS cor0
----
-3996
-4218
-7104
query I rowsort
SELECT ( - col2 ) FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT - cor0.col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ( col2 * col2 + col0 ) AS col0 FROM tab2
----
1523
736
754
query I rowsort
SELECT - 82 * col0 AS col2 FROM tab2 AS cor0
----
-574
-6396
-6478
query I rowsort
SELECT - + col0 * col1 - + 44 * + col2 * + ( 2 ) FROM tab0 cor0
----
-15315
-3483
-4968
onlyif mysql # use DIV operator for integer division
query I rowsort label-2477
SELECT - - 73 DIV - col2 FROM tab0 AS cor0
----
-2
-73
0
skipif mysql # not compatible
query I rowsort label-2477
SELECT - - 73 / - col2 FROM tab0 AS cor0
----
-2
-73
0
query I rowsort
SELECT DISTINCT - + col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + col2 * - ( col2 ) FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-2480
SELECT + col1 DIV 54 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2480
SELECT + col1 / 54 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - cor0.col0 * + 58 FROM tab1 AS cor0
----
-174
-3712
-4640
query I rowsort
SELECT DISTINCT + + col2 + col2 AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL + - col0 * - col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT col0 + 46 AS col1 FROM tab2 AS cor0
----
124
125
53
query I rowsort
SELECT - col1 - + col0 AS col1 FROM tab1
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-2486
SELECT DISTINCT - 65 * col2 DIV tab0.col1 FROM tab0
----
-24
-58
0
skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT - 65 * col2 / tab0.col1 FROM tab0
----
-24
-58
0
query I rowsort
SELECT - col2 * 38 * col0 - col0 * 70 AS col2 FROM tab1
----
-143104
-297440
-6366
query I rowsort
SELECT col0 + 5 AS col2 FROM tab2
----
12
83
84
query I rowsort
SELECT DISTINCT + col2 + 18 FROM tab1
----
114
72
75
query I rowsort
SELECT col0 * + 23 + - col1 FROM tab2
----
130
1735
1800
query I rowsort
SELECT + 49 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT + col0 + col0 * - 32 - col1 FROM tab1 cor0
----
-119
-1994
-2493
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 56 + col1 col2 FROM tab2 cor0
----
-1397
-1481
-2111
query I rowsort
SELECT + col2 - col0 * - col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-2495
SELECT ALL - 90 DIV col2 AS col2 FROM tab0
----
-1
-2
-90
skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL - 90 / col2 AS col2 FROM tab0
----
-1
-2
-90
query I rowsort
SELECT ALL 3 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 col2 FROM tab0
----
51
51
51
query I rowsort
SELECT DISTINCT 38 * cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
1330
3382
912
query I rowsort
SELECT - ( 3 ) AS col2 FROM tab0 AS cor0
----
-3
-3
-3
query I rowsort
SELECT + - 14 FROM tab1 AS cor0
----
-14
-14
-14
query I rowsort
SELECT - + cor0.col1 * - col2 + col2 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2502
SELECT DISTINCT - CAST( cor1.col1 AS SIGNED ) FROM tab1, tab0 AS cor0, tab2 cor1
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT - CAST ( cor1.col1 AS INTEGER ) FROM tab1, tab0 AS cor0, tab2 cor1
----
-17
-31
-59
query I rowsort
SELECT + col2 + + col0 * ( 84 ) AS col2 FROM tab0 AS cor0
----
2049
2941
7558
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2504
SELECT ALL - col1 * cor0.col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL - col1 * cor0.col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( col1 ) + - 8 * cor0.col1 FROM tab0 AS cor0
----
-774
-819
-873
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * + col2 + col2 col1 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT + 19 + + col0 FROM tab2 AS cor0
----
26
97
98
query I rowsort
SELECT DISTINCT - 56 * col2 + - col0 AS col1 FROM tab1 AS cor0
----
-3027
-3256
-5456
query I rowsort
SELECT - + col1 * - 46 AS col0 FROM tab0 AS cor0
----
3956
4186
4462
query I rowsort
SELECT DISTINCT + col0 + col2 + + cor0.col0 FROM tab0 AS cor0
----
260
71
81
query I rowsort
SELECT DISTINCT + col1 + + col2 + + col2 AS col0 FROM tab1 AS cor0
----
124
134
205
query I rowsort
SELECT - 65 + - col1 * col2 FROM tab0 AS cor0
----
-162
-2903
-7527
query I rowsort
SELECT DISTINCT + 78 AS col2 FROM tab1 AS cor0
----
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2514
SELECT + + CAST( NULL AS DECIMAL ) + - col0 * col1 * - ( + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2514
SELECT + + CAST ( NULL AS REAL ) + - col0 * col1 * - ( + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 8 - + col1 FROM tab0 AS cor0
----
-105
-94
-99
query I rowsort
SELECT DISTINCT + 12 + - ( - col0 ) FROM tab2 AS cor0
----
19
90
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 * 96 col1 FROM tab1 AS cor0
----
5184
5472
9216
query I rowsort
SELECT + 34 * - col1 FROM tab0 AS cor0
----
-2924
-3094
-3298
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2519
SELECT CAST( NULL AS DECIMAL ) + ( col0 ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2519
SELECT CAST ( NULL AS REAL ) + ( col0 ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + 68 * + col2 - + col2 FROM tab2 AS cor0
----
-1794
-1863
-2622
query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 - + 23 FROM tab0 AS cor0
----
-2087
-3418
-8122
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2522
SELECT 71 + - 74 * - col0 * + CAST( - 95 AS SIGNED ) FROM tab2
----
-49139
-548269
-555299
skipif mysql # not compatible
query I rowsort label-2522
SELECT 71 + - 74 * - col0 * + CAST ( - 95 AS INTEGER ) FROM tab2
----
-49139
-548269
-555299
query I rowsort
SELECT DISTINCT + ( + tab2.col1 ) - col2 * ( col2 + col0 ) AS col0 FROM tab2
----
-2645
-4429
-887
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT DISTINCT cor0.col2 * col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT ( - cor0.col0 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT + col0 + + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT - - col1 * ( ( col2 ) * ( 72 ) ) AS col2 FROM tab0 AS cor0
----
204336
537264
6984
query I rowsort
SELECT ALL col2 * - 77 FROM tab2 AS cor0
----
-2002
-2079
-2926
query I rowsort
SELECT ALL + col0 * 98 FROM tab0 AS cor0
----
2352
3430
8722
onlyif mysql # use DIV operator for integer division
query I rowsort label-2532
SELECT 6 + tab2.col1 DIV tab2.col0 AS col2 FROM tab2
----
10
6
6
skipif mysql # not compatible
query I rowsort label-2532
SELECT 6 + tab2.col1 / tab2.col0 AS col2 FROM tab2
----
10
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
query I rowsort
SELECT - cor0.col1 - 71 FROM tab0, tab0 AS cor0
----
9 values hashing to fd2d35a2d0644b64df952f50966b15ed
query I rowsort
SELECT - col0 * tab2.col2 + + 43 FROM tab2
----
-146
-1985
-2959
query I rowsort
SELECT - tab2.col1 + 47 FROM tab2
----
-12
16
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 56 col2 FROM tab0
----
145
80
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-2538
SELECT DISTINCT - 30 DIV - 73 col2 FROM tab2, tab2 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2538
SELECT DISTINCT - 30 / - 73 col2 FROM tab2, tab2 cor0
----
0
query I rowsort
SELECT ALL + 6 FROM tab2, tab2 cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT ALL + col1 * 12 FROM tab2
----
204
372
708
query I rowsort
SELECT DISTINCT + 23 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
23
query I rowsort
SELECT ALL + cor0.col2 * cor0.col1 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 16ae0e1090cb09b93854a4788f17716b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * ( + tab0.col2 ) col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - 72 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT col1 * 60 FROM tab1
----
1560
600
780
query I rowsort
SELECT DISTINCT col1 * - 40 FROM tab0
----
-3440
-3640
-3880
query I rowsort
SELECT 60 * - col1 AS col1 FROM tab2 AS cor0
----
-1020
-1860
-3540
query I rowsort
SELECT ALL - cor0.col0 + + 7 * - col2 FROM tab1 AS cor0
----
-381
-463
-752
query I rowsort
SELECT DISTINCT col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL - cor1.col1 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT - 21 * col2 FROM tab1 AS cor0
----
-1134
-1197
-2016
query I rowsort
SELECT 77 AS col1 FROM tab1 AS cor0
----
77
77
77
query I rowsort
SELECT + 34 * col0 * - col2 AS col0 FROM tab1 AS cor0
----
-124032
-261120
-5508
query I rowsort
SELECT DISTINCT ( col0 ) * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT - col2 + + col0 * col1 * + 95 FROM tab2 AS cor0
----
127547
20588
437164
query I rowsort
SELECT 46 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT col1 + + tab1.col0 + tab1.col0 FROM tab1
----
138
173
32
query I rowsort
SELECT tab0.col2 * tab0.col0 + + col1 AS col0 FROM tab0
----
132
7389
878
query I rowsort
SELECT 14 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
query I rowsort
SELECT col1 + - col2 + - col0 FROM tab1
----
-111
-163
-31
query I rowsort
SELECT + - 98 * col1 - col1 FROM tab1 AS cor0
----
-1287
-2574
-990
onlyif mysql # use DIV operator for integer division
query I rowsort label-2563
SELECT DISTINCT - col1 + cor0.col2 - col2 DIV + col2 FROM tab0 AS cor0
----
-10
-54
-97
skipif mysql # not compatible
query I rowsort label-2563
SELECT DISTINCT - col1 + cor0.col2 - col2 / + col2 FROM tab0 AS cor0
----
-10
-54
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + col1 col1 FROM tab1 AS cor0
----
-20
-26
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-2565
SELECT 8 + cor0.col2 DIV + col0 FROM tab0 AS cor0
----
8
8
9
skipif mysql # not compatible
query I rowsort label-2565
SELECT 8 + cor0.col2 / + col0 FROM tab0 AS cor0
----
8
8
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2566
SELECT ALL + - col0 DIV cor0.col1 + - col0 FROM tab0 cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL + - col0 / cor0.col1 + - col0 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT ALL col0 + cor0.col2 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + 38 * cor0.col2 + - ( - col0 ) AS col2 FROM tab2 cor0
----
1033
1066
1523
query I rowsort
SELECT - 37 + - col2 AS col0 FROM tab0 AS cor0
----
-119
-38
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2570
SELECT col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2570
SELECT col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2571
SELECT cor0.col2 + + col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-2571
SELECT cor0.col2 + + col2 / + col0 AS col1 FROM tab0 AS cor0
----
1
34
82
query I rowsort
SELECT + col1 + - ( col1 + cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT col0 + 39 * col1 FROM tab0 AS cor0
----
3378
3638
3818
query I rowsort
SELECT DISTINCT + col0 + col0 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT - col0 + + 95 AS col0 FROM tab0 cor0
----
6
60
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( col0 + + col2 ) * + cor0.col2 col1 FROM tab2 AS cor0
----
2678
4408
891
query I rowsort
SELECT DISTINCT - 95 AS col2 FROM tab2, tab1, tab2 AS cor0
----
-95
query I rowsort
SELECT DISTINCT + tab1.col1 + cor0.col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
9 values hashing to 6c5da2c0e2b4192a86a061d47e155396
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 * + tab0.col0 ) col1 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-2580
SELECT - col2 DIV tab0.col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2580
SELECT - col2 / tab0.col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ( + 34 ) AS col1 FROM tab2
----
34
34
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( col1 * + 17 ) col1 FROM tab2 cor0
----
22831
3689
78234
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2583
SELECT - CAST( - col0 AS SIGNED ) AS col1 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-2583
SELECT - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 + ( + 28 ) col2 FROM tab0 AS cor0
----
-25
-68
19
query I rowsort
SELECT - 67 * col0 FROM tab1 cor0
----
-201
-4288
-5360
query I rowsort
SELECT - col1 * - col0 * + col2 + + col2 FROM tab0 AS cor0
----
3396
664200
68145
query I rowsort
SELECT 22 * col0 + - 80 AS col0 FROM tab1
----
-14
1328
1680
query I rowsort
SELECT + + col1 + - col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-2589
SELECT - col2 DIV + col0 + + col0 + + col0 AS col2 FROM tab1 cor0
----
-12
128
159
skipif mysql # not compatible
query I rowsort label-2589
SELECT - col2 / + col0 + + col0 + + col0 AS col2 FROM tab1 cor0
----
-12
128
159
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - col2 - col2 AS col1 FROM tab0 cor0
----
-164
-2
-66
query I rowsort
SELECT ALL + cor0.col2 + + tab2.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to a451dbe509e87d1600234f39388c7bd3
query I rowsort
SELECT 73 FROM tab2, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT + col0 - cor0.col2 * - col2 AS col1 FROM tab2 cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT - col1 + col2 AS col2 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT + col1 * col0 * col0 FROM tab1 AS cor0
----
234
40960
83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 col2 FROM tab2
----
43
43
43
query I rowsort
SELECT + col1 * - 60 FROM tab2 AS cor0
----
-1020
-1860
-3540
query I rowsort
SELECT col0 * 31 * col2 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
113728
239120
5100
query I rowsort
SELECT - + col2 + col1 * col2 AS col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT - col1 + 77 * + col2 FROM tab1 AS cor0
----
4132
4379
7379
query I rowsort
SELECT ( + 71 ) FROM tab0 AS cor0
----
71
71
71
query I rowsort
SELECT tab0.col2 * + tab0.col2 + 48 * 52 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 044ab5f3a643ad3860ca70a6d2676f94
query I rowsort
SELECT DISTINCT - col1 * + col0 AS col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + + ( + 81 ) AS col0 FROM tab0 AS cor0
----
81
81
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * cor0.col0 * - col1 col2 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT DISTINCT cor0.col0 + + col1 * col1 FROM tab2 AS cor0
----
3559
368
968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( 67 ) col1 FROM tab2 AS cor0
----
-67
-67
-67
query I rowsort
SELECT + col2 + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT - 25 * + 55 AS col2 FROM tab1 AS cor0
----
-1375
-1375
-1375
query I rowsort
SELECT + 20 * ( + col1 ) AS col0 FROM tab0 AS cor0
----
1720
1820
1940
query I rowsort
SELECT ALL tab1.col1 * + ( 52 * col1 ) AS col1 FROM tab1
----
35152
5200
8788
onlyif mysql # use DIV operator for integer division
query I rowsort label-2613
SELECT ALL - col0 DIV col0 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL - col0 / col0 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT cor0.col1 AS col0 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 25 ) col1 FROM tab1 AS cor0
----
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-2616
SELECT ALL - col1 DIV + col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL - col1 / + col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + 51 * + 48 FROM tab2 AS cor0
----
2448
2448
2448
query I rowsort
SELECT DISTINCT + + 97 FROM tab0 AS cor0
----
97
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0
query IIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0 CROSS JOIN tab0 AS cor1
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
query I rowsort
SELECT - 14 + - 13 AS col1 FROM tab2 AS cor0
----
-27
-27
-27
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
3645 values hashing to 862fba9ac85fdf2cec88a0bec0808b7e
query I rowsort
SELECT + tab1.col2 - - 95 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 6dd2a79a8389715cd5d45ab6791c551f
onlyif mysql # use DIV operator for integer division
query I rowsort label-2624
SELECT ALL - col2 DIV + 35 AS col0 FROM tab1 AS cor0
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL - col2 / + 35 AS col0 FROM tab1 AS cor0
----
-1
-1
-2
query I rowsort
SELECT 55 * tab0.col1 AS col2 FROM tab0
----
4730
5005
5335
query I rowsort
SELECT DISTINCT + col0 + col1 + - col0 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT tab2.col1 + col2 * tab2.col0 AS col2 FROM tab2
----
2087
220
3019
query I rowsort
SELECT DISTINCT - col0 + + 28 FROM tab0
----
-61
-7
4
query I rowsort
SELECT - tab0.col0 - + 88 FROM tab0
----
-112
-123
-177
query I rowsort
SELECT ALL + col0 + col0 * - 64 AS col2 FROM tab2
----
-441
-4914
-4977
query I rowsort
SELECT - col1 * - 20 + col1 + col1 FROM tab1 AS cor0
----
220
286
572
query I rowsort
SELECT + col2 * col2 * 68 AS col2 FROM tab1 AS cor0
----
198288
220932
626688
onlyif mysql # use DIV operator for integer division
query I rowsort label-2633
SELECT ALL col0 DIV col0 + col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL col0 / col0 + col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT + 24 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT - 63 + tab2.col0 * ( 90 ) FROM tab2
----
567
6957
7047
onlyif mysql # use DIV operator for integer division
query I rowsort label-2636
SELECT DISTINCT + + col2 + + col2 DIV - col0 col1 FROM tab0 AS cor0
----
1
32
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT + + col2 + + col2 / - col0 col1 FROM tab0 AS cor0
----
1
32
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2637
SELECT DISTINCT - col0 DIV col1 + col2 DIV col1 AS col2 FROM tab2 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT - col0 / col1 + col2 / col1 AS col2 FROM tab2 AS cor0
----
-1
-2
0
query I rowsort
SELECT ALL col0 + cor0.col0 - cor0.col1 FROM tab0 AS cor0
----
-27
-38
87
query I rowsort
SELECT ALL - col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL 82 + col1 AS col0 FROM tab0 AS cor0
----
168
173
179
query I rowsort
SELECT DISTINCT col0 * col0 + 80 - 29 AS col0 FROM tab2 AS cor0
----
100
6135
6292
query I rowsort
SELECT DISTINCT - - cor0.col0 + - col1 * col2 + + col0 AS col0 FROM tab0 AS cor0
----
-27
-2790
-7284
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2643
SELECT ALL - col0 + + cor0.col1 - - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL - col0 + + cor0.col1 - - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col1 * - col2 - 69 * + col0 AS col0 FROM tab2 AS cor0
----
-1320
-6097
-6916
query I rowsort
SELECT ALL 1 * col1 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2646
SELECT ALL cor0.col1 + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2646
SELECT ALL cor0.col1 + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT + cor0.col2 * + 79 FROM tab1 AS cor0
----
4266
4503
7584
query I rowsort
SELECT ALL + col0 * ( + col2 ) + col2 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2650
SELECT DISTINCT + ( + col0 ) - cor0.col2 * + CAST( col2 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
22606
24627
39962
skipif mysql # not compatible
query I rowsort label-2650
SELECT DISTINCT + ( + col0 ) - cor0.col2 * + CAST ( col2 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
22606
24627
39962
onlyif mysql # use DIV operator for integer division
query I rowsort label-2651
SELECT ( + col2 ) * + col2 + - 40 * col2 DIV col1 AS col0 FROM tab1 AS cor0
----
2833
3021
8921
skipif mysql # not compatible
query I rowsort label-2651
SELECT ( + col2 ) * + col2 + - 40 * col2 / col1 AS col0 FROM tab1 AS cor0
----
2833
3021
8921
query I rowsort
SELECT DISTINCT + ( - 44 ) - col1 FROM tab0 AS cor0
----
-130
-135
-141
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 * col0 col0 FROM tab2 AS cor0
----
-106097
-1519
-358956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT - - cor0.col1 + 35 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to a12d43158e0e29425ebbc4ac7df7ce22
query I rowsort
SELECT - 37 * tab2.col0 FROM tab2
----
-259
-2886
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-2657
SELECT DISTINCT col1 DIV - 12 AS col1 FROM tab0 AS cor0
----
-7
-8
skipif mysql # not compatible
query I rowsort label-2657
SELECT DISTINCT col1 / - 12 AS col1 FROM tab0 AS cor0
----
-7
-8
query I rowsort
SELECT DISTINCT - col2 * - 94 AS col1 FROM tab1 AS cor0
----
5076
5358
9024
query I rowsort
SELECT + 85 FROM tab0, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT ALL + cor0.col0 * 32 * col1 AS col2 FROM tab1 AS cor0
----
20480
2496
33280
query I rowsort
SELECT - 45 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 + + 44 col2 FROM tab2
----
-15
13
27
query I rowsort
SELECT DISTINCT + + ( col1 ) + cor0.col1 * col0 AS col1 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-2664
SELECT ALL col1 DIV + cor0.col1 + ( col0 * col2 ) AS col0 FROM tab2 AS cor0
----
190
2029
3003
skipif mysql # not compatible
query I rowsort label-2664
SELECT ALL col1 / + cor0.col1 + ( col0 * col2 ) AS col0 FROM tab2 AS cor0
----
190
2029
3003
query I rowsort
SELECT - - 6 + + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-156
-3642
-7674
query I rowsort
SELECT + 63 * + col1 AS col0 FROM tab1 cor0
----
1638
630
819
query I rowsort
SELECT - 27 FROM tab1 AS cor0
----
-27
-27
-27
query I rowsort
SELECT col2 * - col2 * col2 AS col0 FROM tab2
----
-17576
-19683
-54872
query I rowsort
SELECT - 39 * + tab0.col0 FROM tab0
----
-1365
-3471
-936
query I rowsort
SELECT 32 + + col0 * + col1 AS col2 FROM tab2
----
1375
249
4634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2671
SELECT - CAST( NULL AS SIGNED ) * - tab2.col2 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2671
SELECT - CAST ( NULL AS INTEGER ) * - tab2.col2 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 13 FROM tab2 cor0
----
13
13
13
query I rowsort
SELECT DISTINCT 70 AS col2 FROM tab0, tab2 AS cor0
----
70
query I rowsort
SELECT + + 61 FROM tab1 cor0
----
61
61
61
query I rowsort
SELECT ALL 20 AS col1 FROM tab2, tab1 cor0 CROSS JOIN tab0
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4
query I rowsort
SELECT tab1.col0 FROM tab1, tab2 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT - 62 * tab1.col0 + - col0 AS col2 FROM tab1
----
-189
-4032
-5040
query I rowsort
SELECT 33 * - col2 * - ( col1 ) FROM tab1
----
18810
41184
46332
query I rowsort
SELECT DISTINCT + + 78 FROM tab1 AS cor0
----
78
query I rowsort
SELECT ALL ( + col1 ) * col2 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2681
SELECT ALL + col1 + col2 DIV ( ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL + col1 + col2 / ( ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL ( + col2 + col2 ) AS col2 FROM tab1
----
108
114
192
query I rowsort
SELECT ALL - 46 * tab0.col1 AS col0 FROM tab0
----
-3956
-4186
-4462
onlyif mysql # use DIV operator for integer division
query I rowsort label-2684
SELECT ALL + tab2.col2 DIV col0 AS col2 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL + tab2.col2 / col0 AS col2 FROM tab2
----
0
0
3
query I rowsort
SELECT DISTINCT tab0.col1 FROM tab0, tab1 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2686
SELECT + + col1 + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
109
67
80
skipif mysql # not compatible
query I rowsort label-2686
SELECT + + col1 + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2687
SELECT + col0 DIV - col2 - col1 col1 FROM tab1 AS cor0
----
-11
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2687
SELECT + col0 / - col2 - col1 col1 FROM tab1 AS cor0
----
-11
-13
-26
query I rowsort
SELECT ALL - col0 + col2 * - col1 * 95 FROM tab2 AS cor0
----
-145808
-61449
-79522
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2689
SELECT ALL + - CAST( NULL AS SIGNED ) * - 3 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL + - CAST ( NULL AS INTEGER ) * - 3 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col0 + 23 FROM tab1 AS cor0
----
-41
-57
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 * col1 + col1 col1 FROM tab0 AS cor0
----
-4644
-4914
-5238
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 * + cor0.col0 + - cor0.col0 col2 FROM tab0 AS cor0
----
-1260
-19032
-649611
query I rowsort
SELECT ALL - + col1 * 11 FROM tab0 AS cor0
----
-1001
-1067
-946
query I rowsort
SELECT DISTINCT + + ( col2 ) * col2 + - col2 AS col1 FROM tab0 cor0
----
0
1056
6642
query I rowsort
SELECT + 29 * cor0.col0 - + cor0.col2 AS col2 FROM tab2 AS cor0
----
176
2236
2253
query I rowsort
SELECT DISTINCT 59 + col1 * col0 FROM tab1 AS cor0
----
1099
137
699
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2697
SELECT DISTINCT - CAST( 73 AS SIGNED ) + - col1 FROM tab1 AS cor0
----
-83
-86
-99
skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT - CAST ( 73 AS INTEGER ) + - col1 FROM tab1 AS cor0
----
-83
-86
-99
query I rowsort
SELECT ALL + 58 FROM tab1 AS cor0
----
58
58
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-2699
SELECT + col1 DIV col2 + + col2 FROM tab0 AS cor0
----
35
83
98
skipif mysql # not compatible
query I rowsort label-2699
SELECT + col1 / col2 + + col2 FROM tab0 AS cor0
----
35
83
98
query I rowsort
SELECT + + cor0.col1 * cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 62 col1 FROM tab2 AS cor0
----
140
141
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-2702
SELECT DISTINCT + col0 + col2 DIV 17 FROM tab2 AS cor0
----
79
8
81
skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT + col0 + col2 / 17 FROM tab2 AS cor0
----
79
8
81
query I rowsort
SELECT - col2 + + col0 * + 6 * col2 FROM tab2 AS cor0
----
1107
12142
17974
query I rowsort
SELECT - col0 * - ( - col1 ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT col0 * + ( cor0.col0 ) FROM tab1 cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor1.col2 col0 FROM tab2, tab2 cor0, tab1 AS cor1, tab2 cor2
----
81 values hashing to 2df272448a67587d4635afedff278dcc
query I rowsort
SELECT ALL + col2 * col2 + + col0 AS col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT col1 - + col1 * col1 FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT col2 * - col2 * + col0 FROM tab0
----
-26136
-35
-598436
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2710
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
query I rowsort
SELECT ALL - ( col0 ) * col1 AS col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT 25 AS col0 FROM tab1
----
25
query I rowsort
SELECT - - 19 + + col1 AS col2 FROM tab1 AS cor0
----
29
32
45
query I rowsort
SELECT ALL - tab1.col1 * col0 + + col1 FROM tab1
----
-1027
-52
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-2715
SELECT - - col1 DIV col0 + col0 FROM tab2 AS cor0
----
11
78
79
skipif mysql # not compatible
query I rowsort label-2715
SELECT - - col1 / col0 + col0 FROM tab2 AS cor0
----
11
78
79
query I rowsort
SELECT col2 + col1 * col2 * 32 AS col1 FROM tab0 cor0
----
238866
3105
90849
query I rowsort
SELECT 98 * cor0.col2 * + col2 AS col0 FROM tab2 AS cor0
----
141512
66248
71442
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2718
SELECT + + 97 + - col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2718
SELECT + + 97 + - col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col0 + + col2 * + ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
1523
736
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-2720
SELECT + col1 + - col0 DIV + 55 AS col2 FROM tab1 AS cor0
----
12
26
9
skipif mysql # not compatible
query I rowsort label-2720
SELECT + col1 + - col0 / + 55 AS col2 FROM tab1 AS cor0
----
12
26
9
query I rowsort
SELECT - - 45 FROM tab2 AS cor0
----
45
45
45
query I rowsort
SELECT ALL 43 AS col2 FROM tab1 AS cor0
----
43
43
43
query I rowsort
SELECT DISTINCT - + 11 * col0 + - col1 FROM tab1 AS cor0
----
-59
-714
-893
query I rowsort
SELECT ALL + cor0.col2 * col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT + 20 * col0 FROM tab1 AS cor0
----
1280
1600
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-2726
SELECT - - col1 + - col2 DIV + ( col1 ) FROM tab2 AS cor0
----
15
31
59
skipif mysql # not compatible
query I rowsort label-2726
SELECT - - col1 + - col2 / + ( col1 ) FROM tab2 AS cor0
----
15
31
59
query I rowsort
SELECT ALL + 72 AS col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
query I rowsort
SELECT DISTINCT - 71 + col0 * + 34 FROM tab2
----
167
2581
2615
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2729
SELECT ALL col1 + col1 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL col1 + col1 * CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 47 * col1 + + 40 AS col0 FROM tab0
----
-4002
-4237
-4519
query I rowsort
SELECT ALL + + col1 + - col0 AS col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT DISTINCT + - cor0.col2 * col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-2733
SELECT DISTINCT + - ( col1 ) DIV ( + col0 ) - + col0 * col0 * + col2 FROM tab1 AS cor0
----
-233472
-494
-614400
skipif mysql # not compatible
query I rowsort label-2733
SELECT DISTINCT + - ( col1 ) / ( + col0 ) - + col0 * col0 * + col2 FROM tab1 AS cor0
----
-233472
-494
-614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-2734
SELECT - 58 + col2 * 71 DIV col0 AS col1 FROM tab0 AS cor0
----
-56
39
7
skipif mysql # not compatible
query I rowsort label-2734
SELECT - 58 + col2 * 71 / col0 AS col1 FROM tab0 AS cor0
----
-56
39
7
query I rowsort
SELECT + - 87 + col0 * - 28 FROM tab1 AS cor0
----
-171
-1879
-2327
query I rowsort
SELECT DISTINCT - col2 * - col0 - 55 FROM tab0 AS cor0
----
-20
7243
737
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - tab1.col1 ) * - col2 + col1 col1 FROM tab1
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
onlyif mysql # use DIV operator for integer division
query I rowsort label-2739
SELECT + col2 DIV - cor0.col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2739
SELECT + col2 / - cor0.col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL col0 * 80 AS col2 FROM tab0 cor0
----
1920
2800
7120
query I rowsort
SELECT ALL + col1 * ( 13 ) FROM tab0 AS cor0
----
1118
1183
1261
query I rowsort
SELECT DISTINCT + col1 + - 55 AS col1 FROM tab2 AS cor0
----
-24
-38
4
query I rowsort
SELECT DISTINCT + + cor0.col0 * - col0 + + cor0.col1 FROM tab1 cor0
----
-4086
-6387
17
query I rowsort
SELECT DISTINCT + col2 + ( cor0.col1 ) FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL + col1 + 50 FROM tab1 AS cor0
----
60
63
76
query I rowsort
SELECT ALL - + col0 - 6 AS col2 FROM tab0 AS cor0
----
-30
-41
-95
query I rowsort
SELECT ALL col0 * 59 + - 72 AS col0 FROM tab1 AS cor0
----
105
3704
4648
query I rowsort
SELECT DISTINCT col1 * - 3 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
1920
234
3120
query I rowsort
SELECT DISTINCT + - col1 + ( - col0 ) * col0 AS col0 FROM tab1 AS cor0
----
-35
-4106
-6413
query I rowsort
SELECT DISTINCT - col0 * + cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2751
SELECT - + CAST( col0 AS SIGNED ) * col2 + 43 AS col1 FROM tab2 AS cor0
----
-146
-1985
-2959
skipif mysql # not compatible
query I rowsort label-2751
SELECT - + CAST ( col0 AS INTEGER ) * col2 + 43 AS col1 FROM tab2 AS cor0
----
-146
-1985
-2959
query I rowsort
SELECT + + 51 * - col0 + + col0 FROM tab1 cor0
----
-150
-3200
-4000
onlyif mysql # use DIV operator for integer division
query I rowsort label-2753
SELECT + col0 - - col0 DIV + col0 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-2753
SELECT + col0 - - col0 / + col0 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT + + 41 + + 71 FROM tab0 AS cor0
----
112
112
112
query I rowsort
SELECT + 84 + col0 AS col2 FROM tab1 cor0
----
148
164
87
query I rowsort
SELECT col2 + - 90 * col1 AS col1 FROM tab0 cor0
----
-7707
-8108
-8729
query I rowsort
SELECT ALL - + 90 FROM tab2 AS cor0
----
-90
-90
-90
query I rowsort
SELECT + 17 AS col2 FROM tab0 cor0
----
17
17
17
query I rowsort
SELECT ALL + cor0.col0 * 54 * col1 AS col0 FROM tab1 AS cor0
----
34560
4212
56160
query I rowsort
SELECT DISTINCT - 7 + col2 FROM tab0 AS cor0
----
-6
26
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-2761
SELECT - col0 DIV col1 - - col0 FROM tab2 AS cor0
----
7
75
77
skipif mysql # not compatible
query I rowsort label-2761
SELECT - col0 / col1 - - col0 FROM tab2 AS cor0
----
7
75
77
query I rowsort
SELECT ALL + 7 + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-17
-28
-82
query I rowsort
SELECT DISTINCT - col0 * + 62 AS col1 FROM tab1
----
-186
-3968
-4960
onlyif mysql # use DIV operator for integer division
query I rowsort label-2764
SELECT DISTINCT - + ( col2 ) DIV + col0 + col1 FROM tab2 cor0
----
17
28
59
skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT - + ( col2 ) / + col0 + col1 FROM tab2 cor0
----
17
28
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2765
SELECT ALL + CAST( NULL AS SIGNED ) * - col1 - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL + CAST ( NULL AS INTEGER ) * - col1 - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 98 * + cor0.col0 + - cor0.col0 FROM tab0 cor0
----
-2376
-3465
-8811
query I rowsort
SELECT ALL + col0 + cor0.col0 * cor0.col1 * col2 - - col2 * col0 FROM tab0 AS cor0
----
3465
671505
68928
query I rowsort
SELECT ALL + col2 * 74 AS col2 FROM tab0 AS cor0
----
2442
6068
74
query I rowsort
SELECT ALL + 99 AS col1 FROM tab1 AS cor0
----
99
99
99
query I rowsort
SELECT DISTINCT + col0 + col1 * ( col1 ) FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT ALL - + col2 * + col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ( 20 ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab0, tab0 AS cor1
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0
query I rowsort
SELECT + col0 + col2 - + col0 AS col0 FROM tab0
----
1
33
82
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2 cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127
query I rowsort
SELECT - ( + col1 ) + + col0 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2777
SELECT ALL + col1 + col1 DIV col0 FROM tab0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL + col1 + col1 / col0 FROM tab0
----
89
92
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-2778
SELECT + 34 DIV col1 AS col2 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-2778
SELECT + 34 / col1 AS col2 FROM tab2 AS cor0
----
0
1
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2779
SELECT + + CAST( NULL AS DECIMAL ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2779
SELECT + + CAST ( NULL AS REAL ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col1 - 9 FROM tab1, tab1 cor0
----
9 values hashing to b96dd78ead8cbf345233c5d9b8832bd2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col0 col0 FROM tab2
----
0
0
0
query I rowsort
SELECT - col0 * - 36 AS col0 FROM tab1
----
108
2304
2880
query I rowsort
SELECT 92 * + col0 AS col1 FROM tab1
----
276
5888
7360
query I rowsort
SELECT col1 * ( tab2.col1 ) + - tab2.col1 FROM tab2
----
272
3422
930
onlyif mysql # use DIV operator for integer division
query I rowsort label-2785
SELECT 88 * - 47 * - col1 + - 55 * 94 DIV col0 col2 FROM tab2 AS cor0
----
127478
243958
70247
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2785
SELECT 88 * - 47 * - col1 + - 55 * 94 / col0 col2 FROM tab2 AS cor0
----
127478
243958
70247
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - col1 ) + - col0 col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT 12 FROM tab2 cor0
----
12
query I rowsort
SELECT + - 61 AS col0 FROM tab0 AS cor0
----
-61
-61
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-2789
SELECT + 58 + col2 + col0 * 1 DIV 62 FROM tab1 cor0
----
112
116
155
skipif mysql # not compatible
query I rowsort label-2789
SELECT + 58 + col2 + col0 * 1 / 62 FROM tab1 cor0
----
112
116
155
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2790
SELECT ALL + + 62 + - col0 * + col2 + + CAST( NULL AS SIGNED ) * cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL + + 62 + - col0 * + col2 + + CAST ( NULL AS INTEGER ) * cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + 44 * cor0.col0 FROM tab2 AS cor0
----
335
3458
3514
query I rowsort
SELECT + 22 * col2 AS col0 FROM tab1 AS cor0
----
1188
1254
2112
query I rowsort
SELECT DISTINCT ( 2 ) * + cor0.col2 FROM tab0 AS cor0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col2 ) + - col1 col1 FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 col0 FROM tab0 AS cor0
----
97
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + CAST ( col2 AS REAL ) + col1 * col0 AS col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL + ( - col1 ) * cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - ( col1 ) * col1 + ( 80 ) + col2 * + col0 FROM tab1 AS cor0
----
-434
3628
7591
onlyif mysql # use DIV operator for integer division
query I rowsort label-2799
SELECT col2 + col1 * - col0 DIV - col0 FROM tab2
----
55
58
85
skipif mysql # not compatible
query I rowsort label-2799
SELECT col2 + col1 * - col0 / - col0 FROM tab2
----
55
58
85
query I rowsort
SELECT 6 * col0 * - col1 FROM tab2
----
-1302
-27612
-8058
query I rowsort
SELECT DISTINCT - col1 + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT DISTINCT 94 + + col2 AS col0 FROM tab1 cor0
----
148
151
190
query I rowsort
SELECT ALL - - col2 + col0 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - + ( - col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - col2 - + col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT - 39 * + col2 AS col0 FROM tab2 AS cor0
----
-1014
-1053
-1482
query I rowsort
SELECT ALL + col2 * col1 + col1 FROM tab0 AS cor0
----
194
2924
7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col2 * + col1 col0 FROM tab1 cor0
----
1168
1401
506
query I rowsort
SELECT ALL + + col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL - cor0.col1 * col1 + + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT ALL - col0 * - col1 + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT + cor0.col2 - - col2 AS col2 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT ALL - + col2 * ( 53 ) + col0 FROM tab1 cor0
----
-2859
-2957
-5008
query I rowsort
SELECT ALL - + col0 * col0 + 23 FROM tab0 AS cor0
----
-1202
-553
-7898
query I rowsort
SELECT ALL - col2 + 72 * - col0 + col0 FROM tab2 AS cor0
----
-524
-5564
-5647
query I rowsort
SELECT DISTINCT + col1 + 58 FROM tab2 AS cor0
----
117
75
89
query I rowsort
SELECT + col1 * - col0 * + 85 - - col1 * 79 AS col1 FROM tab1 AS cor0
----
-4576
-53610
-87373
query I rowsort
SELECT ALL col0 + col1 * 15 FROM tab1 AS cor0
----
214
275
393
query I rowsort
SELECT DISTINCT - + col2 + col0 FROM tab0 AS cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col2 col0 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT - col2 - - ( col0 ) FROM tab2 AS cor0
----
-20
41
52
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2 AS cor2
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
query I rowsort
SELECT DISTINCT + col0 + ( + 46 ) * + cor0.col2 FROM tab1 cor0
----
2487
2686
4496
query I rowsort
SELECT ALL - col2 + ( + 28 * col1 ) AS col2 FROM tab1 AS cor0
----
223
268
674
onlyif mysql # use DIV operator for integer division
query I rowsort label-2825
SELECT + col2 DIV col1 + ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2825
SELECT + col2 / col1 + ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2826
SELECT - col1 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2826
SELECT - col1 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col1 * 72 AS col1 FROM tab2 AS cor0
----
-1224
-2232
-4248
query I rowsort
SELECT col2 + + cor0.col2 * col0 FROM tab0 cor0
----
36
7380
825
query I rowsort
SELECT - col0 + + 66 FROM tab1 AS cor0
----
-14
2
63
query I rowsort
SELECT + - 73 + 9 AS col0 FROM tab2 AS cor0
----
-64
-64
-64
query I rowsort
SELECT DISTINCT 60 AS col0 FROM tab0, tab2 cor0
----
60
query I rowsort
SELECT DISTINCT col2 + tab2.col2 FROM tab2
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * cor0.col0 col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + 66 + col1 * - cor0.col2 AS col1 FROM tab0 cor0
----
-2772
-31
-7396
onlyif mysql # use DIV operator for integer division
query I rowsort label-2835
SELECT + + col2 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2835
SELECT + + col2 / col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + 2 FROM tab0 AS cor0
----
2
2
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2837
SELECT - cor0.col0 * CAST( col1 * col2 AS SIGNED ) FROM tab2 AS cor0
----
-119652
-51034
-5859
skipif mysql # not compatible
query I rowsort label-2837
SELECT - cor0.col0 * CAST ( col1 * col2 AS INTEGER ) FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL - 70 FROM tab1
----
-70
-70
-70
query I rowsort
SELECT DISTINCT col2 + + col1 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL - 80 AS col1 FROM tab0
----
-80
-80
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2841
SELECT CAST( 17 AS SIGNED ) FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to a14896bcbd33addb471227dccce15e32
skipif mysql # not compatible
query I rowsort label-2841
SELECT CAST ( 17 AS INTEGER ) FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to a14896bcbd33addb471227dccce15e32
onlyif mysql # use DIV operator for integer division
query I rowsort label-2842
SELECT + 56 DIV + col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2842
SELECT + 56 / + col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 + col0 AS col0 FROM tab1 WHERE col1 IN ( - col2 )
----
query I rowsort
SELECT DISTINCT col1 - + col1 AS col2 FROM tab2
----
0
query I rowsort
SELECT col0 * - col0 + col0 * col0 * - col1 FROM tab1
----
-243
-45056
-89600
query I rowsort
SELECT ALL col0 + col0 * col1 * col1 AS col1 FROM tab2
----
22910
271596
6734
query I rowsort
SELECT + 83 + + col0 FROM tab2 AS cor0
----
161
162
90
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab1 AS cor0, tab1 cor1
----
972 values hashing to 635619591835474e6aa6acdff4ab166c
query I rowsort
SELECT DISTINCT - - col2 * 31 * col0 FROM tab2 cor0
----
5859
62868
93062
query I rowsort
SELECT - - col0 + 78 * col1 * col0 AS col0 FROM tab0 AS cor0
----
161016
264845
631811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 * ( + col1 ) col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT - - col0 + 21 * ( - col2 ) FROM tab1 AS cor0
----
-1131
-1133
-1936
query I rowsort
SELECT DISTINCT + tab1.col1 FROM tab1, tab0, tab1 cor0
----
10
13
26
query I rowsort
SELECT DISTINCT col0 * col1 * col1 + col1 AS col2 FROM tab2
----
22848
271577
6758
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT tab0.col1 AS col1 FROM tab0 WHERE NOT col1 + col1 NOT IN ( tab0.col0 + - col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col0 * col0 col0 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT - col1 * col1 / - col2 AS col2 FROM tab1 WHERE + col2 + - col2 IN ( - tab1.col1 * col2 + tab1.col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab1 WHERE NOT NULL = ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2860
SELECT col2 DIV col1 + + col2 * tab1.col0 FROM tab1
----
164
3653
7687
skipif mysql # not compatible
query I rowsort label-2860
SELECT col2 / col1 + + col2 * tab1.col0 FROM tab1
----
164
3653
7687
query I rowsort
SELECT DISTINCT - col1 * col2 AS col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + col2 + col1 * col1 FROM tab0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT col0 * - tab1.col1 AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - tab0.col2 * col0 AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT col1 * + col2 * - col0 FROM tab2 WHERE NOT NULL >= ( + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2866
SELECT col2 DIV col0 + + col1 AS col2 FROM tab0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-2866
SELECT col2 / col0 + + col1 AS col2 FROM tab0
----
87
91
97
query I rowsort
SELECT ALL col2 * - col0 * + col2 - col0 AS col1 FROM tab1
----
-208000
-737360
-8751
query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE NULL < ( NULL )
----
query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT + col1 > NULL
----
query I rowsort
SELECT ALL + col0 FROM tab0 WHERE ( tab0.col1 ) <> col2
----
24
35
89
query I rowsort
SELECT DISTINCT - col2 + - tab1.col1 AS col2 FROM tab1
----
-109
-67
-80
query III rowsort
SELECT * FROM tab2 WHERE NULL > ( - col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2873
SELECT + col1 DIV + col0 + col1 AS col1 FROM tab1
----
10
13
34
skipif mysql # not compatible
query I rowsort label-2873
SELECT + col1 / + col0 + col1 AS col1 FROM tab1
----
10
13
34
query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 / col0 ) IN ( + col2 )
----
35
97
1
query I rowsort
SELECT ALL col2 * tab1.col0 FROM tab1 WHERE NOT ( + col1 ) NOT IN ( - col2 * col0 + - col2 )
----
query I rowsort
SELECT ALL tab0.col0 * col1 AS col0 FROM tab0 WHERE ( NULL ) < NULL
----
query I rowsort
SELECT tab1.col2 * - col2 AS col1 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT ALL col0 + + col1 * col1 AS col1 FROM tab2
----
3559
368
968
query I rowsort
SELECT DISTINCT col2 * - col2 AS col0 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT col0 + col2 + col1 AS col1 FROM tab0
----
133
143
262
query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 + + col1 > + col0
----
24
86
33
35
97
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2882
SELECT + col1 DIV col1 AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2882
SELECT + col1 / col1 AS col2 FROM tab0
----
1
1
1
query I rowsort
SELECT - col2 + + col0 + - col0 * + col0 AS col0 FROM tab2
----
-6032
-6200
-69
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + col2 + - col1 * - tab2.col0 )
----
query I rowsort
SELECT DISTINCT col2 * col1 * col2 AS col2 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT ALL + col1 * - tab0.col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + col0 * - col0 + col1 - col1 * + col1 FROM tab2
----
-6513
-9506
-979
query I rowsort
SELECT - col1 + tab1.col2 + - col2 * tab1.col1 * - tab1.col1 AS col0 FROM tab1
----
16307
36532
5747
query I rowsort
SELECT DISTINCT 33 + col2 - - tab2.col0 FROM tab2
----
137
150
67
query I rowsort
SELECT ALL - tab1.col0 AS col0 FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4
query I rowsort
SELECT DISTINCT 86 + - col0 FROM tab2 AS cor0
----
7
79
8
query I rowsort
SELECT ALL - 3 + - col0 + - ( + cor0.col0 ) FROM tab2 AS cor0
----
-159
-161
-17
query I rowsort
SELECT - - ( 70 ) FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32
onlyif mysql # use DIV operator for integer division
query I rowsort label-2894
SELECT + col2 + 44 DIV + col0 FROM tab0 AS cor0
----
2
34
82
skipif mysql # not compatible
query I rowsort label-2894
SELECT + col2 + 44 / + col0 FROM tab0 AS cor0
----
2
34
82
query I rowsort
SELECT ALL - 30 - col1 AS col2 FROM tab1
----
-40
-43
-56
query I rowsort
SELECT ALL - ( - col1 ) + col1 FROM tab1
----
20
26
52
query I rowsort
SELECT + col2 + col2 * col2 - - 32 FROM tab0
----
1154
34
6838
query I rowsort
SELECT ALL + + col1 * col1 AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT + ( + col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + - 74 AS col2 FROM tab1 AS cor0
----
-74
-74
-74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2901
SELECT DISTINCT - 7 * col2 + + CAST( NULL AS SIGNED ) + col0 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2901
SELECT DISTINCT - 7 * col2 + + CAST ( NULL AS INTEGER ) + col0 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - + col1 + col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT DISTINCT - + col1 * col2 + + ( + col2 ) * - col1 AS col0 FROM tab2 AS cor0
----
-1292
-1674
-3068
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 7 col1 FROM tab2 AS cor0
----
7
7
7
query I rowsort
SELECT col2 * - col0 + + cor0.col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT - 1 + col0 AS col1 FROM tab2 AS cor0
----
6
77
78
query I rowsort
SELECT ALL + cor0.col1 + + col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + 60 AS col0 FROM tab1 AS cor0
----
60
query I rowsort
SELECT + - cor0.col1 + col1 + - col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT col0 + cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
192
240
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 col2 FROM tab0 AS cor0
----
32
32
32
query I rowsort
SELECT ALL 55 + + col0 AS col1 FROM tab2 AS cor0
----
133
134
62
query I rowsort
SELECT 17 * cor0.col1 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to b32a0ecf49ffcd6af6a74df61e3724b1
query I rowsort
SELECT DISTINCT 64 AS col2 FROM tab1, tab1 cor0
----
64
query I rowsort
SELECT - + col0 + + col1 AS col2 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT ALL col0 * + 39 + 18 AS col2 FROM tab0 AS cor0
----
1383
3489
954
query I rowsort
SELECT ALL - col1 - + col2 * col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT + col1 + + 56 FROM tab0 AS cor0
----
142
147
153
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2919
SELECT - col0 * CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-49
-6084
-6241
skipif mysql # not compatible
query I rowsort label-2919
SELECT - col0 * CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2920
SELECT DISTINCT CAST( - 32 AS SIGNED ) * col1 FROM tab0 cor0
----
-2752
-2912
-3104
skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT CAST ( - 32 AS INTEGER ) * col1 FROM tab0 cor0
----
-2752
-2912
-3104
query I rowsort
SELECT + + ( ( + col1 ) ) * col1 + + cor0.col0 + - col1 AS col1 FROM tab1 cor0
----
154
236
653
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2922
SELECT ALL - CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL - CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( cor0.col1 ) + - col0 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2924
SELECT + col2 * 82 * cor0.col1 + + 25 DIV + 82 FROM tab0 AS cor0
----
232716
611884
7954
skipif mysql # not compatible
query I rowsort label-2924
SELECT + col2 * 82 * cor0.col1 + + 25 / + 82 FROM tab0 AS cor0
----
232716
611884
7954
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2925
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / col1 - col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT + CAST ( NULL AS REAL ) / col1 - col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + 41 - col0 FROM tab1 AS cor0
----
-23
-39
38
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 89714dd446b7a97f8787d5744bdbf323
query I rowsort
SELECT - + 87 + - col2 * col1 FROM tab0 AS cor0
----
-184
-2925
-7549
query I rowsort
SELECT DISTINCT - 99 * - 90 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
8814
8853
8856
query I rowsort
SELECT DISTINCT + + col2 * col2 AS col2 FROM tab0 cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-2931
SELECT DISTINCT + + 87 DIV - cor0.col1 col1 FROM tab0 AS cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT + + 87 / - cor0.col1 col1 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT + - col0 - - cor0.col2 FROM tab2 cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-2933
SELECT ALL - - col0 + + col0 DIV col0 AS col1 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL - - col0 + + col0 / col0 AS col1 FROM tab0 AS cor0
----
25
36
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-2934
SELECT - col0 DIV + col0 + col0 col0 FROM tab0 AS cor0
----
23
34
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2934
SELECT - col0 / + col0 + col0 col0 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT DISTINCT + - 9 - col2 FROM tab1 AS cor0
----
-105
-63
-66
query I rowsort
SELECT - ( + col2 ) + - col1 FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-2937
SELECT col0 - + col0 DIV col0 FROM tab2 AS cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-2937
SELECT col0 - + col0 / col0 FROM tab2 AS cor0
----
6
77
78
query I rowsort
SELECT ALL - - col2 * col1 * col2 AS col0 FROM tab0 AS cor0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2939
SELECT - - 96 * col0 - col0 DIV col0 col1 FROM tab2 AS cor0
----
671
7487
7583
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2939
SELECT - - 96 * col0 - col0 / col0 col1 FROM tab2 AS cor0
----
671
7487
7583
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-2941
SELECT ALL - - col0 + - col1 DIV col0 AS col1 FROM tab2 AS cor0
----
3
78
79
skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL - - col0 + - col1 / col0 AS col1 FROM tab2 AS cor0
----
3
78
79
query I rowsort
SELECT - - 69 - col0 FROM tab2 AS cor0
----
-10
-9
62
query I rowsort
SELECT + col0 * col2 + + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL - + 1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - 76 - col0 FROM tab2
----
-154
-155
-83
query I rowsort
SELECT + 67 + - col1 AS col0 FROM tab0
----
-19
-24
-30
query I rowsort
SELECT ALL col2 + - col1 - + col0 AS col0 FROM tab0
----
-131
-77
-98
query I rowsort
SELECT ALL - col2 - col2 * + col0 * col1 FROM tab1
----
-36537
-4266
-99936
query I rowsort
SELECT 34 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT ALL ( - col1 ) - tab2.col0 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT DISTINCT - col2 + col2 - - col2 * - col0 * - col1 AS col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT ( + tab2.col0 + - col0 * col2 ) FROM tab2
----
-182
-1950
-2923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2953
SELECT CAST( NULL AS DECIMAL ) + + col0 + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2953
SELECT CAST ( NULL AS REAL ) + + col0 + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 41 * - tab2.col2 + - col2 FROM tab2
----
-1092
-1134
-1596
query I rowsort
SELECT + + col0 * col0 * + cor0.col2 + col2 * + cor0.col1 + col0 FROM tab1 AS cor0
----
1893
234106
615728
query I rowsort
SELECT + col0 * col2 - col1 FROM tab0 AS cor0
----
-62
706
7207
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + ( - col2 ) ) + + col0 * col0 + col2 col1 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2958
SELECT DISTINCT CAST( + col2 AS SIGNED ) FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT CAST ( + col2 AS INTEGER ) FROM tab0
----
1
33
82
query I rowsort
SELECT ALL + col0 * 0 FROM tab0
----
0
0
0
query I rowsort
SELECT ( - col0 ) + col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ( 29 ) + + col0 AS col1 FROM tab1
----
109
32
93
query I rowsort
SELECT ALL + + 73 * + col0 AS col2 FROM tab1 AS cor0
----
219
4672
5840
query I rowsort
SELECT ALL + 16 * + cor0.col0 + col0 FROM tab2 AS cor0
----
119
1326
1343
query I rowsort
SELECT DISTINCT - ( col1 ) * + col1 + - col2 + + cor0.col0 * col0 FROM tab1 AS cor0
----
-721
3939
6135
query I rowsort
SELECT + 32 AS col0 FROM tab2 AS cor0
----
32
32
32
query I rowsort
SELECT ALL + 65 AS col0 FROM tab2 AS cor0
----
65
65
65
query I rowsort
SELECT DISTINCT - 70 AS col2 FROM tab0 AS cor0
----
-70
query I rowsort
SELECT + 60 AS col0 FROM tab2 AS cor0
----
60
60
60
query I rowsort
SELECT - cor0.col2 - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 6d59c936869313d0b2d0f28c10bf14a9
query I rowsort
SELECT + col1 FROM tab2 WHERE NOT ( NULL ) IN ( col0 / tab2.col2 - - col2 )
----
query I rowsort
SELECT DISTINCT - col2 + col2 * + cor0.col2 * + col1 AS col0 FROM tab2 AS cor0
----
22572
24510
39858
query I rowsort
SELECT ALL - col0 * - col2 + + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
query III rowsort
SELECT * FROM tab2 WHERE NOT col1 IN ( col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT NULL = col2 - - col2
----
query I rowsort
SELECT DISTINCT - tab2.col1 + - col0 * col0 FROM tab2
----
-6143
-6258
-80
query I rowsort
SELECT + col2 - - tab0.col0 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT - col2 + col2 * - col0 AS col0 FROM tab1 cor0
----
-216
-3705
-7776
query I rowsort
SELECT + cor0.col1 + cor0.col2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 71bdffb602517a95c6721e05f7b4b3dd
query I rowsort
SELECT ALL - col0 * col2 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND col0
----
query I rowsort
SELECT DISTINCT - col1 + col0 + col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + col1 - col1 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + col0 + + cor0.col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT + col2 + + col1 * cor0.col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT - col1 + col1 * col0 AS col0 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT DISTINCT - col0 - + cor0.col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT - col1 * cor0.col2 + - col2 * col1 FROM tab1 AS cor0
----
-1140
-2496
-2808
query I rowsort
SELECT - + col1 + - col1 * - col1 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT ALL col0 * - col1 * - col0 AS col0 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT col0 * + col0 * col1 AS col1 FROM tab1
----
234
40960
83200
query I rowsort
SELECT col1 + + ( col2 * + col1 ) - - 39 * 92 AS col1 FROM tab2
----
4251
4456
5181
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2991
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2991
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2992
SELECT col1 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2992
SELECT col1 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 - + col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT - col1 + - 49 * col2 FROM tab2 AS cor0
----
-1333
-1354
-1879
onlyif mysql # use DIV operator for integer division
query I rowsort label-2995
SELECT - col2 + + ( - 62 ) DIV col0 AS col1 FROM tab1 AS cor0
----
-57
-74
-96
skipif mysql # not compatible
query I rowsort label-2995
SELECT - col2 + + ( - 62 ) / col0 AS col1 FROM tab1 AS cor0
----
-57
-74
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2996
SELECT - col0 DIV col2 - + col2 AS col1 FROM tab1 AS cor0
----
-54
-58
-96
skipif mysql # not compatible
query I rowsort label-2996
SELECT - col0 / col2 - + col2 AS col1 FROM tab1 AS cor0
----
-54
-58
-96
query I rowsort
SELECT DISTINCT - + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-7
-78
-79
query I rowsort
SELECT - col0 - ( col2 * col0 ) FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT DISTINCT + ( - 53 ) * - col2 AS col0 FROM tab0 cor0
----
1749
4346
53
query I rowsort
SELECT + col1 * - 97 * + col1 + col0 FROM tab2 cor0
----
-27954
-337579
-93210
query I rowsort
SELECT cor0.col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + + col2 * - col1 AS col0 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + 49 + - 96 AS col2 FROM tab0 AS cor0
----
-47
-47
-47
query I rowsort
SELECT DISTINCT + + ( col2 ) FROM tab1 AS cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3005
SELECT ALL CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - cor0.col0 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT ALL - 40 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to b10451aa7e22bfd12577dc60d18d9396
query I rowsort
SELECT DISTINCT col0 * - tab0.col1 AS col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + 99 + + col0 * 6 AS col1 FROM tab1 AS cor0
----
117
483
579
query I rowsort
SELECT - - col0 - ( - 75 ) * col1 * - cor0.col2 FROM tab2 AS cor0
----
-114972
-48371
-62768
query I rowsort
SELECT DISTINCT + col1 * - ( col2 ) - col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1210
-1482
-2288
query I rowsort
SELECT + ( col0 ) * 98 AS col2 FROM tab1
----
294
6272
7840
query I rowsort
SELECT DISTINCT - - col2 + 12 * + col0 * col0 AS col0 FROM tab0 AS cor0
----
14701
6945
95134
query I rowsort
SELECT ALL + + col2 - + ( + col1 ) AS col2 FROM tab1 cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 + + col2 col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT - - col2 * - col2 - cor0.col0 FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT - 97 AS col0 FROM tab1
----
-97
-97
-97
query I rowsort
SELECT DISTINCT 41 AS col0 FROM tab2
----
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-3019
SELECT 70 DIV col2 AS col1 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-3019
SELECT 70 / col2 AS col1 FROM tab1
----
0
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3020
SELECT - col2 DIV tab1.col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-3020
SELECT - col2 / tab1.col0 FROM tab1
----
-1
-18
0
query I rowsort
SELECT DISTINCT + col1 + + col2 * + col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL - + cor0.col1 * col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - col1 * - cor0.col0 + - col1 AS col0 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3024
SELECT + cor0.col2 + CAST( + col0 AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
skipif mysql # not compatible
query I rowsort label-3024
SELECT + cor0.col2 + CAST ( + col0 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT - cor0.col1 + - 22 * 1 FROM tab2 AS cor0
----
-39
-53
-81
query I rowsort
SELECT + col1 + - 91 * - col1 AS col0 FROM tab0 AS cor0
----
7912
8372
8924
onlyif mysql # use DIV operator for integer division
query I rowsort label-3027
SELECT ALL - col2 * 94 + + col2 * col0 - - col1 DIV - 21 AS col1 FROM tab2 AS cor0
----
-2350
-418
-570
skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL - col2 * 94 + + col2 * col0 - - col1 / - 21 AS col1 FROM tab2 AS cor0
----
-2350
-418
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3028
SELECT ALL + col1 / CAST( NULL AS SIGNED ) + - 79 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL + col1 / CAST ( NULL AS INTEGER ) + - 79 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col2 - col1 AS col0 FROM tab0 AS cor0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 * + 27 - + col0 * - col2 col2 FROM tab0
----
1683
62
9512
query I rowsort
SELECT + col2 * col2 AS col1 FROM tab2
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-3032
SELECT + col0 DIV CAST( - col0 AS SIGNED ) AS col2 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3032
SELECT + col0 / CAST ( - col0 AS INTEGER ) AS col2 FROM tab2
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 15 - - col1 col2 FROM tab2 AS cor0
----
16
2
44
query I rowsort
SELECT - ( - col2 ) * - col1 + col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT + tab2.col0 - + 65 AS col0 FROM tab2
----
-58
13
14
query I rowsort
SELECT ALL + col1 + - col2 - col1 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL tab1.col1 + - 95 AS col0 FROM tab1
----
-69
-82
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-3038
SELECT col0 * col0 DIV + col0 AS col2 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3038
SELECT col0 * col0 / + col0 AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT + ( 54 ) AS col1 FROM tab1, tab0 cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT ALL - col2 + - 77 FROM tab1
----
-131
-134
-173
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 24 + + col2 col0 FROM tab1 AS cor0
----
30
33
72
query I rowsort
SELECT DISTINCT - - col0 * cor0.col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL - + col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 77 * col2 AS col0 FROM tab1 AS cor0
----
4158
4389
7392
query I rowsort
SELECT + 75 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query I rowsort
SELECT DISTINCT 91 + - col0 + tab0.col1 FROM tab0
----
153
93
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab2 cor0, tab2 AS cor1
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08
query I rowsort
SELECT col1 * 12 - col2 AS col1 FROM tab0
----
1010
1163
999
onlyif mysql # use DIV operator for integer division
query I rowsort label-3049
SELECT 24 - + col1 DIV col0 AS col1 FROM tab0
----
21
22
23
skipif mysql # not compatible
query I rowsort label-3049
SELECT 24 - + col1 / col0 AS col1 FROM tab0
----
21
22
23
query I rowsort
SELECT ( 81 ) - col0 AS col1 FROM tab0
----
-8
46
57
query I rowsort
SELECT DISTINCT + tab1.col1 + + tab1.col2 FROM tab1
----
109
67
80
query I rowsort
SELECT ALL 79 + ( col2 ) * col2 + - col1 * col2 * - col0 FROM tab2
----
120407
52557
6667
query I rowsort
SELECT DISTINCT + 9 AS col2 FROM tab1, tab2, tab2 AS cor0
----
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3054
SELECT DISTINCT - 49 DIV col0 + tab0.col2 col0 FROM tab0
----
0
31
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT - 49 / col0 + tab0.col2 col0 FROM tab0
----
0
31
82
query I rowsort
SELECT + 76 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT + col1 + + col2 * + col1 AS col1 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT ALL - col1 * + cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + ( col2 ) * cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - ( + col1 ) * + 10 FROM tab2 AS cor0
----
-170
-310
-590
query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col2 AS col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ALL + + col0 * - cor0.col1 * col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL - col0 * + cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT - col0 + cor0.col0 * - ( col0 * - col1 ) FROM tab2 AS cor0
----
106018
1512
358878
query I rowsort
SELECT ALL - + ( + col2 ) * col1 * 73 FROM tab1 AS cor0
----
-102492
-41610
-91104
query I rowsort
SELECT - col0 * + col2 AS col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT col2 * + col0 + - 40 AS col1 FROM tab1 AS cor0
----
122
3608
7640
query I rowsort
SELECT 58 * col2 FROM tab2 AS cor0
----
1508
1566
2204
query I rowsort
SELECT ALL + ( - ( - col1 ) ) * col1 FROM tab1
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 82 col2 FROM tab2 AS cor0
----
-82
-82
-82
query I rowsort
SELECT DISTINCT 71 FROM tab0, tab1 AS cor0
----
71
query I rowsort
SELECT - 81 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col1 FROM tab1 AS cor0
----
50
50
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3073
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3074
SELECT - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3074
SELECT - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 98 * col2 AS col1 FROM tab2 AS cor0
----
2548
2646
3724
onlyif mysql # use DIV operator for integer division
query I rowsort label-3076
SELECT ALL ( col1 ) DIV cor0.col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL ( col1 ) / cor0.col0 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT DISTINCT + + col2 * 74 FROM tab0 cor0
----
2442
6068
74
query I rowsort
SELECT 55 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT + 3 - col1 AS col0 FROM tab0 AS cor0
----
-83
-88
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-3080
SELECT - col2 DIV + col0 - - col0 * - col1 * col2 FROM tab2 AS cor0
----
-119652
-51034
-5862
skipif mysql # not compatible
query I rowsort label-3080
SELECT - col2 / + col0 - - col0 * - col1 * col2 FROM tab2 AS cor0
----
-119652
-51034
-5862
query I rowsort
SELECT + col1 + + col2 * ( - col0 ) FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT + 62 * + col0 * 50 AS col2 FROM tab2 AS cor0
----
21700
241800
244900
query I rowsort
SELECT DISTINCT + cor0.col1 * col1 + ( col2 ) AS col1 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT ALL - + 15 + col2 FROM tab1 AS cor0
----
39
42
81
query I rowsort
SELECT ALL + col1 * + col0 + - col2 FROM tab2 AS cor0
----
1305
190
4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-3086
SELECT - 72 - - col2 DIV col2 FROM tab0 AS cor0
----
-71
-71
-71
skipif mysql # not compatible
query I rowsort label-3086
SELECT - 72 - - col2 / col2 FROM tab0 AS cor0
----
-71
-71
-71
query I rowsort
SELECT col0 * + col0 + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-788
4550
5595
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3088
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3088
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor1.col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3090
SELECT + CAST( NULL AS SIGNED ) * + col2 + col0 / - 49 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3090
SELECT + CAST ( NULL AS INTEGER ) * + col2 + col0 / - 49 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + cor0.col1 col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL col1 * - 18 FROM tab2 AS cor0
----
-1062
-306
-558
query I rowsort
SELECT - - col1 * - 71 FROM tab0 AS cor0
----
-6106
-6461
-6887
query I rowsort
SELECT + cor0.col0 * + col1 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + - cor0.col2 * - 91 * 8 FROM tab2 cor0
----
18928
19656
27664
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3096
SELECT ALL - col0 * - CAST( col1 * cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
3395
664118
68112
skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL - col0 * - CAST ( col1 * cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-3097
SELECT + cor0.col2 + - col2 DIV - col0 + col0 FROM tab2 AS cor0
----
104
117
37
skipif mysql # not compatible
query I rowsort label-3097
SELECT + cor0.col2 + - col2 / - col0 + col0 FROM tab2 AS cor0
----
104
117
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-3098
SELECT DISTINCT + + col0 + 84 + col0 DIV - cor0.col0 FROM tab1 AS cor0
----
147
163
86
skipif mysql # not compatible
query I rowsort label-3098
SELECT DISTINCT + + col0 + 84 + col0 / - cor0.col0 FROM tab1 AS cor0
----
147
163
86
query I rowsort
SELECT ALL + - col2 + col0 * col1 FROM tab1 AS cor0
----
24
583
944
onlyif mysql # use DIV operator for integer division
query I rowsort label-3100
SELECT DISTINCT + col1 + col1 * ( col0 ) DIV ( 69 ) AS col1 FROM tab1 AS cor0
----
19
27
28
skipif mysql # not compatible
query I rowsort label-3100
SELECT DISTINCT + col1 + col1 * ( col0 ) / ( 69 ) AS col1 FROM tab1 AS cor0
----
19
27
28
query I rowsort
SELECT + - col1 * + col1 + col1 + col2 FROM tab2 AS cor0
----
-234
-3396
-903
query I rowsort
SELECT DISTINCT + + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * - 92 + - 47 col0 FROM tab0
----
-2997
-42
-7500
query I rowsort
SELECT ALL + - col2 + 12 * 26 AS col2 FROM tab1 AS cor0
----
216
255
258
query I rowsort
SELECT + col1 + 56 FROM tab0 AS cor0
----
142
147
153
onlyif mysql # use DIV operator for integer division
query I rowsort label-3106
SELECT - col2 * col2 + - ( + col1 ) DIV ( - 74 ) AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-3106
SELECT - col2 * col2 + - ( + col1 ) / ( - 74 ) AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT col1 * col1 - col0 AS col2 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT - + col2 + 82 * 57 * - cor0.col0 FROM tab0 AS cor0
----
-112209
-163591
-416068
query I rowsort
SELECT - 2 * + col0 * cor0.col0 FROM tab2 AS cor0
----
-12168
-12482
-98
query I rowsort
SELECT col0 + cor0.col2 + - col2 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT 62 AS col0 FROM tab0 AS cor0
----
62
62
62
query I rowsort
SELECT - col0 * 31 FROM tab1 AS cor0
----
-1984
-2480
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-3113
SELECT + 6 DIV cor0.col1 + col0 + - ( cor0.col1 ) * - col2 AS col0 FROM tab0 AS cor0
----
132
2862
7551
skipif mysql # not compatible
query I rowsort label-3113
SELECT + 6 / cor0.col1 + col0 + - ( cor0.col1 ) * - col2 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - 28 AS col0 FROM tab0, tab1 cor0
----
-28
onlyif mysql # use DIV operator for integer division
query I rowsort label-3115
SELECT ALL - col0 DIV - col2 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL - col0 / - col2 FROM tab0
----
0
1
35
query I rowsort
SELECT - col2 + 9 AS col0 FROM tab0
----
-24
-73
8
query I rowsort
SELECT + 43 AS col2 FROM tab1
----
43
43
43
query I rowsort
SELECT - 88 FROM tab0 cor0
----
-88
-88
-88
query I rowsort
SELECT col1 * 70 AS col0 FROM tab1 AS cor0
----
1820
700
910
query I rowsort
SELECT 30 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT DISTINCT + col2 + + tab2.col2 FROM tab2
----
52
54
76
query I rowsort
SELECT DISTINCT 76 * col1 AS col0 FROM tab2 AS cor0
----
1292
2356
4484
query I rowsort
SELECT - + 92 + - col0 AS col0 FROM tab1 AS cor0
----
-156
-172
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-3124
SELECT DISTINCT - col0 * + 61 + + col0 + cor0.col2 DIV col0 AS col1 FROM tab1 AS cor0
----
-162
-3840
-4799
skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT - col0 * + 61 + + col0 + cor0.col2 / col0 AS col1 FROM tab1 AS cor0
----
-162
-3840
-4799
query I rowsort
SELECT ALL - col1 * + ( col0 ) FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT - - col2 * + 19 AS col0 FROM tab1 AS cor0
----
1026
1083
1824
query I rowsort
SELECT + cor0.col1 * col1 * - col0 + cor0.col2 + + 87 FROM tab0 AS cor0
----
-177384
-329227
-736840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT ALL - cor0.col2 - tab0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 9a5747f396f9371b613126d1446f7355
query I rowsort
SELECT DISTINCT - 71 * col0 FROM tab2 AS cor0
----
-497
-5538
-5609
onlyif mysql # use DIV operator for integer division
query I rowsort label-3131
SELECT ALL - 29 DIV 65 AS col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL - 29 / 65 AS col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT DISTINCT - col2 * - cor0.col0 + col2 FROM tab0 cor0
----
36
7380
825
query I rowsort
SELECT - cor0.col1 AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8
query I rowsort
SELECT - col1 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT + col1 + + col1 AS col1 FROM tab1
----
20
26
52
query I rowsort
SELECT ALL - 2 * - col1 + col1 * 5 AS col2 FROM tab2 AS cor0
----
119
217
413
query I rowsort
SELECT - + col1 * col2 + 3 FROM tab0 AS cor0
----
-2835
-7459
-94
query I rowsort
SELECT - cor0.col1 + + cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # use DIV operator for integer division
query I rowsort label-3139
SELECT ALL + cor0.col1 DIV - cor0.col1 + col1 AS col0 FROM tab2 cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL + cor0.col1 / - cor0.col1 + col1 AS col0 FROM tab2 cor0
----
16
30
58
query I rowsort
SELECT - col2 * - col2 + col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT ALL + col1 * 58 + + 93 * + col1 AS col1 FROM tab2
----
2567
4681
8909
query I rowsort
SELECT 54 FROM tab0, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT col2 * + 87 AS col0 FROM tab1 AS cor0
----
4698
4959
8352
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3144
SELECT - + col1 + - CAST( NULL AS DECIMAL ) col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3144
SELECT - + col1 + - CAST ( NULL AS REAL ) col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * - 15 + - 46 * col1 AS col1 FROM tab1 AS cor0
----
-1151
500
602
query I rowsort
SELECT + - col1 * + col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - - 71 * col0 AS col1 FROM tab1 AS cor0
----
213
4544
5680
query I rowsort
SELECT - ( - 41 ) + - col1 * - 25 FROM tab2 AS cor0
----
1516
466
816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3149
SELECT + CAST( col1 AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-3149
SELECT + CAST ( col1 AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT 53 + col1 FROM tab2 cor0
----
112
70
84
query I rowsort
SELECT + col2 * - ( col1 ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + col2 * 5 * + col1 FROM tab2 AS cor0
----
3230
4185
7670
onlyif mysql # use DIV operator for integer division
query I rowsort label-3153
SELECT ALL + col1 DIV 8 AS col0 FROM tab1 AS cor0
----
1
1
3
skipif mysql # not compatible
query I rowsort label-3153
SELECT ALL + col1 / 8 AS col0 FROM tab1 AS cor0
----
1
1
3
query I rowsort
SELECT DISTINCT - 90 * cor0.col1 FROM tab0 cor0
----
-7740
-8190
-8730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor1.col2 col2 FROM tab2, tab0 AS cor0, tab0 cor1, tab1, tab1 AS cor2
----
243 values hashing to 3e2b81ca10484cbfc66f186955e0e920
query I rowsort
SELECT - col2 * - 21 FROM tab0 AS cor0
----
1722
21
693
onlyif mysql # use DIV operator for integer division
query I rowsort label-3157
SELECT DISTINCT - col2 + col1 * col2 DIV col0 col2 FROM tab1 AS cor0
----
-49
-81
414
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT - col2 + col1 * col2 / col0 col2 FROM tab1 AS cor0
----
-49
-81
414
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3158
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-3158
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT ( + 7 ) + col2 * ( - col1 ) FROM tab1 AS cor0
----
-1241
-1397
-563
query I rowsort
SELECT ALL - 11 * col2 AS col1 FROM tab1 cor0
----
-1056
-594
-627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3161
SELECT ALL + CAST( + ( col1 ) AS SIGNED ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL + CAST ( + ( col1 ) AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3162
SELECT ALL - - 16 + + 21 DIV - col2 FROM tab1 AS cor0
----
16
16
16
skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL - - 16 + + 21 / - col2 FROM tab1 AS cor0
----
16
16
16
query I rowsort
SELECT cor0.col0 AS col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT + 33 * + cor0.col0 * col0 FROM tab2 AS cor0
----
1617
200772
205953
query I rowsort
SELECT DISTINCT 81 * cor0.col1 AS col1 FROM tab0 AS cor0
----
6966
7371
7857
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3166
SELECT - CAST( NULL AS SIGNED ) - col2 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3166
SELECT - CAST ( NULL AS INTEGER ) - col2 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col1 - col2 AS col2 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT ( - 89 * col2 ) AS col1 FROM tab0
----
-2937
-7298
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3169
SELECT - CAST( - col1 * col0 AS SIGNED ) + col2 * - col0 FROM tab1
----
-3008
-6640
-84
skipif mysql # not compatible
query I rowsort label-3169
SELECT - CAST ( - col1 * col0 AS INTEGER ) + col2 * - col0 FROM tab1
----
-3008
-6640
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-3170
SELECT - 82 DIV + 93 + + tab1.col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-3170
SELECT - 82 / + 93 + + tab1.col1 FROM tab1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - tab0.col2 col2 FROM tab0
----
-119
-173
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3172
SELECT CAST( NULL AS DECIMAL ) + col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3172
SELECT CAST ( NULL AS REAL ) + col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * - ( col0 * cor0.col2 ) + col1 AS col0 FROM tab0 cor0
----
132
26222
598527
query I rowsort
SELECT + cor0.col0 + + ( 29 ) * cor0.col1 FROM tab1 AS cor0
----
354
457
757
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3175
SELECT - col1 * CAST( NULL AS SIGNED ) + - col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3175
SELECT - col1 * CAST ( NULL AS INTEGER ) + - col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 + col2 * + cor0.col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT col0 * 82 + + 88 AS col0 FROM tab0 AS cor0
----
2056
2958
7386
query I rowsort
SELECT col2 + - cor0.col2 + 40 FROM tab0 AS cor0
----
40
40
40
query I rowsort
SELECT ALL + - col1 + + 14 AS col2 FROM tab1 AS cor0
----
-12
1
4
query I rowsort
SELECT - 2 * - tab0.col2 AS col2 FROM tab0
----
164
2
66
query I rowsort
SELECT DISTINCT col1 * col1 - + 21 FROM tab1
----
148
655
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-3182
SELECT ALL - col1 * col0 DIV ( ( col1 ) ) - col1 DIV 32 FROM tab2
----
-7
-79
-79
skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL - col1 * col0 / ( ( col1 ) ) - col1 / 32 FROM tab2
----
-7
-79
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + 59 * - 60 col1 FROM tab2 AS cor0
----
134520
92040
95580
onlyif mysql # use DIV operator for integer division
query I rowsort label-3184
SELECT DISTINCT + col2 DIV 77 AS col2 FROM tab1 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-3184
SELECT DISTINCT + col2 / 77 AS col2 FROM tab1 cor0
----
0
1
query I rowsort
SELECT - col2 + - col1 * + col2 + - cor0.col0 FROM tab0 cor0
----
-133
-2895
-7633
query I rowsort
SELECT DISTINCT - col2 * + col0 * col2 AS col2 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT ALL 18 * col0 * - col0 FROM tab0
----
-10368
-142578
-22050
onlyif mysql # use DIV operator for integer division
query I rowsort label-3188
SELECT 66 + - col0 DIV 2 FROM tab0
----
22
49
54
skipif mysql # not compatible
query I rowsort label-3188
SELECT 66 + - col0 / 2 FROM tab0
----
22
49
54
query I rowsort
SELECT col1 * - col1 * col2 + - 41 * - col2 FROM tab0
----
-242715
-675680
-9368
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 + - 0 col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + - col0 * cor0.col1 + 60 FROM tab1 AS cor0
----
-18
-580
-980
onlyif mysql # use DIV operator for integer division
query I rowsort label-3193
SELECT + col0 * col0 DIV + col0 + - col1 col1 FROM tab0 AS cor0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3193
SELECT + col0 * col0 / + col0 + - col1 col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT + 21 AS col1 FROM tab0
----
21
21
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3195
SELECT ALL - + col0 * CAST( NULL AS SIGNED ) + - 77 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL - + col0 * CAST ( NULL AS INTEGER ) + - 77 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3196
SELECT ALL - col2 DIV col1 + 93 * - cor0.col1 + + ( col2 ) FROM tab2 AS cor0
----
-1545
-2856
-5461
skipif mysql # not compatible
query I rowsort label-3196
SELECT ALL - col2 / col1 + 93 * - cor0.col1 + + ( col2 ) FROM tab2 AS cor0
----
-1545
-2856
-5461
query I rowsort
SELECT DISTINCT col2 + - 71 * 78 FROM tab2 AS cor0
----
-5500
-5511
-5512
query I rowsort
SELECT + - col2 + + ( col2 ) * col1 AS col1 FROM tab0 cor0
----
2805
7380
96
query I rowsort
SELECT ALL + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab0, tab1 AS cor2
----
243 values hashing to 3dcd863493ac16ce594c62d4ac8b0412
query I rowsort
SELECT 12 FROM tab2, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT ALL - - 77 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT ALL + + col0 + - col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + + col2 * col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col2 + col1 * col2 AS col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT - cor0.col2 * 53 FROM tab2 AS cor0
----
-1378
-1431
-2014
query I rowsort
SELECT + + col2 + + col1 * 39 * - col1 FROM tab2 AS cor0
----
-11233
-135733
-37452
query I rowsort
SELECT DISTINCT - 94 + col1 AS col1 FROM tab1 AS cor0
----
-68
-81
-84
query I rowsort
SELECT + 94 * col1 * - col2 + col2 AS col2 FROM tab2 AS cor0
----
-144170
-60686
-78651
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
3645 values hashing to 750b3c1b743e18f68d402d034647fcf2
query I rowsort
SELECT ALL + col0 + + 60 FROM tab1
----
124
140
63
query I rowsort
SELECT ALL - col1 + - col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
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 ALL + - col2 * + col1 + + col2 col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT + + col1 - col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT - - col2 - col2 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT col0 * - 77 + col1 - col1 FROM tab1 AS cor0
----
-231
-4928
-6160
query I rowsort
SELECT - ( + 19 ) * - cor0.col2 + - 19 FROM tab0 AS cor0
----
0
1539
608
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3218
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT - - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + col1 * col0 + - col2 * - 88 AS col2 FROM tab1 AS cor0
----
4830
5656
9488
onlyif mysql # use DIV operator for integer division
query I rowsort label-3220
SELECT ALL - col1 + 57 DIV col2 FROM tab1 AS cor0
----
-13
-25
-9
skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL - col1 + 57 / col2 FROM tab1 AS cor0
----
-13
-25
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3221
SELECT DISTINCT + - ( - col2 ) * col2 DIV - col2 AS col2 FROM tab1 cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-3221
SELECT DISTINCT + - ( - col2 ) * col2 / - col2 AS col2 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - 90 + col1 + + col0 FROM tab2 AS cor0
----
-52
47
6
query I rowsort
SELECT ALL + 44 * - col0 AS col1 FROM tab1 AS cor0
----
-132
-2816
-3520
onlyif mysql # use DIV operator for integer division
query I rowsort label-3224
SELECT ALL col1 - + col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
26
4
7
skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL col1 - + col0 / + col1 AS col2 FROM tab1 AS cor0
----
26
4
7
query I rowsort
SELECT + + ( 64 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 * + col2 * + ( col0 + + cor0.col2 ) col2 FROM tab1 AS cor0
----
-117249
-287232
-52326
query I rowsort
SELECT ALL + 52 + + ( col1 + + 31 ) * - 88 FROM tab2
----
-4172
-5404
-7868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 - + col2 * 58 * + col1 col0 FROM tab2
----
-40470
-48735
-91000
query I rowsort
SELECT + 85 * col0 + + col1 AS col0 FROM tab0 AS cor0
----
2126
3072
7656
query I rowsort
SELECT - - col2 + + col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT + col0 * - col1 AS col1 FROM tab0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + 35 * col0 AS col2 FROM tab2 AS cor0
----
245
2730
2765
query I rowsort
SELECT DISTINCT + 21 AS col1 FROM tab1, tab2 AS cor0
----
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 + - ( col2 ) col0 FROM tab0
----
-125
-44
-76
query I rowsort
SELECT ALL + tab1.col0 + col1 + col0 AS col0 FROM tab1
----
138
173
32
query I rowsort
SELECT + - 99 * col1 + + 29 AS col0 FROM tab1 AS cor0
----
-1258
-2545
-961
query I rowsort
SELECT - 85 * + col2 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-2838
-7052
-86
query I rowsort
SELECT + 84 - + 48 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT + + col0 * cor0.col2 * - col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT 98 * - col1 FROM tab0
----
-8428
-8918
-9506
query I rowsort
SELECT - - ( + 50 ) * - col2 FROM tab1 AS cor0
----
-2700
-2850
-4800
query I rowsort
SELECT - cor0.col1 + cor0.col2 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 546a494e1798cb1c65d1510d48d04dff
query I rowsort
SELECT tab2.col0 + + 24 FROM tab2
----
102
103
31
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3246
SELECT col1 * + col1 - - col2 * CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3246
SELECT col1 * + col1 - - col2 * CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( + col2 ) * - col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT 56 * + 97 AS col2 FROM tab0, tab0 AS cor0
----
5432
query I rowsort
SELECT 8 FROM tab2, tab2 cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT + 67 AS col2 FROM tab2
----
67
67
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 col2 FROM tab0, tab1 cor0
----
86
91
97
query I rowsort
SELECT + col2 + + col1 * + col2 + + 34 FROM tab2
----
1594
718
898
query I rowsort
SELECT - 71 * + tab0.col0 AS col2 FROM tab0
----
-1704
-2485
-6319
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col0 FROM tab0 AS cor0
----
27
27
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-3255
SELECT - 19 DIV + col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3255
SELECT - 19 / + col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT - ( - col2 ) + col2 * cor0.col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL + 35 + cor0.col1 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to d728d257d48101e114f0716ed6b934c1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3258
SELECT ALL - + CAST( NULL AS SIGNED ) * + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL - + CAST ( NULL AS INTEGER ) * + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + tab0.col2 AS col0 FROM tab0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col1 - tab1.col2 * + tab1.col1 col0 FROM tab1
----
-1261
-1430
-580
onlyif mysql # use DIV operator for integer division
query I rowsort label-3261
SELECT DISTINCT col0 DIV col1 + + col0 FROM tab2
----
7
79
83
skipif mysql # not compatible
query I rowsort label-3261
SELECT DISTINCT col0 / col1 + + col0 FROM tab2
----
7
79
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT ALL - + col1 + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col1 * - col1 - - cor0.col0 FROM tab2 AS cor0
----
-210
-3403
-954
onlyif mysql # use DIV operator for integer division
query I rowsort label-3265
SELECT ALL col1 DIV col0 - - tab0.col1 AS col0 FROM tab0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL col1 / col0 - - tab0.col1 AS col0 FROM tab0
----
89
92
99
query I rowsort
SELECT DISTINCT - tab0.col1 + + tab0.col2 AS col0 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT + col2 + - tab0.col2 + + col2 FROM tab0
----
1
33
82
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 IN ( - col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT tab0.col1 + col0 * col0 + tab0.col0 AS col1 FROM tab0
----
1357
686
8101
onlyif mysql # use DIV operator for integer division
query I rowsort label-3270
SELECT - col2 DIV col2 col0 FROM tab1
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3270
SELECT - col2 / col2 col0 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT col2 FROM tab0 WHERE col2 NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT - tab1.col1 * - col2 AS col1 FROM tab1
----
1248
1404
570
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
query I rowsort
SELECT ALL col1 * - tab1.col1 FROM tab1
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-3275
SELECT DISTINCT + col0 + + col0 + col1 DIV - col1 FROM tab0
----
177
47
69
skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT + col0 + + col0 + col1 / - col1 FROM tab0
----
177
47
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-3276
SELECT - col1 DIV col2 + col2 DIV + col0 + - col0 * + tab1.col1 FROM tab1
----
-1039
-60
-640
skipif mysql # not compatible
query I rowsort label-3276
SELECT - col1 / col2 + col2 / + col0 + - col0 * + tab1.col1 FROM tab1
----
-1039
-60
-640
query I rowsort
SELECT - col1 + - col2 FROM tab0 WHERE col2 * - col1 NOT IN ( + col2 * col2 )
----
-119
-173
-98
query I rowsort
SELECT - col1 * + tab0.col2 AS col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL col2 - tab0.col1 * col2 FROM tab0
----
-2805
-7380
-96
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( + tab1.col1 ) AND NULL
----
query I rowsort
SELECT + col1 * col2 + tab1.col1 AS col0 FROM tab1
----
1261
1430
580
query I rowsort
SELECT ALL + tab0.col2 * tab0.col0 + + col2 * - tab0.col0 AS col2 FROM tab0 WHERE - col0 > NULL
----
query I rowsort
SELECT col0 + - col1 - col2 FROM tab0
----
-63
-84
-95
query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE NOT - col2 + col0 * col1 * + col2 < - col2 / - col1
----
-3
-64
-80
query I rowsort
SELECT ALL col1 * + tab1.col2 AS col1 FROM tab1
----
1248
1404
570
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN ( - col1 ) AND + col2
----
query I rowsort
SELECT + col1 + - tab2.col1 + col1 FROM tab2
----
17
31
59
query I rowsort
SELECT col0 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND - col1
----
skipif mysql # not compatible
query I rowsort
SELECT ALL - tab0.col1 + - CAST ( + col0 AS REAL ) * col1 FROM tab0
----
-2150
-3492
-8190
query I rowsort
SELECT + col1 * 55 FROM tab0
----
4730
5005
5335
query I rowsort
SELECT col0 * col2 * col0 - col0 * 79 * col1 FROM tab0
----
-144048
-266980
9701
query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1
----
54
57
96
query I rowsort
SELECT DISTINCT - col1 + col1 AS col0 FROM tab2
----
0
query I rowsort
SELECT DISTINCT col2 * - col1 + - ( col1 ) * col2 AS col0 FROM tab2 AS cor0
----
-1292
-1674
-3068
query I rowsort
SELECT - - col0 + col2 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + col2 * - cor0.col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL - col2 * - tab2.col2 + - col2 + col2 FROM tab2
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-3299
SELECT + 16 DIV col1 AS col1 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-3299
SELECT + 16 / col1 AS col1 FROM tab1 AS cor0
----
0
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3300
SELECT DISTINCT + 28 DIV - 76 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3300
SELECT DISTINCT + 28 / - 76 FROM tab0 AS cor0
----
0
query I rowsort
SELECT cor0.col0 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3302
SELECT ALL + CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 80 * + col1 AS col0 FROM tab0 cor0
----
6880
7280
7760
query I rowsort
SELECT ALL + - 33 * - col1 FROM tab0 AS cor0
----
2838
3003
3201
query I rowsort
SELECT 83 * - 84 * col1 FROM tab1 AS cor0
----
-181272
-69720
-90636
query I rowsort
SELECT DISTINCT + 34 * - 11 AS col1 FROM tab0 AS cor0
----
-374
onlyif mysql # use DIV operator for integer division
query I rowsort label-3307
SELECT ALL col0 DIV 21 FROM tab2 AS cor0
----
0
3
3
skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL col0 / 21 FROM tab2 AS cor0
----
0
3
3
query I rowsort
SELECT 50 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT + 3 * col2 - - cor0.col0 AS col2 FROM tab2 AS cor0
----
156
193
88
query I rowsort
SELECT DISTINCT - col0 + tab2.col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT ALL + 19 + col1 AS col1 FROM tab0
----
105
110
116
query I rowsort
SELECT ALL + col2 + - col0 * 61 AS col0 FROM tab0
----
-1431
-2134
-5347
query I rowsort
SELECT 49 - col0 FROM tab1 AS cor0
----
-15
-31
46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + col0 + - cor0.col2 col0 FROM tab2 AS cor0
----
162
2002
2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-3315
SELECT DISTINCT + cor0.col1 + - col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-3315
SELECT DISTINCT + cor0.col1 + - col1 / + col1 AS col2 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT DISTINCT - + col2 + col2 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - col1 * + col2 - + col2 * cor0.col0 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-159718
-2160
-237804
query I rowsort
SELECT DISTINCT + 94 + - col0 AS col0 FROM tab1 AS cor0
----
14
30
91
query I rowsort
SELECT - col1 + col0 AS col0 FROM tab2 cor0
----
-24
19
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3320
SELECT ALL - col2 * - CAST( + col1 AS SIGNED ) + + col1 FROM tab0 AS cor0
----
194
2924
7553
skipif mysql # not compatible
query I rowsort label-3320
SELECT ALL - col2 * - CAST ( + col1 AS INTEGER ) + + col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT + + cor0.col2 + - 78 * + col1 AS col0 FROM tab0 AS cor0
----
-6675
-7016
-7565
query I rowsort
SELECT cor0.col0 * - 79 + - 15 AS col0 FROM tab2 AS cor0
----
-568
-6177
-6256
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3323
SELECT ALL - col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + col0 AS col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT + col2 + + col0 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT col1 + - 3 FROM tab0 AS cor0
----
83
88
94
query I rowsort
SELECT ALL col1 * - ( - col1 ) AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT col2 - - ( cor0.col1 ) AS col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT - + cor0.col2 + 36 FROM tab2 AS cor0
----
-2
10
9
query I rowsort
SELECT DISTINCT - - cor0.col2 * col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3331
SELECT DISTINCT + - col1 * cor0.col2 + - col1 DIV - col0 + 88 col0 FROM tab2 AS cor0
----
-1446
-558
-745
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3331
SELECT DISTINCT + - col1 * cor0.col2 + - col1 / - col0 + 88 col0 FROM tab2 AS cor0
----
-1446
-558
-745
query I rowsort
SELECT ALL - col2 + + col1 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT - col0 - col1 AS col0 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT ALL col1 - tab1.col2 * col0 * col0 FROM tab1
----
-233462
-460
-614387
query I rowsort
SELECT + col2 + + col0 * col1 AS col0 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT + ( col1 ) + - tab0.col2 + - col0 AS col2 FROM tab0
----
-80
29
61
query I rowsort
SELECT - col2 - - col2 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT + col1 + 45 FROM tab1 AS cor0
----
55
58
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 44 * + col2 * + col1 col2 FROM tab2 AS cor0
----
28441
36859
67555
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 * cor0.col0 col1 FROM tab2 AS cor0
----
-546
-6084
-6162
query I rowsort
SELECT DISTINCT col2 * + col2 + - col0 FROM tab1
----
2913
3185
9136
query I rowsort
SELECT ALL - 0 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # use DIV operator for integer division
query I rowsort label-3344
SELECT ALL tab0.col1 * ( + tab0.col0 ) + - col1 DIV + col2 FROM tab0
----
2062
3298
8098
skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL tab0.col1 * ( + tab0.col0 ) + - col1 / + col2 FROM tab0
----
2062
3298
8098
query I rowsort
SELECT ALL - col0 * - tab2.col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT - col1 * - 1 * - col2 + col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL ( ( col1 ) ) AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT 37 AS col0 FROM tab0
----
37
37
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-3349
SELECT ALL + col0 * - col0 + - 59 DIV col0 AS col0 FROM tab1
----
-28
-4096
-6400
skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL + col0 * - col0 + - 59 / col0 AS col0 FROM tab1
----
-28
-4096
-6400
query I rowsort
SELECT col0 + + 98 AS col2 FROM tab0 AS cor0
----
122
133
187
query I rowsort
SELECT - col2 * col1 * + 55 AS col2 FROM tab0 AS cor0
----
-156090
-410410
-5335
query I rowsort
SELECT ALL - tab1.col1 - col2 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT 17 AS col2 FROM tab0
----
17
17
17
query I rowsort
SELECT tab0.col1 * col0 AS col2 FROM tab0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 42 col2 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * tab1.col2 col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - col0 + ( + col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 * 43 + col2 FROM tab0 AS cor0
----
1065
1506
3909
query I rowsort
SELECT DISTINCT - + cor0.col0 * + col1 * col0 AS col0 FROM tab1 AS cor0
----
-234
-40960
-83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-3360
SELECT cor0.col0 DIV - CAST( + ( col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3360
SELECT cor0.col0 / - CAST ( + ( col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - 5 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21
query I rowsort
SELECT ALL col2 * 2 AS col2 FROM tab1
----
108
114
192
query I rowsort
SELECT + col2 * ( - 26 ) * col1 FROM tab1 cor0
----
-14820
-32448
-36504
query I rowsort
SELECT col2 * 89 FROM tab0 AS cor0
----
2937
7298
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3365
SELECT + - col2 * - CAST( NULL AS DECIMAL ) * col2 - - 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-3365
SELECT + - col2 * - CAST ( NULL AS REAL ) * col2 - - col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * + col2 + col2 AS col2 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-3367
SELECT DISTINCT + col2 DIV + ( - col2 ) - col2 AS col0 FROM tab1 AS cor0
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-3367
SELECT DISTINCT + col2 / + ( - col2 ) - col2 AS col0 FROM tab1 AS cor0
----
-55
-58
-97
query I rowsort
SELECT cor0.col2 * - col1 + col0 * + col1 AS col1 FROM tab0 AS cor0
----
-774
3298
637
query I rowsort
SELECT ALL + col2 + col2 * - col0 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT - - col2 * + ( + 47 ) AS col1 FROM tab0 AS cor0
----
1551
3854
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + col0 col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 * - col0 * col2 AS col0 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT + col2 * + col0 * col0 AS col2 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT ALL col0 + + col1 - - col1 * col1 FROM tab2
----
3618
385
999
query I rowsort
SELECT + tab0.col0 * - col1 - + tab0.col1 AS col1 FROM tab0
----
-2150
-3492
-8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-3376
SELECT + col2 DIV - col2 col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3376
SELECT + col2 / - col2 col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 * - col0 col0 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT - col1 - col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT col1 * - cor0.col2 + + col2 AS col2 FROM tab1 cor0
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-3380
SELECT col0 DIV tab0.col2 + col1 FROM tab0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-3380
SELECT col0 / tab0.col2 + col1 FROM tab0
----
132
86
92
query I rowsort
SELECT col0 + + col2 * col0 AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + cor0.col2 * col1 - + cor0.col1 * cor0.col1 FROM tab0 AS cor0
----
-4558
-819
-9312
query I rowsort
SELECT - col0 + + col2 + col1 FROM tab2 cor0
----
-24
51
7
query I rowsort
SELECT ALL col0 * - col2 * col1 AS col2 FROM tab0 cor0
----
-3395
-664118
-68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + col1 col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT col2 + col2 * col2 AS col0 FROM tab0 cor0
----
1122
2
6806
query I rowsort
SELECT col1 * - col0 - + col0 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1280
-156
-2080
onlyif mysql # use DIV operator for integer division
query I rowsort label-3388
SELECT + + col2 DIV col0 + col0 FROM tab0 AS cor0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-3388
SELECT + + col2 / col0 + col0 FROM tab0 AS cor0
----
25
35
89
query I rowsort
SELECT + 68 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
101
150
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 + col2 col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL cor0.col1 + cor0.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 993162448d72b066e1ac9ba4caa8d8d7
query I rowsort
SELECT DISTINCT - ( - col0 ) AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT col1 * col1 + col0 AS col1 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT - - col2 + + col0 * + col0 * col2 AS col2 FROM tab0 AS cor0
----
1226
19041
649604
query I rowsort
SELECT ALL - 11 + + col2 FROM tab2
----
15
16
27
query I rowsort
SELECT ALL - - cor0.col2 + cor0.col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL - + col2 + col0 + + col0 AS col1 FROM tab1 cor0
----
-48
64
71
query I rowsort
SELECT DISTINCT + + col2 * + col2 - + col1 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT ALL + col1 + - cor0.col1 * - col0 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
22848
271577
6758
query I rowsort
SELECT DISTINCT col0 - cor0.col0 * + col2 AS col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT col2 * col2 + - ( - 59 + - col0 ) * - 98 FROM tab1 AS cor0
----
-3160
-4406
-8805
query I rowsort
SELECT ALL + ( + col1 ) * col2 - - 45 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1020
1833
2574
query I rowsort
SELECT DISTINCT - col2 * col0 AS col0 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3404
SELECT DISTINCT - col2 / + CAST( NULL AS SIGNED ) + cor0.col1 * + col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT - col2 / + CAST ( NULL AS INTEGER ) + cor0.col1 * + col2 FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL + + col2 - + col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - ( 4 ) col0 FROM tab2 AS cor0
----
-124
-236
-68
query I rowsort
SELECT DISTINCT + col1 * + col0 + + col2 * - ( + tab0.col1 ) * + col1 FROM tab0
----
-242004
-6014
-670943
query I rowsort
SELECT + 67 AS col2 FROM tab1
----
67
67
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70
query I rowsort
SELECT ALL - col0 * 75 AS col1 FROM tab1 AS cor0
----
-225
-4800
-6000
query I rowsort
SELECT cor0.col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-3412
SELECT ALL - ( + col1 ) - col0 * - cor0.col2 DIV col2 FROM tab1 AS cor0
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL - ( + col1 ) - col0 * - cor0.col2 / col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - col2 + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT ( + cor0.col0 ) - col1 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + - 45 + - col1 FROM tab2 AS cor0
----
-104
-62
-76
query I rowsort
SELECT - + 43 + + col1 * col2 FROM tab1 AS cor0
----
1205
1361
527
query I rowsort
SELECT ( 45 * col2 ) FROM tab1
----
2430
2565
4320
onlyif mysql # use DIV operator for integer division
query I rowsort label-3418
SELECT - - col2 DIV + col0 + 78 AS col1 FROM tab2 AS cor0
----
78
78
81
skipif mysql # not compatible
query I rowsort label-3418
SELECT - - col2 / + col0 + 78 AS col1 FROM tab2 AS cor0
----
78
78
81
query I rowsort
SELECT + 0 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT - col1 * 52 FROM tab1
----
-1352
-520
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 * + 58 col1 FROM tab1
----
3132
query I rowsort
SELECT - 56 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
query I rowsort
SELECT DISTINCT tab0.col0 FROM tab0, tab2 cor0
----
24
35
89
query I rowsort
SELECT ALL + 67 + - 30 AS col2 FROM tab1
----
37
37
37
query I rowsort
SELECT ALL col2 + - tab2.col0 * - col0 AS col2 FROM tab2
----
6110
6279
76
query I rowsort
SELECT ALL col1 * col0 - col1 AS col0 FROM tab1
----
1027
52
630
query I rowsort
SELECT - col1 * - col1 - + 88 * + col2 FROM tab2 AS cor0
----
-1415
-3055
1193
query I rowsort
SELECT 24 * + col2 - col2 * col1 AS col2 FROM tab0 AS cor0
----
-2046
-5494
-73
query I rowsort
SELECT DISTINCT - 76 * col1 AS col0 FROM tab0 AS cor0
----
-6536
-6916
-7372
query I rowsort
SELECT DISTINCT + 79 * col2 FROM tab1 AS cor0
----
4266
4503
7584
query I rowsort
SELECT + - 29 * col1 AS col2 FROM tab0 AS cor0
----
-2494
-2639
-2813
query I rowsort
SELECT DISTINCT - 29 AS col0 FROM tab0 AS cor0
----
-29
query I rowsort
SELECT col1 * - 1 * col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT 53 * - col0 + col2 + 84 * + tab0.col1 * + col1 AS col0 FROM tab0
----
620025
690969
788502
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) - col0 * - ( col2 ) col0 FROM tab0
----
36
7380
825
query I rowsort
SELECT + 9 AS col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab2 cor1
----
81 values hashing to b7e6b25481699c3a4ee7381c7eae0817
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3437
SELECT DISTINCT col1 + + col1 * CAST( col2 AS SIGNED ) + col0 AS col0 FROM tab1
----
1341
1433
644
skipif mysql # not compatible
query I rowsort label-3437
SELECT DISTINCT col1 + + col1 * CAST ( col2 AS INTEGER ) + col0 AS col0 FROM tab1
----
1341
1433
644
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3438
SELECT col2 * + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3438
SELECT col2 * + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3439
SELECT + 76 + col2 + col2 DIV - 2 AS col2 FROM tab1
----
103
105
124
skipif mysql # not compatible
query I rowsort label-3439
SELECT + 76 + col2 + col2 / - 2 AS col2 FROM tab1
----
103
105
124
onlyif mysql # use DIV operator for integer division
query I rowsort label-3440
SELECT + 64 * + col0 + - 46 DIV - 68 AS col1 FROM tab0
----
1536
2240
5696
skipif mysql # not compatible
query I rowsort label-3440
SELECT + 64 * + col0 + - 46 / - 68 AS col1 FROM tab0
----
1536
2240
5696
query I rowsort
SELECT col2 * - col2 + + ( + cor0.col2 ) * col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - ( col0 ) + col1 AS col2 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT - - col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT 78 FROM tab1
----
78
78
78
query I rowsort
SELECT DISTINCT - col1 - - col0 AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + + col1 + col0 AS col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - 42 * col2 + - col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-10742
-2178
-77
query I rowsort
SELECT ALL + - 43 * + col2 AS col0 FROM tab0 AS cor0
----
-1419
-3526
-43
query I rowsort
SELECT col1 * col0 + + tab2.col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT - cor0.col0 * + 7 AS col2 FROM tab2 cor0
----
-49
-546
-553
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 9b60cb1db2fb2fa5700b0e572b4b6546
query I rowsort
SELECT DISTINCT - cor0.col0 + 20 AS col2 FROM tab1 AS cor0
----
-44
-60
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-3453
SELECT - - col0 DIV - col0 + col1 * + cor0.col2 FROM tab0 AS cor0
----
2837
7461
96
skipif mysql # not compatible
query I rowsort label-3453
SELECT - - col0 / - col0 + col1 * + cor0.col2 FROM tab0 AS cor0
----
2837
7461
96
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + col0 AS REAL ) + col1 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-3455
SELECT ALL - 44 DIV col0 + col2 DIV + 68 AS col1 FROM tab0 cor0
----
-1
-1
1
skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL - 44 / col0 + col2 / + 68 AS col1 FROM tab0 cor0
----
-1
-1
1
query I rowsort
SELECT col0 + ( - col1 ) FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT col2 * 94 FROM tab2 AS cor0
----
2444
2538
3572
query I rowsort
SELECT DISTINCT - 27 * + ( col2 * + cor0.col0 ) FROM tab1 cor0
----
-207360
-4374
-98496
query I rowsort
SELECT ALL + - col0 + - col2 * col0 * + ( + 42 ) FROM tab0 AS cor0
----
-1505
-306605
-33288
query I rowsort
SELECT ALL - - 19 AS col1 FROM tab0 AS cor0
----
19
19
19
query I rowsort
SELECT DISTINCT + ( col2 ) * + col1 + ( - 68 * - col1 ) FROM tab0 cor0
----
13650
6693
8686
query I rowsort
SELECT + col1 * - col0 + - col2 AS col0 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT ALL + col2 + col1 * col0 + + col1 FROM tab0 AS cor0
----
2183
3493
8272
onlyif mysql # use DIV operator for integer division
query I rowsort label-3464
SELECT - + col0 DIV - col2 AS col0 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-3464
SELECT - + col0 / - col2 AS col0 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT + + ( + 98 ) AS col1 FROM tab0 cor0
----
98
query I rowsort
SELECT ALL - - 38 * col0 AS col2 FROM tab0 AS cor0
----
1330
3382
912
query I rowsort
SELECT + + ( 44 ) AS col1 FROM tab0 AS cor0
----
44
44
44
query I rowsort
SELECT ALL + col1 * tab2.col2 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL + - 79 * - col1 FROM tab1 AS cor0
----
1027
2054
790
query I rowsort
SELECT ALL + 99 FROM tab2 AS cor0
----
99
99
99
query I rowsort
SELECT - - 3 FROM tab1 AS cor0
----
3
3
3
query I rowsort
SELECT DISTINCT - - col1 * 49 FROM tab2 AS cor0
----
1519
2891
833
query I rowsort
SELECT DISTINCT - 9 AS col2 FROM tab2 AS cor0
----
-9
query I rowsort
SELECT cor0.col0 + - ( col2 * - cor0.col1 ) FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + col2 * + col0 + cor0.col0 * - col2 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL col1 * + 41 AS col2 FROM tab1 AS cor0
----
1066
410
533
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 + - 97 - + col0 col1 FROM tab0 AS cor0
----
1943
3263
7913
query I rowsort
SELECT + col2 * cor0.col1 - cor0.col2 AS col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT 34 + 20 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
onlyif mysql # use DIV operator for integer division
query I rowsort label-3480
SELECT - col2 + col2 DIV cor0.col1 col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3480
SELECT - col2 + col2 / cor0.col1 col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - col2 * - col2 * + cor0.col1 - - col2 * 6 FROM tab1 AS cor0
----
120384
32832
76140
query I rowsort
SELECT + + 71 + ( - cor0.col2 * + 6 ) AS col2 FROM tab2 AS cor0
----
-157
-85
-91
query I rowsort
SELECT - ( - col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3484
SELECT + 17 DIV - cor1.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-3484
SELECT + 17 / - cor1.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
onlyif mysql # use DIV operator for integer division
query I rowsort label-3485
SELECT col2 * + col1 DIV - tab1.col1 AS col0 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-3485
SELECT col2 * + col1 / - tab1.col1 AS col0 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL + tab2.col1 * - 6 * + 72 + + col2 FROM tab2
----
-13365
-25462
-7306
query I rowsort
SELECT DISTINCT - col1 + + 68 FROM tab2
----
37
51
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3488
SELECT DISTINCT col0 DIV + tab0.col1 + - col1 * - tab0.col2 FROM tab0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT col0 / + tab0.col1 + - col1 * - tab0.col2 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3489
SELECT col0 DIV - 35 FROM tab2
----
-2
-2
0
skipif mysql # not compatible
query I rowsort label-3489
SELECT col0 / - 35 FROM tab2
----
-2
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3490
SELECT col1 DIV 71 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3490
SELECT col1 / 71 FROM tab2
----
0
0
0
query I rowsort
SELECT - cor0.col0 * col0 * + ( - 0 ) AS col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 27 * col2 col0 FROM tab1 AS cor0
----
1458
1539
2592
query I rowsort
SELECT DISTINCT + 77 * col1 FROM tab2 cor0
----
1309
2387
4543
query I rowsort
SELECT DISTINCT 91 * + col0 FROM tab0 AS cor0
----
2184
3185
8099
query I rowsort
SELECT ALL - col1 + - cor0.col2 * + col2 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT + col0 + 52 FROM tab1
----
116
132
55
query I rowsort
SELECT + col2 + col0 * col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT DISTINCT - 99 AS col0 FROM tab2, tab0 AS cor0
----
-99
query I rowsort
SELECT 7 AS col2 FROM tab1
----
7
7
7
query I rowsort
SELECT 88 FROM tab2, tab2 cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT DISTINCT 27 * - 55 FROM tab0
----
-1485
query I rowsort
SELECT - 10 * tab0.col1 - - col0 * - col2 FROM tab0
----
-1005
-1652
-8208
onlyif mysql # use DIV operator for integer division
query I rowsort label-3503
SELECT ( col1 ) * + col1 - tab1.col0 DIV + col0 FROM tab1
----
168
675
99
skipif mysql # not compatible
query I rowsort label-3503
SELECT ( col1 ) * + col1 - tab1.col0 / + col0 FROM tab1
----
168
675
99
query I rowsort
SELECT DISTINCT - ( + tab2.col2 * col1 ) AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + ( col2 * col0 ) AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT ( + col1 + 0 ) FROM tab2
----
17
31
59
query I rowsort
SELECT - col2 * col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT 58 + cor0.col0 - col2 AS col0 FROM tab1 AS cor0
----
42
65
7
query I rowsort
SELECT DISTINCT - - 10 AS col0 FROM tab1 AS cor0
----
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 col2 FROM tab1
----
84
84
84
query I rowsort
SELECT DISTINCT + col1 * - col1 * col2 - col1 FROM tab0 AS cor0
----
-244154
-679133
-9506
query I rowsort
SELECT ALL - cor0.col0 + col1 * - cor0.col2 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT 78 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab1 AS cor0, tab0 AS cor1
----
972 values hashing to 95920403df268a272c4e933cd0bbe0be
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 col0 FROM tab2
----
57
57
57
query I rowsort
SELECT ALL tab1.col1 * + tab1.col1 FROM tab1
----
100
169
676
query I rowsort
SELECT DISTINCT - col0 + col1 * + col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT + col2 * + 78 AS col2 FROM tab0 AS cor0
----
2574
6396
78
query I rowsort
SELECT 41 AS col0 FROM tab0
----
41
41
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-3520
SELECT DISTINCT - col1 DIV - tab1.col0 FROM tab1
----
0
8
skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT - col1 / - tab1.col0 FROM tab1
----
0
8
query I rowsort
SELECT ALL - col1 * - col1 AS col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT + + col1 * col1 + + col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-3523
SELECT - - col2 DIV ( + col2 ) AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3523
SELECT - - col2 / ( + col2 ) AS col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT col2 * + 89 AS col1 FROM tab2
----
2314
2403
3382
onlyif mysql # use DIV operator for integer division
query I rowsort label-3525
SELECT ( 98 ) + cor0.col0 DIV + ( col1 ) col2 FROM tab2 AS cor0
----
102
98
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3525
SELECT ( 98 ) + cor0.col0 / + ( col1 ) col2 FROM tab2 AS cor0
----
102
98
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3526
SELECT ALL + CAST( NULL AS SIGNED ) * 11 + + col1 + 13 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL + CAST ( NULL AS INTEGER ) * 11 + + col1 + 13 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3527
SELECT DISTINCT col2 DIV col1 col1 FROM tab1
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT col2 / col1 col1 FROM tab1
----
2
5
7
query I rowsort
SELECT ALL + 79 FROM tab1 cor0
----
79
79
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-3529
SELECT + 39 DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3529
SELECT + 39 / + col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3530
SELECT - CAST( 83 AS SIGNED ) + col0 AS col0 FROM tab2 AS cor0
----
-4
-5
-76
skipif mysql # not compatible
query I rowsort label-3530
SELECT - CAST ( 83 AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0
----
-4
-5
-76
query I rowsort
SELECT + + 13 AS col1 FROM tab2 AS cor0
----
13
13
13
query I rowsort
SELECT cor1.col1 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - col1 + col0 * 33 FROM tab0 AS cor0
----
1058
2846
706
query I rowsort
SELECT DISTINCT 70 AS col1 FROM tab0, tab2 AS cor0
----
70
query I rowsort
SELECT ALL + 3 * + col2 AS col2 FROM tab2
----
114
78
81
query I rowsort
SELECT ALL ( - ( col2 ) ) FROM tab2
----
-26
-27
-38
query I rowsort
SELECT + + 70 * col0 AS col1 FROM tab0 AS cor0
----
1680
2450
6230
query I rowsort
SELECT - + col1 + + col2 * + 78 AS col2 FROM tab2 AS cor0
----
1969
2075
2947
query I rowsort
SELECT DISTINCT + col0 + + 87 - + col1 FROM tab2
----
106
149
63
query I rowsort
SELECT DISTINCT col2 * - col1 + col0 - col1 * - tab0.col2 FROM tab0
----
24
35
89
query I rowsort
SELECT + col2 - - col0 AS col0 FROM tab2
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-3542
SELECT ALL + 36 DIV - ( - col1 ) FROM tab1 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL + 36 / - ( - col1 ) FROM tab1 AS cor0
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-3543
SELECT col1 DIV + col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3543
SELECT col1 / + col1 FROM tab0
----
1
1
1
query I rowsort
SELECT + col2 * ( col1 ) FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL col0 * col1 + ( - col0 * 65 + tab2.col2 ) AS col2 FROM tab2
----
-211
-3754
-442
query I rowsort
SELECT + col1 + + ( + cor0.col0 * col1 ) + + col2 AS col2 FROM tab1 cor0
----
1149
158
707
query I rowsort
SELECT - col0 * col2 + 85 - + tab2.col1 * col1 FROM tab2
----
-1065
-3206
-5424
query I rowsort
SELECT - col2 + - ( - cor0.col1 ) + col1 FROM tab1 AS cor0
----
-2
-37
-70
query I rowsort
SELECT DISTINCT + cor0.col0 * 29 FROM tab1 AS cor0
----
1856
2320
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) col0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + 36 + + col1 + col0 * col2 FROM tab0
----
168
7425
914
query I rowsort
SELECT ALL + col0 + col2 * col2 + ( col2 * col0 ) AS col0 FROM tab2
----
2782
4525
925
query I rowsort
SELECT ALL + + 89 FROM tab2 cor0
----
89
89
89
query I rowsort
SELECT - ( cor0.col2 ) * col0 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT ALL + + 74 * - col0 FROM tab1 AS cor0
----
-222
-4736
-5920
query I rowsort
SELECT - 5 + 59 + + col0 FROM tab0 AS cor0
----
143
78
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 col1 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT + + 84 * cor0.col0 AS col2 FROM tab1 AS cor0
----
252
5376
6720
query I rowsort
SELECT DISTINCT - 34 * col0 AS col1 FROM tab0 AS cor0
----
-1190
-3026
-816
query I rowsort
SELECT ALL - - ( ( - col1 ) ) + col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3561
SELECT - - ( cor0.col2 ) DIV - col0 + - 97 FROM tab1 AS cor0
----
-115
-97
-98
skipif mysql # not compatible
query I rowsort label-3561
SELECT - - ( cor0.col2 ) / - col0 + - 97 FROM tab1 AS cor0
----
-115
-97
-98
query I rowsort
SELECT ALL - col2 * + 3 AS col0 FROM tab1 AS cor0
----
-162
-171
-288
query I rowsort
SELECT DISTINCT - cor0.col0 + 5 - col0 AS col1 FROM tab1 AS cor0
----
-1
-123
-155
onlyif mysql # use DIV operator for integer division
query I rowsort label-3564
SELECT DISTINCT - - col2 DIV - 71 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT - - col2 / - 71 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3565
SELECT - - 78 * col0 + cor0.col0 DIV + cor0.col1 FROM tab0 AS cor0
----
1872
2730
6942
skipif mysql # not compatible
query I rowsort label-3565
SELECT - - 78 * col0 + cor0.col0 / + cor0.col1 FROM tab0 AS cor0
----
1872
2730
6942
query I rowsort
SELECT DISTINCT + ( col2 ) * col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - col2 + - cor0.col2 * 80 AS col1 FROM tab1 AS cor0
----
-4374
-4617
-7776
query I rowsort
SELECT DISTINCT - - 3 + col1 AS col2 FROM tab0 cor0
----
100
89
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - col0 * col0 col1 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT - + col0 * - cor0.col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT col1 * + cor0.col0 * 72 FROM tab2 AS cor0
----
15624
331344
96696
query I rowsort
SELECT + ( col1 ) * cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + col0 + 91 AS col0 FROM tab0 cor0
----
115
126
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - 58 + - col0 * + cor0.col2 col1 FROM tab1 AS cor0
----
-2112
-342
2970
onlyif mysql # use DIV operator for integer division
query I rowsort label-3575
SELECT col0 DIV + ( - 75 ) - cor0.col1 AS col1 FROM tab0 AS cor0
----
-86
-92
-97
skipif mysql # not compatible
query I rowsort label-3575
SELECT col0 / + ( - 75 ) - cor0.col1 AS col1 FROM tab0 AS cor0
----
-86
-92
-97
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 3b4587ab6c08d2179c6df094d2f76ad7
query I rowsort
SELECT DISTINCT - col0 * col2 * col2 + col0 FROM tab1 AS cor0
----
-207872
-737200
-8745
query I rowsort
SELECT + col0 - - col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT DISTINCT - col2 + 40 AS col2 FROM tab1 AS cor0
----
-14
-17
-56
query I rowsort
SELECT - col0 * col1 - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1120
-704
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3581
SELECT ALL col2 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL col2 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + - col0 * - 45 FROM tab0 AS cor0
----
1478
3914
994
query I rowsort
SELECT ALL - - col2 * ( col0 ) FROM tab2 cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-3584
SELECT DISTINCT col0 DIV ( - col1 ) + - col2 col0 FROM tab1 AS cor0
----
-102
-54
-63
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3584
SELECT DISTINCT col0 / ( - col1 ) + - col2 col0 FROM tab1 AS cor0
----
-102
-54
-63
onlyif mysql # use DIV operator for integer division
query I rowsort label-3585
SELECT DISTINCT col1 - col0 * 90 DIV col1 col1 FROM tab0 AS cor0
----
3
61
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT col1 - col0 * 90 / col1 col1 FROM tab0 AS cor0
----
3
61
65
query I rowsort
SELECT ALL + + col2 * col2 AS col0 FROM tab2 cor0
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT tab1.col1 + col1 AS col1 FROM tab1
----
20
26
52
query I rowsort
SELECT ALL + col1 + - 81 * + col0 + col0 * col1 * - cor0.col1 FROM tab0 AS cor0
----
-179362
-332053
-744127
query I rowsort
SELECT DISTINCT + col2 * - col2 - + col1 AS col0 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT col1 + 67 FROM tab2 AS cor0
----
126
84
98
query I rowsort
SELECT DISTINCT - - col2 * + 50 + + cor0.col1 FROM tab1 AS cor0
----
2726
2860
4813
onlyif mysql # use DIV operator for integer division
query I rowsort label-3593
SELECT ALL - col1 - 83 DIV + 79 FROM tab0 AS cor0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL - col1 - 83 / + 79 FROM tab0 AS cor0
----
-87
-92
-98
query I rowsort
SELECT ALL + col2 + - ( col0 ) FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT + col1 * + ( col0 ) + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3596
SELECT - col2 * ( col2 ) - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3596
SELECT - col2 * ( col2 ) - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3597
SELECT ALL - + 5 DIV - col0 + + col2 * + 39 * col0 + col2 * + col2 AS col2 FROM tab0 cor0
----
1366
291346
31977
skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL - + 5 / - col0 + + col2 * + 39 * col0 + col2 * + col2 AS col2 FROM tab0 cor0
----
1366
291346
31977
query I rowsort
SELECT ALL + 93 * col1 + + col1 AS col0 FROM tab0 AS cor0
----
8084
8554
9118
query I rowsort
SELECT DISTINCT + cor0.col2 * col1 FROM tab2 cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3600
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL - 51 AS col2 FROM tab2 AS cor0
----
-51
-51
-51
query I rowsort
SELECT - + col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3603
SELECT - CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3603
SELECT - CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + ( - col2 ) * 13 * - col0 - + col1 FROM tab2
----
2426
26305
39009
onlyif mysql # use DIV operator for integer division
query I rowsort label-3605
SELECT ALL + col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL + col1 / + col0 AS col1 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT DISTINCT + 58 + col1 AS col0 FROM tab2 AS cor0
----
117
75
89
query I rowsort
SELECT DISTINCT - col1 + - col0 * + col2 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT ALL col1 * cor0.col0 AS col2 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - + col0 * - col0 * + 82 FROM tab2 cor0
----
4018
498888
511762
query I rowsort
SELECT cor0.col1 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
query I rowsort
SELECT + + col0 * - 88 FROM tab0 AS cor0
----
-2112
-3080
-7832
query I rowsort
SELECT + 74 AS col0 FROM tab2 AS cor0
----
74
74
74
query I rowsort
SELECT + - ( + cor0.col1 ) * + cor0.col1 + - col0 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT - 97 + col1 * col0 FROM tab2 AS cor0
----
120
1246
4505
query I rowsort
SELECT ALL 19 + cor1.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 80a340785f9fea0372d5080248bc0a30
query I rowsort
SELECT col2 - col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL - - cor0.col2 * + 61 AS col2 FROM tab0 AS cor0
----
2013
5002
61
query I rowsort
SELECT ALL col1 - ( col0 * - col1 ) AS col2 FROM tab2 cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT - col1 * 8 AS col2 FROM tab2 AS cor0
----
-136
-248
-472
query I rowsort
SELECT DISTINCT 48 FROM tab2, tab2 AS cor0
----
48
query I rowsort
SELECT ( 98 ) FROM tab1, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
onlyif mysql # use DIV operator for integer division
query I rowsort label-3622
SELECT - col1 + + cor0.col1 DIV col0 FROM tab1 AS cor0
----
-10
-13
-18
skipif mysql # not compatible
query I rowsort label-3622
SELECT - col1 + + cor0.col1 / col0 FROM tab1 AS cor0
----
-10
-13
-18
query I rowsort
SELECT + 69 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT - 58 FROM tab1 AS cor0
----
-58
-58
-58
onlyif mysql # use DIV operator for integer division
query I rowsort label-3625
SELECT + col0 DIV - 66 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3625
SELECT + col0 / - 66 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT + tab1.col0 FROM tab1, tab2 AS cor0, tab2 cor1
----
3
64
80
query I rowsort
SELECT - 34 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3628
SELECT + tab1.col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3628
SELECT + tab1.col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + 79 FROM tab2
----
110
138
96
query I rowsort
SELECT - 90 + - col1 AS col2 FROM tab0 cor0
----
-176
-181
-187
query I rowsort
SELECT - col0 + + cor0.col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col1 + - 31 FROM tab0 cor0
----
-117
-122
-128
skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( - 77 AS REAL ) FROM tab2 AS cor0
----
77
77
77
query I rowsort
SELECT - ( 24 ) * + col0 FROM tab0 cor0
----
-2136
-576
-840
query I rowsort
SELECT - + col2 * 6 FROM tab0 AS cor0
----
-198
-492
-6
query I rowsort
SELECT DISTINCT - col1 * - col1 + col0 + 93 AS col0 FROM tab2 AS cor0
----
1061
3652
461
query I rowsort
SELECT DISTINCT 42 AS col1 FROM tab0 AS cor0
----
42
query I rowsort
SELECT ALL - 84 AS col2 FROM tab0
----
-84
-84
-84
query I rowsort
SELECT DISTINCT - + 1 * + col2 + ( 93 ) * col2 FROM tab0 AS cor0
----
3036
7544
92
query I rowsort
SELECT ALL - 96 + + col0 FROM tab1 AS cor0
----
-16
-32
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-3641
SELECT DISTINCT - ( - col1 ) * 20 DIV col1 FROM tab1 cor0
----
20
skipif mysql # not compatible
query I rowsort label-3641
SELECT DISTINCT - ( - col1 ) * 20 / col1 FROM tab1 cor0
----
20
query I rowsort
SELECT DISTINCT ( + col0 ) * col0 + - col1 AS col1 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT - + col1 + - cor0.col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT ALL 53 * - col0 + col2 AS col0 FROM tab2
----
-344
-4108
-4149
query I rowsort
SELECT DISTINCT - col1 + 90 * col1 AS col2 FROM tab0
----
7654
8099
8633
onlyif mysql # use DIV operator for integer division
query I rowsort label-3646
SELECT DISTINCT ( col1 ) DIV - col2 + - 6 * col0 AS col1 FROM tab1
----
-18
-384
-480
skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT ( col1 ) / - col2 + - 6 * col0 AS col1 FROM tab1
----
-18
-384
-480
query I rowsort
SELECT 91 - - col0 FROM tab0
----
115
126
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 * - col0 col1 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-3649
SELECT ALL col0 + + col0 DIV CAST( col1 AS SIGNED ) + col2 AS col2 FROM tab2
----
105
121
34
skipif mysql # not compatible
query I rowsort label-3649
SELECT ALL col0 + + col0 / CAST ( col1 AS INTEGER ) + col2 AS col2 FROM tab2
----
105
121
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - 62 col2 FROM tab1 AS cor0
----
126
142
65
query I rowsort
SELECT + col2 * col0 * col1 + - cor0.col1 FROM tab2 AS cor0
----
119593
51017
5828
onlyif mysql # use DIV operator for integer division
query I rowsort label-3652
SELECT - col0 DIV + col1 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-3652
SELECT - col0 / + col1 FROM tab2
----
-1
-4
0
query I rowsort
SELECT ( tab1.col0 ) * 19 FROM tab1
----
1216
1520
57
query I rowsort
SELECT - 80 * + tab1.col0 AS col0 FROM tab1
----
-240
-5120
-6400
query I rowsort
SELECT - 20 * - col2 * col2 AS col1 FROM tab2
----
13520
14580
28880
query I rowsort
SELECT cor0.col1 * - ( 14 ) + cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 1dbc08d5147715f61f05c92cf2c638b4
query I rowsort
SELECT tab2.col1 * + tab2.col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT col2 * 62 FROM tab1
----
3348
3534
5952
onlyif mysql # use DIV operator for integer division
query I rowsort label-3659
SELECT + + col1 + - col1 DIV col1 AS col2 FROM tab1 cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-3659
SELECT + + col1 + - col1 / col1 AS col2 FROM tab1 cor0
----
12
25
9
query I rowsort
SELECT col2 + tab1.col1 + + 14 FROM tab1
----
123
81
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 col1 FROM tab2 AS cor0
----
-16
-16
-16
query I rowsort
SELECT ALL - + 31 * + col0 AS col2 FROM tab2 AS cor0
----
-217
-2418
-2449
query I rowsort
SELECT DISTINCT + cor0.col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT col0 * + col0 - - 62 FROM tab1 AS cor0
----
4158
6462
71
query I rowsort
SELECT ALL + cor0.col1 * + col1 FROM tab2 cor0
----
289
3481
961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3666
SELECT + - col0 * - col2 + CAST( NULL AS SIGNED ) * + 33 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3666
SELECT + - col0 * - col2 + CAST ( NULL AS INTEGER ) * + 33 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( - col2 ) * ( + cor0.col1 ) * + col2 AS col0 FROM tab2 AS cor0
----
22599
24548
39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - col0 col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT + ( 67 ) * - tab1.col1 + - col0 FROM tab1
----
-1745
-734
-951
query I rowsort
SELECT DISTINCT - col2 * + tab0.col0 AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ( - col1 ) + + col1 * col2 FROM tab1
----
1235
1378
560
query I rowsort
SELECT DISTINCT - col1 * + ( - col0 ) * + col0 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT + 17 * + tab0.col1 FROM tab0
----
1462
1547
1649
query I rowsort
SELECT DISTINCT - col1 + tab0.col2 * ( - col2 ) FROM tab0
----
-1175
-6815
-98
query I rowsort
SELECT ALL tab1.col0 - col0 AS col2 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3676
SELECT DISTINCT col2 - col2 * + CAST( col2 AS SIGNED ) FROM tab1
----
-2862
-3192
-9120
skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT col2 - col2 * + CAST ( col2 AS INTEGER ) FROM tab1
----
-2862
-3192
-9120
query I rowsort
SELECT ALL + 58 + + cor0.col1 FROM tab2 cor0
----
117
75
89
query I rowsort
SELECT ALL - cor0.col0 + col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT 55 * - col0 AS col1 FROM tab1 AS cor0
----
-165
-3520
-4400
query I rowsort
SELECT DISTINCT + + cor0.col0 * + col1 + + 66 - cor0.col1 * + col2 * 56 AS col2 FROM tab2 AS cor0
----
-34767
-46589
-81236
query I rowsort
SELECT tab0.col2 + - tab0.col2 * col2 + - col2 AS col1 FROM tab0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-3682
SELECT DISTINCT + col1 DIV - tab1.col1 AS col0 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-3682
SELECT DISTINCT + col1 / - tab1.col1 AS col0 FROM tab1
----
-1
query I rowsort
SELECT ALL cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT + - col1 + - col1 * col1 * + col1 FROM tab0 AS cor0
----
-636142
-753662
-912770
query I rowsort
SELECT - tab1.col1 - col0 AS col0 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT ALL - col2 + - tab0.col1 * col2 FROM tab0
----
-2871
-7544
-98
query I rowsort
SELECT - cor1.col1 * + 4 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to bf07f96317a510ccf92de26cc2ad7219
query I rowsort
SELECT - col2 + + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col0 FROM tab0, tab0 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
onlyif mysql # use DIV operator for integer division
query I rowsort label-3690
SELECT ALL + - col0 + - col1 DIV - col0 FROM tab0 AS cor0
----
-21
-33
-88
skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL + - col0 + - col1 / - col0 FROM tab0 AS cor0
----
-21
-33
-88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3691
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3691
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3692
SELECT 82 + - col1 DIV + col0 FROM tab1 AS cor0
----
74
82
82
skipif mysql # not compatible
query I rowsort label-3692
SELECT 82 + - col1 / + col0 FROM tab1 AS cor0
----
74
82
82
query I rowsort
SELECT ALL + 50 * cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
141900
373100
4850
query I rowsort
SELECT DISTINCT 14 FROM tab0 AS cor0
----
14
query I rowsort
SELECT + - ( + col2 ) * - col0 * - col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT ALL + 98 + - 28 AS col0 FROM tab2 AS cor0
----
70
70
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( - col0 ) col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - cor0.col1 * + col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT + col0 + - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT + + 64 AS col0 FROM tab2 AS cor0
----
64
64
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-3701
SELECT DISTINCT - col0 DIV - col2 + - col0 FROM tab0 AS cor0
----
-24
-88
0
skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT - col0 / - col2 + - col0 FROM tab0 AS cor0
----
-24
-88
0
query I rowsort
SELECT ALL 98 AS col1 FROM tab1 AS cor0
----
98
98
98
query I rowsort
SELECT ALL col1 * col1 + col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT DISTINCT 47 FROM tab1 AS cor0
----
47
query I rowsort
SELECT ALL - - 53 * - 14 + - col2 AS col0 FROM tab2 cor0
----
-768
-769
-780
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3706
SELECT DISTINCT - CAST( col2 AS SIGNED ) * - col2 col2 FROM tab1 AS cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT - CAST ( col2 AS INTEGER ) * - col2 col2 FROM tab1 AS cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 43 col2 FROM tab0 AS cor0
----
3698
3913
4171
onlyif mysql # use DIV operator for integer division
query I rowsort label-3708
SELECT ALL - ( 18 ) DIV col0 + col2 AS col0 FROM tab2 AS cor0
----
25
26
38
skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL - ( 18 ) / col0 + col2 AS col0 FROM tab2 AS cor0
----
25
26
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-3709
SELECT - + 22 * + cor0.col1 DIV col1 AS col2 FROM tab0 AS cor0
----
-22
-22
-22
skipif mysql # not compatible
query I rowsort label-3709
SELECT - + 22 * + cor0.col1 / col1 AS col2 FROM tab0 AS cor0
----
-22
-22
-22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3710
SELECT ALL CAST( 29 AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
-1015
-2581
-696
skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL CAST ( 29 AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
-1015
-2581
-696
query I rowsort
SELECT + col1 * col1 * + col1 AS col2 FROM tab2 cor0
----
205379
29791
4913
query I rowsort
SELECT + 14 * - col2 AS col1 FROM tab1 AS cor0
----
-1344
-756
-798
query I rowsort
SELECT - 64 * - col2 FROM tab0 AS cor0
----
2112
5248
64
query I rowsort
SELECT DISTINCT + 48 + col0 AS col0 FROM tab2 AS cor0
----
126
127
55
query I rowsort
SELECT - cor0.col1 + 98 * + 22 * cor0.col2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to bee0898e15a1af725b988293446dedfa
query I rowsort
SELECT ALL + - 19 FROM tab0 cor0
----
-19
-19
-19
query I rowsort
SELECT DISTINCT - col0 + + col1 * + col1 + col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL + 29 AS col0 FROM tab0
----
29
29
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-3719
SELECT ( + col0 ) * - col0 DIV ( + ( + tab1.col0 ) ) + + col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3719
SELECT ( + col0 ) * - col0 / ( + ( + tab1.col0 ) ) + + col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL + col0 - + col2 AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT col2 * 85 AS col1 FROM tab2 cor0
----
2210
2295
3230
query I rowsort
SELECT - col0 * + cor0.col0 + col0 FROM tab1 cor0
----
-4032
-6
-6320
query I rowsort
SELECT col1 * - col1 + col2 * col2 AS col2 FROM tab0 AS cor0
----
-1557
-6307
-9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-3724
SELECT DISTINCT - col0 + - col1 DIV - cor0.col0 FROM tab2 AS cor0
----
-3
-78
-79
skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT - col0 + - col1 / - cor0.col0 FROM tab2 AS cor0
----
-3
-78
-79
query I rowsort
SELECT DISTINCT - + cor0.col1 * 10 - cor0.col2 FROM tab0 AS cor0
----
-893
-971
-992
query I rowsort
SELECT ALL + cor0.col0 * 21 FROM tab1 AS cor0
----
1344
1680
63
query I rowsort
SELECT DISTINCT col2 * + 33 AS col1 FROM tab0 AS cor0
----
1089
2706
33
query I rowsort
SELECT ALL - + col2 * + 7 + - col2 AS col2 FROM tab0 cor0
----
-264
-656
-8
query I rowsort
SELECT DISTINCT + + cor0.col0 + ( + col1 ) FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + col1 + + ( - tab0.col2 ) AS col0 FROM tab0
----
53
9
96
query I rowsort
SELECT - 57 + cor1.col2 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1218dfb620be3d232bf1a382e4d674e3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col0 col1 FROM tab0 cor0
----
-2
-62
query I rowsort
SELECT + + 56 + - col1 * + col2 AS col2 FROM tab1 AS cor0
----
-1192
-1348
-514
onlyif mysql # use DIV operator for integer division
query I rowsort label-3734
SELECT DISTINCT - - ( ( col1 ) ) DIV + 90 + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT - - ( ( col1 ) ) / + 90 + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT - ( 95 ) + + col2 FROM tab1 cor0
----
-38
-41
1
query I rowsort
SELECT tab2.col2 * - ( + 74 * + col0 ) + - col1 * col2 FROM tab2
----
-14823
-151606
-222794
onlyif mysql # use DIV operator for integer division
query I rowsort label-3737
SELECT DISTINCT - tab0.col0 DIV col1 + + ( - col0 ) DIV - tab0.col0 col0 FROM tab0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3737
SELECT DISTINCT - tab0.col0 / col1 + + ( - col0 ) / - tab0.col0 col0 FROM tab0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 + + 63 col0 FROM tab0
----
145
64
96
query I rowsort
SELECT + col2 * 44 FROM tab2
----
1144
1188
1672
query I rowsort
SELECT - col2 * - col0 * cor0.col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL 21 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
query I rowsort
SELECT 69 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT DISTINCT tab0.col0 * + col2 * - col0 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT - + col2 * - 52 AS col0 FROM tab1 AS cor0
----
2808
2964
4992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3745
SELECT col2 + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3745
SELECT col2 + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3746
SELECT ALL + col2 + - ( col0 ) DIV col0 AS col0 FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL + col2 + - ( col0 ) / col0 AS col0 FROM tab2 AS cor0
----
25
26
37
query I rowsort
SELECT ALL - col0 * 31 AS col0 FROM tab2 cor0
----
-217
-2418
-2449
query I rowsort
SELECT ALL + cor1.col0 + cor0.col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a7182bf415215b07824744b782a00748
query I rowsort
SELECT tab0.col2 + - ( + tab0.col1 * tab0.col2 ) FROM tab0
----
-2805
-7380
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3750
SELECT - CAST( col1 AS SIGNED ) FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-3750
SELECT - CAST ( col1 AS INTEGER ) FROM tab1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + ( - 99 * col1 ) FROM tab1
----
-1287
-2574
-990
query I rowsort
SELECT DISTINCT + 87 AS col1 FROM tab2
----
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-3753
SELECT + ( + col2 ) + + col0 DIV + col0 + - tab0.col1 DIV col0 FROM tab0
----
0
31
82
skipif mysql # not compatible
query I rowsort label-3753
SELECT + ( + col2 ) + + col0 / + col0 + - tab0.col1 / col0 FROM tab0
----
0
31
82
query I rowsort
SELECT - ( col2 ) * col0 + + col1 * tab1.col0 + + col0 AS col0 FROM tab1
----
-2944
-6560
-81
query I rowsort
SELECT DISTINCT 63 * col2 + - col2 + + tab2.col2 * + col2 * + col1 FROM tab2
----
24273
26904
41496
query I rowsort
SELECT DISTINCT - 97 * + 78 + - col2 AS col0 FROM tab1
----
-7620
-7623
-7662
query I rowsort
SELECT DISTINCT + ( 38 ) * + col2 FROM tab2 AS cor0
----
1026
1444
988
onlyif mysql # use DIV operator for integer division
query I rowsort label-3758
SELECT - col1 + col1 * + col2 - - 14 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371
skipif mysql # not compatible
query I rowsort label-3758
SELECT - col1 + col1 * + col2 - - 14 / - col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL - 1 + col0 FROM tab0 cor0
----
23
34
88
query I rowsort
SELECT + - col0 * col0 * + cor0.col2 + + col0 * 35 + + col1 AS col0 FROM tab1 AS cor0
----
-231222
-355
-611587
query I rowsort
SELECT DISTINCT col1 * + 81 FROM tab0 AS cor0
----
6966
7371
7857
query I rowsort
SELECT ALL - ( col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - 32 FROM tab0
----
-32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 45 + col1 ) * ( col0 + col2 ) col1 FROM tab0
----
23256
5112
7467
query I rowsort
SELECT ALL - - 11 * 95 FROM tab2 AS cor0
----
1045
1045
1045
onlyif mysql # use DIV operator for integer division
query I rowsort label-3766
SELECT 1 * 18 + - col2 DIV col2 + 46 FROM tab1 AS cor0
----
63
63
63
skipif mysql # not compatible
query I rowsort label-3766
SELECT 1 * 18 + - col2 / col2 + 46 FROM tab1 AS cor0
----
63
63
63
query I rowsort
SELECT cor1.col0 - + cor0.col0 * 36 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a5808bc7fc484dbddc009001c8f2838b
query I rowsort
SELECT DISTINCT + - col2 * - col0 + - col1 FROM tab0 cor0
----
-62
706
7207
query I rowsort
SELECT + + col0 + - col0 + + 11 FROM tab1 AS cor0
----
11
11
11
query I rowsort
SELECT col1 * col2 * ( col0 ) + - col2 AS col0 FROM tab1 AS cor0
----
36423
4158
99744
query I rowsort
SELECT DISTINCT + - 51 * - col1 AS col0 FROM tab1 AS cor0
----
1326
510
663
query I rowsort
SELECT ALL - - 20 FROM tab2 AS cor0
----
20
20
20
query I rowsort
SELECT - ( + cor0.col2 ) * 81 + - 56 * col1 FROM tab1 AS cor0
----
-5177
-5830
-8504
query I rowsort
SELECT ALL - - cor0.col0 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3776
SELECT DISTINCT + col2 + - col1 DIV col0 FROM tab1
----
46
57
96
skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT + col2 + - col1 / col0 FROM tab1
----
46
57
96
query I rowsort
SELECT - 56 * col1 FROM tab0 cor0
----
-4816
-5096
-5432
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 + ( - col0 ) + - col0 * - 50 col0 FROM tab0 AS cor0
----
11659
1750
1968
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3779
SELECT ( col2 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3779
SELECT ( col2 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 + - col0 * col1 * col0 AS col0 FROM tab0
----
-118728
-49450
-720720
query I rowsort
SELECT 90 * + col1 AS col1 FROM tab2
----
1530
2790
5310
query I rowsort
SELECT - - 70 + + col0 FROM tab2 AS cor0
----
148
149
77
query I rowsort
SELECT + + cor0.col1 * + col2 - + col0 * + col2 FROM tab0 AS cor0
----
164
2046
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3784
SELECT ALL + col1 + col2 * - CAST( col0 AS SIGNED ) * col1 AS col2 FROM tab0
----
-3298
-664027
-68026
skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL + col1 + col2 * - CAST ( col0 AS INTEGER ) * col1 AS col2 FROM tab0
----
-3298
-664027
-68026
query I rowsort
SELECT - col0 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-132
-2862
-7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-3786
SELECT + col1 - cor0.col1 DIV + ( - 64 + col2 ) AS col0 FROM tab0 AS cor0
----
86
88
98
skipif mysql # not compatible
query I rowsort label-3786
SELECT + col1 - cor0.col1 / + ( - 64 + col2 ) AS col0 FROM tab0 AS cor0
----
86
88
98
query I rowsort
SELECT ALL + col1 + col2 * - ( cor0.col2 ) AS col0 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT - col2 * col2 AS col2 FROM tab2 cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 86 col2 FROM tab2 AS cor0
----
164
165
93
query I rowsort
SELECT ALL + col2 + - col2 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * ( col1 ) col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT cor0.col0 * - 9 FROM tab0 AS cor0
----
-216
-315
-801
query I rowsort
SELECT ALL + - col1 + col0 * + col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT 79 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3795
SELECT ALL - cor0.col2 * CAST( NULL AS SIGNED ) + - 97 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL - cor0.col2 * CAST ( NULL AS INTEGER ) + - 97 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3796
SELECT DISTINCT + - col0 * + col0 - ( col0 ) DIV - ( - col2 ) FROM tab1 AS cor0
----
-4097
-6400
-9
skipif mysql # not compatible
query I rowsort label-3796
SELECT DISTINCT + - col0 * + col0 - ( col0 ) / - ( - col2 ) FROM tab1 AS cor0
----
-4097
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3797
SELECT ALL - col1 DIV 45 AS col0 FROM tab2 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL - col1 / 45 AS col0 FROM tab2 cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT - tab2.col2 FROM tab0, tab1, tab1 cor0, tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort
SELECT cor0.col1 / CAST ( - 1 AS REAL ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT DISTINCT + ( - col0 ) * - col2 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT tab0.col2 + + cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to bd4afbebf32cf7139d4a26f0c77f8156
query I rowsort
SELECT - - 42 + cor0.col1 AS col1 FROM tab1 AS cor0
----
52
55
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3803
SELECT - CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-3803
SELECT - CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - 28 - + col2 FROM tab0 AS cor0
----
-110
-29
-61
query I rowsort
SELECT cor0.col1 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3806
SELECT - + CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3806
SELECT - + CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 39 + - col1 FROM tab2 AS cor0
----
-56
-70
-98
query I rowsort
SELECT - - ( col1 ) * + col2 + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL + + ( col0 ) * col0 - col2 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT DISTINCT 44 AS col1 FROM tab1, tab0 AS cor0
----
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 68 col1 FROM tab0 AS cor0
----
68
68
68
query I rowsort
SELECT DISTINCT + 74 * + col0 + col0 AS col2 FROM tab0 AS cor0
----
1800
2625
6675
query I rowsort
SELECT ALL + ( + col2 ) * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT 44 + col1 AS col0 FROM tab1
----
54
57
70
query I rowsort
SELECT ALL 28 AS col0 FROM tab0
----
28
28
28
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53
query I rowsort
SELECT ALL - ( - col1 ) * + col2 * 92 + - 45 * + col1 AS col2 FROM tab0 AS cor0
----
257226
4559
682409
query I rowsort
SELECT DISTINCT - 45 AS col2 FROM tab1 AS cor0
----
-45
query I rowsort
SELECT ALL - - cor0.col0 + col0 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL col2 + 9 AS col1 FROM tab2 cor0
----
35
36
47
query I rowsort
SELECT 49 * + col2 FROM tab1 AS cor0
----
2646
2793
4704
query I rowsort
SELECT DISTINCT - - ( + col0 ) FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT + - 9 * + col2 AS col2 FROM tab2 AS cor0
----
-234
-243
-342
query I rowsort
SELECT DISTINCT + col0 + - col2 * - 30 FROM tab2 AS cor0
----
1219
817
858
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 col0 FROM tab1 AS cor0
----
26
query I rowsort
SELECT ALL col0 + - col1 * - 5 FROM tab0 AS cor0
----
454
520
544
query I rowsort
SELECT ALL + 72 AS col2 FROM tab0 AS cor0
----
72
72
72
query I rowsort
SELECT DISTINCT - 5 * + col1 AS col2 FROM tab1 AS cor0
----
-130
-50
-65
query I rowsort
SELECT 76 * + col1 FROM tab0 AS cor0
----
6536
6916
7372
query I rowsort
SELECT + col1 * col2 * - col0 + + ( col0 ) FROM tab1
----
-36416
-4209
-99760
onlyif mysql # use DIV operator for integer division
query I rowsort label-3831
SELECT DISTINCT 44 DIV col2 AS col0 FROM tab0
----
0
1
44
skipif mysql # not compatible
query I rowsort label-3831
SELECT DISTINCT 44 / col2 AS col0 FROM tab0
----
0
1
44
query I rowsort
SELECT - 17 AS col0 FROM tab1
----
-17
-17
-17
query I rowsort
SELECT DISTINCT ( - col0 ) FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ( - 70 ) - col1 AS col0 FROM tab1
----
-80
-83
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3835
SELECT col1 DIV + 21 + - tab0.col1 * - ( + col2 + col2 ) AS col2 FROM tab0
----
14928
198
5680
skipif mysql # not compatible
query I rowsort label-3835
SELECT col1 / + 21 + - tab0.col1 * - ( + col2 + col2 ) AS col2 FROM tab0
----
14928
198
5680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3836
SELECT + + col1 * + CAST( col2 AS SIGNED ) AS col2 FROM tab0 cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-3836
SELECT + + col1 * + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT col2 + cor0.col1 + ( col0 ) FROM tab2 cor0
----
134
163
65
query I rowsort
SELECT ALL - cor0.col0 * - ( - col0 ) * - col0 - col2 AS col2 FROM tab2 AS cor0
----
316
474526
493001
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col1 col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + cor0.col2 * col0 + col0 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-3842
SELECT ALL - col1 DIV - ( col2 ) + col0 * col0 + col0 AS col2 FROM tab0 AS cor0
----
1357
602
8011
skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL - col1 / - ( col2 ) + col0 * col0 + col0 AS col2 FROM tab0 AS cor0
----
1357
602
8011
query I rowsort
SELECT DISTINCT - + col1 * col0 - 41 AS col0 FROM tab0 AS cor0
----
-2105
-3436
-8140
query I rowsort
SELECT - col0 + + 34 * ( cor0.col1 ) FROM tab0 cor0
----
2900
3005
3263
query I rowsort
SELECT DISTINCT + + col2 * 33 - + col0 AS col0 FROM tab0 AS cor0
----
-2
1065
2617
query I rowsort
SELECT DISTINCT 99 * col0 * + ( - col0 * + col1 ) - - 24 * - col0 * col0 AS col0 FROM tab2
----
-10653387
-151557
-35682660
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3847
SELECT ALL tab0.col1 - - col2 * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL tab0.col1 - - col2 * CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - tab2.col2 * - col1 AS col0 FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-3849
SELECT ALL + cor0.col0 DIV ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL + cor0.col0 / ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
0
1
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3850
SELECT - col0 * - CAST( NULL AS SIGNED ) + col2 * + col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3850
SELECT - col0 * - CAST ( NULL AS INTEGER ) + col2 * + col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT tab1.col1 * 64 + 36 AS col0 FROM tab1
----
1700
676
868
query I rowsort
SELECT ALL + ( col0 ) + - col1 AS col2 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3853
SELECT ( cor0.col2 ) * col1 DIV col1 + - 16 AS col0 FROM tab1 AS cor0
----
38
41
80
skipif mysql # not compatible
query I rowsort label-3853
SELECT ( cor0.col2 ) * col1 / col1 + - 16 AS col0 FROM tab1 AS cor0
----
38
41
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3854
SELECT - - col2 * - col2 + - col1 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3854
SELECT - - col2 * - col2 + - col1 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + ( 52 ) * col1 FROM tab2 AS cor0
----
1612
3068
884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3856
SELECT CAST( + cor0.col0 AS SIGNED ) FROM tab0 cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3856
SELECT CAST ( + cor0.col0 AS INTEGER ) FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT 12 * + col1 AS col2 FROM tab2 AS cor0
----
204
372
708
query I rowsort
SELECT - col2 + + 50 + - col2 FROM tab2
----
-2
-26
-4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3859
SELECT col2 * - CAST( - col2 AS SIGNED ) * - col2 + CAST( 31 AS SIGNED ) * col1 AS col1 FROM tab1
----
-156658
-184883
-884333
skipif mysql # not compatible
query I rowsort label-3859
SELECT col2 * - CAST ( - col2 AS INTEGER ) * - col2 + CAST ( 31 AS INTEGER ) * col1 AS col1 FROM tab1
----
-156658
-184883
-884333
onlyif mysql # use DIV operator for integer division
query I rowsort label-3860
SELECT + col1 DIV - ( ( col2 ) ) FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3860
SELECT + col1 / - ( ( col2 ) ) FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT 69 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
69
query I rowsort
SELECT ALL tab0.col0 + 21 + + col2 AS col0 FROM tab0
----
192
57
78
query I rowsort
SELECT DISTINCT - tab1.col0 + + 56 * tab1.col0 AS col0 FROM tab1
----
165
3520
4400
query I rowsort
SELECT tab2.col1 * + col2 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT 5 FROM tab0, tab0 AS cor0
----
5
query I rowsort
SELECT - 76 * + cor1.col0 AS col0 FROM tab2, tab1 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 1f67670ec4e89ee75bc20d0d432b9168
query I rowsort
SELECT - 70 + 42 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc
query I rowsort
SELECT DISTINCT - 38 FROM tab1, tab1 AS cor0
----
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3869
SELECT - + CAST( NULL AS SIGNED ) * col1 + - col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3869
SELECT - + CAST ( NULL AS INTEGER ) * col1 + - col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - ( cor0.col2 ) * + col2 + 23 FROM tab0 AS cor0
----
1112
24
6747
query I rowsort
SELECT - cor0.col2 + - col0 FROM tab0 cor0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col0 - col0 col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - ( col2 ) AS col2 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + - col2 + + col2 FROM tab2 cor0
----
0
query I rowsort
SELECT DISTINCT - + ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3876
SELECT - CAST( NULL AS SIGNED ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3876
SELECT - CAST ( NULL AS INTEGER ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col0 * - 22 AS col2 FROM tab2 AS cor0
----
-154
-1716
-1738
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3878
SELECT DISTINCT ( - col1 ) * - col0 / CAST( NULL AS SIGNED ) + col0 col1 FROM tab2 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT ( - col1 ) * - col0 / CAST ( NULL AS INTEGER ) + col0 col1 FROM tab2 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3879
SELECT ALL - CAST( + 86 AS SIGNED ) FROM tab2 AS cor0
----
-86
-86
-86
skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL - CAST ( + 86 AS INTEGER ) FROM tab2 AS cor0
----
-86
-86
-86
query I rowsort
SELECT DISTINCT - col2 + - col2 AS col1 FROM tab0
----
-164
-2
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3881
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-3881
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL
query I rowsort
SELECT 17 * col0 + col1 FROM tab0
----
1604
494
692
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + - col2 col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + 98 AS col2 FROM tab1 AS cor0
----
98
98
98
query I rowsort
SELECT DISTINCT + + ( - cor0.col0 ) * - col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + tab1.col2 - + 95 FROM tab1, tab1 AS cor0
----
9 values hashing to ce40a14795d1e2927f80aec9df40ea34
query I rowsort
SELECT DISTINCT col2 + + tab2.col0 FROM tab2
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-3888
SELECT cor0.col2 * - col1 + col2 DIV - 37 + - col0 FROM tab2 AS cor0
----
-1612
-726
-844
skipif mysql # not compatible
query I rowsort label-3888
SELECT cor0.col2 * - col1 + col2 / - 37 + - col0 FROM tab2 AS cor0
----
-1612
-726
-844
query I rowsort
SELECT ALL - - 3 * + col1 FROM tab1 AS cor0
----
30
39
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3890
SELECT - col2 * CAST( NULL AS SIGNED ) + 29 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3890
SELECT - col2 * CAST ( NULL AS INTEGER ) + 29 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3891
SELECT DISTINCT - tab0.col2 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT - tab0.col2 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3892
SELECT ALL - - col0 DIV - 70 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL - - col0 / - 70 FROM tab0 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * - col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT col0 * - 59 + cor0.col2 FROM tab1 AS cor0
----
-123
-3719
-4624
query I rowsort
SELECT + + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL + col2 * + 44 AS col2 FROM tab1 AS cor0
----
2376
2508
4224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3897
SELECT DISTINCT - col0 * - CAST( + 3 AS SIGNED ) FROM tab2 AS cor0
----
21
234
237
skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT - col0 * - CAST ( + 3 AS INTEGER ) FROM tab2 AS cor0
----
21
234
237
query I rowsort
SELECT + - cor0.col1 * - col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + - ( - col1 ) + 65 * + 48 FROM tab2 AS cor0
----
3137
3151
3179
query I rowsort
SELECT + col1 * col0 + 36 AS col1 FROM tab1 AS cor0
----
1076
114
676
query I rowsort
SELECT + + 24 + + col2 AS col1 FROM tab0 AS cor0
----
106
25
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-3902
SELECT + ( col1 ) * - 47 - + col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
-4042
-4276
-4524
skipif mysql # not compatible
query I rowsort label-3902
SELECT + ( col1 ) * - 47 - + col0 / - col2 AS col2 FROM tab0 AS cor0
----
-4042
-4276
-4524
query I rowsort
SELECT - col2 * col1 + + ( - col2 ) AS col0 FROM tab2 cor0
----
-1560
-684
-864
query I rowsort
SELECT - col1 * col1 + + 97 AS col0 FROM tab1 AS cor0
----
-3
-579
-72
query I rowsort
SELECT - col2 + col2 * + ( + ( col1 ) ) FROM tab0 cor0
----
2805
7380
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3906
SELECT + - col2 + col0 DIV + col2 AS col0 FROM tab0 AS cor0
----
-33
-81
34
skipif mysql # not compatible
query I rowsort label-3906
SELECT + - col2 + col0 / + col2 AS col0 FROM tab0 AS cor0
----
-33
-81
34
query I rowsort
SELECT DISTINCT col0 + + col1 + - ( - col2 ) AS col0 FROM tab2 AS cor0
----
134
163
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3908
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-3908
SELECT ALL + CAST ( NULL AS INTEGER ) * cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - + ( col0 ) - + col0 * - cor0.col2 FROM tab0 cor0
----
0
7209
768
query I rowsort
SELECT + 1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) + tab1.col1 col1 FROM tab1
----
109
67
80
query I rowsort
SELECT - + col1 - + 0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + cor0.col1 * + 78 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a236b70a905996e346a48af540ce3691
query I rowsort
SELECT + + 84 * col0 + col1 FROM tab1 AS cor0
----
278
5386
6733
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 28 + 91 col0 FROM tab0 AS cor0
----
119
119
119
query I rowsort
SELECT DISTINCT + col2 * + 69 AS col0 FROM tab0 AS cor0
----
2277
5658
69
query I rowsort
SELECT ALL + col1 + - col2 AS col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT + 77 FROM tab1
----
77
query I rowsort
SELECT ALL - - 61 FROM tab1, tab0 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 9b52d3939da22c8931e3d5a72ddfb1b1
query I rowsort
SELECT - - col0 * cor0.col1 - + cor0.col0 * + 24 FROM tab0 AS cor0
----
1488
2555
5963
query I rowsort
SELECT DISTINCT 2 AS col2 FROM tab2 AS cor0
----
2
query I rowsort
SELECT ALL + col2 * - col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT - col2 + col2 * + col0 AS col0 FROM tab2 AS cor0
----
162
2002
2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3925
SELECT ALL + 90 + + col2 * CAST( ( col2 ) AS SIGNED ) + + col0 AS col1 FROM tab0
----
1203
126
6903
skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL + 90 + + col2 * CAST ( ( col2 ) AS INTEGER ) + + col0 AS col1 FROM tab0
----
1203
126
6903
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3926
SELECT ALL + 24 * - col0 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL + 24 * - col0 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) * 19 * - ( col2 ) + - col2 col0 FROM tab0
----
127674
18
20658
query I rowsort
SELECT ALL col1 - col2 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3929
SELECT ( col1 ) - col1 DIV col0 FROM tab2 cor0
----
17
27
59
skipif mysql # not compatible
query I rowsort label-3929
SELECT ( col1 ) - col1 / col0 FROM tab2 cor0
----
17
27
59
query I rowsort
SELECT - + col2 + col2 * col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT col0 - + col2 * + col2 FROM tab1
----
-2913
-3185
-9136
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3932
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3932
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + col0 * col2 * col0 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT + col1 + 18 AS col0 FROM tab2 cor0
----
35
49
77
query I rowsort
SELECT - col2 * + ( - col0 + col2 * - col1 ) AS col2 FROM tab1 AS cor0
----
127488
36138
75978
query I rowsort
SELECT - + cor0.col1 * + 27 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-25947
-7803
-93987
query I rowsort
SELECT + 36 + cor0.col0 AS col1 FROM tab1 AS cor0
----
100
116
39
query I rowsort
SELECT ALL col2 * col0 + - col1 FROM tab1 cor0
----
136
3638
7667
query I rowsort
SELECT 62 * + ( col1 ) * cor0.col2 FROM tab1 AS cor0
----
35340
77376
87048
query I rowsort
SELECT + + 65 * col2 FROM tab2 AS cor0
----
1690
1755
2470
query I rowsort
SELECT ALL + col0 + - col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT - 76 AS col0 FROM tab2 AS cor0
----
-76
query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT cor0.col2 * - 77 + - col1 FROM tab2 AS cor0
----
-2061
-2110
-2943
query I rowsort
SELECT ALL + ( + col0 ) + col1 * + ( 34 ) FROM tab1 AS cor0
----
404
522
887
query I rowsort
SELECT DISTINCT - col2 * 27 FROM tab1 AS cor0
----
-1458
-1539
-2592
query I rowsort
SELECT ALL - 36 * ( col1 ) AS col2 FROM tab2 AS cor0
----
-1116
-2124
-612
query I rowsort
SELECT - 8 * - col2 * tab0.col0 + col2 FROM tab0
----
281
58466
6369
query I rowsort
SELECT DISTINCT + 14 * - col0 + - col0 * + col0 FROM tab2
----
-147
-7176
-7347
query I rowsort
SELECT ALL + tab2.col1 + + col2 * + col1 + col2 FROM tab2
----
1619
701
895
onlyif mysql # use DIV operator for integer division
query I rowsort label-3951
SELECT ALL - col2 DIV - col0 + - col0 + - 2 AS col2 FROM tab0
----
-25
-37
-91
skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL - col2 / - col0 + - col0 + - 2 AS col2 FROM tab0
----
-25
-37
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-3952
SELECT DISTINCT 82 DIV col1 + col2 * col0 FROM tab1
----
165
3656
7686
skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT 82 / col1 + col2 * col0 FROM tab1
----
165
3656
7686
query I rowsort
SELECT DISTINCT - cor0.col2 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT col0 + col2 + - ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
7
78
79
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab2 cor0, tab2 AS cor1
----
972 values hashing to f94a4a64ac54a61fc21f78e2b831ebee
query I rowsort
SELECT DISTINCT cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - col2 + + cor0.col0 * - 34 FROM tab2 AS cor0
----
-265
-2678
-2724
query I rowsort
SELECT ALL + col2 * col1 + - col1 AS col0 FROM tab1 cor0
----
1235
1378
560
query I rowsort
SELECT DISTINCT + col0 * + 93 FROM tab1 AS cor0
----
279
5952
7440
query I rowsort
SELECT col2 * ( - cor0.col2 ) AS col0 FROM tab0 cor0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-3961
SELECT ALL - col2 DIV - col0 col1 FROM tab0 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL - col2 / - col0 col1 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT ALL col0 + + 76 FROM tab2 AS cor0
----
154
155
83
query I rowsort
SELECT DISTINCT - - col2 * 83 + cor0.col1 FROM tab1 AS cor0
----
4508
4741
7981
query I rowsort
SELECT DISTINCT col1 * 97 AS col1 FROM tab2 AS cor0
----
1649
3007
5723
onlyif mysql # use DIV operator for integer division
query I rowsort label-3965
SELECT DISTINCT + + col1 DIV col0 FROM tab1 AS cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT + + col1 / col0 FROM tab1 AS cor0
----
0
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3966
SELECT + cor0.col2 DIV ( + col1 ) FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-3966
SELECT + cor0.col2 / ( + col1 ) FROM tab2 AS cor0
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * cor0.col0 col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL - - col1 * - ( ( col2 ) ) + - ( + col2 ) AS col2 FROM tab2 cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT col0 * - 22 FROM tab2 AS cor0
----
-154
-1716
-1738
query I rowsort
SELECT ALL + col0 * + col0 * - col0 + col2 AS col1 FROM tab1
----
-262087
-511904
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 + - col0 + 43 col0 FROM tab2
----
-19
24
67
query I rowsort
SELECT ALL - col0 + - col1 FROM tab1 cor0
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3973
SELECT ALL + cor0.col0 + + CAST( - col0 AS SIGNED ) * + col2 * - 14 AS col2 FROM tab0 AS cor0
----
102261
11112
525
skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL + cor0.col0 + + CAST ( - col0 AS INTEGER ) * + col2 * - 14 AS col2 FROM tab0 AS cor0
----
102261
11112
525
query I rowsort
SELECT DISTINCT col1 * col1 + + col0 * col2 FROM tab2 AS cor0
----
1150
3291
5509
query I rowsort
SELECT + ( col0 ) - col2 * - col2 * + col1 AS col1 FROM tab0 cor0
----
132
611973
93678
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3976
SELECT DISTINCT + + 75 * + ( - col0 ) + CAST( NULL AS SIGNED ) + 51 col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3976
SELECT DISTINCT + + 75 * + ( - col0 ) + CAST ( NULL AS INTEGER ) + 51 col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - 2 + - cor0.col0 * + col0 FROM tab1 AS cor0
----
-11
-4098
-6402
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 col0 FROM tab0 AS cor0
----
43
43
43
query I rowsort
SELECT DISTINCT + col2 + - tab2.col2 FROM tab2
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3980
SELECT + CAST( cor0.col0 AS SIGNED ) - col1 FROM tab0 cor0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-3980
SELECT + CAST ( cor0.col0 AS INTEGER ) - col1 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT + - cor0.col2 * 48 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to dc2b56952b2528c559ae6a69737db8f2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - col1 col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL ( col1 ) + col1 AS col1 FROM tab1 AS cor0
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 - - cor0.col1 col2 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT 51 * - 28 + col0 FROM tab0 AS cor0
----
-1339
-1393
-1404
query I rowsort
SELECT + col0 - + cor0.col2 * col1 FROM tab0 cor0
----
-2814
-62
-7373
query I rowsort
SELECT 75 * ( col1 ) * - col2 + + col1 FROM tab1 AS cor0
----
-105274
-42740
-93587
query I rowsort
SELECT DISTINCT + 4 * col0 AS col0 FROM tab0 AS cor0
----
140
356
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3989
SELECT ALL - col1 * - 80 + + col0 DIV - 16 FROM tab0 cor0
----
6879
7275
7758
skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL - col1 * - 80 + + col0 / - 16 FROM tab0 cor0
----
6879
7275
7758
query I rowsort
SELECT DISTINCT + col1 * ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL 28 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query I rowsort
SELECT DISTINCT + + col0 * cor0.col1 + + ( + col1 ) + - col0 FROM tab2 AS cor0
----
1281
241
4583
query I rowsort
SELECT ALL + 69 FROM tab0 AS cor0
----
69
69
69
query I rowsort
SELECT - + 60 AS col1 FROM tab1 AS cor0
----
-60
-60
-60
query I rowsort
SELECT col0 + - tab1.col2 * col1 - + col1 AS col2 FROM tab1
----
-1181
-1427
-516
query I rowsort
SELECT ALL 35 - + col2 AS col0 FROM tab0 AS cor0
----
-47
2
34
query I rowsort
SELECT - ( + col1 ) AS col0 FROM tab0 cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3998
SELECT DISTINCT + + col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT + + col1 / - col1 AS col1 FROM tab2 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT + ( - col0 ) * col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - 89 + col1 FROM tab0 AS cor0
----
-3
2
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-4002
SELECT ALL - 66 DIV col0 AS col0 FROM tab2 AS cor0
----
-9
0
0
skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL - 66 / col0 AS col0 FROM tab2 AS cor0
----
-9
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - col2 col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT + - 19 + col2 * col0 AS col2 FROM tab2 AS cor0
----
170
2009
2983
query I rowsort
SELECT DISTINCT - + 70 + - col1 AS col2 FROM tab0 AS cor0
----
-156
-161
-167
query I rowsort
SELECT DISTINCT - col1 * col2 * - col2 + col0 AS col2 FROM tab0 AS cor0
----
132
611973
93678
query I rowsort
SELECT col0 + 45 * tab2.col0 FROM tab2
----
322
3588
3634
query I rowsort
SELECT col2 * + col0 + + 38 - col1 FROM tab2 AS cor0
----
196
2007
3023
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4009
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - + col2 * col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-4009
SELECT DISTINCT + CAST ( NULL AS REAL ) - + col2 * col1 FROM tab1
----
NULL
query I rowsort
SELECT + 35 * + col0 + - 94 AS col1 FROM tab2 AS cor0
----
151
2636
2671
query I rowsort
SELECT DISTINCT - col1 - - col2 AS col1 FROM tab2
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT 44 * + col1 AS col2 FROM tab0
----
3784
4004
4268
query I rowsort
SELECT 57 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 + - cor1.col2 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e39cc3381b2c1955067ded21489f579e
query I rowsort
SELECT ALL - - col2 + col1 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - 12 * col2 + + ( + ( + cor0.col2 ) ) AS col0 FROM tab0 AS cor0
----
-11
-363
-902
query I rowsort
SELECT DISTINCT col1 - col2 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT ALL + 60 + - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 601300951e4808c5574196591d042938
query I rowsort
SELECT + 3 * ( - col2 ) * col0 AS col0 FROM tab2 AS cor0
----
-567
-6084
-9006
query I rowsort
SELECT DISTINCT - 38 + 56 AS col2 FROM tab1 AS cor0
----
18
query I rowsort
SELECT cor0.col0 * - col1 * cor0.col0 FROM tab1 AS cor0
----
-234
-40960
-83200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4023
SELECT + CAST( NULL AS SIGNED ) FROM tab1, tab0 cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-4023
SELECT + CAST ( NULL AS INTEGER ) FROM tab1, tab0 cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT cor1.col0 + - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 09b61d5303a3c257c2b4280abfc64db7
query I rowsort
SELECT 43 + + col1 + col2 FROM tab0
----
141
162
216
query I rowsort
SELECT ALL 31 * col0 * + col0 + col1 AS col0 FROM tab2
----
1550
188663
193488
query I rowsort
SELECT + cor0.col1 FROM tab1, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL - col2 * + cor0.col0 + col2 * 96 * - col2 FROM tab2 cor0
----
-141626
-66924
-70173
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 - - col2 col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + ( 80 ) + + col0 * 51 FROM tab1 AS cor0
----
233
3344
4160
query I rowsort
SELECT - 86 * + col1 AS col1 FROM tab1 AS cor0
----
-1118
-2236
-860
query I rowsort
SELECT ALL + col0 * col2 * cor0.col2 FROM tab2 cor0
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-4033
SELECT DISTINCT + ( col2 ) DIV + col0 FROM tab2 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-4033
SELECT DISTINCT + ( col2 ) / + col0 FROM tab2 AS cor0
----
0
3
query I rowsort
SELECT ALL 54 + col2 FROM tab1 AS cor0
----
108
111
150
onlyif mysql # use DIV operator for integer division
query I rowsort label-4035
SELECT DISTINCT cor0.col1 DIV + col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT cor0.col1 / + col1 FROM tab0 AS cor0
----
1
query I rowsort
SELECT + col2 * - 61 FROM tab2 AS cor0
----
-1586
-1647
-2318
query I rowsort
SELECT ALL - 72 * col2 + col1 FROM tab1 AS cor0
----
-3862
-4094
-6899
query I rowsort
SELECT + 47 FROM tab1, tab0 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT + col0 + 66 FROM tab2 cor0
----
144
145
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4040
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4040
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab1 cor0
----
NULL
query I rowsort
SELECT - - col0 * - col0 * 57 + col2 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
-2739
-346736
-355661
query I rowsort
SELECT cor0.col2 - ( ( + col2 ) * - ( col0 ) ) AS col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT - col1 + + col2 + col0 FROM tab0 AS cor0
----
-29
-61
80
query I rowsort
SELECT - col0 + + 89 AS col2 FROM tab2 AS cor0
----
10
11
82
query I rowsort
SELECT - - col0 + - col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + cor0.col2 * - col0 + col0 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT - cor0.col2 + + ( cor0.col1 ) * + col0 * - col2 AS col2 FROM tab2 cor0
----
-119678
-51072
-5886
query I rowsort
SELECT + cor0.col1 * 8 + + col1 + col0 FROM tab0 cor0
----
798
908
908
query I rowsort
SELECT 82 + + 39 AS col2 FROM tab1 AS cor0
----
121
121
121
query I rowsort
SELECT DISTINCT col2 + 83 FROM tab0
----
116
165
84
query I rowsort
SELECT 33 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + cor0.col0 col1 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT ( - 79 ) AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c9cc9510604e093bd158ca33928acaed
query I rowsort
SELECT ALL - - 85 + col1 AS col2 FROM tab1 cor0
----
111
95
98
query I rowsort
SELECT ALL ( 45 ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT DISTINCT - - ( col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - cor0.col1 * col1 + 56 AS col1 FROM tab2 AS cor0
----
-233
-3425
-905
query I rowsort
SELECT ALL col0 * + col0 AS col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT ALL - + col2 * col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - cor0.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4062
SELECT - + cor0.col1 + + CAST( col0 AS SIGNED ) * - cor0.col0 FROM tab2 AS cor0
----
-6143
-6258
-80
skipif mysql # not compatible
query I rowsort label-4062
SELECT - + cor0.col1 + + CAST ( col0 AS INTEGER ) * - cor0.col0 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT ALL - col1 * 33 FROM tab1 AS cor0
----
-330
-429
-858
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4064
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4064
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-4065
SELECT col2 * col1 + col1 DIV + col0 AS col0 FROM tab1
----
1248
1412
570
skipif mysql # not compatible
query I rowsort label-4065
SELECT col2 * col1 + col1 / + col0 AS col0 FROM tab1
----
1248
1412
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-4066
SELECT + tab0.col0 + + col2 DIV ( col1 * + col1 ) AS col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4066
SELECT + tab0.col0 + + col2 / ( col1 * + col1 ) AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT col2 - + col2 AS col2 FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4068
SELECT CAST( - col0 + + col2 AS SIGNED ) * col0 FROM tab0
----
-1190
-623
216
skipif mysql # not compatible
query I rowsort label-4068
SELECT CAST ( - col0 + + col2 AS INTEGER ) * col0 FROM tab0
----
-1190
-623
216
query I rowsort
SELECT 25 FROM tab2, tab2 cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4070
SELECT ALL col2 DIV 73 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL col2 / 73 FROM tab1
----
0
0
1
query I rowsort
SELECT - ( ( col0 ) ) AS col1 FROM tab1
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4072
SELECT CAST( - 42 + col2 AS SIGNED ) * col0 FROM tab2
----
-105
-1248
-316
skipif mysql # not compatible
query I rowsort label-4072
SELECT CAST ( - 42 + col2 AS INTEGER ) * col0 FROM tab2
----
-105
-1248
-316
query I rowsort
SELECT ALL 14 * + 3 + - col2 FROM tab2
----
15
16
4
query I rowsort
SELECT - 47 * - col1 AS col1 FROM tab0 AS cor0
----
4042
4277
4559
query I rowsort
SELECT cor0.col1 + cor0.col1 * 40 FROM tab2 AS cor0
----
1271
2419
697
query I rowsort
SELECT 20 AS col2 FROM tab0
----
20
20
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col1 + col2 * col1 col2 FROM tab2 AS cor0
----
1292
1674
3068
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + col1 col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + + col0 + + col0 * 30 * col2 FROM tab2 AS cor0
----
5677
60918
90139
query I rowsort
SELECT DISTINCT - + 30 FROM tab1 AS cor0
----
-30
query I rowsort
SELECT ALL + col0 * cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT + 33 + col2 * ( - ( + col2 ) ) FROM tab1 cor0
----
-2883
-3216
-9183
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 - - col2 col1 FROM tab1 cor0
----
-1152
-1350
-513
query I rowsort
SELECT - - 79 - 4 AS col1 FROM tab2 cor0
----
75
75
75
query I rowsort
SELECT ALL - col2 + - cor0.col2 * + col2 FROM tab2 AS cor0
----
-1482
-702
-756
query I rowsort
SELECT ALL - + 40 FROM tab1, tab2 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to b10451aa7e22bfd12577dc60d18d9396
query I rowsort
SELECT DISTINCT - col1 + 63 AS col0 FROM tab1
----
37
50
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-4088
SELECT - col1 * col1 + col1 + - col2 * col0 DIV + ( + tab1.col2 ) AS col2 FROM tab1
----
-154
-236
-653
skipif mysql # not compatible
query I rowsort label-4088
SELECT - col1 * col1 + col1 + - col2 * col0 / + ( + tab1.col2 ) AS col2 FROM tab1
----
-154
-236
-653
onlyif mysql # use DIV operator for integer division
query I rowsort label-4089
SELECT DISTINCT + col1 - 22 DIV - col0 AS col0 FROM tab1
----
10
13
33
skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT + col1 - 22 / - col0 AS col0 FROM tab1
----
10
13
33
query I rowsort
SELECT col2 + 50 * col2 FROM tab1
----
2754
2907
4896
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 99 ) * + col0 col0 FROM tab1
----
-297
-6336
-7920
query I rowsort
SELECT ALL col0 + - col0 AS col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4093
SELECT col0 - + col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4093
SELECT col0 - + col2 / + col1 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL 83 + cor0.col0 FROM tab1 AS cor0
----
147
163
86
query I rowsort
SELECT 77 * - 35 + col0 AS col1 FROM tab2 AS cor0
----
-2616
-2617
-2688
query I rowsort
SELECT DISTINCT - - col1 + - 84 AS col0 FROM tab0 AS cor0
----
13
2
7
query I rowsort
SELECT + col0 * + cor0.col0 + - col1 AS col2 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT DISTINCT + ( + tab1.col1 ) * - col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT 70 - col0 FROM tab2
----
-8
-9
63
query I rowsort
SELECT + col1 * - tab0.col1 - - 25 FROM tab0
----
-7371
-8256
-9384
query I rowsort
SELECT DISTINCT col0 * col2 * - 94 FROM tab0
----
-3290
-686012
-74448
onlyif mysql # use DIV operator for integer division
query I rowsort label-4102
SELECT ALL + ( - col2 ) DIV col1 AS col0 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL + ( - col2 ) / col1 AS col0 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT - 58 FROM tab2, tab0 cor0, tab2 AS cor1, tab1, tab2 cor2
----
243 values hashing to d1dd156d10a4cd763c3cf3cac38e11a6
query I rowsort
SELECT ALL - col2 * + ( col2 ) AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + col2 * + col2 + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-1557
-6307
-9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col0 FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT + 73 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT + 90 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT - col1 * 74 AS col1 FROM tab0
----
-6364
-6734
-7178
query I rowsort
SELECT + - cor0.col2 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT col0 + cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4113
SELECT ALL col0 + + CAST( NULL AS SIGNED ) * - ( cor0.col2 ) + + ( - col0 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL col0 + + CAST ( NULL AS INTEGER ) * - ( cor0.col2 ) + + ( - col0 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4114
SELECT ALL - col0 * CAST( 55 AS SIGNED ) + col1 col2 FROM tab2 cor0
----
-354
-4231
-4328
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL - col0 * CAST ( 55 AS INTEGER ) + col1 col2 FROM tab2 cor0
----
-354
-4231
-4328
onlyif mysql # use DIV operator for integer division
query I rowsort label-4115
SELECT + cor0.col0 DIV + 68 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4115
SELECT + cor0.col0 / + 68 FROM tab1 cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4116
SELECT ALL - col0 DIV - col2 - 0 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL - col0 / - col2 - 0 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT cor0.col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL - - col0 + + col0 * - col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT col1 * - 30 AS col1 FROM tab2 AS cor0
----
-1770
-510
-930
query I rowsort
SELECT DISTINCT + + col1 + 46 AS col0 FROM tab1 AS cor0
----
56
59
72
query I rowsort
SELECT - + cor0.col0 + cor0.col1 - + col0 FROM tab0 AS cor0
----
-87
27
38
query I rowsort
SELECT ALL + - cor0.col1 * + 59 AS col0 FROM tab2 AS cor0
----
-1003
-1829
-3481
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col2 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4124
SELECT + col0 DIV ( cor0.col1 ) col2 FROM tab2 cor0
----
0
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4124
SELECT + col0 / ( cor0.col1 ) col2 FROM tab2 cor0
----
0
1
4
query I rowsort
SELECT DISTINCT + - col2 * col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col2 * - cor0.col2 * + col0 AS col1 FROM tab0 AS cor0
----
26136
35
598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-4127
SELECT ALL col2 DIV 57 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL col2 / 57 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - ( + col0 ) col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT col1 + ( + col1 ) AS col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL + col2 * - col0 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT + - col1 * 41 AS col1 FROM tab2 cor0
----
-1271
-2419
-697
onlyif mysql # use DIV operator for integer division
query I rowsort label-4132
SELECT ALL - col0 + 32 * - col2 DIV col2 FROM tab1 AS cor0
----
-112
-35
-96
skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL - col0 + 32 * - col2 / col2 FROM tab1 AS cor0
----
-112
-35
-96
query I rowsort
SELECT 88 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177
onlyif mysql # use DIV operator for integer division
query I rowsort label-4134
SELECT + 50 DIV col1 + col1 * col2 * col0 AS col2 FROM tab0 AS cor0
----
3395
664118
68112
skipif mysql # not compatible
query I rowsort label-4134
SELECT + 50 / col1 + col1 * col2 * col0 AS col2 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-4135
SELECT + 87 DIV + col1 FROM tab2 AS cor0
----
1
2
5
skipif mysql # not compatible
query I rowsort label-4135
SELECT + 87 / + col1 FROM tab2 AS cor0
----
1
2
5
query I rowsort
SELECT - col0 * col1 + cor0.col2 * + col1 AS col1 FROM tab2 cor0
----
-3068
-697
620
query I rowsort
SELECT 66 + ( - col2 ) + col0 * 10 FROM tab0 AS cor0
----
273
415
874
query I rowsort
SELECT + - col0 - + col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT ( col1 ) + - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + ( - col1 ) * + col1 - col1 AS col1 FROM tab2 cor0
----
-306
-3540
-992
query I rowsort
SELECT + col0 + + ( 98 ) FROM tab1
----
101
162
178
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4142
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4142
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + col2 + ( + col0 ) FROM tab0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4144
SELECT - - cor0.col0 + col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-4144
SELECT - - cor0.col0 + col1 / - col1 AS col0 FROM tab2 AS cor0
----
6
77
78
query I rowsort
SELECT cor0.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT tab1.col0 + - 39 AS col1 FROM tab1
----
-36
25
41
query I rowsort
SELECT DISTINCT + + 99 + + col0 FROM tab1 AS cor0
----
102
163
179
query I rowsort
SELECT ALL - col2 - - col1 AS col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT - - ( - col2 ) + col1 AS col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL - 26 FROM tab1 cor0
----
-26
-26
-26
query I rowsort
SELECT ALL - + col0 * col2 + - col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT ALL - col1 - col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT DISTINCT - 37 * col0 + col2 FROM tab1 AS cor0
----
-2311
-2864
-57
query I rowsort
SELECT cor0.col0 * col0 * + col2 + col2 FROM tab1 AS cor0
----
233529
540
614496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - + col0 + col0 * col2 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT 54 + col1 FROM tab1 AS cor0
----
64
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4158
SELECT DISTINCT + col0 + - col0 * CAST( + ( - col0 ) AS SIGNED ) * ( col2 ) FROM tab2 AS cor0
----
1330
158262
237237
skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT + col0 + - col0 * CAST ( + ( - col0 ) AS INTEGER ) * ( col2 ) FROM tab2 AS cor0
----
1330
158262
237237
query I rowsort
SELECT DISTINCT - 47 * cor0.col0 + + col2 AS col1 FROM tab0 AS cor0
----
-1095
-1644
-4101
query I rowsort
SELECT ALL - col1 + - ( + col1 ) FROM tab1
----
-20
-26
-52
query I rowsort
SELECT DISTINCT + + 75 + + col0 * - 16 FROM tab2 AS cor0
----
-1173
-1189
-37
query I rowsort
SELECT ALL + 61 FROM tab1
----
61
61
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-4163
SELECT - - col1 DIV - ( + cor0.col1 ) FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4163
SELECT - - col1 / - ( + cor0.col1 ) FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT cor0.col2 + + 32 + - cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d62b0ba6040d8369a4b2e926935bf6c4
query I rowsort
SELECT DISTINCT + 17 + col0 * 51 AS col1 FROM tab0 AS cor0
----
1241
1802
4556
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * + col2 - - cor0.col0 * + col2 * - col1 col0 FROM tab0 AS cor0
----
-3430
-671416
-68904
query I rowsort
SELECT DISTINCT col0 * - col1 + + col1 * col2 * cor0.col0 + + col0 FROM tab1 AS cor0
----
35904
4137
98880
query I rowsort
SELECT - col2 + col2 * + 8 FROM tab0 AS cor0
----
231
574
7
query I rowsort
SELECT ALL + - col2 - col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + 20 * + col0 FROM tab1 AS cor0
----
1280
1600
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4171
SELECT CAST( NULL AS SIGNED ) * + col1 + col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4171
SELECT CAST ( NULL AS INTEGER ) * + col1 + col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 65 * + col0 AS col0 FROM tab2
----
455
5070
5135
query I rowsort
SELECT 40 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT - col1 + col0 * + col1 AS col0 FROM tab1 cor0
----
1027
52
630
query I rowsort
SELECT cor0.col1 * col1 AS col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT - + col0 * - col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4177
SELECT ALL - col2 DIV ( + col1 ) FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL - col2 / ( + col1 ) FROM tab0
----
0
0
0
query I rowsort
SELECT tab2.col2 * ( + 27 ) FROM tab2
----
1026
702
729
query I rowsort
SELECT - cor0.col2 + - 12 AS col0 FROM tab1 AS cor0
----
-108
-66
-69
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 80 FROM tab0, tab1 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + + 85 * col2 col2 FROM tab2 AS cor0
----
2132
2288
3151
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * ( col2 ) * - col2 col1 FROM tab1 AS cor0
----
-157464
-185193
-884736
query I rowsort
SELECT - 49 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae
query I rowsort
SELECT + + col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT 51 + cor0.col2 AS col1 FROM tab0 AS cor0
----
133
52
84
query I rowsort
SELECT ALL tab1.col2 + col0 + col2 FROM tab1
----
111
178
272
query I rowsort
SELECT + 40 FROM tab1, tab2 cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4190
SELECT - + CAST( NULL AS SIGNED ) + + col2 / + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4190
SELECT - + CAST ( NULL AS INTEGER ) + + col2 / + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - cor0.col0 FROM tab0 cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4192
SELECT ALL CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + + col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT DISTINCT - ( col1 ) + col1 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + + ( col0 ) + cor0.col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - 51 + col0 AS col2 FROM tab2 cor0
----
-44
27
28
query I rowsort
SELECT ALL - ( + 81 ) AS col0 FROM tab1 AS cor0
----
-81
-81
-81
query I rowsort
SELECT DISTINCT - + 12 + cor0.col1 FROM tab1 cor0
----
-2
1
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-4199
SELECT ALL - col1 DIV + 96 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL - col1 / + 96 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 + 23 AS col2 FROM tab0 AS cor0
----
-1
-12
-66
query I rowsort
SELECT - col0 * col0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT col2 + + cor0.col1 * + col0 * - col0 FROM tab2 AS cor0
----
-106059
-1492
-358930
query I rowsort
SELECT - col0 + + col1 * 80 AS col0 FROM tab0 AS cor0
----
6856
7191
7725
onlyif mysql # use DIV operator for integer division
query I rowsort label-4204
SELECT DISTINCT cor0.col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-4204
SELECT DISTINCT cor0.col2 / + col0 AS col2 FROM tab1 AS cor0
----
0
1
18
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to fa0488bdae83f58c7ffa92505e928570
query I rowsort
SELECT 37 - + tab2.col1 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 90f6d51ffd757c1e9a142feb80d5c44b
query I rowsort
SELECT ALL + col2 - - col1 * + cor0.col1 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT col0 * 64 - + col2 AS col2 FROM tab0 AS cor0
----
1503
2239
5614
query I rowsort
SELECT DISTINCT - + col0 * cor0.col1 - + col1 * - col2 FROM tab1 AS cor0
----
-70
1326
208
query I rowsort
SELECT DISTINCT + + col1 * - 72 * + col1 AS col2 FROM tab2 AS cor0
----
-20808
-250632
-69192
query I rowsort
SELECT DISTINCT - 18 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4212
SELECT + CAST( + cor1.col0 AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
skipif mysql # not compatible
query I rowsort label-4212
SELECT + CAST ( + cor1.col0 AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT - ( + col0 * + 47 ) FROM tab2
----
-329
-3666
-3713
query I rowsort
SELECT + col1 + cor0.col1 * + 33 FROM tab1 cor0
----
340
442
884
query I rowsort
SELECT tab1.col2 * - 78 AS col2 FROM tab1
----
-4212
-4446
-7488
query I rowsort
SELECT + tab2.col0 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT 17 + 73 AS col1 FROM tab1 AS cor0
----
90
90
90
query I rowsort
SELECT ALL + 58 * - 99 FROM tab2 AS cor0
----
-5742
-5742
-5742
query I rowsort
SELECT ALL + col1 + - col2 + col0 AS col0 FROM tab1
----
-25
-3
17
query I rowsort
SELECT + col2 + col1 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - col1 + col1 * + col1 FROM tab1
----
156
650
90
query I rowsort
SELECT tab2.col1 + + col1 + + 94 * col2 FROM tab2
----
2562
2600
3606
onlyif mysql # use DIV operator for integer division
query I rowsort label-4223
SELECT DISTINCT - col1 DIV + col0 - + cor0.col1 * - cor0.col2 FROM tab1 AS cor0
----
1248
1396
570
skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT - col1 / + col0 - + cor0.col1 * - cor0.col2 FROM tab1 AS cor0
----
1248
1396
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + col0 * col2 col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 AND col1 * + col0
----
query I rowsort
SELECT DISTINCT - col2 - + col2 * - col2 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> ( col0 / col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 col1 FROM tab1
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - col1 * col0 * + col1 col2 FROM tab0 AS cor0
----
-177480
-329280
-736920
query I rowsort
SELECT - col0 - col2 AS col1 FROM tab0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4231
SELECT ALL - col0 DIV - col2 + + col0 * col0 - col0 AS col1 FROM tab1
----
4033
6
6320
skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL - col0 / - col2 + + col0 * col0 - col0 AS col1 FROM tab1
----
4033
6
6320
query I rowsort
SELECT - col2 + - col1 * - col0 AS col0 FROM tab2
----
1305
190
4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-4233
SELECT tab0.col1 DIV col2 + tab0.col2 FROM tab0
----
35
83
98
skipif mysql # not compatible
query I rowsort label-4233
SELECT tab0.col1 / col2 + tab0.col2 FROM tab0
----
35
83
98
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN ( - col2 ) AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4235
SELECT DISTINCT col2 DIV - col2 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT col2 / - col2 FROM tab1
----
-1
query I rowsort
SELECT - tab2.col2 FROM tab2 WHERE ( NULL ) NOT IN ( - col0 + + tab2.col1 )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT col0 - col2 NOT BETWEEN ( NULL ) AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4238
SELECT ALL - col2 DIV col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL - col2 / col0 FROM tab1
----
-1
-18
0
query I rowsort
SELECT col2 + + col2 * - tab1.col2 + + col1 * + tab1.col1 FROM tab1
----
-2186
-3092
-8951
query I rowsort
SELECT tab2.col1 + - col0 + + col1 AS col0 FROM tab2
----
-45
40
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-4241
SELECT ALL + col1 DIV + col0 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL + col1 / + col0 FROM tab1
----
0
0
8
query I rowsort
SELECT col1 * + col1 * - tab2.col0 FROM tab2
----
-22831
-271518
-6727
query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * - col0 + + col1 = NULL
----
query I rowsort
SELECT DISTINCT col1 * col1 + - col1 * col0 AS col2 FROM tab0
----
182
5332
6014
onlyif mysql # use DIV operator for integer division
query I rowsort label-4245
SELECT - col0 + + cor0.col1 DIV col0 AS col1 FROM tab0 AS cor0
----
-21
-33
-88
skipif mysql # not compatible
query I rowsort label-4245
SELECT - col0 + + cor0.col1 / col0 AS col1 FROM tab0 AS cor0
----
-21
-33
-88
query I rowsort
SELECT DISTINCT + col1 + col1 * col1 * tab2.col1 + col2 AS col2 FROM tab2
----
205464
29849
4968
query I rowsort
SELECT + col1 FROM tab2 WHERE NOT NULL NOT IN ( - col1 + col1 + + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4248
SELECT - col2 * - col2 * tab1.col0 + col1 DIV + col2 FROM tab1
----
207936
737280
8748
skipif mysql # not compatible
query I rowsort label-4248
SELECT - col2 * - col2 * tab1.col0 + col1 / + col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT ALL - col2 * - tab2.col1 * col2 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT ALL col0 + - tab0.col1 + - col2 * + col0 AS col0 FROM tab0
----
-7300
-854
-97
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 AS col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT col1 * - col1 + col2 AS col2 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT ALL + - col1 * col2 - col2 * col2 FROM tab1 AS cor0
----
-10464
-3819
-4320
query I rowsort
SELECT + + col1 + - col0 * + col2 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL - col1 - + cor0.col0 FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-4256
SELECT DISTINCT col1 DIV col2 + cor0.col1 + col2 * cor0.col2 FROM tab0 AS cor0
----
1177
195
6816
skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT col1 / col2 + cor0.col1 + col2 * cor0.col2 FROM tab0 AS cor0
----
1177
195
6816
query I rowsort
SELECT col1 * - col0 * col2 + - col0 * col2 FROM tab2
----
-121680
-54036
-6048
query I rowsort
SELECT + col1 * + tab2.col2 * + col1 + - col1 AS col0 FROM tab2
----
10965
25916
90447
query I rowsort
SELECT col1 * - col1 + tab0.col1 * + tab0.col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - col2 * + col0 + - tab0.col0 + + col2 AS col0 FROM tab0
----
-69
-7305
-783
query I rowsort
SELECT ALL + col2 + col2 + - col2 * tab2.col2 FROM tab2
----
-1368
-624
-675
query I rowsort
SELECT col2 * col1 + col0 * col2 * col1 AS col2 FROM tab2
----
121186
51680
6696
query I rowsort
SELECT DISTINCT tab0.col1 * col1 + tab0.col1 FROM tab0
----
7482
8372
9506
query I rowsort
SELECT ALL col2 + col2 * tab0.col1 AS col1 FROM tab0
----
2871
7544
98
query I rowsort
SELECT DISTINCT - col0 + col2 * + col2 * col2 FROM tab0 AS cor0
----
-34
35913
551279
query I rowsort
SELECT ALL col0 + col1 * col1 FROM tab0 AS cor0
----
7420
8370
9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-4267
SELECT ALL col0 DIV - col1 AS col1 FROM tab2 cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL col0 / - col1 AS col1 FROM tab2 cor0
----
-1
-4
0
query I rowsort
SELECT - - col0 * col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
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 DISTINCT - - col1 * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - cor0.col2 * col2 * col0 + - 69 FROM tab0 AS cor0
----
-104
-26205
-598505
query I rowsort
SELECT + col1 * 45 FROM tab1 AS cor0
----
1170
450
585
query I rowsort
SELECT + col2 + cor0.col2 AS col1 FROM tab0 cor0
----
164
2
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4275
SELECT + - col1 + CAST( ( + col0 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-4275
SELECT + - col1 + CAST ( ( + col0 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT + + col1 * + 36 FROM tab2 AS cor0
----
1116
2124
612
query I rowsort
SELECT - col0 + + col2 AS col1 FROM tab1
----
-7
16
51
query I rowsort
SELECT ALL col1 * - col2 * col0 - - col0 FROM tab2
----
-119574
-50955
-5852
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( col2 )
----
query I rowsort
SELECT DISTINCT + tab2.col0 * - col1 AS col0 FROM tab2 WHERE NOT col0 * col0 > ( NULL )
----
query I rowsort
SELECT + col1 / - col1 AS col2 FROM tab2 WHERE NOT ( col1 ) = ( NULL )
----
query I rowsort
SELECT - col0 * col0 / col2 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - col1
----
query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) <> NULL
----
query I rowsort
SELECT DISTINCT - col0 * col0 - col1 FROM tab2
----
-6143
-6258
-80
query I rowsort
SELECT col0 + col1 * col2 AS col2 FROM tab2
----
1612
725
844
query I rowsort
SELECT tab0.col2 * col2 * col2 - col1 AS col0 FROM tab0
----
-96
35851
551277
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab0 AS cor1, tab1, tab0 cor2
----
3645 values hashing to 2e3240e8d3c0c7c6ff427f9572ba362d
onlyif mysql # use DIV operator for integer division
query I rowsort label-4289
SELECT - - 48 * col2 DIV 7 AS col1 FROM tab1 AS cor0
----
370
390
658
skipif mysql # not compatible
query I rowsort label-4289
SELECT - - 48 * col2 / 7 AS col1 FROM tab1 AS cor0
----
370
390
658
query I rowsort
SELECT ALL - - col0 * - col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL col1 * + col2 AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL tab2.col2 + + col2 * - col0 FROM tab2
----
-162
-2002
-2964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + - col2 col2 FROM tab1
----
1152
1350
513
query I rowsort
SELECT col1 * col2 + + col1 AS col0 FROM tab0
----
194
2924
7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col0 + col0 col0 FROM tab1
----
-4032
-6
-6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-4296
SELECT col1 DIV - tab2.col1 col0 FROM tab2
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4296
SELECT col1 / - tab2.col1 col0 FROM tab2
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4297
SELECT DISTINCT + tab2.col0 * - col0 - col1 DIV col1 FROM tab2
----
-50
-6085
-6242
skipif mysql # not compatible
query I rowsort label-4297
SELECT DISTINCT + tab2.col0 * - col0 - col1 / col1 FROM tab2
----
-50
-6085
-6242
query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE ( NULL ) <> ( NULL )
----
query I rowsort
SELECT + col2 - + col1 AS col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT col2 + tab1.col1 + - col2 AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT - 44 * - col2 AS col1 FROM tab2
----
1144
1188
1672
query I rowsort
SELECT + col0 * + col0 * 22 FROM tab1
----
140800
198
90112
query I rowsort
SELECT 93 FROM tab0
----
93
93
93
query I rowsort
SELECT tab1.col1 * cor0.col1 + 25 FROM tab1, tab0 AS cor0
----
9 values hashing to 2237ee3d34353e3a8c33ebf7d4556889
query I rowsort
SELECT 17 * col1 + 62 FROM tab2
----
1065
351
589
query I rowsort
SELECT ALL - + col0 + - col0 * - col2 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT ALL + 24 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT + cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4309
SELECT - col1 - CAST( NULL AS DECIMAL ) * col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4309
SELECT - col1 - CAST ( NULL AS REAL ) * col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * 64 FROM tab0
----
1536
2240
5696
query I rowsort
SELECT 84 * 92 FROM tab1 AS cor0
----
7728
7728
7728
query I rowsort
SELECT ALL + cor0.col1 + 50 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d13b74a6250a3d46b136fc3843ac271f
query I rowsort
SELECT ALL + col1 * + 86 AS col1 FROM tab2
----
1462
2666
5074
query I rowsort
SELECT + ( - col0 ) * ( + 4 ) * col2 AS col2 FROM tab0
----
-140
-29192
-3168
query I rowsort
SELECT + 47 * + col0 + 43 * - ( col1 ) FROM tab0 AS cor0
----
-2526
-2570
270
query I rowsort
SELECT + 50 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1550
2950
850
query I rowsort
SELECT ALL - col0 + col2 AS col0 FROM tab0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col2 + + cor0.col0 col2 FROM tab2, tab0 AS cor0
----
-14
-2
-3
51
62
63
8
9
query I rowsort
SELECT - 47 * col0 + - col2 + - cor0.col1 FROM tab1 AS cor0
----
-221
-3075
-3869
query I rowsort
SELECT + + col0 + - col0 + col2 AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT 62 * - col1 FROM tab1 AS cor0
----
-1612
-620
-806
query I rowsort
SELECT - col1 + - col2 + - cor0.col1 * col2 FROM tab1 AS cor0
----
-1357
-1484
-637
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + + col1 col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + col2 + - col2 + + col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-4326
SELECT DISTINCT + - col0 * - col1 DIV col1 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT + - col0 * - col1 / col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + col2 * - col1 + - cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
-14186
-3927
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4328
SELECT ALL + col1 + + col2 * col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL + col1 + + col2 * col2 / - col2 AS col1 FROM tab0 AS cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - cor0.col0 col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + - col0 * + col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - ( + col1 * + col2 ) AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL - 43 + cor0.col2 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 8f603de7c13564909da34a252c24d537
query I rowsort
SELECT DISTINCT - cor0.col2 * + 43 + - cor0.col0 FROM tab2 AS cor0
----
-1168
-1196
-1713
query I rowsort
SELECT ALL - 81 AS col1 FROM tab2 AS cor0
----
-81
-81
-81
query I rowsort
SELECT ALL cor0.col0 * col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - col0 - - col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT 85 + col1 * + col0 FROM tab2 AS cor0
----
1428
302
4687
query I rowsort
SELECT + 57 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT + col1 * + col0 * col0 AS col1 FROM tab2 cor0
----
106097
1519
358956
query I rowsort
SELECT DISTINCT ( + cor0.col2 ) * col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - cor0.col0 * + col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT - col0 * - cor0.col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - col2 * cor0.col0 * - cor0.col1 + col1 * + col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
2184
30080
86320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4344
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT ( + col0 ) * - tab0.col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ( col0 ) * - col0 * - col1 + + tab2.col1 FROM tab2
----
106114
1550
359015
onlyif mysql # use DIV operator for integer division
query I rowsort label-4347
SELECT 43 DIV - ( + col2 * col1 ) FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4347
SELECT 43 / - ( + col2 * col1 ) FROM tab1
----
0
0
0
query I rowsort
SELECT col2 - - col2 * col2 AS col2 FROM tab1
----
2970
3306
9312
query I rowsort
SELECT - tab1.col1 * + 57 AS col1 FROM tab1
----
-1482
-570
-741
query I rowsort
SELECT + 37 * + 41 * col1 AS col2 FROM tab1
----
15170
19721
39442
query I rowsort
SELECT DISTINCT 71 AS col2 FROM tab0
----
71
query I rowsort
SELECT 99 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT ALL - 28 AS col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc
query I rowsort
SELECT - col1 + + ( + col2 ) * + tab1.col1 FROM tab1
----
1235
1378
560
query I rowsort
SELECT + col0 + - 99 * + col1 AS col1 FROM tab0 cor0
----
-8490
-8920
-9568
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4356
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 49 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 49 AS col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4357
SELECT ALL + col0 / ( + col2 ) + + 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-4357
SELECT ALL + col0 / ( + col2 ) + + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( + col0 ) * col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - col1 * - col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL col2 + col1 * col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT - ( - col2 ) + col2 AS col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT DISTINCT + col1 + col2 * + col2 AS col0 FROM tab1 cor0
----
2942
3259
9229
query I rowsort
SELECT ALL - + ( col2 ) * - col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + cor0.col2 + 84 AS col1 FROM tab1 AS cor0
----
138
141
180
query I rowsort
SELECT ALL + ( - col1 ) + cor0.col1 * + 51 * col0 AS col0 FROM tab2 AS cor0
----
11036
234643
68476
onlyif mysql # use DIV operator for integer division
query I rowsort label-4367
SELECT ALL ( - col0 ) DIV + col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL ( - col0 ) / + col1 FROM tab2 AS cor0
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + col2 + - 22 AS col0 FROM tab1 AS cor0
----
32
35
74
query I rowsort
SELECT ALL - - cor0.col0 + + col0 * col1 * - col0 FROM tab0 cor0
----
-118790
-49512
-720722
query I rowsort
SELECT ALL + + 47 * - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-4066
-4366
-4594
query I rowsort
SELECT + col1 + col0 * - cor0.col2 AS col2 FROM tab1 cor0
----
-136
-3638
-7667
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 cor2
----
3645 values hashing to 5e27196f2932b25a5297ddec46b8b8f1
query I rowsort
SELECT ALL 35 * tab1.col2 FROM tab1
----
1890
1995
3360
onlyif mysql # use DIV operator for integer division
query I rowsort label-4375
SELECT 65 DIV + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
1
65
skipif mysql # not compatible
query I rowsort label-4375
SELECT 65 / + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
1
65
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( 63 AS REAL ) AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0, tab1 AS cor2
----
-63
query I rowsort
SELECT DISTINCT + cor0.col0 * col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - col2 + - 73 FROM tab0 AS cor0
----
-106
-155
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-4379
SELECT + + col2 + - col0 DIV col0 AS col2 FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-4379
SELECT + + col2 + - col0 / col0 AS col2 FROM tab2 AS cor0
----
25
26
37
query I rowsort
SELECT ALL + col1 + 13 FROM tab1 cor0
----
23
26
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-4381
SELECT ALL + + col2 * col2 DIV col0 FROM tab0 AS cor0
----
0
45
75
skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL + + col2 * col2 / col0 FROM tab0 AS cor0
----
0
45
75
query I rowsort
SELECT 34 * 71 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 33d3479e0c9bf9b7be535b507200e71d
query I rowsort
SELECT + col1 + 67 FROM tab2 AS cor0
----
126
84
98
query I rowsort
SELECT ALL - col0 * - col1 - col2 * col1 FROM tab2 AS cor0
----
-620
3068
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-4385
SELECT ALL + + col1 DIV + col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL + + col1 / + col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + col1 + ( - col2 ) + - col0 FROM tab0
----
-80
29
61
query I rowsort
SELECT DISTINCT + - 79 AS col0 FROM tab0 AS cor0
----
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4388
SELECT + 84 DIV cor0.col2 FROM tab1 cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-4388
SELECT + 84 / cor0.col2 FROM tab1 cor0
----
0
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4389
SELECT ALL - + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL - + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * - col0 + col2 * + col0 AS col1 FROM tab2 AS cor0
----
-2574
-28
1659
query I rowsort
SELECT + ( cor0.col0 ) + - col2 AS col2 FROM tab0 AS cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 17 * - col2 col1 FROM tab1 AS cor0
----
-1632
-918
-969
query I rowsort
SELECT ALL col1 + - 73 AS col2 FROM tab2
----
-14
-42
-56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4394
SELECT - col0 + - CAST( tab2.col2 AS SIGNED ) AS col0 FROM tab2
----
-104
-117
-34
skipif mysql # not compatible
query I rowsort label-4394
SELECT - col0 + - CAST ( tab2.col2 AS INTEGER ) AS col0 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4396
SELECT - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-4396
SELECT - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + ( + col0 ) AS col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - ( 63 ) FROM tab0
----
-63
query I rowsort
SELECT + 35 * + col2 AS col1 FROM tab2
----
1330
910
945
query I rowsort
SELECT + tab2.col1 * + col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT + 4 AS col0 FROM tab2
----
4
4
4
query I rowsort
SELECT col1 * - col0 + - col0 AS col2 FROM tab2
----
-1422
-224
-4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 * tab0.col0 + - col1 col0 FROM tab0
----
130
218
710
query I rowsort
SELECT DISTINCT col1 * col0 - col1 FROM tab2 cor0
----
1326
186
4543
query I rowsort
SELECT ALL + 97 AS col2 FROM tab2 AS cor0
----
97
97
97
query I rowsort
SELECT - 71 + + 82 * + col0 FROM tab1 AS cor0
----
175
5177
6489
query I rowsort
SELECT DISTINCT + ( - col0 ) * + col1 * - 63 + - col1 * cor0.col1 FROM tab2 AS cor0
----
12710
286445
84320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4408
SELECT + CAST( NULL AS SIGNED ) * tab1.col1 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4408
SELECT + CAST ( NULL AS INTEGER ) * tab1.col1 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + + col1 * + 25 + + tab1.col0 AS col2 FROM tab1
----
371
501
707
query I rowsort
SELECT DISTINCT + col1 + + tab0.col1 FROM tab0
----
172
182
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-4411
SELECT - col0 DIV - ( + col2 * + cor0.col0 ) + 14 FROM tab1 AS cor0
----
14
14
14
skipif mysql # not compatible
query I rowsort label-4411
SELECT - col0 / - ( + col2 * + cor0.col0 ) + 14 FROM tab1 AS cor0
----
14
14
14
query I rowsort
SELECT DISTINCT - tab0.col1 - col0 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT + + col2 - 43 FROM tab0 AS cor0
----
-10
-42
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4414
SELECT ALL ( col0 ) * - CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL ( col0 ) * - CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + tab1.col1 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT ( tab1.col0 ) * col1 AS col0 FROM tab1
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4417
SELECT ( col2 ) * - CAST( - 58 AS SIGNED ) col2 FROM tab2
----
1508
1566
2204
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4417
SELECT ( col2 ) * - CAST ( - 58 AS INTEGER ) col2 FROM tab2
----
1508
1566
2204
query I rowsort
SELECT ALL - col0 * - 79 AS col2 FROM tab0
----
1896
2765
7031
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4419
SELECT - col2 * CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-4419
SELECT - col2 * CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + col2 - - col2 * - cor0.col2 FROM tab0 cor0
----
-1056
-6642
0
query I rowsort
SELECT col2 * 29 AS col2 FROM tab2 AS cor0
----
1102
754
783
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4422
SELECT DISTINCT - col0 * CAST( 15 * col1 + + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT - col0 * CAST ( 15 * col1 + + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - col0 * col0 + - col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT + cor0.col2 - col0 * 9 * + col0 AS col0 FROM tab2 AS cor0
----
-414
-54730
-56131
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * 32 - - 5 * col1 * - cor0.col2 col0 FROM tab0 AS cor0
----
-16942
-3589
-40222
onlyif mysql # use DIV operator for integer division
query I rowsort label-4426
SELECT ALL + col2 - + col1 DIV - cor0.col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL + col2 - + col1 / - cor0.col2 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 3 col0 FROM tab1 AS cor0
----
162
171
288
query I rowsort
SELECT - - cor0.col0 + - ( + col0 + col0 ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + col0 + col0 + ( col0 ) AS col1 FROM tab2 AS cor0
----
21
234
237
query I rowsort
SELECT - col0 + + col0 + + ( cor0.col0 ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + + cor0.col2 AS col2 FROM tab0 cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4432
SELECT col1 * - col2 DIV col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-4432
SELECT col1 * - col2 / col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT col2 * + col0 + col0 + + col0 FROM tab2 AS cor0
----
203
2184
3160
query I rowsort
SELECT + col0 * - cor0.col0 + - ( - col0 ) AS col2 FROM tab2 AS cor0
----
-42
-6006
-6162
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4435
SELECT col1 * - CAST( + col2 AS SIGNED ) * - col2 AS col2 FROM tab0 AS cor0
----
611884
93654
97
skipif mysql # not compatible
query I rowsort label-4435
SELECT col1 * - CAST ( + col2 AS INTEGER ) * - col2 AS col2 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT - col2 * 99 FROM tab0 AS cor0
----
-3267
-8118
-99
query I rowsort
SELECT - 19 * - col2 FROM tab1
----
1026
1083
1824
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 * + tab1.col1 col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to f4eeb2d2bf692021f3b80eb37cb53359
query I rowsort
SELECT 75 * + col0 AS col1 FROM tab2
----
525
5850
5925
query I rowsort
SELECT - - 70 FROM tab2 cor0
----
70
70
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col2 FROM tab1 cor0
----
50
50
50
skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( 94 AS REAL ) * col2 + col1 * - col0 + + col1 AS col1 FROM tab2 AS cor0
----
-2724
-4898
-6987
query I rowsort
SELECT + + 57 + + col1 + - cor0.col2 * ( 18 ) AS col2 FROM tab0 AS cor0
----
-1328
-451
136
query I rowsort
SELECT col2 - - ( cor0.col2 ) FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL - ( - 95 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT col1 + - 11 FROM tab1
----
-1
15
2
query I rowsort
SELECT ALL ( + col0 ) * + col2 - col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT DISTINCT - - col2 * col0 * col0 AS col1 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT 4 * - col1 FROM tab0 AS cor0
----
-344
-364
-388
query I rowsort
SELECT - + cor0.col1 + - col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT + - 29 AS col0 FROM tab2 AS cor0
----
-29
query I rowsort
SELECT col2 * - 21 AS col0 FROM tab1 AS cor0
----
-1134
-1197
-2016
onlyif mysql # use DIV operator for integer division
query I rowsort label-4453
SELECT ALL - 30 DIV - tab0.col1 col0 FROM tab0, tab1 cor0, tab1, tab2 cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL - 30 / - tab0.col1 col0 FROM tab0, tab1 cor0, tab1, tab2 cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4454
SELECT ALL - - col0 * col1 + - CAST( NULL AS SIGNED ) + col0 * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL - - col0 * col1 + - CAST ( NULL AS INTEGER ) + col0 * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + col1 * col2 - ( col0 ) * 47 * - cor0.col1 col2 FROM tab1 AS cor0
----
30660
50141
5096
onlyif mysql # use DIV operator for integer division
query I rowsort label-4456
SELECT ALL - col1 + + col2 * cor0.col2 DIV col1 FROM tab2 AS cor0
----
-48
-8
67
skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL - col1 + + col2 * cor0.col2 / col1 FROM tab2 AS cor0
----
-48
-8
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-4457
SELECT DISTINCT - cor0.col0 + col2 * ( + 11 ) DIV col1 + col2 * col2 * col2 AS col2 FROM tab2 AS cor0
----
17502
19685
54817
skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT - cor0.col0 + col2 * ( + 11 ) / col1 + col2 * col2 * col2 AS col2 FROM tab2 AS cor0
----
17502
19685
54817
query I rowsort
SELECT ALL - - col2 + - col1 + col1 * + col2 FROM tab2 AS cor0
----
1501
667
833
query I rowsort
SELECT + + 73 + + col2 FROM tab2 AS cor0
----
100
111
99
query I rowsort
SELECT ALL + col2 * col1 + ( + 94 * col2 ) FROM tab1 AS cor0
----
10272
5928
6480
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4461
SELECT DISTINCT + 25 + col2 * - CAST( 50 * + col2 AS SIGNED ) FROM tab2 AS cor0
----
-33775
-36425
-72175
skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT + 25 + col2 * - CAST ( 50 * + col2 AS INTEGER ) FROM tab2 AS cor0
----
-33775
-36425
-72175
query I rowsort
SELECT 59 - 78 FROM tab2
----
-19
-19
-19
query I rowsort
SELECT - ( + col0 * + col1 ) FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL col2 * - tab2.col0 AS col2 FROM tab2
----
-189
-2028
-3002
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab0, tab0 AS cor1
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163
query I rowsort
SELECT ALL - col0 - col2 AS col1 FROM tab2 cor0
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-4467
SELECT - - col0 DIV - col2 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-58
-96
skipif mysql # not compatible
query I rowsort label-4467
SELECT - - col0 / - col2 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-58
-96
query I rowsort
SELECT DISTINCT - 88 FROM tab2 AS cor0
----
-88
query I rowsort
SELECT - 40 FROM tab1 AS cor0
----
-40
-40
-40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4470
SELECT ALL + ( col2 ) * CAST( cor0.col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL + ( col2 ) * CAST ( cor0.col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) * ( col0 ) col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + cor0.col2 * + col1 + + 98 AS col2 FROM tab1 cor0
----
1346
1502
668
query I rowsort
SELECT col1 + col2 + + 47 AS col2 FROM tab1
----
114
127
156
query I rowsort
SELECT + col2 * + cor0.col1 + ( col0 ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
1210
1482
2288
onlyif mysql # use DIV operator for integer division
query I rowsort label-4475
SELECT - - col0 DIV - 77 AS col1 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4475
SELECT - - col0 / - 77 AS col1 FROM tab0 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( cor0.col0 ) col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL ( + cor0.col1 ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT - col2 + col1 * col1 FROM tab2
----
251
3455
934
query I rowsort
SELECT - tab1.col1 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT ALL + col0 + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT ALL col1 * - 47 AS col1 FROM tab1 AS cor0
----
-1222
-470
-611
query I rowsort
SELECT - - 72 + 78 * cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
2802
569316
61848
query I rowsort
SELECT DISTINCT - - 13 * cor0.col0 FROM tab2 cor0
----
1014
1027
91
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to a5677c50b23f70287df35c2388a1c9bf
query I rowsort
SELECT DISTINCT + col1 * col1 + + ( + col0 ) AS col1 FROM tab0
----
7420
8370
9444
query I rowsort
SELECT + 98 + - tab0.col0 * ( - tab0.col0 ) AS col2 FROM tab0
----
1323
674
8019
skipif mysql # not compatible
query I rowsort
SELECT ALL col0 + tab0.col2 * + CAST ( + 53 + col0 AS REAL ) AS col2 FROM tab0
----
11733
123
2565
query I rowsort
SELECT - + ( + col2 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4489
SELECT + + cor0.col1 * col1 + CAST( col1 AS SIGNED ) * - col1 + - 27 FROM tab0 AS cor0
----
-27
-27
-27
skipif mysql # not compatible
query I rowsort label-4489
SELECT + + cor0.col1 * col1 + CAST ( col1 AS INTEGER ) * - col1 + - 27 FROM tab0 AS cor0
----
-27
-27
-27
query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 col2 FROM tab0 AS cor0
----
94
query I rowsort
SELECT - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT - + cor0.col1 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT ALL + col2 * + 94 FROM tab0 cor0
----
3102
7708
94
query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - col0 * - 35 FROM tab1 AS cor0
----
105
2240
2800
query I rowsort
SELECT DISTINCT tab2.col0 FROM tab2, tab1, tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + col1 * cor0.col2 - col2 AS col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT ALL - col2 * col2 + - col1 FROM tab2
----
-1461
-735
-760
onlyif mysql # use DIV operator for integer division
query I rowsort label-4500
SELECT + 82 DIV + col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4500
SELECT + 82 / + col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - - ( col1 ) * col2 + 9 AS col0 FROM tab2 AS cor0
----
1543
655
846
query I rowsort
SELECT DISTINCT - col0 + - 80 FROM tab1 AS cor0
----
-144
-160
-83
query I rowsort
SELECT + col2 * + cor0.col1 - col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT ALL - col1 * + 34 FROM tab0 cor0
----
-2924
-3094
-3298
query I rowsort
SELECT + - col0 * - col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2, tab1 cor2
----
3645 values hashing to 2563d2f4127fd757b80c46400c5511cb
onlyif mysql # use DIV operator for integer division
query I rowsort label-4507
SELECT ALL - col2 + col0 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL - col2 + col0 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
-27
-28
-39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4508
SELECT ALL - - CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL - - CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col2 + + col1 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4510
SELECT DISTINCT - - col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT - - col1 / + col1 AS col0 FROM tab2 AS cor0
----
1
query I rowsort
SELECT ALL 92 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
109
123
151
query I rowsort
SELECT DISTINCT + 87 * + col0 FROM tab0 cor0
----
2088
3045
7743
query I rowsort
SELECT col2 * cor0.col0 + + col0 AS col1 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT ALL - + col1 + col1 * + ( - 47 ) AS col1 FROM tab0 AS cor0
----
-4128
-4368
-4656
onlyif mysql # use DIV operator for integer division
query I rowsort label-4515
SELECT DISTINCT + CAST( ( - col2 ) AS SIGNED ) DIV col2 - - col2 * col0 FROM tab1
----
161
3647
7679
skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT + CAST ( ( - col2 ) AS INTEGER ) / col2 - - col2 * col0 FROM tab1
----
161
3647
7679
query I rowsort
SELECT ALL tab1.col1 * - col1 + + col1 * - 57 * + col0 FROM tab1
----
-36580
-5122
-59449
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) + col0 col0 FROM tab2
----
137
38
96
query I rowsort
SELECT 50 * col1 AS col1 FROM tab2 cor0
----
1550
2950
850
query I rowsort
SELECT + - cor0.col1 * - col2 + ( + col1 ) + col0 FROM tab1 cor0
----
1341
1433
644
onlyif mysql # use DIV operator for integer division
query I rowsort label-4520
SELECT 9 + - 59 DIV tab0.col2 FROM tab0
----
-50
8
9
skipif mysql # not compatible
query I rowsort label-4520
SELECT 9 + - 59 / tab0.col2 FROM tab0
----
-50
8
9
query I rowsort
SELECT col1 * 61 AS col2 FROM tab1
----
1586
610
793
query I rowsort
SELECT ALL + col2 - - col2 * col1 AS col0 FROM tab1
----
1344
1458
627
query I rowsort
SELECT + ( 11 ) - col2 FROM tab0
----
-22
-71
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-4524
SELECT ALL - col1 DIV cor0.col0 + - col2 * - col1 col0 FROM tab0 AS cor0
----
2835
7461
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL - col1 / cor0.col0 + - col2 * - col1 col0 FROM tab0 AS cor0
----
2835
7461
95
query I rowsort
SELECT DISTINCT col2 * col1 + + 41 * - col0 FROM tab2 AS cor0
----
-1664
-2593
550
query I rowsort
SELECT - col0 * + col0 - ( col1 ) * + col0 FROM tab0 AS cor0
----
-16020
-2640
-4620
query I rowsort
SELECT 37 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query I rowsort
SELECT - col1 * + tab1.col1 * + tab1.col1 FROM tab1
----
-1000
-17576
-2197
query I rowsort
SELECT ALL - ( col0 ) * + cor0.col0 + col2 + col1 FROM tab2 AS cor0
----
-5999
-6186
9
query I rowsort
SELECT ALL + col0 + col1 * - col2 * - 49 AS col0 FROM tab0 AS cor0
----
139086
365727
4788
query I rowsort
SELECT DISTINCT - ( - 9 * - col1 ) + + col2 FROM tab0
----
-737
-741
-872
query I rowsort
SELECT + ( col0 ) + 95 AS col2 FROM tab1 cor0
----
159
175
98
query I rowsort
SELECT - col2 * + col1 + ( col2 * + 18 ) FROM tab0 AS cor0
----
-2244
-5986
-79
query I rowsort
SELECT 4 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) col0 FROM tab0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 col1 FROM tab1 AS cor0
----
44
44
44
query I rowsort
SELECT ALL - - 79 + - col2 * - col2 AS col0 FROM tab1 cor0
----
2995
3328
9295
query I rowsort
SELECT - 40 * - 4 FROM tab0 AS cor0
----
160
160
160
query I rowsort
SELECT ALL col1 + - cor0.col1 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 30 * col1 FROM tab1 AS cor0
----
-300
-390
-780
query I rowsort
SELECT DISTINCT 23 * - col0 + col1 AS col0 FROM tab2 AS cor0
----
-130
-1735
-1800
query I rowsort
SELECT DISTINCT - - cor0.col0 + 86 + - 85 AS col1 FROM tab2, tab1, tab2 AS cor0
----
79
8
80
query I rowsort
SELECT col1 + - col1 * - 36 FROM tab0
----
3182
3367
3589
query I rowsort
SELECT ALL 10 * 84 * - tab1.col2 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 728a8c0f9fd756ba58b9ad939df37bd0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d
query I rowsort
SELECT - 79 AS col0 FROM tab2 AS cor0
----
-79
-79
-79
query I rowsort
SELECT DISTINCT + col2 * ( - col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 + + cor0.col2 FROM tab1 cor0
----
216
3705
7776
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( cor0.col0 AS REAL ) AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + 28 + - 53 * col1 * col2 AS col0 FROM tab0 AS cor0
----
-150386
-395458
-5113
query I rowsort
SELECT + 46 AS col1 FROM tab0
----
46
46
46
query I rowsort
SELECT DISTINCT - - cor0.col1 + 71 + cor0.col1 * cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ac111ba3e3d0dc9f30dc0201482497e4
onlyif mysql # use DIV operator for integer division
query I rowsort label-4553
SELECT + col2 DIV 41 AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4553
SELECT + col2 / 41 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT 51 FROM tab2, tab1 cor0
----
51
query I rowsort
SELECT + col2 * - ( col0 + + col1 ) FROM tab0
----
-132
-14760
-3630
query I rowsort
SELECT col0 - + col1 * - tab1.col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT + 8 * cor0.col1 + col1 * 39 + col2 * + col0 FROM tab0 AS cor0
----
11575
4594
4834
query I rowsort
SELECT - - cor0.col0 * + col1 AS col0 FROM tab1 cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col0 ) + col2 col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT - + ( + col0 ) + + cor0.col2 * - col0 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4561
SELECT - CAST( + 46 AS SIGNED ) + col0 + + 89 * + col2 AS col1 FROM tab0 AS cor0
----
2915
7341
78
skipif mysql # not compatible
query I rowsort label-4561
SELECT - CAST ( + 46 AS INTEGER ) + col0 + + 89 * + col2 AS col1 FROM tab0 AS cor0
----
2915
7341
78
query I rowsort
SELECT - + col2 + ( col2 ) AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + cor1.col2 * - 21 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 80eac0365e6d606d41afb3303bcb0924
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col1 FROM tab2 cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 40 * + col0 * col0 col0 FROM tab2 AS cor0
----
1960
243360
249640
query I rowsort
SELECT - ( cor0.col1 ) - - col0 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT ALL + 96 FROM tab1, tab1 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT - ( - col2 ) * + col1 AS col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT - - 74 * col2 AS col2 FROM tab0 AS cor0
----
2442
6068
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-4570
SELECT + 55 DIV - col1 + col0 FROM tab2 cor0
----
6
76
78
skipif mysql # not compatible
query I rowsort label-4570
SELECT + 55 / - col1 + col0 FROM tab2 cor0
----
6
76
78
query I rowsort
SELECT col2 * col0 * 48 AS col1 FROM tab2 AS cor0
----
144096
9072
97344
query I rowsort
SELECT col0 * + col0 * - cor0.col2 FROM tab2 cor0
----
-1323
-158184
-237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col0 col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - 13 AS col2 FROM tab0 AS cor0
----
-13
-13
-13
query I rowsort
SELECT + - 29 * col1 FROM tab1 cor0
----
-290
-377
-754
query I rowsort
SELECT ( col1 ) + ( - 22 ) FROM tab2 AS cor0
----
-5
37
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - cor0.col0 col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT cor0.col2 * ( - col2 * + col2 ) FROM tab0 AS cor0
----
-1
-35937
-551368
query I rowsort
SELECT DISTINCT - col2 * col2 + 98 FROM tab2 AS cor0
----
-1346
-578
-631
query I rowsort
SELECT ALL + + col1 + + col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4581
SELECT + + col2 + - CAST( col2 AS SIGNED ) * col1 AS col1 FROM tab1 cor0
----
-1152
-1350
-513
skipif mysql # not compatible
query I rowsort label-4581
SELECT + + col2 + - CAST ( col2 AS INTEGER ) * col1 AS col1 FROM tab1 cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL + col1 - - ( col0 + col2 ) FROM tab1 AS cor0
----
131
189
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-4583
SELECT DISTINCT - col2 * + 68 * col0 + cor0.col0 * ( 42 ) DIV + col1 FROM tab1 AS cor0
----
-11012
-247796
-521982
skipif mysql # not compatible
query I rowsort label-4583
SELECT DISTINCT - col2 * + 68 * col0 + cor0.col0 * ( 42 ) / + col1 FROM tab1 AS cor0
----
-11012
-247796
-521982
query I rowsort
SELECT - col1 + ( - cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT col2 * 75 + - col2 AS col1 FROM tab2 cor0
----
1924
1998
2812
query I rowsort
SELECT DISTINCT + + col0 + + ( + col1 + col0 ) FROM tab1 AS cor0
----
138
173
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-4587
SELECT ALL - - cor0.col1 DIV - ( - ( col0 ) ) FROM tab1 cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL - - cor0.col1 / - ( - ( col0 ) ) FROM tab1 cor0
----
0
0
8
query I rowsort
SELECT - ( 71 ) + cor1.col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to cd7a99032bd597bd19faed1e37f92b22
onlyif mysql # use DIV operator for integer division
query I rowsort label-4589
SELECT ALL + + col1 DIV col0 col2 FROM tab2 cor0
----
0
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL + + col1 / col0 col2 FROM tab2 cor0
----
0
0
4
query I rowsort
SELECT DISTINCT + col2 + cor0.col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL col1 - - 78 AS col1 FROM tab1 AS cor0
----
104
88
91
query I rowsort
SELECT ALL - col1 * col1 * col1 + col0 FROM tab2 cor0
----
-205301
-29784
-4834
onlyif mysql # use DIV operator for integer division
query I rowsort label-4593
SELECT ALL + col2 * - ( - col0 ) + col1 DIV + col2 FROM tab1 cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL + col2 * - ( - col0 ) + col1 / + col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT 98 * - col2 AS col0 FROM tab2 AS cor0
----
-2548
-2646
-3724
query I rowsort
SELECT - ( - col1 ) + - col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + + 20 * - col1 col2 FROM tab2 AS cor0
----
-1258
-419
-627
query I rowsort
SELECT ALL - 54 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d
query I rowsort
SELECT - col1 + 42 * tab1.col0 FROM tab1
----
100
2678
3347
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + ( 65 ) col2 FROM tab1 AS cor0
----
-15
1
62
query I rowsort
SELECT DISTINCT col2 + ( - col0 ) + - ( col1 ) FROM tab2
----
-11
-111
-58
query I rowsort
SELECT - col0 * col2 + - col2 - - col0 FROM tab2
----
-1976
-209
-2961
query I rowsort
SELECT ALL - ( ( + col0 ) ) AS col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL + ( - tab1.col1 ) FROM tab1
----
-10
-13
-26
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab1 AS cor0 WHERE NULL >= NULL
----
query I rowsort
SELECT - ( - col2 + col2 ) AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT 90 * - col2 + - col2 AS col1 FROM tab1
----
-4914
-5187
-8736
query I rowsort
SELECT ALL 45 + 19 * cor0.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4851126d0ce96c39859a01004d210a0a
query I rowsort
SELECT ALL - - col2 * + col0 + cor0.col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT - + 29 FROM tab2 AS cor0
----
-29
-29
-29
query I rowsort
SELECT DISTINCT ( + col0 ) * + 2 * + col0 FROM tab2
----
12168
12482
98
query I rowsort
SELECT ALL - col1 + col0 * - col0 FROM tab0 AS cor0
----
-1322
-662
-8012
query I rowsort
SELECT + col0 * cor0.col1 + cor0.col1 AS col2 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT - + col2 AS col1 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT ALL - - col2 * col0 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL col2 + col1 + + col1 FROM tab2 AS cor0
----
144
72
89
query I rowsort
SELECT DISTINCT - - col0 * col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT col1 + tab0.col2 FROM tab0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4619
SELECT - col2 * col1 DIV col0 FROM tab2
----
-119
-19
-8
skipif mysql # not compatible
query I rowsort label-4619
SELECT - col2 * col1 / col0 FROM tab2
----
-119
-19
-8
query I rowsort
SELECT col2 + + col0 * tab0.col0 FROM tab0
----
1226
609
8003
query I rowsort
SELECT + col1 + col2 + col2 * - col0 * - col1 FROM tab2
----
119737
51089
5917
query I rowsort
SELECT col1 + col0 * col2 * + col0 + - col0 FROM tab0
----
1287
19070
649524
onlyif mysql # use DIV operator for integer division
query I rowsort label-4623
SELECT DISTINCT tab0.col0 * col1 DIV col0 + col2 * - tab0.col1 AS col0 FROM tab0
----
-2752
-7371
0
skipif mysql # not compatible
query I rowsort label-4623
SELECT DISTINCT tab0.col0 * col1 / col0 + col2 * - tab0.col1 AS col0 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT + col0 * col0 + col1 AS col0 FROM tab1 cor0
----
35
4106
6413
query I rowsort
SELECT + col2 + col1 AS col2 FROM tab1
----
109
67
80
query I rowsort
SELECT - tab2.col2 AS col2 FROM tab2 WHERE NULL > ( col2 + - col0 )
----
query I rowsort
SELECT DISTINCT + - col2 + + col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - col2 * col2 * + col1 - - col0 * cor0.col0 FROM tab2 AS cor0
----
-18307
-22550
-33800
query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE ( NULL ) <= ( NULL )
----
query I rowsort
SELECT - col1 - col2 AS col1 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT ALL - col1 * - col1 + + col1 FROM tab2
----
306
3540
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-4632
SELECT ALL - col1 + - col0 * col0 DIV col1 FROM tab0
----
-109
-178
-92
skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL - col1 + - col0 * col0 / col1 FROM tab0
----
-109
-178
-92
query I rowsort
SELECT ALL + col0 + + col0 + col2 * + col1 FROM tab0 AS cor0
----
167
2886
7640
onlyif mysql # use DIV operator for integer division
query I rowsort label-4634
SELECT ALL col2 DIV tab1.col0 + + col1 * col1 AS col1 FROM tab1
----
100
170
694
skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL col2 / tab1.col0 + + col1 * col1 AS col1 FROM tab1
----
100
170
694
query I rowsort
SELECT DISTINCT col1 + cor0.col0 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT + + cor0.col1 - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
onlyif mysql # use DIV operator for integer division
query I rowsort label-4637
SELECT DISTINCT + col0 DIV col0 + - col0 AS col2 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT + col0 / col0 + - col0 AS col2 FROM tab0 AS cor0
----
-23
-34
-88
query I rowsort
SELECT ALL cor0.col1 + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d994d266bacb99d3939b70b2c7903ce8
query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE ( + col1 * + col0 * col2 ) NOT BETWEEN - col1 + col0 + - col2 AND ( NULL )
----
query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT + col1 IN ( col2 )
----
17
31
59
query I rowsort
SELECT + col1 * + col0 AS col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL - col2 + + col1 AS col1 FROM tab2
----
-21
33
4
query I rowsort
SELECT col0 - - col1 * col2 * tab0.col0 FROM tab0
----
3430
664207
68136
onlyif mysql # use DIV operator for integer division
query I rowsort label-4644
SELECT + col2 DIV col2 AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4644
SELECT + col2 / col2 AS col2 FROM tab0
----
1
1
1
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + col0 * - col0 + - col2 * tab1.col0 )
----
query I rowsort
SELECT col0 FROM tab0 WHERE ( col1 * - col1 * col0 ) IN ( col2 + - col2 * + tab0.col0 + tab0.col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4647
SELECT DISTINCT - col0 - tab2.col0 DIV - col0 FROM tab2
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-4647
SELECT DISTINCT - col0 - tab2.col0 / - col0 FROM tab2
----
-6
-77
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col2 * col2 col1 FROM tab2
----
-1427
-617
-698
query I rowsort
SELECT + col1 * - col2 - ( 39 ) AS col2 FROM tab1 cor0
----
-1287
-1443
-609
query I rowsort
SELECT 53 - col1 AS col0 FROM tab0 AS cor0
----
-33
-38
-44
query I rowsort
SELECT 65 * cor0.col0 - col2 * col2 FROM tab1 AS cor0
----
-2721
-4016
911
query I rowsort
SELECT DISTINCT col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-4653
SELECT + col0 * col1 DIV col1 + col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
132
2862
7551
skipif mysql # not compatible
query I rowsort label-4653
SELECT + col0 * col1 / col1 + col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT col1 + + cor0.col1 * - col2 * col2 AS col0 FROM tab2 AS cor0
----
-22568
-24531
-39825
onlyif mysql # use DIV operator for integer division
query I rowsort label-4655
SELECT col2 DIV + tab2.col0 col2 FROM tab2 WHERE NOT - col0 IN ( - col1 )
----
0
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4655
SELECT col2 / + tab2.col0 col2 FROM tab2 WHERE NOT - col0 IN ( - col1 )
----
0
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 col1 FROM tab2
----
137
38
96
query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NULL > NULL
----
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 + - col1 + col1 ) <= col2 + col2 + - col0
----
3
26
54
80
13
96
query I rowsort
SELECT ALL + col0 * + col0 * cor0.col1 FROM tab0 AS cor0
----
118825
49536
720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 * + col2 col2 FROM tab1 cor0
----
2942
3259
9229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 col0 FROM tab2 WHERE NOT col1 NOT BETWEEN + col0 AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( col0 )
----
query I rowsort
SELECT ALL tab1.col2 FROM tab1 WHERE NOT col0 < ( NULL )
----
query III rowsort
SELECT * FROM tab2 WHERE - col0 NOT IN ( col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
onlyif mysql # use DIV operator for integer division
query I rowsort label-4665
SELECT tab2.col1 DIV - col1 + + col2 + col1 FROM tab2
----
54
57
84
skipif mysql # not compatible
query I rowsort label-4665
SELECT tab2.col1 / - col1 + + col2 + col1 FROM tab2
----
54
57
84
query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL NOT IN ( col0 / - col1 )
----
query I rowsort
SELECT tab1.col1 AS col2 FROM tab1 WHERE NOT NULL >= NULL
----
query I rowsort
SELECT col2 * + col0 AS col0 FROM tab0 WHERE NULL NOT IN ( col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4669
SELECT ALL - - col0 DIV col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL - - col0 / col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT + col1 * col0 + - cor0.col2 FROM tab0 AS cor0
----
2031
3394
8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 97 col1 FROM tab0 AS cor0
----
-97
-97
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + cor0.col1 col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL col1 * col0 - - 85 AS col2 FROM tab1 AS cor0
----
1125
163
725
query I rowsort
SELECT ALL 17 + - col2 FROM tab2 AS cor0
----
-10
-21
-9
query I rowsort
SELECT DISTINCT tab2.col1 - tab2.col1 AS col0 FROM tab2
----
0
query I rowsort
SELECT tab2.col0 + - col2 * 83 AS col2 FROM tab2
----
-2080
-2234
-3075
query I rowsort
SELECT + 54 + + col0 * - tab0.col0 AS col2 FROM tab0
----
-1171
-522
-7867
query I rowsort
SELECT - col2 * + col0 - 46 FROM tab0
----
-7344
-81
-838
query I rowsort
SELECT cor1.col1 - cor1.col0 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to e97278a6bb7007ec367f7fc7917bd1c7
query I rowsort
SELECT + col2 * - col0 * + col0 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT - 86 * col0 FROM tab2 AS cor0
----
-602
-6708
-6794
query I rowsort
SELECT ALL - tab0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT 50 * col1 + - 57 * - col2 AS col0 FROM tab0
----
4907
6181
9224
query I rowsort
SELECT col2 * 45 * - tab2.col2 FROM tab2
----
-30420
-32805
-64980
query I rowsort
SELECT DISTINCT - col0 * 30 FROM tab2
----
-210
-2340
-2370
query I rowsort
SELECT DISTINCT + col0 * ( col1 ) FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT - 29 * + 69 FROM tab2 AS cor0
----
-2001
query I rowsort
SELECT ALL - + ( 14 ) * - col0 + + ( + cor0.col2 ) FROM tab1 AS cor0
----
1216
953
96
query I rowsort
SELECT - 59 FROM tab1, tab1 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703
query I rowsort
SELECT DISTINCT - col0 + + col0 + + ( col0 ) * + 92 AS col0 FROM tab0
----
2208
3220
8188
query I rowsort
SELECT ALL col0 * + col0 + - tab1.col2 FROM tab1
----
-45
4039
6304
query I rowsort
SELECT - + col2 * + col1 + col1 + - col0 FROM tab2 AS cor0
----
-1553
-708
-813
query I rowsort
SELECT - col2 + col2 + 21 FROM tab1 AS cor0
----
21
21
21
query I rowsort
SELECT ALL + col2 + ( + 2 * + tab0.col2 ) FROM tab0
----
246
3
99
query I rowsort
SELECT - 87 + + col2 AS col2 FROM tab2
----
-49
-60
-61
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to 28412d50061391eec23a02d0efcfb3f9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 + - cor0.col0 col2 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT + - 54 * + col2 FROM tab1 cor0
----
-2916
-3078
-5184
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 col0 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT - 66 AS col0 FROM tab2 AS cor0
----
-66
-66
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4701
SELECT ALL 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-4701
SELECT ALL CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 27 * + col0 AS col1 FROM tab1
----
-1728
-2160
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-4703
SELECT DISTINCT + ( + 69 ) DIV col2 AS col0 FROM tab0 AS cor0
----
0
2
69
skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT + ( + 69 ) / col2 AS col0 FROM tab0 AS cor0
----
0
2
69
query I rowsort
SELECT + 15 AS col0 FROM tab2 AS cor0
----
15
15
15
query I rowsort
SELECT ALL col0 * 38 + col2 FROM tab1 AS cor0
----
168
2489
3136
query I rowsort
SELECT DISTINCT cor0.col2 + - 7 FROM tab0 AS cor0
----
-6
26
75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4707
SELECT ALL - CAST( 96 AS SIGNED ) FROM tab0 AS cor0
----
-96
-96
-96
skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL - CAST ( 96 AS INTEGER ) FROM tab0 AS cor0
----
-96
-96
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4708
SELECT col0 DIV col2 + - tab0.col1 FROM tab0
----
-62
-86
-90
skipif mysql # not compatible
query I rowsort label-4708
SELECT col0 / col2 + - tab0.col1 FROM tab0
----
-62
-86
-90
query I rowsort
SELECT ALL - + ( + col1 ) * - col0 + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL + 72 + - col0 * + col2 + + col1 FROM tab0 AS cor0
----
-634
-7135
134
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 90 + + col1 col2 FROM tab1 AS cor0
----
-64
-77
-80
query I rowsort
SELECT + + 67 AS col1 FROM tab0 AS cor0
----
67
67
67
query I rowsort
SELECT ALL - - col2 * + col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 col2 FROM tab2 AS cor0
----
83
query I rowsort
SELECT DISTINCT - 72 * + col2 + + col0 * col0 + col0 AS col1 FROM tab1 AS cor0
----
-3876
-432
56
query I rowsort
SELECT ALL + + 58 * - col1 - col0 * col2 AS col0 FROM tab2 cor0
----
-1987
-3988
-5450
query I rowsort
SELECT ( + col0 ) * - col0 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT - col1 * - col1 + col1 * col1 AS col1 FROM tab0 cor0
----
14792
16562
18818
query I rowsort
SELECT - - 87 FROM tab1 AS cor0
----
87
87
87
query I rowsort
SELECT ALL - - 44 - - cor0.col1 AS col1 FROM tab1 AS cor0
----
54
57
70
query I rowsort
SELECT DISTINCT + + ( col2 ) * col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + 93 + - ( + col0 ) AS col0 FROM tab2
----
14
15
86
query I rowsort
SELECT ALL cor0.col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - col2 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4725
SELECT ALL ( col0 ) + - col1 DIV + col0 col1 FROM tab1 AS cor0
----
-5
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL ( col0 ) + - col1 / + col0 col1 FROM tab1 AS cor0
----
-5
64
80
query I rowsort
SELECT ALL - col0 * - col2 + col0 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-1272
-3360
-801
query I rowsort
SELECT + col2 * 55 + + col2 + + col1 FROM tab0 AS cor0
----
153
1934
4683
query I rowsort
SELECT + - cor0.col2 + + ( col0 ) * - col1 AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT - + cor0.col2 - + col0 FROM tab1 AS cor0
----
-121
-176
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4730
SELECT ALL - + col2 * CAST( - col1 AS SIGNED ) * col0 col1 FROM tab1 AS cor0
----
36480
4212
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL - + col2 * CAST ( - col1 AS INTEGER ) * col0 col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT + col1 + + cor0.col0 * col2 AS col0 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT - col2 + - col0 + - col0 AS col2 FROM tab2
----
-182
-196
-41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 89 col2 FROM tab0
----
122
171
90
query I rowsort
SELECT - col0 + + col0 * - 82 AS col1 FROM tab0 AS cor0
----
-1992
-2905
-7387
query I rowsort
SELECT ALL + + col1 + + 23 FROM tab0 AS cor0
----
109
114
120
query I rowsort
SELECT + col1 - + 48 * + col2 AS col1 FROM tab2 AS cor0
----
-1189
-1265
-1807
query I rowsort
SELECT ALL - col2 + 90 + col1 FROM tab0 AS cor0
----
143
186
99
query I rowsort
SELECT + col2 * 63 + cor0.col0 FROM tab1 AS cor0
----
3405
3655
6128
query I rowsort
SELECT DISTINCT + - col2 * ( + 65 ) AS col2 FROM tab0 AS cor0
----
-2145
-5330
-65
query I rowsort
SELECT + + col0 + col0 * col1 FROM tab0 cor0
----
2088
3430
8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4741
SELECT DISTINCT col0 * CAST( col0 * - col0 + - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-479154
-494382
-560
skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT col0 * CAST ( col0 * - col0 + - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-479154
-494382
-560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4742
SELECT ALL - - col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL - - col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col1 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - + col0 * - col1 * col0 FROM tab0 AS cor0
----
118825
49536
720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-4745
SELECT ALL + + col0 DIV col0 + + col1 + col0 * col1 * + col0 col2 FROM tab0 AS cor0
----
118923
49623
720903
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL + + col0 / col0 + + col1 + col0 * col1 * + col0 col2 FROM tab0 AS cor0
----
118923
49623
720903
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( + 15 AS REAL ) AS col2 FROM tab0 AS cor0
----
-15
query I rowsort
SELECT - col2 + - col1 + col1 * col2 FROM tab1
----
1139
1324
503
query I rowsort
SELECT DISTINCT - tab2.col0 + 86 FROM tab2
----
7
79
8
query I rowsort
SELECT DISTINCT + + col2 * col2 + + col2 AS col1 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT ALL - cor0.col1 * + ( + col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4751
SELECT - col2 DIV 38 FROM tab2 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4751
SELECT - col2 / 38 FROM tab2 cor0
----
-1
0
0
query I rowsort
SELECT ALL col0 * - 83 AS col0 FROM tab0 AS cor0
----
-1992
-2905
-7387
query I rowsort
SELECT ALL + col2 * col1 + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT col1 + col2 * 55 AS col0 FROM tab2
----
1489
1516
2107
query I rowsort
SELECT DISTINCT cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
3
64
80
query I rowsort
SELECT ALL + col0 + ( + 70 ) FROM tab0 AS cor0
----
105
159
94
query I rowsort
SELECT - col1 * + cor0.col1 * + col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT - + col2 * col2 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + col0 + 8 FROM tab0 AS cor0
----
32
43
97
query I rowsort
SELECT DISTINCT + + col1 * - ( col0 * col2 ) AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT col0 + ( col1 ) FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - col0 * - col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT ALL cor0.col2 * col1 + - col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT + + ( col2 ) - - col0 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - cor0.col1 + + cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d924577a04b3a692cbbd2348e6f8e88f
query I rowsort
SELECT + + 20 + + 79 * col0 AS col2 FROM tab1 cor0
----
257
5076
6340
query I rowsort
SELECT ALL + cor1.col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT tab0.col0 + + 20 + col1 AS col2 FROM tab0
----
130
152
200
query I rowsort
SELECT DISTINCT col0 + col0 * 28 AS col0 FROM tab1
----
1856
2320
87
query I rowsort
SELECT DISTINCT - - col0 * cor0.col2 + - 30 FROM tab1 AS cor0
----
132
3618
7650
query I rowsort
SELECT - 40 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 01aad4539198a6509248e086869f90a6
query I rowsort
SELECT ALL - 27 * col1 FROM tab2 AS cor0
----
-1593
-459
-837
query I rowsort
SELECT DISTINCT + col2 + 17 * col2 * 30 FROM tab2
----
13286
13797
19418
query I rowsort
SELECT + col2 * + col0 + col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT DISTINCT col1 * + col1 + - col2 FROM tab1
----
43
622
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 col1 FROM tab1
----
0
0
0
query I rowsort
SELECT + 39 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229
query I rowsort
SELECT ALL cor0.col2 * + col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL 97 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123
onlyif mysql # use DIV operator for integer division
query I rowsort label-4780
SELECT DISTINCT + 65 DIV + col1 + 89 AS col2 FROM tab2 cor0
----
90
91
92
skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT + 65 / + col1 + 89 AS col2 FROM tab2 cor0
----
90
91
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * + 50 col2 FROM tab0
----
1200
1750
4450
query I rowsort
SELECT + 76 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT + cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1
query I rowsort
SELECT DISTINCT + - col0 * + col1 + + col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL tab1.col0 * 78 FROM tab1
----
234
4992
6240
query I rowsort
SELECT ALL 67 * ( - col0 ) + 59 AS col0 FROM tab0
----
-1549
-2286
-5904
query I rowsort
SELECT + - col1 - + col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT + col1 + + 52 AS col1 FROM tab0 AS cor0
----
138
143
149
query I rowsort
SELECT + + ( - 49 ) AS col2 FROM tab0 AS cor0
----
-49
-49
-49
onlyif mysql # use DIV operator for integer division
query I rowsort label-4791
SELECT - col2 DIV + cor0.col1 + col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-4791
SELECT - col2 / + cor0.col1 + col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + col1 * + 98 FROM tab0 AS cor0
----
8428
8918
9506
query I rowsort
SELECT + col1 * 93 FROM tab1
----
1209
2418
930
query I rowsort
SELECT DISTINCT 59 AS col0 FROM tab2
----
59
query I rowsort
SELECT ALL 28 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
query I rowsort
SELECT ALL - cor0.col2 + 2 AS col2 FROM tab0 AS cor0
----
-31
-80
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4797
SELECT ALL + - 1 * + col2 + col1 DIV col0 AS col0 FROM tab2 cor0
----
-23
-26
-38
skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL + - 1 * + col2 + col1 / col0 AS col0 FROM tab2 cor0
----
-23
-26
-38
query I rowsort
SELECT DISTINCT - 99 - - col2 FROM tab1 AS cor0
----
-3
-42
-45
query I rowsort
SELECT DISTINCT + cor0.col2 + cor0.col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - - 75 * col2 + 35 AS col0 FROM tab1 AS cor0
----
4085
4310
7235
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + cor0.col2 col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - 93 + - cor0.col2 FROM tab1 AS cor0
----
-147
-150
-189
query I rowsort
SELECT ALL col2 + - col0 AS col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL col1 + col0 - ( + 15 ) FROM tab1 AS cor0
----
14
59
78
query I rowsort
SELECT ALL + 95 + col2 FROM tab2 cor0
----
121
122
133
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4806
SELECT - col0 + cor0.col2 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4806
SELECT - col0 + cor0.col2 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 90 * cor0.col2 + + ( - 22 ) AS col0 FROM tab1 AS cor0
----
4838
5108
8618
onlyif mysql # use DIV operator for integer division
query I rowsort label-4808
SELECT 5 + - col2 DIV + col0 + ( col0 ) AS col0 FROM tab2
----
83
84
9
skipif mysql # not compatible
query I rowsort label-4808
SELECT 5 + - col2 / + col0 + ( col0 ) AS col0 FROM tab2
----
83
84
9
query I rowsort
SELECT ( + cor0.col2 ) * col1 + col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT + 54 * - cor0.col2 FROM tab0 AS cor0
----
-1782
-4428
-54
query I rowsort
SELECT tab0.col0 + col1 * - col1 AS col0 FROM tab0
----
-7372
-8192
-9374
query I rowsort
SELECT + ( - 0 ) + cor0.col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL ( + 22 ) AS col2 FROM tab2 cor0
----
22
22
22
query I rowsort
SELECT ALL 45 FROM tab0, tab1 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4815
SELECT ALL + + 30 * 70 + + col2 * CAST( + col0 AS SIGNED ) + - col1 * + col1 FROM tab0 AS cor0
----
-4504
-7274
1117
skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL + + 30 * 70 + + col2 * CAST ( + col0 AS INTEGER ) + - col1 * + col1 FROM tab0 AS cor0
----
-4504
-7274
1117
query I rowsort
SELECT ALL 17 AS col1 FROM tab0
----
17
17
17
query I rowsort
SELECT + 95 FROM tab0, tab1 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT ALL - - 30 AS col0 FROM tab1 AS cor0
----
30
30
30
onlyif mysql # use DIV operator for integer division
query I rowsort label-4819
SELECT ALL - - col1 DIV col2 AS col0 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL - - col1 / col2 AS col0 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT DISTINCT - 71 * col2 * + col1 AS col0 FROM tab0 AS cor0
----
-201498
-529802
-6887
query I rowsort
SELECT - cor0.col0 + + 6 AS col0 FROM tab1 cor0
----
-58
-74
3
query I rowsort
SELECT ALL + 1 FROM tab2
----
1
1
1
query I rowsort
SELECT + col1 + - 73 AS col0 FROM tab2 cor0
----
-14
-42
-56
query I rowsort
SELECT - - col1 + - 68 FROM tab1 cor0
----
-42
-55
-58
query I rowsort
SELECT ALL + 59 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
query I rowsort
SELECT - 8 AS col0 FROM tab2
----
-8
-8
-8
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to c0625992cd48bef51317edf43a55d9e4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4828
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) * - tab1.col2 AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) * - tab1.col2 AS col1 FROM tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4829
SELECT - col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4829
SELECT - col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + - 98 AS col2 FROM tab2 AS cor0
----
-105
-176
-177
onlyif mysql # use DIV operator for integer division
query I rowsort label-4831
SELECT cor0.col2 DIV 38 + - 14 FROM tab2 AS cor0
----
-13
-14
-14
skipif mysql # not compatible
query I rowsort label-4831
SELECT cor0.col2 / 38 + - 14 FROM tab2 AS cor0
----
-13
-14
-14
query I rowsort
SELECT + tab2.col1 + 3 - tab2.col0 AS col0 FROM tab2
----
-16
-59
27
query I rowsort
SELECT + col0 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + col0 + - tab0.col1 FROM tab0
----
-2
-62
query I rowsort
SELECT ALL - + 4 AS col0 FROM tab1 AS cor0
----
-4
-4
-4
onlyif mysql # use DIV operator for integer division
query I rowsort label-4836
SELECT + 4 DIV - cor0.col1 + - col2 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-4836
SELECT + 4 / - cor0.col1 + - col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL - col2 * 51 + col1 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-2754
-2907
-4896
query I rowsort
SELECT DISTINCT - ( cor0.col1 ) - + col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT - col1 * ( - col0 ) AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT + col2 * 28 AS col0 FROM tab2
----
1064
728
756
onlyif mysql # use DIV operator for integer division
query I rowsort label-4841
SELECT + col2 DIV ( + tab1.col2 ) - + col1 FROM tab1
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-4841
SELECT + col2 / ( + tab1.col2 ) - + col1 FROM tab1
----
-12
-25
-9
query I rowsort
SELECT ALL - 86 FROM tab1, tab2 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da
query I rowsort
SELECT ALL - col0 + + 83 AS col1 FROM tab1
----
19
3
80
query I rowsort
SELECT DISTINCT + 24 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
24
query I rowsort
SELECT tab1.col2 * col2 + + col0 + col1 AS col2 FROM tab1
----
2945
3323
9309
query I rowsort
SELECT ALL + col2 * 73 + 13 * col2 FROM tab1
----
4644
4902
8256
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4847
SELECT + CAST( NULL AS SIGNED ) * 96 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4847
SELECT + CAST ( NULL AS INTEGER ) * 96 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - col0 + 99 FROM tab0
----
10
64
75
query I rowsort
SELECT ALL + ( ( cor0.col0 ) ) AS col0 FROM tab2 cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 - col0 col0 FROM tab0 cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4851
SELECT DISTINCT col1 + col1 DIV col0 + - ( col0 ) AS col0 FROM tab1 AS cor0
----
-54
-67
31
skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT col1 + col1 / col0 + - ( col0 ) AS col0 FROM tab1 AS cor0
----
-54
-67
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4852
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4852
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col0 * - col0 * col2 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT DISTINCT - 87 * - tab0.col0 AS col2 FROM tab0, tab0 AS cor0
----
2088
3045
7743
query I rowsort
SELECT 84 * - 2 + col1 * 29 FROM tab0 AS cor0
----
2326
2471
2645
query I rowsort
SELECT DISTINCT 18 + + col0 AS col0 FROM tab1 AS cor0
----
21
82
98
query I rowsort
SELECT ALL + col0 * + cor0.col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + col1 * col0 + + col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL - + ( 51 ) * + cor0.col0 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-350
-3900
-3950
query I rowsort
SELECT + + 48 FROM tab1 cor0
----
48
48
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4861
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4862
SELECT DISTINCT + + col2 * - 39 * col2 + ( col1 + + col0 * - CAST( - col0 AS SIGNED ) ) FROM tab2 AS cor0
----
-20221
-28351
-50058
skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT + + col2 * - 39 * col2 + ( col1 + + col0 * - CAST ( - col0 AS INTEGER ) ) FROM tab2 AS cor0
----
-20221
-28351
-50058
query I rowsort
SELECT ALL - col2 - + 48 FROM tab0 AS cor0
----
-130
-49
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - col1 col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - ( + 34 ) AS col2 FROM tab0 AS cor0
----
-34
-34
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 col1 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-4867
SELECT - + 81 + - col0 DIV + col2 FROM tab1 AS cor0
----
-81
-81
-82
skipif mysql # not compatible
query I rowsort label-4867
SELECT - + 81 + - col0 / + col2 FROM tab1 AS cor0
----
-81
-81
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 * col2 col1 FROM tab0 AS cor0
----
-1023
-2542
-31
query I rowsort
SELECT DISTINCT 1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1
query I rowsort
SELECT 28 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 AS col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - + 13 + + col2 FROM tab2 AS cor0
----
13
14
25
query I rowsort
SELECT - - cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + + col1 + + col1 AS col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT cor0.col1 + - col2 AS col1 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4876
SELECT + cor0.col1 + - col1 DIV - 31 FROM tab0 AS cor0
----
100
88
93
skipif mysql # not compatible
query I rowsort label-4876
SELECT + cor0.col1 + - col1 / - 31 FROM tab0 AS cor0
----
100
88
93
query I rowsort
SELECT - col2 * col2 AS col0 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT - col2 * + 9 AS col0 FROM tab0 AS cor0
----
-297
-738
-9
query I rowsort
SELECT - + col0 + cor0.col1 * col2 AS col1 FROM tab1 cor0
----
1168
1401
506
query I rowsort
SELECT ALL - + cor0.col0 + - col0 * cor0.col1 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT ALL - + col0 * - 90 * cor0.col0 FROM tab0 AS cor0
----
110250
51840
712890
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 82e15d5967b272804e574774895a0222
query I rowsort
SELECT ALL - cor0.col0 + - ( - col2 ) AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT + col0 - col0 * col2 FROM tab0 cor0
----
-7209
-768
0
query I rowsort
SELECT col0 * ( + col2 ) + - col2 AS col0 FROM tab0 AS cor0
----
34
7216
759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + cor0.col1 * col0 col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL + col1 + + col0 * + col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT + col0 * + 82 AS col0 FROM tab2 cor0
----
574
6396
6478
query I rowsort
SELECT ALL + 43 AS col2 FROM tab0
----
43
43
43
query I rowsort
SELECT ( + col0 ) AS col0 FROM tab1
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4891
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-4891
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT - 9 FROM tab1, tab0 AS cor0
----
-9
query I rowsort
SELECT ALL - col0 * + 44 FROM tab1
----
-132
-2816
-3520
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4894
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + 22 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + 22 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - 68 * + 47 + col0 AS col0 FROM tab2 cor0
----
-3117
-3118
-3189
query I rowsort
SELECT + + 27 + col1 * - col0 AS col1 FROM tab2 cor0
----
-1316
-190
-4575
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ( + 19 ) AS col2 FROM tab2
----
19
19
19
query I rowsort
SELECT ALL col2 + + col1 * + 13 FROM tab1 AS cor0
----
187
265
392
onlyif mysql # use DIV operator for integer division
query I rowsort label-4900
SELECT DISTINCT + 7 DIV - col0 - - col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4900
SELECT DISTINCT + 7 / - col0 - - col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + 47 AS col0 FROM tab1 AS cor0
----
47
47
47
query I rowsort
SELECT - - cor0.col2 * col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + col2 + - col1 * col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT - - cor0.col0 + ( 40 ) + col2 AS col1 FROM tab2 AS cor0
----
144
157
74
query I rowsort
SELECT ALL + col1 + - col0 * 4 FROM tab1 AS cor0
----
-246
-307
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-4906
SELECT ALL col0 + col0 DIV - 3 + + col0 FROM tab1 AS cor0
----
107
134
5
skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL col0 + col0 / - 3 + + col0 FROM tab1 AS cor0
----
107
134
5
query I rowsort
SELECT + + col1 * - col0 + col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL - col0 * + col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT - col2 - + 83 FROM tab1 AS cor0
----
-137
-140
-179
query I rowsort
SELECT + + col1 + + col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL - + col1 * - 7 * ( - col0 ) FROM tab0 AS cor0
----
-14448
-23765
-56693
query I rowsort
SELECT DISTINCT col2 * 76 AS col0 FROM tab1 AS cor0
----
4104
4332
7296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 21 * col1 * - col1 col0 FROM tab1 AS cor0
----
14193
2036
3469
query I rowsort
SELECT + ( - 95 ) * - cor0.col0 FROM tab2 AS cor0
----
665
7410
7505
query I rowsort
SELECT DISTINCT + - col1 + + col2 AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT + col2 * 99 FROM tab2 AS cor0
----
2574
2673
3762
query I rowsort
SELECT + col2 * col1 * col1 + col0 AS col0 FROM tab2
----
11061
25954
90584
query I rowsort
SELECT DISTINCT col2 * 30 + + col1 + col0 * col1 * + col2 AS col0 FROM tab1
----
102733
38200
5858
query I rowsort
SELECT col1 * 15 AS col2 FROM tab0
----
1290
1365
1455
query I rowsort
SELECT cor0.col2 * + col1 * col1 AS col0 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT + - 91 AS col1 FROM tab1 AS cor0
----
-91
-91
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + + cor0.col0 + col2 col0 FROM tab0 AS cor0
----
133
2895
7633
onlyif mysql # use DIV operator for integer division
query I rowsort label-4924
SELECT cor0.col2 + + col0 DIV + col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-4924
SELECT cor0.col2 + + col0 / + col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( + 82 AS REAL ) + col2 * + ( 23 ) + - col1 * - 79 AS col1 FROM tab1 AS cor0
----
2183
3317
3378
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4926
SELECT + + CAST( + col0 AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-4926
SELECT + + CAST ( + col0 AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + ( col0 ) + - col0 * 86 AS col2 FROM tab0 AS cor0
----
-2040
-2975
-7565
onlyif mysql # use DIV operator for integer division
query I rowsort label-4928
SELECT - - 36 * - col1 DIV - col1 FROM tab0 AS cor0
----
36
36
36
skipif mysql # not compatible
query I rowsort label-4928
SELECT - - 36 * - col1 / - col1 FROM tab0 AS cor0
----
36
36
36
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab1 cor1, tab0 AS cor2
----
3645 values hashing to ac17da4547aa356439ff11568174588c
query I rowsort
SELECT 39 * - ( col0 ) FROM tab1
----
-117
-2496
-3120
query I rowsort
SELECT - 36 * - col0 AS col2 FROM tab1 AS cor0
----
108
2304
2880
query I rowsort
SELECT - col0 - - col1 * + col1 FROM tab2 AS cor0
----
210
3403
954
onlyif mysql # use DIV operator for integer division
query I rowsort label-4933
SELECT + col1 * col2 DIV - 29 FROM tab0
----
-257
-3
-97
skipif mysql # not compatible
query I rowsort label-4933
SELECT + col1 * col2 / - 29 FROM tab0
----
-257
-3
-97
query I rowsort
SELECT col2 * col0 * - 79 FROM tab0
----
-2765
-576542
-62568
query I rowsort
SELECT + 36 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT - cor0.col2 - 25 AS col1 FROM tab1 AS cor0
----
-121
-79
-82
query I rowsort
SELECT DISTINCT col2 + - 59 AS col1 FROM tab1 AS cor0
----
-2
-5
37
query I rowsort
SELECT - col1 * + col2 + - cor0.col0 AS col0 FROM tab0 cor0
----
-132
-2862
-7551
query I rowsort
SELECT DISTINCT 60 + + 28 - - cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
114
115
126
query I rowsort
SELECT - - col0 * - col1 + - 57 * ( - col2 * 27 ) FROM tab2 AS cor0
----
35412
41336
57139
query I rowsort
SELECT col1 * + col2 - - col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-4942
SELECT - 75 DIV col1 + - col2 + + col2 * + col2 FROM tab2 AS cor0
----
1402
649
700
skipif mysql # not compatible
query I rowsort label-4942
SELECT - 75 / col1 + - col2 + + col2 * + col2 FROM tab2 AS cor0
----
1402
649
700
query I rowsort
SELECT + 31 * col2 FROM tab0 AS cor0
----
1023
2542
31
query I rowsort
SELECT + + col2 * 64 + + col1 AS col2 FROM tab2 AS cor0
----
1723
1759
2449
query I rowsort
SELECT cor0.col2 + 21 FROM tab1 AS cor0
----
117
75
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4946
SELECT ALL - - col0 DIV - ( 66 * col2 ) AS col0 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL - - col0 / - ( 66 * col2 ) AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 + col0 * col0 * col0 FROM tab2 AS cor0
----
336
474474
492960
query I rowsort
SELECT col0 * + ( col2 ) + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col1 col2 FROM tab1, tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + tab1.col0 * ( tab1.col2 ) FROM tab1
----
162
3648
7680
query I rowsort
SELECT + col0 + - col2 * - col0 FROM tab2
----
196
2106
3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 * - col0 - col0 col0 FROM tab2
----
-406
-4524
-4582
query I rowsort
SELECT DISTINCT + col0 * + col2 + cor0.col1 AS col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT - cor0.col0 + cor0.col1 AS col1 FROM tab1 cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-4955
SELECT - + 1 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4955
SELECT - + 1 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - 21 + col1 * col0 FROM tab1 AS cor0
----
1019
57
619
onlyif mysql # use DIV operator for integer division
query I rowsort label-4957
SELECT + col2 DIV col0 + + 50 FROM tab1 AS cor0
----
50
51
68
skipif mysql # not compatible
query I rowsort label-4957
SELECT + col2 / col0 + + 50 FROM tab1 AS cor0
----
50
51
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 31 * col0 col0 FROM tab1 AS cor0
----
1984
2480
93
query I rowsort
SELECT ALL - 6 FROM tab2
----
-6
-6
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 + col1 + + 32 col0 FROM tab2 AS cor0
----
-1294
-154
-4511
query I rowsort
SELECT ALL - col2 * + ( + col2 ) AS col1 FROM tab1
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-4962
SELECT - col0 DIV - col1 AS col2 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-4962
SELECT - col0 / - col1 AS col2 FROM tab1
----
0
6
6
query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT col0 - + col0 * col0 AS col1 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT - 25 * + col0 + - 23 FROM tab1 cor0
----
-1623
-2023
-98
query I rowsort
SELECT - ( col2 ) + - ( - 89 ) + col1 FROM tab2 AS cor0
----
122
68
93
query I rowsort
SELECT cor0.col2 * - col0 - 70 AS col0 FROM tab2 AS cor0
----
-2098
-259
-3072
onlyif mysql # use DIV operator for integer division
query I rowsort label-4968
SELECT - 94 DIV - col1 FROM tab2
----
1
3
5
skipif mysql # not compatible
query I rowsort label-4968
SELECT - 94 / - col1 FROM tab2
----
1
3
5
query I rowsort
SELECT col1 * - col1 - col1 FROM tab0
----
-7482
-8372
-9506
query I rowsort
SELECT ALL - 0 * col0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1136
132
697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + col0 col2 FROM tab0 cor0
----
110
132
180
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 8bda8b9cf32f196464e0ee0b41a5162d
query I rowsort
SELECT DISTINCT - - col0 * cor0.col0 + col1 * col0 AS col1 FROM tab0 AS cor0
----
16020
2640
4620
query I rowsort
SELECT DISTINCT - + 94 + + col2 FROM tab1 AS cor0
----
-37
-40
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL - col0 + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL - - col1 + - col2 * col0 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT col2 + col2 + + 35 * 75 FROM tab2
----
2677
2679
2701
query I rowsort
SELECT + 68 + - col0 AS col0 FROM tab0
----
-21
33
44
query I rowsort
SELECT + + col2 + ( col0 ) FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL - ( + col2 ) + col1 AS col0 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT ALL col2 * col2 + + 13 FROM tab1
----
2929
3262
9229
query I rowsort
SELECT ALL + col2 + col1 * + 56 AS col1 FROM tab0
----
4849
5178
5433
query I rowsort
SELECT DISTINCT cor0.col1 + + col2 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - col2 * + col2 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT 27 AS col2 FROM tab2, tab2 AS cor0
----
27
query I rowsort
SELECT ALL - col2 + + 94 AS col2 FROM tab0
----
12
61
93
query I rowsort
SELECT ALL + col0 * - col1 + - col0 FROM tab0
----
-2088
-3430
-8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-4990
SELECT DISTINCT - col0 + + col0 * col0 DIV 3 AS col2 FROM tab1 AS cor0
----
0
1301
2053
skipif mysql # not compatible
query I rowsort label-4990
SELECT DISTINCT - col0 + + col0 * col0 / 3 AS col2 FROM tab1 AS cor0
----
0
1301
2053
query I rowsort
SELECT DISTINCT + ( - col1 ) - col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL ( + ( col1 ) ) * + ( cor0.col1 * cor0.col2 ) FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT + + 36 + - 65 AS col2 FROM tab0 AS cor0
----
-29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 57 col0 FROM tab0 AS cor0
----
57
57
57
query I rowsort
SELECT + col2 + col0 * col1 * - col1 FROM tab0
----
-177471
-329314
-736927
query I rowsort
SELECT ALL col2 * + 18 * + tab1.col0 AS col1 FROM tab1
----
138240
2916
65664
query I rowsort
SELECT col2 * - col0 * + col2 + - col2 FROM tab1
----
-207993
-737376
-8802
query I rowsort
SELECT DISTINCT - col0 - ( cor0.col2 * - cor0.col0 ) AS col1 FROM tab0 AS cor0
----
0
7209
768
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4999
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 * col2 * col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4999
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 * col2 * col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL ( - col2 ) + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL + col1 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + + cor0.col2 * - col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5003
SELECT DISTINCT + cor0.col1 * ( cor0.col0 * CAST( - 91 AS SIGNED ) ) - - col0 FROM tab0 cor0
----
-187800
-308910
-736920
skipif mysql # not compatible
query I rowsort label-5003
SELECT DISTINCT + cor0.col1 * ( cor0.col0 * CAST ( - 91 AS INTEGER ) ) - - col0 FROM tab0 cor0
----
-187800
-308910
-736920
query I rowsort
SELECT 69 * + col0 AS col2 FROM tab1 AS cor0
----
207
4416
5520
onlyif mysql # use DIV operator for integer division
query I rowsort label-5005
SELECT ALL 11 DIV col0 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-5005
SELECT ALL 11 / col0 col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 * - col2 col0 FROM tab0 AS cor0
----
-1230
-15
-495
query I rowsort
SELECT 36 AS col1 FROM tab2 AS cor0
----
36
36
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + ( cor0.col0 ) * + col2 col1 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT ALL cor0.col1 * - col0 + + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT col1 * - col2 + + col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5011
SELECT DISTINCT CAST( NULL AS SIGNED ) / + ( col0 ) col1 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5011
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + ( col0 ) col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - 42 AS col1 FROM tab0 cor0
----
-42
-42
-42
query I rowsort
SELECT ALL + col2 + col2 AS col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT - col0 + 6 AS col0 FROM tab0 cor0
----
-18
-29
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5015
SELECT DISTINCT - 97 * - col1 + 51 DIV + ( col2 ) FROM tab1
----
1261
2522
970
skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT - 97 * - col1 + 51 / + ( col2 ) FROM tab1
----
1261
2522
970
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 * - col0 * - col1 + + col1 col0 FROM tab2
----
106114
1550
359015
query I rowsort
SELECT - + col0 + cor0.col2 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5018
SELECT - col0 + - ( col1 + + col0 * CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5018
SELECT - col0 + - ( col1 + + col0 * CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( - col1 ) + + col2 AS col0 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT 48 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to c0625992cd48bef51317edf43a55d9e4
query I rowsort
SELECT DISTINCT col0 * ( + col0 ) + - cor0.col1 AS col1 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT ALL + col2 * col0 + + col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT + - cor0.col1 * col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - col2 + + col0 * - col0 - col0 AS col1 FROM tab1 cor0
----
-4217
-6576
-66
query I rowsort
SELECT DISTINCT - + col2 - + col0 AS col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT - col0 + - cor0.col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT + col1 + + 5 * col1 AS col0 FROM tab2 AS cor0
----
102
186
354
query I rowsort
SELECT DISTINCT + - col0 - col2 * + col0 FROM tab1 cor0
----
-165
-3712
-7760
query I rowsort
SELECT - col0 + + 89 AS col1 FROM tab0 cor0
----
0
54
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 - ( col0 * ( - col1 ) ) col1 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT ALL + ( + cor0.col2 ) * col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT 96 * + col0 AS col1 FROM tab2 AS cor0
----
672
7488
7584
query I rowsort
SELECT - + 71 + col0 - col1 * - col0 FROM tab2 AS cor0
----
1351
153
4609
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 + col0 * + col1 col1 FROM tab1 AS cor0
----
106
1068
668
query I rowsort
SELECT ALL 56 * - cor0.col1 FROM tab0 AS cor0
----
-4816
-5096
-5432
query I rowsort
SELECT DISTINCT - tab0.col1 + col0 AS col0 FROM tab0
----
-2
-62
query I rowsort
SELECT DISTINCT + 47 FROM tab1 cor0
----
47
query I rowsort
SELECT ALL - - cor0.col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-5040
SELECT DISTINCT - + col0 * col2 + + 48 DIV - 35 col1 FROM tab2 AS cor0
----
-190
-2029
-3003
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT - + col0 * col2 + + 48 / - 35 col1 FROM tab2 AS cor0
----
-190
-2029
-3003
query I rowsort
SELECT col1 * - cor0.col1 + - ( - col0 * col0 ) AS col0 FROM tab0 AS cor0
----
-360
-6820
-8184
query I rowsort
SELECT ALL + ( col1 ) * cor0.col1 - + cor0.col2 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT 67 - - col0 FROM tab2 AS cor0
----
145
146
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 43 - - col2 col2 FROM tab2
----
-1092
-1134
-1596
onlyif mysql # use DIV operator for integer division
query I rowsort label-5045
SELECT + + col0 * - cor0.col0 * col2 + col2 DIV - col1 AS col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
skipif mysql # not compatible
query I rowsort label-5045
SELECT + + col0 * - cor0.col0 * col2 + col2 / - col1 AS col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT - col0 + + col0 * - 76 AS col0 FROM tab1 AS cor0
----
-231
-4928
-6160
query I rowsort
SELECT + + col2 * + col1 - 51 FROM tab2 AS cor0
----
1483
595
786
query I rowsort
SELECT 41 * + 29 * cor0.col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a6c1472cce1585ca74c7ced87e7ded4f
query I rowsort
SELECT + col2 - col1 * col1 AS col2 FROM tab2 AS cor0
----
-251
-3455
-934
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col1 - + 98 col2 FROM tab1 AS cor0
----
-198
-267
-774
query I rowsort
SELECT 54 * - col1 AS col0 FROM tab1 AS cor0
----
-1404
-540
-702
query I rowsort
SELECT + - col0 + + col2 + col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - - col2 * cor0.col2 + - 40 AS col0 FROM tab1 AS cor0
----
2876
3209
9176
query I rowsort
SELECT col2 * - col2 * 6 AS col0 FROM tab1
----
-17496
-19494
-55296
query I rowsort
SELECT + 45 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT DISTINCT - col1 * ( col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + col0 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT cor0.col2 + col1 * - col0 * - 73 FROM tab1 cor0
----
46777
5748
76016
query I rowsort
SELECT ALL + 54 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT + 98 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 6624b1f09c0594f5576803ac29f4499d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col1 col0 FROM tab0 AS cor0
----
-172
-182
-194
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 19a23ac6b759f8988954bf75ba7c431a
query I rowsort
SELECT + col1 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT - + ( - cor0.col1 ) * col2 - col1 * - col2 AS col0 FROM tab0 AS cor0
----
14924
194
5676
query I rowsort
SELECT 20 - - col0 FROM tab1 AS cor0
----
100
23
84
query I rowsort
SELECT - 35 * - col1 FROM tab1 cor0
----
350
455
910
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 * col0 col0 FROM tab2
----
168
1872
1896
query I rowsort
SELECT ALL + 84 FROM tab1
----
84
84
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5069
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 * - 57 FROM tab2 AS cor0
----
-399
-4446
-4503
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5071
SELECT DISTINCT + CAST( ( col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT + CAST ( ( col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL + + 2 + col2 + col2 * col2 AS col1 FROM tab2 AS cor0
----
1484
704
758
query I rowsort
SELECT ALL - 29 + col2 AS col0 FROM tab0
----
-28
4
53
query I rowsort
SELECT DISTINCT 55 * tab0.col1 AS col2 FROM tab0, tab2 AS cor0
----
4730
5005
5335
query I rowsort
SELECT DISTINCT - 70 + tab2.col2 AS col2 FROM tab2
----
-32
-43
-44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5076
SELECT ALL CAST( + col1 AS SIGNED ) + col2 * col0 FROM tab0
----
132
7389
878
skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL CAST ( + col1 AS INTEGER ) + col2 * col0 FROM tab0
----
132
7389
878
query I rowsort
SELECT + ( + 17 ) AS col1 FROM tab1
----
17
17
17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5078
SELECT CAST( NULL AS DECIMAL ) * col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5078
SELECT CAST ( NULL AS REAL ) * col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5079
SELECT + - CAST( col1 AS SIGNED ) - + col1 FROM tab2 AS cor0
----
-118
-34
-62
skipif mysql # not compatible
query I rowsort label-5079
SELECT + - CAST ( col1 AS INTEGER ) - + col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT ALL - - cor0.col0 * + 78 - col1 * - ( col0 ) FROM tab2 cor0
----
10686
7505
763
query I rowsort
SELECT ALL + - col1 + col0 * cor0.col1 FROM tab0 cor0
----
1978
3298
8008
query I rowsort
SELECT - col2 * ( - cor0.col2 ) AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - 32 * + col0 FROM tab2
----
-224
-2496
-2528
query I rowsort
SELECT DISTINCT + 99 * tab2.col0 FROM tab2
----
693
7722
7821
onlyif mysql # use DIV operator for integer division
query I rowsort label-5085
SELECT ALL 73 DIV - 96 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL 73 / - 96 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT ALL + tab1.col1 * + col0 AS col0 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5087
SELECT + col0 DIV + col1 AS col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5087
SELECT + col0 / + col1 AS col1 FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
58
query I rowsort
SELECT + + cor0.col0 * col2 * 78 AS col1 FROM tab1 AS cor0
----
12636
284544
599040
query I rowsort
SELECT cor0.col1 AS col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL - + col0 - col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT ALL - col2 * ( + col2 ) AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-5093
SELECT DISTINCT - - col1 DIV + ( + 11 * col1 + + col0 ) AS col1 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT - - col1 / + ( + 11 * col1 + + col0 ) AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT col1 + cor0.col2 * col0 FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5095
SELECT ALL - col0 * + CAST( - 37 AS SIGNED ) * + cor0.col1 AS col1 FROM tab2 AS cor0
----
170274
49691
8029
skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL - col0 * + CAST ( - 37 AS INTEGER ) * + cor0.col1 AS col1 FROM tab2 AS cor0
----
170274
49691
8029
query I rowsort
SELECT + cor0.col1 * ( - col1 ) * col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT - col2 * ( - col0 ) * col0 AS col1 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT + - col1 + + cor0.col1 * col1 FROM tab0 cor0
----
7310
8190
9312
query I rowsort
SELECT + 49 FROM tab0, tab2 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT col0 * - ( + col2 ) AS col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + col0 * col0 * - col0 FROM tab1 AS cor0
----
-262144
-27
-512000
query I rowsort
SELECT DISTINCT 23 + - col1 FROM tab1 AS cor0
----
-3
10
13
query I rowsort
SELECT ALL - + 52 * + ( col1 ) * col2 AS col0 FROM tab1 AS cor0
----
-29640
-64896
-73008
query I rowsort
SELECT + 18 + - col1 AS col2 FROM tab2 AS cor0
----
-13
-41
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5105
SELECT ALL + col2 + + ( + col1 ) DIV + ( col0 * - col0 ) AS col1 FROM tab1 cor0
----
52
57
96
skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL + col2 + + ( + col1 ) / + ( col0 * - col0 ) AS col1 FROM tab1 cor0
----
52
57
96
query I rowsort
SELECT ALL col1 + + 39 AS col2 FROM tab1 AS cor0
----
49
52
65
query I rowsort
SELECT DISTINCT - col0 * 92 FROM tab2 cor0
----
-644
-7176
-7268
query I rowsort
SELECT - ( + 58 ) FROM tab1, tab1 AS cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0
query I rowsort
SELECT DISTINCT - tab1.col2 * + col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT col2 * + col1 + + col2 * - col1 * ( col1 * - tab0.col2 ) AS col0 FROM tab0
----
55688906
8057082
9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 5 col1 FROM tab2 AS cor0
----
5
5
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-5112
SELECT DISTINCT col1 DIV - cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT col1 / - cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT + - col0 * - col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + - cor0.col1 + col0 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT col1 + col0 * - 78 FROM tab0 AS cor0
----
-1786
-2633
-6851
query I rowsort
SELECT ALL + 4 * col1 - col0 FROM tab0 AS cor0
----
275
320
353
query I rowsort
SELECT DISTINCT 83 * - col0 FROM tab0 AS cor0
----
-1992
-2905
-7387
query I rowsort
SELECT ALL + + col0 + + col2 * col0 AS col2 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-5119
SELECT - 53 DIV + col0 AS col0 FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-5119
SELECT - 53 / + col0 AS col0 FROM tab0 AS cor0
----
-1
-2
0
query I rowsort
SELECT DISTINCT + - col1 + col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT 81 * 46 AS col2 FROM tab2
----
3726
3726
3726
query I rowsort
SELECT - 33 AS col1 FROM tab0
----
-33
-33
-33
query I rowsort
SELECT DISTINCT + ( - ( + col1 ) ) + - col1 AS col2 FROM tab1
----
-20
-26
-52
query I rowsort
SELECT + + 34 * cor0.col0 + cor0.col0 AS col0 FROM tab0 cor0
----
1225
3115
840
query I rowsort
SELECT DISTINCT + + col1 * col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-5126
SELECT DISTINCT col2 + col1 DIV ( + 1 ) + col2 AS col1 FROM tab2
----
111
85
93
skipif mysql # not compatible
query I rowsort label-5126
SELECT DISTINCT col2 + col1 / ( + 1 ) + col2 AS col1 FROM tab2
----
111
85
93
query I rowsort
SELECT cor0.col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT col0 * - col2 + col1 * - 83 FROM tab0 AS cor0
----
-14851
-7930
-8086
query I rowsort
SELECT - ( + 48 ) * cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f416e9d96efa56f116fb4f03992e1dca
query I rowsort
SELECT - ( - col0 ) + + 41 FROM tab1
----
105
121
44
query I rowsort
SELECT cor0.col1 + + col1 + col2 AS col0 FROM tab2 AS cor0
----
144
72
89
query I rowsort
SELECT DISTINCT + + col1 * - col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + + col2 * col1 + col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT + - 18 + col0 FROM tab1 AS cor0
----
-15
46
62
query I rowsort
SELECT - col1 * - col0 * 70 FROM tab1 AS cor0
----
44800
5460
72800
query I rowsort
SELECT + 69 - - col2 FROM tab2 AS cor0
----
107
95
96
query I rowsort
SELECT - + col2 * col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - cor0.col1 + 91 FROM tab0 AS cor0
----
-6
0
5
query I rowsort
SELECT cor0.col0 * + cor0.col1 + - 36 + col1 AS col1 FROM tab2 AS cor0
----
1324
212
4625
query I rowsort
SELECT DISTINCT + col2 * + col1 * + tab1.col1 + 13 * col2 AS col1 FROM tab1
----
17472
37206
6441
query I rowsort
SELECT - + col1 + - 72 + col0 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
1906
3226
7936
query I rowsort
SELECT col2 * col2 + col2 + col0 * col0 AS col0 FROM tab2 AS cor0
----
6786
7723
805
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - ( cor0.col2 ) col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - 72 * + col2 * col0 AS col2 FROM tab0
----
-2520
-525456
-57024
query I rowsort
SELECT ALL - 10 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT + col2 * - 64 AS col1 FROM tab0 cor0
----
-2112
-5248
-64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5148
SELECT CAST( - col2 AS SIGNED ) * - col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-5148
SELECT CAST ( - col2 AS INTEGER ) * - col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col2 ) * - col1 + cor0.col0 col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - cor0.col1 * + col1 + - col0 * col0 FROM tab0 AS cor0
----
-10634
-16202
-7972
onlyif mysql # use DIV operator for integer division
query I rowsort label-5151
SELECT DISTINCT + ( tab0.col1 ) DIV 97 AS col1 FROM tab0, tab1 cor0, tab1 AS cor1
----
0
1
skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT + ( tab0.col1 ) / 97 AS col1 FROM tab0, tab1 cor0, tab1 AS cor1
----
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5152
SELECT - col1 + CAST( 25 AS SIGNED ) FROM tab0
----
-61
-66
-72
skipif mysql # not compatible
query I rowsort label-5152
SELECT - col1 + CAST ( 25 AS INTEGER ) FROM tab0
----
-61
-66
-72
query I rowsort
SELECT DISTINCT - 81 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-81
query I rowsort
SELECT ALL - cor0.col0 * col2 + + cor0.col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT - - col2 * - 61 AS col2 FROM tab1 AS cor0
----
-3294
-3477
-5856
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 25 * - col1 + col0 col2 FROM tab0 AS cor0
----
2174
2364
2460
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) + - col1 col0 FROM tab1 AS cor0
----
-20
-26
-52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5158
SELECT ALL - CAST( NULL AS SIGNED ) + - col0 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL - CAST ( NULL AS INTEGER ) + - col0 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( - 24 ) AS col1 FROM tab1 cor0
----
-24
-24
-24
query I rowsort
SELECT DISTINCT + + 72 + col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
234
3720
7752
query I rowsort
SELECT DISTINCT + 91 FROM tab2, tab2 AS cor0
----
91
query I rowsort
SELECT ALL - - col0 * + col2 + + col0 * 34 * - col0 FROM tab2 AS cor0
----
-1477
-204828
-209192
query I rowsort
SELECT - + col2 * - col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + - col2 * col2 + + col2 AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT DISTINCT + col2 * + col0 - + 29 * + col2 FROM tab1 AS cor0
----
-1404
1995
4896
query I rowsort
SELECT ALL 55 * - col0 AS col1 FROM tab0
----
-1320
-1925
-4895
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 + + col1 * - ( - 97 ) ) col2 FROM tab0
----
8428
8918
9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5168
SELECT ALL CAST( NULL AS SIGNED ) * - tab1.col1 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL CAST ( NULL AS INTEGER ) * - tab1.col1 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab1 cor0, tab1 AS cor1
----
972 values hashing to 635619591835474e6aa6acdff4ab166c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5170
SELECT - CAST( NULL AS SIGNED ) + cor0.col2 col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5170
SELECT - CAST ( NULL AS INTEGER ) + cor0.col2 col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5171
SELECT tab0.col2 + CAST( 13 AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to 668a2742992d94283d4ebb1a66e12e06
skipif mysql # not compatible
query I rowsort label-5171
SELECT tab0.col2 + CAST ( 13 AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to 668a2742992d94283d4ebb1a66e12e06
onlyif mysql # use DIV operator for integer division
query I rowsort label-5172
SELECT ALL ( tab0.col2 ) - col0 DIV - tab0.col2 col2 FROM tab0
----
33
36
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL ( tab0.col2 ) - col0 / - tab0.col2 col2 FROM tab0
----
33
36
83
query I rowsort
SELECT - - 65 AS col2 FROM tab0 AS cor0
----
65
65
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-5174
SELECT - cor0.col2 * col0 + ( - col0 ) * col1 DIV col1 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760
skipif mysql # not compatible
query I rowsort label-5174
SELECT - cor0.col2 * col0 + ( - col0 ) * col1 / col1 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-5175
SELECT col0 DIV 16 col0 FROM tab0 AS cor0
----
1
2
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5175
SELECT col0 / 16 col0 FROM tab0 AS cor0
----
1
2
5
query I rowsort
SELECT - cor0.col2 * ( + 70 * col0 ) + - cor0.col2 + col2 FROM tab2 AS cor0
----
-13230
-141960
-210140
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5177
SELECT - col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5177
SELECT - col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT tab1.col0 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
3
64
80
query I rowsort
SELECT ALL cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + col2 col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT + cor0.col0 * col0 * 78 FROM tab2 cor0
----
3822
474552
486798
query I rowsort
SELECT DISTINCT col0 * 79 FROM tab0 cor0
----
1896
2765
7031
query I rowsort
SELECT DISTINCT + col2 * - ( col2 * col1 ) FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT ALL + cor0.col2 * 61 * col1 AS col2 FROM tab2 AS cor0
----
39406
51057
93574
query I rowsort
SELECT cor0.col2 * + col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col2 FROM tab2 cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab0 cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5189
SELECT ALL col2 * ( 45 ) + + col0 DIV 97 FROM tab1 AS cor0
----
2430
2565
4320
skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL col2 * ( 45 ) + + col0 / 97 FROM tab1 AS cor0
----
2430
2565
4320
query I rowsort
SELECT DISTINCT - col2 + - 12 FROM tab0 AS cor0
----
-13
-45
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-5191
SELECT + col2 DIV ( col1 ) AS col2 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-5191
SELECT + col2 / ( col1 ) AS col2 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT ALL col2 + 62 * + col2 FROM tab1 AS cor0
----
3402
3591
6048
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * ( + col2 ) + - col1 + + col2 col0 FROM tab1 AS cor0
----
-2888
-3202
-9133
query I rowsort
SELECT DISTINCT col2 * 28 + - col2 * - col0 FROM tab2 AS cor0
----
2756
4066
945
query I rowsort
SELECT DISTINCT + col1 + col1 AS col0 FROM tab0 cor0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 6a726f8493b62c5d4e1dd657007160c3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5197
SELECT ALL + CAST( - 38 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
-1254
-3116
-38
skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL + CAST ( - 38 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
-1254
-3116
-38
query I rowsort
SELECT DISTINCT 16 FROM tab1, tab1 AS cor0
----
16
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 17 col2 FROM tab2 AS cor0
----
43
44
55
query I rowsort
SELECT DISTINCT + col2 * 19 AS col1 FROM tab2 AS cor0
----
494
513
722
query I rowsort
SELECT 86 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
onlyif mysql # use DIV operator for integer division
query I rowsort label-5202
SELECT ( col2 ) DIV + col1 AS col2 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-5202
SELECT ( col2 ) / + col1 AS col2 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT + col1 FROM tab1 WHERE NULL >= col0
----
query I rowsort
SELECT DISTINCT 43 + col1 FROM tab2 cor0
----
102
60
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col0 col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + - 5 * col1 * - ( - col0 ) FROM tab1 AS cor0
----
-3200
-390
-5200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col2 col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT + - 15 * col0 + - 95 * - 92 FROM tab2 AS cor0
----
7555
7570
8635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - tab0.col0 col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL + col2 * col2 AS col1 FROM tab2
----
1444
676
729
query I rowsort
SELECT DISTINCT + tab1.col2 FROM tab1 WHERE col1 + col2 IN ( col2 - col1 )
----
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 tab2.col1 * + col0 + - col0 FROM tab2
----
1264
210
4524
query I rowsort
SELECT DISTINCT + col1 * + col2 + - col2 - + tab2.col0 FROM tab2 WHERE col0 BETWEEN ( + col1 * col0 * - col1 + + col1 ) AND NULL
----
query I rowsort
SELECT DISTINCT tab1.col0 + + col1 AS col0 FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-5216
SELECT DISTINCT col2 * - tab2.col1 + tab2.col0 DIV col1 FROM tab2
----
-1533
-642
-837
skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT col2 * - tab2.col1 + tab2.col0 / col1 FROM tab2
----
-1533
-642
-837
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 NOT BETWEEN ( - col0 ) AND + col2 + col0 + + col1 / col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
onlyif mysql # use DIV operator for integer division
query I rowsort label-5218
SELECT col2 * col2 + + col2 DIV - col0 FROM tab1
----
2898
3249
9215
skipif mysql # not compatible
query I rowsort label-5218
SELECT col2 * col2 + + col2 / - col0 FROM tab1
----
2898
3249
9215
query III rowsort
SELECT * FROM tab2 WHERE col2 IN ( col0 )
----
query I rowsort
SELECT 99 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
query I rowsort
SELECT - - 53 AS col1 FROM tab0 AS cor0
----
53
53
53
query I rowsort
SELECT + col0 * - col2 + col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT + 51 AS col1 FROM tab0
----
51
51
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-5225
SELECT + col1 DIV - col1 + - 47 col2 FROM tab0
----
-48
-48
-48
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5225
SELECT + col1 / - col1 + - 47 col2 FROM tab0
----
-48
-48
-48
query I rowsort
SELECT DISTINCT + + cor0.col0 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT col1 + + col1 * 96 FROM tab0 AS cor0
----
8342
8827
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-5228
SELECT + col0 + col2 DIV + cor0.col0 FROM tab0 AS cor0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-5228
SELECT + col0 + col2 / + cor0.col0 FROM tab0 AS cor0
----
25
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5229
SELECT DISTINCT + + col1 DIV + col1 AS col0 FROM tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT + + col1 / + col1 AS col0 FROM tab0 cor0
----
1
query I rowsort
SELECT DISTINCT - tab0.col0 * + 37 - + cor0.col2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 116c32f73e5cb0947daa17274d602846
query I rowsort
SELECT ALL - cor0.col0 + + 57 AS col0 FROM tab1 AS cor0
----
-23
-7
54
query I rowsort
SELECT cor0.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 cor1, tab2 cor2
----
972 values hashing to 2507aa9f48c3db94de9fec065edf3731
query I rowsort
SELECT - - col0 * + 25 AS col1 FROM tab0 AS cor0
----
2225
600
875
query I rowsort
SELECT ALL - + col2 * - col1 + - col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to adaea38eae032c1639715f21831dd376
query I rowsort
SELECT - + 73 * + 24 + col0 + - 6 FROM tab1 AS cor0
----
-1678
-1694
-1755
query I rowsort
SELECT 52 + + 77 + - col1 FROM tab2
----
112
70
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - ( + col1 ) ) * - tab0.col2 * tab0.col2 col2 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT col1 * - col1 * + col2 AS col1 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT DISTINCT ( + col2 ) * col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT - - col1 * - col1 - - cor0.col0 AS col2 FROM tab2 AS cor0
----
-210
-3403
-954
onlyif mysql # use DIV operator for integer division
query I rowsort label-5243
SELECT + col0 DIV col0 + col2 DIV 54 AS col1 FROM tab0 AS cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-5243
SELECT + col0 / col0 + col2 / 54 AS col1 FROM tab0 AS cor0
----
1
1
2
query I rowsort
SELECT DISTINCT col0 * 7 FROM tab2 AS cor0
----
49
546
553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5245
SELECT ALL CAST( 6 AS SIGNED ) + col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL CAST ( 6 AS INTEGER ) + col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + ( - ( col2 ) ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + + 17 + col1 AS col2 FROM tab2 AS cor0
----
34
48
76
query I rowsort
SELECT ALL ( cor0.col0 ) FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5249
SELECT DISTINCT + + col1 DIV col1 + col0 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT + + col1 / col1 + col0 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT DISTINCT + 56 + - col2 FROM tab0 AS cor0
----
-26
23
55
query I rowsort
SELECT ALL - + col1 * - col1 - - col0 * 68 FROM tab1 AS cor0
----
4452
5609
880
query I rowsort
SELECT ALL - + col1 * - col2 * col0 - + col1 FROM tab1 cor0
----
36470
4186
99827
query I rowsort
SELECT - - col2 * - col0 + col2 FROM tab0 AS cor0
----
-34
-7216
-759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 col0 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5255
SELECT DISTINCT 1 * + col1 * CAST( col2 AS SIGNED ) col1 FROM tab0 cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT 1 * + col1 * CAST ( col2 AS INTEGER ) col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - cor0.col0 + - col2 + 88 FROM tab2 AS cor0
----
-16
-29
54
query I rowsort
SELECT DISTINCT - col1 * + col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + + 3 + - col2 * col0 AS col0 FROM tab0 AS cor0
----
-32
-7295
-789
onlyif mysql # use DIV operator for integer division
query I rowsort label-5259
SELECT ALL - - col1 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL - - col1 / - col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 * col0 + col2 AS col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT - ( + col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + cor0.col0 + - col2 * + 99 FROM tab2 AS cor0
----
-2496
-2666
-3683
query I rowsort
SELECT 16 + col1 FROM tab1 AS cor0
----
26
29
42
query I rowsort
SELECT col0 - - tab2.col1 * col1 AS col1 FROM tab2
----
3559
368
968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 66 + - tab2.col2 ) * tab2.col2 col1 FROM tab2
----
1040
1053
1064
query I rowsort
SELECT DISTINCT + 6 FROM tab0, tab2, tab1 cor0
----
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5267
SELECT col1 + col0 * col2 * col2 - col2 DIV col2 AS col0 FROM tab0
----
131
26221
598526
skipif mysql # not compatible
query I rowsort label-5267
SELECT col1 + col0 * col2 * col2 - col2 / col2 AS col0 FROM tab0
----
131
26221
598526
query I rowsort
SELECT ( 41 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5269
SELECT + col1 * CAST( - col2 + col2 AS SIGNED ) col2 FROM tab2 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5269
SELECT + col1 * CAST ( - col2 + col2 AS INTEGER ) col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - + col2 * 91 FROM tab1 AS cor0
----
-4914
-5187
-8736
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5271
SELECT col0 * + CAST( 85 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
16065
172380
255170
skipif mysql # not compatible
query I rowsort label-5271
SELECT col0 * + CAST ( 85 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
16065
172380
255170
query I rowsort
SELECT DISTINCT - ( + cor1.col1 + + 29 ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-39
-42
-55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5273
SELECT + ( col2 ) + + cor0.col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5273
SELECT + ( col2 ) + + cor0.col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 + + col1 FROM tab0 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5275
SELECT + - 57 DIV - col0 FROM tab1 AS cor0
----
0
0
19
skipif mysql # not compatible
query I rowsort label-5275
SELECT + - 57 / - col0 FROM tab1 AS cor0
----
0
0
19
onlyif mysql # use DIV operator for integer division
query I rowsort label-5276
SELECT ALL col0 DIV - tab2.col1 + 74 + + col0 DIV + 97 FROM tab2
----
70
73
74
skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL col0 / - tab2.col1 + 74 + + col0 / + 97 FROM tab2
----
70
73
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-5277
SELECT col0 + + col2 DIV + col0 AS col2 FROM tab0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-5277
SELECT col0 + + col2 / + col0 AS col2 FROM tab0
----
25
35
89
query I rowsort
SELECT ALL tab1.col2 + - 31 AS col1 FROM tab1
----
23
26
65
query I rowsort
SELECT ALL col1 + - 78 AS col1 FROM tab2
----
-19
-47
-61
query I rowsort
SELECT - cor0.col1 * - 9 FROM tab0, tab0 AS cor0
----
9 values hashing to 4ab1d35300337638ecfec8bf5e027487
query I rowsort
SELECT - col1 * col1 * col2 + - col1 + - 64 FROM tab2
----
-11063
-26042
-90629
query I rowsort
SELECT - 1 * col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT col0 * + 5 FROM tab2 AS cor0
----
35
390
395
onlyif mysql # use DIV operator for integer division
query I rowsort label-5284
SELECT + col1 DIV + ( col1 ) FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5284
SELECT + col1 / + ( col1 ) FROM tab0
----
1
1
1
query I rowsort
SELECT - col1 + 29 FROM tab0
----
-57
-62
-68
onlyif mysql # use DIV operator for integer division
query I rowsort label-5286
SELECT ALL + col2 DIV col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL + col2 / col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT + 56 * + col1 AS col1 FROM tab1 AS cor0
----
1456
560
728
query I rowsort
SELECT ALL + - col0 + + col2 AS col1 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT ALL - 9 * col2 + - col2 FROM tab2 cor0
----
-260
-270
-380
onlyif mysql # use DIV operator for integer division
query I rowsort label-5290
SELECT DISTINCT + 17 DIV col2 AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5290
SELECT DISTINCT + 17 / col2 AS col2 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT 69 * - col1 * ( + col1 ) FROM tab1 AS cor0
----
-11661
-46644
-6900
query I rowsort
SELECT + col0 + - cor0.col0 * + ( - 49 ) AS col0 FROM tab1 AS cor0
----
150
3200
4000
query I rowsort
SELECT - + 88 + col1 FROM tab1 AS cor0
----
-62
-75
-78
query I rowsort
SELECT - col1 * + col1 * col1 FROM tab0 cor0
----
-636056
-753571
-912673
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 * - col0 col1 FROM tab0 AS cor0
----
-1226
-609
-8003
query I rowsort
SELECT + + 18 * - col2 + col2 * col0 AS col0 FROM tab1 AS cor0
----
-810
2622
5952
query I rowsort
SELECT + - col0 + + col1 * + col1 FROM tab2 AS cor0
----
210
3403
954
onlyif mysql # use DIV operator for integer division
query I rowsort label-5299
SELECT - col1 DIV 51 AS col2 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5299
SELECT - col1 / 51 AS col2 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT cor0.col2 * + col2 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-5301
SELECT ALL + + col2 + ( + 22 ) DIV cor0.col1 FROM tab2 AS cor0
----
26
27
39
skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL + + col2 + ( + 22 ) / cor0.col1 FROM tab2 AS cor0
----
26
27
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-5302
SELECT - - col1 DIV + 96 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5302
SELECT - - col1 / + 96 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 38 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
query I rowsort
SELECT 2 AS col2 FROM tab0
----
2
2
2
query I rowsort
SELECT ALL + ( - tab0.col0 * tab0.col1 ) FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL 61 FROM tab2, tab2 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT - cor0.col2 * ( - col2 ) FROM tab1 AS cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 * cor0.col2 col0 FROM tab1, tab1 cor0 CROSS JOIN tab0
----
27 values hashing to 8951caa3ed9ea224feb51dd9a58efd67
query I rowsort
SELECT col1 * - 21 FROM tab0
----
-1806
-1911
-2037
query I rowsort
SELECT 39 * ( - col0 ) * + col1 AS col1 FROM tab1
----
-24960
-3042
-40560
query I rowsort
SELECT - 5 * - col2 FROM tab2 AS cor0
----
130
135
190
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2, tab0 cor1
----
3645 values hashing to 58b53d9f2c5d79e6fe94b4a97272440e
query I rowsort
SELECT + 0 * col0 + + col0 AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + col0 + - col2 * - col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL 42 AS col1 FROM tab0 AS cor0
----
42
42
42
query I rowsort
SELECT ALL cor0.col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT 61 AS col0 FROM tab0
----
61
query I rowsort
SELECT tab1.col0 + 86 + cor1.col1 AS col2 FROM tab1, tab0, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to 35938cf35379386f2a5453c73a3daa33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 col0 FROM tab0
----
5
5
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 + col1 col0 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT - + ( col0 ) AS col0 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT + 44 AS col2 FROM tab1 AS cor0
----
44
44
44
query I rowsort
SELECT - col0 * ( - col1 * - ( col0 ) ) FROM tab2 cor0
----
-106097
-1519
-358956
query I rowsort
SELECT + col1 * col0 + - col2 AS col1 FROM tab2 cor0
----
1305
190
4576
query I rowsort
SELECT col1 - - col2 * - col2 FROM tab2
----
-1427
-617
-698
query I rowsort
SELECT + ( 10 ) + col2 AS col2 FROM tab1 AS cor0
----
106
64
67
query I rowsort
SELECT DISTINCT ( + cor0.col2 ) + col2 * 54 FROM tab2 AS cor0
----
1430
1485
2090
query I rowsort
SELECT ALL 61 AS col1 FROM tab1 cor0
----
61
61
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-5329
SELECT + - col1 DIV 77 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5329
SELECT + - col1 / 77 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col0 * col2 + col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT col0 * + 83 + + col2 * - ( cor0.col2 ) + + col2 * col0 FROM tab1 AS cor0
----
-2505
5104
5711
query I rowsort
SELECT + + 99 + col0 FROM tab1 AS cor0
----
102
163
179
query I rowsort
SELECT ALL - 49 + 44 AS col1 FROM tab2 AS cor0
----
-5
-5
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-5334
SELECT col0 DIV col1 col0 FROM tab2 AS cor0
----
0
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5334
SELECT col0 / col1 col0 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT + cor0.col2 * cor0.col1 + col2 FROM tab2 cor0
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 * - cor0.col2 col0 FROM tab1 cor0
----
-2754
-2907
-4896
query I rowsort
SELECT ALL - col2 - - col2 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 + col0 * ( col0 ) FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT ALL 19 + col1 * - ( cor0.col0 ) + col0 * 50 FROM tab0 AS cor0
----
-1626
-3630
-845
query I rowsort
SELECT 18 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595
query I rowsort
SELECT - 74 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28
query I rowsort
SELECT ALL 69 * + cor0.col2 AS col0 FROM tab0 cor0
----
2277
5658
69
query I rowsort
SELECT ALL - + col1 + col1 * 56 * + col1 FROM tab0 AS cor0
----
414090
463645
526807
onlyif mysql # use DIV operator for integer division
query I rowsort label-5344
SELECT DISTINCT - CAST( col2 AS SIGNED ) DIV col2 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT - CAST ( col2 AS INTEGER ) / col2 FROM tab0
----
-1
query I rowsort
SELECT DISTINCT + 4 AS col1 FROM tab2 AS cor0
----
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5346
SELECT DISTINCT - CAST( col0 AS SIGNED ) * col2 FROM tab0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * col2 FROM tab0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5347
SELECT + - col1 + CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort label-5347
SELECT + - col1 + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT + - col1 * cor0.col1 + cor0.col2 - - col0 AS col2 FROM tab1 AS cor0
----
-619
21
7
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 + + col1 * col0 * ( - col2 ) AS col2 FROM tab1 AS cor0
----
-32384
-4203
-93440
query I rowsort
SELECT col2 * - ( col0 ) FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT col2 * 80 FROM tab1
----
4320
4560
7680
query I rowsort
SELECT - 89 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e
query I rowsort
SELECT ( col2 ) * + col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT + + col2 * + cor0.col0 * col0 + 60 AS col0 FROM tab1 AS cor0
----
233532
546
614460
query I rowsort
SELECT DISTINCT cor0.col2 * + col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + col2 * - 69 FROM tab0
----
-2277
-5658
-69
query I rowsort
SELECT ALL + tab1.col2 * + col2 + 16 + col2 * + ( - col0 ) AS col0 FROM tab1
----
-383
1552
2770
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col1 + - col0 col0 FROM tab1
----
-164
-249
-679
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) * col1 col1 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5360
SELECT DISTINCT CAST( NULL AS SIGNED ) + + ( + col0 ) * + cor0.col0 col2 FROM tab1 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( + col0 ) * + cor0.col0 col2 FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
3
64
80
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab1 cor2
----
972 values hashing to 980274175fafec015a83080672486a9a
query I rowsort
SELECT + tab2.col1 + - ( - 54 ) FROM tab2
----
113
71
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-5364
SELECT ALL 36 DIV 26 AS col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL 36 / 26 AS col1 FROM tab0
----
1
1
1
query I rowsort
SELECT 96 * 3 AS col2 FROM tab1
----
288
288
288
query I rowsort
SELECT - col0 + col2 * - tab0.col0 AS col0 FROM tab0
----
-70
-7387
-816
query I rowsort
SELECT ALL + 39 FROM tab2, tab0 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + ( - col0 * + col2 ) col1 FROM tab2 AS cor0
----
-2087
-220
-3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-5369
SELECT ALL - - col1 * col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL - - col1 * col0 / + col1 AS col0 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * col2 + col1 col0 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL - col2 - - col1 * - col2 * - col2 FROM tab1 AS cor0
----
119712
32433
75762
query I rowsort
SELECT col0 * - 61 AS col1 FROM tab1
----
-183
-3904
-4880
query I rowsort
SELECT 70 * ( col0 ) + + col0 FROM tab0 cor0
----
1704
2485
6319
query I rowsort
SELECT DISTINCT + col1 + 3 * - col2 FROM tab2 AS cor0
----
-19
-50
-97
query I rowsort
SELECT + ( col1 ) - + 25 AS col2 FROM tab2
----
-8
34
6
query I rowsort
SELECT DISTINCT - 97 FROM tab1
----
-97
query I rowsort
SELECT ALL 37 * - col0 AS col1 FROM tab0
----
-1295
-3293
-888
query I rowsort
SELECT 35 * - col1 AS col1 FROM tab2 AS cor0
----
-1085
-2065
-595
query I rowsort
SELECT - + col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT + 32 + + col2 * 51 * + col2 FROM tab0 AS cor0
----
342956
55571
83
query I rowsort
SELECT ALL cor1.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT tab1.col1 * - col1 AS col0 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT DISTINCT + col0 + ( col0 ) AS col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - cor0.col1 * + col0 + - col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT ALL + col1 + - 47 FROM tab0 AS cor0
----
39
44
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col1 + 94 col0 FROM tab2 AS cor0
----
-1440
-552
-743
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + - 21 col1 FROM tab2 AS cor0
----
-4
10
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 + - col1 col0 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT col0 + - tab0.col0 AS col2 FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5390
SELECT ALL col1 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL col1 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5391
SELECT ALL - col0 DIV ( + col1 ) AS col1 FROM tab2 cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL - col0 / ( + col1 ) AS col1 FROM tab2 cor0
----
-1
-4
0
query I rowsort
SELECT DISTINCT + col1 + - ( - ( col2 ) ) + 64 FROM tab2 AS cor0
----
119
122
149
query I rowsort
SELECT ALL + + col1 + col1 - + ( col0 ) AS col2 FROM tab2 AS cor0
----
-45
40
55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5394
SELECT + + col2 - - CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5394
SELECT + + col2 - - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + col2 + - 51 - + ( col2 * - 0 + + col0 ) FROM tab0 AS cor0
----
-42
-58
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5397
SELECT DISTINCT + + col1 * - CAST( NULL AS DECIMAL ) + - 79 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT + + col1 * - CAST ( NULL AS REAL ) + - 79 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + - col0 + - cor0.col2 * 68 AS col2 FROM tab0 cor0
----
-103
-2268
-5665
query I rowsort
SELECT col0 * 5 - col2 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
2931
3569
9616
query I rowsort
SELECT - col0 + ( 54 ) AS col1 FROM tab0 AS cor0
----
-35
19
30
query I rowsort
SELECT DISTINCT ( - col1 + - col0 ) AS col2 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT ALL + 17 AS col2 FROM tab2
----
17
17
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col0 ) col1 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5404
SELECT - - col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-5404
SELECT - - col1 / - col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT 66 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
onlyif mysql # use DIV operator for integer division
query I rowsort label-5406
SELECT 60 DIV + cor0.col0 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 833b749ae5e53c39fb5c10fe39c8013c
skipif mysql # not compatible
query I rowsort label-5406
SELECT 60 / + cor0.col0 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 833b749ae5e53c39fb5c10fe39c8013c
query I rowsort
SELECT - + col0 + 13 AS col2 FROM tab0 AS cor0
----
-11
-22
-76
query I rowsort
SELECT - col0 * + col0 + cor0.col2 * + col0 AS col1 FROM tab1 AS cor0
----
-448
1280
153
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + + ( col0 ) col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT col0 + + col1 * - cor0.col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT - + col1 * ( - ( col1 ) ) - 56 * 30 FROM tab0 AS cor0
----
5716
6601
7729
query I rowsort
SELECT - + ( col1 ) * col1 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5413
SELECT + CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-5413
SELECT + CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5414
SELECT ALL + cor0.col2 - - col1 DIV - col0 FROM tab2 cor0
----
23
26
38
skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL + cor0.col2 - - col1 / - col0 FROM tab2 cor0
----
23
26
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5415
SELECT DISTINCT - ( + cor0.col1 ) * col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT - ( + cor0.col1 ) * col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5416
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5416
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - col0 * col2 + + col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT + - 41 AS col1 FROM tab1 AS cor0
----
-41
-41
-41
query I rowsort
SELECT col2 * + 32 + - col2 * cor0.col1 FROM tab0 AS cor0
----
-1782
-4838
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-5420
SELECT tab1.col2 - + 26 DIV - col1 FROM tab1
----
55
59
98
skipif mysql # not compatible
query I rowsort label-5420
SELECT tab1.col2 - + 26 / - col1 FROM tab1
----
55
59
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5421
SELECT col0 * - col1 DIV + col1 - 42 FROM tab0
----
-131
-66
-77
skipif mysql # not compatible
query I rowsort label-5421
SELECT col0 * - col1 / + col1 - 42 FROM tab0
----
-131
-66
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
10
13
26
query I rowsort
SELECT ALL + ( + col2 ) FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT - cor0.col2 + + col0 * col0 FROM tab2 cor0
----
22
6058
6203
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5425
SELECT CAST( col0 AS SIGNED ) + + col1 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-5425
SELECT CAST ( col0 AS INTEGER ) + + col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + - col0 - - col2 AS col0 FROM tab1 AS cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 col1 FROM tab0 AS cor0
----
15
15
15
query I rowsort
SELECT ALL - 16 AS col1 FROM tab2 AS cor0
----
-16
-16
-16
query I rowsort
SELECT col2 * + cor0.col1 * col2 + - 71 FROM tab0 AS cor0
----
26
611813
93583
query I rowsort
SELECT + 84 + cor0.col1 FROM tab0 AS cor0
----
170
175
181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 + 55 col2 FROM tab0 AS cor0
----
152
2893
7517
query I rowsort
SELECT + col0 * col1 + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL - - col1 * col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT ( - col0 + + col0 ) * col0 FROM tab1
----
0
query I rowsort
SELECT tab2.col0 AS col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT 75 AS col2 FROM tab1
----
75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5437
SELECT + CAST( NULL AS SIGNED ) * + tab0.col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5437
SELECT + CAST ( NULL AS INTEGER ) * + tab0.col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 9 * col1 AS col2 FROM tab2
----
153
279
531
query I rowsort
SELECT - ( - 13 ) FROM tab0
----
13
13
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-5440
SELECT ALL - 75 DIV cor0.col1 - 48 * col2 FROM tab0 cor0
----
-1584
-3936
-48
skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL - 75 / cor0.col1 - 48 * col2 FROM tab0 cor0
----
-1584
-3936
-48
query I rowsort
SELECT DISTINCT - 48 + col2 FROM tab0 AS cor0
----
-15
-47
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5442
SELECT + CAST( + col1 + col1 AS SIGNED ) FROM tab2
----
118
34
62
skipif mysql # not compatible
query I rowsort label-5442
SELECT + CAST ( + col1 + col1 AS INTEGER ) FROM tab2
----
118
34
62
query I rowsort
SELECT - ( col0 + - col2 ) FROM tab2
----
-41
-52
20
query I rowsort
SELECT + col0 - + 17 AS col2 FROM tab1 AS cor0
----
-14
47
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5445
SELECT + - col2 + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-20
41
52
skipif mysql # not compatible
query I rowsort label-5445
SELECT + - col2 + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT cor0.col0 * col1 + - cor0.col0 * col2 * - cor0.col1 FROM tab2 AS cor0
----
124254
52377
6076
query I rowsort
SELECT + 80 FROM tab2
----
80
80
80
query I rowsort
SELECT col0 * 21 + col1 FROM tab1 AS cor0
----
1354
1693
89
query I rowsort
SELECT col1 * 91 FROM tab2 AS cor0
----
1547
2821
5369
query I rowsort
SELECT + - cor0.col2 + 67 * col1 FROM tab0 AS cor0
----
5729
6015
6498
query I rowsort
SELECT ALL - + col0 + + 12 AS col0 FROM tab2 AS cor0
----
-66
-67
5
query I rowsort
SELECT ALL + col2 + + 78 AS col0 FROM tab2 AS cor0
----
104
105
116
onlyif mysql # use DIV operator for integer division
query I rowsort label-5453
SELECT DISTINCT - col1 + col2 * col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
-171
-95
-97
skipif mysql # not compatible
query I rowsort label-5453
SELECT DISTINCT - col1 + col2 * col0 / - col1 AS col0 FROM tab0 AS cor0
----
-171
-95
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 * - col2 * + col1 col1 FROM tab2 AS cor0
----
35530
46035
84370
query I rowsort
SELECT DISTINCT col2 * 73 FROM tab1
----
3942
4161
7008
query I rowsort
SELECT col2 * - col2 * + ( + col2 + + col0 ) FROM tab2
----
-168948
-24786
-70304
query I rowsort
SELECT + cor0.col2 - - col2 AS col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT + 31 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
query I rowsort
SELECT DISTINCT ( - col1 ) + col2 AS col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT 4 * + col1 + - col2 FROM tab1
----
-17
-44
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-5461
SELECT ALL - cor0.col2 - + 84 DIV + 62 FROM tab1 AS cor0
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL - cor0.col2 - + 84 / + 62 FROM tab1 AS cor0
----
-55
-58
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - ( + col1 ) col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col2 + col0 * + 47 AS col1 FROM tab1 AS cor0
----
195
3065
3856
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5464
SELECT col2 / + CAST( NULL AS SIGNED ) + 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-5464
SELECT col2 / + CAST ( NULL AS INTEGER ) + col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + col2 * - 72 AS col0 FROM tab1 cor0
----
-3942
-4161
-7008
query I rowsort
SELECT - tab1.col2 * - col0 + tab1.col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT col1 * col2 - col0 * + col1 * col2 FROM tab2
----
-118118
-5022
-50388
query I rowsort
SELECT ALL tab2.col2 + col1 * ( - col1 ) AS col2 FROM tab2
----
-251
-3455
-934
query I rowsort
SELECT + col1 * + tab2.col2 + + 11 - 68 * col2 FROM tab2
----
-1927
-223
-988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 + 26 col0 FROM tab2
----
1470
702
755
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5471
SELECT ALL 83 + col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL 83 + col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 10 * + col2 + + tab0.col2 FROM tab0
----
11
363
902
query I rowsort
SELECT ALL + col0 * + col0 + 0 * cor0.col1 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-5474
SELECT + col2 DIV + 76 AS col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5474
SELECT + col2 / + 76 AS col2 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5475
SELECT col0 * 61 DIV cor0.col1 FROM tab2 AS cor0
----
13
283
80
skipif mysql # not compatible
query I rowsort label-5475
SELECT col0 * 61 / cor0.col1 FROM tab2 AS cor0
----
13
283
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5476
SELECT ALL col2 DIV + ( + cor0.col0 * - col1 ) AS col0 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL col2 / + ( + cor0.col0 * - col1 ) AS col0 FROM tab0 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5477
SELECT + col1 + CAST( NULL AS SIGNED ) * + 6 / col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5477
SELECT + col1 + CAST ( NULL AS INTEGER ) * + 6 / col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col2 + 60 * col0 AS col0 FROM tab2 cor0
----
393
4654
4702
query I rowsort
SELECT + col2 * + ( + col0 ) + col0 * - col2 * col2 FROM tab1 AS cor0
----
-204288
-729600
-8586
query I rowsort
SELECT DISTINCT cor0.col0 + + 25 AS col1 FROM tab1 AS cor0
----
105
28
89
query I rowsort
SELECT ALL col2 * + 92 AS col1 FROM tab0 AS cor0
----
3036
7544
92
query I rowsort
SELECT DISTINCT - col2 * 72 + - 23 AS col0 FROM tab1 AS cor0
----
-3911
-4127
-6935
query I rowsort
SELECT DISTINCT - cor0.col2 + - col1 FROM tab2 cor0
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-5484
SELECT ALL + + col1 DIV col0 + - col1 FROM tab2 AS cor0
----
-17
-27
-59
skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL + + col1 / col0 + - col1 FROM tab2 AS cor0
----
-17
-27
-59
query I rowsort
SELECT ALL - col2 * + col2 + - col2 + col1 * col2 FROM tab1 AS cor0
----
-1566
-2736
-8064
query I rowsort
SELECT ALL - col1 * + 27 AS col1 FROM tab0
----
-2322
-2457
-2619
onlyif mysql # use DIV operator for integer division
query I rowsort label-5487
SELECT DISTINCT - col0 - tab0.col0 DIV col0 AS col0 FROM tab0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT - col0 - tab0.col0 / col0 AS col0 FROM tab0
----
-25
-36
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9
query I rowsort
SELECT ALL - - cor0.col2 * col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + 32 * - 75 FROM tab1 AS cor0
----
-2400
-2400
-2400
query I rowsort
SELECT ( col1 ) * - col0 * col2 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT col1 * + ( + col2 ) AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - ( + col0 ) * col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 * cor0.col2 * + col2 col2 FROM tab1 AS cor0
----
125388
139707
396288
query I rowsort
SELECT col0 + + cor0.col0 FROM tab0 cor0
----
178
48
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5496
SELECT + - CAST( - col0 AS SIGNED ) + cor0.col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1190
-552
-7832
skipif mysql # not compatible
query I rowsort label-5496
SELECT + - CAST ( - col0 AS INTEGER ) + cor0.col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1190
-552
-7832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 + + cor0.col0 col1 FROM tab0 AS cor0
----
-16
-27
38
query I rowsort
SELECT ALL - col1 * col2 + ( + col2 ) AS col0 FROM tab0 cor0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5499
SELECT ALL + ( col2 ) + + col1 DIV - 31 FROM tab2 AS cor0
----
25
26
38
skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL + ( col2 ) + + col1 / - 31 FROM tab2 AS cor0
----
25
26
38
query I rowsort
SELECT DISTINCT - cor2.col1 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
-17
-31
-59
query I rowsort
SELECT ALL - col2 - col1 * col1 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT DISTINCT col0 * - col0 + - 63 AS col2 FROM tab1 AS cor0
----
-4159
-6463
-72
query I rowsort
SELECT - 65 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57
query I rowsort
SELECT + 17 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT ALL + col1 * col0 * - col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT - 62 AS col2 FROM tab0 AS cor0
----
-62
-62
-62
query I rowsort
SELECT DISTINCT - cor0.col2 + col0 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT - col2 + cor0.col1 - col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col1 * 10 col0 FROM tab2 AS cor0
----
-13430
-2170
-46020
query I rowsort
SELECT - + 73 * + col0 + - col1 * 57 FROM tab0 AS cor0
----
-11684
-6654
-8084
query I rowsort
SELECT DISTINCT + 93 AS col0 FROM tab0 AS cor0
----
93
query I rowsort
SELECT + cor0.col0 * cor0.col0 * col0 FROM tab2 cor0
----
343
474552
493039
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT + - 95 AS col0 FROM tab2 AS cor0
----
-95
-95
-95
query I rowsort
SELECT DISTINCT col2 + col1 * - 95 AS col0 FROM tab0 AS cor0
----
-8137
-8563
-9214
query I rowsort
SELECT + col2 * - col0 * 26 FROM tab1 AS cor0
----
-199680
-4212
-94848
query I rowsort
SELECT 70 * + col2 AS col0 FROM tab2 AS cor0
----
1820
1890
2660
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 77 * - col2 * col1 AS col1 FROM tab0 AS cor0
----
-218526
-574574
-7469
query I rowsort
SELECT + 56 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT + col0 + + col0 * - ( + col0 ) * - col0 AS col1 FROM tab2
----
350
474630
493118
query I rowsort
SELECT ALL + tab2.col2 * col0 + + 24 AS col2 FROM tab2
----
2052
213
3026
query I rowsort
SELECT ALL 86 + - col0 AS col0 FROM tab1 AS cor0
----
22
6
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5524
SELECT DISTINCT + CAST( col0 AS SIGNED ) * - col1 FROM tab0 cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * - col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + 36 * 21 AS col1 FROM tab2 AS cor0
----
756
756
756
query I rowsort
SELECT DISTINCT + col2 + col1 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + + col0 * + col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT col2 + + 9 AS col2 FROM tab0
----
10
42
91
query I rowsort
SELECT col1 + - 2 FROM tab2
----
15
29
57
query I rowsort
SELECT 48 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 col2 FROM tab1, tab0 cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 col2 FROM tab0
----
38
38
38
query I rowsort
SELECT ( 81 ) FROM tab2
----
81
81
81
query I rowsort
SELECT DISTINCT + 72 AS col0 FROM tab0, tab0 AS cor0
----
72
query I rowsort
SELECT ALL - cor0.col0 * col2 * col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL cor1.col2 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL + 74 AS col1 FROM tab1 AS cor0
----
74
74
74
query I rowsort
SELECT - 41 + - col0 AS col0 FROM tab2
----
-119
-120
-48
query I rowsort
SELECT ALL ( col0 ) * + col2 * col2 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT col2 + - col0 * + tab2.col1 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT + col0 * - cor0.col0 + + col1 * + col1 AS col1 FROM tab1 AS cor0
----
-3996
-6231
667
query I rowsort
SELECT 24 + - col1 * - col1 * col2 + col0 * col1 FROM tab2
----
12349
26188
95132
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT + cor0.col0 + - col2 * col2 AS col2 FROM tab2 cor0
----
-1365
-598
-722
onlyif mysql # use DIV operator for integer division
query I rowsort label-5546
SELECT DISTINCT - tab0.col0 DIV + tab0.col0 FROM tab0, tab0 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT - tab0.col0 / + tab0.col0 FROM tab0, tab0 cor0
----
-1
query I rowsort
SELECT ALL col2 * col1 * col0 + col1 FROM tab1 AS cor0
----
36490
4238
99853
onlyif mysql # use DIV operator for integer division
query I rowsort label-5548
SELECT ALL + - col1 DIV - col0 + col0 col1 FROM tab2 AS cor0
----
11
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL + - col1 / - col0 + col0 col1 FROM tab2 AS cor0
----
11
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5549
SELECT - col2 DIV + col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5549
SELECT - col2 / + col2 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT ALL col2 * col1 + + col2 * - col2 AS col2 FROM tab1
----
-1512
-2679
-7968
query I rowsort
SELECT ALL col0 * col2 + + col1 AS col1 FROM tab2
----
2087
220
3019
query I rowsort
SELECT - - ( - col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - 37 - - cor0.col0 FROM tab1 AS cor0
----
-34
27
43
query I rowsort
SELECT col1 - + 9 * + col0 AS col1 FROM tab1
----
-1
-566
-707
query I rowsort
SELECT DISTINCT + 19 + 4 FROM tab2
----
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-5556
SELECT ALL col0 * col2 + tab0.col2 DIV col0 AS col2 FROM tab0
----
35
7298
793
skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL col0 * col2 + tab0.col2 / col0 AS col2 FROM tab0
----
35
7298
793
query I rowsort
SELECT ALL + + col0 * cor0.col0 + - col1 * col1 AS col0 FROM tab2 AS cor0
----
-912
2603
5952
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 col2 FROM tab0 AS cor0
----
53
query I rowsort
SELECT + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT - col1 * col2 - - col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL + 19 + col2 * - cor0.col0 FROM tab1 AS cor0
----
-143
-3629
-7661
query I rowsort
SELECT DISTINCT - col2 * + col0 + cor0.col0 * cor0.col0 + col2 FROM tab0 cor0
----
-183
1191
705
query I rowsort
SELECT - 66 AS col2 FROM tab0 AS cor0
----
-66
-66
-66
query I rowsort
SELECT - col0 * + col2 FROM tab1 WHERE NOT NULL = + col1 / + col0
----
query I rowsort
SELECT + col2 + + col0 * + col1 AS col2 FROM tab1
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-5566
SELECT DISTINCT tab0.col2 DIV - col0 col1 FROM tab0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT tab0.col2 / - col0 col1 FROM tab0
----
-1
0
query I rowsort
SELECT ALL col1 / tab2.col0 FROM tab2 WHERE NOT NULL = col1 * col0
----
query I rowsort
SELECT + cor0.col2 + col1 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT col1 * col2 + - cor0.col0 * - col0 AS col2 FROM tab0 AS cor0
----
1322
15383
3414
query I rowsort
SELECT col2 + col2 * col1 AS col1 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-5571
SELECT - tab2.col2 DIV col1 + tab2.col2 + + col1 * tab2.col0 AS col2 FROM tab2
----
1379
244
4628
skipif mysql # not compatible
query I rowsort label-5571
SELECT - tab2.col2 / col1 + tab2.col2 + + col1 * tab2.col0 AS col2 FROM tab2
----
1379
244
4628
query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE + col2 / col0 - - col0 * col2 NOT IN ( + tab2.col2 - col1 )
----
26
27
38
query I rowsort
SELECT - col0 * - col0 * col0 FROM tab2
----
343
474552
493039
onlyif mysql # use DIV operator for integer division
query I rowsort label-5574
SELECT DISTINCT + col2 DIV col1 col0 FROM tab2
----
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT + col2 / col1 col0 FROM tab2
----
0
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-5575
SELECT ALL - col1 DIV - col0 AS col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL - col1 / - col0 AS col0 FROM tab0
----
1
2
3
query I rowsort
SELECT DISTINCT col2 * + tab0.col0 * col2 AS col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT DISTINCT + col0 + col0 AS col2 FROM tab0 WHERE NOT NULL = ( col2 - col2 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( col1 + col2 )
----
query I rowsort
SELECT - col2 * - col1 FROM tab1 WHERE NULL < ( col2 )
----
query I rowsort
SELECT ALL col1 * col0 + col2 * - col0 - tab0.col1 FROM tab0
----
1186
3263
710
query I rowsort
SELECT DISTINCT + col2 * + col0 + + tab2.col1 - col0 * col2 FROM tab2
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-5582
SELECT col1 * - col0 - col0 DIV col1 FROM tab2
----
-1347
-217
-4603
skipif mysql # not compatible
query I rowsort label-5582
SELECT col1 * - col0 - col0 / col1 FROM tab2
----
-1347
-217
-4603
query I rowsort
SELECT DISTINCT - col0 - - tab0.col2 * - col0 FROM tab0
----
-70
-7387
-816
query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * col1 >= col0 + + col0
----
query I rowsort
SELECT tab0.col2 * - tab0.col0 - col1 AS col1 FROM tab0
----
-132
-7389
-878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 - col0 col2 FROM tab0
----
-70
-7387
-816
query I rowsort
SELECT DISTINCT col2 * - tab1.col1 * - col2 AS col0 FROM tab1
----
119808
32490
75816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - tab0.col1 * + col0 col1 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL tab2.col0 * - col0 AS col2 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT ALL + tab1.col1 * - tab1.col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT col0 * tab0.col2 AS col0 FROM tab0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 - col1 col1 FROM tab2
----
272
3422
930
query I rowsort
SELECT + col1 * col2 * - col1 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT + - col0 * cor0.col1 AS col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT - + col1 * - col0 * col0 AS col2 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT + col0 + + col0 AS col0 FROM tab2 cor0
----
14
156
158
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( cor0.col2 )
----
query I rowsort
SELECT ALL col0 + col2 + - col2 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT col2 BETWEEN ( col0 + col1 * + col2 * col0 ) AND NULL
----
-17
-31
-59
query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 <= - col2 * - col1
----
query I rowsort
SELECT ALL + - col2 * col1 - - col0 * 97 FROM tab1 AS cor0
----
-1113
5638
6512
query I rowsort
SELECT 68 - + col2 AS col0 FROM tab1 AS cor0
----
-28
11
14
query I rowsort
SELECT DISTINCT + col1 * col2 + + cor0.col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT + + col0 - cor0.col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL - - cor0.col1 * 26 FROM tab1 AS cor0
----
260
338
676
query I rowsort
SELECT DISTINCT col1 + + cor0.col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL ( - 59 ) FROM tab2 cor0
----
-59
-59
-59
query I rowsort
SELECT + + col1 - cor0.col1 AS col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5609
SELECT col1 DIV col1 AS col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5609
SELECT col1 / col1 AS col1 FROM tab1
----
1
1
1
query I rowsort
SELECT ALL tab1.col0 - - col0 FROM tab1
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5611
SELECT ALL col1 - - col2 DIV col1 AS col0 FROM tab2
----
19
31
59
skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL col1 - - col2 / col1 AS col0 FROM tab2
----
19
31
59
query I rowsort
SELECT DISTINCT - col2 - 55 AS col2 FROM tab2
----
-81
-82
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 col1 FROM tab2, tab1 AS cor0
----
62
query I rowsort
SELECT ALL + col0 + + col1 AS col0 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL + ( - col2 ) * - col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL col2 * - col1 + + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT + ( 31 ) + col1 FROM tab2 AS cor0
----
48
62
90
query I rowsort
SELECT DISTINCT - col1 + 46 * col0 FROM tab2 cor0
----
291
3529
3617
query I rowsort
SELECT ( + 70 ) * col1 + 75 AS col0 FROM tab0 AS cor0
----
6095
6445
6865
query I rowsort
SELECT ALL + 19 + + col1 AS col2 FROM tab0 AS cor0
----
105
110
116
query I rowsort
SELECT ALL - - col2 + - col0 + cor0.col2 FROM tab0 AS cor0
----
-33
42
75
query I rowsort
SELECT DISTINCT - 33 * 11 + - col0 * col1 + + col2 AS col0 FROM tab1
----
-1307
-387
-946
query I rowsort
SELECT col1 * - col1 + col0 AS col0 FROM tab0
----
-7372
-8192
-9374
query I rowsort
SELECT + col0 - - col2 * tab0.col1 AS col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT ALL + 45 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT col2 + - ( + col0 ) FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - 38 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507
query I rowsort
SELECT + col0 + col1 AS col0 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT + 23 * - 35 FROM tab1, tab0 AS cor0
----
-805
onlyif mysql # use DIV operator for integer division
query I rowsort label-5630
SELECT + col1 DIV + col2 + col2 * col0 * col2 FROM tab0
----
132
26138
598437
skipif mysql # not compatible
query I rowsort label-5630
SELECT + col1 / + col2 + col2 * col0 * col2 FROM tab0
----
132
26138
598437
query I rowsort
SELECT col1 + - ( 97 ) FROM tab2
----
-38
-66
-80
query I rowsort
SELECT ALL - + col2 + + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 - + ( 52 * col0 ) AS col0 FROM tab0 cor0
----
-1215
-1819
-4546
query I rowsort
SELECT - col2 * - ( cor0.col2 ) + + col0 FROM tab1 cor0
----
2919
3313
9296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5635
SELECT ALL - CAST( cor0.col1 AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL - CAST ( cor0.col1 AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT DISTINCT + col1 * col2 + + ( + col0 ) FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT + cor0.col2 + + ( col0 ) AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - 70 + - cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 92a602622138e800e7fb3aeecad7d103
onlyif mysql # use DIV operator for integer division
query I rowsort label-5639
SELECT DISTINCT + cor0.col1 + col2 DIV col0 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
110
67
98
skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT + cor0.col1 + col2 / col0 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
110
67
98
query I rowsort
SELECT ALL + col2 * col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 6726a15019c52908f1f1d0df0cd4c1b8
query I rowsort
SELECT + col0 + cor0.col1 * + col2 AS col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT cor0.col1 * - ( col0 ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col2 * - cor0.col2 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL - + col0 + 85 FROM tab2 AS cor0
----
6
7
78
query I rowsort
SELECT - col0 * + col1 + - col0 AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-5647
SELECT DISTINCT - + col1 DIV - cor0.col0 FROM tab1 AS cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-5647
SELECT DISTINCT - + col1 / - cor0.col0 FROM tab1 AS cor0
----
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL + col1 * ( + col1 ) FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-5650
SELECT ALL + 5 + col2 DIV - col2 + - col1 col0 FROM tab1 AS cor0
----
-22
-6
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL + 5 + col2 / - col2 + - col1 col0 FROM tab1 AS cor0
----
-22
-6
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5651
SELECT ALL - 28 * - 77 + + col0 * col0 DIV - col0 AS col2 FROM tab0 AS cor0
----
2067
2121
2132
skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL - 28 * - 77 + + col0 * col0 / - col0 AS col2 FROM tab0 AS cor0
----
2067
2121
2132
query I rowsort
SELECT DISTINCT + ( - 1 ) - cor0.col1 AS col2 FROM tab0 AS cor0
----
-87
-92
-98
query I rowsort
SELECT 62 FROM tab0, tab0 cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT 26 * - col0 FROM tab0 AS cor0
----
-2314
-624
-910
query I rowsort
SELECT ALL ( + 57 ) * col1 FROM tab1 AS cor0
----
1482
570
741
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT + col0 * - col0 + col2 * - cor0.col0 AS col0 FROM tab2 cor0
----
-238
-8112
-9243
query I rowsort
SELECT + - cor0.col0 * - col2 + + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ( + col0 ) AS col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT 92 * col2 AS col2 FROM tab2 AS cor0
----
2392
2484
3496
query I rowsort
SELECT - + ( col0 ) * - col2 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 + + col1 col2 FROM tab0 cor0
----
102
107
113
query I rowsort
SELECT - 41 AS col1 FROM tab2
----
-41
-41
-41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 30 * col0 col2 FROM tab2 AS cor0
----
-210
-2340
-2370
onlyif mysql # use DIV operator for integer division
query I rowsort label-5666
SELECT - - cor0.col0 DIV col2 + + ( - cor0.col0 ) FROM tab1 cor0
----
-3
-63
-80
skipif mysql # not compatible
query I rowsort label-5666
SELECT - - cor0.col0 / col2 + + ( - cor0.col0 ) FROM tab1 cor0
----
-3
-63
-80
query I rowsort
SELECT DISTINCT - col0 + - col1 * + cor0.col1 FROM tab0 AS cor0
----
-7420
-8370
-9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-5668
SELECT ALL - cor0.col2 DIV + col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL - cor0.col2 / + col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - - col1 * col1 + col0 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT - ( col0 ) * ( col1 + col0 ) * col0 FROM tab2 AS cor0
----
-1862
-599136
-833508
query I rowsort
SELECT ALL - + 34 FROM tab1 AS cor0
----
-34
-34
-34
query I rowsort
SELECT ALL + 56 * + col0 + + col0 * - col2 * col0 FROM tab2
----
-153816
-232734
-931
query I rowsort
SELECT ALL + - col0 + - col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT DISTINCT cor0.col0 * col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - col1 * ( 11 ) + - col0 AS col1 FROM tab0 cor0
----
-1090
-1102
-970
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 78 + col0 col0 FROM tab0 AS cor0
----
113
2598
6485
query I rowsort
SELECT 72 * col0 * ( col1 ) + - col0 FROM tab2
----
15617
331266
96617
query I rowsort
SELECT ALL col2 * tab2.col2 + - tab2.col1 * - col1 FROM tab2
----
1690
1733
4157
onlyif mysql # use DIV operator for integer division
query I rowsort label-5679
SELECT ALL 58 + col0 DIV 9 AS col0 FROM tab0
----
60
61
67
skipif mysql # not compatible
query I rowsort label-5679
SELECT ALL 58 + col0 / 9 AS col0 FROM tab0
----
60
61
67
query I rowsort
SELECT ALL 40 * 43 AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ec2c2be41a4dc02182d31d7a83cb0037
query I rowsort
SELECT + col2 * + col0 * + 63 + col1 * + col0 AS col0 FROM tab1 AS cor0
----
10284
230464
484880
query I rowsort
SELECT col1 * col1 - col0 AS col2 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT + 23 + - col2 FROM tab1 AS cor0
----
-31
-34
-73
query I rowsort
SELECT + 63 - col1 FROM tab1 cor0
----
37
50
53
query I rowsort
SELECT cor0.col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - - col2 * col0 + col0 FROM tab2 cor0
----
196
2106
3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + cor0.col1 col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + cor0.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL - 22 * 49 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 527ec586a4516bf10525186ef922dea9
query I rowsort
SELECT col1 * - tab1.col0 AS col1 FROM tab1
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5691
SELECT DISTINCT - cor0.col2 - + cor0.col1 * CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5691
SELECT DISTINCT - cor0.col2 - + cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0
----
NULL
query I rowsort
SELECT - - 80 * - cor0.col0 FROM tab2 AS cor0
----
-560
-6240
-6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-5693
SELECT 37 DIV + col0 col0 FROM tab2 AS cor0
----
0
0
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5693
SELECT 37 / + col0 col0 FROM tab2 AS cor0
----
0
0
5
query I rowsort
SELECT DISTINCT 40 + + 29 + tab0.col1 FROM tab0
----
155
160
166
query I rowsort
SELECT + 8 AS col0 FROM tab1
----
8
8
8
query I rowsort
SELECT - ( - col2 ) * tab2.col0 AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ( col1 * col1 ) FROM tab2
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-5698
SELECT + - col0 DIV cor0.col1 col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5698
SELECT + - col0 / cor0.col1 col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * col0 + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL 77 * ( col1 + 94 ) * tab0.col2 AS col1 FROM tab0
----
1168090
14707
457380
query I rowsort
SELECT ALL + tab0.col1 * col2 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5702
SELECT ALL col1 DIV tab1.col1 AS col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5702
SELECT ALL col1 / tab1.col1 AS col1 FROM tab1
----
1
1
1
query I rowsort
SELECT + tab1.col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL - col0 + col0 * - 16 FROM tab2 AS cor0
----
-119
-1326
-1343
query I rowsort
SELECT DISTINCT - 72 FROM tab1, tab1 cor0, tab0 AS cor1
----
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col2 col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT col0 + - col1 AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL + 19 + + cor0.col2 * col1 FROM tab0 AS cor0
----
116
2857
7481
query I rowsort
SELECT + 82 FROM tab1
----
82
82
82
query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
onlyif mysql # use DIV operator for integer division
query I rowsort label-5711
SELECT + 19 DIV + col1 col2 FROM tab2
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5711
SELECT + 19 / + col1 col2 FROM tab2
----
0
0
1
query I rowsort
SELECT - tab2.col0 * - col2 + + ( col0 ) + - col1 FROM tab2
----
165
2047
3064
query I rowsort
SELECT ALL + 39 FROM tab0
----
39
39
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT + 1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
query I rowsort
SELECT ALL - 82 * - col1 - + ( col0 ) FROM tab0
----
7028
7373
7919
query I rowsort
SELECT - 8 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 852581644118629bf652b1aa4b8f4363
query I rowsort
SELECT - col2 + - col1 * col0 AS col2 FROM tab0
----
-2097
-3396
-8181
query I rowsort
SELECT + col0 * 4 FROM tab2
----
28
312
316
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5720
SELECT + CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5720
SELECT + CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * - col1 * + col2 + - col2 * col1 AS col2 FROM tab1 AS cor0
----
118560
31920
74412
query I rowsort
SELECT + col0 * 60 AS col1 FROM tab2
----
420
4680
4740
query I rowsort
SELECT ALL + 35 FROM tab1, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT - col1 * col2 + + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT - + col1 * col2 * - col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT - ( 34 ) AS col2 FROM tab0
----
-34
-34
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 11 + col2 col0 FROM tab1 AS cor0
----
43
46
85
query I rowsort
SELECT DISTINCT - cor0.col0 + + col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT + col1 * 77 + + cor0.col1 + + col2 FROM tab2 cor0
----
1364
2445
4628
query I rowsort
SELECT DISTINCT ( col0 ) * col1 + 60 FROM tab2 AS cor0
----
1403
277
4662
query I rowsort
SELECT ALL col0 * - 88 FROM tab2 AS cor0
----
-616
-6864
-6952
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 85 col0 FROM tab1 AS cor0
----
85
query I rowsort
SELECT - 6 * col0 FROM tab1 cor0
----
-18
-384
-480
query I rowsort
SELECT - + 23 + - ( - col2 ) * - col2 FROM tab1 AS cor0
----
-2939
-3272
-9239
query I rowsort
SELECT col2 * - 49 * 34 FROM tab1 AS cor0
----
-159936
-89964
-94962
query I rowsort
SELECT ALL col0 * - ( ( col2 ) ) FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5737
SELECT ALL col2 * CAST( NULL AS SIGNED ) + - col2 * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL col2 * CAST ( NULL AS INTEGER ) + - col2 * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 * 42 col0 FROM tab1
----
-2214
-2337
-3936
onlyif mysql # use DIV operator for integer division
query I rowsort label-5739
SELECT DISTINCT - col0 DIV col1 FROM tab1 AS cor0
----
-6
0
skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT - col0 / col1 FROM tab1 AS cor0
----
-6
0
query I rowsort
SELECT cor1.col1 AS col2 FROM tab1, tab0 AS cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5741
SELECT ALL col0 + CAST( 43 AS SIGNED ) + col1 col0 FROM tab0 cor0
----
153
175
223
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL col0 + CAST ( 43 AS INTEGER ) + col1 col0 FROM tab0 cor0
----
153
175
223
query I rowsort
SELECT ALL + + col2 + col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - - col0 + - cor0.col1 * col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT - col2 + col2 * + col1 FROM tab2 AS cor0
----
1508
608
810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 2 * - col2 col2 FROM tab1 AS cor0
----
1140
2496
2808
query I rowsort
SELECT + 25 * cor0.col0 FROM tab1 AS cor0
----
1600
2000
75
query I rowsort
SELECT ALL + cor0.col2 * + 18 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-79
1385
508
query I rowsort
SELECT ALL + - 10 + - col2 * col2 AS col1 FROM tab1 cor0
----
-2926
-3259
-9226
query I rowsort
SELECT DISTINCT - + ( cor0.col1 ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + 64 * col1 AS col2 FROM tab1 cor0
----
1664
640
832
onlyif mysql # use DIV operator for integer division
query I rowsort label-5751
SELECT + col1 DIV col1 + + col0 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-5751
SELECT + col1 / col1 + + col0 FROM tab0
----
25
36
90
query I rowsort
SELECT - col1 * - cor0.col1 + + ( + 94 ) AS col0 FROM tab0 AS cor0
----
7490
8375
9503
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 42 col2 FROM tab0 AS cor0
----
42
42
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-5754
SELECT + 79 DIV + col0 + CAST( col1 AS SIGNED ) * col0 FROM tab1 AS cor0
----
104
1040
641
skipif mysql # not compatible
query I rowsort label-5754
SELECT + 79 / + col0 + CAST ( col1 AS INTEGER ) * col0 FROM tab1 AS cor0
----
104
1040
641
query I rowsort
SELECT + col0 + - col2 * + 24 * 8 AS col0 FROM tab1 cor0
----
-10365
-10880
-18352
onlyif mysql # use DIV operator for integer division
query I rowsort label-5756
SELECT DISTINCT - - col1 DIV col2 AS col1 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT - - col1 / col2 AS col1 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT + col1 * + col0 + - col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT ALL + ( cor0.col2 ) + + 63 FROM tab0 AS cor0
----
145
64
96
query I rowsort
SELECT DISTINCT - col1 * + col0 + + cor0.col0 * - col1 * - col1 AS col1 FROM tab0 AS cor0
----
175440
325920
728910
query I rowsort
SELECT + - col1 * + col0 * col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL - - ( col2 ) AS col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT - + col2 + col1 * - 29 * - col2 AS col1 FROM tab1 AS cor0
----
16473
36096
40662
query I rowsort
SELECT 77 FROM tab2, tab1 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT - 7 AS col1 FROM tab2
----
-7
-7
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5765
SELECT + ( ( col1 ) ) * col0 DIV - col0 + + col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5765
SELECT + ( ( col1 ) ) * col0 / - col0 + + col1 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5766
SELECT + col1 + + col2 * 46 DIV - col0 FROM tab2 AS cor0
----
-146
-5
44
skipif mysql # not compatible
query I rowsort label-5766
SELECT + col1 + + col2 * 46 / - col0 FROM tab2 AS cor0
----
-146
-5
44
query I rowsort
SELECT DISTINCT - col1 * + col0 + - col2 * 77 FROM tab1 AS cor0
----
-4236
-5029
-8432
query I rowsort
SELECT ALL - + 88 + col1 * 7 AS col1 FROM tab2 cor0
----
129
31
325
query I rowsort
SELECT ALL - tab0.col1 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT ALL tab1.col0 * - tab1.col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5772
SELECT + - col2 * cor0.col2 DIV - ( - col0 ) AS col1 FROM tab2 AS cor0
----
-104
-18
-8
skipif mysql # not compatible
query I rowsort label-5772
SELECT + - col2 * cor0.col2 / - ( - col0 ) AS col1 FROM tab2 AS cor0
----
-104
-18
-8
query I rowsort
SELECT col1 * - ( + col1 ) + - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * ( + cor0.col1 ) col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5775
SELECT + col2 * + col1 + 2 * col1 DIV - CAST( 79 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1533
646
837
skipif mysql # not compatible
query I rowsort label-5775
SELECT + col2 * + col1 + 2 * col1 / - CAST ( 79 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1533
646
837
query I rowsort
SELECT DISTINCT - - cor0.col2 + - 55 FROM tab0 AS cor0
----
-22
-54
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-5777
SELECT + col0 DIV ( + col1 ) FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-5777
SELECT + col0 / ( + col1 ) FROM tab2 AS cor0
----
0
1
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-5778
SELECT ALL + cor0.col2 DIV + 38 FROM tab2 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5778
SELECT ALL + cor0.col2 / + 38 FROM tab2 cor0
----
0
0
1
query I rowsort
SELECT + + col1 * cor0.col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + + col2 * - ( col0 ) FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + + cor0.col1 * 78 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
1309
2387
4543
query I rowsort
SELECT DISTINCT + col0 * - ( - col0 ) FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT ALL col0 + col0 * + tab2.col2 AS col2 FROM tab2
----
196
2106
3081
query I rowsort
SELECT cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT + col2 + - 91 * + col0 AS col0 FROM tab1 AS cor0
----
-219
-5767
-7184
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5786
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 96 * - cor0.col0 + - col2 AS col1 FROM tab0 AS cor0
----
-2337
-3361
-8626
query I rowsort
SELECT DISTINCT - 82 * + cor0.col0 + col0 FROM tab2 cor0
----
-567
-6318
-6399
query I rowsort
SELECT ALL - col0 - 60 FROM tab0 AS cor0
----
-149
-84
-95
query I rowsort
SELECT DISTINCT + + col2 + cor0.col1 * - col2 FROM tab1 cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL - + col2 + col2 - + col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - 15 + 30 FROM tab2 AS cor0
----
15
15
15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 98 col0 FROM tab2 AS cor0
----
2548
2646
3724
onlyif mysql # use DIV operator for integer division
query I rowsort label-5794
SELECT DISTINCT + + 75 DIV cor0.col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
21
33
60
skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT + + 75 / cor0.col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
21
33
60
query I rowsort
SELECT 2 * - col0 FROM tab1
----
-128
-160
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5796
SELECT DISTINCT CAST( ( col1 ) AS SIGNED ) + + col2 * 49 FROM tab1
----
2672
2803
4717
skipif mysql # not compatible
query I rowsort label-5796
SELECT DISTINCT CAST ( ( col1 ) AS INTEGER ) + + col2 * 49 FROM tab1
----
2672
2803
4717
query I rowsort
SELECT - cor0.col2 - + col0 AS col0 FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-5798
SELECT ALL + col0 DIV col0 + col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL + col0 / col0 + col0 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT DISTINCT 68 * + col0 + + col2 * cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
212288
742720
8952
query I rowsort
SELECT - 59 + - col2 FROM tab1 AS cor0
----
-113
-116
-155
query I rowsort
SELECT DISTINCT - col0 * - col0 - + col2 * + 66 FROM tab0 AS cor0
----
-1602
1159
2509
onlyif mysql # use DIV operator for integer division
query I rowsort label-5802
SELECT ALL ( + col0 ) + - ( + col1 ) DIV + col1 AS col1 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL ( + col0 ) + - ( + col1 ) / + col1 AS col1 FROM tab1 AS cor0
----
2
63
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5803
SELECT DISTINCT - cor0.col0 - + cor0.col1 DIV 39 FROM tab2 AS cor0
----
-7
-79
skipif mysql # not compatible
query I rowsort label-5803
SELECT DISTINCT - cor0.col0 - + cor0.col1 / 39 FROM tab2 AS cor0
----
-7
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5804
SELECT DISTINCT - 71 / + col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5804
SELECT DISTINCT - 71 / + col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - cor0.col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT - - col1 + - col1 * cor0.col1 FROM tab2 cor0
----
-272
-3422
-930
query I rowsort
SELECT DISTINCT + col2 - - col0 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL + + 5 * col0 + - col1 * col2 FROM tab2 AS cor0
----
-1144
-251
-802
query I rowsort
SELECT DISTINCT - 92 * col1 FROM tab2 AS cor0
----
-1564
-2852
-5428
query I rowsort
SELECT - - 90 AS col2 FROM tab2 AS cor0
----
90
90
90
query I rowsort
SELECT DISTINCT - - 90 AS col0 FROM tab0 AS cor0
----
90
query I rowsort
SELECT + col0 - - col0 AS col2 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5813
SELECT - CAST( NULL AS DECIMAL ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5813
SELECT - CAST ( NULL AS REAL ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col0 * 27 FROM tab0 AS cor0
----
2403
648
945
query I rowsort
SELECT DISTINCT + + col1 * + ( col1 ) FROM tab1 AS cor0
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5816
SELECT DISTINCT + col0 + - CAST( ( col2 ) AS SIGNED ) FROM tab1 AS cor0
----
-16
-51
7
skipif mysql # not compatible
query I rowsort label-5816
SELECT DISTINCT + col0 + - CAST ( ( col2 ) AS INTEGER ) FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5817
SELECT ALL + col0 - - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL + col0 - - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT cor0.col2 - col0 * col0 FROM tab1 AS cor0
----
-4039
-6304
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + 78 col0 FROM tab1
----
-104
-88
-91
query I rowsort
SELECT DISTINCT - 28 AS col0 FROM tab1, tab1 AS cor0
----
-28
query I rowsort
SELECT + - col2 - col0 * - col0 AS col1 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT ALL - col0 + + tab2.col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT + col0 * col2 - + col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT + 54 AS col2 FROM tab0
----
54
54
54
query I rowsort
SELECT ALL 20 * + col0 FROM tab0
----
1780
480
700
query I rowsort
SELECT ALL - col1 + + col0 * ( col0 * col2 ) AS col2 FROM tab0 AS cor0
----
1128
18922
649431
query I rowsort
SELECT ALL - col1 * - col1 * - 12 FROM tab0 AS cor0
----
-112908
-88752
-99372
query I rowsort
SELECT DISTINCT ( ( cor1.col0 ) + - 67 ) FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-60
11
12
query I rowsort
SELECT - 24 AS col1 FROM tab2, tab0 AS cor0, tab0 cor1, tab0 cor2
----
81 values hashing to ad9e2feda1bc3d52e1a836279e031a8b
query I rowsort
SELECT DISTINCT cor0.col1 - + cor0.col1 * + cor0.col1 AS col2 FROM tab1, tab2 AS cor0
----
-272
-3422
-930
onlyif mysql # use DIV operator for integer division
query I rowsort label-5831
SELECT ALL - - col2 + - cor0.col2 DIV + col1 FROM tab1 AS cor0
----
52
52
89
skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL - - col2 + - cor0.col2 / + col1 FROM tab1 AS cor0
----
52
52
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 85 col2 FROM tab0 AS cor0
----
-85
-85
-85
query I rowsort
SELECT 24 + col1 FROM tab1
----
34
37
50
query I rowsort
SELECT - 20 + + col2 * col0 AS col1 FROM tab1
----
142
3628
7660
query I rowsort
SELECT + 68 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
query I rowsort
SELECT - cor0.col2 * 55 FROM tab0 AS cor0
----
-1815
-4510
-55
query I rowsort
SELECT ALL 78 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT ALL - col1 * cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL - - col0 + ( 99 ) * + col1 AS col0 FROM tab1 AS cor0
----
1054
1367
2577
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT 17 FROM tab0, tab2 cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT DISTINCT col2 * ( col0 ) FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT col0 * 97 AS col1 FROM tab0 AS cor0
----
2328
3395
8633
onlyif mysql # use DIV operator for integer division
query I rowsort label-5845
SELECT ALL + 38 * + col2 DIV + cor0.col2 AS col0 FROM tab0 AS cor0
----
38
38
38
skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL + 38 * + col2 / + cor0.col2 AS col0 FROM tab0 AS cor0
----
38
38
38
query I rowsort
SELECT + + ( + col1 ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + + col2 * - ( col2 ) AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + col1 * cor0.col1 * cor0.col0 FROM tab0 AS cor0
----
177504
329315
737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 ) col1 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5850
SELECT col1 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5850
SELECT col1 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + tab0.col2 * + 12 * + col0 FROM tab0
----
420
87576
9504
query I rowsort
SELECT DISTINCT - - col1 * + col1 - col2 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT + col1 + + cor0.col1 * + col0 AS col0 FROM tab0 cor0
----
2150
3492
8190
query I rowsort
SELECT ALL - col2 * + col0 AS col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT 39 * col1 AS col2 FROM tab2 AS cor0
----
1209
2301
663
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 col1 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT - - 68 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1156
2108
4012
query I rowsort
SELECT - col0 * 15 FROM tab0
----
-1335
-360
-525
query I rowsort
SELECT - col2 * - 67 FROM tab1
----
3618
3819
6432
query I rowsort
SELECT - col2 + - col0 AS col2 FROM tab1 cor0
----
-121
-176
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5861
SELECT - ( col2 ) + + CAST( - ( col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-52
-54
-76
skipif mysql # not compatible
query I rowsort label-5861
SELECT - ( col2 ) + + CAST ( - ( col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT col1 * - cor0.col2 * - ( + 81 ) + - col0 FROM tab1 cor0
----
101008
113721
46106
query I rowsort
SELECT - - 54 AS col1 FROM tab2 AS cor0
----
54
54
54
query I rowsort
SELECT + 98 * col1 + 40 AS col1 FROM tab2 AS cor0
----
1706
3078
5822
query I rowsort
SELECT tab0.col1 + 82 FROM tab0
----
168
173
179
query I rowsort
SELECT DISTINCT - + ( - 16 ) * col0 * col0 AS col1 FROM tab1 AS cor0
----
102400
144
65536
query I rowsort
SELECT ALL + col2 + - 45 AS col0 FROM tab1 AS cor0
----
12
51
9
query I rowsort
SELECT - + col2 * col2 + col1 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT cor0.col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5870
SELECT ALL cor0.col0 * col2 + + col2 DIV col2 - + col0 AS col1 FROM tab0 cor0
----
1
7210
769
skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL cor0.col0 * col2 + + col2 / col2 - + col0 AS col1 FROM tab0 cor0
----
1
7210
769
query I rowsort
SELECT DISTINCT - - ( + col2 ) - ( 44 ) AS col1 FROM tab2 AS cor0
----
-17
-18
-6
query I rowsort
SELECT - - 42 + col0 FROM tab1 AS cor0
----
106
122
45
query I rowsort
SELECT - 8 * col0 FROM tab2 AS cor0
----
-56
-624
-632
query I rowsort
SELECT ALL cor0.col0 * col2 AS col0 FROM tab1 cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col1 col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + - 26 * - col0 FROM tab1 AS cor0
----
1664
2080
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5877
SELECT DISTINCT + 91 * col0 - + CAST( col2 + col2 * CAST( - col1 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
1447
7797
8606
skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT + 91 * col0 - + CAST ( col2 + col2 * CAST ( - col1 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
1447
7797
8606
query I rowsort
SELECT DISTINCT - - col1 * - col2 * - ( col0 * cor0.col1 ) + + col1 AS col2 FROM tab1 AS cor0
----
109538
1297933
364810
query I rowsort
SELECT ALL - 88 - col1 FROM tab1 cor0
----
-101
-114
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + cor0.col0 col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ( col1 * col1 ) AS col2 FROM tab2
----
289
3481
961
query I rowsort
SELECT ALL + col2 * - col2 + col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT + col0 * + col0 + col2 FROM tab1 cor0
----
4153
63
6496
query I rowsort
SELECT ALL + 57 - col2 FROM tab2 AS cor0
----
19
30
31
query I rowsort
SELECT DISTINCT - 57 * - col2 AS col2 FROM tab0 cor0
----
1881
4674
57
query I rowsort
SELECT col0 * 61 * - col1 AS col2 FROM tab1 AS cor0
----
-39040
-4758
-63440
query I rowsort
SELECT DISTINCT col1 + - 87 FROM tab0 AS cor0
----
-1
10
4
query I rowsort
SELECT col0 - - 37 FROM tab0 cor0
----
126
61
72
query I rowsort
SELECT + col2 * col2 * col2 AS col0 FROM tab0 AS cor0
----
1
35937
551368
onlyif mysql # use DIV operator for integer division
query I rowsort label-5890
SELECT + - col1 * 50 + - col0 DIV col2 FROM tab0 AS cor0
----
-4300
-4551
-4885
skipif mysql # not compatible
query I rowsort label-5890
SELECT + - col1 * 50 + - col0 / col2 FROM tab0 AS cor0
----
-4300
-4551
-4885
query I rowsort
SELECT DISTINCT col1 + tab2.col0 + - col2 AS col0 FROM tab2
----
11
111
58
query I rowsort
SELECT col2 + ( - col1 ) + - col2 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - cor0.col2 * - col1 - 32 FROM tab2 AS cor0
----
1502
614
805
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5894
SELECT - col1 + + CAST( col2 AS SIGNED ) * + col2 AS col0 FROM tab2 AS cor0
----
1427
617
698
skipif mysql # not compatible
query I rowsort label-5894
SELECT - col1 + + CAST ( col2 AS INTEGER ) * + col2 AS col0 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT - col0 + - ( + col0 ) FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT DISTINCT + col2 + + ( col1 ) AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + col0 * + 36 FROM tab0 AS cor0
----
1260
3204
864
query I rowsort
SELECT ALL - col2 * col2 + col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT ALL - - cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5900
SELECT - col0 * CAST( col2 AS SIGNED ) * cor0.col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
skipif mysql # not compatible
query I rowsort label-5900
SELECT - col0 * CAST ( col2 AS INTEGER ) * cor0.col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT + col0 * + 64 FROM tab1 AS cor0
----
192
4096
5120
query I rowsort
SELECT ALL - + ( + col2 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + + cor0.col1 * - 58 * + col1 AS col1 FROM tab0 cor0
----
-428968
-480298
-545722
query I rowsort
SELECT ALL - + 22 + ( - col1 ) AS col1 FROM tab1 AS cor0
----
-32
-35
-48
query I rowsort
SELECT DISTINCT col0 + - 33 * cor0.col2 FROM tab1 AS cor0
----
-1779
-1817
-3088
query I rowsort
SELECT ALL - col1 + 35 FROM tab1
----
22
25
9
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 cor1, tab1 AS cor2
----
972 values hashing to f8fe28681e8720551e1ec173631fc529
query I rowsort
SELECT - - cor0.col0 + - col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + ( + col1 ) + col0 * cor0.col0 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT DISTINCT + + col1 * - col0 FROM tab2 cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-5912
SELECT + cor0.col0 DIV 57 AS col1 FROM tab0 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5912
SELECT + cor0.col0 / 57 AS col1 FROM tab0 cor0
----
0
0
1
query I rowsort
SELECT + col0 + + col0 * - col1 + 78 * + col2 AS col1 FROM tab2 AS cor0
----
-2496
1700
1896
query I rowsort
SELECT DISTINCT + + cor0.col0 + col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT col2 + col0 + tab0.col1 FROM tab0
----
133
143
262
query I rowsort
SELECT - ( + 13 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792
query I rowsort
SELECT + col1 * + col2 * - col1 + - col2 + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-246939
-686586
-9507
query I rowsort
SELECT col0 + 74 * col2 FROM tab1 AS cor0
----
3999
4282
7184
query I rowsort
SELECT DISTINCT 45 * 77 FROM tab2
----
3465
onlyif mysql # use DIV operator for integer division
query I rowsort label-5920
SELECT 70 DIV col0 AS col0 FROM tab0 AS cor0
----
0
2
2
skipif mysql # not compatible
query I rowsort label-5920
SELECT 70 / col0 AS col0 FROM tab0 AS cor0
----
0
2
2
query I rowsort
SELECT DISTINCT - ( 54 ) * col0 FROM tab0 cor0
----
-1296
-1890
-4806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5922
SELECT + CAST( - col2 AS SIGNED ) + - tab2.col1 * + 75 * + col2 col0 FROM tab2
----
-115076
-48488
-62802
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5922
SELECT + CAST ( - col2 AS INTEGER ) + - tab2.col1 * + 75 * + col2 col0 FROM tab2
----
-115076
-48488
-62802
query I rowsort
SELECT ALL + cor0.col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - - col0 * - 45 AS col1 FROM tab2 AS cor0
----
-315
-3510
-3555
query I rowsort
SELECT DISTINCT cor2.col2 AS col0 FROM tab2, tab0 cor0, tab1 AS cor1, tab0 AS cor2
----
1
33
82
query I rowsort
SELECT DISTINCT ( - 90 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-90
query I rowsort
SELECT col1 * col0 + 88 * col0 AS col0 FROM tab0
----
15931
4176
6475
query I rowsort
SELECT ALL + ( + col0 * col1 ) AS col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL col2 + ( + tab2.col0 + + col2 ) FROM tab2
----
130
155
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5930
SELECT ALL tab1.col2 + + CAST( col2 AS SIGNED ) * col1 AS col1 FROM tab1
----
1344
1458
627
skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL tab1.col2 + + CAST ( col2 AS INTEGER ) * col1 AS col1 FROM tab1
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-5931
SELECT ALL + col0 DIV + col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL + col0 / + col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + col1 * + col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5933
SELECT DISTINCT tab1.col2 * - CAST( - col0 AS SIGNED ) * + col0 + - col1 FROM tab1
----
233462
460
614387
skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT tab1.col2 * - CAST ( - col0 AS INTEGER ) * + col0 + - col1 FROM tab1
----
233462
460
614387
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 + + 52 col1 FROM tab2
----
2080
241
3054
query I rowsort
SELECT col1 * ( col0 + col1 ) AS col1 FROM tab0
----
12804
16380
9460
query I rowsort
SELECT ALL - + col2 + + col0 FROM tab2 cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-5937
SELECT ALL + + cor0.col0 DIV 73 + + col1 AS col1 FROM tab1 AS cor0
----
10
14
26
skipif mysql # not compatible
query I rowsort label-5937
SELECT ALL + + cor0.col0 / 73 + + col1 AS col1 FROM tab1 AS cor0
----
10
14
26
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 04ab51615fd2c7e492de6a59e98226e1
query I rowsort
SELECT DISTINCT - col0 * - ( - col1 ) + col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL - - col2 + ( - col0 * cor0.col1 + - col0 ) FROM tab2 cor0
----
-1384
-197
-4654
query I rowsort
SELECT col2 + cor0.col0 + 54 FROM tab1 AS cor0
----
111
175
230
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 * ( + col0 ) col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - cor0.col0 * - col1 + 74 FROM tab1 AS cor0
----
1114
152
714
onlyif mysql # use DIV operator for integer division
query I rowsort label-5944
SELECT - + col0 * + 48 + - 26 DIV + col1 AS col1 FROM tab2 AS cor0
----
-336
-3744
-3793
skipif mysql # not compatible
query I rowsort label-5944
SELECT - + col0 * + 48 + - 26 / + col1 AS col1 FROM tab2 AS cor0
----
-336
-3744
-3793
query I rowsort
SELECT DISTINCT + col1 + - col0 * - col1 AS col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL 88 * col1 FROM tab2 AS cor0
----
1496
2728
5192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col2 col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col2 * - col1 * - col2 AS col0 FROM tab1 AS cor0
----
119808
32490
75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-5949
SELECT DISTINCT 8 DIV col2 AS col1 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT 8 / col2 AS col1 FROM tab1
----
0
query I rowsort
SELECT ALL - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL 16 * + col2 FROM tab1
----
1536
864
912
query I rowsort
SELECT ALL - 44 * + ( + col2 ) AS col0 FROM tab0
----
-1452
-3608
-44
query I rowsort
SELECT + - col0 + col0 * col1 AS col0 FROM tab1 AS cor0
----
576
75
960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 * col1 * + col2 col2 FROM tab0 AS cor0
----
611966
93687
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - col1 col0 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT col2 * - tab2.col0 AS col2 FROM tab2
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5957
SELECT DISTINCT + col2 + CAST( NULL AS DECIMAL ) * col2 * col0 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5957
SELECT DISTINCT + col2 + CAST ( NULL AS REAL ) * col2 * col0 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + - col1 * col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - col1 + + col1 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL tab0.col0 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT - 9 + + col1 AS col0 FROM tab2 AS cor0
----
22
50
8
query I rowsort
SELECT + + col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL col1 + - tab0.col0 FROM tab0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5964
SELECT DISTINCT col0 DIV col2 + - col2 * tab0.col1 FROM tab0
----
-2838
-62
-7461
skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT col0 / col2 + - col2 * tab0.col1 FROM tab0
----
-2838
-62
-7461
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 col2 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 + col0 col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + + col2 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-5968
SELECT + col0 * col2 + col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
180
3648
7681
skipif mysql # not compatible
query I rowsort label-5968
SELECT + col0 * col2 + col2 / + col0 AS col0 FROM tab1 AS cor0
----
180
3648
7681
query I rowsort
SELECT - tab2.col0 * + col1 + col1 + col2 FROM tab2
----
-1288
-159
-4517
query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT - col2 > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT + col2 + + cor0.col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT col0 * - col2 + col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL + col0 * cor0.col0 * col2 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT ALL col0 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-5976
SELECT col0 DIV col1 + + col0 - col0 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5976
SELECT col0 / col1 + + col0 - col0 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT - col0 * + col0 + col2 * col1 FROM tab1
----
-3526
-5152
1395
onlyif mysql # use DIV operator for integer division
query I rowsort label-5978
SELECT - col2 DIV - col1 AS col0 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-5978
SELECT - col2 / - col1 AS col0 FROM tab2
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 * col2 - + col1 * - col2 col0 FROM tab0
----
14186
3927
98
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 FROM tab1 AS cor0
----
162
3648
7680
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT ALL - col0 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT + col0 * col1 - - col1 * col2 FROM tab1 AS cor0
----
1210
1482
2288
query I rowsort
SELECT DISTINCT + col1 * col2 + col0 AS col1 FROM tab2 AS cor0
----
1612
725
844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - + col0 + - col2 * col1 FROM tab2 cor0
----
-1612
-725
-844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 + col1 col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT - col0 * + col0 + - col0 FROM tab1 cor0
----
-12
-4160
-6480
query I rowsort
SELECT DISTINCT - col0 + - col2 * col1 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT col2 + col1 * - col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT col2 - + tab0.col1 * - col1 AS col1 FROM tab0
----
7429
8363
9410
query I rowsort
SELECT ALL - col1 - + col0 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT + + col2 * + 15 + - ( col0 ) + col2 FROM tab1 AS cor0
----
1456
848
861
query I rowsort
SELECT - + 46 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to ee5329ac0a4cae16e82284b83f5dff51
query I rowsort
SELECT DISTINCT 73 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
73
query I rowsort
SELECT ALL + col1 + col2 * - ( + col1 ) AS col2 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT - col1 * - 54 AS col0 FROM tab0
----
4644
4914
5238
query I rowsort
SELECT ALL tab1.col0 * 12 AS col0 FROM tab1
----
36
768
960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5999
SELECT ALL col1 * CAST( 46 AS SIGNED ) AS col0 FROM tab1
----
1196
460
598
skipif mysql # not compatible
query I rowsort label-5999
SELECT ALL col1 * CAST ( 46 AS INTEGER ) AS col0 FROM tab1
----
1196
460
598
query I rowsort
SELECT ALL - + col0 * col1 * - col1 AS col0 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT + col1 + col1 * 68 + - col2 * - col1 * ( + cor0.col2 ) FROM tab2 AS cor0
----
24738
25721
43955
query I rowsort
SELECT DISTINCT - ( col1 ) AS col0 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT DISTINCT ( col2 ) * + col0 AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT + + 1 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 + - col0 col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT + ( ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT col2 + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL - 54 + cor0.col2 * 9 FROM tab0, tab2 AS cor0
----
9 values hashing to 91ce3b1a8e34100455b56cb1703d4f79
query I rowsort
SELECT ALL col0 * - col2 + + col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT col0 + + col1 * col2 AS col1 FROM tab0
----
132
2862
7551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6011
SELECT + CAST( NULL AS SIGNED ) * + tab2.col2 + + tab2.col0 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6011
SELECT + CAST ( NULL AS INTEGER ) * + tab2.col2 + + tab2.col0 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * col2 + col2 AS col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT - col2 + cor0.col2 * ( + col2 * - col1 ) AS col1 FROM tab2 AS cor0
----
-22626
-24586
-39910
query I rowsort
SELECT DISTINCT + + col1 + - col2 * ( 97 ) + + col2 FROM tab0 AS cor0
----
-3082
-7781
1
query I rowsort
SELECT - 21 + - col0 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
2043
3374
8078
query I rowsort
SELECT ALL + ( col1 ) + 22 FROM tab2 AS cor0
----
39
53
81
query I rowsort
SELECT ALL - cor0.col2 * + col1 - - ( + 38 ) * col2 FROM tab0 AS cor0
----
-1584
-4346
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * + col1 col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT + - 66 AS col2 FROM tab0 cor0
----
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col2 * + col2 * + col1 col2 FROM tab0 AS cor0
----
-611795
-62
-93630
query I rowsort
SELECT ALL + + col1 + + col2 * - col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT + col2 + - col1 * ( - 59 * + col0 + - col2 * col2 ) FROM tab1 AS cor0
----
181264
70307
80472
query I rowsort
SELECT ALL - col1 * cor0.col1 + 77 * + col0 + + col1 AS col0 FROM tab1 AS cor0
----
-419
4838
6004
query I rowsort
SELECT + - col0 * + col1 + 8 * - col1 + + col2 FROM tab0 AS cor0
----
-2719
-4170
-8745
query I rowsort
SELECT DISTINCT + col1 + col2 * ( + col1 ) AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT + - 91 + col2 + col2 AS col2 FROM tab2 cor0
----
-15
-37
-39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - cor0.col0 + cor0.col2 col1 FROM tab1 AS cor0
----
-17
25
3
query I rowsort
SELECT ALL - 48 * col1 AS col1 FROM tab0 AS cor0
----
-4128
-4368
-4656
query I rowsort
SELECT ALL 21 FROM tab2
----
21
21
21
query I rowsort
SELECT - 17 * + tab0.col1 FROM tab0
----
-1462
-1547
-1649
query I rowsort
SELECT ALL + col1 * - col0 + 14 * tab1.col2 FROM tab1
----
158
304
678
query I rowsort
SELECT ALL + 71 * - col2 * col2 AS col1 FROM tab2
----
-102524
-47996
-51759
query I rowsort
SELECT DISTINCT + col2 + - col0 + - 46 FROM tab2 AS cor0
----
-26
-87
-98
query I rowsort
SELECT + col2 + cor0.col0 * + 36 FROM tab0 AS cor0
----
1261
3286
897
query I rowsort
SELECT - col0 * + col0 * col2 + col1 AS col1 FROM tab0 AS cor0
----
-1128
-18922
-649431
query I rowsort
SELECT - + col1 * 9 + + col2 FROM tab0 AS cor0
----
-737
-741
-872
onlyif mysql # use DIV operator for integer division
query I rowsort label-6037
SELECT - - col1 + + col2 DIV + col1 AS col0 FROM tab2 cor0
----
19
31
59
skipif mysql # not compatible
query I rowsort label-6037
SELECT - - col1 + + col2 / + col1 AS col0 FROM tab2 cor0
----
19
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6038
SELECT tab1.col2 * - CAST( NULL AS DECIMAL ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6038
SELECT tab1.col2 * - CAST ( NULL AS REAL ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - 23 + col0 * col0 FROM tab2
----
26
6061
6218
query I rowsort
SELECT DISTINCT + col2 + + col1 * ( + 35 ) AS col1 FROM tab1
----
407
551
964
query I rowsort
SELECT DISTINCT + ( - col2 ) * - col2 + - col1 AS col0 FROM tab0
----
-96
1003
6633
query I rowsort
SELECT - - cor0.col0 * - 63 - + col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1402
-5266
-8395
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6043
SELECT ALL + CAST( NULL AS SIGNED ) * + 70 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL + CAST ( NULL AS INTEGER ) * + 70 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( 24 ) + + col0 * + col0 * + 12 AS col2 FROM tab2 cor0
----
564
72984
74868
query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6046
SELECT ALL - + CAST( ( - col2 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL - + CAST ( ( - col2 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + col1 * ( + cor0.col2 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL cor0.col2 * col0 * cor0.col0 FROM tab0 cor0
----
1225
19008
649522
query I rowsort
SELECT DISTINCT + ( - col1 ) * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT col0 + - col2 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1065
-6635
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6051
SELECT - ( 81 ) DIV col2 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-6051
SELECT - ( 81 ) / col2 FROM tab1 AS cor0
----
-1
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6052
SELECT DISTINCT ( 68 ) DIV - col2 AS col0 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-6052
SELECT DISTINCT ( 68 ) / - col2 AS col0 FROM tab1 AS cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - cor0.col0 col2 FROM tab1 cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * + 99 * cor0.col1 col1 FROM tab1 cor0
----
-123552
-138996
-56430
query I rowsort
SELECT 56 * col1 FROM tab1 AS cor0
----
1456
560
728
query I rowsort
SELECT col1 * 68 FROM tab1 AS cor0
----
1768
680
884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 60 + + col1 * + col0 * - col2 col2 FROM tab2
----
-121212
-53314
-7479
query I rowsort
SELECT DISTINCT + col1 * + 29 + col1 AS col2 FROM tab0
----
2580
2730
2910
query I rowsort
SELECT ( - 83 ) AS col2 FROM tab0 AS cor0
----
-83
-83
-83
query I rowsort
SELECT 44 + col1 FROM tab0 AS cor0
----
130
135
141
query I rowsort
SELECT + 21 * 93 FROM tab1 AS cor0
----
1953
1953
1953
query I rowsort
SELECT - 86 FROM tab2 cor0
----
-86
-86
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-6063
SELECT DISTINCT + col2 DIV tab0.col2 AS col2 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT + col2 / tab0.col2 AS col2 FROM tab0
----
1
query I rowsort
SELECT 15 - 70 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to b90e74bece5521b514096c5b6e105fde
query I rowsort
SELECT - col1 * - col1 + + 8 AS col0 FROM tab2 AS cor0
----
297
3489
969
query I rowsort
SELECT - + 87 + col2 AS col0 FROM tab1 AS cor0
----
-30
-33
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6067
SELECT DISTINCT + ( - col2 ) DIV col0 + ( col2 ) FROM tab1
----
36
57
95
skipif mysql # not compatible
query I rowsort label-6067
SELECT DISTINCT + ( - col2 ) / col0 + ( col2 ) FROM tab1
----
36
57
95
query I rowsort
SELECT + ( 38 ) FROM tab0 cor0
----
38
38
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6069
SELECT ALL + - CAST( - 46 AS SIGNED ) + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-7252
-746
11
skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL + - CAST ( - 46 AS INTEGER ) + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-7252
-746
11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6070
SELECT + + CAST( NULL AS SIGNED ) + 12 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6070
SELECT + + CAST ( NULL AS INTEGER ) + 12 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col1 * - col2 + - cor0.col1 * - 51 col0 FROM tab2 AS cor0
----
-10115
-24366
-87497
query I rowsort
SELECT 30 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
3645 values hashing to 53ea9df66efbebef5063fb0b15c25baa
query I rowsort
SELECT + 79 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT ALL 38 AS col1 FROM tab2, tab1 cor0, tab2 cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
query I rowsort
SELECT DISTINCT 0 * + col1 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT 68 + - col1 FROM tab2 cor0
----
37
51
9
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
query I rowsort
SELECT ALL col0 * col2 + - ( col2 ) AS col1 FROM tab0
----
34
7216
759
query I rowsort
SELECT + col2 * - ( - 55 ) + cor0.col0 FROM tab1 AS cor0
----
2973
3199
5360
query I rowsort
SELECT - col2 * ( + 27 ) - col0 FROM tab0 cor0
----
-2303
-62
-915
query I rowsort
SELECT ALL - tab0.col1 * col2 + col2 * col0 AS col0 FROM tab0
----
-164
-2046
-62
query I rowsort
SELECT ALL - tab1.col0 * + col0 * + col0 + - col2 AS col2 FROM tab1
----
-262201
-512096
-81
query I rowsort
SELECT - col0 + + col0 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT + col2 * 19 FROM tab0
----
1558
19
627
query I rowsort
SELECT + 37 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2
onlyif mysql # use DIV operator for integer division
query I rowsort label-6087
SELECT ALL col2 DIV - 52 AS col1 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6087
SELECT ALL col2 / - 52 AS col1 FROM tab1
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6088
SELECT + + col2 DIV col0 - + col0 * col1 col0 FROM tab0 cor0
----
-2063
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6088
SELECT + + col2 / col0 - + col0 * col1 col0 FROM tab0 cor0
----
-2063
-3395
-8099
query I rowsort
SELECT - col1 * ( 40 ) + cor0.col2 + - ( + col1 ) AS col1 FROM tab1 AS cor0
----
-1012
-353
-437
query I rowsort
SELECT ALL - 83 * cor0.col0 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 5bab5d60bb60d58e078bddcf25fc0161
query I rowsort
SELECT - + ( col1 ) FROM tab0 cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6092
SELECT DISTINCT - + col2 DIV + col1 + - col1 FROM tab2 AS cor0
----
-19
-31
-59
skipif mysql # not compatible
query I rowsort label-6092
SELECT DISTINCT - + col2 / + col1 + - col1 FROM tab2 AS cor0
----
-19
-31
-59
query I rowsort
SELECT DISTINCT + - ( col1 ) * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL + ( 65 ) FROM tab1 cor0
----
65
65
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 - + col0 col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL - col1 * col2 * - 88 - col2 * - tab0.col2 AS col0 FROM tab0
----
250833
663380
8537
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 cor2
----
3645 values hashing to a8f0522dfcc0ffd1116145dd0d0134ff
query I rowsort
SELECT ALL - ( col0 ) + - col0 FROM tab2
----
-14
-156
-158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col2 FROM tab2, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT DISTINCT 84 * + col2 + - tab2.col2 AS col1 FROM tab2
----
2158
2241
3154
onlyif mysql # use DIV operator for integer division
query I rowsort label-6101
SELECT DISTINCT 33 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-6101
SELECT DISTINCT 33 / + col1 AS col0 FROM tab2 AS cor0
----
0
1
query I rowsort
SELECT ALL - 49 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to f1b2d4fe76c1d323cc1ffd93b2fcab89
query I rowsort
SELECT DISTINCT - + col0 + - 14 FROM tab0 AS cor0
----
-103
-38
-49
query I rowsort
SELECT - 62 AS col1 FROM tab2 AS cor0
----
-62
-62
-62
query I rowsort
SELECT col2 + 19 - - cor0.col2 AS col1 FROM tab1 cor0
----
127
133
211
query I rowsort
SELECT + col1 * col0 + + col2 + + col1 AS col2 FROM tab2 AS cor0
----
1398
275
4687
query I rowsort
SELECT ALL - - ( + col2 ) + + col1 AS col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL + tab1.col1 * + col0 AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT - - cor0.col2 FROM tab1, tab0, tab0 AS cor0, tab2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
query I rowsort
SELECT ALL - ( tab2.col2 + col2 ) * ( - col0 * + ( + col0 ) ) AS col2 FROM tab2
----
2646
316368
474316
query I rowsort
SELECT - 91 AS col1 FROM tab0 AS cor0
----
-91
-91
-91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6112
SELECT - + col1 * + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6112
SELECT - + col1 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + 77 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-177
-4871
-6064
query I rowsort
SELECT ALL + cor0.col2 + 70 AS col2 FROM tab2 AS cor0
----
108
96
97
query I rowsort
SELECT ALL col0 * ( ( + col2 ) ) FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT + + col2 * 37 FROM tab2 AS cor0
----
1406
962
999
query I rowsort
SELECT + col2 * + 40 FROM tab2 AS cor0
----
1040
1080
1520
query I rowsort
SELECT - - col0 + + col1 * + ( cor0.col0 ) FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT col1 * cor0.col2 + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT + col2 + + col0 * col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT + col1 * col1 + + col2 AS col0 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT - + cor0.col1 + 71 FROM tab1 AS cor0
----
45
58
61
query I rowsort
SELECT DISTINCT col2 + + ( - 55 ) * + col2 + cor0.col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1512
-2508
-3936
onlyif mysql # use DIV operator for integer division
query I rowsort label-6124
SELECT ALL - col0 DIV 8 + col0 AS col1 FROM tab0 AS cor0
----
21
31
78
skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL - col0 / 8 + col0 AS col1 FROM tab0 AS cor0
----
21
31
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6125
SELECT 52 - + col1 DIV col1 FROM tab0 AS cor0
----
51
51
51
skipif mysql # not compatible
query I rowsort label-6125
SELECT 52 - + col1 / col1 FROM tab0 AS cor0
----
51
51
51
query I rowsort
SELECT ALL + 26 * col2 FROM tab2 AS cor0
----
676
702
988
query I rowsort
SELECT - 74 + + col2 FROM tab2 cor0
----
-36
-47
-48
query I rowsort
SELECT DISTINCT - 56 AS col2 FROM tab0 AS cor0
----
-56
onlyif mysql # use DIV operator for integer division
query I rowsort label-6129
SELECT DISTINCT - col0 * - col2 + - 47 DIV col2 FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT - col0 * - col2 + - 47 / col2 FROM tab1 AS cor0
----
162
3648
7680
query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6131
SELECT + tab2.col2 DIV col1 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-6131
SELECT + tab2.col2 / col1 FROM tab2
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 * col0 col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT ALL col2 + + tab2.col1 AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL + - col2 * - cor0.col2 AS col1 FROM tab2 cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-6135
SELECT - 46 DIV + tab0.col1 - - col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6135
SELECT - 46 / + tab0.col1 - - col1 FROM tab0
----
86
91
97
query I rowsort
SELECT col0 + - col2 * ( 29 ) AS col1 FROM tab1
----
-1563
-1589
-2704
query I rowsort
SELECT ALL - - 75 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query I rowsort
SELECT + ( col1 * + ( 8 ) + col2 ) FROM tab1
----
137
200
262
query I rowsort
SELECT - col0 + + cor0.col1 FROM tab0 cor0
----
2
62
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( - ( + col0 ) ) + + 88 col0 FROM tab1 AS cor0
----
88
88
88
query I rowsort
SELECT + col1 * - 19 FROM tab2 AS cor0
----
-1121
-323
-589
query I rowsort
SELECT ( - col0 ) * col0 * - col2 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT ALL cor1.col2 * + tab2.col1 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4ac56eb1b1201b1b07557b39398f9b85
query I rowsort
SELECT ALL tab0.col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # use DIV operator for integer division
query I rowsort label-6145
SELECT + col1 DIV - col2 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6145
SELECT + col1 / - col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - 61 + col0 FROM tab2
----
-54
17
18
query I rowsort
SELECT col1 - col0 * + col2 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ALL col0 * col0 + ( - 71 ) AS col1 FROM tab1
----
-62
4025
6329
query I rowsort
SELECT ALL tab0.col2 + col1 AS col0 FROM tab0
----
119
173
98
query I rowsort
SELECT - 77 * - col2 + + 46 FROM tab1
----
4204
4435
7438
onlyif mysql # use DIV operator for integer division
query I rowsort label-6151
SELECT DISTINCT col2 + + col1 DIV col2 FROM tab0
----
35
83
98
skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT col2 + + col1 / col2 FROM tab0
----
35
83
98
query I rowsort
SELECT + col0 + - col1 AS col2 FROM tab2
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6153
SELECT - tab1.col0 - + tab1.col2 DIV col1 col0 FROM tab1
----
-5
-69
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6153
SELECT - tab1.col0 - + tab1.col2 / col1 col0 FROM tab1
----
-5
-69
-87
query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT NULL <> - col0 + col2
----
query I rowsort
SELECT - col0 + tab1.col2 * tab1.col1 * + col2 + - col2 FROM tab1
----
119632
32369
75759
query I rowsort
SELECT ALL col1 + + col0 * - tab1.col1 AS col1 FROM tab1
----
-1027
-52
-630
query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) <> + col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT ALL col2 - + tab1.col1 FROM tab1
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6159
SELECT + tab1.col1 * + col2 + col0 DIV col2 + col1 AS col1 FROM tab1
----
1261
1430
581
skipif mysql # not compatible
query I rowsort label-6159
SELECT + tab1.col1 * + col2 + col0 / col2 + col1 AS col1 FROM tab1
----
1261
1430
581
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( + tab1.col0 )
----
query I rowsort
SELECT + tab0.col2 * col0 AS col1 FROM tab0
----
35
7298
792
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 BETWEEN NULL AND ( + col1 + + col2 + + col0 )
----
query I rowsort
SELECT DISTINCT col1 * col2 + col2 FROM tab0
----
2871
7544
98
query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND + col0 * - col2
----
query I rowsort
SELECT - col2 * + col0 FROM tab0 WHERE col1 <> - col2
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6166
SELECT col2 * + col1 + - col2 DIV - col2 + col2 FROM tab1
----
1345
1459
628
skipif mysql # not compatible
query I rowsort label-6166
SELECT col2 * + col1 + - col2 / - col2 + col2 FROM tab1
----
1345
1459
628
query I rowsort
SELECT + col2 * + tab1.col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL - col0 - + col2 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT DISTINCT col0 * - col1 * col2 - col0 FROM tab2
----
-119730
-51113
-5866
query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT NULL > NULL
----
query I rowsort
SELECT ALL + col1 - col0 * - tab2.col2 * - col2 FROM tab2
----
-114059
-5072
-52669
query I rowsort
SELECT tab2.col0 FROM tab2 WHERE NULL > + col1 + col2 + - col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 col2 FROM tab1
----
0
0
0
query I rowsort
SELECT - col2 + - col0 * + col0 FROM tab2
----
-6110
-6279
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-6175
SELECT DISTINCT - col2 DIV - cor0.col1 AS col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT - col2 / - cor0.col1 AS col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT DISTINCT ( + col0 * - col1 ) AS col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + 9 AS col0 FROM tab1
----
9
query I rowsort
SELECT ALL + 4 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
onlyif mysql # use DIV operator for integer division
query I rowsort label-6179
SELECT DISTINCT 45 DIV - cor0.col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT 45 / - cor0.col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - 96 + col0 FROM tab0 cor0
----
-61
-7
-72
query I rowsort
SELECT - + 47 * + col0 AS col2 FROM tab2 cor0
----
-329
-3666
-3713
query I rowsort
SELECT ALL col0 - cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + col1 + - col1 * + col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT + cor0.col0 + + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - - col0 * 49 AS col2 FROM tab2 AS cor0
----
343
3822
3871
query I rowsort
SELECT tab2.col1 * col2 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT - 51 + - cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c8b266a11e6d7ca5bb6a07aa531846fa
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 + cor0.col2 * col0 col2 FROM tab0 cor0
----
-6604
-9374
-983
query I rowsort
SELECT - + col0 * - cor0.col0 + 30 + - col1 AS col1 FROM tab1 AS cor0
----
13
4116
6417
query I rowsort
SELECT + col0 * - 65 AS col2 FROM tab1 AS cor0
----
-195
-4160
-5200
query I rowsort
SELECT ALL + - col2 * col0 - 9 AS col1 FROM tab2 AS cor0
----
-198
-2037
-3011
query I rowsort
SELECT DISTINCT + + cor0.col1 + - ( + col1 + col0 ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - col0 * + col1 + col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT DISTINCT - - col2 * col0 + cor0.col1 * + col0 FROM tab1 AS cor0
----
240
4288
8720
query I rowsort
SELECT ALL - - col0 + 30 - col1 * col0 FROM tab2 AS cor0
----
-1234
-180
-4494
query I rowsort
SELECT + ( 96 ) AS col1 FROM tab1 AS cor0
----
96
96
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6198
SELECT - col0 DIV + 83 + + col1 * col0 FROM tab2
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-6198
SELECT - col0 / + 83 + + col1 * col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + col0 * col1 + col1 AS col1 FROM tab2
----
1360
248
4661
query I rowsort
SELECT ALL 23 AS col0 FROM tab0
----
23
23
23
query I rowsort
SELECT col2 + - col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + ( + col1 ) * - col1 AS col0 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT + - 72 + cor0.col2 FROM tab0 AS cor0
----
-39
-71
10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6204
SELECT col0 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6204
SELECT col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col0 * + col1 + + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-6206
SELECT + col2 DIV + 2 + - col0 FROM tab1 AS cor0
----
-32
-36
24
skipif mysql # not compatible
query I rowsort label-6206
SELECT + col2 / + 2 + - col0 FROM tab1 AS cor0
----
-32
-36
24
query I rowsort
SELECT ALL - col1 + col0 * + 3 AS col1 FROM tab1
----
-17
182
227
query I rowsort
SELECT col2 * col1 - col2 FROM tab0
----
2805
7380
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6209
SELECT - + cor0.col1 * CAST( 98 AS SIGNED ) + - cor0.col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-2710
-4628
-8954
skipif mysql # not compatible
query I rowsort label-6209
SELECT - + cor0.col1 * CAST ( 98 AS INTEGER ) + - cor0.col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-2710
-4628
-8954
query I rowsort
SELECT DISTINCT + - col1 * col1 + + ( - col2 ) * 63 * - col2 AS col2 FROM tab1 AS cor0
----
183032
204587
580439
query I rowsort
SELECT ALL - col1 + + cor0.col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT + col2 + - ( col1 ) FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + col0 + - cor0.col2 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6214
SELECT - + col1 + + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-6214
SELECT - + col1 + + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - - col2 * 13 + col1 * - col0 AS col0 FROM tab1 AS cor0
----
101
208
624
query I rowsort
SELECT ALL + col0 + + cor0.col0 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-6217
SELECT ALL - col2 DIV 61 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6217
SELECT ALL - col2 / 61 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT + col0 + + 52 AS col1 FROM tab2 AS cor0
----
130
131
59
query I rowsort
SELECT ALL col2 * 53 FROM tab0 AS cor0
----
1749
4346
53
query I rowsort
SELECT + + col1 + - 94 + col2 FROM tab0 cor0
----
25
4
79
query I rowsort
SELECT DISTINCT + - col2 * ( 62 ) AS col2 FROM tab1 AS cor0
----
-3348
-3534
-5952
query I rowsort
SELECT cor0.col2 + + col2 * col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT + 87 * - col1 FROM tab2 AS cor0
----
-1479
-2697
-5133
query I rowsort
SELECT - ( col2 ) * col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT - 53 * 81 AS col1 FROM tab0 AS cor0
----
-4293
-4293
-4293
query I rowsort
SELECT + - col2 * - col0 AS col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT + + col0 + - col0 * col2 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT - ( ( - col0 ) ) + col1 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) - col1 col0 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT ALL 89 * cor0.col2 - 32 * ( + col0 ) * col1 FROM tab0 AS cor0
----
-108551
-251870
-63111
query I rowsort
SELECT 69 * col2 AS col2 FROM tab0 AS cor0
----
2277
5658
69
query I rowsort
SELECT - + 35 * col1 - 54 * col1 FROM tab0 AS cor0
----
-7654
-8099
-8633
query I rowsort
SELECT + col0 * - cor0.col1 - + ( - col0 ) * col0 FROM tab0 AS cor0
----
-1488
-178
-2170
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 + + cor0.col1 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to f6c153ea1a54c017c785a0e93bb5c1f2
onlyif mysql # use DIV operator for integer division
query I rowsort label-6235
SELECT - col0 * + cor0.col1 DIV col1 FROM tab1 cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-6235
SELECT - col0 * + cor0.col1 / col1 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT col1 * cor0.col1 + + ( cor0.col0 ) FROM tab0 AS cor0
----
7420
8370
9444
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + + col1 * cor0.col1 col1 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT ALL + + col0 * - col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + + 40 * col1 FROM tab0 AS cor0
----
3440
3640
3880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 * col0 col0 FROM tab1 AS cor0
----
-153
-3264
-4080
query I rowsort
SELECT ALL + cor0.col0 * + col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - 77 * - col1 AS col1 FROM tab0
----
6622
7007
7469
query I rowsort
SELECT - - col2 + col1 * + col2 * col2 AS col1 FROM tab1 AS cor0
----
119904
32547
75870
onlyif mysql # use DIV operator for integer division
query I rowsort label-6244
SELECT + + col0 DIV col2 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6244
SELECT + + col0 / col2 FROM tab1 cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6245
SELECT ALL - col2 DIV - cor0.col2 + - col2 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL - 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-6246
SELECT ( col1 ) * CAST( + col0 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
skipif mysql # not compatible
query I rowsort label-6246
SELECT ( col1 ) * CAST ( + col0 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 - + col1 col0 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 66 col0 FROM tab1 cor0
----
66
query I rowsort
SELECT - tab1.col0 + tab1.col0 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT - 88 - - col0 FROM tab1
----
-24
-8
-85
query I rowsort
SELECT + - cor0.col1 * + col0 * + ( - col2 * - col0 ) FROM tab1 AS cor0
----
-12636
-2334720
-7987200
query I rowsort
SELECT ALL - col2 * col0 - 85 * - col1 FROM tab2 AS cor0
----
-1557
2446
2987
query I rowsort
SELECT + - col2 * col2 * 89 FROM tab2 AS cor0
----
-128516
-60164
-64881
query I rowsort
SELECT DISTINCT - col2 + - col1 * col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT + - col0 - - ( col0 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * 62 AS col1 FROM tab2 AS cor0
----
434
4836
4898
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL col0 * + 33 AS col0 FROM tab0 cor0
----
1155
2937
792
query I rowsort
SELECT DISTINCT + ( + 30 ) FROM tab1 AS cor0
----
30
query I rowsort
SELECT DISTINCT + - col1 * - col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + + 36 + - col0 * - col0 FROM tab0 AS cor0
----
1261
612
7957
skipif mysql # not compatible
query I rowsort
SELECT CAST ( 45 AS REAL ) * + cor0.col0 FROM tab1 AS cor0
----
135
2880
3600
query I rowsort
SELECT DISTINCT 76 * + 32 AS col2 FROM tab2 AS cor0
----
2432
query I rowsort
SELECT + cor1.col1 + - 93 AS col2 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to e38f35be4c103cc748a655b50f9441c7
query I rowsort
SELECT ALL 80 AS col1 FROM tab1 AS cor0
----
80
80
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 * cor0.col0 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 6be1b8c1696f971d9450ab3d191e63e7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 87 col0 FROM tab2
----
-609
-6786
-6873
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6268
SELECT + CAST( NULL AS SIGNED ) * tab0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6268
SELECT + CAST ( NULL AS INTEGER ) * tab0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT 30 FROM tab0, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT - col2 * col1 * col2 AS col0 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT ALL + 28 FROM tab2
----
28
28
28
query I rowsort
SELECT ALL + 40 AS col1 FROM tab2
----
40
40
40
query I rowsort
SELECT ALL + col1 + - 50 FROM tab0 cor0
----
36
41
47
query I rowsort
SELECT DISTINCT - + col2 + 62 AS col1 FROM tab0 AS cor0
----
-20
29
61
query I rowsort
SELECT DISTINCT col0 - col0 * - col2 * + col2 FROM tab2 AS cor0
----
114155
5110
52806
query I rowsort
SELECT ALL - col1 * - col2 + + cor0.col1 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-6277
SELECT ALL + + cor0.col0 DIV cor0.col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL + + cor0.col0 / cor0.col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - col0 + 67 AS col1 FROM tab0 cor0
----
-22
32
43
query I rowsort
SELECT DISTINCT + col1 * - 0 * col0 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT col1 * 0 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + 27 + + 16 AS col2 FROM tab2 AS cor0
----
43
43
43
query I rowsort
SELECT + 50 + - 51 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - 17 + - col2 + + col0 FROM tab1 AS cor0
----
-10
-33
-68
query I rowsort
SELECT ALL - col2 * col0 - col0 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT ALL + - col0 * - col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6286
SELECT - cor2.col1 DIV + cor1.col1 FROM tab1, tab0 cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to c8afd73cae057d26aa3de41197b4ea2d
skipif mysql # not compatible
query I rowsort label-6286
SELECT - cor2.col1 / + cor1.col1 FROM tab1, tab0 cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to c8afd73cae057d26aa3de41197b4ea2d
query I rowsort
SELECT ALL - cor1.col1 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT DISTINCT - + ( + col0 ) * - col0 + - 54 * ( cor0.col1 + + col1 ) FROM tab0 cor0
----
-1907
-8712
-9251
query IIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2, tab2 cor1
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d
query I rowsort
SELECT ALL + - col0 * cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - - 27 + - cor0.col0 * - 14 FROM tab2 cor0
----
1119
1133
125
query I rowsort
SELECT ( - 68 * - cor1.col1 ) AS col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to a3977266da9615449d4b2778c1ae67a9
query I rowsort
SELECT ALL - + 89 + - col1 AS col0 FROM tab2 AS cor0
----
-106
-120
-148
query I rowsort
SELECT 98 AS col1 FROM tab2 cor0
----
98
98
98
query I rowsort
SELECT ALL - col0 + 23 * col0 FROM tab0
----
1958
528
770
query I rowsort
SELECT + 48 AS col2 FROM tab1 AS cor0
----
48
48
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 79 * - col1 col2 FROM tab0 AS cor0
----
-6794
-7189
-7663
query I rowsort
SELECT DISTINCT + col0 * col1 + 65 FROM tab1 cor0
----
1105
143
705
query I rowsort
SELECT ALL + 87 FROM tab0
----
87
87
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6300
SELECT ALL - - col2 * CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-6300
SELECT ALL - - col2 * CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + col2 * ( - 14 ) + - col0 FROM tab1 AS cor0
----
-1424
-759
-862
query I rowsort
SELECT DISTINCT cor0.col0 * col0 - - col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT ALL - col0 * - col1 * col2 FROM tab0 cor0
----
3395
664118
68112
query I rowsort
SELECT ALL - 85 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede
query I rowsort
SELECT ALL col2 * col0 * - col0 FROM tab0
----
-1225
-19008
-649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-6306
SELECT + col2 DIV cor0.col2 AS col0 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6306
SELECT + col2 / cor0.col2 AS col0 FROM tab1 cor0
----
1
1
1
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab0 AS cor0, tab0 cor1
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237
query I rowsort
SELECT ALL + ( col0 ) * col0 AS col2 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT - tab1.col2 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT - 28 FROM tab1, tab1 cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * ( - ( col0 ) ) col0 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - 52 FROM tab2, tab0 AS cor0, tab1 cor1
----
-52
query I rowsort
SELECT + col0 + cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT - col1 + 26 FROM tab1 AS cor0
----
0
13
16
onlyif mysql # use DIV operator for integer division
query I rowsort label-6315
SELECT DISTINCT + col0 DIV col0 AS col1 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-6315
SELECT DISTINCT + col0 / col0 AS col1 FROM tab0
----
1
query I rowsort
SELECT ALL 97 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
query I rowsort
SELECT ALL 0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT - 82 + + col0 AS col1 FROM tab1
----
-18
-2
-79
query I rowsort
SELECT DISTINCT - tab2.col2 + + cor0.col0 * 35 FROM tab2, tab2 AS cor0
----
9 values hashing to 6ec77aa793d0f7fdc37acb698f5d5220
query I rowsort
SELECT col2 + + 79 AS col1 FROM tab1
----
133
136
175
query I rowsort
SELECT - 46 FROM tab1 cor0
----
-46
-46
-46
query I rowsort
SELECT ( - col1 ) - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1322
-662
-8012
query I rowsort
SELECT - ( col2 * + col1 ) + + col2 + col2 AS col2 FROM tab0
----
-2772
-7298
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-6324
SELECT ALL 20 DIV ( tab1.col2 ) AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6324
SELECT ALL 20 / ( tab1.col2 ) AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ( 98 ) AS col1 FROM tab1
----
98
98
98
query I rowsort
SELECT DISTINCT - 92 + col2 FROM tab0
----
-10
-59
-91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6327
SELECT CAST( NULL AS SIGNED ) + ( - col0 ) + col0 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6327
SELECT CAST ( NULL AS INTEGER ) + ( - col0 ) + col0 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( + col1 ) + - col2 + - tab2.col1 AS col2 FROM tab2
----
-144
-72
-89
query I rowsort
SELECT ( tab1.col2 ) * + 49 FROM tab1
----
2646
2793
4704
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + ( - 92 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-92
query I rowsort
SELECT DISTINCT 98 + + col2 AS col2 FROM tab0 AS cor0
----
131
180
99
query I rowsort
SELECT - col1 * col0 + col2 * col2 AS col1 FROM tab1 AS cor0
----
2609
2838
8176
query I rowsort
SELECT 5 AS col0 FROM tab1 AS cor0
----
5
5
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6335
SELECT - col1 * col1 + CAST( NULL AS SIGNED ) * - col1 - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6335
SELECT - col1 * col1 + CAST ( NULL AS INTEGER ) * - col1 - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 21 AS col2 FROM tab2 AS cor0
----
-21
-21
-21
query I rowsort
SELECT ALL - cor0.col1 + col2 * + 88 AS col2 FROM tab1 AS cor0
----
4726
5006
8435
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( col0 ) + + ( - col2 ) col2 FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6339
SELECT ALL + + 50 DIV cor0.col1 + col2 * - 40 * - col0 AS col1 FROM tab2 cor0
----
120082
7561
81120
skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL + + 50 / cor0.col1 + col2 * - 40 * - col0 AS col1 FROM tab2 cor0
----
120082
7561
81120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col1 + col0 col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT ( + 64 ) FROM tab1, tab1 AS cor0
----
64
query I rowsort
SELECT DISTINCT cor0.col2 + + 64 * + col1 AS col2 FROM tab1 AS cor0
----
1718
697
928
query I rowsort
SELECT ALL - cor0.col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ( 89 ) AS col1 FROM tab0 AS cor0
----
89
89
89
query I rowsort
SELECT DISTINCT 75 + + col2 * col0 FROM tab0 AS cor0
----
110
7373
867
query I rowsort
SELECT ALL col1 * + 12 FROM tab0 cor0
----
1032
1092
1164
query I rowsort
SELECT DISTINCT + + 23 + 21 FROM tab0 AS cor0
----
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6348
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * + cor0.col1 + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-164
-249
-679
skipif mysql # not compatible
query I rowsort label-6348
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * + cor0.col1 + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-164
-249
-679
query I rowsort
SELECT ALL + 80 + + 19 * - col2 FROM tab1 AS cor0
----
-1003
-1744
-946
query I rowsort
SELECT DISTINCT + - 86 AS col2 FROM tab2 AS cor0
----
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-6351
SELECT ALL - col0 DIV tab2.col0 AS col1 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL - col0 / tab2.col0 AS col1 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT ALL - cor1.col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT - col1 - - col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT 58 * col0 - - col0 * + 11 FROM tab0 AS cor0
----
1656
2415
6141
query I rowsort
SELECT - + col0 * cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col2 * col2 * + col2 FROM tab0
----
1
35937
551368
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 * + cor0.col2 col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT + + col2 * - 19 FROM tab2 cor0
----
-494
-513
-722
query I rowsort
SELECT - col2 * ( - 79 ) AS col0 FROM tab2 AS cor0
----
2054
2133
3002
query I rowsort
SELECT - cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT - col2 * + 49 * 13 + col2 * + col2 FROM tab2
----
-15886
-16470
-22762
query I rowsort
SELECT tab0.col0 + - 22 * col2 AS col0 FROM tab0
----
-1715
-702
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-6364
SELECT DISTINCT col2 DIV CAST( col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-6364
SELECT DISTINCT col2 / CAST ( col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
2
5
7
query I rowsort
SELECT - + cor0.col1 * - col0 AS col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT col2 + col0 * ( + col2 ) FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6367
SELECT ALL - col0 * - CAST( - ( + col0 ) * - col2 AS SIGNED ) - - col2 FROM tab2 AS cor0
----
1350
158210
237196
skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL - col0 * - CAST ( - ( + col0 ) * - col2 AS INTEGER ) - - col2 FROM tab2 AS cor0
----
1350
158210
237196
query I rowsort
SELECT + + col0 + - 9 FROM tab2 cor0
----
-2
69
70
query I rowsort
SELECT DISTINCT - - col0 + col1 * col2 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT ALL + col1 * 22 - + col0 AS col1 FROM tab1 AS cor0
----
156
206
569
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col0 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + - col1 * col1 + 98 AS col0 FROM tab0 AS cor0
----
-7298
-8183
-9311
query I rowsort
SELECT DISTINCT - - col1 + - col1 * - ( + col1 * - col2 ) FROM tab2 AS cor0
----
-10965
-25916
-90447
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6374
SELECT ALL + + col2 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL + + col2 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( + ( col1 ) ) * - col1 - 77 AS col1 FROM tab2 AS cor0
----
-1038
-3558
-366
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab0 cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6377
SELECT DISTINCT - CAST( col0 AS SIGNED ) DIV - col1 col0 FROM tab1 AS cor0
----
0
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6377
SELECT DISTINCT - CAST ( col0 AS INTEGER ) / - col1 col0 FROM tab1 AS cor0
----
0
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - col2 ) * col1 col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + - col1 * - col0 + - col0 + 98 FROM tab2 AS cor0
----
1362
308
4622
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 * - col2 - col2 col2 FROM tab1
----
-16320
-36558
-5757
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + col0 col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT 27 * + col0 + + 89 + + 94 AS col0 FROM tab2 AS cor0
----
2289
2316
372
query I rowsort
SELECT + 73 FROM tab2, tab2 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 9f0f371d979e70a792c8597c6559f0e2
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab0, tab1 cor1
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474
query I rowsort
SELECT 49 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 20 * - col2 col2 FROM tab0 AS cor0
----
-1640
-20
-660
query I rowsort
SELECT DISTINCT + col2 + col0 AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT col0 * col1 * + col2 - + tab2.col1 FROM tab2
----
119593
51017
5828
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 27 col2 FROM tab2 AS cor0
----
1593
459
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6390
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) / - col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6390
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) / - col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col1 * col1 + 8 + - col0 AS col1 FROM tab1
----
44
681
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6392
SELECT + cor0.col2 DIV - col0 + col1 + col2 AS col0 FROM tab1 AS cor0
----
108
62
67
skipif mysql # not compatible
query I rowsort label-6392
SELECT + cor0.col2 / - col0 + col1 + col2 AS col0 FROM tab1 AS cor0
----
108
62
67
query I rowsort
SELECT 74 * col0 + - 38 * + col0 - - col1 FROM tab2
----
283
2861
2867
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6394
SELECT DISTINCT - col2 + - col1 + CAST( - col2 AS SIGNED ) * col2 FROM tab0
----
-1208
-6897
-99
skipif mysql # not compatible
query I rowsort label-6394
SELECT DISTINCT - col2 + - col1 + CAST ( - col2 AS INTEGER ) * col2 FROM tab0
----
-1208
-6897
-99
query I rowsort
SELECT ALL - 9 + col0 AS col0 FROM tab1
----
-6
55
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177
onlyif mysql # use DIV operator for integer division
query I rowsort label-6397
SELECT - ( - 52 ) DIV cor0.col0 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c1c66c5648f82da81238f88e27a822f1
skipif mysql # not compatible
query I rowsort label-6397
SELECT - ( - 52 ) / cor0.col0 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c1c66c5648f82da81238f88e27a822f1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6398
SELECT + col1 + - 18 DIV col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6398
SELECT + col1 + - 18 / col1 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) col0 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + - cor0.col2 * col2 + cor0.col2 * ( - col1 + + col1 ) FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-6401
SELECT + + col2 DIV - col1 + col1 * + col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-6401
SELECT + + col2 / - col1 + col1 * + col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - + ( - col2 ) AS col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6403
SELECT ALL + col0 DIV + tab0.col0 AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL + col0 / + tab0.col0 AS col2 FROM tab0
----
1
1
1
query I rowsort
SELECT 37 + + col2 * col2 FROM tab0
----
1126
38
6761
query I rowsort
SELECT + cor1.col0 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-6406
SELECT DISTINCT col2 DIV col0 col1 FROM tab0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6406
SELECT DISTINCT col2 / col0 col1 FROM tab0
----
0
1
query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab2, tab1 cor0, tab1 AS cor1
----
-3
-64
-80
query I rowsort
SELECT + - cor0.col1 + + col1 * + col1 AS col1 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT ALL - ( + col0 ) * - col2 * 84 AS col1 FROM tab1 AS cor0
----
13608
306432
645120
query I rowsort
SELECT ALL + - 83 FROM tab0 AS cor0
----
-83
-83
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6411
SELECT - CAST( NULL AS SIGNED ) * 41 - - cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6411
SELECT - CAST ( NULL AS INTEGER ) * 41 - - cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT 73 * tab2.col2 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to e4e6820209f8f9e5b5b72fb254c69ab0
query I rowsort
SELECT ALL col0 + ( - col1 ) FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT col1 * col1 + + 73 * + col1 FROM tab2
----
1530
3224
7788
query I rowsort
SELECT ALL + tab0.col0 + + 76 * col2 AS col0 FROM tab0
----
111
2532
6321
query I rowsort
SELECT - col1 - - 95 FROM tab2 cor0
----
36
64
78
query I rowsort
SELECT DISTINCT - + col1 - - ( 54 ) AS col0 FROM tab2 AS cor0
----
-5
23
37
query I rowsort
SELECT + col1 + + col0 * - cor0.col0 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT DISTINCT - col1 + 31 AS col2 FROM tab2 AS cor0
----
-28
0
14
query I rowsort
SELECT ALL - 55 * - col2 AS col0 FROM tab1 AS cor0
----
2970
3135
5280
query I rowsort
SELECT - + 71 FROM tab0 AS cor0
----
-71
-71
-71
query I rowsort
SELECT ALL + + col0 * - col1 + cor0.col2 FROM tab2 AS cor0
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-6423
SELECT - col2 + + col0 DIV col1 AS col1 FROM tab1 cor0
----
-51
-54
-90
skipif mysql # not compatible
query I rowsort label-6423
SELECT - col2 + + col0 / col1 AS col1 FROM tab1 cor0
----
-51
-54
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * cor0.col0 + cor0.col0 + 4 col1 FROM tab0 cor0
----
-2036
-3356
-8006
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + col0 * + col2 col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT - cor0.col2 * - 72 + col0 AS col1 FROM tab0 AS cor0
----
107
2400
5993
query I rowsort
SELECT DISTINCT - cor0.col0 + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-14
-156
-158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6428
SELECT DISTINCT 49 * col0 - col2 * CAST( 89 AS SIGNED ) col0 FROM tab2 AS cor0
----
-2060
1508
489
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6428
SELECT DISTINCT 49 * col0 - col2 * CAST ( 89 AS INTEGER ) col0 FROM tab2 AS cor0
----
-2060
1508
489
query I rowsort
SELECT ALL - ( - col2 ) + - col0 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6430
SELECT - CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6430
SELECT - CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 + 96 FROM tab0 cor0
----
182
187
193
query I rowsort
SELECT DISTINCT - + col1 + col0 * col0 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT DISTINCT - ( 47 ) + col1 + + col2 AS col2 FROM tab1 AS cor0
----
20
33
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6434
SELECT DISTINCT CAST( NULL AS SIGNED ) - ( + col1 ) AS col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6434
SELECT DISTINCT CAST ( NULL AS INTEGER ) - ( + col1 ) AS col1 FROM tab0 cor0
----
NULL
query I rowsort
SELECT - col1 * col2 * - col2 + col2 FROM tab0
----
611966
93687
98
query I rowsort
SELECT DISTINCT - tab2.col1 * + col1 + + col2 FROM tab2
----
-251
-3455
-934
query I rowsort
SELECT DISTINCT col0 * + col2 + col1 * - col1 FROM tab1
----
-514
3548
7511
query I rowsort
SELECT tab1.col2 + + col0 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT col2 + + 42 FROM tab2
----
68
69
80
query I rowsort
SELECT + + col0 * + ( col2 ) + - 93 AS col1 FROM tab2 AS cor0
----
1935
2909
96
query I rowsort
SELECT + col0 + + col2 * col0 - + col2 * col0 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab1, tab2 cor0, tab0 AS cor1
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6443
SELECT + + CAST( NULL AS DECIMAL ) * ( col0 ) - 18 * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6443
SELECT + + CAST ( NULL AS REAL ) * ( col0 ) - 18 * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 33 * - col2 FROM tab2
----
-1254
-858
-891
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6445
SELECT - - CAST( NULL AS SIGNED ) + col1 * + col1 + - col0 * col0 * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6445
SELECT - - CAST ( NULL AS INTEGER ) + col1 * + col1 + - col0 * col0 * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 52 - col0 AS col2 FROM tab1 AS cor0
----
-12
-28
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 * + col0 - col0 col0 FROM tab2 AS cor0
----
-273
-3042
-3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-6448
SELECT - - 19 DIV - col1 + + col1 col1 FROM tab2 cor0
----
16
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6448
SELECT - - 19 / - col1 + + col1 col1 FROM tab2 cor0
----
16
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6449
SELECT + CAST( 84 AS SIGNED ) * - col1 FROM tab2
----
-1428
-2604
-4956
skipif mysql # not compatible
query I rowsort label-6449
SELECT + CAST ( 84 AS INTEGER ) * - col1 FROM tab2
----
-1428
-2604
-4956
query I rowsort
SELECT + + 79 * cor0.col0 + + col2 AS col2 FROM tab0 AS cor0
----
1929
2766
7113
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6451
SELECT DISTINCT CAST( - col2 AS SIGNED ) AS col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-6451
SELECT DISTINCT CAST ( - col2 AS INTEGER ) AS col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT col1 * - 88 FROM tab0 AS cor0
----
-7568
-8008
-8536
query I rowsort
SELECT + col0 * col0 + - col2 AS col2 FROM tab2 cor0
----
22
6058
6203
query I rowsort
SELECT 82 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 + + tab0.col0 col1 FROM tab0, tab2, tab0 AS cor0
----
102
113
167
onlyif mysql # use DIV operator for integer division
query I rowsort label-6456
SELECT col0 DIV - col2 + col2 FROM tab1
----
54
56
96
skipif mysql # not compatible
query I rowsort label-6456
SELECT col0 / - col2 + col2 FROM tab1
----
54
56
96
query I rowsort
SELECT DISTINCT + col0 * col2 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT + + col1 + + col2 * - col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT - - col2 * col1 AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL col1 * - col2 * col2 AS col2 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT ALL - cor0.col0 * 2 AS col2 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT - col0 + ( cor0.col0 ) * + col0 AS col1 FROM tab1 AS cor0
----
4032
6
6320
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 8d4d13f65f86e1b26b6004a6bdc662b3
query I rowsort
SELECT DISTINCT tab2.col0 * - col2 AS col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT col1 * 86 AS col0 FROM tab0 AS cor0
----
7396
7826
8342
query I rowsort
SELECT DISTINCT - col0 + 15 AS col1 FROM tab0 AS cor0
----
-20
-74
-9
query I rowsort
SELECT - 79 AS col2 FROM tab2
----
-79
-79
-79
query I rowsort
SELECT + col2 * 80 AS col1 FROM tab2 AS cor0
----
2080
2160
3040
query I rowsort
SELECT DISTINCT - + col0 * 97 + + col0 FROM tab2 AS cor0
----
-672
-7488
-7584
query I rowsort
SELECT + - col1 * + col0 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort
SELECT ALL + - col2 * CAST ( + col0 AS REAL ) + col1 * ( col1 ) AS col2 FROM tab0 AS cor0
----
6604
9374
983
query I rowsort
SELECT DISTINCT + col0 - cor0.col2 * + col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT col2 - col2 AS col1 FROM tab0 cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6474
SELECT - + CAST( NULL AS SIGNED ) + col0 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6474
SELECT - + CAST ( NULL AS INTEGER ) + col0 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 + col1 * col2 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL col1 * + col0 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + + col0 + - col2 + - col1 AS col1 FROM tab2 AS cor0
----
-51
-7
24
query I rowsort
SELECT ALL - 77 + + col0 FROM tab2 AS cor0
----
-70
1
2
query I rowsort
SELECT DISTINCT - + 99 AS col2 FROM tab2 cor0
----
-99
query I rowsort
SELECT - 73 + col1 AS col1 FROM tab0 AS cor0
----
13
18
24
query I rowsort
SELECT - 96 * + col0 + col2 + col1 FROM tab2 AS cor0
----
-614
-7403
-7529
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6482
SELECT DISTINCT - ( cor0.col2 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT - ( cor0.col2 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + cor0.col1 * - col1 + col1 * col0 FROM tab0 cor0
----
-182
-5332
-6014
query I rowsort
SELECT - ( + 61 ) * col0 FROM tab1
----
-183
-3904
-4880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6485
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 col0 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 col0 FROM tab0
----
NULL
query I rowsort
SELECT ALL + tab1.col2 AS col1 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT ALL + 16 AS col0 FROM tab1
----
16
16
16
query I rowsort
SELECT - cor0.col0 * + cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 02551feb5ca40c11f08ef3f9e9603264
query I rowsort
SELECT + + 9 * + col1 AS col1 FROM tab1 AS cor0
----
117
234
90
query I rowsort
SELECT 0 * col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 * col0 * col2 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT DISTINCT col1 * + col1 * ( col1 ) + - col2 + - 87 * col0 * + col2 FROM tab0
----
118563
567119
909627
query I rowsort
SELECT col1 + - col2 + + col0 AS col2 FROM tab1
----
-25
-3
17
query I rowsort
SELECT + col2 + col0 * tab0.col0 * - col2 FROM tab0
----
-1224
-18975
-649440
query I rowsort
SELECT - 34 - - tab2.col2 FROM tab2
----
-7
-8
4
query I rowsort
SELECT 2 * + col0 AS col1 FROM tab2
----
14
156
158
query I rowsort
SELECT DISTINCT + 6 + - col1 AS col1 FROM tab2
----
-11
-25
-53
query I rowsort
SELECT DISTINCT col0 + - tab0.col2 * ( col1 * + tab0.col2 ) AS col0 FROM tab0
----
-611795
-62
-93630
query I rowsort
SELECT DISTINCT - col2 * col2 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT col1 * + col1 * col1 FROM tab1 AS cor0
----
1000
17576
2197
query I rowsort
SELECT DISTINCT + + col2 * - ( + col2 ) AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT col0 + + col2 + col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
2132
223
3119
onlyif mysql # use DIV operator for integer division
query I rowsort label-6503
SELECT - col0 DIV 47 FROM tab2 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-6503
SELECT - col0 / 47 FROM tab2 AS cor0
----
-1
-1
0
query I rowsort
SELECT - 61 * - tab0.col1 + col1 FROM tab0
----
5332
5642
6014
onlyif mysql # use DIV operator for integer division
query I rowsort label-6505
SELECT ALL + 49 + + col1 DIV 94 + tab1.col1 AS col1 FROM tab1
----
59
62
75
skipif mysql # not compatible
query I rowsort label-6505
SELECT ALL + 49 + + col1 / 94 + tab1.col1 AS col1 FROM tab1
----
59
62
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-6506
SELECT - col1 DIV tab1.col0 + 78 FROM tab1
----
70
78
78
skipif mysql # not compatible
query I rowsort label-6506
SELECT - col1 / tab1.col0 + 78 FROM tab1
----
70
78
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6507
SELECT DISTINCT col2 + tab0.col2 DIV + 76 AS col2 FROM tab0
----
1
33
83
skipif mysql # not compatible
query I rowsort label-6507
SELECT DISTINCT col2 + tab0.col2 / + 76 AS col2 FROM tab0
----
1
33
83
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-6509
SELECT col0 + - CAST( col0 AS SIGNED ) col1 FROM tab1 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6509
SELECT col0 + - CAST ( col0 AS INTEGER ) col1 FROM tab1 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + cor0.col0 col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL + col2 * ( + cor0.col0 ) + col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT tab2.col1 * + 22 FROM tab2
----
1298
374
682
onlyif mysql # use DIV operator for integer division
query I rowsort label-6513
SELECT col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6513
SELECT col2 / - col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + col1 * cor0.col1 * cor0.col2 FROM tab2 AS cor0
----
10982
25947
90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 12 col1 FROM tab1 AS cor0
----
108
66
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-6516
SELECT - + col2 DIV cor0.col2 AS col0 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6516
SELECT - + col2 / cor0.col2 AS col0 FROM tab1 cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT cor0.col1 * + ( col0 ) AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - ( col0 ) * - col2 * - 33 - - 41 FROM tab0
----
-1114
-240793
-26095
query I rowsort
SELECT ALL + 82 * - col0 * - col1 + 0 FROM tab1 AS cor0
----
52480
6396
85280
query I rowsort
SELECT ALL - cor0.col2 * + cor0.col2 + col2 AS col1 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT 37 * + 95 FROM tab1 cor0
----
3515
3515
3515
query I rowsort
SELECT DISTINCT ( + col1 ) * col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + - 23 + + col0 + + col0 FROM tab0 cor0
----
155
25
47
query I rowsort
SELECT + + ( col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + cor0.col2 + + col0 AS col1 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6527
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6527
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 46 + + col1 FROM tab0 AS cor0
----
132
137
143
onlyif mysql # use DIV operator for integer division
query I rowsort label-6529
SELECT ALL - - col2 DIV + col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6529
SELECT ALL - - col2 / + col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + cor0.col1 + col2 * - ( 3 ) FROM tab1 AS cor0
----
-136
-161
-275
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-6532
SELECT 57 + col2 DIV 60 AS col2 FROM tab2 AS cor0
----
57
57
57
skipif mysql # not compatible
query I rowsort label-6532
SELECT 57 + col2 / 60 AS col2 FROM tab2 AS cor0
----
57
57
57
query I rowsort
SELECT DISTINCT + - col2 * col2 + + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT + 95 FROM tab1 AS cor0
----
95
95
95
query I rowsort
SELECT ALL + 53 - col0 * col1 FROM tab0 AS cor0
----
-2011
-3342
-8046
onlyif mysql # use DIV operator for integer division
query I rowsort label-6536
SELECT ALL - - col1 DIV - col2 + 51 FROM tab1 AS cor0
----
51
51
51
skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL - - col1 / - col2 + 51 FROM tab1 AS cor0
----
51
51
51
query I rowsort
SELECT DISTINCT + - ( col1 ) * col0 + - col0 AS col2 FROM tab0 cor0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL + cor0.col1 * - ( cor0.col1 ) AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 38f503ad6f93db2d1a70a8c95bb8c2c2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9
query I rowsort
SELECT + col2 - col2 AS col0 FROM tab2 AS cor0
----
0
0
0
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 cor2
----
3645 values hashing to 28412d50061391eec23a02d0efcfb3f9
query I rowsort
SELECT ALL 75 AS col1 FROM tab1 cor0
----
75
75
75
query I rowsort
SELECT + 76 AS col1 FROM tab1 AS cor0
----
76
76
76
query I rowsort
SELECT tab2.col0 + - col0 - + col1 FROM tab2
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-6545
SELECT + col1 DIV col0 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-6545
SELECT + col1 / col0 FROM tab2
----
0
0
4
query I rowsort
SELECT - col2 - - col1 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT + tab1.col2 * - col1 * - col0 + col1 AS col1 FROM tab1
----
36490
4238
99853
query I rowsort
SELECT ALL + tab0.col1 + + col1 AS col2 FROM tab0
----
172
182
194
query I rowsort
SELECT + tab1.col1 * tab1.col0 + tab1.col1 AS col1 FROM tab1
----
104
1053
650
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 + col0 BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT ALL col2 * - col1 * + tab0.col1 AS col2 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT - col2 FROM tab2 WHERE NOT NULL IN ( col1 / tab2.col0 )
----
query I rowsort
SELECT col0 * col0 * + col0 AS col1 FROM tab0
----
13824
42875
704969
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( tab0.col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col1 col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL col0 * - col1 * col2 AS col0 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col1 )
----
query I rowsort
SELECT DISTINCT - tab2.col0 * tab2.col2 FROM tab2
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 + + col1 - col2 col1 FROM tab2
----
193
2061
2981
query I rowsort
SELECT - col1 * + col0 - + col0 FROM tab1
----
-1120
-704
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + col0 + col2 col2 FROM tab2
----
2132
223
3119
query I rowsort
SELECT DISTINCT col2 + + col2 * - col2 FROM tab0
----
-1056
-6642
0
query I rowsort
SELECT col0 - tab2.col0 AS col1 FROM tab2
----
0
0
0
query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 ) IN ( - col0 )
----
query I rowsort
SELECT ALL col0 * col0 + - col0 FROM tab0
----
1190
552
7832
query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT ALL col0 + - col1 AS col1 FROM tab0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6568
SELECT col0 - - col1 DIV - col0 AS col0 FROM tab1
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-6568
SELECT col0 - - col1 / - col0 AS col0 FROM tab1
----
-5
64
80
query I rowsort
SELECT DISTINCT + tab0.col1 - col2 * col0 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT col1 * col2 + + col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT col1 * tab1.col0 + - col1 AS col1 FROM tab1
----
1027
52
630
query I rowsort
SELECT DISTINCT tab0.col0 * - col2 AS col2 FROM tab0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 * + col2 col0 FROM tab2
----
1444
676
729
query III rowsort
SELECT * FROM tab1 WHERE - col2 + - col0 NOT BETWEEN NULL AND ( + col2 )
----
query I rowsort
SELECT DISTINCT col1 * - tab0.col0 FROM tab0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + col2 col1 FROM tab2
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-6577
SELECT - col1 DIV col1 - - col0 AS col0 FROM tab2 cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-6577
SELECT - col1 / col1 - - col0 AS col0 FROM tab2 cor0
----
6
77
78
query I rowsort
SELECT col1 - - col0 FROM tab1 cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col2 col2 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-6580
SELECT col2 DIV col0 - + col1 * col2 col2 FROM tab1 AS cor0
----
-1247
-1386
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6580
SELECT col2 / col0 - + col1 * col2 col2 FROM tab1 AS cor0
----
-1247
-1386
-570
query I rowsort
SELECT ALL col1 * + col0 * - col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT DISTINCT col2 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + 44 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT + cor0.col1 * - 49 FROM tab2 AS cor0
----
-1519
-2891
-833
onlyif mysql # use DIV operator for integer division
query I rowsort label-6585
SELECT - + col1 DIV + col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-6585
SELECT - + col1 / + col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT - - cor0.col1 AS col1 FROM tab1 cor0
----
10
13
26
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 cor2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
query I rowsort
SELECT 12 * - col2 + + col0 AS col2 FROM tab1 AS cor0
----
-1072
-620
-645
query I rowsort
SELECT ALL 59 * col2 + col2 - 40 FROM tab2
----
1520
1580
2240
onlyif mysql # use DIV operator for integer division
query I rowsort label-6590
SELECT - 44 + + col1 DIV - col0 + - ( + col0 ) AS col2 FROM tab2
----
-122
-123
-55
skipif mysql # not compatible
query I rowsort label-6590
SELECT - 44 + + col1 / - col0 + - ( + col0 ) AS col2 FROM tab2
----
-122
-123
-55
onlyif mysql # use DIV operator for integer division
query I rowsort label-6591
SELECT - col1 DIV col0 + - col1 + 1 * + col2 AS col0 FROM tab2 AS cor0
----
-33
-8
21
skipif mysql # not compatible
query I rowsort label-6591
SELECT - col1 / col0 + - col1 + 1 * + col2 AS col0 FROM tab2 AS cor0
----
-33
-8
21
query I rowsort
SELECT tab1.col0 * 7 + - tab1.col1 FROM tab1
----
-5
438
547
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-6594
SELECT - - CAST( NULL AS SIGNED ) - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6594
SELECT - - CAST ( NULL AS INTEGER ) - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 24 + - cor0.col2 FROM tab1 AS cor0
----
-30
-33
-72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6596
SELECT - CAST( - col1 AS SIGNED ) + - col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-6596
SELECT - CAST ( - col1 AS INTEGER ) + - col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - cor0.col1 * col0 AS col2 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + - col1 * col2 + + col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 37 col0 FROM tab1 cor0
----
1998
2109
3552
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 + + 69 col0 FROM tab1
----
-1179
-1335
-501
query I rowsort
SELECT ALL col0 + col0 AS col0 FROM tab2
----
14
156
158
query I rowsort
SELECT + col2 - - col2 AS col1 FROM tab0
----
164
2
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6603
SELECT + - CAST( ( cor0.col1 ) AS SIGNED ) + + col2 FROM tab2 AS cor0
----
-33
-4
21
skipif mysql # not compatible
query I rowsort label-6603
SELECT + - CAST ( ( cor0.col1 ) AS INTEGER ) + + col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT ( + col1 ) + - col1 * col0 AS col0 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT tab2.col1 + 9 AS col2 FROM tab2
----
26
40
68
query I rowsort
SELECT - ( col0 ) * col1 + - col2 AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-6607
SELECT - 34 + cor0.col2 DIV col2 + - ( cor0.col0 * col1 ) AS col2 FROM tab0 AS cor0
----
-2097
-3428
-8132
skipif mysql # not compatible
query I rowsort label-6607
SELECT - 34 + cor0.col2 / col2 + - ( cor0.col0 * col1 ) AS col2 FROM tab0 AS cor0
----
-2097
-3428
-8132
query I rowsort
SELECT ALL - - col2 + col0 AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - - 82 FROM tab0 AS cor0
----
82
82
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6610
SELECT ALL - col0 + col0 + CAST( + col1 AS SIGNED ) DIV col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL - col0 + col0 + CAST ( + col1 AS INTEGER ) / col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + - 87 - - col0 AS col0 FROM tab0 AS cor0
----
-52
-63
2
query I rowsort
SELECT ALL cor0.col1 * + col1 + - col2 AS col2 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT ALL + + 50 - + col2 AS col1 FROM tab1 AS cor0
----
-4
-46
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 65 * + col2 ) col2 FROM tab1
----
3510
3705
6240
query I rowsort
SELECT DISTINCT - ( col2 ) AS col1 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT col0 * + col1 + 52 FROM tab2 AS cor0
----
1395
269
4654
query I rowsort
SELECT ALL + + col2 + - col1 * - col1 * + ( + col2 ) FROM tab0 AS cor0
----
244101
679124
9410
query I rowsort
SELECT DISTINCT 53 * + col0 - 28 FROM tab1 AS cor0
----
131
3364
4212
query I rowsort
SELECT ( - tab2.col2 + - col0 ) * + ( + col1 ) AS col2 FROM tab2
----
-1054
-1989
-6136
query I rowsort
SELECT col1 * cor0.col0 * ( cor0.col2 ) FROM tab0 cor0
----
3395
664118
68112
query I rowsort
SELECT - col1 * + cor0.col1 - col0 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT - + col2 * + col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + - col0 - - col0 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT col1 * 87 + col1 FROM tab2 AS cor0
----
1496
2728
5192
query I rowsort
SELECT - col2 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT col1 + - col0 * col2 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT + ( col1 ) * ( + col0 ) + tab1.col2 FROM tab1
----
1136
132
697
query I rowsort
SELECT - col1 * + col2 - + col2 FROM tab2 AS cor0
----
-1560
-684
-864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + 55 col0 FROM tab0 cor0
----
-31
-36
-42
query I rowsort
SELECT ALL col2 + - 0 * + cor0.col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL col2 * 62 AS col2 FROM tab2 AS cor0
----
1612
1674
2356
onlyif mysql # use DIV operator for integer division
query I rowsort label-6632
SELECT + + col1 DIV 47 - 58 * + col0 FROM tab0 AS cor0
----
-1391
-2028
-5161
skipif mysql # not compatible
query I rowsort label-6632
SELECT + + col1 / 47 - 58 * + col0 FROM tab0 AS cor0
----
-1391
-2028
-5161
query I rowsort
SELECT ALL - col2 * 7 + col2 * + cor0.col2 FROM tab2 AS cor0
----
1178
494
540
query I rowsort
SELECT + - 37 FROM tab2 cor0
----
-37
-37
-37
query I rowsort
SELECT + 6 + col0 FROM tab1 AS cor0
----
70
86
9
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to a9068b700464993db9fae6f630605fde
query I rowsort
SELECT col0 + col0 + col0 FROM tab1 cor0
----
192
240
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 col2 FROM tab1 AS cor0
----
18
18
18
query I rowsort
SELECT - + 38 * col2 FROM tab2 AS cor0
----
-1026
-1444
-988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 75 col1 FROM tab1 AS cor0
----
-225
-4800
-6000
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6641
SELECT ALL - - CAST( 82 AS SIGNED ) + cor0.col0 FROM tab2 AS cor0
----
160
161
89
skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL - - CAST ( 82 AS INTEGER ) + cor0.col0 FROM tab2 AS cor0
----
160
161
89
query I rowsort
SELECT + col2 * + col1 * col2 + - 8 + 62 FROM tab1 cor0
----
119862
32544
75870
query I rowsort
SELECT DISTINCT - + cor0.col0 * col1 + col0 FROM tab2 cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL + + cor0.col0 * 28 * col0 FROM tab1 AS cor0
----
114688
179200
252
query I rowsort
SELECT + col1 - 57 AS col1 FROM tab0 AS cor0
----
29
34
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 col1 FROM tab2 AS cor0
----
16
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 + + ( + cor0.col1 ) + - cor0.col1 col0 FROM tab1 cor0
----
51
51
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6648
SELECT DISTINCT + ( + ( col2 ) ) + + CAST( col0 AS SIGNED ) * - col0 AS col0 FROM tab1 AS cor0
----
-4039
-6304
45
skipif mysql # not compatible
query I rowsort label-6648
SELECT DISTINCT + ( + ( col2 ) ) + + CAST ( col0 AS INTEGER ) * - col0 AS col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT + 61 * col2 + - col2 + 94 FROM tab2 cor0
----
1654
1714
2374
query I rowsort
SELECT + + cor0.col2 * 97 + cor0.col2 * - 63 AS col1 FROM tab0 AS cor0
----
1122
2788
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6651
SELECT col0 + col2 DIV - col1 + - col0 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-6651
SELECT col0 + col2 / - col1 + - col0 FROM tab2
----
-2
0
0
query I rowsort
SELECT ALL 94 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT + 70 * + 83 FROM tab1, tab0, tab0 AS cor0, tab2
----
81 values hashing to b7fdf47ac3b9c2ea8563391a43cc7a19
query I rowsort
SELECT ALL - col1 - ( col1 ) * - col2 * - col0 AS col2 FROM tab1
----
-36490
-4238
-99853
onlyif mysql # use DIV operator for integer division
query I rowsort label-6655
SELECT DISTINCT + ( - col1 ) * col0 + - ( + 6 ) DIV col0 FROM tab0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-6655
SELECT DISTINCT + ( - col1 ) * col0 + - ( + 6 ) / col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT - 31 * 40 AS col1 FROM tab2 AS cor0
----
-1240
-1240
-1240
onlyif mysql # use DIV operator for integer division
query I rowsort label-6657
SELECT ALL - col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL - col1 / - col1 AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT DISTINCT 77 + col1 FROM tab2 AS cor0
----
108
136
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-6660
SELECT + cor0.col2 DIV col2 + col0 DIV ( - col1 * + col0 ) FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6660
SELECT + cor0.col2 / col2 + col0 / ( - col1 * + col0 ) FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - 34 + - col0 * - col1 * - 10 FROM tab0 AS cor0
----
-20674
-33984
-81024
query I rowsort
SELECT DISTINCT - cor0.col1 + col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - 76 AS col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0
query I rowsort
SELECT ALL + ( 90 ) AS col0 FROM tab2 AS cor0
----
90
90
90
query I rowsort
SELECT DISTINCT - ( - col2 ) + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT ( + col0 ) + + ( - tab1.col2 * col1 + tab1.col1 ) FROM tab1
----
-1155
-1375
-496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + cor0.col1 * + col2 col1 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-6668
SELECT ALL - cor0.col1 DIV - col1 + - cor0.col0 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL - cor0.col1 / - col1 + - cor0.col0 FROM tab1 AS cor0
----
-2
-63
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6669
SELECT DISTINCT tab2.col1 DIV + col1 AS col0 FROM tab2
----
1
skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT tab2.col1 / + col1 AS col0 FROM tab2
----
1
query I rowsort
SELECT col1 * - col0 + + col1 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT - - cor0.col1 + - cor0.col0 FROM tab2 AS cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * 45 col1 FROM tab0 AS cor0
----
-1485
-3690
-45
query I rowsort
SELECT DISTINCT + + col2 + - 33 AS col1 FROM tab2 AS cor0
----
-6
-7
5
query I rowsort
SELECT DISTINCT 11 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
11
query I rowsort
SELECT DISTINCT + - col1 * - col0 + - col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ALL col2 * 70 + cor0.col2 AS col0 FROM tab2 cor0
----
1846
1917
2698
query I rowsort
SELECT ALL 40 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
query I rowsort
SELECT DISTINCT + - col1 * + cor0.col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - col1 * col0 * - col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL 72 + cor0.col0 AS col1 FROM tab2 AS cor0
----
150
151
79
query I rowsort
SELECT 27 - col1 * 67 AS col2 FROM tab2 AS cor0
----
-1112
-2050
-3926
query I rowsort
SELECT 29 * col0 * + 43 + col2 AS col2 FROM tab0 cor0
----
111065
29961
43646
query I rowsort
SELECT ALL 79 AS col0 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
query I rowsort
SELECT - ( - col1 ) - 31 AS col0 FROM tab2 AS cor0
----
-14
0
28
query I rowsort
SELECT DISTINCT - + col1 * col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT 10 AS col2 FROM tab1 AS cor0
----
10
10
10
query I rowsort
SELECT + 18 + - col2 * + col2 FROM tab2 AS cor0
----
-1426
-658
-711
query I rowsort
SELECT ALL 3 * col2 AS col0 FROM tab1 AS cor0
----
162
171
288
query I rowsort
SELECT ALL - - 74 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6690
SELECT - + col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6690
SELECT - + col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( col0 ) + col2 * + col2 * col0 AS col0 FROM tab0
----
26160
598525
70
query I rowsort
SELECT DISTINCT + 53 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
53
query I rowsort
SELECT ALL - 20 + col2 FROM tab2
----
18
6
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-6694
SELECT ALL + ( + cor0.col1 ) DIV + col0 col0 FROM tab2 AS cor0
----
0
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6694
SELECT ALL + ( + cor0.col1 ) / + col0 col0 FROM tab2 AS cor0
----
0
0
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-6695
SELECT col1 DIV 15 FROM tab2 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-6695
SELECT col1 / 15 FROM tab2 AS cor0
----
1
2
3
query I rowsort
SELECT DISTINCT + col0 * + 97 FROM tab2 AS cor0
----
679
7566
7663
query I rowsort
SELECT ALL - ( col2 ) * - col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT cor2.col2 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT 31 FROM tab1, tab0 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT ALL + col1 * 52 * col0 FROM tab0
----
107328
176540
421148
query I rowsort
SELECT 7 * - col0 FROM tab1 AS cor0
----
-21
-448
-560
query I rowsort
SELECT DISTINCT + - ( - cor0.col2 ) * - col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-6703
SELECT DISTINCT + col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT + col0 / - col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT 11 AS col2 FROM tab0
----
11
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab0, tab0 cor1
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0
query I rowsort
SELECT - col0 * col2 * + 6 AS col1 FROM tab2 AS cor0
----
-1134
-12168
-18012
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab2 cor1, tab2 AS cor2
----
3645 values hashing to 2c0370ee2d7726affde9c7c0de12a506
query I rowsort
SELECT ALL + tab0.col2 FROM tab0, tab1 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT 55 AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
query I rowsort
SELECT - cor0.col2 - 81 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 70b10e709f29aebc58f371ae1b2eeb8c
query I rowsort
SELECT DISTINCT 57 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
57
query I rowsort
SELECT + col0 * col1 * + col0 FROM tab2 AS cor0
----
106097
1519
358956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT 32 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b
query I rowsort
SELECT DISTINCT + cor0.col1 * - 52 FROM tab0, tab0 AS cor0
----
-4472
-4732
-5044
query I rowsort
SELECT - col2 + cor0.col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT ALL col1 + 42 AS col0 FROM tab1 AS cor0
----
52
55
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + + col0 + cor0.col1 * - col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT - 96 AS col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798
query I rowsort
SELECT - - col0 * 77 + col1 AS col2 FROM tab0 AS cor0
----
1934
2792
6944
query I rowsort
SELECT ALL - ( - col0 ) * col0 + col1 AS col1 FROM tab2 cor0
----
6143
6258
80
query I rowsort
SELECT + 78 FROM tab1 cor0
----
78
78
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 56 * 0 col0 FROM tab0 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6725
SELECT - cor0.col0 DIV col2 col2 FROM tab0 AS cor0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6725
SELECT - cor0.col0 / col2 col2 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT - 28 AS col0 FROM tab1 AS cor0
----
-28
-28
-28
query I rowsort
SELECT - + 79 AS col2 FROM tab0 AS cor0
----
-79
-79
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6728
SELECT + CAST( + 59 AS SIGNED ) FROM tab0 AS cor0
----
59
59
59
skipif mysql # not compatible
query I rowsort label-6728
SELECT + CAST ( + 59 AS INTEGER ) FROM tab0 AS cor0
----
59
59
59
query I rowsort
SELECT ALL + - col1 * - col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL col2 - col2 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT tab2.col0 * tab2.col1 + col1 * - col1 + col2 AS col0 FROM tab2
----
-717
1092
1147
query I rowsort
SELECT DISTINCT col1 * + col1 + - tab2.col2 * - col0 FROM tab2
----
1150
3291
5509
query I rowsort
SELECT ALL + col2 + - col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT DISTINCT - tab1.col1 + - 98 + col1 FROM tab1
----
-98
query I rowsort
SELECT col1 + - col0 + 61 * col0 FROM tab2
----
451
4739
4757
query I rowsort
SELECT ALL + col0 + col1 * col0 FROM tab2
----
1422
224
4680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6737
SELECT DISTINCT col2 + col1 + - ( + col2 * - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-6737
SELECT DISTINCT col2 + col1 + - ( + col2 * - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
query I rowsort
SELECT + col0 - - 69 FROM tab0
----
104
158
93
query I rowsort
SELECT DISTINCT - col1 * col2 + - col1 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT col0 + ( cor0.col0 ) AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + col1 + 47 + + col0 * col2 FROM tab0 AS cor0
----
179
7436
925
query I rowsort
SELECT + cor0.col2 * - 77 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 263ef205b9dbc742732833dbcfe5acc7
query I rowsort
SELECT DISTINCT - 87 FROM tab0
----
-87
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab2 cor1, tab0, tab2 AS cor2
----
3645 values hashing to 6a08afba67ce3272fad6d766e76c67f0
query I rowsort
SELECT DISTINCT ( col0 ) * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT 78 * - col0 - - col1 AS col0 FROM tab1 AS cor0
----
-208
-4982
-6227
query I rowsort
SELECT - col2 + col1 * col1 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT + + 8 * + col1 * 42 + - cor0.col2 + - col1 AS col2 FROM tab2 AS cor0
----
10358
19739
5657
query I rowsort
SELECT DISTINCT ( - col0 ) + + col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL + col0 + col0 * col0 * col0 AS col2 FROM tab1 AS cor0
----
262208
30
512080
onlyif mysql # use DIV operator for integer division
query I rowsort label-6751
SELECT DISTINCT - - col2 DIV col2 + col1 AS col0 FROM tab1 cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT - - col2 / col2 + col1 AS col0 FROM tab1 cor0
----
11
14
27
query I rowsort
SELECT - cor0.col0 + + col0 * - ( 49 ) AS col2 FROM tab1 AS cor0
----
-150
-3200
-4000
query I rowsort
SELECT ALL + 88 AS col0 FROM tab1 AS cor0
----
88
88
88
query I rowsort
SELECT DISTINCT + - col0 * + cor0.col2 + + ( - ( - col0 ) ) FROM tab1 cor0
----
-159
-3584
-7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6755
SELECT col2 * - col0 / CAST( NULL AS SIGNED ) + 55 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6755
SELECT col2 * - col0 / CAST ( NULL AS INTEGER ) + 55 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + + col2 * - 77 FROM tab2 cor0
----
-1976
-2052
-2888
query I rowsort
SELECT - cor0.col1 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab2 AS cor0, tab2 AS cor1
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
query I rowsort
SELECT ALL + col2 * col2 + ( col1 + - col1 ) * - 9 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-6760
SELECT ALL + - col2 DIV col1 col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL + - col2 / col1 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col1 * + col0 + 31 FROM tab2 AS cor0
----
1374
248
4633
query I rowsort
SELECT + + col2 + + col1 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + cor0.col0 - - col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - cor0.col0 * 39 - + 82 AS col1 FROM tab1 cor0
----
-199
-2578
-3202
query I rowsort
SELECT ALL col2 * 73 AS col1 FROM tab0 AS cor0
----
2409
5986
73
query I rowsort
SELECT ALL + - cor0.col0 + + col1 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT - col0 * 2 + col2 AS col1 FROM tab1 AS cor0
----
-64
-71
48
query I rowsort
SELECT ALL + - col2 + - col1 * + col1 AS col0 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT col1 - ( col1 + cor0.col0 ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + cor0.col1 * + 50 + 75 FROM tab2 cor0
----
1625
3025
925
query I rowsort
SELECT - 26 + col2 * col0 AS col2 FROM tab1
----
136
3622
7654
query I rowsort
SELECT + - col1 * - cor0.col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT ( - 52 ) AS col1 FROM tab1 AS cor0
----
-52
query I rowsort
SELECT col0 + 88 FROM tab0 AS cor0
----
112
123
177
query I rowsort
SELECT ALL - col0 * 51 FROM tab0 AS cor0
----
-1224
-1785
-4539
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6776
SELECT ALL + CAST( col1 AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL + CAST ( col1 AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + col1 - + col1 FROM tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6778
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6778
SELECT DISTINCT - + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + col2 * - col2 + + col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT ALL 70 + ( + col2 ) * - 57 FROM tab1 AS cor0
----
-3008
-3179
-5402
query I rowsort
SELECT ALL - col1 + 40 * col2 AS col0 FROM tab0 AS cor0
----
-57
1234
3189
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 97 col1 FROM tab1 cor0
----
151
154
193
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( 51 AS REAL ) FROM tab0 AS cor0
----
-51
query I rowsort
SELECT ALL + ( 8 ) + - col2 * + col1 * 90 AS col2 FROM tab1 AS cor0
----
-112312
-126352
-51292
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6785
SELECT CAST( + col2 AS SIGNED ) + + col1 FROM tab0 AS cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-6785
SELECT CAST ( + col2 AS INTEGER ) + + col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + col2 * tab0.col0 * - tab0.col1 + col1 FROM tab0
----
-3298
-664027
-68026
query I rowsort
SELECT col0 + 38 AS col0 FROM tab1
----
102
118
41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6788
SELECT ALL CAST( col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL CAST ( col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT + - 88 AS col0 FROM tab0 AS cor0
----
-88
-88
-88
query I rowsort
SELECT - 23 * 76 + col0 + cor0.col2 * + col0 FROM tab2 AS cor0
----
-1552
1333
358
query I rowsort
SELECT DISTINCT 87 * col0 AS col1 FROM tab1
----
261
5568
6960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6792
SELECT CAST( col2 * - col2 AS SIGNED ) + 16 * col1 AS col2 FROM tab1
----
-2500
-3089
-9008
skipif mysql # not compatible
query I rowsort label-6792
SELECT CAST ( col2 * - col2 AS INTEGER ) + 16 * col1 AS col2 FROM tab1
----
-2500
-3089
-9008
query I rowsort
SELECT DISTINCT + col0 * - col0 * - col1 FROM tab0 AS cor0
----
118825
49536
720811
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6794
SELECT ALL + CAST( col1 AS SIGNED ) * - col2 * 15 + col0 FROM tab0 AS cor0
----
-111841
-1420
-42546
skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL + CAST ( col1 AS INTEGER ) * - col2 * 15 + col0 FROM tab0 AS cor0
----
-111841
-1420
-42546
query I rowsort
SELECT ALL - col0 - - col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT 13 + 23 FROM tab1
----
36
36
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a
query I rowsort
SELECT ALL 38 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-6799
SELECT col1 + - col2 * col2 DIV col2 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-6799
SELECT col1 + - col2 * col2 / col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL + + ( col2 ) AS col2 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + col1 AS REAL ) FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( + col2 AS REAL ) + col0 * 72 FROM tab0 AS cor0
----
1695
2519
6326
query I rowsort
SELECT DISTINCT col1 * + 49 AS col2 FROM tab0 AS cor0
----
4214
4459
4753
query I rowsort
SELECT + ( col0 ) * col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL + - 17 * 60 FROM tab0 AS cor0
----
-1020
-1020
-1020
onlyif mysql # use DIV operator for integer division
query I rowsort label-6806
SELECT - 4 DIV 89 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6806
SELECT - 4 / 89 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * - col2 * + col0 AS col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT - col0 + - cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT ALL + 4 - + 52 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c
query I rowsort
SELECT + + col1 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - col1 + - cor0.col2 * col0 * 55 FROM tab1 AS cor0
----
-200650
-422413
-8936
onlyif mysql # use DIV operator for integer division
query I rowsort label-6812
SELECT + + 28 DIV + cor0.col1 + + 85 + col2 FROM tab0 AS cor0
----
118
167
86
skipif mysql # not compatible
query I rowsort label-6812
SELECT + + 28 / + cor0.col1 + + 85 + col2 FROM tab0 AS cor0
----
118
167
86
query I rowsort
SELECT DISTINCT 96 * col2 AS col1 FROM tab1 AS cor0
----
5184
5472
9216
query I rowsort
SELECT + col0 + col2 * ( - col2 ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
-119728
-32426
-75813
query I rowsort
SELECT ALL + + col1 * col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + col0 + col1 * - col1 * col2 FROM tab1 AS cor0
----
-16144
-36501
-5636
query I rowsort
SELECT DISTINCT - col1 + - col1 + - 86 AS col0 FROM tab2 AS cor0
----
-120
-148
-204
query I rowsort
SELECT DISTINCT + - col0 * col1 + col1 FROM tab1 cor0
----
-1027
-52
-630
query I rowsort
SELECT + cor0.col2 + col0 * + col1 AS col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL - 30 FROM tab1 AS cor0
----
-30
-30
-30
query I rowsort
SELECT DISTINCT col1 * - col1 + - 87 AS col2 FROM tab2 AS cor0
----
-1048
-3568
-376
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 - + 2 col2 FROM tab0 AS cor0
----
33
7296
790
query I rowsort
SELECT - cor0.col1 * col2 AS col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT - - 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-6825
SELECT cor0.col2 + - col1 * - ( - col0 * + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6825
SELECT cor0.col2 + - col1 * - ( - col0 * + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col1 * - col0 + - col0 + - col1 * - ( + col0 + - col1 ) AS col2 FROM tab0 AS cor0
----
-2654
-3292
7828
query I rowsort
SELECT ALL + col2 * + 6 + + col1 AS col1 FROM tab2 AS cor0
----
193
215
245
query I rowsort
SELECT DISTINCT + cor0.col1 + + 79 * + col1 AS col1 FROM tab0 AS cor0
----
6880
7280
7760
query I rowsort
SELECT - col2 * ( 35 * col0 ) FROM tab1 AS cor0
----
-127680
-268800
-5670
onlyif mysql # use DIV operator for integer division
query I rowsort label-6830
SELECT - + tab0.col2 DIV tab0.col0 + tab0.col0 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to a44a79e59e304e37967b235b55b80b71
skipif mysql # not compatible
query I rowsort label-6830
SELECT - + tab0.col2 / tab0.col0 + tab0.col0 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to a44a79e59e304e37967b235b55b80b71
query I rowsort
SELECT + col0 * col0 + + cor0.col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT cor0.col0 + 61 * 32 + col1 FROM tab0 AS cor0
----
2062
2084
2132
query I rowsort
SELECT - + col1 * + 29 + 63 + col0 AS col1 FROM tab2 AS cor0
----
-1570
-351
-829
query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-86
-91
-97
query I rowsort
SELECT ALL 44 FROM tab1, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT ALL - 8 + col1 AS col0 FROM tab2 cor0
----
23
51
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6837
SELECT + - CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-6837
SELECT + - CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL 3 * col1 AS col0 FROM tab1 AS cor0
----
30
39
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col0 + col0 col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT 26 * - col1 * + col2 + - 29 AS col0 FROM tab1 AS cor0
----
-14849
-32477
-36533
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 * col1 col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL - 36 FROM tab0, tab0 cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ( col2 ) * - col2 + - ( + col1 ) * - col1 FROM tab1 AS cor0
----
-2240
-3149
-9047
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 col2 FROM tab2, tab2 AS cor0
----
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col2 col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-54
-57
-96
query I rowsort
SELECT ALL ( - col1 ) * col0 + 80 AS col0 FROM tab1
----
-560
-960
2
query I rowsort
SELECT - cor1.col1 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
onlyif mysql # use DIV operator for integer division
query I rowsort label-6849
SELECT + - cor0.col0 - cor0.col2 DIV col1 AS col0 FROM tab1 AS cor0
----
-5
-69
-87
skipif mysql # not compatible
query I rowsort label-6849
SELECT + - cor0.col0 - cor0.col2 / col1 AS col0 FROM tab1 AS cor0
----
-5
-69
-87
query I rowsort
SELECT col2 * + tab0.col1 AS col2 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6851
SELECT DISTINCT 94 DIV tab1.col1 FROM tab1
----
3
7
9
skipif mysql # not compatible
query I rowsort label-6851
SELECT DISTINCT 94 / tab1.col1 FROM tab1
----
3
7
9
query I rowsort
SELECT DISTINCT col2 * col2 * - col1 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT ALL + + 99 * col2 * col1 FROM tab0 AS cor0
----
280962
738738
9603
query I rowsort
SELECT + col2 * col1 * + col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT 53 FROM tab2 cor0
----
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * + col0 col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - 75 * col0 AS col1 FROM tab2 AS cor0
----
-525
-5850
-5925
onlyif mysql # use DIV operator for integer division
query I rowsort label-6858
SELECT - cor0.col2 + col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-6858
SELECT - cor0.col2 + col0 / + col0 AS col2 FROM tab2 AS cor0
----
-25
-26
-37
query I rowsort
SELECT DISTINCT - 19 AS col1 FROM tab0 AS cor0
----
-19
query I rowsort
SELECT ALL + col2 + ( + col1 ) AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL 69 * + col2 FROM tab2 AS cor0
----
1794
1863
2622
query I rowsort
SELECT ALL - cor0.col2 * cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5ac8aba7baafe9bd6ceb7b5654f2c0b7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6863
SELECT + CAST( NULL AS DECIMAL ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6863
SELECT + CAST ( NULL AS REAL ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL col0 - - 58 FROM tab1
----
122
138
61
query I rowsort
SELECT + col2 + col0 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT + col0 - col0 * col0 FROM tab2
----
-42
-6006
-6162
query I rowsort
SELECT col1 * - tab1.col1 * + col2 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT DISTINCT ( col1 ) * col0 AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT + ( - col0 ) * - col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - col0 + - col2 - tab0.col2 FROM tab0
----
-253
-37
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6871
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col0 - col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-6871
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col0 - col1 FROM tab2
----
NULL
query I rowsort
SELECT ALL + 46 AS col0 FROM tab1
----
46
46
46
query I rowsort
SELECT DISTINCT + 46 AS col0 FROM tab0
----
46
query I rowsort
SELECT DISTINCT - col0 * + col0 * + 95 FROM tab1 AS cor0
----
-389120
-608000
-855
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6875
SELECT + col1 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6875
SELECT + col1 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 76 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
query I rowsort
SELECT DISTINCT - 45 * col2 + col2 FROM tab0
----
-1452
-3608
-44
query I rowsort
SELECT DISTINCT tab2.col2 * - col2 + - 69 * 96 * col1 FROM tab2
----
-114052
-206073
-391492
query I rowsort
SELECT col0 + ( col2 ) * - tab1.col1 AS col1 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT - col0 * ( - col1 ) * - col1 FROM tab2 cor0
----
-22831
-271518
-6727
query I rowsort
SELECT ALL + + col2 * cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT - col1 + + ( col0 ) * - col0 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT ALL col0 * 34 AS col1 FROM tab1 AS cor0
----
102
2176
2720
query I rowsort
SELECT + - cor0.col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT + + col2 + - 79 FROM tab1 cor0
----
-22
-25
17
query I rowsort
SELECT cor0.col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT col2 * + col2 + col1 AS col2 FROM tab0
----
1175
6815
98
query I rowsort
SELECT ALL col2 - - col1 FROM tab1 WHERE NULL IN ( - col0 + col1 * - col2 / col2 ) AND NULL BETWEEN - col0 AND NULL
----
query I rowsort
SELECT - col0 * - col1 + col2 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-6890
SELECT ALL + col2 DIV + col2 + - col0 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-6890
SELECT ALL + col2 / + col2 + - col0 FROM tab0 AS cor0
----
-23
-34
-88
query I rowsort
SELECT ALL col2 + + col0 * col1 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-6892
SELECT ALL - col0 + col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL - col0 + col1 / - col1 AS col0 FROM tab0 AS cor0
----
-25
-36
-90
query I rowsort
SELECT DISTINCT - col1 * col1 + - col0 FROM tab2 cor0
----
-3559
-368
-968
query I rowsort
SELECT DISTINCT - col1 + - cor0.col0 * col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT tab2.col1 * + tab2.col0 AS col0 FROM tab2
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-6896
SELECT ALL - col1 DIV - col1 + + col1 DIV col1 AS col0 FROM tab0 AS cor0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-6896
SELECT ALL - col1 / - col1 + + col1 / col1 AS col0 FROM tab0 AS cor0
----
2
2
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-6897
SELECT - + col1 DIV - col0 col2 FROM tab2 AS cor0
----
0
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6897
SELECT - + col1 / - col0 col2 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT ALL + col1 * + tab0.col2 FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - tab1.col2 col1 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6900
SELECT DISTINCT col2 DIV col1 col2 FROM tab1 AS cor0
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6900
SELECT DISTINCT col2 / col1 col2 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 + col1 AS col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT - cor0.col1 + col0 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT - - col0 + + col1 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + 37 * - col1 AS col2 FROM tab0 AS cor0
----
-3182
-3367
-3589
query I rowsort
SELECT cor0.col0 - col2 * col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT + - col0 * + col1 * col0 + + col2 FROM tab0 AS cor0
----
-118824
-49503
-720729
query I rowsort
SELECT DISTINCT - - ( + col2 ) * col0 * col0 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT - 68 + col1 AS col1 FROM tab0 AS cor0
----
18
23
29
query I rowsort
SELECT - 97 + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-2125
-286
-3099
query I rowsort
SELECT DISTINCT - col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - + col0 * + col0 * col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT + - 20 + col0 * col0 AS col2 FROM tab1 AS cor0
----
-11
4076
6380
query I rowsort
SELECT - - col0 * + col0 + + col0 AS col2 FROM tab2 cor0
----
56
6162
6320
query I rowsort
SELECT + col2 * + col2 - - col0 * col0 * - col2 FROM tab0 AS cor0
----
-1224
-17919
-642798
query I rowsort
SELECT DISTINCT 9 - - col1 * col0 FROM tab1 AS cor0
----
1049
649
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + col0 * col0 col2 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT col2 * cor0.col2 * + col2 + + col1 * - col1 + col0 FROM tab2 AS cor0
----
14173
18729
54662
onlyif mysql # use DIV operator for integer division
query I rowsort label-6918
SELECT - - 65 + col1 DIV col1 FROM tab0 AS cor0
----
66
66
66
skipif mysql # not compatible
query I rowsort label-6918
SELECT - - 65 + col1 / col1 FROM tab0 AS cor0
----
66
66
66
query I rowsort
SELECT ALL + - 76 * - col1 * col1 FROM tab2 AS cor0
----
21964
264556
73036
query I rowsort
SELECT DISTINCT - col1 * col2 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * + col1 * col1 col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT + 49 + col0 * cor0.col0 FROM tab1 AS cor0
----
4145
58
6449
query I rowsort
SELECT DISTINCT 16 FROM tab0 AS cor0
----
16
query I rowsort
SELECT DISTINCT - col0 * - col0 * cor0.col2 + cor0.col1 * - col1 FROM tab1 AS cor0
----
-190
233372
614231
query I rowsort
SELECT DISTINCT col0 + + col0 + cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
168
3776
7840
query I rowsort
SELECT cor0.col0 * col1 + + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT + + col0 + + col0 * col2 * - col2 FROM tab1 AS cor0
----
-207872
-737200
-8745
onlyif mysql # use DIV operator for integer division
query I rowsort label-6928
SELECT DISTINCT - 72 DIV tab2.col0 FROM tab2
----
-10
0
skipif mysql # not compatible
query I rowsort label-6928
SELECT DISTINCT - 72 / tab2.col0 FROM tab2
----
-10
0
query I rowsort
SELECT - col0 + col1 * col0 FROM tab2 AS cor0
----
1264
210
4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6930
SELECT - col0 * + col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6930
SELECT - col0 * + col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 10 + col2 AS col1 FROM tab2 AS cor0
----
16
17
28
query I rowsort
SELECT 6 - - tab2.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 7e7bf41801025a34765567e3fa48855f
query I rowsort
SELECT col1 * 85 AS col2 FROM tab1
----
1105
2210
850
query I rowsort
SELECT + ( col2 ) * tab0.col1 * + ( + 73 ) + tab0.col1 FROM tab0
----
207260
544817
7178
query I rowsort
SELECT - tab0.col2 * cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 6e956995b57dab53690e9e5feefd0b3a
onlyif mysql # use DIV operator for integer division
query I rowsort label-6936
SELECT DISTINCT - 5 DIV col0 - - col0 AS col0 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-6936
SELECT DISTINCT - 5 / col0 - - col0 AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT col2 + - col0 * + 90 AS col0 FROM tab0 AS cor0
----
-2127
-3149
-7928
query I rowsort
SELECT ALL + + col0 + - col2 AS col0 FROM tab2 AS cor0
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 * col1 * - 87 col1 FROM tab2 AS cor0
----
109446
199578
379842
query I rowsort
SELECT - - col2 + - col1 * + col1 AS col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT + col0 + + col2 * + ( - col1 ) FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL - 89 + col2 FROM tab1 AS cor0
----
-32
-35
7
query I rowsort
SELECT - + col1 * col2 * col2 AS col0 FROM tab0 AS cor0
----
-611884
-93654
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6944
SELECT col1 DIV col2 AS col1 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-6944
SELECT col1 / col2 AS col1 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT DISTINCT + 24 AS col0 FROM tab2 AS cor0
----
24
query I rowsort
SELECT ALL col2 + - 52 FROM tab1
----
2
44
5
query I rowsort
SELECT DISTINCT + col0 * - col0 - 0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-6948
SELECT ALL col2 * cor0.col1 + ( col0 ) DIV col0 FROM tab2 AS cor0
----
1535
647
838
skipif mysql # not compatible
query I rowsort label-6948
SELECT ALL col2 * cor0.col1 + ( col0 ) / col0 FROM tab2 AS cor0
----
1535
647
838
query I rowsort
SELECT ALL col2 * 76 + col0 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
2066
2132
3046
query I rowsort
SELECT DISTINCT + col1 * 68 AS col2 FROM tab2 cor0
----
1156
2108
4012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + tab0.col2 * + tab0.col2 + col1 * col0 FROM tab0
----
14823
3153
3396
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
3
64
80
query I rowsort
SELECT DISTINCT - col2 + - col1 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT - col1 + col2 * col0 + col1 AS col0 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6956
SELECT + + CAST( NULL AS SIGNED ) * cor0.col0 + col1 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6956
SELECT + + CAST ( NULL AS INTEGER ) * cor0.col0 + col1 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + 79 * + 51 * + col2 FROM tab2 AS cor0
----
104754
108783
153102
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1 cor2
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19
query I rowsort
SELECT col2 + - cor0.col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6960
SELECT DISTINCT - - CAST( - col1 AS SIGNED ) + - col0 * + col1 FROM tab1 AS cor0
----
-104
-1053
-650
skipif mysql # not compatible
query I rowsort label-6960
SELECT DISTINCT - - CAST ( - col1 AS INTEGER ) + - col0 * + col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT 74 + - col2 FROM tab1 cor0
----
-22
17
20
query I rowsort
SELECT - + ( - col0 ) * - col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - ( - col1 ) - - cor0.col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - col2 + tab2.col0 - + col2 FROM tab2
----
-47
26
3
query I rowsort
SELECT ALL + col0 * col0 - + col1 FROM tab1
----
-17
4086
6387
query I rowsort
SELECT - - 76 + 64 FROM tab2 AS cor0
----
140
140
140
query I rowsort
SELECT + + 38 FROM tab1 cor0
----
38
38
38
query I rowsort
SELECT - 28 * col1 + col1 FROM tab1 cor0
----
-270
-351
-702
query I rowsort
SELECT 43 + cor0.col0 FROM tab0 AS cor0
----
132
67
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6970
SELECT + + CAST( NULL AS SIGNED ) * - ( - col2 ) + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6970
SELECT + + CAST ( NULL AS INTEGER ) * - ( - col2 ) + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( cor0.col1 ) * + col0 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6972
SELECT + - col0 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-6972
SELECT + - col0 / col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT 83 FROM tab1, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
query I rowsort
SELECT 30 * col0 AS col1 FROM tab2
----
210
2340
2370
query I rowsort
SELECT DISTINCT + - col2 * col2 + ( col1 ) FROM tab1 AS cor0
----
-2890
-3239
-9203
onlyif mysql # use DIV operator for integer division
query I rowsort label-6976
SELECT DISTINCT - col0 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-6976
SELECT DISTINCT - col0 / col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT - col0 + - cor0.col1 * - col0 * - col0 AS col2 FROM tab1 AS cor0
----
-237
-41024
-83280
query I rowsort
SELECT col2 + 44 * cor0.col1 AS col1 FROM tab0 cor0
----
3817
4086
4269
query I rowsort
SELECT - - cor0.col1 + 24 * - col1 FROM tab1 AS cor0
----
-230
-299
-598
query I rowsort
SELECT - 98 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638
query I rowsort
SELECT DISTINCT - col1 * col1 + - col0 AS col2 FROM tab1 AS cor0
----
-164
-249
-679
query I rowsort
SELECT + 31 + + cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 24fa8f685160021bf96af2f39a41800b
query I rowsort
SELECT - col0 + - ( + tab0.col0 ) + + col2 FROM tab0
----
-15
-69
-96
query I rowsort
SELECT + col0 * 37 FROM tab1
----
111
2368
2960
query I rowsort
SELECT + - ( 59 ) + col0 AS col0 FROM tab1 cor0
----
-56
21
5
query I rowsort
SELECT 71 FROM tab0, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT DISTINCT - tab2.col0 * col2 * - 41 FROM tab2
----
123082
7749
83148
query I rowsort
SELECT cor0.col1 + 30 FROM tab2 cor0
----
47
61
89
query I rowsort
SELECT - tab2.col0 + 24 AS col0 FROM tab2
----
-54
-55
17
query I rowsort
SELECT DISTINCT + col2 + ( - col2 ) AS col2 FROM tab1 cor0
----
0
query I rowsort
SELECT DISTINCT + col2 + col1 + + 73 * col0 AS col1 FROM tab0 AS cor0
----
1871
2653
6670
query I rowsort
SELECT ALL + cor0.col0 * 43 FROM tab1 AS cor0
----
129
2752
3440
query I rowsort
SELECT DISTINCT - - col2 + 74 - ( col1 ) AS col0 FROM tab0 cor0
----
-22
21
65
query I rowsort
SELECT ALL col2 + 75 FROM tab1 AS cor0
----
129
132
171
query I rowsort
SELECT ALL col2 * - ( - 22 ) FROM tab2 AS cor0
----
572
594
836
query I rowsort
SELECT col1 + cor0.col1 AS col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT col0 + 84 * + cor0.col1 AS col2 FROM tab0 cor0
----
7248
7733
8183
query I rowsort
SELECT 27 * 67 AS col2 FROM tab2 AS cor0
----
1809
1809
1809
query I rowsort
SELECT ALL - 10 + cor0.col1 FROM tab2 AS cor0
----
21
49
7
query I rowsort
SELECT ALL col1 * - col0 + - col2 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT ALL + col2 + - 0 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 + cor0.col0 * col1 col0 FROM tab2 AS cor0
----
1355
229
4614
query I rowsort
SELECT DISTINCT - col0 * + 90 FROM tab2 AS cor0
----
-630
-7020
-7110
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to a9068b700464993db9fae6f630605fde
onlyif mysql # use DIV operator for integer division
query I rowsort label-7005
SELECT DISTINCT + col1 DIV 76 + col0 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-7005
SELECT DISTINCT + col1 / 76 + col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL cor0.col1 * - cor0.col0 - col0 AS col1 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT ALL - - ( col0 ) FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT - 16 + - col2 FROM tab1 AS cor0
----
-112
-70
-73
query I rowsort
SELECT DISTINCT - 89 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
-89
query I rowsort
SELECT 99 AS col0 FROM tab0, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to c841a8d826151b422ecdb71db0250739
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 col0 FROM tab0, tab1 AS cor0
----
56
query I rowsort
SELECT ALL 79 + + col1 * col1 FROM tab1 AS cor0
----
179
248
755
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 * + 74 ) col2 FROM tab0
----
-1776
-2590
-6586
query I rowsort
SELECT DISTINCT - col0 * col0 + + ( col1 ) * + 59 AS col1 FROM tab0 AS cor0
----
-2552
4498
query I rowsort
SELECT ALL - tab0.col0 + + col0 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + tab0.col1 + - tab0.col2 FROM tab0
----
53
9
96
query I rowsort
SELECT ALL + - col2 + + col2 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col2 * - 42 + col2 * col1 - 14 AS col1 FROM tab0 AS cor0
----
1438
4004
41
query I rowsort
SELECT ALL - - col1 * col1 + - col2 AS col1 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT DISTINCT + - col1 + + col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - col1 * + col1 * - 18 + col1 * tab1.col2 FROM tab1
----
13572
2370
4290
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 90 + + col0 col0 FROM tab2
----
-11
-12
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7023
SELECT - col2 * col2 + 86 + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7023
SELECT - col2 * col2 + 86 + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab0 cor1, tab2, tab2 AS cor2
----
3645 values hashing to c9ee6ec1bc8c6eb5f95042f98a50bd57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7025
SELECT ALL + cor0.col1 DIV 23 AS col0 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7025
SELECT ALL + cor0.col1 / 23 AS col0 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT 34 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7027
SELECT col1 + + CAST( NULL AS SIGNED ) + col0 * col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7027
SELECT col1 + + CAST ( NULL AS INTEGER ) + col0 * col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * col1 * + col0 + + 43 AS col0 FROM tab2
----
106140
1562
358999
query I rowsort
SELECT ALL col1 + 24 - - col2 AS col1 FROM tab0
----
122
143
197
query I rowsort
SELECT ALL + tab2.col0 - col1 * col2 AS col2 FROM tab2
----
-1456
-567
-830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7031
SELECT DISTINCT - cor0.col1 * col2 * + col0 + CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3360
-664029
-68088
skipif mysql # not compatible
query I rowsort label-7031
SELECT DISTINCT - cor0.col1 * col2 * + col0 + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3360
-664029
-68088
query I rowsort
SELECT DISTINCT + col0 + + ( + col1 ) FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - - col2 + + col0 * - col2 * - 46 FROM tab2 AS cor0
----
138130
8721
93314
query I rowsort
SELECT + ( + col2 ) AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT 57 + + 52 * col0 * col2 AS col1 FROM tab2
----
105513
156161
9885
query I rowsort
SELECT - col1 + + tab0.col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT + + 41 + + col2 + - 42 * + 63 FROM tab0 cor0
----
-2523
-2572
-2604
onlyif mysql # use DIV operator for integer division
query I rowsort label-7038
SELECT - cor0.col2 + + col2 DIV col0 + + col2 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-7038
SELECT - cor0.col2 + + col2 / col0 + + col2 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT + cor0.col2 * - col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - col0 + + col0 * col2 AS col1 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT ALL - - 55 * cor0.col2 FROM tab1 cor0
----
2970
3135
5280
query I rowsort
SELECT DISTINCT col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7043
SELECT - ( - col2 ) - + CAST( 33 + + col0 AS SIGNED ) FROM tab1 AS cor0
----
-17
-40
18
skipif mysql # not compatible
query I rowsort label-7043
SELECT - ( - col2 ) - + CAST ( 33 + + col0 AS INTEGER ) FROM tab1 AS cor0
----
-17
-40
18
query I rowsort
SELECT - col2 * - col0 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL + ( col1 ) AS col2 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7046
SELECT - + 5 + col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7046
SELECT - + 5 + col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * + col0 - col2 * 6 FROM tab0 AS cor0
----
-1231
-774
-8413
query I rowsort
SELECT DISTINCT + + 9 + - cor0.col0 + ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
9
query I rowsort
SELECT DISTINCT - + col0 * cor0.col0 + ( - col0 ) FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT ALL ( - col0 ) AS col2 FROM tab0 cor0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7051
SELECT + col0 + col0 * ( - 75 + + col1 * CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7051
SELECT + col0 + col0 * ( - 75 + + col1 * CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col0 + + col1 AS col0 FROM tab0 cor0
----
2
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) - col0 col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT 67 * col2 FROM tab2 AS cor0
----
1742
1809
2546
query I rowsort
SELECT ALL 60 AS col0 FROM tab1 cor0
----
60
60
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + cor0.col1 ) * + 96 * - col2 col0 FROM tab0 AS cor0
----
-272448
-716352
-9312
query I rowsort
SELECT DISTINCT - - col2 * + col2 + col2 AS col0 FROM tab2 AS cor0
----
1482
702
756
onlyif mysql # use DIV operator for integer division
query I rowsort label-7058
SELECT + col1 - col1 * 18 DIV col0 col1 FROM tab1 AS cor0
----
-130
11
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7058
SELECT + col1 - col1 * 18 / col0 col1 FROM tab1 AS cor0
----
-130
11
8
query I rowsort
SELECT ALL + + col2 * col0 AS col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col2 * - col1 + - 64 AS col1 FROM tab0 AS cor0
----
2774
33
7398
query I rowsort
SELECT cor0.col2 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT - 59 + col0 FROM tab2 AS cor0
----
-52
19
20
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7064
SELECT CAST( NULL AS SIGNED ) + + cor0.col2 / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7064
SELECT CAST ( NULL AS INTEGER ) + + cor0.col2 / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 17 * - col2 FROM tab1
----
-1632
-918
-969
query I rowsort
SELECT ALL + 80 + - col0 FROM tab2 AS cor0
----
1
2
73
query I rowsort
SELECT - + 1 + + col2 * col1 AS col1 FROM tab1 AS cor0
----
1247
1403
569
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 * col0 col2 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT - - 20 AS col0 FROM tab0 AS cor0
----
20
20
20
query I rowsort
SELECT + 1 + col1 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT + - col0 * col0 + + ( ( cor0.col0 ) ) * 41 FROM tab1 AS cor0
----
-1472
-3120
114
query I rowsort
SELECT ALL 28 FROM tab0, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
query I rowsort
SELECT - - cor0.col0 * + col2 + ( col0 ) FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL - 99 AS col0 FROM tab0
----
-99
-99
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( + col0 ) col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + col2 * col0 * col1 FROM tab0 cor0
----
3395
664118
68112
query I rowsort
SELECT - cor0.col0 * col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT 75 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query I rowsort
SELECT 99 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
query I rowsort
SELECT DISTINCT - 84 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
-84
query I rowsort
SELECT + col2 * ( cor0.col2 ) * - col1 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT ALL col0 * - col2 * + col2 AS col1 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT ALL - ( col2 ) * - col2 AS col1 FROM tab1
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-7084
SELECT + col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-7084
SELECT + col0 / - col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT ALL + - col0 * - col1 * 44 - cor0.col0 FROM tab2 AS cor0
----
202410
59013
9541
query I rowsort
SELECT + + cor0.col0 + 60 * col1 * col2 - 42 FROM tab1 AS cor0
----
34222
74918
84201
query I rowsort
SELECT col2 * 0 AS col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * col0 col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL 36 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
onlyif mysql # use DIV operator for integer division
query I rowsort label-7090
SELECT DISTINCT col0 * + ( + col2 ) DIV col2 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT col0 * + ( + col2 ) / col2 FROM tab1
----
3
64
80
query I rowsort
SELECT - cor0.col0 - col1 * - col1 AS col2 FROM tab2 cor0
----
210
3403
954
query I rowsort
SELECT ALL cor0.col2 + col0 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT - cor0.col1 * - cor0.col1 + - col1 AS col2 FROM tab0 cor0
----
7310
8190
9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col2 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7095
SELECT - CAST( - col0 AS SIGNED ) * + col2 col0 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7095
SELECT - CAST ( - col0 AS INTEGER ) * + col2 col0 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7096
SELECT DISTINCT + CAST( + col2 AS SIGNED ) FROM tab1 cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-7096
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ( col0 ) * + col2 + col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
15579
8188
9444
query I rowsort
SELECT + 46 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602
query I rowsort
SELECT 64 + + col1 + tab1.col2 AS col2 FROM tab1
----
131
144
173
query I rowsort
SELECT - col2 * col1 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-7101
SELECT + + 21 DIV + col2 FROM tab0 AS cor0
----
0
0
21
skipif mysql # not compatible
query I rowsort label-7101
SELECT + + 21 / + col2 FROM tab0 AS cor0
----
0
0
21
query I rowsort
SELECT - cor0.col2 * col0 - cor0.col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT - col2 + + col0 * col2 AS col0 FROM tab0 AS cor0
----
34
7216
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-7104
SELECT col2 * + col2 + - cor0.col1 DIV col2 + + 19 col2 FROM tab1 AS cor0
----
2935
3268
9235
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7104
SELECT col2 * + col2 + - cor0.col1 / col2 + + 19 col2 FROM tab1 AS cor0
----
2935
3268
9235
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7105
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7105
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT + 3 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-7107
SELECT - col2 DIV col2 + col1 AS col1 FROM tab1 cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-7107
SELECT - col2 / col2 + col1 AS col1 FROM tab1 cor0
----
12
25
9
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2, tab2 cor2
----
3645 values hashing to f1fc3f16747aca82b54b2b759d1f5ea2
query I rowsort
SELECT col2 + 97 FROM tab0 AS cor0
----
130
179
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 18 col1 FROM tab0 cor0
----
104
109
115
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col2 * col2 * col2 col1 FROM tab0 AS cor0
----
-2
-35970
-551450
query I rowsort
SELECT DISTINCT 72 AS col1 FROM tab1
----
72
query I rowsort
SELECT DISTINCT 0 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
0
query I rowsort
SELECT ALL + col0 + col2 * + cor0.col2 + + col0 AS col0 FROM tab2 AS cor0
----
1602
743
832
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + col0 AS REAL ) + - col0 * ( col1 ) * - tab2.col1 AS col2 FROM tab2
----
22910
271596
6734
query I rowsort
SELECT 1 AS col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
query I rowsort
SELECT + - col2 + 66 FROM tab2 cor0
----
28
39
40
query I rowsort
SELECT DISTINCT + + col2 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL + col0 + ( - tab1.col2 ) AS col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT - col0 * cor0.col0 + cor0.col2 FROM tab0 cor0
----
-1224
-543
-7839
query I rowsort
SELECT ALL - + 38 FROM tab0 AS cor0
----
-38
-38
-38
query I rowsort
SELECT DISTINCT - col0 * - col1 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT ALL + 34 * + col0 AS col0 FROM tab2 AS cor0
----
238
2652
2686
query I rowsort
SELECT ALL col0 + - col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 53 * - col2 FROM tab2 AS cor0
----
-1378
-1431
-2014
query I rowsort
SELECT ALL - col0 + col2 * col1 FROM tab0 cor0
----
2814
62
7373
query I rowsort
SELECT ALL col0 * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - - ( - cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT col1 - + col2 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT + - col1 * col2 + col1 * col2 AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7132
SELECT + col1 DIV - 3 AS col2 FROM tab1
----
-3
-4
-8
skipif mysql # not compatible
query I rowsort label-7132
SELECT + col1 / - 3 AS col2 FROM tab1
----
-3
-4
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col2 col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 - ( - 59 ) * - col0 FROM tab2
----
-382
-4543
-4644
onlyif mysql # use DIV operator for integer division
query I rowsort label-7135
SELECT + tab1.col2 DIV ( col2 ) + + col0 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-7135
SELECT + tab1.col2 / ( col2 ) + + col0 FROM tab1
----
4
65
81
query I rowsort
SELECT ALL + col2 * col1 - 22 AS col1 FROM tab2
----
1512
624
815
query I rowsort
SELECT ALL 73 + 73 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 708ab89da52f5539ae8cc2b28295d0f9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + ( col1 ) - + col1 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 7 + - col2 AS col1 FROM tab1 AS cor0
----
-47
-50
-89
query I rowsort
SELECT DISTINCT + - col2 * + col1 + - col1 AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col0 + col2 AS col0 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT - 20 + 81 FROM tab0 AS cor0
----
61
61
61
query I rowsort
SELECT ALL + col2 * col0 FROM tab2 cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-7145
SELECT ALL - 12 DIV + 48 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL - 12 / + 48 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ( 64 ) + col2 AS col2 FROM tab2 AS cor0
----
102
90
91
query I rowsort
SELECT DISTINCT col1 + col0 AS col2 FROM tab1 cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-7148
SELECT - 89 DIV 54 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7148
SELECT - 89 / 54 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + 24 * 5 + col0 FROM tab2 AS cor0
----
127
198
199
query I rowsort
SELECT ALL - col2 + col2 * - col1 * col0 AS col1 FROM tab1 AS cor0
----
-36537
-4266
-99936
query I rowsort
SELECT 44 + cor0.col2 * col1 AS col1 FROM tab0 AS cor0
----
141
2882
7506
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col2 AS REAL ) col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - 68 * - 97 - - col1 AS col2 FROM tab2 AS cor0
----
6613
6627
6655
query I rowsort
SELECT DISTINCT - cor0.col0 - + cor0.col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT + col1 - + col1 * col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NULL <= - cor0.col1
----
query I rowsort
SELECT - - col0 * - col1 - + col0 AS col2 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT ALL + + 93 * + 68 - col2 FROM tab1 AS cor0
----
6228
6267
6270
query I rowsort
SELECT ALL - col1 - cor0.col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT + cor1.col2 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
26
27
38
query I rowsort
SELECT DISTINCT col2 - col2 AS col2 FROM tab2
----
0
query I rowsort
SELECT DISTINCT col1 + - col2 * + col1 AS col2 FROM tab1
----
-1235
-1378
-560
onlyif mysql # use DIV operator for integer division
query I rowsort label-7163
SELECT + 90 DIV 44 + col0 + CAST( - 53 * col2 AS SIGNED ) AS col2 FROM tab1
----
-2857
-2955
-5006
skipif mysql # not compatible
query I rowsort label-7163
SELECT + 90 / 44 + col0 + CAST ( - 53 * col2 AS INTEGER ) AS col2 FROM tab1
----
-2857
-2955
-5006
query I rowsort
SELECT ALL + 17 + col0 FROM tab2
----
24
95
96
query I rowsort
SELECT DISTINCT + col0 * - col2 + tab0.col1 * + col1 FROM tab0
----
6604
9374
983
query I rowsort
SELECT ALL + 24 FROM tab1, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
onlyif mysql # use DIV operator for integer division
query I rowsort label-7167
SELECT - CAST( col2 AS SIGNED ) DIV col0 AS col0 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7167
SELECT - CAST ( col2 AS INTEGER ) / col0 AS col0 FROM tab0
----
-1
0
0
query I rowsort
SELECT - col1 * - 25 FROM tab1
----
250
325
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-7169
SELECT + - col2 + CAST( ( col0 ) AS SIGNED ) DIV 93 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-7169
SELECT + - col2 + CAST ( ( col0 ) AS INTEGER ) / 93 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + col2 * + ( 56 + col0 ) AS col0 FROM tab2 AS cor0
----
1701
3484
5130
onlyif mysql # use DIV operator for integer division
query I rowsort label-7171
SELECT DISTINCT + col0 * 96 DIV + 22 FROM tab1 AS cor0
----
13
279
349
skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT + col0 * 96 / + 22 FROM tab1 AS cor0
----
13
279
349
query I rowsort
SELECT DISTINCT - col0 * + col0 * 19 AS col2 FROM tab2
----
-115596
-118579
-931
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7173
SELECT - col0 + CAST( - ( - col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-19
-62
24
skipif mysql # not compatible
query I rowsort label-7173
SELECT - col0 + CAST ( - ( - col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT - col0 + + col1 AS col1 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT + col2 * col1 + - col2 AS col2 FROM tab1
----
1152
1350
513
query I rowsort
SELECT ALL tab1.col2 * - ( 51 ) FROM tab1, tab2, tab1 AS cor0, tab2 AS cor1
----
81 values hashing to 31749593d675990f52184ab001cc028c
query I rowsort
SELECT + col1 * col1 + col0 FROM tab1 AS cor0
----
164
249
679
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + - 52 col1 FROM tab0 AS cor0
----
-138
-143
-149
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 18 + col0 col1 FROM tab1 cor0
----
244
314
471
query I rowsort
SELECT DISTINCT + col1 * 56 * col0 FROM tab0 AS cor0
----
115584
190120
453544
query I rowsort
SELECT cor0.col2 * + col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT col2 * + cor0.col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - + col1 + - 12 * + cor0.col2 FROM tab0 AS cor0
----
-1075
-109
-482
query I rowsort
SELECT DISTINCT - 54 + col1 FROM tab1
----
-28
-41
-44
query I rowsort
SELECT DISTINCT 79 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
79
query I rowsort
SELECT + cor0.col1 * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL 7 + col1 AS col1 FROM tab2 AS cor0
----
24
38
66
query I rowsort
SELECT - cor0.col0 + - 6 FROM tab2 AS cor0
----
-13
-84
-85
query I rowsort
SELECT - col0 + 5 - + 16 AS col2 FROM tab0 AS cor0
----
-100
-35
-46
query I rowsort
SELECT cor0.col0 + - col0 * + col1 + col2 FROM tab0 AS cor0
----
-2007
-3359
-7928
onlyif mysql # use DIV operator for integer division
query I rowsort label-7191
SELECT DISTINCT tab2.col2 + + col2 DIV - 7 FROM tab2
----
23
24
33
skipif mysql # not compatible
query I rowsort label-7191
SELECT DISTINCT tab2.col2 + + col2 / - 7 FROM tab2
----
23
24
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-7192
SELECT DISTINCT + col2 + tab2.col1 + - 55 DIV + col1 FROM tab2
----
52
57
85
skipif mysql # not compatible
query I rowsort label-7192
SELECT DISTINCT + col2 + tab2.col1 + - 55 / + col1 FROM tab2
----
52
57
85
query I rowsort
SELECT + - col0 + 94 FROM tab0 AS cor0
----
5
59
70
query I rowsort
SELECT + - col2 * - cor0.col0 * col2 - col2 FROM tab2 AS cor0
----
114038
5076
52702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7195
SELECT ALL + CAST( NULL AS SIGNED ) * 80 - - col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL + CAST ( NULL AS INTEGER ) * 80 - - col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 77 * col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
2061
2110
2943
query I rowsort
SELECT DISTINCT - col2 * - col0 + col0 + col1 AS col0 FROM tab1 cor0
----
191
3722
7773
query I rowsort
SELECT ALL - cor0.col0 - - col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + 70 * + 41 AS col0 FROM tab1 AS cor0
----
-2870
-2870
-2870
query I rowsort
SELECT + 9 * col2 FROM tab1 AS cor0
----
486
513
864
query I rowsort
SELECT cor1.col1 AS col0 FROM tab1, tab0 cor0, tab2, tab1 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 43 col1 FROM tab0 AS cor0
----
-1032
-1505
-3827
query I rowsort
SELECT - col0 * - col1 + + col2 AS col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT - + ( col0 ) - + col1 * + 75 * col2 AS col1 FROM tab1 cor0
----
-105303
-42814
-93680
onlyif mysql # use DIV operator for integer division
query I rowsort label-7205
SELECT - + 45 * cor0.col0 + - col1 DIV 41 AS col1 FROM tab1 AS cor0
----
-135
-2880
-3600
skipif mysql # not compatible
query I rowsort label-7205
SELECT - + 45 * cor0.col0 + - col1 / 41 AS col1 FROM tab1 AS cor0
----
-135
-2880
-3600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * - col2 col0 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col0 col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + ( + col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT col0 * + col0 + col2 AS col2 FROM tab1
----
4153
63
6496
query I rowsort
SELECT + + 17 + - col1 FROM tab0 cor0
----
-69
-74
-80
query I rowsort
SELECT ALL + 83 FROM tab0 AS cor0
----
83
83
83
query I rowsort
SELECT DISTINCT cor0.col2 + - col1 * ( + col1 ) FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT DISTINCT + 72 * - cor0.col2 FROM tab1 AS cor0
----
-3888
-4104
-6912
query I rowsort
SELECT + - col2 * col1 * - col1 FROM tab1 AS cor0
----
16224
36504
5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 col2 FROM tab0
----
32
32
32
query I rowsort
SELECT DISTINCT col2 * 54 AS col1 FROM tab2
----
1404
1458
2052
query I rowsort
SELECT - col2 * + 54 AS col0 FROM tab0
----
-1782
-4428
-54
query I rowsort
SELECT 30 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0
query I rowsort
SELECT + 60 FROM tab0, tab0 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query I rowsort
SELECT - + col2 * 22 FROM tab0 AS cor0
----
-1804
-22
-726
query I rowsort
SELECT ALL + col1 + - cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ALL + + col0 * - 6 FROM tab0 AS cor0
----
-144
-210
-534
query I rowsort
SELECT ALL col1 + - col0 * + col2 * col1 AS col2 FROM tab1 AS cor0
----
-36470
-4186
-99827
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7224
SELECT col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7224
SELECT col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + tab0.col1 * col2 AS col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT DISTINCT - col0 + col1 * col0 AS col0 FROM tab1
----
576
75
960
query I rowsort
SELECT + ( 42 ) * col0 FROM tab1 AS cor0
----
126
2688
3360
onlyif mysql # use DIV operator for integer division
query I rowsort label-7228
SELECT col2 * + col0 DIV + col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-7228
SELECT col2 * + col0 / + col0 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7229
SELECT - col0 DIV 64 AS col2 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7229
SELECT - col0 / 64 AS col2 FROM tab0 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7230
SELECT col0 DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7230
SELECT col0 / col2 AS col0 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7231
SELECT ALL - - cor0.col2 DIV - cor0.col1 + ( col0 ) FROM tab2 AS cor0
----
7
77
78
skipif mysql # not compatible
query I rowsort label-7231
SELECT ALL - - cor0.col2 / - cor0.col1 + ( col0 ) FROM tab2 AS cor0
----
7
77
78
query I rowsort
SELECT - col0 * - col2 * - col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT ALL - col1 - + col2 FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7234
SELECT DISTINCT col0 * - CAST( + 83 AS SIGNED ) FROM tab1 AS cor0
----
-249
-5312
-6640
skipif mysql # not compatible
query I rowsort label-7234
SELECT DISTINCT col0 * - CAST ( + 83 AS INTEGER ) FROM tab1 AS cor0
----
-249
-5312
-6640
query I rowsort
SELECT ALL + - col2 * cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT col2 - + 48 AS col0 FROM tab2 AS cor0
----
-10
-21
-22
query I rowsort
SELECT + + col2 + - col1 * col0 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - + col0 + - col1 * col2 AS col0 FROM tab0 AS cor0
----
-132
-2862
-7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-7239
SELECT ALL - - col0 * - col2 - - col0 DIV col1 col0 FROM tab1 AS cor0
----
-162
-3642
-7674
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL - - col0 * - col2 - - col0 / col1 col0 FROM tab1 AS cor0
----
-162
-3642
-7674
query I rowsort
SELECT - col0 * + ( - col0 ) + cor0.col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT DISTINCT col2 * - ( - col0 ) + col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT + cor0.col1 + + 86 AS col1 FROM tab2 AS cor0
----
103
117
145
query I rowsort
SELECT DISTINCT + - col1 + col1 * col0 AS col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT DISTINCT + col1 * ( cor0.col1 ) + col1 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
53
648
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-7245
SELECT ALL + col1 DIV col1 + - 38 * - col0 - col2 * + tab1.col2 AS col0 FROM tab1
----
-2801
-6175
-816
skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL + col1 / col1 + - 38 * - col0 - col2 * + tab1.col2 AS col0 FROM tab1
----
-2801
-6175
-816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * col2 + + 11 - - col1 col0 FROM tab1
----
1272
1441
591
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col2 * - col1 col0 FROM tab2
----
1593
663
868
query I rowsort
SELECT - cor0.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT col2 * ( tab1.col2 ) + col2 + col2 FROM tab1
----
3024
3363
9408
query I rowsort
SELECT ALL 81 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT tab2.col0 + + col1 FROM tab2
----
137
38
96
query I rowsort
SELECT + + col1 * 72 AS col2 FROM tab2 AS cor0
----
1224
2232
4248
query I rowsort
SELECT DISTINCT - - col2 * - col1 FROM tab1 cor0
----
-1248
-1404
-570
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 col1 + ( 4 ) + + col1 AS col0 FROM tab2 AS cor0
----
122
38
66
query I rowsort
SELECT ALL - col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - tab1.col2 + 65 * + col2 AS col2 FROM tab1
----
3456
3648
6144
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 57 col2 FROM tab1 AS cor0
----
57
57
57
query I rowsort
SELECT ALL col1 * - col0 * + 19 FROM tab1
----
-12160
-1482
-19760
query I rowsort
SELECT DISTINCT col1 + + col2 * + col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT col1 + col1 + col1 FROM tab0
----
258
273
291
query I rowsort
SELECT DISTINCT + - col2 * col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - + 66 + + col0 + - col1 * col1 FROM tab0 AS cor0
----
-7438
-8258
-9440
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 col1 FROM tab0 AS cor0
----
80
80
80
query I rowsort
SELECT DISTINCT - 82 AS col2 FROM tab1 AS cor0
----
-82
query I rowsort
SELECT DISTINCT ( + col0 ) + + 29 AS col2 FROM tab0 AS cor0
----
118
53
64
query I rowsort
SELECT DISTINCT + col2 + - cor0.col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL - col1 * col1 - col0 * cor0.col2 AS col0 FROM tab0 cor0
----
-15579
-8188
-9444
query I rowsort
SELECT ALL + - col2 + - col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT + 21 AS col1 FROM tab0 AS cor0
----
21
21
21
query I rowsort
SELECT DISTINCT col2 + col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
216
3705
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 + - col1 col2 FROM tab2 AS cor0
----
-113
-71
-85
query I rowsort
SELECT DISTINCT 21 * + col0 * - col2 + - col2 FROM tab0 AS cor0
----
-153340
-16665
-736
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + + col0 col2 FROM tab0 AS cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + col1 * col1 + + cor0.col1 + - col0 AS col2 FROM tab0 AS cor0
----
7458
8283
9471
query I rowsort
SELECT + col1 + + cor0.col0 + cor0.col1 FROM tab1 AS cor0
----
106
55
84
query I rowsort
SELECT DISTINCT col2 + + col1 * col2 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7279
SELECT + col1 DIV col0 + + col2 * - col1 * + col2 FROM tab0 AS cor0
----
-611883
-93651
-95
skipif mysql # not compatible
query I rowsort label-7279
SELECT + col1 / col0 + + col2 * - col1 * + col2 FROM tab0 AS cor0
----
-611883
-93651
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col1 col0 FROM tab0
----
110
132
180
query I rowsort
SELECT + 86 AS col0 FROM tab2 cor0
----
86
86
86
query I rowsort
SELECT ALL - col0 - + col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + CAST ( 7 AS REAL ) FROM tab2 AS cor0
----
7
query I rowsort
SELECT - - 15 FROM tab0 AS cor0
----
15
15
15
query I rowsort
SELECT DISTINCT - 19 FROM tab0 cor0
----
-19
query I rowsort
SELECT ALL 95 FROM tab0, tab1 cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT 78 * + col0 AS col0 FROM tab0
----
1872
2730
6942
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * ( - cor0.col0 ) col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + col1 * 56 FROM tab2 cor0
----
1736
3304
952
query I rowsort
SELECT - col2 + col1 * col1 AS col0 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT ALL - - 36 AS col1 FROM tab2 AS cor0
----
36
36
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-7292
SELECT DISTINCT ( - cor0.col0 ) * col0 + col0 DIV + col1 FROM tab2 AS cor0
----
-49
-6083
-6237
skipif mysql # not compatible
query I rowsort label-7292
SELECT DISTINCT ( - cor0.col0 ) * col0 + col0 / + col1 FROM tab2 AS cor0
----
-49
-6083
-6237
query I rowsort
SELECT ALL - 5 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21
query I rowsort
SELECT + - 35 + 33 * + col0 FROM tab0 AS cor0
----
1120
2902
757
query I rowsort
SELECT DISTINCT - col2 * col0 + col0 * + cor0.col0 FROM tab2 AS cor0
----
-140
3239
4056
query I rowsort
SELECT + - 29 + col0 FROM tab2 AS cor0
----
-22
49
50
query I rowsort
SELECT + - col2 * - col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL - 98 AS col2 FROM tab0
----
-98
-98
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7299
SELECT 31 DIV col1 + - col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-7299
SELECT 31 / col1 + - col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT + 57 * cor0.col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
3081
3313
5552
query I rowsort
SELECT DISTINCT + col0 * col0 AS col2 FROM tab2
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-7302
SELECT + col0 * + col0 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-7302
SELECT + col0 * + col0 / cor0.col0 AS col0 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7303
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-7303
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( + 93 ) FROM tab1
----
-93
query I rowsort
SELECT - 40 AS col1 FROM tab0
----
-40
-40
-40
query I rowsort
SELECT 7 * - 6 FROM tab1 AS cor0
----
-42
-42
-42
query I rowsort
SELECT - ( ( col0 ) ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT col1 * - col2 + - col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT DISTINCT - col0 * cor0.col2 + + col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT - 36 + col0 AS col1 FROM tab0 AS cor0
----
-1
-12
53
query I rowsort
SELECT ALL col0 * col0 + 54 FROM tab0 cor0
----
1279
630
7975
query I rowsort
SELECT ALL + + cor0.col1 * + 38 AS col1 FROM tab1 AS cor0
----
380
494
988
query I rowsort
SELECT DISTINCT - col0 + - 98 * - 89 AS col2 FROM tab1 AS cor0
----
8642
8658
8719
query I rowsort
SELECT - col1 + 36 FROM tab1 AS cor0
----
10
23
26
query I rowsort
SELECT - col2 + - 82 AS col2 FROM tab2 AS cor0
----
-108
-109
-120
onlyif mysql # use DIV operator for integer division
query I rowsort label-7316
SELECT col2 DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7316
SELECT col2 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7317
SELECT - col2 * CAST( NULL AS SIGNED ) / 3 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7317
SELECT - col2 * CAST ( NULL AS INTEGER ) / 3 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col0 * - 33 FROM tab1 AS cor0
----
-2112
-2640
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-7319
SELECT - - cor0.col2 + + col1 DIV - col0 FROM tab0 AS cor0
----
-1
30
81
skipif mysql # not compatible
query I rowsort label-7319
SELECT - - cor0.col2 + + col1 / - col0 FROM tab0 AS cor0
----
-1
30
81
query I rowsort
SELECT tab2.col1 * ( - col1 ) + - col1 FROM tab2
----
-306
-3540
-992
query I rowsort
SELECT - col2 + ( - col1 ) AS col0 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT col1 + - 86 FROM tab0
----
0
11
5
query I rowsort
SELECT + col1 + 77 * 1 AS col1 FROM tab0
----
163
168
174
onlyif mysql # use DIV operator for integer division
query I rowsort label-7324
SELECT - 85 DIV - tab1.col2 - - 73 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 931d8eaab967356f8c9c64481a21d5b5
skipif mysql # not compatible
query I rowsort label-7324
SELECT - 85 / - tab1.col2 - - 73 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 931d8eaab967356f8c9c64481a21d5b5
query I rowsort
SELECT DISTINCT - col1 + 65 * - tab1.col2 + tab1.col0 FROM tab1
----
-3533
-3651
-6173
query I rowsort
SELECT DISTINCT - + col1 + 6 FROM tab0 AS cor0
----
-80
-85
-91
query I rowsort
SELECT DISTINCT - col2 * - col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT - cor0.col0 * + 65 FROM tab2 AS cor0
----
-455
-5070
-5135
query I rowsort
SELECT ALL 18 * - 36 AS col2 FROM tab1 AS cor0
----
-648
-648
-648
query I rowsort
SELECT DISTINCT + col1 * + 33 + col0 * + col2 FROM tab1 AS cor0
----
1020
3978
8109
query I rowsort
SELECT - - 46 FROM tab1 AS cor0
----
46
46
46
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( ( col2 ) AS REAL ) col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT cor0.col1 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 * + 83 + col0 FROM tab2 AS cor0
----
-574
-6396
-6478
query I rowsort
SELECT 41 * + 96 * - cor0.col0 FROM tab0 AS cor0
----
-137760
-350304
-94464
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7336
SELECT ALL - - CAST( NULL AS DECIMAL ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL - - CAST ( NULL AS REAL ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( col2 ) * col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - ( col2 ) + + col0 AS col2 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT ALL + ( col1 ) * + cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 * + col0 col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT - cor0.col1 * - col2 + + col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + + col0 - + col1 * - col2 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT col0 * + col1 + col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT col0 - - cor0.col0 AS col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT 18 * - 89 FROM tab0
----
-1602
-1602
-1602
query I rowsort
SELECT ALL + ( cor0.col0 ) * + ( + col2 ) AS col0 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-7347
SELECT DISTINCT col0 + col1 DIV CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-7347
SELECT DISTINCT col0 + col1 / CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT - - col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - 0 + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + ( col2 ) AS col2 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 * col2 col0 FROM tab0
----
1155
2870
35
query I rowsort
SELECT ALL 61 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
onlyif mysql # use DIV operator for integer division
query I rowsort label-7353
SELECT - col0 DIV col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-7353
SELECT - col0 / col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT DISTINCT + - col0 * - col0 AS col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT + + col0 * col2 * + cor0.col0 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT - tab2.col2 * tab2.col2 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT + 80 * + tab0.col0 AS col1 FROM tab0
----
1920
2800
7120
query I rowsort
SELECT DISTINCT - + col0 * - col1 - + 89 FROM tab1 AS cor0
----
-11
551
951
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - cor0.col2 col1 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT + col0 + + col2 + col0 AS col1 FROM tab2 AS cor0
----
182
196
41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7361
SELECT ALL + 72 - col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL + 72 - col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL cor0.col2 * cor0.col1 * 75 + - 37 * col2 + + ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
211596
556534
7237
query I rowsort
SELECT - + ( - col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - ( col2 ) * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7366
SELECT CAST( + 66 AS SIGNED ) AS col0 FROM tab2
----
66
66
66
skipif mysql # not compatible
query I rowsort label-7366
SELECT CAST ( + 66 AS INTEGER ) AS col0 FROM tab2
----
66
66
66
query I rowsort
SELECT 80 + col1 FROM tab1 AS cor0
----
106
90
93
query I rowsort
SELECT ALL - - col1 - - col2 * + 93 FROM tab2 AS cor0
----
2477
2542
3551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7369
SELECT DISTINCT + ( col2 ) + CAST( - col1 AS SIGNED ) * - cor0.col1 FROM tab1 AS cor0
----
157
265
730
skipif mysql # not compatible
query I rowsort label-7369
SELECT DISTINCT + ( col2 ) + CAST ( - col1 AS INTEGER ) * - cor0.col1 FROM tab1 AS cor0
----
157
265
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-7370
SELECT ALL col2 DIV col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-7370
SELECT ALL col2 / col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT ALL + + cor0.col2 + + col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + + 35 AS col1 FROM tab2 AS cor0
----
35
35
35
query I rowsort
SELECT ALL + col1 * col2 + + ( - col1 ) AS col2 FROM tab2 AS cor0
----
1475
629
806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7374
SELECT DISTINCT - col2 / + CAST( NULL AS SIGNED ) + + col0 + - col0 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7374
SELECT DISTINCT - col2 / + CAST ( NULL AS INTEGER ) + + col0 + - col0 FROM tab0 cor0
----
NULL
query I rowsort
SELECT + + 69 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT cor1.col2 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT + - col0 * + col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - + cor0.col2 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) AS col2 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - + 17 + - 77 FROM tab1 AS cor0
----
-94
-94
-94
query I rowsort
SELECT + 55 * - col2 FROM tab0 cor0
----
-1815
-4510
-55
query I rowsort
SELECT ALL 40 * col1 AS col2 FROM tab0 AS cor0
----
3440
3640
3880
query I rowsort
SELECT DISTINCT - tab0.col1 + - tab0.col0 AS col0 FROM tab0, tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL - col0 * - 0 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT 48 - col2 AS col1 FROM tab2
----
10
21
22
onlyif mysql # use DIV operator for integer division
query I rowsort label-7386
SELECT + - col2 * col2 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
-12
-73
0
skipif mysql # not compatible
query I rowsort label-7386
SELECT + - col2 * col2 / cor0.col1 AS col0 FROM tab0 AS cor0
----
-12
-73
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7387
SELECT ALL CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7387
SELECT ALL CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + col2 * + col0 AS col1 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT ( - 11 ) + - col1 * - col2 FROM tab1 AS cor0
----
1237
1393
559
onlyif mysql # use DIV operator for integer division
query I rowsort label-7390
SELECT DISTINCT tab2.col2 DIV + ( - col1 ) FROM tab2
----
-2
0
skipif mysql # not compatible
query I rowsort label-7390
SELECT DISTINCT tab2.col2 / + ( - col1 ) FROM tab2
----
-2
0
query I rowsort
SELECT 28 * cor0.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to a538c68cfafdd20a60abcd6fe97a1899
query I rowsort
SELECT ALL - col0 + - col2 * + col1 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT + + cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 col2 FROM tab2 AS cor0
----
-23
-23
-23
query I rowsort
SELECT - ( 98 ) * col2 FROM tab0 cor0
----
-3234
-8036
-98
query I rowsort
SELECT DISTINCT 86 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1462
2666
5074
query I rowsort
SELECT ALL + col1 + col2 * - col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT ALL col2 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7399
SELECT ( - col0 * CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7399
SELECT ( - col0 * CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5
query I rowsort
SELECT - ( + col1 ) * 40 * - col1 FROM tab2 AS cor0
----
11560
139240
38440
onlyif mysql # use DIV operator for integer division
query I rowsort label-7402
SELECT + col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7402
SELECT + col0 / - col2 AS col2 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT - + col0 * col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-7404
SELECT DISTINCT + col1 DIV col2 col2 FROM tab0 AS cor0
----
1
2
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7404
SELECT DISTINCT + col1 / col2 col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT - - cor0.col2 + - cor0.col1 * - ( 16 * col1 ) FROM tab2 AS cor0
----
15403
4662
55722
query I rowsort
SELECT ALL + col1 + - tab2.col2 * + col0 * + col0 AS col0 FROM tab2
----
-1292
-158125
-237141
query I rowsort
SELECT DISTINCT - - cor0.col2 * - col2 + + 51 FROM tab2 AS cor0
----
-1393
-625
-678
query I rowsort
SELECT - col2 * 82 + + col1 * + col1 + - ( + ( + col1 ) ) AS col1 FROM tab1
----
-3778
-4584
-7716
query I rowsort
SELECT col1 * - 12 FROM tab0
----
-1032
-1092
-1164
query I rowsort
SELECT col0 + ( col0 ) * - col2 AS col1 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT col2 + col2 * tab1.col0 FROM tab1
----
216
3705
7776
query I rowsort
SELECT DISTINCT - tab2.col0 + - col1 AS col0 FROM tab2
----
-137
-38
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7413
SELECT - + col0 - + CAST( + col1 AS SIGNED ) * col0 * col1 FROM tab0 AS cor0
----
-177528
-329350
-737098
skipif mysql # not compatible
query I rowsort label-7413
SELECT - + col0 - + CAST ( + col1 AS INTEGER ) * col0 * col1 FROM tab0 AS cor0
----
-177528
-329350
-737098
onlyif mysql # use DIV operator for integer division
query I rowsort label-7414
SELECT DISTINCT - - col0 * + col2 - col1 DIV col0 FROM tab2 AS cor0
----
185
2028
3002
skipif mysql # not compatible
query I rowsort label-7414
SELECT DISTINCT - - col0 * + col2 - col1 / col0 FROM tab2 AS cor0
----
185
2028
3002
query I rowsort
SELECT DISTINCT col1 - col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - - col0 + - 86 AS col2 FROM tab1 AS cor0
----
-22
-6
-83
query I rowsort
SELECT DISTINCT col2 + 54 * - col2 AS col0 FROM tab0 cor0
----
-1749
-4346
-53
query I rowsort
SELECT + ( 71 ) + col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
2135
3466
8170
query I rowsort
SELECT ALL - cor0.col0 * 92 + col0 FROM tab0 cor0
----
-2184
-3185
-8099
query I rowsort
SELECT ALL + 45 AS col0 FROM tab0 AS cor0
----
45
45
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 91 + col2 col0 FROM tab0 AS cor0
----
-2151
-3184
-8017
query I rowsort
SELECT - 22 + - col0 AS col0 FROM tab0 AS cor0
----
-111
-46
-57
query I rowsort
SELECT ALL + - col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + - col0 * + 30 AS col2 FROM tab1 AS cor0
----
-1920
-2400
-90
query I rowsort
SELECT DISTINCT - - ( + 70 ) FROM tab0 AS cor0
----
70
query I rowsort
SELECT - col0 * + ( ( - tab0.col0 ) ) FROM tab0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col2 * - 42 col1 FROM tab1
----
2214
2337
3936
query I rowsort
SELECT col1 * + 8 FROM tab0
----
688
728
776
query I rowsort
SELECT - 24 + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-50
-51
-62
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) NOT IN ( col2 - - col2 / - col2 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) < NULL
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 ) > col1
----
query I rowsort
SELECT col1 + col2 * col0 AS col1 FROM tab1
----
188
3658
7693
query I rowsort
SELECT ALL col0 * - col2 * tab1.col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT - tab1.col1 * tab1.col1 FROM tab1
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col0 * + col1 * col2 )
----
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col0 + - col1 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) = - col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 / + tab2.col0 col2 FROM tab2 WHERE NOT col1 NOT IN ( col0 - col1 * - tab2.col1 )
----
query I rowsort
SELECT + col0 * col1 + col2 AS col0 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT tab1.col2 - col2 FROM tab1
----
0
query I rowsort
SELECT + col2 + col0 * col0 AS col2 FROM tab0
----
1226
609
8003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 col1 FROM tab1
----
108
114
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-7444
SELECT - col2 DIV - col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7444
SELECT - col2 / - col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + col2 * col1 + col1 FROM tab1
----
1341
1433
644
onlyif mysql # use DIV operator for integer division
query I rowsort label-7446
SELECT DISTINCT col2 * col1 + col2 DIV tab0.col1 FROM tab0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT col2 * col1 + col2 / tab0.col1 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7447
SELECT DISTINCT col1 + tab2.col0 DIV col1 AS col2 FROM tab2
----
21
31
60
skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT col1 + tab2.col0 / col1 AS col2 FROM tab2
----
21
31
60
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( col2 ) AND NULL <> col2
----
query I rowsort
SELECT cor0.col1 * col2 + col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + col2 * - col0 + - col0 + - col0 FROM tab1
----
-168
-3776
-7840
query I rowsort
SELECT col1 * - col2 * col2 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT col0 * + col2 * col1 AS col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT tab2.col0 * + tab2.col0 + col1 AS col1 FROM tab2
----
6143
6258
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 col1 FROM tab2
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 * + tab1.col1 col1 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT col0 * + col1 * - col2 AS col1 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT ALL - col1 * + col2 * col0 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT - col1 * - col1 + col2 + col2 * + col0 AS col1 FROM tab0 AS cor0
----
15661
8221
9445
onlyif mysql # use DIV operator for integer division
query I rowsort label-7460
SELECT + cor0.col1 + col1 * - col1 + col0 DIV col0 FROM tab1 cor0
----
-155
-649
-89
skipif mysql # not compatible
query I rowsort label-7460
SELECT + cor0.col1 + col1 * - col1 + col0 / col0 FROM tab1 cor0
----
-155
-649
-89
query I rowsort
SELECT - col1 + col2 * - col0 + + col1 * col2 FROM tab0 AS cor0
----
-35
1960
73
query I rowsort
SELECT + col2 * col2 + col2 * col0 FROM tab1 AS cor0
----
16896
3078
6897
query I rowsort
SELECT ALL 65 AS col2 FROM tab0
----
65
65
65
query I rowsort
SELECT 42 - cor0.col2 FROM tab0 AS cor0
----
-40
41
9
query I rowsort
SELECT - - 84 + - col0 AS col2 FROM tab1 AS cor0
----
20
4
81
query I rowsort
SELECT ALL - cor0.col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
onlyif mysql # use DIV operator for integer division
query I rowsort label-7467
SELECT ( + col2 + - col2 ) DIV + 32 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7467
SELECT ( + col2 + - col2 ) / + 32 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 * - 49 + - col0 col0 FROM tab0 AS cor0
----
-1750
-357691
-38832
query I rowsort
SELECT col2 + cor0.col0 AS col1 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ALL + col1 + + 11 AS col1 FROM tab0 cor0
----
102
108
97
query I rowsort
SELECT col2 + - 89 AS col1 FROM tab2 AS cor0
----
-51
-62
-63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + col1 + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL + - 85 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede
query I rowsort
SELECT + cor0.col1 + 25 AS col0 FROM tab2 AS cor0
----
42
56
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7476
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7476
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7477
SELECT + col2 DIV ( col0 ) FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-7477
SELECT + col2 / ( col0 ) FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT + col1 + col2 + col0 AS col1 FROM tab0 AS cor0
----
133
143
262
onlyif mysql # use DIV operator for integer division
query I rowsort label-7479
SELECT ALL - - col0 DIV + col1 + + col2 * col0 DIV + col2 FROM tab1 AS cor0
----
3
70
86
skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL - - col0 / + col1 + + col2 * col0 / + col2 FROM tab1 AS cor0
----
3
70
86
query I rowsort
SELECT - col1 + col2 * - tab0.col0 AS col2 FROM tab0
----
-132
-7389
-878
query III rowsort
SELECT * FROM tab2 WHERE NOT col1 > NULL
----
query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE + col2 <= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * tab1.col2 col0 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NOT ( col2 ) > ( NULL )
----
query I rowsort
SELECT ALL + tab1.col2 AS col0 FROM tab1 WHERE ( NULL ) IN ( col0 * - col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - tab1.col2 col2 FROM tab1
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-7487
SELECT ALL - col2 DIV - col0 - col1 FROM tab0
----
-85
-91
-97
skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL - col2 / - col0 - col1 FROM tab0
----
-85
-91
-97
query I rowsort
SELECT DISTINCT col1 - col1 * + col2 * + tab1.col1 FROM tab1
----
-16211
-36478
-5690
query I rowsort
SELECT + col0 + + tab0.col0 AS col2 FROM tab0
----
178
48
70
query I rowsort
SELECT - 53 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2876418587c77a182d88db2907b0a51a
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab0 cor1, tab0 cor2
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col0 * + 71 col2 FROM tab1 AS cor0
----
-210
-4480
-5600
query I rowsort
SELECT + 71 - + col1 AS col2 FROM tab1 AS cor0
----
45
58
61
query I rowsort
SELECT - - col2 + - col1 + - ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + ( - col2 ) - ( - col1 ) FROM tab1 AS cor0
----
-28
-47
-83
query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND - tab1.col2 * + col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7497
SELECT + col1 - + col1 DIV col1 FROM tab2
----
16
30
58
skipif mysql # not compatible
query I rowsort label-7497
SELECT + col1 - + col1 / col1 FROM tab2
----
16
30
58
query I rowsort
SELECT DISTINCT tab2.col2 * tab2.col2 * - col0 - col0 AS col1 FROM tab2
----
-114155
-5110
-52806
query I rowsort
SELECT ALL col1 * col0 - col2 FROM tab1
----
24
583
944
query I rowsort
SELECT - col2 + col0 AS col2 FROM tab2
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-7501
SELECT - col2 DIV col0 + - col2 col0 FROM tab0
----
-1
-34
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7501
SELECT - col2 / col0 + - col2 col0 FROM tab0
----
-1
-34
-82
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 <> ( col1 )
----
query I rowsort
SELECT DISTINCT col0 * col0 - col1 * + col0 FROM tab1
----
-69
3456
5360
query I rowsort
SELECT DISTINCT + + col1 * 17 FROM tab1 AS cor0
----
170
221
442
query I rowsort
SELECT + col1 + 4 AS col1 FROM tab1 AS cor0
----
14
17
30
query I rowsort
SELECT DISTINCT - col0 * ( - col0 ) AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + 75 + cor0.col2 FROM tab0 AS cor0
----
108
157
76
query I rowsort
SELECT DISTINCT - 30 AS col1 FROM tab1 AS cor0
----
-30
query I rowsort
SELECT + - col1 * 42 * - cor0.col2 AS col1 FROM tab1 cor0
----
23940
52416
58968
onlyif mysql # use DIV operator for integer division
query I rowsort label-7510
SELECT DISTINCT - col0 DIV - ( - col2 ) FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-7510
SELECT DISTINCT - col0 / - ( - col2 ) FROM tab1 AS cor0
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7511
SELECT + ( col1 ) DIV + col1 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7511
SELECT + ( col1 ) / + col1 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 45 + 53 col0 FROM tab0 AS cor0
----
98
98
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7513
SELECT - + col1 DIV + cor0.col0 FROM tab0 cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-7513
SELECT - + col1 / + cor0.col0 FROM tab0 cor0
----
-1
-2
-3
query I rowsort
SELECT ALL - ( - 61 ) * col0 FROM tab2 AS cor0
----
427
4758
4819
query I rowsort
SELECT ALL - + col2 * + 3 AS col2 FROM tab0 cor0
----
-246
-3
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + - col2 * - col1 * cor0.col2 col2 FROM tab0 AS cor0
----
194
611975
93740
query I rowsort
SELECT - - 69 * - col0 FROM tab2 AS cor0
----
-483
-5382
-5451
query I rowsort
SELECT col2 * - 55 * col0 - + tab1.col1 * col0 AS col1 FROM tab1
----
-201280
-423440
-8988
query I rowsort
SELECT + 4 * col2 * - col1 AS col1 FROM tab1 AS cor0
----
-2280
-4992
-5616
query I rowsort
SELECT ALL + - col0 * 31 FROM tab0 cor0
----
-1085
-2759
-744
query I rowsort
SELECT DISTINCT + ( + col0 ) FROM tab2 cor0
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7522
SELECT ALL + CAST( col0 AS SIGNED ) col1 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL + CAST ( col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - col0 + - cor0.col2 * - col2 AS col0 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT DISTINCT - + 83 + + cor0.col1 FROM tab2 AS cor0
----
-24
-52
-66
query I rowsort
SELECT + + col0 * col2 + + 59 FROM tab0 AS cor0
----
7357
851
94
query I rowsort
SELECT ALL - col0 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-7527
SELECT DISTINCT - 51 DIV col1 + col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT - 51 / col1 + col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + 2 * + cor0.col1 + col1 * - cor0.col0 AS col2 FROM tab0 cor0
----
-1892
-3201
-7917
query I rowsort
SELECT 97 + + col1 AS col1 FROM tab1 AS cor0
----
107
110
123
onlyif mysql # use DIV operator for integer division
query I rowsort label-7530
SELECT 22 DIV col1 FROM tab1 cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-7530
SELECT 22 / col1 FROM tab1 cor0
----
0
1
2
query I rowsort
SELECT ALL - ( + col1 ) * col1 + - 12 AS col2 FROM tab0 AS cor0
----
-7408
-8293
-9421
query I rowsort
SELECT DISTINCT - - 69 * + col2 FROM tab0 AS cor0
----
2277
5658
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col1 * 37 + 38 col2 FROM tab0 AS cor0
----
105044
276132
3627
onlyif mysql # use DIV operator for integer division
query I rowsort label-7534
SELECT DISTINCT - col0 DIV - col2 col0 FROM tab1 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7534
SELECT DISTINCT - col0 / - col2 col0 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT ALL col2 + + col1 AS col1 FROM tab2 cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7536
SELECT ALL cor0.col2 - col1 DIV col1 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL cor0.col2 - col1 / col1 FROM tab1 AS cor0
----
53
56
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 40 - + col2 col1 FROM tab0 AS cor0
----
-122
-41
-73
query I rowsort
SELECT + col0 * - cor0.col1 - col0 * 93 FROM tab2 AS cor0
----
-11856
-868
-8690
skipif mysql # not compatible
query I rowsort
SELECT ALL - 82 + + col1 * + CAST ( + col2 AS REAL ) AS col2 FROM tab0 AS cor0
----
15
2756
7380
query I rowsort
SELECT DISTINCT + - 93 * + col0 FROM tab1 AS cor0
----
-279
-5952
-7440
query I rowsort
SELECT DISTINCT + + 10 * col0 + 69 FROM tab2 AS cor0
----
139
849
859
query I rowsort
SELECT DISTINCT - - col0 + + col0 FROM tab0 cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-7543
SELECT ALL - cor0.col2 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL - cor0.col2 / cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 - col1 * - col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT ( - col1 ) + + 47 AS col1 FROM tab0 AS cor0
----
-39
-44
-50
query I rowsort
SELECT ALL - col2 + col1 AS col0 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT ALL + col0 * + 43 AS col1 FROM tab0 cor0
----
1032
1505
3827
onlyif mysql # use DIV operator for integer division
query I rowsort label-7548
SELECT ALL - - col1 DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL - - col1 / col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col1 * col2 + + 88 FROM tab1 AS cor0
----
1336
1492
658
query I rowsort
SELECT ALL + col1 + - ( col1 * - col2 ) FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT col0 * 80 FROM tab0 AS cor0
----
1920
2800
7120
query I rowsort
SELECT 98 * tab0.col1 FROM tab0
----
8428
8918
9506
query I rowsort
SELECT cor0.col2 * - col1 + + col0 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT cor0.col1 * cor0.col0 + cor0.col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT - + cor0.col0 * - col0 * col2 + col2 AS col0 FROM tab0 AS cor0
----
1226
19041
649604
query I rowsort
SELECT ALL cor0.col0 * col1 FROM tab2 cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col2 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - + col2 * + col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT col2 * col0 + col0 * col1 AS col1 FROM tab2 AS cor0
----
406
4345
6630
query I rowsort
SELECT ALL + col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - col0 + ( col1 ) * + cor0.col2 * + col1 AS col0 FROM tab0 cor0
----
244044
678953
9374
query I rowsort
SELECT - + cor0.col0 + + 39 AS col2 FROM tab2 AS cor0
----
-39
-40
32
query I rowsort
SELECT DISTINCT - col2 * - tab0.col1 + tab0.col0 * ( - col1 * - col0 ) FROM tab0
----
118922
52374
728273
query I rowsort
SELECT 40 + col0 FROM tab1
----
104
120
43
query I rowsort
SELECT ALL col0 + col0 * 24 AS col2 FROM tab1
----
1600
2000
75
query I rowsort
SELECT - ( - col0 ) + - col2 * + col0 * + col2 AS col2 FROM tab0
----
-26112
-598347
0
query I rowsort
SELECT - 11 + tab1.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 885da8e2cec830305ac3417b2d86d902
onlyif mysql # use DIV operator for integer division
query I rowsort label-7568
SELECT ALL 12 DIV 89 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-7568
SELECT ALL 12 / 89 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT 82 AS col2 FROM tab1, tab2 AS cor0
----
82
query I rowsort
SELECT 11 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
query I rowsort
SELECT ALL + col2 * 66 FROM tab0 AS cor0
----
2178
5412
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( - tab1.col1 ) col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT - cor0.col1 + col0 * 20 AS col0 FROM tab0 AS cor0
----
1689
394
603
query I rowsort
SELECT + ( + cor1.col1 ) AS col1 FROM tab2, tab0 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query I rowsort
SELECT + cor0.col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT 3 FROM tab1
----
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7577
SELECT CAST( NULL AS DECIMAL ) FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7577
SELECT CAST ( NULL AS REAL ) FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-7578
SELECT - col2 DIV + tab0.col0 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7578
SELECT - col2 / + tab0.col0 FROM tab0
----
-1
0
0
query I rowsort
SELECT - 21 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1
query I rowsort
SELECT DISTINCT - 19 + + col2 + col2 FROM tab1
----
173
89
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 * - col1 + - col2 col1 FROM tab2
----
1244
2393
659
query I rowsort
SELECT DISTINCT - col2 * col1 - + col0 AS col1 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT DISTINCT - ( col1 ) * - col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT + cor0.col0 + + cor0.col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT - col1 + - col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT ALL + + 74 FROM tab1 AS cor0
----
74
74
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-7587
SELECT ( + col2 ) DIV - col0 + ( - col1 ) + col0 AS col0 FROM tab2
----
-27
19
62
skipif mysql # not compatible
query I rowsort label-7587
SELECT ( + col2 ) / - col0 + ( - col1 ) + col0 AS col0 FROM tab2
----
-27
19
62
query I rowsort
SELECT 52 * col1 AS col1 FROM tab2
----
1612
3068
884
query I rowsort
SELECT DISTINCT + ( - col2 ) * - col2 AS col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT + ( col1 ) + cor0.col2 AS col0 FROM tab0 cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7591
SELECT - CAST( NULL AS SIGNED ) - - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7591
SELECT - CAST ( NULL AS INTEGER ) - - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) * col0 / - ( col0 ) + col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT col1 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + + 62 * col0 col0 FROM tab0 AS cor0
----
12816
2205
2280
query I rowsort
SELECT - 20 * col1 + + ( col2 ) FROM tab1 cor0
----
-143
-164
-466
query I rowsort
SELECT + 71 FROM tab2, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7597
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7597
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT 56 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + col1 col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + tab2.col2 + tab2.col2 FROM tab2
----
52
54
76
query I rowsort
SELECT - col0 * 66 AS col0 FROM tab2
----
-462
-5148
-5214
onlyif mysql # use DIV operator for integer division
query I rowsort label-7602
SELECT col2 DIV + 73 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7602
SELECT col2 / + 73 FROM tab1
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col1 * col0 col0 FROM tab0 cor0
----
2031
3394
8017
query I rowsort
SELECT + col2 * + col1 + - col1 AS col0 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT ALL + + 56 AS col2 FROM tab0 AS cor0
----
56
56
56
query I rowsort
SELECT - cor0.col2 + col0 * col2 - col1 AS col2 FROM tab1 AS cor0
----
3581
7571
82
query I rowsort
SELECT ALL cor0.col1 * + 33 FROM tab0 cor0
----
2838
3003
3201
query I rowsort
SELECT ALL - ( + cor0.col1 ) FROM tab1, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT DISTINCT 33 + col1 FROM tab2 AS cor0
----
50
64
92
query I rowsort
SELECT + 18 + col2 * + col0 AS col0 FROM tab2 AS cor0
----
2046
207
3020
onlyif mysql # use DIV operator for integer division
query I rowsort label-7611
SELECT DISTINCT col1 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-7611
SELECT DISTINCT col1 / - col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT 85 + - col1 FROM tab2 AS cor0
----
26
54
68
query I rowsort
SELECT col0 * + cor0.col1 + - col2 - - ( - col0 ) FROM tab2 AS cor0
----
1226
183
4498
query I rowsort
SELECT ALL - col1 * col0 * - col0 + col0 + ( - cor0.col2 ) AS col1 FROM tab0 cor0
----
118859
49527
720818
query I rowsort
SELECT DISTINCT ( - col2 ) + - cor0.col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT 57 * + col2 AS col0 FROM tab2 AS cor0
----
1482
1539
2166
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7617
SELECT CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-7617
SELECT CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT - 58 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0
query I rowsort
SELECT DISTINCT + col0 - + ( - col2 * + ( col1 ) ) AS col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + 96 AS col2 FROM tab1, tab0 AS cor0, tab0 cor1
----
96
query I rowsort
SELECT ALL - 11 * 43 * - col0 - 37 AS col0 FROM tab0
----
11315
16518
42060
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) - col2 col1 FROM tab0
----
-9
34
7
query I rowsort
SELECT + tab2.col0 + col0 * col0 + + col0 FROM tab2
----
6240
63
6399
onlyif mysql # use DIV operator for integer division
query I rowsort label-7624
SELECT col0 - - col2 DIV col0 AS col0 FROM tab0 cor0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-7624
SELECT col0 - - col2 / col0 AS col0 FROM tab0 cor0
----
25
35
89
query I rowsort
SELECT ALL + col2 * - col2 + col1 AS col0 FROM tab0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT col1 + 9 FROM tab1
----
19
22
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 col1 FROM tab0
----
-34
-34
-34
query I rowsort
SELECT DISTINCT + 34 AS col1 FROM tab0
----
34
query I rowsort
SELECT DISTINCT 25 * - col2 AS col2 FROM tab0
----
-2050
-25
-825
query I rowsort
SELECT ALL - + col0 + ( + 32 + + col1 ) FROM tab2 AS cor0
----
-30
13
56
query I rowsort
SELECT - 25 - col0 AS col1 FROM tab1
----
-105
-28
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-7632
SELECT DISTINCT + col2 + + col0 DIV + col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-7632
SELECT DISTINCT + col2 + + col0 / + col1 FROM tab0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7633
SELECT - 45 * - col0 + col0 * ( + col0 ) DIV + ( 8 ) FROM tab2 AS cor0
----
321
4270
4335
skipif mysql # not compatible
query I rowsort label-7633
SELECT - 45 * - col0 + col0 * ( + col0 ) / + ( 8 ) FROM tab2 AS cor0
----
321
4270
4335
query I rowsort
SELECT DISTINCT col2 * col2 + col2 + + col2 AS col0 FROM tab1
----
3024
3363
9408
query I rowsort
SELECT ALL - tab0.col2 * col2 * + 98 FROM tab0
----
-106722
-658952
-98
query I rowsort
SELECT - col0 * col2 + col0 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT ALL + col0 + cor0.col1 * 23 FROM tab1 AS cor0
----
294
379
601
query I rowsort
SELECT + cor0.col2 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + col1 + - 87 AS col1 FROM tab1 AS cor0
----
-61
-74
-77
query I rowsort
SELECT + cor0.col0 * col1 + col0 FROM tab1 AS cor0
----
1120
704
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - ( - cor0.col0 ) col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + col1 + col1 * 53 AS col2 FROM tab0 AS cor0
----
4644
4914
5238
query I rowsort
SELECT col1 + + col0 * - col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT - + col0 * - 97 AS col2 FROM tab2 AS cor0
----
679
7566
7663
query I rowsort
SELECT DISTINCT col0 + col2 * col0 FROM tab0
----
70
7387
816
query I rowsort
SELECT + ( 15 ) + col1 * col0 FROM tab1
----
1055
655
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 + - col2 col0 FROM tab0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7648
SELECT - CAST( 90 + + col0 AS SIGNED ) * col1 col1 FROM tab1
----
-1540
-2210
-2418
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7648
SELECT - CAST ( 90 + + col0 AS INTEGER ) * col1 col1 FROM tab1
----
-1540
-2210
-2418
onlyif mysql # use DIV operator for integer division
query I rowsort label-7649
SELECT ALL + 65 * cor0.col0 DIV - CAST( col0 AS SIGNED ) + col0 col1 FROM tab1 AS cor0
----
-1
-62
15
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL + 65 * cor0.col0 / - CAST ( col0 AS INTEGER ) + col0 col1 FROM tab1 AS cor0
----
-1
-62
15
query I rowsort
SELECT + + 17 * - col1 * + col1 AS col1 FROM tab2 AS cor0
----
-16337
-4913
-59177
query I rowsort
SELECT - ( - cor0.col0 ) * + tab1.col1 + + 47 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to c41c9c182070090d996fbe5dd5e39bf7
query I rowsort
SELECT ALL 63 + + 2 * col0 FROM tab0
----
111
133
241
query I rowsort
SELECT 9 * - 40 AS col1 FROM tab2
----
-360
-360
-360
onlyif mysql # use DIV operator for integer division
query I rowsort label-7654
SELECT DISTINCT + col2 DIV + 20 + + col0 AS col0 FROM tab0
----
25
35
93
skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT + col2 / + 20 + + col0 AS col0 FROM tab0
----
25
35
93
query I rowsort
SELECT ALL + + cor0.col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + col0 * col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + - col0 * - col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT + ( cor0.col0 ) * + col1 * col0 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT ALL 60 * col2 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-174960
-194940
-552960
query I rowsort
SELECT col2 + col2 * cor0.col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT + - 59 FROM tab2 AS cor0
----
-59
-59
-59
query I rowsort
SELECT DISTINCT + + col1 * + col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT ALL + 40 * - col1 AS col2 FROM tab2 AS cor0
----
-1240
-2360
-680
query I rowsort
SELECT col1 + ( col2 ) + - col0 FROM tab1
----
29
3
77
query I rowsort
SELECT + cor0.col0 FROM tab1 cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL + col0 - col0 * tab2.col1 * - col0 FROM tab2
----
106176
1526
359034
onlyif mysql # use DIV operator for integer division
query I rowsort label-7667
SELECT ALL - col1 DIV ( - 79 ) AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL - col1 / ( - 79 ) AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * col1 * - col1 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
-177418
-329218
-736918
query I rowsort
SELECT DISTINCT + col1 * + col2 + col1 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT ALL + - col0 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + col2 + + col2 + - col2 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + + col2 - 24 FROM tab2 cor0
----
14
2
3
query I rowsort
SELECT ALL + col2 * col1 + col2 * col2 FROM tab1 AS cor0
----
10464
3819
4320
query I rowsort
SELECT DISTINCT - + col2 + col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL + 44 + + col2 + col1 * col1 FROM tab2 AS cor0
----
1032
3551
371
query I rowsort
SELECT ( col2 ) * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - - 20 FROM tab0 AS cor0
----
20
query I rowsort
SELECT DISTINCT - - ( 51 ) FROM tab2 AS cor0
----
51
query I rowsort
SELECT DISTINCT - ( - 1 ) + col0 + col0 * col1 FROM tab0 cor0
----
2089
3431
8189
query I rowsort
SELECT + ( col2 ) + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT + col0 + col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
253
37
90
query I rowsort
SELECT DISTINCT + + ( - col0 ) * col0 + 97 AS col0 FROM tab1 AS cor0
----
-3999
-6303
88
query I rowsort
SELECT + col2 + 50 AS col1 FROM tab0 AS cor0
----
132
51
83
query I rowsort
SELECT DISTINCT - cor0.col2 + - cor0.col2 FROM tab2 AS cor0
----
-52
-54
-76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7685
SELECT ALL + CAST( - 15 AS SIGNED ) FROM tab0 AS cor0
----
-15
-15
-15
skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL + CAST ( - 15 AS INTEGER ) FROM tab0 AS cor0
----
-15
-15
-15
onlyif mysql # use DIV operator for integer division
query I rowsort label-7686
SELECT DISTINCT col1 DIV + col1 col1 FROM tab1
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7686
SELECT DISTINCT col1 / + col1 col1 FROM tab1
----
1
query I rowsort
SELECT 39 * 31 - - col1 * + col2 FROM tab1 AS cor0
----
1779
2457
2613
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7688
SELECT DISTINCT + col0 * + col1 + cor0.col0 + CAST( col0 + + col0 * - ( 14 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-128
42
80
skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT + col0 * + col1 + cor0.col0 + CAST ( col0 + + col0 * - ( 14 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-128
42
80
query I rowsort
SELECT ALL 87 + - 50 FROM tab0 cor0
----
37
37
37
query I rowsort
SELECT - col1 - col1 AS col2 FROM tab1 cor0
----
-20
-26
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-7691
SELECT - - 80 DIV col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
102
57
65
skipif mysql # not compatible
query I rowsort label-7691
SELECT - - 80 / col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
102
57
65
query I rowsort
SELECT col0 * col1 + + 37 * col1 + col2 * col2 AS col0 FROM tab0 AS cor0
----
18190
6335
6985
onlyif mysql # use DIV operator for integer division
query I rowsort label-7693
SELECT - + 32 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7693
SELECT - + 32 / col0 AS col0 FROM tab0 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 + - 8 col0 FROM tab1
----
23
23
23
query I rowsort
SELECT ALL ( ( - col1 ) ) + - col2 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT DISTINCT - - col0 + col1 AS col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7697
SELECT DISTINCT + col0 * + col0 DIV + col0 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-7697
SELECT DISTINCT + col0 * + col0 / + col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + - col1 * + col2 + - col1 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT 30 * col1 AS col1 FROM tab0
----
2580
2730
2910
query I rowsort
SELECT col2 * col2 - + col2 FROM tab2
----
1406
650
702
query I rowsort
SELECT DISTINCT - cor0.col1 + + col0 * col2 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT + col2 * - 93 FROM tab2 AS cor0
----
-2418
-2511
-3534
query I rowsort
SELECT ALL + col0 * cor0.col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT col1 * ( - 88 * col0 ) + ( + col2 * col2 ) FROM tab0
----
-180543
-298759
-705988
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7705
SELECT DISTINCT + CAST( + 14 AS SIGNED ) + cor0.col2 FROM tab2, tab1, tab0 AS cor0, tab0
----
15
47
96
skipif mysql # not compatible
query I rowsort label-7705
SELECT DISTINCT + CAST ( + 14 AS INTEGER ) + cor0.col2 FROM tab2, tab1, tab0 AS cor0, tab0
----
15
47
96
query I rowsort
SELECT DISTINCT tab0.col0 AS col1 FROM tab0, tab2, tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + - 40 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-40
query I rowsort
SELECT ALL + 21 FROM tab1
----
21
21
21
query I rowsort
SELECT + + cor0.col2 + col1 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT col1 + col2 * + ( col2 ) * - 98 FROM tab2 AS cor0
----
-141495
-66189
-71411
query I rowsort
SELECT - col1 + + 67 - - col0 AS col2 FROM tab1
----
121
134
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7712
SELECT + + cor0.col0 * CAST( 36 AS SIGNED ) - col2 AS col0 FROM tab1 AS cor0
----
2247
2784
54
skipif mysql # not compatible
query I rowsort label-7712
SELECT + + cor0.col0 * CAST ( 36 AS INTEGER ) - col2 AS col0 FROM tab1 AS cor0
----
2247
2784
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-7713
SELECT cor0.col1 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7713
SELECT cor0.col1 / col2 AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7714
SELECT ALL + - cor0.col1 DIV col1 + 16 FROM tab2 AS cor0
----
15
15
15
skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL + - cor0.col1 / col1 + 16 FROM tab2 AS cor0
----
15
15
15
query I rowsort
SELECT DISTINCT + - col2 * 20 * col1 AS col1 FROM tab0 AS cor0
----
-149240
-1940
-56760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7716
SELECT + + col0 / + CAST( NULL AS SIGNED ) - col0 * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7716
SELECT + + col0 / + CAST ( NULL AS INTEGER ) - col0 * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 68 FROM tab2
----
-68
query I rowsort
SELECT - 44 + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-122
-123
-51
query I rowsort
SELECT ( - 23 ) * cor0.col0 FROM tab1 AS cor0
----
-1472
-1840
-69
query I rowsort
SELECT - cor0.col2 + + 85 AS col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 1532f823d6a67542c1d554d535eb2bce
query I rowsort
SELECT DISTINCT - 33 FROM tab2, tab2 AS cor0
----
-33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7722
SELECT - ( col2 ) + - CAST( NULL AS SIGNED ) * col1 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-7722
SELECT - ( col2 ) + - CAST ( NULL AS INTEGER ) * col1 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7723
SELECT col1 DIV - cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7723
SELECT col1 / - cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7724
SELECT + cor0.col0 + - col2 DIV col1 AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-7724
SELECT + cor0.col0 + - col2 / col1 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + + col0 + - col2 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7726
SELECT + col0 + col2 DIV 30 AS col1 FROM tab0 AS cor0
----
25
35
91
skipif mysql # not compatible
query I rowsort label-7726
SELECT + col0 + col2 / 30 AS col1 FROM tab0 AS cor0
----
25
35
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-7727
SELECT + - col0 DIV col2 AS col1 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7727
SELECT + - col0 / col2 AS col1 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT 25 AS col2 FROM tab0, tab2, tab0 AS cor0
----
25
query I rowsort
SELECT DISTINCT 2 AS col1 FROM tab2, tab1 AS cor0
----
2
query I rowsort
SELECT DISTINCT - - 15 AS col0 FROM tab1 AS cor0
----
15
query I rowsort
SELECT DISTINCT - cor0.col2 - col2 * cor0.col2 FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT DISTINCT + 54 * cor0.col1 * 53 FROM tab2 cor0
----
168858
48654
88722
query I rowsort
SELECT - ( col0 ) AS col1 FROM tab0 cor0
----
-24
-35
-89
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 65 + - cor0.col2 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 86b551568e14931527b7b75e529eb893
query I rowsort
SELECT + 78 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048
query I rowsort
SELECT ALL - col2 + col1 * col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT ALL + col2 + + col0 * col1 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT - col2 * 35 AS col1 FROM tab2 cor0
----
-1330
-910
-945
query I rowsort
SELECT DISTINCT cor0.col0 + 35 FROM tab1 AS cor0
----
115
38
99
query I rowsort
SELECT - col2 * + ( - ( + col1 ) ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL ( - col0 ) FROM tab2
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - col2 * col1 + - col1 AS col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT col1 + 46 FROM tab1 AS cor0
----
56
59
72
query I rowsort
SELECT ALL + + 66 * col2 * + cor0.col0 - + col0 AS col2 FROM tab0 AS cor0
----
2275
481579
52248
query I rowsort
SELECT col1 * col2 + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL + + col1 - - 81 * col1 * - cor0.col1 FROM tab2 AS cor0
----
-23392
-281902
-77810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * 36 col0 FROM tab1 AS cor0
----
360
468
936
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7749
SELECT + CAST( NULL AS SIGNED ) * 1 + 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-7749
SELECT + CAST ( NULL AS INTEGER ) * 1 + col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 31 AS col2 FROM tab1 AS cor0
----
31
31
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-7751
SELECT DISTINCT - - col1 + - col0 DIV + col0 + ( - col2 ) * - col2 * cor0.col2 FROM tab2 AS cor0
----
17634
19713
54888
skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT - - col1 + - col0 / + col0 + ( - col2 ) * - col2 * cor0.col2 FROM tab2 AS cor0
----
17634
19713
54888
onlyif mysql # use DIV operator for integer division
query I rowsort label-7752
SELECT DISTINCT col0 DIV 21 + - col1 + col1 * + col0 FROM tab1 AS cor0
----
1030
52
633
skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT col0 / 21 + - col1 + col1 * + col0 FROM tab1 AS cor0
----
1030
52
633
query I rowsort
SELECT ALL tab2.col2 * 78 AS col1 FROM tab2
----
2028
2106
2964
query I rowsort
SELECT + 38 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7755
SELECT ALL + CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7755
SELECT ALL + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 81 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
-81
query I rowsort
SELECT + + ( + tab1.col0 ) FROM tab1, tab0 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT + col0 + + col2 + + col1 FROM tab0 AS cor0
----
133
143
262
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + col1 * - col2 col1 FROM tab1 AS cor0
----
-1261
-1430
-580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7760
SELECT - CAST( + 43 AS SIGNED ) - + col2 * + col1 AS col1 FROM tab1 AS cor0
----
-1291
-1447
-613
skipif mysql # not compatible
query I rowsort label-7760
SELECT - CAST ( + 43 AS INTEGER ) - + col2 * + col1 AS col1 FROM tab1 AS cor0
----
-1291
-1447
-613
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7761
SELECT - CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-7761
SELECT - CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT DISTINCT + cor0.col0 - col1 * - col1 AS col1 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT col0 + 61 AS col1 FROM tab1 AS cor0
----
125
141
64
query I rowsort
SELECT DISTINCT ( cor0.col1 ) - col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT + - 48 * - col1 + col2 AS col1 FROM tab1 AS cor0
----
1302
537
720
query I rowsort
SELECT + - 44 FROM tab0 AS cor0
----
-44
-44
-44
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab0 cor2
----
972 values hashing to 8420206d6932c454f05a38de634b3cb5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7768
SELECT ALL + - CAST( + col2 AS SIGNED ) * col1 + 85 col0 FROM tab0 AS cor0
----
-12
-2753
-7377
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL + - CAST ( + col2 AS INTEGER ) * col1 + 85 col0 FROM tab0 AS cor0
----
-12
-2753
-7377
query I rowsort
SELECT ALL - 85 * - col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3010
7654
query I rowsort
SELECT ALL + 55 * - tab2.col0 + col0 * col1 FROM tab2
----
-168
-3002
312
query I rowsort
SELECT DISTINCT - + 90 - tab1.col0 FROM tab1, tab0, tab1 AS cor0
----
-154
-170
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7772
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 + col1 + col0 * + 45 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7772
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 + col1 + col0 * + 45 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT - - 59 FROM tab0, tab1, tab2 AS cor0
----
59
query I rowsort
SELECT 85 + + col2 AS col1 FROM tab2 cor0
----
111
112
123
query I rowsort
SELECT ALL 33 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT - cor0.col2 * 42 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 987e527ff74335520cbbc2fbc45c80cf
query I rowsort
SELECT DISTINCT + - 16 - + cor0.col2 AS col1 FROM tab1 AS cor0
----
-112
-70
-73
query I rowsort
SELECT + 74 * - tab1.col0 AS col1 FROM tab1
----
-222
-4736
-5920
query I rowsort
SELECT DISTINCT - + 83 + 62 AS col2 FROM tab0, tab1, tab2 AS cor0
----
-21
onlyif mysql # use DIV operator for integer division
query I rowsort label-7780
SELECT - 97 DIV col2 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7780
SELECT - 97 / col2 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT tab0.col0 * + col0 AS col1 FROM tab0
----
1225
576
7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7782
SELECT ALL + + col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7782
SELECT ALL + + col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * + 17 + - col2 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-5177
1648
373
query I rowsort
SELECT + + col2 + col2 AS col1 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT ALL - - col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - - cor0.col0 * - col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7788
SELECT ALL + - col2 * CAST( - 85 AS SIGNED ) + cor0.col1 AS col2 FROM tab2 AS cor0
----
2269
2326
3247
skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL + - col2 * CAST ( - 85 AS INTEGER ) + cor0.col1 AS col2 FROM tab2 AS cor0
----
2269
2326
3247
query I rowsort
SELECT DISTINCT + - col0 * col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - + col2 * - 42 * + 58 FROM tab2 AS cor0
----
63336
65772
92568
onlyif mysql # use DIV operator for integer division
query I rowsort label-7791
SELECT - col2 + + col1 DIV + 91 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-7791
SELECT - col2 + + col1 / + 91 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL 54 * - col0 AS col1 FROM tab2
----
-378
-4212
-4266
onlyif mysql # use DIV operator for integer division
query I rowsort label-7793
SELECT - 98 + + col0 DIV - col1 AS col0 FROM tab1
----
-104
-104
-98
skipif mysql # not compatible
query I rowsort label-7793
SELECT - 98 + + col0 / - col1 AS col0 FROM tab1
----
-104
-104
-98
query I rowsort
SELECT ALL cor0.col2 * - tab2.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3f5ea019223361c8c7a5502ecc1aeefb
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7795
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-7795
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT ALL - cor1.col0 FROM tab1 cor0 CROSS JOIN tab2, tab2 cor1, tab1 AS cor2
----
81 values hashing to adaea38eae032c1639715f21831dd376
query I rowsort
SELECT DISTINCT + col0 * - ( col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-7798
SELECT ALL - col1 + col2 DIV - col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-7798
SELECT ALL - col1 + col2 / - col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - - col1 + col0 * + 36 AS col0 FROM tab0 AS cor0
----
1357
3295
950
query I rowsort
SELECT ALL - col0 * + ( - 91 ) AS col1 FROM tab0 AS cor0
----
2184
3185
8099
query I rowsort
SELECT DISTINCT col1 + col0 * 28 FROM tab0 AS cor0
----
1077
2583
758
query I rowsort
SELECT ALL col2 - col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 * - col0 * + 27 AS col1 FROM tab2
----
-5103
-54756
-81054
query I rowsort
SELECT ALL - col1 * + col1 * - 56 AS col0 FROM tab0
----
414176
463736
526904
query I rowsort
SELECT + col1 + + col2 * - col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
onlyif mysql # use DIV operator for integer division
query I rowsort label-7806
SELECT + ( ( col2 ) ) + col0 * - col1 DIV col1 FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-7806
SELECT + ( ( col2 ) ) + col0 * - col1 / col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT + - col0 + 44 FROM tab2 AS cor0
----
-34
-35
37
query I rowsort
SELECT ALL - 6 + col1 AS col0 FROM tab2 AS cor0
----
11
25
53
query I rowsort
SELECT DISTINCT - 5 - - 38 AS col1 FROM tab1 AS cor0
----
33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7811
SELECT + - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-7811
SELECT + - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT 21 * ( col2 ) AS col0 FROM tab2 AS cor0
----
546
567
798
query I rowsort
SELECT + + ( col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + 86 * - col2 * col0 FROM tab1 AS cor0
----
-13932
-313728
-660480
query I rowsort
SELECT col0 + - col2 * col1 * 96 FROM tab2 AS cor0
----
-147186
-61937
-80345
onlyif mysql # use DIV operator for integer division
query I rowsort label-7816
SELECT DISTINCT ( + cor0.col2 ) + ( cor0.col1 ) DIV col1 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT ( + cor0.col2 ) + ( cor0.col1 ) / col1 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT DISTINCT - cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL col2 * + col1 + - col1 AS col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT - col2 * col1 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT col0 + - col1 * - ( col0 ) AS col1 FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT - + col1 * + col1 * - col1 AS col0 FROM tab2 AS cor0
----
205379
29791
4913
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 6 col0 FROM tab0 cor0
----
144
210
534
query I rowsort
SELECT 96 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
query I rowsort
SELECT ALL - col1 * col1 * col1 FROM tab1 cor0
----
-1000
-17576
-2197
query I rowsort
SELECT ALL 72 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7826
SELECT DISTINCT + col0 DIV col2 AS col0 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT + col0 / col2 AS col0 FROM tab1
----
0
1
query I rowsort
SELECT DISTINCT + col2 * col1 + - cor0.col0 * - col1 * col0 FROM tab1 AS cor0
----
1638
41530
84448
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col1 * - col1 + - col2 col1 FROM tab1 AS cor0
----
-13616
-2082
-6457
onlyif mysql # use DIV operator for integer division
query I rowsort label-7829
SELECT ALL col1 + cor0.col0 DIV col1 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL col1 + cor0.col0 / col1 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - - col1 * - col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT + - cor0.col1 + - col1 * col1 AS col2 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT DISTINCT + col2 * + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-157464
-185193
-884736
query I rowsort
SELECT DISTINCT col2 * - col0 AS col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - ( col2 ) * - col0 * col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT ( col1 + col1 ) * col1 AS col2 FROM tab0
----
14792
16562
18818
query I rowsort
SELECT 47 * + col2 * - col1 FROM tab1
----
-26790
-58656
-65988
query I rowsort
SELECT ( + col2 ) * tab2.col2 AS col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT DISTINCT - + cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-24
-35
-89
query I rowsort
SELECT DISTINCT 69 * - tab2.col0 * + col2 AS col1 FROM tab2
----
-13041
-139932
-207138
query I rowsort
SELECT DISTINCT tab2.col2 + - col2 * col2 AS col2 FROM tab2
----
-1406
-650
-702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 * + col1 col0 FROM tab0
----
2871
7544
98
query I rowsort
SELECT DISTINCT col2 + col1 * + col2 AS col0 FROM tab1
----
1344
1458
627
query I rowsort
SELECT DISTINCT + col1 * tab1.col1 FROM tab1
----
100
169
676
query I rowsort
SELECT + col2 - col1 * col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT tab1.col0 - tab1.col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT col2 * col0 + - col2 FROM tab0
----
34
7216
759
query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NOT NULL >= NULL
----
query IIIIII rowsort
SELECT * FROM tab1, tab1 cor0 WHERE NOT NULL <> NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7849
SELECT col1 * + col0 DIV col0 AS col1 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-7849
SELECT col1 * + col0 / col0 AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT col1 + col1 * col1 * col1 AS col2 FROM tab0
----
636142
753662
912770
query I rowsort
SELECT tab2.col0 * - col2 AS col1 FROM tab2
----
-189
-2028
-3002
query III rowsort
SELECT * FROM tab0 WHERE col0 + col2 + col2 * + col2 > NULL
----
query I rowsort
SELECT ALL - tab0.col2 * - col2 AS col1 FROM tab0
----
1
1089
6724
query I rowsort
SELECT ALL tab1.col0 * - col0 AS col2 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT col1 * + tab1.col0 * col1 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT + col0 * col2 FROM tab2 WHERE NULL IN ( col2 + + col2 * - col2 * + col0 )
----
query I rowsort
SELECT + col0 * tab2.col1 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL tab0.col1 * tab0.col1 * col0 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT ALL + col1 - - col0 * col1 FROM tab2
----
1360
248
4661
query I rowsort
SELECT col2 + - col1 * col2 AS col0 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT ALL + col1 * col1 * col0 AS col2 FROM tab1
----
13520
2028
6400
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 + col0 IN ( col1 * + tab1.col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
onlyif mysql # use DIV operator for integer division
query I rowsort label-7863
SELECT DISTINCT + col2 - - col1 * + col0 DIV col0 FROM tab0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-7863
SELECT DISTINCT + col2 - - col1 * + col0 / col0 FROM tab0
----
119
173
98
query I rowsort
SELECT tab1.col1 * tab1.col0 AS col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL + col0 * - col2 AS col2 FROM tab1
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-7866
SELECT col2 * col0 + col1 DIV + col2 FROM tab0
----
132
7299
794
skipif mysql # not compatible
query I rowsort label-7866
SELECT col2 * col0 + col1 / + col2 FROM tab0
----
132
7299
794
query I rowsort
SELECT DISTINCT + col0 * col1 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL + - col1 + - col1 FROM tab2 cor0
----
-118
-34
-62
query I rowsort
SELECT - 7 * col0 AS col0 FROM tab2 AS cor0
----
-49
-546
-553
query I rowsort
SELECT ALL cor0.col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to b6efe6f7ec1a3daa3cc6ea9dd7d13455
onlyif mysql # use DIV operator for integer division
query I rowsort label-7872
SELECT DISTINCT - col1 DIV - cor0.col1 col2 FROM tab1 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7872
SELECT DISTINCT - col1 / - cor0.col1 col2 FROM tab1 AS cor0
----
1
query I rowsort
SELECT + ( - 85 ) AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7874
SELECT 95 + cor0.col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7874
SELECT 95 + cor0.col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-7875
SELECT ALL col0 DIV + col1 AS col0 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-7875
SELECT ALL col0 / + col1 AS col0 FROM tab1
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col0 FROM tab0, tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - 11 AS col0 FROM tab0 AS cor0
----
-11
query I rowsort
SELECT DISTINCT col0 * - col0 + + col2 * + col2 FROM tab2
----
-4797
-5408
680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 col0 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to afa1a417c354fab37e0e421ec67035c7
query I rowsort
SELECT + - col0 + + col2 * + 89 AS col2 FROM tab0 AS cor0
----
2913
54
7209
query I rowsort
SELECT + col0 * col2 + - col1 + col1 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-7882
SELECT + col2 DIV - tab1.col2 AS col2 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7882
SELECT + col2 / - tab1.col2 AS col2 FROM tab1
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7883
SELECT ALL - col2 DIV tab1.col1 AS col2 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL - col2 / tab1.col1 AS col2 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT col0 * + col1 * + col1 + col0 AS col1 FROM tab1
----
13600
2031
6464
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) = ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col2 * + col1 col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT + col0 * col1 * cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
22848
271577
6758
query I rowsort
SELECT col0 - col2 * col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-7889
SELECT ALL + col2 * - cor0.col2 + - col1 + - cor0.col0 DIV + col0 FROM tab0 AS cor0
----
-1176
-6816
-99
skipif mysql # not compatible
query I rowsort label-7889
SELECT ALL + col2 * - cor0.col2 + - col1 + - cor0.col0 / + col0 FROM tab0 AS cor0
----
-1176
-6816
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 * + col0 col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT + col2 - - col1 FROM tab1 AS cor0
----
109
67
80
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 * + col1 ) NOT BETWEEN col0 AND ( + col0 + col0 )
----
query I rowsort
SELECT - tab0.col2 * - col1 - - col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT + col0 * tab1.col2 * - col1 + col1 AS col2 FROM tab1 WHERE NOT ( NULL ) = NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + col2 col0 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT - col0 + + col1 * - col0 AS col2 FROM tab0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL + col0 * tab1.col2 + + tab1.col0 * col2 - col0 AS col1 FROM tab1
----
15280
321
7232
query I rowsort
SELECT DISTINCT - tab2.col2 AS col0 FROM tab2 WHERE - col1 - col1 * col1 > ( col2 )
----
query I rowsort
SELECT col1 + tab1.col1 * col2 FROM tab1
----
1261
1430
580
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= + col2 * + col1
----
query I rowsort
SELECT tab1.col1 + + col2 FROM tab1
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col0 * - 7 col1 FROM tab0 AS cor0
----
148
532
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7904
SELECT + + col1 * col0 DIV 99 AS col1 FROM tab1 AS cor0
----
0
10
6
skipif mysql # not compatible
query I rowsort label-7904
SELECT + + col1 * col0 / 99 AS col1 FROM tab1 AS cor0
----
0
10
6
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab2 AS cor0, tab0 cor1
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975
onlyif mysql # use DIV operator for integer division
query I rowsort label-7906
SELECT DISTINCT - ( + col1 ) DIV col0 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-7906
SELECT DISTINCT - ( + col1 ) / col0 FROM tab0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 col0 FROM tab2 AS cor0
----
58
58
58
query I rowsort
SELECT ALL - + ( - cor0.col0 ) * + ( - col1 * + col0 ) - 70 FROM tab1 AS cor0
----
-304
-41030
-83270
query I rowsort
SELECT - - 97 AS col0 FROM tab2 AS cor0
----
97
97
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7910
SELECT DISTINCT - cor0.col2 DIV + col0 + + 48 * 32 FROM tab1 AS cor0
----
1518
1535
1536
skipif mysql # not compatible
query I rowsort label-7910
SELECT DISTINCT - cor0.col2 / + col0 + + 48 * 32 FROM tab1 AS cor0
----
1518
1535
1536
query I rowsort
SELECT DISTINCT + ( col1 ) * + col1 + col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * - col2 col2 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT + 98 * + cor0.col2 + cor0.col1 AS col1 FROM tab1 AS cor0
----
5318
5596
9421
query I rowsort
SELECT - + col1 - - col0 AS col0 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 77 * + col2 + cor0.col1 col1 FROM tab1 AS cor0
----
4210
4409
7418
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7916
SELECT col1 * - CAST( NULL AS SIGNED ) + col1 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7916
SELECT col1 * - CAST ( NULL AS INTEGER ) + col1 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col2 * - col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-7918
SELECT - cor0.col2 DIV - 65 + col2 FROM tab1 AS cor0
----
54
57
97
skipif mysql # not compatible
query I rowsort label-7918
SELECT - cor0.col2 / - 65 + col2 FROM tab1 AS cor0
----
54
57
97
query I rowsort
SELECT DISTINCT + - col1 + col2 AS col2 FROM tab1 cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7920
SELECT ALL + col2 + + col1 DIV - col2 AS col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-7920
SELECT ALL + col2 + + col1 / - col2 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - col1 * - ( col2 ) + - col2 * + 35 + col0 AS col0 FROM tab0 AS cor0
----
1707
4681
97
query I rowsort
SELECT ( + tab2.col0 ) AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 - tab2.col1 * + ( col2 ) col0 FROM tab2
----
-1508
-608
-810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 31 col1 FROM tab2 AS cor0
----
-1178
-806
-837
query I rowsort
SELECT ALL - col0 * 21 + + col0 AS col2 FROM tab0 AS cor0
----
-1780
-480
-700
query I rowsort
SELECT ALL + 45 * + col0 + + col0 + + col1 AS col0 FROM tab0 AS cor0
----
1190
1707
4185
onlyif mysql # use DIV operator for integer division
query I rowsort label-7927
SELECT DISTINCT - - 83 DIV col0 AS col2 FROM tab1 AS cor0
----
1
27
skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT - - 83 / col0 AS col2 FROM tab1 AS cor0
----
1
27
query I rowsort
SELECT DISTINCT + - 44 * + col2 AS col0 FROM tab2 cor0
----
-1144
-1188
-1672
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7929
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7929
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 15 + + col1 * col2 FROM tab0 AS cor0
----
112
2853
7477
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - + 99 AS col1 FROM tab0 AS cor0
----
-99
query I rowsort
SELECT DISTINCT + col0 * - 24 FROM tab2 AS cor0
----
-168
-1872
-1896
query I rowsort
SELECT DISTINCT + ( + col0 ) + + col1 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - col0 + + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7420
-8370
-9444
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 + cor0.col0 col0 FROM tab1 AS cor0
----
-1168
-1401
-506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 72 col0 FROM tab0 AS cor0
----
-72
-72
-72
query I rowsort
SELECT DISTINCT + col0 * - col1 + + 43 FROM tab1
----
-35
-597
-997
query I rowsort
SELECT + - 54 FROM tab2 AS cor0
----
-54
-54
-54
query I rowsort
SELECT ALL + 58 FROM tab2 cor0
----
58
58
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-7941
SELECT ALL - col1 + 25 DIV + col1 FROM tab2 AS cor0
----
-16
-31
-59
skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL - col1 + 25 / + col1 FROM tab2 AS cor0
----
-16
-31
-59
query I rowsort
SELECT DISTINCT 59 + - col2 + col0 FROM tab0 AS cor0
----
50
66
93
query I rowsort
SELECT - ( + tab0.col1 ) + col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - 39 * + col2 * col0 AS col1 FROM tab0
----
-1365
-284622
-30888
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 col0 FROM tab2
----
21
query I rowsort
SELECT DISTINCT + 65 * col1 - - col0 FROM tab0 AS cor0
----
5614
6004
6340
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL ( col2 ) * col2 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7949
SELECT ALL - col0 * col1 + + col0 - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL - col0 * col1 + + col0 - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7950
SELECT col1 + - col1 DIV col0 FROM tab1 AS cor0
----
10
13
18
skipif mysql # not compatible
query I rowsort label-7950
SELECT col1 + - col1 / col0 FROM tab1 AS cor0
----
10
13
18
query I rowsort
SELECT col2 + col2 * col0 * - ( + cor0.col0 * + ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
13307961
26298
58982496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * - col2 col2 FROM tab0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-7953
SELECT ALL 76 DIV 26 FROM tab2
----
2
2
2
skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL 76 / 26 FROM tab2
----
2
2
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7954
SELECT ALL CAST( - 22 AS SIGNED ) * - col0 AS col1 FROM tab2
----
154
1716
1738
skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL CAST ( - 22 AS INTEGER ) * - col0 AS col1 FROM tab2
----
154
1716
1738
query I rowsort
SELECT ALL col0 * 13 AS col0 FROM tab0
----
1157
312
455
query I rowsort
SELECT DISTINCT tab0.col2 + 86 AS col1 FROM tab0, tab2 AS cor0
----
119
168
87
query I rowsort
SELECT DISTINCT + col0 * - col0 * col0 FROM tab2 AS cor0
----
-343
-474552
-493039
onlyif mysql # use DIV operator for integer division
query I rowsort label-7958
SELECT ALL + 48 DIV - cor0.col0 AS col2 FROM tab2 cor0
----
-6
0
0
skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL + 48 / - cor0.col0 AS col2 FROM tab2 cor0
----
-6
0
0
query I rowsort
SELECT - - 66 AS col0 FROM tab2 AS cor0
----
66
66
66
query I rowsort
SELECT + col0 * - 4 + 93 FROM tab1
----
-163
-227
81
query I rowsort
SELECT ALL + col1 * + 51 + col0 FROM tab2
----
1588
3087
946
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7962
SELECT DISTINCT - col0 + + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7963
SELECT + col0 * 27 + col0 + - col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7963
SELECT + col0 * 27 + col0 + - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col0 + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7965
SELECT col1 - CAST( NULL AS SIGNED ) / - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7965
SELECT col1 - CAST ( NULL AS INTEGER ) / - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * 90 AS col0 FROM tab2 cor0
----
630
7020
7110
query I rowsort
SELECT DISTINCT + col2 * - ( col0 ) * col1 + - 24 * col1 * + col0 + col0 * + col0 * - col2 AS col1 FROM tab1 cor0
----
-285312
-6570
-739200
query I rowsort
SELECT DISTINCT - - 51 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
51
query I rowsort
SELECT DISTINCT + col0 * + 51 AS col1 FROM tab0
----
1224
1785
4539
onlyif mysql # use DIV operator for integer division
query I rowsort label-7970
SELECT DISTINCT 2 * 44 DIV - col0 - 46 * 40 * + col0 col2 FROM tab1 AS cor0
----
-117761
-147201
-5549
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT 2 * 44 / - col0 - 46 * 40 * + col0 col2 FROM tab1 AS cor0
----
-117761
-147201
-5549
query I rowsort
SELECT ALL + - col0 * + 4 FROM tab2 AS cor0
----
-28
-312
-316
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 + - cor0.col0 * + col2 col0 FROM tab2 AS cor0
----
-196
-2035
-3009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 * col2 col1 FROM tab0
----
2442
6068
74
query I rowsort
SELECT + col1 * cor0.col0 + + col0 + - col1 AS col1 FROM tab2 AS cor0
----
1405
193
4621
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT - 92 * - col0 * - col2 FROM tab1 AS cor0
----
-14904
-335616
-706560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7977
SELECT CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-7977
SELECT CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + col2 * - ( + col1 * cor0.col1 ) FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT + - 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-7980
SELECT - col0 + + CAST( 81 + col1 AS SIGNED ) FROM tab2 AS cor0
----
105
19
62
skipif mysql # not compatible
query I rowsort label-7980
SELECT - col0 + + CAST ( 81 + col1 AS INTEGER ) FROM tab2 AS cor0
----
105
19
62
query I rowsort
SELECT col1 * - 37 FROM tab2 AS cor0
----
-1147
-2183
-629
query I rowsort
SELECT DISTINCT col2 * - 66 AS col0 FROM tab1 AS cor0
----
-3564
-3762
-6336
query I rowsort
SELECT ALL + col2 + + col0 + - col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - cor0.col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + col1 col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + - col0 + ( - 44 ) AS col2 FROM tab1 AS cor0
----
-108
-124
-47
query I rowsort
SELECT ALL - col1 * col2 - cor0.col2 * col0 * col2 FROM tab0 AS cor0
----
-132
-28974
-605898
query I rowsort
SELECT + + col2 + - col2 * 28 FROM tab1 AS cor0
----
-1458
-1539
-2592
query I rowsort
SELECT ALL - col1 + col1 * + col1 AS col2 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT ALL - cor0.col1 * 6 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 7bc6d89ade4de51eb078005606e6352e
query I rowsort
SELECT DISTINCT 60 AS col2 FROM tab1 AS cor0
----
60
query I rowsort
SELECT ALL + col0 + + col2 * - col2 AS col0 FROM tab1 cor0
----
-2913
-3185
-9136
query I rowsort
SELECT + ( + 5 ) FROM tab1 AS cor0
----
5
5
5
query I rowsort
SELECT ALL - - col2 + + 41 AS col2 FROM tab2 AS cor0
----
67
68
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7995
SELECT ALL CAST( NULL AS SIGNED ) * + 52 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL CAST ( NULL AS INTEGER ) * + 52 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab1 cor1, tab2, tab2 cor2
----
3645 values hashing to b62c1ebc681aca72d13feadb888b3be7
query I rowsort
SELECT DISTINCT + 37 + - 30 AS col2 FROM tab0, tab1 AS cor0
----
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7998
SELECT + + col2 * + col1 + + 90 DIV - col1 FROM tab0 cor0
----
2837
7462
97
skipif mysql # not compatible
query I rowsort label-7998
SELECT + + col2 * + col1 + + 90 / - col1 FROM tab0 cor0
----
2837
7462
97
query I rowsort
SELECT + cor0.col1 * col0 - - col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT 15 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT ALL - 14 * - tab2.col2 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 2ff34bc3c8316699e6eb2d8b1af827c5
query I rowsort
SELECT + 38 AS col1 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
query I rowsort
SELECT ( col1 ) * - col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT DISTINCT + col1 * - col2 AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT tab1.col1 * 20 FROM tab1, tab0 cor0
----
9 values hashing to 1aba647d4c6b0c86a8e9b493088419d7
query I rowsort
SELECT + 20 * col0 AS col2 FROM tab0
----
1780
480
700
query I rowsort
SELECT - col1 * + col0 - col0 FROM tab0 cor0
----
-2088
-3430
-8188
query I rowsort
SELECT - col1 * - tab0.col2 AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT 40 * col0 * col2 FROM tab0
----
1400
291920
31680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + ( col1 * col2 ) col0 FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT - - col0 * - 20 FROM tab2 AS cor0
----
-140
-1560
-1580
query I rowsort
SELECT + 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 col2 + ( - 63 ) * col0 col0 FROM tab0
----
-1479
-2204
-5525
query I rowsort
SELECT DISTINCT col2 + - col2 AS col2 FROM tab2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col1 * + 54 col1 FROM tab1
----
-1401
-476
-622
query I rowsort
SELECT + col2 * col2 - col2 * + col1 AS col2 FROM tab0
----
-1749
-738
-96
query I rowsort
SELECT + col0 + + 89 AS col2 FROM tab2
----
167
168
96
query I rowsort
SELECT DISTINCT 23 AS col1 FROM tab0, tab0 AS cor0
----
23
query I rowsort
SELECT DISTINCT - col1 * - ( + col0 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - - cor0.col2 + + col1 + + 62 FROM tab2 AS cor0
----
117
120
147
query I rowsort
SELECT col2 + + ( + col0 ) AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - col0 + col2 * - col1 FROM tab1 cor0
----
-1328
-1407
-634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8023
SELECT ( col0 ) * col2 * - ( + 64 ) + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8023
SELECT ( col0 ) * col2 * - ( + 64 ) + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 4 * + 71 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 28106c9a3d99aaef74ba8078303acbbc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8025
SELECT + - 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-8025
SELECT + - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col0 + 29 AS col2 FROM tab1 AS cor0
----
-35
-51
26
query I rowsort
SELECT - col1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT col1 + + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL + - 71 AS col1 FROM tab1 AS cor0
----
-71
-71
-71
query I rowsort
SELECT + + col0 * col0 - col1 * col1 FROM tab0 AS cor0
----
-360
-6820
-8184
query I rowsort
SELECT + - 46 * - col0 AS col0 FROM tab1 AS cor0
----
138
2944
3680
query I rowsort
SELECT DISTINCT + + 29 * col2 AS col0 FROM tab2 AS cor0
----
1102
754
783
query I rowsort
SELECT DISTINCT + 95 * col0 AS col1 FROM tab2 AS cor0
----
665
7410
7505
onlyif mysql # use DIV operator for integer division
query I rowsort label-8034
SELECT - - ( col0 ) + - 37 DIV col1 AS col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8034
SELECT - - ( col0 ) + - 37 / col1 AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + - col1 + - col1 * - 79 AS col2 FROM tab2 AS cor0
----
1326
2418
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 col2 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8037
SELECT + CAST( - col2 AS SIGNED ) AS col1 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-8037
SELECT + CAST ( - col2 AS INTEGER ) AS col1 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT ( col1 ) * + col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT col2 + + col1 * - col0 * + col1 AS col0 FROM tab2 AS cor0
----
-22793
-271492
-6700
query I rowsort
SELECT DISTINCT + 21 AS col2 FROM tab2 AS cor0
----
21
query I rowsort
SELECT ALL + + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - 74 + + col0 * col2 AS col1 FROM tab2 AS cor0
----
115
1954
2928
query I rowsort
SELECT + tab0.col1 + col2 AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT 73 FROM tab0, tab1 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 9f0f371d979e70a792c8597c6559f0e2
query I rowsort
SELECT - - col2 * col1 + col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8047
SELECT ALL - CAST( NULL AS DECIMAL ) - + cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL - CAST ( NULL AS REAL ) - + cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + ( col2 ) * col2 + col1 AS col0 FROM tab0 AS cor0
----
1175
6815
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8049
SELECT DISTINCT CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-8049
SELECT DISTINCT CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + 97 * + col0 + col2 AS col1 FROM tab0 AS cor0
----
2361
3396
8715
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * - col1 + col0 + + 13 col0 FROM tab0 AS cor0
----
-2027
-3347
-7997
query I rowsort
SELECT ALL + cor0.col1 * 12 + cor0.col0 FROM tab2 cor0
----
283
379
786
query I rowsort
SELECT ALL + 8 + col2 * col2 FROM tab2 AS cor0
----
1452
684
737
query I rowsort
SELECT - 8 FROM tab1, tab2 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e
query I rowsort
SELECT col1 + col0 * col0 FROM tab0
----
1322
662
8012
query I rowsort
SELECT - 31 + col2 * col0 FROM tab2
----
158
1997
2971
query I rowsort
SELECT ALL - col1 + - col1 * - col2 FROM tab0
----
0
2752
7371
query I rowsort
SELECT ( + col1 * 53 ) FROM tab0
----
4558
4823
5141
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab2 AS cor0, tab2 cor1
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2
query I rowsort
SELECT + ( - col2 ) * + col2 * 70 AS col0 FROM tab0
----
-470680
-70
-76230
query I rowsort
SELECT DISTINCT - col2 * + col0 + - col0 FROM tab1
----
-165
-3712
-7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 * col0 col1 FROM tab0
----
168
245
623
query I rowsort
SELECT DISTINCT + 69 + + col1 * col2 FROM tab1 cor0
----
1317
1473
639
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8064
SELECT + 36 * + col0 + CAST( - col1 AS SIGNED ) + col1 FROM tab2 cor0
----
252
2808
2844
skipif mysql # not compatible
query I rowsort label-8064
SELECT + 36 * + col0 + CAST ( - col1 AS INTEGER ) + col1 FROM tab2 cor0
----
252
2808
2844
query I rowsort
SELECT DISTINCT + 71 + col0 AS col2 FROM tab2 AS cor0
----
149
150
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 + col0 - + col2 col1 FROM tab0 AS cor0
----
13
29
56
query I rowsort
SELECT ALL + - cor0.col1 + col1 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-8069
SELECT + - col0 DIV + col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8069
SELECT + - col0 / + col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + 90 col2 FROM tab0 cor0
----
-2160
-3150
-8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8071
SELECT ALL col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL col0 * CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 * + 17 AS col2 FROM tab0 cor0
----
1513
408
595
query I rowsort
SELECT - col0 + col0 AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL + + col2 + col0 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT col0 * - col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - 41 + - col0 * - col1 AS col2 FROM tab1
----
37
599
999
query I rowsort
SELECT DISTINCT col1 + tab2.col2 + 73 FROM tab2
----
128
131
158
query I rowsort
SELECT DISTINCT tab1.col0 + + col1 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT - 3 + col2 + col1 FROM tab1
----
106
64
77
query I rowsort
SELECT col0 * - cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-8081
SELECT - col0 DIV - 18 FROM tab2 cor0
----
0
4
4
skipif mysql # not compatible
query I rowsort label-8081
SELECT - col0 / - 18 FROM tab2 cor0
----
0
4
4
query I rowsort
SELECT - col0 * + col0 * - col2 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT - col1 + + 56 FROM tab2 cor0
----
-3
25
39
query I rowsort
SELECT - col0 * 62 FROM tab2
----
-434
-4836
-4898
query I rowsort
SELECT + col1 - 41 * col2 FROM tab1 AS cor0
----
-2188
-2327
-3923
query I rowsort
SELECT - col0 + + col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - + cor0.col1 + 3 AS col2 FROM tab1 AS cor0
----
-10
-23
-7
query I rowsort
SELECT - col0 + 40 FROM tab1 AS cor0
----
-24
-40
37
query I rowsort
SELECT - ( - col0 ) + col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - - 2 + 43 FROM tab0 cor0
----
45
45
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-8091
SELECT - cor0.col1 * + col2 + + col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
-1534
-644
-837
skipif mysql # not compatible
query I rowsort label-8091
SELECT - cor0.col1 * + col2 + + col2 / + col1 AS col1 FROM tab2 AS cor0
----
-1534
-644
-837
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col2 AS REAL ) FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL tab2.col2 * ( - 75 ) FROM tab2
----
-1950
-2025
-2850
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + ( - tab0.col0 ) + 19 ) col0 FROM tab0, tab1 AS cor0
----
16
5
70
query I rowsort
SELECT + 5 * col1 AS col2 FROM tab0 AS cor0
----
430
455
485
query I rowsort
SELECT - col1 - + col1 * ( 85 ) * cor0.col0 FROM tab1 AS cor0
----
-54410
-6656
-88413
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8097
SELECT - ( + col2 ) + + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-8097
SELECT - ( + col2 ) + + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 82 col1 FROM tab1
----
82
82
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 62 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c
query I rowsort
SELECT DISTINCT - col1 * tab2.col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ( 52 ) FROM tab1
----
52
52
52
query I rowsort
SELECT ALL - 26 AS col0 FROM tab0
----
-26
-26
-26
query I rowsort
SELECT ALL ( - ( - col2 ) ) AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL + col1 * tab2.col1 AS col1 FROM tab2
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-8105
SELECT ALL - ( col0 ) * cor0.col1 DIV 21 + cor0.col0 * + ( + col1 ) FROM tab2 AS cor0
----
1280
207
4383
skipif mysql # not compatible
query I rowsort label-8105
SELECT ALL - ( col0 ) * cor0.col1 / 21 + cor0.col0 * + ( + col1 ) FROM tab2 AS cor0
----
1280
207
4383
onlyif mysql # use DIV operator for integer division
query I rowsort label-8106
SELECT DISTINCT + 34 * col2 - - 4 DIV + col0 AS col0 FROM tab1 cor0
----
1837
1938
3264
skipif mysql # not compatible
query I rowsort label-8106
SELECT DISTINCT + 34 * col2 - - 4 / + col0 AS col0 FROM tab1 cor0
----
1837
1938
3264
query I rowsort
SELECT DISTINCT - col1 + - col2 - col2 * - 68 AS col0 FROM tab0 AS cor0
----
-30
2125
5403
query I rowsort
SELECT - ( col2 ) + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT - + cor0.col2 - col2 FROM tab1 AS cor0
----
-108
-114
-192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) + + col0 * + 88 col2 FROM tab2 AS cor0
----
609
6786
6873
query I rowsort
SELECT ALL 15 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8112
SELECT ALL + 32 * + col0 DIV col0 - - tab1.col0 * - col0 FROM tab1
----
-4064
-6368
23
skipif mysql # not compatible
query I rowsort label-8112
SELECT ALL + 32 * + col0 / col0 - - tab1.col0 * - col0 FROM tab1
----
-4064
-6368
23
query I rowsort
SELECT + col2 + + 38 AS col1 FROM tab2 AS cor0
----
64
65
76
query I rowsort
SELECT + cor0.col0 + - col2 + + col2 AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT 8 - col0 FROM tab0
----
-16
-27
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-8116
SELECT + 56 DIV + 1 AS col0 FROM tab2
----
56
56
56
skipif mysql # not compatible
query I rowsort label-8116
SELECT + 56 / + 1 AS col0 FROM tab2
----
56
56
56
query I rowsort
SELECT col2 - + col0 * + 79 FROM tab0
----
-1863
-2764
-6949
onlyif mysql # use DIV operator for integer division
query I rowsort label-8118
SELECT + + col2 * col0 + + ( col2 ) * col0 + col2 DIV col0 AS col1 FROM tab1 AS cor0
----
15361
342
7296
skipif mysql # not compatible
query I rowsort label-8118
SELECT + + col2 * col0 + + ( col2 ) * col0 + col2 / col0 AS col1 FROM tab1 AS cor0
----
15361
342
7296
query I rowsort
SELECT - 10 + - col0 * 16 FROM tab0 cor0
----
-1434
-394
-570
query I rowsort
SELECT + - 50 + + col0 FROM tab2 cor0
----
-43
28
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 70 + cor0.col2 * + cor0.col2 col2 FROM tab0 AS cor0
----
1159
6794
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-8122
SELECT DISTINCT - 3 DIV col1 col2 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT - 3 / col1 col2 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 col2 FROM tab0 AS cor0
----
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8124
SELECT col1 DIV - col0 + - col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1343
-221
-4602
skipif mysql # not compatible
query I rowsort label-8124
SELECT col1 / - col0 + - col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1343
-221
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8125
SELECT ALL + + col2 * col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL + + col2 * 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 DISTINCT col2 + - col2 * - col2 col1 FROM tab1 AS cor0
----
2970
3306
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-8127
SELECT DISTINCT - - 75 DIV cor0.col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8127
SELECT DISTINCT - - 75 / cor0.col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + - cor0.col0 + - col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8129
SELECT col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8129
SELECT col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col0 * + 34 AS col2 FROM tab0 AS cor0
----
1190
3026
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-8131
SELECT col1 + + 20 DIV - col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8131
SELECT col1 + + 20 / - col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - 68 FROM tab0, tab2 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f
query I rowsort
SELECT ALL - col1 + - cor0.col0 + col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT col0 * ( cor0.col0 ) FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT 28 * col0 * col0 + col2 FROM tab2 AS cor0
----
1399
170378
174786
query I rowsort
SELECT - 50 - col0 AS col0 FROM tab1 AS cor0
----
-114
-130
-53
query I rowsort
SELECT DISTINCT + + ( - 30 ) AS col1 FROM tab0 AS cor0
----
-30
query I rowsort
SELECT col1 * - cor0.col2 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8139
SELECT DISTINCT CAST( NULL AS SIGNED ) col1 FROM tab1, tab1 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8139
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1 FROM tab1, tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT + 83 AS col1 FROM tab0, tab0 AS cor0
----
83
query I rowsort
SELECT ALL - 72 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-82
-85
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8142
SELECT - CAST( NULL AS SIGNED ) + - 58 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8142
SELECT - CAST ( NULL AS INTEGER ) + - 58 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 25 + + ( cor0.col0 ) FROM tab1 cor0
----
-22
39
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-8144
SELECT - ( col0 ) DIV col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8144
SELECT - ( col0 ) / col0 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - 74 - + col2 AS col0 FROM tab2 AS cor0
----
-100
-101
-112
onlyif mysql # use DIV operator for integer division
query I rowsort label-8146
SELECT + cor0.col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-8146
SELECT + cor0.col2 / + col1 AS col2 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT ALL ( - col2 ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL col2 + + ( - col1 * 51 ) + col0 FROM tab1 AS cor0
----
-1269
-389
-487
query I rowsort
SELECT DISTINCT - + ( 76 ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
-228
-4864
-6080
query I rowsort
SELECT DISTINCT + 46 + cor0.col1 * + col1 * col0 FROM tab2 AS cor0
----
22877
271564
6773
query I rowsort
SELECT ALL + 71 - + 56 FROM tab0 AS cor0
----
15
15
15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) * col2 col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT ( + col1 ) * + cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT 42 AS col2 FROM tab0 AS cor0
----
42
42
42
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8155
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 / col0 col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8155
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 / col0 col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 col0 FROM tab1 AS cor0
----
17
17
17
query I rowsort
SELECT ALL - cor0.col1 * + col2 + + cor0.col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT + + 12 + - col0 FROM tab2 AS cor0
----
-66
-67
5
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( 56 AS REAL ) FROM tab1 AS cor0
----
56
query I rowsort
SELECT ALL 18 + ( cor0.col1 ) FROM tab1 AS cor0
----
28
31
44
query I rowsort
SELECT + + cor0.col1 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL + + 30 * col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
1023
2542
31
query I rowsort
SELECT DISTINCT + - ( - col1 ) * - cor0.col1 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT 97 * col0 AS col1 FROM tab0
----
2328
3395
8633
query I rowsort
SELECT - ( + col1 ) * col1 * + col2 FROM tab2
----
-10982
-25947
-90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-8166
SELECT DISTINCT - col1 * + col1 * + cor0.col0 + - col0 DIV cor0.col2 FROM tab1 AS cor0
----
-13520
-2028
-6401
skipif mysql # not compatible
query I rowsort label-8166
SELECT DISTINCT - col1 * + col1 * + cor0.col0 + - col0 / cor0.col2 FROM tab1 AS cor0
----
-13520
-2028
-6401
query I rowsort
SELECT DISTINCT + col2 * ( col2 ) + col1 FROM tab1 AS cor0
----
2942
3259
9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-8168
SELECT ALL + tab2.col2 DIV col0 + + ( - 77 ) DIV col0 + + col2 AS col1 FROM tab2
----
19
26
38
skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL + tab2.col2 / col0 + + ( - 77 ) / col0 + + col2 AS col1 FROM tab2
----
19
26
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8169
SELECT DISTINCT + 17 DIV - cor0.col2 + + cor0.col0 * cor1.col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eb103eabe531563e672e54874d056f9f
skipif mysql # not compatible
query I rowsort label-8169
SELECT DISTINCT + 17 / - cor0.col2 + + cor0.col0 * cor1.col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eb103eabe531563e672e54874d056f9f
query I rowsort
SELECT DISTINCT + 18 - + 36 AS col2 FROM tab0, tab2 cor0
----
-18
query I rowsort
SELECT col0 + ( + tab2.col2 * - col0 ) AS col1 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT col0 + tab2.col1 AS col0 FROM tab2
----
137
38
96
query I rowsort
SELECT col2 + col0 * 83 AS col2 FROM tab2
----
608
6500
6595
query I rowsort
SELECT ALL - 0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT + 83 * + col0 AS col1 FROM tab2 AS cor0
----
581
6474
6557
query I rowsort
SELECT DISTINCT - ( - col1 ) * + 15 FROM tab1 AS cor0
----
150
195
390
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2
----
3645 values hashing to 97b43fbe79eecd0bc6921392403b666d
query I rowsort
SELECT DISTINCT + 64 FROM tab1
----
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col0 col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + + 11 * - col2 FROM tab0 AS cor0
----
-11
-363
-902
query I rowsort
SELECT ALL 80 FROM tab0
----
80
80
80
query I rowsort
SELECT col2 * col1 * tab1.col0 AS col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT col1 * + cor0.col2 + + col1 - col2 AS col2 FROM tab1 AS cor0
----
1165
1376
523
query I rowsort
SELECT + col1 * - tab2.col1 + col2 + col2 FROM tab2
----
-213
-3429
-907
query I rowsort
SELECT ALL - col2 * 25 + - ( - tab0.col0 + - col0 ) AS col1 FROM tab0
----
-1872
-777
45
query I rowsort
SELECT ALL tab1.col0 + - col1 AS col2 FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL - col2 - col2 FROM tab2
----
-52
-54
-76
query I rowsort
SELECT ALL + col2 + - 64 - - ( col2 ) * + col1 * col2 AS col2 FROM tab0
----
34
611902
93623
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-50
query I rowsort
SELECT ALL col1 - 76 FROM tab1
----
-50
-63
-66
query I rowsort
SELECT DISTINCT col2 + - 74 FROM tab2
----
-36
-47
-48
query I rowsort
SELECT ALL - + 34 + col2 AS col2 FROM tab2 AS cor0
----
-7
-8
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8194
SELECT + + CAST( NULL AS SIGNED ) + col2 * - col2 col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8194
SELECT + + CAST ( NULL AS INTEGER ) + col2 * - col2 col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( + col0 ) AS col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL + 49 * col0 + - col0 * col2 + - col0 FROM tab0 AS cor0
----
-3026
1645
360
query I rowsort
SELECT ALL ( - col2 ) - cor0.col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT - ( 14 ) - - col2 FROM tab2 cor0
----
12
13
24
query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab1 cor0
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8200
SELECT + ( col0 ) * col0 - - CAST( col0 AS SIGNED ) * + cor0.col2 AS col0 FROM tab0 cor0
----
1260
1368
15219
skipif mysql # not compatible
query I rowsort label-8200
SELECT + ( col0 ) * col0 - - CAST ( col0 AS INTEGER ) * + cor0.col2 AS col0 FROM tab0 cor0
----
1260
1368
15219
query I rowsort
SELECT ALL + ( - col1 ) + - col2 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-8202
SELECT - 20 DIV + 72 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8202
SELECT - 20 / + 72 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8203
SELECT CAST( NULL AS DECIMAL ) FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8203
SELECT CAST ( NULL AS REAL ) FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + - col2 * + cor0.col1 + col0 FROM tab0 cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT ( - col0 ) * - col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - - 55 * - col2 + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-1806
-4517
-89
query I rowsort
SELECT + 43 + ( col1 ) * + 53 AS col2 FROM tab2 AS cor0
----
1686
3170
944
onlyif mysql # use DIV operator for integer division
query I rowsort label-8208
SELECT col2 DIV col2 + + col1 * + 9 FROM tab1 AS cor0
----
118
235
91
skipif mysql # not compatible
query I rowsort label-8208
SELECT col2 / col2 + + col1 * + 9 FROM tab1 AS cor0
----
118
235
91
query I rowsort
SELECT ALL 3 + cor0.col2 AS col1 FROM tab0 AS cor0
----
36
4
85
query I rowsort
SELECT DISTINCT + col1 - ( cor0.col1 ) * - col2 AS col0 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL - - col0 * + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT + ( - col1 ) + col1 * col1 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
7334
8279
9347
query I rowsort
SELECT ( 60 ) - + col0 AS col2 FROM tab0 cor0
----
-29
25
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-8214
SELECT ALL + 4 DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8214
SELECT ALL + 4 / + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 57 * - col1 + + col1 FROM tab1 AS cor0
----
-1456
-560
-728
query I rowsort
SELECT DISTINCT - 64 FROM tab1
----
-64
onlyif mysql # use DIV operator for integer division
query I rowsort label-8217
SELECT ALL + col0 DIV col0 AS col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL + col0 / col0 AS col0 FROM tab2
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col0 FROM tab2
----
-77
-77
-77
query I rowsort
SELECT - col0 * 11 AS col0 FROM tab2
----
-77
-858
-869
query I rowsort
SELECT DISTINCT + 91 AS col1 FROM tab1
----
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 col0 FROM tab2
----
-36
-36
-36
query I rowsort
SELECT - - col2 * + col0 - cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
3008
6640
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8223
SELECT ALL CAST( NULL AS SIGNED ) * + col0 / + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 / + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8224
SELECT - 10 DIV + col2 + col2 + - cor0.col0 FROM tab1 AS cor0
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-8224
SELECT - 10 / + col2 + col2 + - cor0.col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT - col2 + + col0 + - cor0.col1 FROM tab1 AS cor0
----
-29
-3
-77
query I rowsort
SELECT - ( col0 ) + + col1 + col0 AS col2 FROM tab2 cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 * + col1 + tab2.col2 col2 FROM tab2
----
-1430
-529
-803
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8228
SELECT CAST( 97 AS SIGNED ) + col0 FROM tab0
----
121
132
186
skipif mysql # not compatible
query I rowsort label-8228
SELECT CAST ( 97 AS INTEGER ) + col0 FROM tab0
----
121
132
186
query I rowsort
SELECT DISTINCT tab0.col1 * col0 + col0 AS col2 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT col1 * - col2 * col1 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT - col2 + - col2 + col0 AS col0 FROM tab2 AS cor0
----
-47
26
3
query I rowsort
SELECT DISTINCT cor0.col0 * col2 + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + + cor0.col1 * col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT 26 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT ALL + col0 - 44 FROM tab1 AS cor0
----
-41
20
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8236
SELECT ALL cor0.col2 + CAST( - cor0.col1 AS SIGNED ) FROM tab0 AS cor0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL cor0.col2 + CAST ( - cor0.col1 AS INTEGER ) FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - col2 * + col0 + + col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT - col0 * + col1 + 68 AS col1 FROM tab1
----
-10
-572
-972
query I rowsort
SELECT col0 + + col2 * - col1 AS col1 FROM tab2 cor0
----
-1456
-567
-830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 16 col1 FROM tab1 AS cor0
----
-48
-64
13
query I rowsort
SELECT ALL - + cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-8242
SELECT tab2.col0 DIV + tab2.col1 AS col2 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-8242
SELECT tab2.col0 / + tab2.col1 AS col2 FROM tab2
----
0
1
4
query I rowsort
SELECT DISTINCT cor0.col2 + + col0 * 13 AS col0 FROM tab0 cor0
----
1239
345
456
query I rowsort
SELECT col1 * col0 - - 69 FROM tab0 AS cor0
----
2133
3464
8168
query I rowsort
SELECT DISTINCT + - col2 * cor0.col0 * + 72 FROM tab1 AS cor0
----
-11664
-262656
-552960
query I rowsort
SELECT DISTINCT col0 * - ( - 47 + cor0.col2 ) FROM tab0 AS cor0
----
-3115
1610
336
query I rowsort
SELECT - col1 * col1 + 63 FROM tab1 AS cor0
----
-106
-37
-613
query I rowsort
SELECT + col0 - - ( + col0 ) * - col0 FROM tab2 cor0
----
-42
-6006
-6162
query I rowsort
SELECT ALL - col0 * col2 + col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT + col1 * 34 * col2 - - col1 * - cor0.col2 FROM tab0 AS cor0
----
246246
3201
93654
query I rowsort
SELECT ALL - col2 * + 29 FROM tab2 AS cor0
----
-1102
-754
-783
query I rowsort
SELECT 19 - tab1.col0 FROM tab1
----
-45
-61
16
query I rowsort
SELECT 12 AS col0 FROM tab0
----
12
12
12
query I rowsort
SELECT + col1 + + col2 + - col2 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT + col1 * 29 FROM tab1
----
290
377
754
query I rowsort
SELECT - col0 + + col0 * - col1 AS col1 FROM tab2 cor0
----
-1422
-224
-4680
query I rowsort
SELECT - cor0.col0 * - 44 AS col1 FROM tab2 cor0
----
308
3432
3476
query I rowsort
SELECT - - cor0.col0 + - cor0.col1 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + ( cor0.col2 ) + col0 col0 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT - 38 * col2 AS col0 FROM tab0 AS cor0
----
-1254
-3116
-38
query I rowsort
SELECT - col0 * + ( - cor0.col1 ) * - col2 + - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-119730
-51113
-5866
query I rowsort
SELECT + - col1 * + col1 * col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-8263
SELECT + col2 + col2 DIV - col0 AS col2 FROM tab0 cor0
----
1
32
82
skipif mysql # not compatible
query I rowsort label-8263
SELECT + col2 + col2 / - col0 AS col2 FROM tab0 cor0
----
1
32
82
query I rowsort
SELECT - col1 + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT cor0.col2 * cor0.col1 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to f5605ce6cbd6ecc79a4a887488bb6947
query I rowsort
SELECT ALL - 10 * - 92 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to bed6be9789c376280133d53d380f59bb
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab1 cor1, tab2 AS cor2
----
972 values hashing to 2507aa9f48c3db94de9fec065edf3731
onlyif mysql # use DIV operator for integer division
query I rowsort label-8268
SELECT ALL - 93 DIV col1 FROM tab0 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-8268
SELECT ALL - 93 / col1 FROM tab0 AS cor0
----
-1
-1
0
query I rowsort
SELECT - 94 * col2 AS col0 FROM tab2 AS cor0
----
-2444
-2538
-3572
query I rowsort
SELECT - cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT ALL cor0.col1 + col1 AS col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT - + 60 AS col0 FROM tab0 AS cor0
----
-60
query I rowsort
SELECT DISTINCT - cor0.col1 + col2 * + 29 AS col1 FROM tab1 AS cor0
----
1540
1643
2771
query I rowsort
SELECT ALL + 96 * - cor0.col2 * ( 11 ) + + col1 + + col2 FROM tab1 cor0
----
-101267
-56944
-60125
query I rowsort
SELECT ALL col2 * - col1 AS col0 FROM tab2 cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8276
SELECT - + col1 * col1 DIV col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-8276
SELECT - + col1 * col1 / col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - ( - cor0.col0 ) FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - 65 * col1 FROM tab0 AS cor0
----
-5590
-5915
-6305
query I rowsort
SELECT DISTINCT - col1 + col1 * - col2 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT ( col1 ) * 81 AS col0 FROM tab1 AS cor0
----
1053
2106
810
query I rowsort
SELECT ALL col1 * + col0 + - col2 AS col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT + - col0 * 55 AS col2 FROM tab1 AS cor0
----
-165
-3520
-4400
query I rowsort
SELECT + 24 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT + cor0.col2 + + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL + + col2 * - ( col2 ) AS col2 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL + - col2 * cor0.col2 + 81 AS col0 FROM tab1 AS cor0
----
-2835
-3168
-9135
query I rowsort
SELECT + - col2 + + 4 * 18 FROM tab0 AS cor0
----
-10
39
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-8288
SELECT DISTINCT - col2 + + ( - col0 ) DIV col1 + col0 * + 82 FROM tab2 AS cor0
----
547
6369
6436
skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT - col2 + + ( - col0 ) / col1 + col0 * + 82 FROM tab2 AS cor0
----
547
6369
6436
query I rowsort
SELECT DISTINCT + col1 * 13 + + col0 FROM tab0 AS cor0
----
1142
1272
1296
query I rowsort
SELECT DISTINCT + + col2 * - col2 FROM tab1 cor0
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 13 + - ( - col0 ) col1 FROM tab2 AS cor0
----
20
91
92
query I rowsort
SELECT col0 + - 7 AS col2 FROM tab1 AS cor0
----
-4
57
73
query I rowsort
SELECT ALL + - cor0.col2 * 99 AS col1 FROM tab1 cor0
----
-5346
-5643
-9504
query I rowsort
SELECT DISTINCT + + cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col1 col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT 95 + col2 AS col2 FROM tab2
----
121
122
133
query I rowsort
SELECT - col1 * col2 * - 53 + + col2 FROM tab2 AS cor0
----
34276
44388
81328
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 col1 FROM tab1
----
58
58
58
query I rowsort
SELECT + col2 * 0 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 + + col2 AS col1 FROM tab2
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 73 col2 FROM tab1
----
3942
4161
7008
query I rowsort
SELECT - tab2.col0 + ( col2 * col2 ) FROM tab2
----
1365
598
722
query I rowsort
SELECT 85 * + col2 FROM tab1
----
4590
4845
8160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 + - 77 * col2 col1 FROM tab0
----
-142
-2606
-6379
query I rowsort
SELECT ( - cor0.col1 ) + col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - + col0 + - col1 * cor0.col2 + - col2 FROM tab2 cor0
----
-1638
-763
-871
query I rowsort
SELECT ALL - 77 * + 40 FROM tab2 AS cor0
----
-3080
-3080
-3080
query I rowsort
SELECT DISTINCT ( ( col2 ) ) AS col0 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8310
SELECT 30 DIV 58 - col2 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-8310
SELECT 30 / 58 - col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + 28 * col1 - - col1 FROM tab0 AS cor0
----
2494
2639
2813
query I rowsort
SELECT + cor0.col0 - col1 * cor0.col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT + 92 + - ( - col1 ) * col2 * - col0 FROM tab2 cor0
----
-119560
-50942
-5767
query I rowsort
SELECT ALL - + 20 FROM tab0 AS cor0
----
-20
-20
-20
query I rowsort
SELECT ALL + - 88 + - col2 FROM tab2 AS cor0
----
-114
-115
-126
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 * - 11 * - col1 col2 FROM tab0 AS cor0
----
-17028
-18018
-19206
query I rowsort
SELECT DISTINCT col0 + 5 FROM tab1 AS cor0
----
69
8
85
query I rowsort
SELECT 40 FROM tab2 AS cor0
----
40
40
40
query I rowsort
SELECT 94 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
56
67
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8320
SELECT ALL CAST( NULL AS SIGNED ) * 3 + - col0 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL CAST ( NULL AS INTEGER ) * 3 + - col0 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 59 AS col0 FROM tab0, tab2 AS cor0
----
59
query I rowsort
SELECT ALL + + cor0.col0 + 43 * 30 AS col1 FROM tab2 AS cor0
----
1297
1368
1369
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 71 col2 FROM tab0 cor0
----
1704
2485
6319
query I rowsort
SELECT ALL - col0 + ( + 23 ) * col0 FROM tab2 AS cor0
----
154
1716
1738
query I rowsort
SELECT ALL + col1 * - 29 + 73 * - col2 FROM tab0 AS cor0
----
-2886
-4903
-8625
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8326
SELECT ALL col2 - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL col2 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8327
SELECT - tab1.col0 * 86 DIV - 22 FROM tab1, tab1 cor0, tab2, tab1 AS cor1
----
81 values hashing to 6cdd7623c6e6dedb3dc7b520f993fe1c
skipif mysql # not compatible
query I rowsort label-8327
SELECT - tab1.col0 * 86 / - 22 FROM tab1, tab1 cor0, tab2, tab1 AS cor1
----
81 values hashing to 6cdd7623c6e6dedb3dc7b520f993fe1c
query I rowsort
SELECT col1 + - 86 FROM tab1 AS cor0
----
-60
-73
-76
query I rowsort
SELECT - col2 + + ( + 51 ) FROM tab2
----
13
24
25
query I rowsort
SELECT col0 + 63 FROM tab2 AS cor0
----
141
142
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-8331
SELECT DISTINCT + col1 * 63 DIV 76 FROM tab2 AS cor0
----
14
25
48
skipif mysql # not compatible
query I rowsort label-8331
SELECT DISTINCT + col1 * 63 / 76 FROM tab2 AS cor0
----
14
25
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + + col0 col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT 26 AS col2 FROM tab0, tab2 AS cor0
----
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8334
SELECT + col0 DIV 71 + col2 * + col1 FROM tab0
----
2838
7463
97
skipif mysql # not compatible
query I rowsort label-8334
SELECT + col0 / 71 + col2 * + col1 FROM tab0
----
2838
7463
97
query I rowsort
SELECT 4 + + cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to e1444e6544e65a2321b4d6ba6abf25c9
query I rowsort
SELECT ALL - - 70 FROM tab1 AS cor0
----
70
70
70
query I rowsort
SELECT DISTINCT - col0 * + ( col1 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + col2 + + 92 * + cor0.col0 FROM tab2 AS cor0
----
671
7202
7306
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 cor2, tab1 AS cor3
----
3645 values hashing to ca91d1f523a87017f672304548e91a77
query I rowsort
SELECT cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL 69 * + col1 AS col1 FROM tab2
----
1173
2139
4071
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 + + col0 col2 FROM tab2
----
14
156
158
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab2 AS cor0 WHERE NULL >= NULL
----
query I rowsort
SELECT + - 92 * - 75 + - cor0.col1 * 5 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 4d1bba6005e377205c94de44e4f63298
query I rowsort
SELECT col0 + + col2 * + col2 FROM tab2 cor0
----
1523
736
754
query I rowsort
SELECT - + ( col0 ) AS col1 FROM tab2 cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8347
SELECT ALL col1 DIV - tab0.col1 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8347
SELECT ALL col1 / - tab0.col1 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT ( col0 ) * - col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - + 13 * col1 AS col0 FROM tab0 AS cor0
----
-1118
-1183
-1261
query I rowsort
SELECT + 69 * col1 FROM tab0 AS cor0
----
5934
6279
6693
query I rowsort
SELECT ALL 22 * cor0.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1cdab8f02540d1a260fdc7f2dd0776fc
query I rowsort
SELECT DISTINCT + ( + col0 ) + - col0 * 17 FROM tab1 AS cor0
----
-1024
-1280
-48
query I rowsort
SELECT + col1 * + 18 FROM tab2 AS cor0
----
1062
306
558
query I rowsort
SELECT + + col2 * - 3 * + ( + col2 ) + + col0 FROM tab1 cor0
----
-27568
-8745
-9683
query I rowsort
SELECT - col2 * - 37 AS col2 FROM tab1 AS cor0
----
1998
2109
3552
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 32 ) col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6
onlyif mysql # use DIV operator for integer division
query I rowsort label-8357
SELECT + col0 DIV - col1 + - 25 FROM tab1 cor0
----
-25
-31
-31
skipif mysql # not compatible
query I rowsort label-8357
SELECT + col0 / - col1 + - 25 FROM tab1 cor0
----
-25
-31
-31
query I rowsort
SELECT col2 * col2 * col1 FROM tab1 AS cor0
----
119808
32490
75816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8359
SELECT + col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8359
SELECT + col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * 73 AS col2 FROM tab1 AS cor0
----
1898
730
949
query I rowsort
SELECT DISTINCT + 82 * col0 + 60 FROM tab0 AS cor0
----
2028
2930
7358
query I rowsort
SELECT ALL - col2 * - cor0.col1 * col1 FROM tab0 cor0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT 2 AS col2 FROM tab1, tab2 AS cor0, tab0 cor1
----
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col1 * - col1 col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL + + col1 + + col0 * + col0 AS col0 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT ALL + 61 AS col1 FROM tab2 AS cor0
----
61
61
61
query I rowsort
SELECT + - cor0.col1 * col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT - col2 * col2 * col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT - - col0 + - 47 AS col2 FROM tab0 AS cor0
----
-12
-23
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 + + col2 * col1 * cor0.col0 col2 FROM tab1 AS cor0
----
1296
33231
90624
query I rowsort
SELECT ALL col2 + + ( ( col0 ) ) * 94 AS col0 FROM tab1 AS cor0
----
336
6073
7616
query I rowsort
SELECT - ( col0 + + col2 ) FROM tab0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8373
SELECT + col2 * cor0.col0 DIV 72 FROM tab1 AS cor0
----
106
2
50
skipif mysql # not compatible
query I rowsort label-8373
SELECT + col2 * cor0.col0 / 72 FROM tab1 AS cor0
----
106
2
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8374
SELECT ALL cor0.col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - col2 * + 64 FROM tab1 AS cor0
----
-3456
-3648
-6144
query I rowsort
SELECT + + cor0.col2 + col0 * - ( - cor0.col2 * cor0.col1 ) AS col1 FROM tab0 AS cor0
----
3396
664200
68145
query I rowsort
SELECT DISTINCT - col0 * - col0 + - col2 AS col2 FROM tab0 cor0
----
1224
543
7839
query I rowsort
SELECT DISTINCT tab2.col1 AS col2 FROM tab2, tab2 cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-8380
SELECT ALL col2 DIV + tab0.col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL col2 / + tab0.col0 FROM tab0
----
0
0
1
query I rowsort
SELECT ALL + 42 FROM tab0
----
42
42
42
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
10
13
26
query I rowsort
SELECT 21 + + 46 FROM tab2 AS cor0
----
67
67
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col1 * + col2 * ( col1 ) col1 FROM tab1 AS cor0
----
16237
36530
5710
onlyif mysql # use DIV operator for integer division
query I rowsort label-8385
SELECT DISTINCT col2 DIV + 6 - col1 * ( - cor0.col1 ) AS col2 FROM tab1 AS cor0
----
109
185
685
skipif mysql # not compatible
query I rowsort label-8385
SELECT DISTINCT col2 / + 6 - col1 * ( - cor0.col1 ) AS col2 FROM tab1 AS cor0
----
109
185
685
query I rowsort
SELECT + col2 * 23 * - col2 + col0 FROM tab0 AS cor0
----
-154563
-25023
12
query I rowsort
SELECT ALL - 92 AS col2 FROM tab2 cor0
----
-92
-92
-92
query I rowsort
SELECT DISTINCT + - col2 + - ( + col2 ) * col0 FROM tab2 AS cor0
----
-2054
-216
-3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8389
SELECT CAST( NULL AS SIGNED ) * col0 * + col2 + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8389
SELECT CAST ( NULL AS INTEGER ) * col0 * + col2 + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8390
SELECT ALL col0 + + col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL col0 + + col0 / - col0 AS col1 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT DISTINCT + 17 * + cor0.col1 - - col1 FROM tab1 AS cor0
----
180
234
468
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 col1 FROM tab1 AS cor0
----
96
96
96
query I rowsort
SELECT DISTINCT col2 + col2 - - col0 FROM tab2 AS cor0
----
130
155
61
query I rowsort
SELECT ALL + + col2 + + 87 * col0 FROM tab2 cor0
----
636
6812
6911
query I rowsort
SELECT ALL 5 FROM tab0, tab0 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b
query I rowsort
SELECT DISTINCT 38 + col2 * + col2 + - ( col1 + tab2.col1 ) FROM tab2
----
1448
596
705
query I rowsort
SELECT ALL + col1 + 92 FROM tab2
----
109
123
151
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 * col2 col0 FROM tab2 AS cor0
----
650
675
950
query I rowsort
SELECT ALL - cor0.col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT DISTINCT - col0 + + col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT - 11 * - col2 FROM tab2
----
286
297
418
query I rowsort
SELECT DISTINCT col2 * + col1 + + col2 AS col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT DISTINCT + 89 * + col2 + col1 FROM tab2 AS cor0
----
2373
2434
3399
query I rowsort
SELECT 7 + col1 * col1 * - 46 FROM tab0 AS cor0
----
-340209
-380919
-432807
query I rowsort
SELECT - - col0 + col1 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + ( + col2 ) + + 97 * ( col0 + - ( col2 ) ) AS col2 FROM tab0 cor0
----
-840
3299
761
query I rowsort
SELECT DISTINCT col0 * col0 + + col2 + - col2 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-8409
SELECT ALL + cor0.col0 DIV - col2 - + col0 DIV + 99 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL + cor0.col0 / - col2 - + col0 / + 99 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT + cor0.col1 * + col1 + col0 AS col0 FROM tab2 AS cor0
----
3559
368
968
onlyif mysql # use DIV operator for integer division
query I rowsort label-8411
SELECT ALL + col2 * col0 + - col1 + + col1 DIV col1 FROM tab0 AS cor0
----
-61
707
7208
skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL + col2 * col0 + - col1 + + col1 / col1 FROM tab0 AS cor0
----
-61
707
7208
query I rowsort
SELECT 35 AS col1 FROM tab1 AS cor0
----
35
35
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-8413
SELECT DISTINCT 46 DIV - col1 FROM tab1 AS cor0
----
-1
-3
-4
skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT 46 / - col1 FROM tab1 AS cor0
----
-1
-3
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 col1 FROM tab1 cor0
----
31
31
31
query I rowsort
SELECT + 3 * cor0.col1 + - ( col1 ) FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT - 31 * col0 FROM tab0 AS cor0
----
-1085
-2759
-744
onlyif mysql # use DIV operator for integer division
query I rowsort label-8417
SELECT DISTINCT + + cor0.col0 DIV + col1 + - col2 * col2 * + col2 FROM tab2 AS cor0
----
-17575
-19683
-54868
skipif mysql # not compatible
query I rowsort label-8417
SELECT DISTINCT + + cor0.col0 / + col1 + - col2 * col2 * + col2 FROM tab2 AS cor0
----
-17575
-19683
-54868
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8418
SELECT DISTINCT ( - col2 ) * CAST( NULL AS SIGNED ) - - col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT ( - col2 ) * CAST ( NULL AS INTEGER ) - - col2 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8419
SELECT + col2 + + ( 87 ) + col0 DIV + col0 AS col0 FROM tab2
----
114
115
126
skipif mysql # not compatible
query I rowsort label-8419
SELECT + col2 + + ( 87 ) + col0 / + col0 AS col0 FROM tab2
----
114
115
126
query I rowsort
SELECT DISTINCT + 26 AS col2 FROM tab1, tab1 AS cor0
----
26
query I rowsort
SELECT col2 + + col0 + 18 FROM tab0 AS cor0
----
189
54
75
query I rowsort
SELECT ALL + col2 * 66 AS col0 FROM tab2 AS cor0
----
1716
1782
2508
query I rowsort
SELECT + - col1 * 30 AS col2 FROM tab2 cor0
----
-1770
-510
-930
query I rowsort
SELECT ALL - cor0.col1 * + 60 + - col0 FROM tab1 AS cor0
----
-1563
-664
-860
query I rowsort
SELECT + col1 - col0 AS col2 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8426
SELECT - col1 * - CAST( + 92 AS SIGNED ) - + col0 FROM tab1 cor0
----
1116
2389
856
skipif mysql # not compatible
query I rowsort label-8426
SELECT - col1 * - CAST ( + 92 AS INTEGER ) - + col0 FROM tab1 cor0
----
1116
2389
856
query I rowsort
SELECT DISTINCT + - ( - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + col1 * col1 + col1 * + col1 FROM tab0 AS cor0
----
14792
16562
18818
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - col2 col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT - 40 * col0 + col2 AS col0 FROM tab2 AS cor0
----
-253
-3094
-3122
onlyif mysql # use DIV operator for integer division
query I rowsort label-8431
SELECT ALL - - 71 DIV - 71 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL - - 71 / - 71 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT cor0.col0 * 28 AS col2 FROM tab1 AS cor0
----
1792
2240
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-8433
SELECT + col1 DIV col1 + + col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-8433
SELECT + col1 / col1 + + col0 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT 25 * cor0.col2 + ( cor0.col1 ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to edd4f73eaf926b1d99c9c8a1629784ca
query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) + col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT col1 * + col1 * col2 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT + + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - ( + 76 ) * - col2 + col1 FROM tab0 AS cor0
----
173
2594
6323
query I rowsort
SELECT ALL - cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT - col1 * cor0.col1 + col2 * + ( col0 ) FROM tab0 AS cor0
----
-6604
-9374
-983
query I rowsort
SELECT ALL - cor0.col1 * - col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - + 53 AS col1 FROM tab0 AS cor0
----
-53
-53
-53
query I rowsort
SELECT + - col0 + - col1 AS col1 FROM tab2 cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT - - 35 + + col0 * 94 AS col1 FROM tab0 AS cor0
----
2291
3325
8401
query I rowsort
SELECT + tab2.col1 - + 49 FROM tab2, tab2 cor0
----
9 values hashing to a6c388bb0385ad8c0adde4a9823f6c9c
query I rowsort
SELECT ALL 13 AS col2 FROM tab0 AS cor0
----
13
13
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 93 col2 FROM tab2 AS cor0
----
-93
-93
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * cor0.col1 + col1 col1 FROM tab1 cor0
----
1261
1430
580
query I rowsort
SELECT + col1 - col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 * + col2 * col0 - col1 * + 29 AS col0 FROM tab0 AS cor0
----
582
65618
661479
onlyif mysql # use DIV operator for integer division
query I rowsort label-8451
SELECT - - cor0.col2 DIV - ( col1 * - col1 ) + - col0 AS col0 FROM tab1 cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-8451
SELECT - - cor0.col2 / - ( col1 * - col1 ) + - col0 AS col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT - 72 + - 78 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-150
onlyif mysql # use DIV operator for integer division
query I rowsort label-8453
SELECT - col0 DIV + col2 - + col0 AS col1 FROM tab0 AS cor0
----
-24
-70
-90
skipif mysql # not compatible
query I rowsort label-8453
SELECT - col0 / + col2 - + col0 AS col1 FROM tab0 AS cor0
----
-24
-70
-90
query I rowsort
SELECT ALL + - ( - 7 ) FROM tab2 AS cor0
----
7
7
7
query I rowsort
SELECT DISTINCT ( - 70 ) * + col0 FROM tab2 AS cor0
----
-490
-5460
-5530
query I rowsort
SELECT DISTINCT cor0.col0 - 17 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
18
7
72
query I rowsort
SELECT ALL - 29 * col0 AS col1 FROM tab2 AS cor0
----
-203
-2262
-2291
query I rowsort
SELECT ALL 76 AS col2 FROM tab0
----
76
76
76
query I rowsort
SELECT ALL - + 93 AS col2 FROM tab2 AS cor0
----
-93
-93
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-8460
SELECT + 24 DIV - 76 AS col0 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8460
SELECT + 24 / - 76 AS col0 FROM tab2 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8461
SELECT cor0.col2 DIV ( col1 ) col2 FROM tab2 cor0
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8461
SELECT cor0.col2 / ( col1 ) col2 FROM tab2 cor0
----
0
0
2
query I rowsort
SELECT col0 * + 95 * + col0 + + col0 * - col0 AS col2 FROM tab0
----
115150
54144
744574
query I rowsort
SELECT ( col0 ) + col0 FROM tab2
----
14
156
158
query I rowsort
SELECT 86 + - col2 FROM tab0 AS cor0
----
4
53
85
query I rowsort
SELECT ALL + 76 FROM tab2
----
76
76
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8466
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 65 AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-8466
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 65 AS col0 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT - 83 * - col2 FROM tab2
----
2158
2241
3154
query I rowsort
SELECT + ( col1 ) + - 63 AS col0 FROM tab2 cor0
----
-32
-4
-46
query I rowsort
SELECT + cor1.col0 * 4 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c869b379fe98cdee67da4c5f4278bf85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col0 col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-8471
SELECT DISTINCT - cor0.col1 * + col0 DIV col0 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-8471
SELECT DISTINCT - cor0.col1 * + col0 / col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - + col0 * col1 + col2 * col0 FROM tab2 AS cor0
----
-2574
-28
1659
query I rowsort
SELECT - - col1 + ( cor0.col2 ) FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL - 65 FROM tab1
----
-65
-65
-65
query I rowsort
SELECT DISTINCT col0 + tab2.col2 AS col0 FROM tab2
----
104
117
34
query I rowsort
SELECT - ( tab0.col2 ) * 12 + tab0.col0 AS col2 FROM tab0
----
-372
-895
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col1 FROM tab2
----
-99
-99
-99
query I rowsort
SELECT DISTINCT 50 AS col2 FROM tab1, tab0, tab0 AS cor0
----
50
query I rowsort
SELECT ALL col2 + 62 + + tab2.col0 AS col1 FROM tab2
----
166
179
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8480
SELECT col2 * col2 + col2 DIV + col0 FROM tab0
----
1
1090
6724
skipif mysql # not compatible
query I rowsort label-8480
SELECT col2 * col2 + col2 / + col0 FROM tab0
----
1
1090
6724
query I rowsort
SELECT - col1 + - col2 + - tab1.col2 AS col0 FROM tab1
----
-124
-134
-205
query I rowsort
SELECT + - col0 * - col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + + ( + col1 ) * col0 * - col0 + col0 FROM tab2 AS cor0
----
-106018
-1512
-358878
query I rowsort
SELECT - + col2 * 37 - col2 AS col2 FROM tab1 cor0
----
-2052
-2166
-3648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8485
SELECT DISTINCT - col2 * - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-8485
SELECT DISTINCT - col2 * - CAST ( NULL AS REAL ) FROM tab0
----
NULL
query I rowsort
SELECT col2 * 87 AS col0 FROM tab1
----
4698
4959
8352
onlyif mysql # use DIV operator for integer division
query I rowsort label-8487
SELECT col1 + - ( col1 ) + + col2 DIV col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8487
SELECT col1 + - ( col1 ) + + col2 / col2 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT col0 * tab0.col2 * + col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT - 82 + + col1 * - col1 FROM tab2 AS cor0
----
-1043
-3563
-371
query I rowsort
SELECT col1 + + col1 * + col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT DISTINCT + col2 * 58 * + col1 + 1 AS col0 FROM tab0 AS cor0
----
164605
432797
5627
query I rowsort
SELECT ALL - + col2 * - cor0.col2 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-8493
SELECT - + CAST( + col0 AS SIGNED ) + + col1 * CAST( col2 AS SIGNED ) DIV cor0.col0 FROM tab1 AS cor0
----
-56
-65
465
skipif mysql # not compatible
query I rowsort label-8493
SELECT - + CAST ( + col0 AS INTEGER ) + + col1 * CAST ( col2 AS INTEGER ) / cor0.col0 FROM tab1 AS cor0
----
-56
-65
465
query I rowsort
SELECT ALL col1 + col1 + col2 AS col2 FROM tab2 AS cor0
----
144
72
89
query I rowsort
SELECT + cor0.col2 * + col0 + + col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT + col1 * + tab0.col0 AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col0 + 91 * - col0 FROM tab2
----
-630
-7020
-7110
query I rowsort
SELECT + col0 * col1 - 31 * col0 AS col1 FROM tab0
----
1320
2310
5340
query I rowsort
SELECT + col1 + + ( + 73 ) FROM tab2
----
104
132
90
query I rowsort
SELECT DISTINCT tab1.col0 + col2 + col0 FROM tab1
----
185
256
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8501
SELECT col1 * ( ( - tab1.col0 ) ) - + CAST( + col0 AS SIGNED ) FROM tab1
----
-1120
-704
-81
skipif mysql # not compatible
query I rowsort label-8501
SELECT col1 * ( ( - tab1.col0 ) ) - + CAST ( + col0 AS INTEGER ) FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT ALL tab1.col0 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT col0 * - ( col2 + - col0 ) AS col2 FROM tab0 AS cor0
----
-216
1190
623
onlyif mysql # use DIV operator for integer division
query I rowsort label-8504
SELECT + col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-8504
SELECT + col2 / + col0 AS col1 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT DISTINCT - - col1 * 0 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - - ( col2 ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL + 5 + col1 * col1 FROM tab0 AS cor0
----
7401
8286
9414
query I rowsort
SELECT DISTINCT + 4 * col1 FROM tab0 AS cor0
----
344
364
388
onlyif mysql # use DIV operator for integer division
query I rowsort label-8509
SELECT + 32 DIV + col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8509
SELECT + 32 / + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ( + cor0.col1 ) + - col2 * ( col1 ) FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-8511
SELECT - CAST( 73 AS SIGNED ) DIV - col2 AS col2 FROM tab0 AS cor0
----
0
2
73
skipif mysql # not compatible
query I rowsort label-8511
SELECT - CAST ( 73 AS INTEGER ) / - col2 AS col2 FROM tab0 AS cor0
----
0
2
73
query I rowsort
SELECT DISTINCT 16 * - col0 AS col1 FROM tab0 AS cor0
----
-1424
-384
-560
query I rowsort
SELECT + cor0.col1 * + col0 * col2 AS col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL + + ( col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8515
SELECT - col0 * col1 DIV cor0.col2 col2 FROM tab0 AS cor0
----
-3395
-62
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8515
SELECT - col0 * col1 / cor0.col2 col2 FROM tab0 AS cor0
----
-3395
-62
-98
query I rowsort
SELECT DISTINCT - ( col2 ) + - col0 FROM tab1 AS cor0
----
-121
-176
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8517
SELECT DISTINCT tab2.col0 + CAST( NULL AS DECIMAL ) / ( + col2 ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-8517
SELECT DISTINCT tab2.col0 + CAST ( NULL AS REAL ) / ( + col2 ) FROM tab2
----
NULL
query I rowsort
SELECT ALL + 61 + 50 AS col1 FROM tab1 AS cor0
----
111
111
111
query I rowsort
SELECT + 51 + cor0.col1 * + cor0.col1 * cor0.col1 FROM tab0 AS cor0
----
636107
753622
912724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8520
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8520
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8521
SELECT - col1 * col0 DIV CAST( col1 AS SIGNED ) + col1 FROM tab1 AS cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-8521
SELECT - col1 * col0 / CAST ( col1 AS INTEGER ) + col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - col0 * - cor0.col0 + + col1 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT - + col2 * - col0 - + col0 * 8 FROM tab1 AS cor0
----
138
3136
7040
query I rowsort
SELECT DISTINCT + ( 85 ) AS col2 FROM tab1
----
85
query I rowsort
SELECT DISTINCT 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 - col0 + col2 col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL - - col0 + + col2 * + ( + col0 * + col1 + col2 ) FROM tab2 AS cor0
----
120406
52557
6595
query I rowsort
SELECT - - cor0.col0 + + col2 AS col0 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8529
SELECT DISTINCT + + col0 + + col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8529
SELECT DISTINCT + + col0 + + col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT 77 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125
query I rowsort
SELECT DISTINCT + + 37 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 col2 FROM tab0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8533
SELECT ALL - col0 - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8533
SELECT ALL - col0 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + cor0.col1 + col1 * + 0 FROM tab1 cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8535
SELECT ALL + col0 DIV + ( col0 ) AS col0 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL + col0 / + ( col0 ) AS col0 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT - col2 * - 63 AS col0 FROM tab2 AS cor0
----
1638
1701
2394
onlyif mysql # use DIV operator for integer division
query I rowsort label-8537
SELECT DISTINCT + - col0 * col2 DIV + col0 AS col1 FROM tab0 cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-8537
SELECT DISTINCT + - col0 * col2 / + col0 AS col1 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT col2 * 26 + ( - col0 * + col2 + cor0.col1 ) FROM tab2 AS cor0
----
-1293
-1997
544
onlyif mysql # use DIV operator for integer division
query I rowsort label-8539
SELECT ALL - - col1 DIV + ( 46 ) AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL - - col1 / + ( 46 ) AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + cor0.col2 - + ( 25 ) AS col1 FROM tab2 AS cor0
----
1
13
2
query I rowsort
SELECT ALL + - col1 + col0 * + col2 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT - cor0.col2 * 5 + + col0 AS col2 FROM tab1 cor0
----
-221
-267
-400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8543
SELECT DISTINCT + - col0 - - CAST( cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-8543
SELECT DISTINCT + - col0 - - CAST ( cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8544
SELECT ALL + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - cor0.col1 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + col0 + + 12 FROM tab1 AS cor0
----
15
76
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 + col0 * 57 * col2 col2 FROM tab2
----
10773
115596
171114
onlyif mysql # use DIV operator for integer division
query I rowsort label-8548
SELECT + col2 DIV col1 AS col0 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-8548
SELECT + col2 / col1 AS col0 FROM tab1
----
2
5
7
query I rowsort
SELECT ALL col2 + + col2 AS col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL - col2 + - 55 * 55 AS col1 FROM tab1 cor0
----
-3079
-3082
-3121
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 46 col0 FROM tab2 AS cor0
----
-1196
-1242
-1748
onlyif mysql # use DIV operator for integer division
query I rowsort label-8552
SELECT DISTINCT col2 * 49 DIV col0 - + col0 * ( col0 ) FROM tab0 AS cor0
----
-1224
-509
-7876
skipif mysql # not compatible
query I rowsort label-8552
SELECT DISTINCT col2 * 49 / col0 - + col0 * ( col0 ) FROM tab0 AS cor0
----
-1224
-509
-7876
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * 52 + col1 * cor0.col2 col1 FROM tab1 AS cor0
----
1560
3898
5408
onlyif mysql # use DIV operator for integer division
query I rowsort label-8555
SELECT DISTINCT + - col0 * col1 DIV - col1 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-8555
SELECT DISTINCT + - col0 * col1 / - col1 FROM tab2 AS cor0
----
7
78
79
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14
query I rowsort
SELECT - col2 * col2 * - ( col0 ) FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT ALL + cor0.col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ( col1 + - col1 ) FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( + 62 AS REAL ) AS col0 FROM tab0 AS cor0
----
62
62
62
query I rowsort
SELECT - - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT 38 + col0 FROM tab2 AS cor0
----
116
117
45
query I rowsort
SELECT DISTINCT + col0 + - col2 * - col1 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT ALL - - col1 * + col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL - col1 + + col2 AS col0 FROM tab1
----
28
47
83
query I rowsort
SELECT + col2 * - col0 + + ( col0 ) + + col2 FROM tab1
----
-105
-3527
-7504
query I rowsort
SELECT col2 * + col2 * - col0 + col1 + + col0 FROM tab1
----
-207862
-737187
-8719
onlyif mysql # use DIV operator for integer division
query I rowsort label-8568
SELECT ALL + + 90 DIV col2 + + 20 * col0 AS col0 FROM tab1 AS cor0
----
1281
1600
61
skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL + + 90 / col2 + + 20 * col0 AS col0 FROM tab1 AS cor0
----
1281
1600
61
query I rowsort
SELECT ALL 6 - col2 * + cor0.col1 FROM tab1 AS cor0
----
-1242
-1398
-564
query I rowsort
SELECT - 91 * - col0 AS col1 FROM tab1 AS cor0
----
273
5824
7280
query I rowsort
SELECT ALL + ( cor1.col0 ) + cor1.col2 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 75f21515f5e6f5fe2301266aeb130551
query I rowsort
SELECT + - 55 + + col2 * - ( - ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-20
7243
737
query I rowsort
SELECT DISTINCT + 6 FROM tab1 AS cor0
----
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8574
SELECT DISTINCT - cor0.col1 + col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8574
SELECT DISTINCT - cor0.col1 + col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - cor0.col2 - - cor0.col2 * + col1 AS col0 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT + col1 * ( + col2 + ( col0 ) ) AS col1 FROM tab0 cor0
----
15561
3492
4902
query I rowsort
SELECT + col2 * ( col1 ) + col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT - 87 * col2 + + col0 AS col2 FROM tab2 AS cor0
----
-2184
-2342
-3227
query I rowsort
SELECT col0 * - col1 + - col2 FROM tab2
----
-1381
-244
-4628
query I rowsort
SELECT + 6 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT DISTINCT + ( + ( + col0 ) ) * col0 + + col2 AS col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT DISTINCT - col0 + col1 * + col1 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT DISTINCT col2 * + col2 + + col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT DISTINCT + tab1.col2 FROM tab1, tab0 cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8585
SELECT DISTINCT + 61 DIV cor0.col2 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT + 61 / cor0.col2 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT ALL - + 60 * - col0 + + 45 FROM tab2 cor0
----
465
4725
4785
query I rowsort
SELECT - 69 * + col1 + 79 + col2 FROM tab1 AS cor0
----
-1661
-554
-722
query I rowsort
SELECT DISTINCT + + 71 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
3834
4047
6816
query I rowsort
SELECT ALL col1 * - col2 * - ( - 30 ) AS col0 FROM tab2
----
-19380
-25110
-46020
query I rowsort
SELECT DISTINCT + col1 * col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT + col1 + col2 + - col0 * col2 FROM tab1 cor0
----
-3581
-7571
-82
query I rowsort
SELECT col1 + + 20 AS col1 FROM tab2 cor0
----
37
51
79
query I rowsort
SELECT ALL 3 FROM tab1, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT ALL + col1 * 99 * 89 AS col1 FROM tab2
----
149787
273141
519849
query I rowsort
SELECT + ( cor1.col2 + 76 ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 69cf00c25cb79c0acf021cc9949dd717
query I rowsort
SELECT - col1 * col1 + 8 AS col0 FROM tab2 AS cor0
----
-281
-3473
-953
query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
24
35
89
query I rowsort
SELECT DISTINCT tab0.col2 + col0 * + col2 - + col0 AS col1 FROM tab0
----
1
7291
801
query I rowsort
SELECT + col2 * 32 * - col1 AS col2 FROM tab1
----
-18240
-39936
-44928
query I rowsort
SELECT + tab2.col0 * col2 * 98 AS col0 FROM tab2
----
18522
198744
294196
onlyif mysql # use DIV operator for integer division
query I rowsort label-8601
SELECT - + col2 DIV col2 + col1 * - cor0.col1 + - col2 FROM tab1 AS cor0
----
-158
-266
-731
skipif mysql # not compatible
query I rowsort label-8601
SELECT - + col2 / col2 + col1 * - cor0.col1 + - col2 FROM tab1 AS cor0
----
-158
-266
-731
query I rowsort
SELECT col1 + + ( + col0 ) + + col1 AS col2 FROM tab2 AS cor0
----
113
196
69
query I rowsort
SELECT col2 + ( + col1 ) + col1 FROM tab0 AS cor0
----
195
205
264
query I rowsort
SELECT col2 * - ( cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + cor0.col2 * cor0.col2 - ( cor0.col1 ) AS col1 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT DISTINCT + cor0.col1 * col0 AS col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT + + ( + col2 ) FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT 20 * - col0 AS col0 FROM tab2 AS cor0
----
-140
-1560
-1580
query I rowsort
SELECT + col0 * - ( - col0 ) AS col1 FROM tab2
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * tab1.col2 col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT DISTINCT 85 AS col0 FROM tab0 cor0
----
85
query I rowsort
SELECT DISTINCT + ( 66 ) + - col0 AS col1 FROM tab1 AS cor0
----
-14
2
63
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 col0 * - col0 - - ( 78 ) FROM tab1
----
-4018
-6322
69
query I rowsort
SELECT col2 + + col1 * ( + cor0.col0 ) FROM tab2 cor0
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col0 col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT cor0.col1 - - 1 AS col0 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT - 49 AS col0 FROM tab0
----
-49
-49
-49
query I rowsort
SELECT - tab1.col2 * tab1.col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT - - col1 + col2 + col2 AS col0 FROM tab1 AS cor0
----
124
134
205
query I rowsort
SELECT + col0 * - ( col1 + - cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-1488
-178
-2170
query I rowsort
SELECT ALL + col1 * - 20 + col2 * col0 + + col0 AS col1 FROM tab0 AS cor0
----
-1870
-904
5567
query I rowsort
SELECT ALL 48 * col2 * 97 AS col2 FROM tab0
----
153648
381792
4656
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT col2 * + tab1.col1 * col2 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT col1 * - tab0.col1 * col1 FROM tab0
----
-636056
-753571
-912673
query I rowsort
SELECT - 66 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a
query I rowsort
SELECT ALL + col0 + - col2 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT - col1 + - col0 * col0 AS col2 FROM tab0
----
-1322
-662
-8012
query I rowsort
SELECT DISTINCT + 20 + + col2 * col2 AS col2 FROM tab2
----
1464
696
749
query I rowsort
SELECT DISTINCT col2 + tab0.col2 AS col0 FROM tab0
----
164
2
66
query I rowsort
SELECT DISTINCT ( + col1 ) + + 51 FROM tab1
----
61
64
77
query I rowsort
SELECT DISTINCT col2 + tab1.col1 * 54 FROM tab1
----
1458
597
798
query I rowsort
SELECT DISTINCT + col1 + tab2.col1 AS col0 FROM tab2
----
118
34
62
query I rowsort
SELECT tab2.col2 + - col2 + - 9 AS col0 FROM tab2
----
-9
-9
-9
query I rowsort
SELECT - col0 + + col0 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - + ( + col0 ) + ( col2 ) * + cor0.col2 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT DISTINCT + cor0.col1 * - col1 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-8639
SELECT + cor0.col0 DIV cor0.col2 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
skipif mysql # not compatible
query I rowsort label-8639
SELECT + cor0.col0 / cor0.col2 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col1 * 66 FROM tab0 AS cor0
----
5700
6095
6437
onlyif mysql # use DIV operator for integer division
query I rowsort label-8641
SELECT DISTINCT 85 DIV + cor0.col2 AS col1 FROM tab0, tab0 cor0
----
1
2
85
skipif mysql # not compatible
query I rowsort label-8641
SELECT DISTINCT 85 / + cor0.col2 AS col1 FROM tab0, tab0 cor0
----
1
2
85
query I rowsort
SELECT ALL + 55 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + 89 col0 FROM tab2
----
106
120
148
query I rowsort
SELECT + col0 * + ( col0 ) + cor0.col1 * - col0 FROM tab1 AS cor0
----
-69
3456
5360
query I rowsort
SELECT + col2 + 35 * - col0 AS col1 FROM tab1 AS cor0
----
-2183
-2704
-51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8646
SELECT DISTINCT + - CAST( + col1 AS SIGNED ) + - cor0.col2 * ( col1 + + col2 ) AS col0 FROM tab2 AS cor0
----
-1597
-2107
-2269
skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT + - CAST ( + col1 AS INTEGER ) + - cor0.col2 * ( col1 + + col2 ) AS col0 FROM tab2 AS cor0
----
-1597
-2107
-2269
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8647
SELECT CAST( - 98 AS SIGNED ) * cor0.col1 FROM tab0 AS cor0
----
-8428
-8918
-9506
skipif mysql # not compatible
query I rowsort label-8647
SELECT CAST ( - 98 AS INTEGER ) * cor0.col1 FROM tab0 AS cor0
----
-8428
-8918
-9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8648
SELECT ALL + - CAST( col2 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
-16
-51
7
skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL + - CAST ( col2 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL - 44 * + col1 - - col1 FROM tab0 AS cor0
----
-3698
-3913
-4171
query I rowsort
SELECT 52 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT ALL + col0 * + col1 AS col2 FROM tab1 cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + + col0 * + col2 col0 FROM tab2 cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT + cor0.col1 + + col2 AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + 6 AS col1 FROM tab0
----
6
6
6
query I rowsort
SELECT ALL col1 * + 10 FROM tab1
----
100
130
260
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + tab0.col1 col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8657
SELECT ALL + 89 DIV col1 FROM tab1
----
3
6
8
skipif mysql # not compatible
query I rowsort label-8657
SELECT ALL + 89 / col1 FROM tab1
----
3
6
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8658
SELECT ALL CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8658
SELECT ALL CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8659
SELECT ALL + ( - cor0.col0 ) * + col2 * - CAST( - col2 * col0 AS SIGNED ) + 66 + col2 * col0 FROM tab1 AS cor0
----
-13304190
-26016
-58974654
skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL + ( - cor0.col0 ) * + col2 * - CAST ( - col2 * col0 AS INTEGER ) + 66 + col2 * col0 FROM tab1 AS cor0
----
-13304190
-26016
-58974654
query I rowsort
SELECT + 77 + 46 AS col0 FROM tab1 AS cor0
----
123
123
123
query I rowsort
SELECT DISTINCT + 30 * 45 FROM tab1 AS cor0
----
1350
onlyif mysql # use DIV operator for integer division
query I rowsort label-8662
SELECT + col1 + + col0 DIV - col1 FROM tab1 AS cor0
----
26
4
7
skipif mysql # not compatible
query I rowsort label-8662
SELECT + col1 + + col0 / - col1 FROM tab1 AS cor0
----
26
4
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8663
SELECT + + col0 DIV - cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
25
27
34
skipif mysql # not compatible
query I rowsort label-8663
SELECT + + col0 / - cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
25
27
34
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8665
SELECT ALL - + cor0.col0 * col0 DIV - col1 FROM tab2 AS cor0
----
1
103
367
skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL - + cor0.col0 * col0 / - col1 FROM tab2 AS cor0
----
1
103
367
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 - 99 * + col1 * - ( col2 ) - col0 * ( col0 * - col0 ) AS col1 FROM tab2 AS cor0
----
556993
626418
83206
query I rowsort
SELECT + + col1 * - cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
-1000
-17576
-2197
query I rowsort
SELECT DISTINCT + 94 FROM tab1, tab2 AS cor0
----
94
query I rowsort
SELECT ALL col0 * col1 + col0 * - 38 * col2 + col0 AS col0 FROM tab2
----
-112654
-6958
-72384
onlyif mysql # use DIV operator for integer division
query I rowsort label-8671
SELECT ALL col2 DIV ( col1 ) - - 68 * + col2 FROM tab0
----
2244
5576
68
skipif mysql # not compatible
query I rowsort label-8671
SELECT ALL col2 / ( col1 ) - - 68 * + col2 FROM tab0
----
2244
5576
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 98 - - ( - col0 + col2 ) col1 FROM tab1
----
114
149
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-8673
SELECT DISTINCT - cor0.col2 DIV 39 + - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-91
skipif mysql # not compatible
query I rowsort label-8673
SELECT DISTINCT - cor0.col2 / 39 + - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-91
query I rowsort
SELECT ALL + col0 + - 1 AS col0 FROM tab1 AS cor0
----
2
63
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8675
SELECT DISTINCT - col2 + col2 DIV 31 + + col0 * - col2 AS col0 FROM tab2 cor0
----
-2054
-216
-3039
skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT - col2 + col2 / 31 + + col0 * - col2 AS col0 FROM tab2 cor0
----
-2054
-216
-3039
query I rowsort
SELECT ALL - + cor0.col1 + - ( 67 ) FROM tab0 AS cor0
----
-153
-158
-164
query I rowsort
SELECT DISTINCT col0 * + 62 + - col1 + col2 FROM tab0 AS cor0
----
1435
2074
5509
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 38 * col0 + + col0 col0 FROM tab2 AS cor0
----
1869
231270
237237
query I rowsort
SELECT ALL - col2 + - cor0.col0 + 87 AS col1 FROM tab0 AS cor0
----
-84
30
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8680
SELECT ALL - - col2 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL - - col2 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col2 + - ( col0 ) FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT ( - tab0.col1 ) + col2 * 5 FROM tab0
----
-92
319
79
query I rowsort
SELECT ALL + ( - col1 ) + col2 * + col2 AS col1 FROM tab1
----
2890
3239
9203
query I rowsort
SELECT DISTINCT col0 * + 51 FROM tab1 AS cor0
----
153
3264
4080
query I rowsort
SELECT ALL - cor0.col0 * 27 FROM tab2 AS cor0
----
-189
-2106
-2133
onlyif mysql # use DIV operator for integer division
query I rowsort label-8686
SELECT + - col2 + + col0 DIV 37 AS col1 FROM tab0 AS cor0
----
-1
-33
-80
skipif mysql # not compatible
query I rowsort label-8686
SELECT + - col2 + + col0 / 37 AS col1 FROM tab0 AS cor0
----
-1
-33
-80
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 cor2, tab0 AS cor3
----
3645 values hashing to 1260d4dbe7a8d809e8010586a3c398c5
query I rowsort
SELECT - - col2 + - col1 AS col0 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT ALL - + cor0.col2 + col2 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 * - 11 FROM tab0 AS cor0
----
11
363
902
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col1 col2 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT - col2 * - ( col0 * col2 ) AS col0 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT ALL + cor0.col1 * - col0 * col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT - cor0.col2 * cor0.col0 + - ( col2 ) AS col0 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT - col1 * - ( col1 ) + + col2 AS col2 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT - col2 + - 59 FROM tab0 AS cor0
----
-141
-60
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 col0 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT 14 + col2 AS col1 FROM tab1
----
110
68
71
query I rowsort
SELECT 22 * col1 FROM tab2
----
1298
374
682
query I rowsort
SELECT 28 AS col1 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
onlyif mysql # use DIV operator for integer division
query I rowsort label-8701
SELECT DISTINCT ( + col2 ) * + 28 + col2 DIV - col1 AS col1 FROM tab0
----
2296
28
924
skipif mysql # not compatible
query I rowsort label-8701
SELECT DISTINCT ( + col2 ) * + 28 + col2 / - col1 AS col1 FROM tab0
----
2296
28
924
query I rowsort
SELECT DISTINCT - ( + 80 ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-80
query I rowsort
SELECT col2 * - 38 + col0 FROM tab1 AS cor0
----
-2049
-2102
-3568
query I rowsort
SELECT cor2.col2 + ( cor2.col1 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab1 AS cor2, tab2
----
729 values hashing to c37ebbba4239ca4017a3ee7341e9ae73
query I rowsort
SELECT DISTINCT + col0 + + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + col1 * - col1 AS col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT col0 + tab0.col0 + - col1 FROM tab0
----
-27
-38
87
query I rowsort
SELECT col2 * col1 * + col1 FROM tab0
----
244068
679042
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 - col0 col0 FROM tab0
----
148
159
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 * col1 + + col2 * - col2 col1 FROM tab2
----
-798
108
858
query I rowsort
SELECT - + 60 - + col1 FROM tab0 cor0
----
-146
-151
-157
query I rowsort
SELECT - 4 * col1 - + col0 * col2 FROM tab0 AS cor0
----
-1136
-423
-7662
onlyif mysql # use DIV operator for integer division
query I rowsort label-8713
SELECT ALL - col1 DIV + col1 + col0 * col1 FROM tab0
----
2063
3394
8098
skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL - col1 / + col1 + col0 * col1 FROM tab0
----
2063
3394
8098
query I rowsort
SELECT - tab1.col0 + + tab1.col1 AS col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT col2 / col2 FROM tab1 WHERE col0 IN ( col2 )
----
query I rowsort
SELECT tab0.col2 * col2 * col2 FROM tab0
----
1
35937
551368
query I rowsort
SELECT ALL 21 * col2 FROM tab1
----
1134
1197
2016
query I rowsort
SELECT col1 + - tab1.col2 * - ( col1 * + col0 ) AS col1 FROM tab1
----
36490
4238
99853
query I rowsort
SELECT + + ( - col1 ) * 27 * col2 - col0 AS col1 FROM tab2 AS cor0
----
-17521
-22606
-41496
onlyif mysql # use DIV operator for integer division
query I rowsort label-8720
SELECT + 64 * cor0.col2 + + col0 DIV col0 AS col1 FROM tab2 AS cor0
----
1665
1729
2433
skipif mysql # not compatible
query I rowsort label-8720
SELECT + 64 * cor0.col2 + + col0 / col0 AS col1 FROM tab2 AS cor0
----
1665
1729
2433
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab0 cor0, tab0 cor1
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237
query I rowsort
SELECT ALL + - 22 + col2 FROM tab2 AS cor0
----
16
4
5
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 73edaf471aef3f42e9a0b0be98b79374
query I rowsort
SELECT DISTINCT - + col2 + col0 * 54 AS col1 FROM tab2 AS cor0
----
351
4186
4228
query I rowsort
SELECT ALL - cor0.col1 * col0 + ( + 35 ) * + col1 FROM tab1 AS cor0
----
-290
-585
832
query I rowsort
SELECT ALL + + 41 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8727
SELECT - - col0 + 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-8727
SELECT - - col0 + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 - + col2 * + ( col0 * - col1 ) FROM tab2 AS cor0
----
119730
51113
5866
query I rowsort
SELECT + col1 - tab1.col1 * col2 * tab1.col1 AS col2 FROM tab1
----
-16211
-36478
-5690
query I rowsort
SELECT DISTINCT tab2.col1 - + ( + col2 ) * - col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT ALL - col1 * col2 - tab2.col2 AS col1 FROM tab2
----
-1560
-684
-864
onlyif mysql # use DIV operator for integer division
query I rowsort label-8732
SELECT DISTINCT + col0 + + ( col1 + + col2 ) DIV + col0 AS col0 FROM tab0
----
28
37
90
skipif mysql # not compatible
query I rowsort label-8732
SELECT DISTINCT + col0 + + ( col1 + + col2 ) / + col0 AS col0 FROM tab0
----
28
37
90
query I rowsort
SELECT + tab1.col2 * col0 + col0 AS col0 FROM tab1
----
165
3712
7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 - - cor0.col1 * col0 col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT 40 AS col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
query I rowsort
SELECT + col1 - 72 AS col1 FROM tab0 AS cor0
----
14
19
25
query I rowsort
SELECT DISTINCT - 82 + col2 AS col1 FROM tab0 AS cor0
----
-49
-81
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 col1 FROM tab0 AS cor0
----
39
query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT ALL - col0 * - ( + col2 + ( + tab1.col0 ) ) AS col1 FROM tab1
----
14080
171
7744
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8741
SELECT - + CAST( NULL AS SIGNED ) * col2 * - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8741
SELECT - + CAST ( NULL AS INTEGER ) * col2 * - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * - col0 * col2 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to c670882ff9ea3f0bb08fc55ec569be96
query I rowsort
SELECT ALL - 84 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to aaabc1266a1bb4f477091ffbc243c849
query I rowsort
SELECT - ( col2 ) * - col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - + col0 + col0 * cor0.col0 AS col0 FROM tab1 cor0
----
4032
6
6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 * col2 * col1 col2 FROM tab0 AS cor0
----
-110682
-291018
-3783
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8749
SELECT ALL - CAST( NULL AS SIGNED ) * - col2 * + col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL - CAST ( NULL AS INTEGER ) * - col2 * + col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * + col0 - + col2 AS col1 FROM tab0 AS cor0
----
-1226
-609
-8003
onlyif mysql # use DIV operator for integer division
query I rowsort label-8751
SELECT DISTINCT - + col2 - cor0.col2 DIV - col1 FROM tab2 cor0
----
-26
-27
-36
skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT - + col2 - cor0.col2 / - col1 FROM tab2 cor0
----
-26
-27
-36
onlyif mysql # use DIV operator for integer division
query I rowsort label-8752
SELECT - + cor0.col2 + col1 DIV + col1 FROM tab0 cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-8752
SELECT - + cor0.col2 + col1 / + col1 FROM tab0 cor0
----
-32
-81
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8753
SELECT DISTINCT + col1 + - col1 DIV col1 FROM tab2 cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-8753
SELECT DISTINCT + col1 + - col1 / col1 FROM tab2 cor0
----
16
30
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col0 col0 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col0 * - col0 * - col1 col1 FROM tab0 AS cor0
----
-118790
-49512
-720722
query I rowsort
SELECT ALL col2 * col1 + col0 + + col2 AS col2 FROM tab1 AS cor0
----
1424
1461
691
query I rowsort
SELECT DISTINCT - col1 * - col0 - + col1 * col2 FROM tab0
----
-774
3298
637
query I rowsort
SELECT ALL + col0 - - col0 FROM tab1
----
128
160
6
query I rowsort
SELECT ALL tab2.col0 - col1 FROM tab2
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 - tab0.col2 col0 FROM tab0
----
34
7216
759
query I rowsort
SELECT ALL - col1 + + col0 + col2 * col2 * + col2 FROM tab0
----
-61
35875
551366
query I rowsort
SELECT col0 + - col2 + col0 FROM tab2
----
-13
120
130
query I rowsort
SELECT ALL col2 + + col0 * tab2.col2 + col1 AS col1 FROM tab2
----
2113
247
3057
query I rowsort
SELECT ALL - tab1.col1 + + col0 FROM tab1
----
-23
54
67
query I rowsort
SELECT DISTINCT + col2 + col0 AS col1 FROM tab0
----
171
36
57
query I rowsort
SELECT + 7 AS col0 FROM tab1
----
7
7
7
query I rowsort
SELECT - 97 * + col0 AS col1 FROM tab2
----
-679
-7566
-7663
onlyif mysql # use DIV operator for integer division
query I rowsort label-8768
SELECT DISTINCT - 82 DIV + col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT - 82 / + col1 FROM tab0
----
0
query I rowsort
SELECT ( cor0.col2 ) + - col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + ( - col2 ) + col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT tab1.col0 * - col1 + col1 AS col0 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT col2 * - col1 - + col0 FROM tab1
----
-1328
-1407
-634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col0 FROM tab2
----
41
41
41
query I rowsort
SELECT col2 - col1 AS col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT + ( col2 * + col1 ) - + tab1.col1 FROM tab1
----
1235
1378
560
query I rowsort
SELECT - 89 * - col2 - col0 * col1 * col2 FROM tab1
----
-31407
-91296
594
query I rowsort
SELECT ALL + 1 + + ( + col2 ) FROM tab0
----
2
34
83
query I rowsort
SELECT + 53 AS col2 FROM tab2 AS cor0
----
53
53
53
query I rowsort
SELECT DISTINCT + 84 FROM tab1
----
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 - col1 col0 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT ALL + 88 * - col0 FROM tab2 AS cor0
----
-616
-6864
-6952
onlyif mysql # use DIV operator for integer division
query I rowsort label-8782
SELECT DISTINCT - ( col1 ) DIV - col0 - + col2 FROM tab0 AS cor0
----
-30
-81
1
skipif mysql # not compatible
query I rowsort label-8782
SELECT DISTINCT - ( col1 ) / - col0 - + col2 FROM tab0 AS cor0
----
-30
-81
1
query I rowsort
SELECT DISTINCT + 92 + col1 AS col1 FROM tab1 AS cor0
----
102
105
118
query I rowsort
SELECT DISTINCT - col0 * + col0 + col1 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT - - 36 FROM tab1 cor0
----
36
36
36
query I rowsort
SELECT - 23 AS col0 FROM tab2 AS cor0
----
-23
-23
-23
query I rowsort
SELECT ALL - col1 - + col0 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT col2 FROM tab0 WHERE ( + col2 ) <> NULL
----
query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT ALL + col0 * + col1 * col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT col1 * - col2 >= + col0
----
24
35
89
query I rowsort
SELECT DISTINCT + col2 * col0 AS col0 FROM tab0 cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col1 * + col0 col2 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT - col1 + col0 AS col2 FROM tab0 WHERE NULL <> col1
----
query I rowsort
SELECT + col2 + + tab0.col2 * + col1 * tab0.col0 FROM tab0
----
3396
664200
68145
query I rowsort
SELECT ALL - col0 + - col2 * - col2 FROM tab0
----
-34
1065
6635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - tab2.col1 col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT col2 - col1 * col0 AS col0 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT col1 + + col2 * - tab0.col0 + col2 AS col1 FROM tab0
----
-673
-7125
63
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col0 ) NOT IN ( tab0.col1 + col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT + tab0.col0 + - tab0.col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT + col0 * + col2 AS col1 FROM tab1 WHERE ( col1 * - col0 ) < + col0
----
162
3648
7680
query I rowsort
SELECT cor0.col1 + col2 AS col0 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-8805
SELECT ALL + col1 DIV col1 + - col2 * - col0 * + col0 FROM tab0 AS cor0
----
1226
19009
649523
skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL + col1 / col1 + - col2 * - col0 * + col0 FROM tab0 AS cor0
----
1226
19009
649523
query I rowsort
SELECT DISTINCT col0 * - cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - + col1 * col1 + + col1 * col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 + tab2.col1 + tab2.col0 AS col0 FROM tab2
----
113
196
69
query I rowsort
SELECT + - cor0.col1 * col1 + col1 * - col2 + - col0 AS col2 FROM tab2 cor0
----
-1014
-1805
-5093
query I rowsort
SELECT DISTINCT - - col2 * col0 + col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT - col0 + col2 AS col0 FROM tab0 cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8812
SELECT ALL + col0 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL + col0 / cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 + - col1 * + col1 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT - col0 * + cor0.col0 + + col2 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT - cor0.col0 * col1 AS col1 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8816
SELECT + + cor0.col1 DIV col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-8816
SELECT + + cor0.col1 / col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT ALL + col2 * col0 * + col2 FROM tab0 cor0
----
26136
35
598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-8818
SELECT - - col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8818
SELECT - - col0 / - col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col1 * + col0 col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL + col0 * - col0 * + col0 FROM tab2 AS cor0
----
-343
-474552
-493039
onlyif mysql # use DIV operator for integer division
query I rowsort label-8821
SELECT col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-8821
SELECT col0 / + col1 AS col2 FROM tab1 AS cor0
----
0
6
6
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + col0 NOT IN ( cor0.col0 - col1 * col2 )
----
query I rowsort
SELECT ALL col0 * col0 + - tab0.col1 * + col2 + col2 * + col2 FROM tab0
----
-1173
1129
7183
query I rowsort
SELECT ALL + tab0.col2 + - col1 + col1 AS col1 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 col2 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL - col0 + - col1 + col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL + ( + col2 ) AS col2 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL - 38 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507
query I rowsort
SELECT - - ( tab1.col2 ) FROM tab1, tab0, tab1 cor0, tab2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT + 35 * col0 + col1 FROM tab1 AS cor0
----
131
2250
2813
query I rowsort
SELECT ALL + ( ( col0 ) ) AS col1 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8832
SELECT col0 + col0 DIV col1 FROM tab2 AS cor0
----
7
79
83
skipif mysql # not compatible
query I rowsort label-8832
SELECT col0 + col0 / col1 FROM tab2 AS cor0
----
7
79
83
query I rowsort
SELECT + col2 + col1 + col2 FROM tab0 AS cor0
----
152
255
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 38 + col1 * col2 col2 FROM tab2 cor0
----
1496
608
799
query I rowsort
SELECT - 68 AS col2 FROM tab0 AS cor0
----
-68
-68
-68
query I rowsort
SELECT DISTINCT col1 + col1 * col2 FROM tab1
----
1261
1430
580
query I rowsort
SELECT - - cor0.col1 + + col1 * + ( - 5 ) + + col0 * 90 FROM tab0 AS cor0
----
1816
2762
7646
query I rowsort
SELECT + 78 * col2 * + col2 AS col2 FROM tab1 AS cor0
----
227448
253422
718848
query I rowsort
SELECT col2 * col2 * - col1 + + ( col2 ) * col0 FROM tab1 cor0
----
-112128
-28842
-75654
query I rowsort
SELECT + 61 * cor0.col0 * + col0 FROM tab2 AS cor0
----
2989
371124
380701
onlyif mysql # use DIV operator for integer division
query I rowsort label-8841
SELECT + col2 - col0 DIV - col1 col0 FROM tab0 cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8841
SELECT + col2 - col0 / - col1 col0 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL + col1 * ( - 33 ) AS col2 FROM tab0 AS cor0
----
-2838
-3003
-3201
query I rowsort
SELECT + cor0.col0 * ( + col1 ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + + col2 * 90 AS col2 FROM tab2 AS cor0
----
2340
2430
3420
query I rowsort
SELECT - col1 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 cor2
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094
query I rowsort
SELECT ALL col2 * + tab1.col0 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT col0 + - col0 * + 17 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
22910
3696
78312
query I rowsort
SELECT ALL - - cor0.col1 * cor0.col0 + 69 AS col0 FROM tab1 cor0
----
1109
147
709
query I rowsort
SELECT + cor0.col1 * 22 AS col1 FROM tab0 AS cor0
----
1892
2002
2134
query I rowsort
SELECT - col1 + col0 * ( + col2 ) AS col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT + col2 + - 36 * col0 FROM tab1 AS cor0
----
-2247
-2784
-54
query I rowsort
SELECT ALL + ( cor0.col1 ) + cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to bd4e64b4654b9e3f8122f4e1bada2bd0
query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8855
SELECT ALL col2 * CAST( - 1 + col1 AS SIGNED ) AS col2 FROM tab2
----
1508
608
810
skipif mysql # not compatible
query I rowsort label-8855
SELECT ALL col2 * CAST ( - 1 + col1 AS INTEGER ) AS col2 FROM tab2
----
1508
608
810
query I rowsort
SELECT - col2 * + 94 + 55 * - col0 * - col1 AS col0 FROM tab0
----
110418
186631
437737
query I rowsort
SELECT 12 + - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6b4806e6638c79ee734be9f9b74bede6
query I rowsort
SELECT DISTINCT col0 * 68 + + col1 AS col1 FROM tab1 cor0
----
230
4362
5453
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8859
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * col1 - col2 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8859
SELECT DISTINCT - - CAST ( NULL AS REAL ) * col1 - col2 AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT col2 * col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-8861
SELECT ALL + 29 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL + 29 / - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT col1 + + col0 * col0 * 41 FROM tab2 AS cor0
----
2040
249503
255898
onlyif mysql # use DIV operator for integer division
query I rowsort label-8863
SELECT DISTINCT - col0 DIV - col2 + - col1 * ( col2 ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-569
skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT - col0 / - col2 + - col1 * ( col2 ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-569
query I rowsort
SELECT - - col1 + - 11 FROM tab1 AS cor0
----
-1
15
2
query I rowsort
SELECT - 78 * + col2 FROM tab0 cor0
----
-2574
-6396
-78
query I rowsort
SELECT - 18 + cor0.col0 AS col1 FROM tab2 cor0
----
-11
60
61
query I rowsort
SELECT ALL + 75 FROM tab1, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 + col1 col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL + - col0 * col0 * col2 - + col2 FROM tab0 AS cor0
----
-1226
-19041
-649604
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8871
SELECT CAST( 1 AS SIGNED ) col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8871
SELECT CAST ( 1 AS INTEGER ) col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
query I rowsort
SELECT ALL - ( 76 * + col2 ) FROM tab1
----
-4104
-4332
-7296
query I rowsort
SELECT DISTINCT + cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1
33
82
query I rowsort
SELECT 60 * - col2 + - col2 * + col2 FROM tab1 AS cor0
----
-14976
-6156
-6669
onlyif mysql # use DIV operator for integer division
query I rowsort label-8875
SELECT + ( col1 ) * col2 DIV + col1 FROM tab2 cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-8875
SELECT + ( col1 ) * col2 / + col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL - 71 AS col1 FROM tab0
----
-71
-71
-71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8877
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL cor0.col1 + col1 * 74 AS col1 FROM tab0 AS cor0
----
6450
6825
7275
query I rowsort
SELECT ( 14 ) AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT 1 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT - col1 - + ( - col2 ) FROM tab1
----
28
47
83
query I rowsort
SELECT - tab0.col0 + cor0.col0 FROM tab0, tab2 cor0
----
9 values hashing to ceed5d4760732a197411f1a6cb5c657f
query I rowsort
SELECT + - col0 + col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT DISTINCT + col0 * col0 * - ( + col2 ) FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT DISTINCT 36 AS col2 FROM tab1
----
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 col2 FROM tab2
----
14
156
158
query I rowsort
SELECT ALL - - col2 + + col0 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT 70 + col1 * 54 * - col0 AS col0 FROM tab1 cor0
----
-34490
-4142
-56090
query I rowsort
SELECT ALL col2 + col1 * + col0 AS col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT - + col1 * col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT + cor0.col1 * - col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT 67 FROM tab1 AS cor0
----
67
query I rowsort
SELECT ( + col1 ) * ( col0 ) AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT col1 + - col0 * col1 * col1 AS col0 FROM tab2 AS cor0
----
-22814
-271459
-6696
query I rowsort
SELECT DISTINCT - col0 + + 84 * 77 FROM tab1 AS cor0
----
6388
6404
6465
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8896
SELECT ALL - cor0.col0 + CAST( NULL AS SIGNED ) * + col2 / - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL - cor0.col0 + CAST ( NULL AS INTEGER ) * + col2 / - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 + col2 - - ( col1 ) AS col0 FROM tab2 AS cor0
----
-24
51
7
query I rowsort
SELECT col1 + cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT + col1 * - 19 AS col1 FROM tab0 AS cor0
----
-1634
-1729
-1843
query I rowsort
SELECT cor2.col1 FROM tab1, tab1 AS cor0, tab0 cor1, tab0 cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
query I rowsort
SELECT DISTINCT - + col0 * ( + cor0.col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + col0 col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL - 74 FROM tab0, tab0 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130
query I rowsort
SELECT DISTINCT - + ( col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 8a7905bab027a06731ba57659d83981d
onlyif mysql # use DIV operator for integer division
query I rowsort label-8906
SELECT DISTINCT - - 10 * col1 DIV col1 col2 FROM tab2 AS cor0
----
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8906
SELECT DISTINCT - - 10 * col1 / col1 col2 FROM tab2 AS cor0
----
10
query I rowsort
SELECT DISTINCT - - 45 FROM tab1 AS cor0
----
45
query I rowsort
SELECT - col0 + - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT + 90 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT DISTINCT + + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - - 17 + + ( + col2 * ( + col1 ) ) FROM tab0 AS cor0
----
114
2855
7479
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 49 * col0 * col2 col2 FROM tab0 AS cor0
----
1750
357691
38832
query I rowsort
SELECT ALL 6 * ( - col0 ) * col2 FROM tab0
----
-210
-43788
-4752
onlyif mysql # use DIV operator for integer division
query I rowsort label-8914
SELECT ALL 34 * tab2.col2 + - col0 + - col1 * col0 DIV col1 FROM tab2
----
1134
728
904
skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL 34 * tab2.col2 + - col0 + - col1 * col0 / col1 FROM tab2
----
1134
728
904
query I rowsort
SELECT DISTINCT tab0.col0 + - 96 AS col0 FROM tab0
----
-61
-7
-72
query I rowsort
SELECT ALL 18 AS col0 FROM tab0 AS cor0
----
18
18
18
query I rowsort
SELECT + + col1 + cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ALL - col2 * - col0 * ( - col2 * cor0.col0 ) FROM tab2 AS cor0
----
-35721
-4112784
-9012004
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col2 col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-8920
SELECT + col1 + col1 DIV - 81 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-8920
SELECT + col1 + col1 / - 81 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL - - cor0.col0 * + col1 AS col2 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT ( col0 ) + col2 * 86 FROM tab0
----
121
2862
7141
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8923
SELECT CAST( - col0 AS SIGNED ) col2 FROM tab2
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8923
SELECT CAST ( - col0 AS INTEGER ) col2 FROM tab2
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 * - col2 col0 FROM tab2 cor0
----
-468
-486
-684
query I rowsort
SELECT DISTINCT col1 * - 85 + + col2 * + 3 FROM tab2
----
-1331
-2554
-4937
query I rowsort
SELECT col0 * 77 + col1 FROM tab1
----
257
4938
6173
onlyif mysql # use DIV operator for integer division
query I rowsort label-8927
SELECT ALL + 19 DIV 62 + + col2 AS col0 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL + 19 / 62 + + col2 AS col0 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT - 4 + + col2 * - col1 FROM tab2
----
-1538
-650
-841
query I rowsort
SELECT + + col1 + col0 * 16 AS col0 FROM tab0 AS cor0
----
1515
470
657
query I rowsort
SELECT + + 9 AS col2 FROM tab1 AS cor0
----
9
9
9
query I rowsort
SELECT - 53 AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab1 cor1
----
27 values hashing to 2876418587c77a182d88db2907b0a51a
query I rowsort
SELECT - col0 * col0 + - 45 FROM tab0
----
-1270
-621
-7966
onlyif mysql # use DIV operator for integer division
query I rowsort label-8933
SELECT DISTINCT col1 * - col1 DIV + col1 AS col1 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-8933
SELECT DISTINCT col1 * - col1 / + col1 AS col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT - 47 * + col0 AS col2 FROM tab2
----
-329
-3666
-3713
query I rowsort
SELECT - col1 + tab2.col0 AS col1 FROM tab2
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 col2 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 * + col2 col0 FROM tab1 AS cor0
----
4374
4617
7776
query I rowsort
SELECT - cor0.col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT - col1 * ( col2 ) + col2 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT ALL - col1 + + col0 AS col2 FROM tab2
----
-24
19
62
query I rowsort
SELECT ALL col1 * 27 - col1 FROM tab2
----
1534
442
806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8942
SELECT col1 + - CAST( - col1 * + col1 AS SIGNED ) + ( + tab1.col0 ) AS col1 FROM tab1
----
174
262
705
skipif mysql # not compatible
query I rowsort label-8942
SELECT col1 + - CAST ( - col1 * + col1 AS INTEGER ) + ( + tab1.col0 ) AS col1 FROM tab1
----
174
262
705
query I rowsort
SELECT DISTINCT - col0 * tab0.col1 + - col0 FROM tab0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL + - col1 + + 40 FROM tab0 AS cor0
----
-46
-51
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 41 col1 FROM tab0
----
130
65
76
query I rowsort
SELECT col2 * - 64 FROM tab2
----
-1664
-1728
-2432
query I rowsort
SELECT ALL + col1 + - ( 96 ) AS col0 FROM tab2
----
-37
-65
-79
query I rowsort
SELECT + col1 + - ( 93 ) FROM tab0
----
-2
-7
4
query I rowsort
SELECT DISTINCT + + 93 * - col2 + col2 FROM tab2 AS cor0
----
-2392
-2484
-3496
query I rowsort
SELECT ALL + 98 * + col1 AS col0 FROM tab0 AS cor0
----
8428
8918
9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8951
SELECT - CAST( NULL AS SIGNED ) * 50 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8951
SELECT - CAST ( NULL AS INTEGER ) * 50 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 1 - + col1 FROM tab1 AS cor0
----
-11
-14
-27
query I rowsort
SELECT + 37 + + col0 * - col2 * - ( + col2 ) FROM tab0 AS cor0
----
26173
598473
72
query I rowsort
SELECT DISTINCT + ( ( col2 ) ) AS col0 FROM tab0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8955
SELECT ALL + cor0.col0 + col1 DIV col2 AS col2 FROM tab0 AS cor0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL + cor0.col0 + col1 / col2 AS col2 FROM tab0 AS cor0
----
132
26
90
query I rowsort
SELECT ALL - + ( - col0 ) * col2 + col0 * col1 FROM tab0 AS cor0
----
15397
2856
3430
query I rowsort
SELECT DISTINCT - ( col0 ) * - cor0.col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 * col2 col0 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT DISTINCT + col2 + - 27 FROM tab0 cor0
----
-26
55
6
query I rowsort
SELECT + ( + col2 ) + cor0.col2 * col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT - 69 * col1 * - col0 + + col1 AS col1 FROM tab0 cor0
----
142502
234352
558922
query I rowsort
SELECT ALL - ( + cor0.col0 ) FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT + 12 FROM tab0 cor0
----
12
12
12
query I rowsort
SELECT ALL 36 AS col0 FROM tab0
----
36
36
36
query I rowsort
SELECT col1 + + cor0.col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL 15 * col0 + 6 AS col0 FROM tab2 AS cor0
----
111
1176
1191
query I rowsort
SELECT DISTINCT tab1.col0 FROM tab1, tab1 cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 col0 FROM tab2
----
-48
-48
-48
query I rowsort
SELECT ALL - - col1 - + ( + col0 ) AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + col2 + - 65 AS col1 FROM tab1 AS cor0
----
-11
-8
31
query I rowsort
SELECT + col2 + 74 FROM tab2 AS cor0
----
100
101
112
skipif mysql # not compatible
query I rowsort
SELECT col0 * CAST ( 45 AS REAL ) AS col2 FROM tab2 AS cor0
----
315
3510
3555
query I rowsort
SELECT + col1 * - col1 + + 60 FROM tab2 AS cor0
----
-229
-3421
-901
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8974
SELECT - - col0 * - ( + 22 ) + - cor0.col0 / CAST( NULL AS SIGNED ) - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8974
SELECT - - col0 * - ( + 22 ) + - cor0.col0 / CAST ( NULL AS INTEGER ) - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col0 + + 92 FROM tab2 AS cor0
----
13
14
85
query I rowsort
SELECT + - col2 + + ( col1 ) FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT col0 * cor0.col0 AS col2 FROM tab0 cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-8978
SELECT DISTINCT + tab2.col1 DIV col1 FROM tab2
----
1
skipif mysql # not compatible
query I rowsort label-8978
SELECT DISTINCT + tab2.col1 / col1 FROM tab2
----
1
query I rowsort
SELECT ALL cor0.col1 + - cor0.col0 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 69a03f002c4988a217a3743145c31549
query I rowsort
SELECT ALL - cor0.col0 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT - ( + col1 ) + - col2 AS col1 FROM tab0 cor0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 * col2 * col2 col2 FROM tab1 AS cor0
----
131220
146205
414720
query I rowsort
SELECT DISTINCT - 73 * col2 + cor0.col1 FROM tab2 AS cor0
----
-1839
-1940
-2757
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + col0 ) * + col1 + cor0.col1 col0 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8985
SELECT DISTINCT + + CAST( ( + col2 ) AS SIGNED ) + - 60 col1 FROM tab2 AS cor0
----
-22
-33
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8985
SELECT DISTINCT + + CAST ( ( + col2 ) AS INTEGER ) + - 60 col1 FROM tab2 AS cor0
----
-22
-33
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-8986
SELECT - 13 DIV - 11 + - cor0.col1 * - 33 + col2 FROM tab0 AS cor0
----
2872
3086
3203
skipif mysql # not compatible
query I rowsort label-8986
SELECT - 13 / - 11 + - cor0.col1 * - 33 + col2 FROM tab0 AS cor0
----
2872
3086
3203
query I rowsort
SELECT ( 37 ) * + col1 FROM tab0 AS cor0
----
3182
3367
3589
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8988
SELECT ALL CAST( col2 AS SIGNED ) * col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL CAST ( col2 AS INTEGER ) * col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT 66 * + col1 AS col1 FROM tab1 AS cor0
----
1716
660
858
query I rowsort
SELECT ALL + + col1 + col1 * + col0 FROM tab0 cor0
----
2150
3492
8190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8991
SELECT - + CAST( NULL AS SIGNED ) * + col0 * - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8991
SELECT - + CAST ( NULL AS INTEGER ) * + col0 * - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8992
SELECT DISTINCT + col1 DIV - cor0.col1 AS col0 FROM tab2 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT + col1 / - cor0.col1 AS col0 FROM tab2 cor0
----
-1
query I rowsort
SELECT - - col0 * col2 AS col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL + cor0.col0 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL 10 * - col0 AS col0 FROM tab2
----
-70
-780
-790
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 58 col2 FROM tab1, tab0 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 793ce5fda3f22b0a251dca7e8a07baed
query I rowsort
SELECT col0 * - 62 AS col1 FROM tab2
----
-434
-4836
-4898
query I rowsort
SELECT ALL - - 72 FROM tab0 AS cor0
----
72
72
72
query I rowsort
SELECT DISTINCT - - col0 + - col0 * - 33 * - col0 FROM tab2 AS cor0
----
-1610
-200694
-205874
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + col1 * + cor0.col0 col0 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT DISTINCT + 21 * col2 AS col2 FROM tab1 AS cor0
----
1134
1197
2016
query I rowsort
SELECT - 57 * - cor0.col1 FROM tab0 AS cor0
----
4902
5187
5529
query I rowsort
SELECT DISTINCT - + col1 * + col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 * - col0 col1 FROM tab0 cor0
----
-2136
-576
-840
query I rowsort
SELECT DISTINCT - col1 * 67 AS col0 FROM tab2
----
-1139
-2077
-3953
query I rowsort
SELECT - + cor0.col2 * + col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + cor0.col1 * - 46 AS col1 FROM tab1 cor0
----
-1196
-460
-598
query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
54
57
96
query I rowsort
SELECT ALL - + col1 * 35 + col0 AS col1 FROM tab1 AS cor0
----
-286
-375
-907
query I rowsort
SELECT - - col1 + 81 * + col2 FROM tab2 AS cor0
----
2165
2218
3095
query I rowsort
SELECT DISTINCT - + col0 * col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT ALL + col1 * ( - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + col2 + cor0.col1 * + col0 * - col1 FROM tab1 AS cor0
----
-13424
-1974
-6343
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9015
SELECT - - col1 * CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-9015
SELECT - - col1 * CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT ( col1 * + col1 ) FROM tab2
----
289
3481
961
query I rowsort
SELECT + 77 + col0 * + col2 AS col2 FROM tab0 AS cor0
----
112
7375
869
skipif mysql # not compatible
query I rowsort
SELECT ALL - + cor0.col2 * - CAST ( - cor0.col1 AS REAL ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c52f276f0448e9317aa4a2c462e0bab5
query I rowsort
SELECT + ( - col2 ) * cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-9020
SELECT + col2 + ( col0 ) * 76 DIV cor0.col2 FROM tab1 AS cor0
----
142
159
58
skipif mysql # not compatible
query I rowsort label-9020
SELECT + col2 + ( col0 ) * 76 / cor0.col2 FROM tab1 AS cor0
----
142
159
58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9021
SELECT CAST( NULL AS SIGNED ) + 70 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9021
SELECT CAST ( NULL AS INTEGER ) + 70 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - col1 + - 90 FROM tab0
----
-176
-181
-187
query I rowsort
SELECT col1 * 35 AS col1 FROM tab0
----
3010
3185
3395
query I rowsort
SELECT + col1 * - 38 AS col2 FROM tab1
----
-380
-494
-988
query I rowsort
SELECT - + ( 57 ) FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9026
SELECT + CAST( NULL AS SIGNED ) - - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9026
SELECT + CAST ( NULL AS INTEGER ) - - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( 29 ) FROM tab0
----
29
29
29
query I rowsort
SELECT ALL - ( col2 ) + + col0 AS col1 FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT - col2 + col0 + col2 * col0 AS col2 FROM tab1
----
111
3655
7664
query I rowsort
SELECT ALL - col2 + 0 + - col0 * col2 * tab0.col1 FROM tab0
----
-3396
-664200
-68145
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9031
SELECT col2 + CAST( col2 + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
114
78
81
skipif mysql # not compatible
query I rowsort label-9031
SELECT col2 + CAST ( col2 + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
114
78
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 + cor0.col1 * - col0 col2 FROM tab1 AS cor0
----
-1209
-740
-754
query I rowsort
SELECT DISTINCT - col1 * 77 FROM tab0 AS cor0
----
-6622
-7007
-7469
query I rowsort
SELECT + + col0 * col1 + col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-9035
SELECT + col2 + + cor0.col0 DIV + ( - col0 ) FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-9035
SELECT + col2 + + cor0.col0 / + ( - col0 ) FROM tab2 AS cor0
----
25
26
37
query I rowsort
SELECT - + col0 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col1 + col0 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT - 55 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1705
-3245
-935
query I rowsort
SELECT ALL - 0 * col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + ( cor0.col0 ) ) col1 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9041
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + cor0.col2 * - col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9041
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + cor0.col2 * - col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + ( ( - cor0.col2 ) ) + + col2 * + col0 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT ALL + - col2 + - col0 AS col0 FROM tab2 cor0
----
-104
-117
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9044
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 * - cor0.col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 * - cor0.col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col1 + - col2 * - col2 FROM tab0 cor0
----
1175
6815
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9046
SELECT ALL + cor0.col0 * - cor0.col0 + + col2 DIV - col1 FROM tab2 cor0
----
-49
-6084
-6243
skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL + cor0.col0 * - cor0.col0 + + col2 / - col1 FROM tab2 cor0
----
-49
-6084
-6243
query I rowsort
SELECT + + col0 * - col1 - ( 89 ) FROM tab0 AS cor0
----
-2153
-3484
-8188
query I rowsort
SELECT - col2 + col2 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + cor0.col2 * + cor0.col2 - + col2 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT DISTINCT - tab2.col0 + col0 * + col1 + tab2.col2 AS col2 FROM tab2
----
1302
237
4550
query I rowsort
SELECT - col2 + tab1.col2 + + col2 AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL 67 FROM tab1 AS cor0
----
67
67
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-9053
SELECT 73 DIV - col2 - ( - col2 + - cor0.col0 ) * col1 FROM tab0 AS cor0
----
15561
3419
4900
skipif mysql # not compatible
query I rowsort label-9053
SELECT 73 / - col2 - ( - col2 + - cor0.col0 ) * col1 FROM tab0 AS cor0
----
15561
3419
4900
query I rowsort
SELECT ALL - 25 + - col2 * + col0 AS col0 FROM tab2 AS cor0
----
-2053
-214
-3027
query I rowsort
SELECT col0 - col1 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT - col0 - - col2 * cor0.col2 FROM tab0 AS cor0
----
-34
1065
6635
onlyif mysql # use DIV operator for integer division
query I rowsort label-9057
SELECT col1 + - col0 + col1 DIV col0 FROM tab2 AS cor0
----
-19
-62
28
skipif mysql # not compatible
query I rowsort label-9057
SELECT col1 + - col0 + col1 / col0 FROM tab2 AS cor0
----
-19
-62
28
query I rowsort
SELECT ALL + + col1 * - col0 * + col2 AS col1 FROM tab1 cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ALL + col0 * 73 AS col2 FROM tab2 AS cor0
----
511
5694
5767
query I rowsort
SELECT - col0 * + 34 + - cor0.col0 + col1 FROM tab0 AS cor0
----
-1128
-3024
-754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 + + 58 * cor0.col0 col2 FROM tab2 AS cor0
----
406
4524
4582
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 10 * + col0 col2 FROM tab2 AS cor0
----
806
828
97
query I rowsort
SELECT + col0 * + col2 + cor0.col2 + - col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + + col2 * ( ( + col2 ) ) * - col2 AS col2 FROM tab2 AS cor0
----
-17576
-19683
-54872
query I rowsort
SELECT ALL col0 + + 22 * - col1 AS col2 FROM tab2 AS cor0
----
-1220
-295
-675
query I rowsort
SELECT + col1 + - 64 * + 13 FROM tab1 cor0
----
-806
-819
-822
onlyif mysql # use DIV operator for integer division
query I rowsort label-9067
SELECT ALL + + col0 DIV - col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL + + col0 / - col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT + col2 * 73 FROM tab1 AS cor0
----
3942
4161
7008
query I rowsort
SELECT ALL ( + col1 ) * col0 - tab2.col2 * col0 FROM tab2
----
-1659
2574
28
query I rowsort
SELECT DISTINCT - 55 AS col1 FROM tab1, tab2, tab2 cor0
----
-55
onlyif mysql # use DIV operator for integer division
query I rowsort label-9071
SELECT ALL - ( - col2 ) - col0 DIV col2 AS col0 FROM tab0
----
-34
33
81
skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL - ( - col2 ) - col0 / col2 AS col0 FROM tab0
----
-34
33
81
query I rowsort
SELECT ALL - col2 * - cor0.col0 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab0, tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + col1 + - col0 AS col2 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT DISTINCT - - col2 + 66 * + col0 AS col1 FROM tab1 AS cor0
----
252
4281
5376
onlyif mysql # use DIV operator for integer division
query I rowsort label-9076
SELECT + col2 * col0 + - col0 DIV - col0 + cor0.col2 * cor0.col1 col0 FROM tab0 AS cor0
----
133
14761
3631
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9076
SELECT + col2 * col0 + - col0 / - col0 + cor0.col2 * cor0.col1 col0 FROM tab0 AS cor0
----
133
14761
3631
query I rowsort
SELECT + col2 + - 2 + + col2 AS col1 FROM tab1 AS cor0
----
106
112
190
query I rowsort
SELECT ALL - - col1 + - 44 * col1 * cor0.col1 FROM tab1 cor0
----
-29718
-4390
-7423
query I rowsort
SELECT col2 - 38 FROM tab0 AS cor0
----
-37
-5
44
query I rowsort
SELECT DISTINCT tab0.col1 * col0 + col0 + - col0 * - ( + col1 ) FROM tab0
----
16287
4152
6825
query I rowsort
SELECT + col2 + 9 AS col0 FROM tab1
----
105
63
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col1 FROM tab2 AS cor0
----
-36
-36
-36
query I rowsort
SELECT col2 * - ( + 40 ) + - col1 AS col0 FROM tab0
----
-137
-1406
-3371
query I rowsort
SELECT DISTINCT col0 * - col0 + 91 FROM tab2
----
-5993
-6150
42
query I rowsort
SELECT + col1 * - ( col1 * col2 ) + + ( tab0.col2 ) AS col1 FROM tab0
----
-244035
-678960
-9408
query I rowsort
SELECT 1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
onlyif mysql # use DIV operator for integer division
query I rowsort label-9087
SELECT DISTINCT col1 DIV ( col0 ) + + col1 + + 49 * - col1 FROM tab2
----
-1484
-2832
-816
skipif mysql # not compatible
query I rowsort label-9087
SELECT DISTINCT col1 / ( col0 ) + + col1 + + 49 * - col1 FROM tab2
----
-1484
-2832
-816
onlyif mysql # use DIV operator for integer division
query I rowsort label-9088
SELECT col0 + - col2 + col1 DIV col1 FROM tab2
----
-19
42
53
skipif mysql # not compatible
query I rowsort label-9088
SELECT col0 + - col2 + col1 / col1 FROM tab2
----
-19
42
53
query I rowsort
SELECT + 11 + - col0 AS col0 FROM tab1
----
-53
-69
8
query I rowsort
SELECT DISTINCT + col1 * + col1 + col2 AS col1 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT ALL + - col0 * cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL + + col1 + col0 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - 8 * col2 + - col2 AS col0 FROM tab0 cor0
----
-297
-738
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - col0 col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT 99 AS col0 FROM tab1
----
99
99
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9096
SELECT CAST( col0 AS SIGNED ) FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9096
SELECT CAST ( col0 AS INTEGER ) FROM tab0
----
24
35
89
query I rowsort
SELECT - 20 AS col1 FROM tab2
----
-20
-20
-20
query I rowsort
SELECT + + 40 * - cor0.col2 + - cor0.col0 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to b263a6169136bea4883099da67edf822
query I rowsort
SELECT + tab1.col1 AS col0 FROM tab1, tab0 cor0, tab2, tab2 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query I rowsort
SELECT - 13 * + col0 + ( col2 + - col2 * col2 ) AS col2 FROM tab0
----
-1368
-455
-7799
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col2 col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT - 0 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col1 * col2 + - cor0.col0 * + col0 FROM tab1 AS cor0
----
-3526
-5152
1395
query I rowsort
SELECT DISTINCT ( - col1 ) * - col2 + - 23 FROM tab2 AS cor0
----
1511
623
814
query I rowsort
SELECT - 35 AS col2 FROM tab0
----
-35
-35
-35
query I rowsort
SELECT + cor0.col1 AS col0 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL col0 * - col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + ( + col0 ) + ( + col0 ) FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL 93 AS col1 FROM tab1, tab2 cor0, tab0 cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9110
SELECT - 59 DIV - col0 AS col1 FROM tab1 AS cor0
----
0
0
19
skipif mysql # not compatible
query I rowsort label-9110
SELECT - 59 / - col0 AS col1 FROM tab1 AS cor0
----
0
0
19
query I rowsort
SELECT ALL col0 + + col0 * - tab1.col1 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT ALL tab1.col0 + tab1.col2 FROM tab1
----
121
176
57
query I rowsort
SELECT - col0 FROM tab2 WHERE col2 * - col1 NOT IN ( + col2 )
----
-7
-78
-79
query I rowsort
SELECT ALL + 28 + col0 FROM tab2 AS cor0
----
106
107
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-9115
SELECT col2 DIV - col1 FROM tab2 cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-9115
SELECT col2 / - col1 FROM tab2 cor0
----
-2
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - cor0.col0 * 56 col2 FROM tab0 AS cor0
----
1960
408688
44352
onlyif mysql # use DIV operator for integer division
query I rowsort label-9117
SELECT ALL col1 DIV tab1.col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL col1 / tab1.col1 FROM tab1
----
1
1
1
query I rowsort
SELECT ( col0 + col1 ) FROM tab2
----
137
38
96
query I rowsort
SELECT col1 * col0 * tab0.col1 AS col2 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT + col1 * - tab0.col1 AS col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL + col0 * tab0.col0 AS col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( - col1 )
----
query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE NOT col2 + - col0 * col2 BETWEEN NULL AND col2
----
query I rowsort
SELECT DISTINCT - col1 * - col2 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL + col0 * - col2 AS col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT + col2 + col1 * - col2 AS col1 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT ALL + col2 * + col0 FROM tab2 WHERE NOT ( + col0 ) BETWEEN NULL AND col0
----
query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND + col2 + - col1
----
query I rowsort
SELECT + col2 FROM tab0 WHERE NOT + col2 >= col0
----
1
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-9130
SELECT + col2 DIV col1 + + col1 FROM tab1
----
15
20
28
skipif mysql # not compatible
query I rowsort label-9130
SELECT + col2 / col1 + + col1 FROM tab1
----
15
20
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-9131
SELECT DISTINCT tab1.col0 * col0 DIV - col0 - tab1.col0 AS col0 FROM tab1
----
-128
-160
-6
skipif mysql # not compatible
query I rowsort label-9131
SELECT DISTINCT tab1.col0 * col0 / - col0 - tab1.col0 AS col0 FROM tab1
----
-128
-160
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9132
SELECT + col1 + + col2 * tab0.col1 DIV col0 col0 FROM tab0
----
174
204
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9132
SELECT + col1 + + col2 * tab0.col1 / col0 col0 FROM tab0
----
174
204
99
query I rowsort
SELECT col0 + + tab0.col1 AS col2 FROM tab0 WHERE NULL BETWEEN col0 AND + col2
----
query I rowsort
SELECT ALL + col2 - col2 AS col0 FROM tab1
----
0
0
0
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 <> NULL
----
query I rowsort
SELECT DISTINCT - col1 - - col2 AS col0 FROM tab1
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + col0 col2 FROM tab1
----
165
3712
7760
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) <> NULL
----
query I rowsort
SELECT ALL - col1 FROM tab2 WHERE col0 * + col0 < NULL
----
query I rowsort
SELECT - col0 + - tab0.col0 FROM tab0
----
-178
-48
-70
query I rowsort
SELECT DISTINCT + col1 * + col2 * + tab1.col0 FROM tab1
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-9142
SELECT tab1.col2 DIV - tab1.col2 col1 FROM tab1
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9142
SELECT tab1.col2 / - tab1.col2 col1 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT + col2 + - col0 AS col2 FROM tab0
----
-34
-7
9
query I rowsort
SELECT DISTINCT col0 * - col1 * + col1 + - col0 - - col0 * - col2 FROM tab0
----
-178320
-329385
-744396
query I rowsort
SELECT col2 * tab2.col0 + + col0 FROM tab2
----
196
2106
3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col2 + + col2 col1 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT + col2 + - tab2.col0 + col0 AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT col0 - - tab0.col1 FROM tab0
----
110
132
180
query I rowsort
SELECT - - ( + col1 ) + + col0 * + col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL - 47 + col1 FROM tab0
----
39
44
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9151
SELECT ALL - CAST( NULL AS SIGNED ) + 11 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL - CAST ( NULL AS INTEGER ) + 11 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + tab0.col0 + - 29 FROM tab0
----
-5
6
60
query I rowsort
SELECT DISTINCT + - 56 AS col0 FROM tab1, tab2, tab2 cor0, tab0
----
-56
query I rowsort
SELECT 43 * 7 FROM tab2
----
301
301
301
query I rowsort
SELECT ALL - - cor0.col0 - - col1 * + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT + + col2 + - col1 + col0 AS col0 FROM tab1 AS cor0
----
111
163
31
query I rowsort
SELECT ALL + 63 * col1 + ( cor0.col0 ) FROM tab1 cor0
----
1641
694
899
query I rowsort
SELECT + - col0 * cor0.col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL - ( + col2 ) * + 45 FROM tab0 AS cor0
----
-1485
-3690
-45
query I rowsort
SELECT ALL 96 * - col0 + + 15 * col1 AS col1 FROM tab0 AS cor0
----
-1014
-1905
-7179
query I rowsort
SELECT ALL col1 * col1 + - ( + col2 ) FROM tab1 cor0
----
43
622
73
query I rowsort
SELECT ALL - 62 * - col2 - 98 AS col2 FROM tab1 AS cor0
----
3250
3436
5854
query I rowsort
SELECT - + 43 + col2 FROM tab0 AS cor0
----
-10
-42
39
query I rowsort
SELECT DISTINCT 15 FROM tab1 AS cor0
----
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-9165
SELECT ALL - 97 DIV + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL - 97 / + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-4
query I rowsort
SELECT ALL cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col1 ) * - col1 * cor0.col2 col0 FROM tab0 cor0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT - col2 * + 93 FROM tab1
----
-5022
-5301
-8928
onlyif mysql # use DIV operator for integer division
query I rowsort label-9169
SELECT + col2 DIV + ( - col2 + col0 ) FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9169
SELECT + col2 / + ( - col2 + col0 ) FROM tab2 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - ( col1 ) col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT ALL - - 99 AS col1 FROM tab1 AS cor0
----
99
99
99
query I rowsort
SELECT col2 - col1 * + col2 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9173
SELECT + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-9173
SELECT + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT ( + 92 ) FROM tab0 AS cor0
----
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-9175
SELECT col0 DIV col0 - - col1 AS col2 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-9175
SELECT col0 / col0 - - col1 AS col2 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT + tab2.col1 * col0 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT + + col2 + col1 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT + 72 + + ( tab0.col0 ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd3b5560b33bd6fca16cc04ce2ccdb1f
query I rowsort
SELECT DISTINCT col2 * - col1 + + cor0.col0 * + col1 FROM tab2 AS cor0
----
-620
3068
697
query I rowsort
SELECT ALL + - col0 * col2 + col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT + - 84 FROM tab0 AS cor0
----
-84
query I rowsort
SELECT DISTINCT - + cor0.col2 + col1 * col0 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT - - 48 + + col2 * cor0.col0 AS col0 FROM tab1 cor0
----
210
3696
7728
query I rowsort
SELECT + - 47 * + col1 + col1 AS col1 FROM tab2 AS cor0
----
-1426
-2714
-782
query I rowsort
SELECT ALL - - ( cor0.col1 ) + - col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + + cor0.col0 + + col2 * col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
168
3776
7840
onlyif mysql # use DIV operator for integer division
query I rowsort label-9187
SELECT ALL 23 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL 23 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT ALL - 98 + - col2 FROM tab1 cor0
----
-152
-155
-194
query I rowsort
SELECT DISTINCT + - 58 + - col1 AS col2 FROM tab0 AS cor0
----
-144
-149
-155
query I rowsort
SELECT ALL - col0 * col2 - col1 FROM tab2
----
-2087
-220
-3019
query I rowsort
SELECT - col0 - tab2.col2 FROM tab2
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-9192
SELECT ALL + col1 - - col0 DIV col0 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL + col1 - - col0 / col0 FROM tab1
----
11
14
27
query I rowsort
SELECT + col2 * - col0 + + col0 * + col2 AS col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 col2 FROM tab2 AS cor0
----
37
query I rowsort
SELECT - 17 * col2 AS col2 FROM tab2 AS cor0
----
-442
-459
-646
query I rowsort
SELECT ALL - + col1 * + col1 * - col2 AS col0 FROM tab0 AS cor0
----
244068
679042
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * - col2 col0 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT - col0 + col0 * col2 AS col1 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT ALL - + 38 + cor0.col2 FROM tab1 AS cor0
----
16
19
58
query I rowsort
SELECT - col2 + col2 + + col0 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9201
SELECT CAST( NULL AS SIGNED ) * + 68 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9201
SELECT CAST ( NULL AS INTEGER ) * + 68 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to fb1fb273a543ea33958edfcaa2e7ed26
query I rowsort
SELECT - ( - 36 * - col2 ) FROM tab2
----
-1368
-936
-972
query I rowsort
SELECT 26 + col2 + + col0 FROM tab1
----
147
202
83
query I rowsort
SELECT - ( tab0.col0 ) + col0 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col0 * col2 + - col2 AS col1 FROM tab1
----
108
3591
7584
query I rowsort
SELECT ALL - 74 + + cor0.col2 + col1 FROM tab1 AS cor0
----
-7
35
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9208
SELECT + + CAST( NULL AS SIGNED ) - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9208
SELECT + + CAST ( NULL AS INTEGER ) - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( 26 ) + - col0 * - col1 * - col1 AS col2 FROM tab2
----
-22805
-271492
-6701
query I rowsort
SELECT ALL + tab1.col0 + - col1 AS col2 FROM tab1
----
-23
54
67
query I rowsort
SELECT + 94 FROM tab1, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT DISTINCT - 38 * col2 + + col1 AS col0 FROM tab2
----
-1427
-929
-995
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9213
SELECT CAST( col0 AS SIGNED ) + col1 AS col1 FROM tab1
----
29
74
93
skipif mysql # not compatible
query I rowsort label-9213
SELECT CAST ( col0 AS INTEGER ) + col1 AS col1 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT col0 + ( col1 ) FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT - + 4 * col0 FROM tab0 cor0
----
-140
-356
-96
query I rowsort
SELECT ALL 39 + 66 AS col2 FROM tab1 AS cor0
----
105
105
105
query I rowsort
SELECT DISTINCT + - 84 * col0 AS col2 FROM tab2 AS cor0
----
-588
-6552
-6636
query I rowsort
SELECT DISTINCT - ( - ( col2 ) ) + col0 + col0 AS col2 FROM tab1 cor0
----
185
256
60
query I rowsort
SELECT ALL 12 * cor0.col1 + col1 AS col2 FROM tab1 AS cor0
----
130
169
338
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 + - col1 - col0 col1 FROM tab2 AS cor0
----
1247
179
4465
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 - + 2 col2 FROM tab1 AS cor0
----
1
62
78
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9223
SELECT ALL - col0 * col2 + col1 DIV cor0.col1 FROM tab2 AS cor0
----
-188
-2027
-3001
skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL - col0 * col2 + col1 / cor0.col1 FROM tab2 AS cor0
----
-188
-2027
-3001
query I rowsort
SELECT col2 * + col2 * + col0 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT DISTINCT - col2 * - cor0.col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT - - cor0.col2 + - col2 * col2 FROM tab0 AS cor0
----
-1056
-6642
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9227
SELECT + col2 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-9227
SELECT + col2 / cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-9228
SELECT DISTINCT - + cor0.col2 DIV + col0 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-9228
SELECT DISTINCT - + cor0.col2 / + col0 FROM tab0 AS cor0
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9229
SELECT ALL + cor0.col1 DIV cor0.col0 FROM tab2, tab0 cor0
----
9 values hashing to 245313dc4e9fc19df7ee93651efe9bf2
skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL + cor0.col1 / cor0.col0 FROM tab2, tab0 cor0
----
9 values hashing to 245313dc4e9fc19df7ee93651efe9bf2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 col2 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-9231
SELECT DISTINCT col1 DIV col2 + col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-9231
SELECT DISTINCT col1 / col2 + col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + col0 * col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT NULL = col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9234
SELECT col2 * col0 DIV col1 - col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
363
5
589
skipif mysql # not compatible
query I rowsort label-9234
SELECT col2 * col0 / col1 - col0 / + col0 AS col2 FROM tab1 AS cor0
----
363
5
589
query I rowsort
SELECT + col0 + col1 - col2 * col2 FROM tab0 AS cor0
----
-6544
-979
131
query I rowsort
SELECT ALL + col2 * - cor0.col0 * col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col0 FROM tab1, tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - col0 + col0 * - col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT + + col0 + col2 * - cor0.col2 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT + - cor0.col1 * cor0.col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT col2 + - tab0.col1 * col1 FROM tab0
----
-7363
-8199
-9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-9242
SELECT - cor0.col2 DIV col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-9242
SELECT - cor0.col2 / col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9243
SELECT col2 DIV cor0.col1 AS col1 FROM tab2 cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-9243
SELECT col2 / cor0.col1 AS col1 FROM tab2 cor0
----
0
0
2
query I rowsort
SELECT + col0 * cor0.col2 + - col0 * - col1 + - 77 FROM tab1 AS cor0
----
163
4211
8643
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 * - col1 col2 FROM tab2
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-9246
SELECT ALL - col0 * CAST( + 14 AS SIGNED ) DIV + tab2.col0 FROM tab2
----
-14
-14
-14
skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL - col0 * CAST ( + 14 AS INTEGER ) / + tab2.col0 FROM tab2
----
-14
-14
-14
query I rowsort
SELECT + ( 42 ) * col1 AS col2 FROM tab0 AS cor0
----
3612
3822
4074
query I rowsort
SELECT - col1 * + 3 FROM tab2 AS cor0
----
-177
-51
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-9249
SELECT - - ( + ( + col2 ) ) DIV cor0.col0 AS col2 FROM tab2 cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-9249
SELECT - - ( + ( + col2 ) ) / cor0.col0 AS col2 FROM tab2 cor0
----
0
0
3
query I rowsort
SELECT - 61 - - 87 FROM tab2, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
onlyif mysql # use DIV operator for integer division
query I rowsort label-9251
SELECT 5 DIV cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
skipif mysql # not compatible
query I rowsort label-9251
SELECT 5 / cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
query I rowsort
SELECT - col2 * + cor0.col2 + - col2 * ( - col2 ) AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 + - col1 + col2 * - col1 * cor0.col0 FROM tab1 AS cor0
----
-36500
-4264
-99866
onlyif mysql # use DIV operator for integer division
query I rowsort label-9254
SELECT + col0 * col2 DIV + 85 + 8 * + col0 * + ( 50 ) + - cor0.col2 FROM tab1 AS cor0
----
1147
25585
31994
skipif mysql # not compatible
query I rowsort label-9254
SELECT + col0 * col2 / + 85 + 8 * + col0 * + ( 50 ) + - cor0.col2 FROM tab1 AS cor0
----
1147
25585
31994
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + col0 * + 62 col2 FROM tab1 AS cor0
----
4068
5129
862
onlyif mysql # use DIV operator for integer division
query I rowsort label-9256
SELECT DISTINCT - col1 DIV col1 AS col1 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-9256
SELECT DISTINCT - col1 / col1 AS col1 FROM tab2
----
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9257
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9257
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-9258
SELECT DISTINCT - cor0.col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT - cor0.col1 / - col1 AS col0 FROM tab0 AS cor0
----
1
query I rowsort
SELECT 96 * col0 + col0 - + col1 * col1 AS col0 FROM tab1 AS cor0
----
-385
6108
7591
query I rowsort
SELECT col1 * cor0.col2 - - ( 93 + - col1 ) AS col1 FROM tab2 AS cor0
----
1568
722
899
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9261
SELECT ALL + col0 + col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL + col0 + col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + + ( cor0.col1 ) AS col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - 89 * + col2 FROM tab1
----
-4806
-5073
-8544
query I rowsort
SELECT ALL + col1 * col1 * col1 AS col2 FROM tab0
----
636056
753571
912673
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - ( + cor0.col2 ) + - col1 col0 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT + col2 * col2 + 60 * col0 AS col0 FROM tab0 AS cor0
----
12064
2101
2529
query I rowsort
SELECT ALL + + col2 * + 55 - + 93 AS col0 FROM tab0 AS cor0
----
-38
1722
4417
onlyif mysql # use DIV operator for integer division
query I rowsort label-9268
SELECT - - col1 + - ( cor0.col2 + + col2 ) DIV - col0 AS col0 FROM tab2 AS cor0
----
17
38
59
skipif mysql # not compatible
query I rowsort label-9268
SELECT - - col1 + - ( cor0.col2 + + col2 ) / - col0 AS col0 FROM tab2 AS cor0
----
17
38
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-9269
SELECT DISTINCT + + cor0.col2 DIV + 90 + + col0 * col0 DIV 94 AS col1 FROM tab0 AS cor0
----
13
6
84
skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT + + cor0.col2 / + 90 + + col0 * col0 / 94 AS col1 FROM tab0 AS cor0
----
13
6
84
query I rowsort
SELECT tab1.col0 - col2 AS col1 FROM tab1
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9271
SELECT tab0.col2 * col0 DIV - 74 - - col2 AS col1 FROM tab0
----
-16
1
23
skipif mysql # not compatible
query I rowsort label-9271
SELECT tab0.col2 * col0 / - 74 - - col2 AS col1 FROM tab0
----
-16
1
23
query I rowsort
SELECT - 30 * col2 AS col1 FROM tab0
----
-2460
-30
-990
query I rowsort
SELECT ALL - col0 + - 31 * tab0.col2 FROM tab0
----
-1047
-2631
-66
query I rowsort
SELECT col2 + col0 - + col2 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT 54 AS col1 FROM tab0, tab2 AS cor0
----
54
query I rowsort
SELECT - col1 + - 60 * col0 + col0 AS col1 FROM tab1
----
-203
-3786
-4733
query I rowsort
SELECT ALL + 19 AS col0 FROM tab2, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 39241ace4c29d5a55052e1665aa36823
query I rowsort
SELECT col1 + tab1.col0 + + col0 FROM tab1
----
138
173
32
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0, tab2 AS cor2
----
3645 values hashing to ee83821bd928a072bc435d7135362ca1
query I rowsort
SELECT + col1 - + ( - col0 + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + + col1 * + 36 * col2 FROM tab1 AS cor0
----
20520
44928
50544
query I rowsort
SELECT + cor0.col0 - + ( - cor0.col2 ) FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - col1 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT + ( 61 + col0 * - ( 63 ) ) AS col0 FROM tab0
----
-1451
-2144
-5546
onlyif mysql # use DIV operator for integer division
query I rowsort label-9285
SELECT 93 * + col2 + cor0.col2 DIV - cor0.col0 FROM tab0 AS cor0
----
3068
7626
93
skipif mysql # not compatible
query I rowsort label-9285
SELECT 93 * + col2 + cor0.col2 / - cor0.col0 FROM tab0 AS cor0
----
3068
7626
93
query I rowsort
SELECT 27 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col2 FROM tab0
----
-77
-77
-77
query I rowsort
SELECT DISTINCT ( 52 ) FROM tab0
----
52
query I rowsort
SELECT DISTINCT - - ( - col1 ) * + 62 AS col1 FROM tab0 cor0
----
-5332
-5642
-6014
query I rowsort
SELECT ALL - 94 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to d4c5b1dbf2cd8753fb5ffe745ca9f5de
onlyif mysql # use DIV operator for integer division
query I rowsort label-9291
SELECT ALL + col0 + col0 DIV - ( - col2 ) FROM tab0 AS cor0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL + col0 + col0 / - ( - col2 ) FROM tab0 AS cor0
----
24
70
90
query I rowsort
SELECT ALL col0 * - cor0.col0 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT + col1 * - 58 FROM tab2 AS cor0
----
-1798
-3422
-986
query I rowsort
SELECT DISTINCT - 34 + ( - col2 + + 85 ) AS col2 FROM tab0 AS cor0
----
-31
18
50
query I rowsort
SELECT + cor0.col1 * col1 * - col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9296
SELECT + 1 * + col2 + + col2 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9296
SELECT + 1 * + col2 + + col2 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * ( - col0 ) FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL + ( 81 ) FROM tab2 AS cor0
----
81
81
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-9299
SELECT ALL ( + col0 ) + col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL ( + col0 ) + col2 / + col2 AS col2 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT DISTINCT + + ( + 23 ) AS col2 FROM tab1 cor0
----
23
query I rowsort
SELECT DISTINCT + - 72 + col1 FROM tab2 AS cor0
----
-13
-41
-55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * col1 col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - 86 + + 66 * col1 AS col0 FROM tab1 AS cor0
----
1630
574
772
query I rowsort
SELECT 56 AS col2 FROM tab1 AS cor0
----
56
56
56
query I rowsort
SELECT ALL 66 * 80 * col1 AS col0 FROM tab2 AS cor0
----
163680
311520
89760
query I rowsort
SELECT ALL - 30 * col2 + col1 * + 3 FROM tab1 AS cor0
----
-1542
-1680
-2841
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 52 ) - col0 col0 FROM tab0
----
-37
17
28
query I rowsort
SELECT DISTINCT + 34 * col1 AS col1 FROM tab2 AS cor0
----
1054
2006
578
query I rowsort
SELECT + - 87 * col1 AS col1 FROM tab2 AS cor0
----
-1479
-2697
-5133
query I rowsort
SELECT - + col1 - col0 FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9311
SELECT - CAST( 90 AS SIGNED ) DIV col1 FROM tab1
----
-3
-6
-9
skipif mysql # not compatible
query I rowsort label-9311
SELECT - CAST ( 90 AS INTEGER ) / col1 FROM tab1
----
-3
-6
-9
query I rowsort
SELECT 22 * + col1 * + col1 FROM tab2
----
21142
6358
76582
query I rowsort
SELECT DISTINCT 15 + + col2 AS col1 FROM tab1
----
111
69
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-9314
SELECT DISTINCT + cor0.col0 + + 47 DIV col0 FROM tab1 AS cor0
----
18
64
80
skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT + cor0.col0 + + 47 / col0 FROM tab1 AS cor0
----
18
64
80
query I rowsort
SELECT DISTINCT + - col0 * col2 + 13 FROM tab0 AS cor0
----
-22
-7285
-779
query I rowsort
SELECT ALL - - col2 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL - ( col1 ) * + col0 + + 77 * col2 FROM tab1
----
3749
4080
6352
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( + col2 ) * col2 col1 FROM tab2
----
1365
598
722
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9319
SELECT col2 * CAST( col2 AS SIGNED ) + - col0 * - col1 FROM tab1
----
10256
2994
3889
skipif mysql # not compatible
query I rowsort label-9319
SELECT col2 * CAST ( col2 AS INTEGER ) + - col0 * - col1 FROM tab1
----
10256
2994
3889
query I rowsort
SELECT col1 - + 9 AS col0 FROM tab2
----
22
50
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-9321
SELECT col2 + - ( col1 ) DIV + col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-9321
SELECT col2 + - ( col1 ) / + col2 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT - + cor0.col0 * + 24 + 1 * + col1 FROM tab2 AS cor0
----
-137
-1813
-1879
query I rowsort
SELECT + 69 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT col0 + ( - 42 ) FROM tab0
----
-18
-7
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) col2 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9326
SELECT ALL - col1 * + CAST( NULL AS DECIMAL ) + 20 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL - col1 * + CAST ( NULL AS REAL ) + 20 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * ( col2 ) AS col1 FROM tab0
----
-35
-7298
-792
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 72eb3d4d523f5d0c69d1b855edd18f4a
query I rowsort
SELECT DISTINCT - ( col1 + + col0 ) AS col2 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT - 94 AS col0 FROM tab1
----
-94
-94
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-9331
SELECT ALL + 2 DIV 22 AS col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL + 2 / 22 AS col2 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9332
SELECT ALL col0 + + ( + col1 ) DIV col1 AS col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL col0 + + ( + col1 ) / col1 AS col0 FROM tab1 AS cor0
----
4
65
81
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab1 cor1, tab0 AS cor2
----
972 values hashing to 95920403df268a272c4e933cd0bbe0be
query I rowsort
SELECT ALL + 5 + + col1 AS col2 FROM tab0 AS cor0
----
102
91
96
query I rowsort
SELECT DISTINCT - cor0.col0 * + col1 + + col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT - - ( - col2 ) + - col0 * - 99 AS col2 FROM tab2 AS cor0
----
666
7696
7783
query I rowsort
SELECT - col2 + col2 * - ( - col0 + col2 ) AS col0 FROM tab0
----
-330
33
492
query I rowsort
SELECT DISTINCT - 48 + - col2 * col0 FROM tab1
----
-210
-3696
-7728
query I rowsort
SELECT DISTINCT col1 - col1 * - col1 AS col0 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT 57 - col2 FROM tab2 AS cor0
----
19
30
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-9341
SELECT DISTINCT col2 DIV + col0 col0 FROM tab1
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT col2 / + col0 col0 FROM tab1
----
0
1
18
query I rowsort
SELECT ALL + - 64 * col0 FROM tab2 AS cor0
----
-448
-4992
-5056
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 - + cor0.col1 col2 FROM tab1 AS cor0
----
-20
-26
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-9344
SELECT DISTINCT + col2 DIV col1 col1 FROM tab0 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9344
SELECT DISTINCT + col2 / col1 col1 FROM tab0 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 76 + col0 col2 FROM tab2 AS cor0
----
1371
2363
4562
query I rowsort
SELECT + col0 * col2 * cor0.col1 + + col0 AS col0 FROM tab0 AS cor0
----
3430
664207
68136
query I rowsort
SELECT col1 * cor0.col2 + 80 * - col1 * - col0 FROM tab1 cor0
----
51770
7644
84448
onlyif mysql # use DIV operator for integer division
query I rowsort label-9348
SELECT ALL + col1 DIV ( col0 + - col2 ) FROM tab2 AS cor0
----
-1
0
1
skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL + col1 / ( col0 + - col2 ) FROM tab2 AS cor0
----
-1
0
1
query I rowsort
SELECT DISTINCT col1 * 76 AS col0 FROM tab0 AS cor0
----
6536
6916
7372
query I rowsort
SELECT + col1 + - 35 FROM tab1 AS cor0
----
-22
-25
-9
query I rowsort
SELECT ALL + col2 - - col1 AS col2 FROM tab0 AS cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort
SELECT ALL + col2 * CAST ( + ( - col0 ) AS REAL ) + - col2 / 74 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7681
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9353
SELECT DISTINCT - + col1 - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-55
-58
-85
skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT - + col1 - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL - + col1 * - col1 + + 74 FROM tab0 AS cor0
----
7470
8355
9483
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9355
SELECT - col0 * - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-9355
SELECT - col0 * - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL - tab0.col0 * col0 + ( + col0 * - col2 ) AS col0 FROM tab0
----
-1260
-1368
-15219
query I rowsort
SELECT ALL 31 + col2 FROM tab2
----
57
58
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 * col1 + - col0 * - col0 + - col2 col0 FROM tab0
----
12753
5187
6462
query I rowsort
SELECT col0 * col2 + + cor0.col2 AS col2 FROM tab1 cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-9360
SELECT ALL + 51 DIV + col2 FROM tab0 AS cor0
----
0
1
51
skipif mysql # not compatible
query I rowsort label-9360
SELECT ALL + 51 / + col2 FROM tab0 AS cor0
----
0
1
51
query I rowsort
SELECT col2 * - col1 * - col0 + ( tab1.col2 ) * - col0 * - col0 - - 75 * + col0 AS col1 FROM tab1
----
274752
4923
720240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 - col2 col1 FROM tab0 AS cor0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
10
query I rowsort
SELECT ALL - col2 + - col0 * + ( + ( + col1 ) ) FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT DISTINCT + - col1 - - col0 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-9366
SELECT + ( - col1 ) - + col0 DIV - 93 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-9366
SELECT + ( - col1 ) - + col0 / - 93 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL 77 * + 83 FROM tab2, tab1 AS cor0
----
9 values hashing to a1b69ddad8743c2f6587e843cf542a88
onlyif mysql # use DIV operator for integer division
query I rowsort label-9368
SELECT col0 + - ( 49 ) DIV col0 FROM tab1 AS cor0
----
-13
64
80
skipif mysql # not compatible
query I rowsort label-9368
SELECT col0 + - ( 49 ) / col0 FROM tab1 AS cor0
----
-13
64
80
query I rowsort
SELECT 65 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c
query I rowsort
SELECT 21 FROM tab0 AS cor0
----
21
21
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9371
SELECT + - CAST( col2 AS SIGNED ) + + col0 FROM tab0 AS cor0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-9371
SELECT + - CAST ( col2 AS INTEGER ) + + col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - 31 AS col2 FROM tab1 AS cor0
----
-31
query I rowsort
SELECT DISTINCT - ( - 35 ) FROM tab1 AS cor0
----
35
query I rowsort
SELECT col2 * cor0.col1 * + col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab1, tab1 cor0
----
54
57
96
query I rowsort
SELECT + 80 * - col1 + col1 AS col2 FROM tab1 AS cor0
----
-1027
-2054
-790
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9378
SELECT CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-9378
SELECT CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - cor0.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT ALL cor2.col0 * 42 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to bbf1e372355ef26a8b603d5824dbc949
query I rowsort
SELECT ALL - 88 * + 43 AS col2 FROM tab1 AS cor0
----
-3784
-3784
-3784
query I rowsort
SELECT DISTINCT - col0 * - col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + 53 * - col0 AS col1 FROM tab0 AS cor0
----
-1272
-1855
-4717
query I rowsort
SELECT ALL 38 * ( - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-1330
-3382
-912
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 col1 FROM tab2, tab1 AS cor0
----
80
query I rowsort
SELECT DISTINCT 37 AS col2 FROM tab0 AS cor0
----
37
query I rowsort
SELECT cor0.col2 + col0 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - 35 FROM tab2, tab1 cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b
query I rowsort
SELECT ( - 84 ) * tab2.col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 7645cd9d84fc58289b83292734f85323
query I rowsort
SELECT ALL col1 - - col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT cor0.col0 + col2 * + col2 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT + col1 * col2 - + 32 FROM tab2 AS cor0
----
1502
614
805
query I rowsort
SELECT ALL + 25 AS col2 FROM tab2 AS cor0
----
25
25
25
query I rowsort
SELECT cor0.col1 * col1 * + cor0.col0 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT ( 3 ) AS col0 FROM tab1
----
3
3
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-9396
SELECT ALL + 63 DIV 21 FROM tab2
----
3
3
3
skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL + 63 / 21 FROM tab2
----
3
3
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9397
SELECT CAST( NULL AS DECIMAL ) - - col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9397
SELECT CAST ( NULL AS REAL ) - - col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col1 + col0 * ( + col1 ) FROM tab2 cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT cor0.col1 * 19 AS col1 FROM tab1 AS cor0
----
190
247
494
query I rowsort
SELECT ALL + col2 * col2 + col0 * col2 FROM tab0 AS cor0
----
14022
1881
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + col0 col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 * col2 * + 74 FROM tab2 AS cor0
----
-106856
-50024
-53946
query I rowsort
SELECT ALL col1 * ( 93 ) + + col0 FROM tab2 cor0
----
1660
2890
5565
onlyif mysql # use DIV operator for integer division
query I rowsort label-9404
SELECT + - col1 + + CAST( col0 AS SIGNED ) DIV + col0 FROM tab2 AS cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-9404
SELECT + - col1 + + CAST ( col0 AS INTEGER ) / + col0 FROM tab2 AS cor0
----
-16
-30
-58
query I rowsort
SELECT col1 * cor0.col2 * + col1 AS col1 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT ALL - - col0 * + 67 FROM tab0 AS cor0
----
1608
2345
5963
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 col1 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9408
SELECT - CAST( + 37 AS SIGNED ) FROM tab1, tab2 cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
skipif mysql # not compatible
query I rowsort label-9408
SELECT - CAST ( + 37 AS INTEGER ) FROM tab1, tab2 cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
onlyif mysql # use DIV operator for integer division
query I rowsort label-9409
SELECT DISTINCT col2 DIV 96 AS col0 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT col2 / 96 AS col0 FROM tab1
----
0
1
query I rowsort
SELECT ALL col2 + + col2 * + 54 + - col1 AS col2 FROM tab2
----
1371
1454
2073
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9411
SELECT cor0.col1 + + CAST( 56 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
115
73
87
skipif mysql # not compatible
query I rowsort label-9411
SELECT cor0.col1 + + CAST ( 56 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
115
73
87
query I rowsort
SELECT - - col0 + - 79 * 45 FROM tab2 cor0
----
-3476
-3477
-3548
query I rowsort
SELECT ALL + tab2.col2 + ( + col2 ) AS col1 FROM tab2
----
52
54
76
query I rowsort
SELECT + cor0.col2 * 76 FROM tab1, tab0 AS cor0
----
9 values hashing to 0cfe2a81f38f1a7ef61433888c440e10
query I rowsort
SELECT - col1 + tab2.col2 AS col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT DISTINCT - 63 + col2 FROM tab1 AS cor0
----
-6
-9
33
query I rowsort
SELECT ALL + col2 + - cor0.col1 * + col0 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT + - col2 + - cor0.col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL col0 + + col0 * + col0 FROM tab2 AS cor0
----
56
6162
6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 51 * - cor0.col2 col0 FROM tab2 AS cor0
----
34476
37179
73644
query I rowsort
SELECT DISTINCT + col0 + - col1 * + col1 AS col2 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT ALL + + col0 * col1 + + col0 FROM tab2 cor0
----
1422
224
4680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9423
SELECT - - col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9423
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-9424
SELECT ALL + 16 DIV - cor0.col0 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9424
SELECT ALL + 16 / - cor0.col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + ( col1 ) * + col1 AS col2 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT + - cor0.col1 * + col1 + + cor0.col2 + col0 AS col1 FROM tab0 AS cor0
----
-7339
-8110
-9373
query I rowsort
SELECT ALL - - 38 FROM tab0 AS cor0
----
38
38
38
query I rowsort
SELECT DISTINCT - 23 * col0 FROM tab0 cor0
----
-2047
-552
-805
query I rowsort
SELECT ALL + cor0.col2 + col2 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
152
255
99
query I rowsort
SELECT DISTINCT + col1 * + 20 AS col0 FROM tab0 AS cor0
----
1720
1820
1940
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * + cor0.col2 + col2 + ( col0 ) col0 FROM tab0 cor0
----
1146
37
6895
query I rowsort
SELECT DISTINCT + + 77 * + col0 AS col2 FROM tab1 cor0
----
231
4928
6160
query I rowsort
SELECT 91 + - col2 AS col0 FROM tab2 AS cor0
----
53
64
65
query I rowsort
SELECT DISTINCT + + col2 * 62 * col0 AS col0 FROM tab1 AS cor0
----
10044
226176
476160
query I rowsort
SELECT - 90 + col0 AS col1 FROM tab0 AS cor0
----
-1
-55
-66
query I rowsort
SELECT ALL + col0 * + 80 AS col0 FROM tab1 AS cor0
----
240
5120
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-9437
SELECT DISTINCT 49 DIV 80 AS col2 FROM tab2 cor0
----
0
skipif mysql # not compatible
query I rowsort label-9437
SELECT DISTINCT 49 / 80 AS col2 FROM tab2 cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9438
SELECT - 71 + - 44 + - col0 * CAST( NULL AS DECIMAL ) / + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9438
SELECT - 71 + - 44 + - col0 * CAST ( NULL AS REAL ) / + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 99 + + col1 AS col0 FROM tab0 AS cor0
----
185
190
196
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col2 * col2 col1 FROM tab0 AS cor0
----
-34
1065
6635
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9441
SELECT CAST( col0 AS SIGNED ) + - col0 + + ( - col1 ) FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-9441
SELECT CAST ( col0 AS INTEGER ) + - col0 + + ( - col1 ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + 25 + + ( - col1 ) * 14 FROM tab2 cor0
----
-213
-409
-801
query I rowsort
SELECT 2 FROM tab0 cor0
----
2
2
2
query I rowsort
SELECT DISTINCT ( col0 ) + + 23 AS col1 FROM tab0 cor0
----
112
47
58
query I rowsort
SELECT ALL + col2 * - col1 * 14 AS col1 FROM tab0 AS cor0
----
-104468
-1358
-39732
query I rowsort
SELECT DISTINCT col2 + col2 AS col0 FROM tab0 cor0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 32 col2 FROM tab1 AS cor0
----
-32
-32
-32
query I rowsort
SELECT ALL - - col0 + + cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT + ( + col0 ) * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ( col1 + col1 ) FROM tab2
----
118
34
62
query I rowsort
SELECT col1 * tab2.col2 AS col2 FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-9452
SELECT - col2 DIV + cor0.col0 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9452
SELECT - col2 / + cor0.col0 FROM tab0 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9453
SELECT - - 56 DIV + cor0.col1 AS col1 FROM tab1 cor0
----
2
4
5
skipif mysql # not compatible
query I rowsort label-9453
SELECT - - 56 / + cor0.col1 AS col1 FROM tab1 cor0
----
2
4
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-9454
SELECT 59 * - col1 DIV ( col1 ) FROM tab0 AS cor0
----
-59
-59
-59
skipif mysql # not compatible
query I rowsort label-9454
SELECT 59 * - col1 / ( col1 ) FROM tab0 AS cor0
----
-59
-59
-59
query I rowsort
SELECT ALL + - ( col1 ) * + 35 AS col2 FROM tab0 AS cor0
----
-3010
-3185
-3395
query I rowsort
SELECT + + ( cor0.col0 ) * - col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT col1 * - col2 + col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT col0 + col1 * + col0 AS col2 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT - + col1 * col2 * col2 + - col0 * + col1 FROM tab2 AS cor0
----
-22816
-25891
-44486
query I rowsort
SELECT DISTINCT ( 27 ) + col2 * ( col0 + + col2 ) FROM tab1
----
16923
3105
6924
query I rowsort
SELECT + col2 + col2 + col0 FROM tab1 cor0
----
111
178
272
query I rowsort
SELECT + + col2 * + ( 6 ) AS col1 FROM tab0 AS cor0
----
198
492
6
query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 54 * 69 col1 FROM tab1
----
3729
3790
3806
onlyif mysql # use DIV operator for integer division
query I rowsort label-9465
SELECT DISTINCT col2 * - 18 + col1 DIV col0 FROM tab1
----
-1026
-1728
-964
skipif mysql # not compatible
query I rowsort label-9465
SELECT DISTINCT col2 * - 18 + col1 / col0 FROM tab1
----
-1026
-1728
-964
query I rowsort
SELECT DISTINCT ( col0 ) * - col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + 19 * 60 FROM tab2
----
1140
1140
1140
query I rowsort
SELECT - 28 AS col1 FROM tab0, tab2, tab2 cor0, tab1
----
81 values hashing to 70e92c218433163922867899a16e1269
query I rowsort
SELECT DISTINCT + 30 FROM tab2, tab1 AS cor0
----
30
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9470
SELECT ALL - CAST( col1 AS SIGNED ) AS col0 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-9470
SELECT ALL - CAST ( col1 AS INTEGER ) AS col0 FROM tab1
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9471
SELECT DISTINCT - CAST( - ( col1 ) AS SIGNED ) + + col0 * - col1 * col1 AS col2 FROM tab2
----
-22814
-271459
-6696
skipif mysql # not compatible
query I rowsort label-9471
SELECT DISTINCT - CAST ( - ( col1 ) AS INTEGER ) + + col0 * - col1 * col1 AS col2 FROM tab2
----
-22814
-271459
-6696
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 36 * - col1 AS REAL ) AS col0 FROM tab0
----
-3096
-3276
-3492
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab0 AS cor1, tab0 cor2
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163
query I rowsort
SELECT DISTINCT - 59 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1003
-1829
-3481
query I rowsort
SELECT 13 + 88 - + col2 FROM tab2 AS cor0
----
63
74
75
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 8e88b3a69c24fc01553b0c32bf7748d0
query I rowsort
SELECT + 60 * + col1 AS col0 FROM tab0
----
5160
5460
5820
query I rowsort
SELECT DISTINCT col0 + ( col1 ) FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT - 6 * col0 - - col2 FROM tab1 AS cor0
----
-327
-384
36
query I rowsort
SELECT DISTINCT 56 FROM tab1, tab0 AS cor0
----
56
query I rowsort
SELECT DISTINCT - - col0 + + 74 FROM tab0 AS cor0
----
109
163
98
query I rowsort
SELECT ALL + - cor0.col0 - 57 FROM tab0 AS cor0
----
-146
-81
-92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9483
SELECT + + col1 * 70 + col0 * CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-1812
1981
2102
skipif mysql # not compatible
query I rowsort label-9483
SELECT + + col1 * 70 + col0 * CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-1812
1981
2102
query I rowsort
SELECT DISTINCT + 69 FROM tab2, tab2 AS cor0
----
69
query I rowsort
SELECT ALL - col0 + - ( col1 * + col0 ) FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT - ( tab2.col0 + ( - 54 ) ) FROM tab2
----
-24
-25
47
query I rowsort
SELECT ALL col0 * col2 - col1 AS col1 FROM tab2
----
158
1969
2985
query I rowsort
SELECT cor1.col1 FROM tab2, tab1, tab2 cor0, tab1 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query I rowsort
SELECT + tab2.col0 + 65 * col0 FROM tab2
----
462
5148
5214
query I rowsort
SELECT col0 * col1 * 89 AS col0 FROM tab2
----
119527
19313
409578
onlyif mysql # use DIV operator for integer division
query I rowsort label-9491
SELECT DISTINCT col1 DIV col1 AS col0 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-9491
SELECT DISTINCT col1 / col1 AS col0 FROM tab1
----
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9492
SELECT - col0 * CAST( NULL AS SIGNED ) * + col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9492
SELECT - col0 * CAST ( NULL AS INTEGER ) * + col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + + cor0.col2 + ( + ( - col0 ) ) FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + ( + 0 ) AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL 12 * tab0.col1 * col2 FROM tab0
----
1164
34056
89544
query I rowsort
SELECT 98 AS col2 FROM tab2
----
98
98
98
query I rowsort
SELECT col2 * - 17 * col0 FROM tab1
----
-130560
-2754
-62016
query I rowsort
SELECT 48 * + col1 AS col0 FROM tab0
----
4128
4368
4656
query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - 24 * + 70 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to b94bff7dbb80752f118ff108d45f3de5
query I rowsort
SELECT - - 95 FROM tab1 cor0
----
95
95
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - - col0 + + col2 * col0 AS col1 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT cor0.col0 + + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT col0 + + 46 AS col2 FROM tab1
----
110
126
49
query I rowsort
SELECT + 86 AS col1 FROM tab0 AS cor0
----
86
86
86
query I rowsort
SELECT 36 AS col1 FROM tab0 AS cor0
----
36
36
36
query I rowsort
SELECT DISTINCT 73 + col2 FROM tab0
----
106
155
74
query I rowsort
SELECT 28 + col2 FROM tab0
----
110
29
61
query I rowsort
SELECT + tab1.col0 + - tab1.col2 AS col1 FROM tab1
----
-16
-51
7
query I rowsort
SELECT + col2 * col1 + + 25 FROM tab0
----
122
2863
7487
query I rowsort
SELECT col0 * tab0.col1 + col2 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT + 6 - col0 * - ( - col0 ) FROM tab0
----
-1219
-570
-7915
query I rowsort
SELECT DISTINCT tab0.col1 + - 33 + cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to b9f009c0d03e7d68ebc491d26daa36e4
query I rowsort
SELECT DISTINCT - col1 * col1 AS col0 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + 36 AS col1 FROM tab0 AS cor0
----
36
36
36
query I rowsort
SELECT ALL ( - col2 ) + - 10 * + 26 AS col0 FROM tab2 AS cor0
----
-286
-287
-298
query I rowsort
SELECT ALL + col1 * - cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT cor0.col1 * + 43 AS col1 FROM tab1, tab0 cor0
----
3698
3913
4171
query I rowsort
SELECT + ( + cor1.col2 ) AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * col1 col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - col2 * col1 + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9523
SELECT + - col0 * CAST( 59 AS SIGNED ) FROM tab2 AS cor0
----
-413
-4602
-4661
skipif mysql # not compatible
query I rowsort label-9523
SELECT + - col0 * CAST ( 59 AS INTEGER ) FROM tab2 AS cor0
----
-413
-4602
-4661
query I rowsort
SELECT ALL + col2 * col2 * - cor0.col2 - - col2 * + col0 FROM tab2 AS cor0
----
-15548
-19494
-51870
query I rowsort
SELECT ALL + + col2 * - ( - col0 ) AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col2 + col0 * + col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT col1 * + col2 + + col0 * - col1 FROM tab1 AS cor0
----
-70
1326
208
query I rowsort
SELECT - + col0 + 77 FROM tab1 AS cor0
----
-3
13
74
query I rowsort
SELECT DISTINCT - - col2 + col1 * + col0 AS col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL + col2 * cor0.col0 - + col1 AS col2 FROM tab0 AS cor0
----
-62
706
7207
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9531
SELECT DISTINCT - col1 * - CAST( 81 AS SIGNED ) FROM tab0 cor0
----
6966
7371
7857
skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT - col1 * - CAST ( 81 AS INTEGER ) FROM tab0 cor0
----
6966
7371
7857
query I rowsort
SELECT ALL ( + col2 * tab1.col2 ) FROM tab1
----
2916
3249
9216
query I rowsort
SELECT - 81 * - col0 FROM tab0
----
1944
2835
7209
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + ( - col0 ) * - col2 col2 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT + col0 * + col0 AS col1 FROM tab1 cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9536
SELECT ALL + + col2 + + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL + + col2 + + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT col2 * + 67 AS col0 FROM tab1 AS cor0
----
3618
3819
6432
onlyif mysql # use DIV operator for integer division
query I rowsort label-9538
SELECT + ( + col0 ) DIV + col0 - - col1 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-9538
SELECT + ( + col0 ) / + col0 - - col1 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT + - 61 * - col1 FROM tab1 AS cor0
----
1586
610
793
query I rowsort
SELECT DISTINCT + ( 25 ) + + col0 FROM tab2 AS cor0
----
103
104
32
query I rowsort
SELECT - - 34 + + ( - col2 ) * + col1 * - col1 + - cor0.col1 * + col2 FROM tab1 AS cor0
----
15010
35134
5164
query I rowsort
SELECT ALL + ( 37 ) + col1 AS col1 FROM tab0 AS cor0
----
123
128
134
onlyif mysql # use DIV operator for integer division
query I rowsort label-9543
SELECT col1 DIV - 2 FROM tab0
----
-43
-45
-48
skipif mysql # not compatible
query I rowsort label-9543
SELECT col1 / - 2 FROM tab0
----
-43
-45
-48
query I rowsort
SELECT + tab2.col2 * - 36 FROM tab2
----
-1368
-936
-972
onlyif mysql # use DIV operator for integer division
query I rowsort label-9545
SELECT + col0 * col2 DIV - col1 AS col0 FROM tab2
----
-176
-34
-6
skipif mysql # not compatible
query I rowsort label-9545
SELECT + col0 * col2 / - col1 AS col0 FROM tab2
----
-176
-34
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9546
SELECT ALL col0 DIV 6 AS col1 FROM tab0
----
14
4
5
skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL col0 / 6 AS col1 FROM tab0
----
14
4
5
query I rowsort
SELECT - + ( - col0 ) * col2 + + 9 AS col1 FROM tab2 AS cor0
----
198
2037
3011
query I rowsort
SELECT DISTINCT - - 67 * + col2 * col2 FROM tab0 AS cor0
----
450508
67
72963
query I rowsort
SELECT DISTINCT col1 * col2 + - col1 + - col1 AS col2 FROM tab1 AS cor0
----
1222
1352
550
query I rowsort
SELECT DISTINCT - cor0.col2 * 95 + + col1 FROM tab2 AS cor0
----
-2411
-2534
-3593
query I rowsort
SELECT - 50 * - 55 AS col2 FROM tab0
----
2750
2750
2750
query I rowsort
SELECT 63 AS col2 FROM tab0 AS cor0
----
63
63
63
query I rowsort
SELECT - 92 * - col0 AS col1 FROM tab0 AS cor0
----
2208
3220
8188
query I rowsort
SELECT DISTINCT + ( + col0 ) * + col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT col1 * - col2 - col2 AS col2 FROM tab2
----
-1560
-684
-864
query I rowsort
SELECT ALL tab2.col2 + ( - tab2.col2 ) * + col2 FROM tab2
----
-1406
-650
-702
query I rowsort
SELECT col0 + + col1 + col0 AS col1 FROM tab1
----
138
173
32
query I rowsort
SELECT ALL col0 + 27 AS col0 FROM tab1
----
107
30
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-9559
SELECT + tab2.col2 DIV col1 + + col2 * - col2 AS col2 FROM tab2
----
-1442
-676
-729
skipif mysql # not compatible
query I rowsort label-9559
SELECT + tab2.col2 / col1 + + col2 * - col2 AS col2 FROM tab2
----
-1442
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-9560
SELECT ALL col0 DIV col2 + + col0 FROM tab1
----
3
65
80
skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL col0 / col2 + + col0 FROM tab1
----
3
65
80
query I rowsort
SELECT - col0 * col2 + + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT ALL + col1 + - col1 * tab1.col1 * + col1 AS col2 FROM tab1
----
-17550
-2184
-990
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9563
SELECT col1 * + CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9563
SELECT col1 * + CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 * ( 17 ) col1 FROM tab2
----
119
1326
1343
query I rowsort
SELECT DISTINCT + tab0.col1 FROM tab0, tab2 cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9
query I rowsort
SELECT col1 * + col2 * col2 AS col2 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT + col0 * + 44 * + col0 FROM tab1
----
180224
281600
396
query I rowsort
SELECT DISTINCT + col1 + + 4 FROM tab0
----
101
90
95
query I rowsort
SELECT + 84 FROM tab1, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT DISTINCT 79 AS col0 FROM tab0
----
79
query I rowsort
SELECT ALL + - ( col2 ) - col1 AS col0 FROM tab0 cor0
----
-119
-173
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9573
SELECT ALL - CAST( - col1 AS SIGNED ) + col1 * col0 FROM tab2 AS cor0
----
1360
248
4661
skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL - CAST ( - col1 AS INTEGER ) + col1 * col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT - + ( - 77 ) AS col1 FROM tab2 AS cor0
----
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9575
SELECT ALL CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 61 col0 FROM tab2 AS cor0
----
-61
query I rowsort
SELECT ALL col1 + col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT ALL + - ( + col0 ) + col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - cor0.col1 + col1 * col1 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT ALL - cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9581
SELECT ALL + 66 * col2 + col2 * + CAST( NULL AS DECIMAL ) * - col1 + col2 * 81 * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL + 66 * col2 + col2 * + CAST ( NULL AS REAL ) * - col1 + col2 * 81 * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( col0 ) * cor0.col0 AS col2 FROM tab1 cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 col0 FROM tab1 AS cor0
----
-96
query I rowsort
SELECT ALL 95 + cor0.col2 AS col0 FROM tab1 AS cor0
----
149
152
191
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 col1 FROM tab0 AS cor0
----
34
34
34
query I rowsort
SELECT 99 * - cor0.col1 FROM tab0 AS cor0
----
-8514
-9009
-9603
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9587
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 + - cor0.col2 col1 FROM tab2 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9587
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 + - cor0.col2 col1 FROM tab2 cor0
----
NULL
query I rowsort
SELECT DISTINCT + 70 * 83 + - col0 AS col0 FROM tab2 AS cor0
----
5731
5732
5803
query I rowsort
SELECT ALL + ( - col2 ) - - col1 * col0 AS col1 FROM tab0 cor0
----
2031
3394
8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-9590
SELECT - 49 * - tab1.col0 * col1 + col2 DIV col0 + + col0 * - col0 AS col1 FROM tab1
----
27264
3831
44561
skipif mysql # not compatible
query I rowsort label-9590
SELECT - 49 * - tab1.col0 * col1 + col2 / col0 + + col0 * - col0 AS col1 FROM tab1
----
27264
3831
44561
query I rowsort
SELECT DISTINCT - col2 - + col0 AS col0 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT - 86 * col2 FROM tab0 AS cor0
----
-2838
-7052
-86
query I rowsort
SELECT ALL col2 * cor0.col0 - col2 FROM tab1 cor0
----
108
3591
7584
query I rowsort
SELECT ALL + - col0 - - col2 FROM tab0 cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9595
SELECT - col1 DIV col0 - - cor0.col1 AS col1 FROM tab2 cor0
----
17
27
59
skipif mysql # not compatible
query I rowsort label-9595
SELECT - col1 / col0 - - cor0.col1 AS col1 FROM tab2 cor0
----
17
27
59
query I rowsort
SELECT - col0 + col1 * - col1 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT 63 - col2 FROM tab1 AS cor0
----
-33
6
9
query I rowsort
SELECT ALL + col2 * col1 + col0 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-9599
SELECT - col0 + - col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
-3
-58
-74
skipif mysql # not compatible
query I rowsort label-9599
SELECT - col0 + - col0 / - col1 AS col1 FROM tab1 AS cor0
----
-3
-58
-74
query I rowsort
SELECT DISTINCT - + col0 * col0 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL - + cor0.col0 * - 53 - col1 FROM tab1 AS cor0
----
133
3382
4227
query I rowsort
SELECT ALL + col0 * - ( - col0 ) FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9603
SELECT DISTINCT + cor0.col1 DIV + ( 71 ) + col2 col2 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9603
SELECT DISTINCT + cor0.col1 / + ( 71 ) + col2 col2 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9604
SELECT DISTINCT + col0 + + CAST( 74 AS SIGNED ) FROM tab1 AS cor0
----
138
154
77
skipif mysql # not compatible
query I rowsort label-9604
SELECT DISTINCT + col0 + + CAST ( 74 AS INTEGER ) FROM tab1 AS cor0
----
138
154
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-9605
SELECT DISTINCT - + cor0.col1 * col1 - col0 DIV - col1 AS col0 FROM tab0 cor0
----
-7396
-8281
-9409
skipif mysql # not compatible
query I rowsort label-9605
SELECT DISTINCT - + cor0.col1 * col1 - col0 / - col1 AS col0 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT + + 96 AS col0 FROM tab1, tab0 AS cor0
----
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9607
SELECT DISTINCT - col0 * - CAST( col2 AS SIGNED ) FROM tab2 cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-9607
SELECT DISTINCT - col0 * - CAST ( col2 AS INTEGER ) FROM tab2 cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9608
SELECT + CAST( NULL AS SIGNED ) * cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9608
SELECT + CAST ( NULL AS INTEGER ) * cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - col0 + + col1 * + col1 + col2 AS col2 FROM tab2 AS cor0
----
248
3429
981
query I rowsort
SELECT - + cor0.col1 * col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-9612
SELECT - col1 * + col1 + + col2 DIV + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif mysql # not compatible
query I rowsort label-9612
SELECT - col1 * + col1 + + col2 / + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL + - col0 + ( + col1 ) * col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT + col0 * - col2 + - col0 + + col1 FROM tab1 AS cor0
----
-139
-3702
-7747
query I rowsort
SELECT ALL + col2 * 52 AS col2 FROM tab0 AS cor0
----
1716
4264
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-9616
SELECT DISTINCT - col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9616
SELECT DISTINCT - col0 / + col1 AS col0 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9617
SELECT col1 DIV CAST( + col1 + col0 * + ( ( col0 ) ) AS SIGNED ) FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9617
SELECT col1 / CAST ( + col1 + col0 * + ( ( col0 ) ) AS INTEGER ) FROM tab0
----
0
0
0
query I rowsort
SELECT + - col1 + + col2 AS col0 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9619
SELECT ALL - - col2 DIV col1 + col0 * col1 FROM tab1 AS cor0
----
1047
645
80
skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL - - col2 / col1 + col0 * col1 FROM tab1 AS cor0
----
1047
645
80
query I rowsort
SELECT + + col2 * col1 + + col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - col0 + col0 + - col2 * cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + 23 AS col2 FROM tab2 AS cor0
----
23
23
23
query I rowsort
SELECT - - ( col2 ) * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT 29 FROM tab1, tab1 AS cor0
----
29
query I rowsort
SELECT ALL + ( 38 ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT + col0 + ( col0 ) * + col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT - col0 + - 30 FROM tab1
----
-110
-33
-94
query I rowsort
SELECT ALL 26 FROM tab0, tab2 cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT + 60 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query I rowsort
SELECT ALL + cor0.col2 + col1 AS col0 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT + 68 AS col0 FROM tab2 AS cor0
----
68
68
68
query I rowsort
SELECT ALL col2 * - col2 + + 9 * + col1 FROM tab2
----
-1291
-145
-450
query I rowsort
SELECT ALL - 45 * - col2 AS col1 FROM tab0
----
1485
3690
45
query I rowsort
SELECT - + col1 + - cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT ALL 90 * - col1 FROM tab2
----
-1530
-2790
-5310
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9636
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-9636
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT 88 FROM tab2 AS cor0
----
88
query I rowsort
SELECT - cor0.col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT col1 * + col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT - + col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + + 61 * + col2 FROM tab2 AS cor0
----
1586
1647
2318
onlyif mysql # use DIV operator for integer division
query I rowsort label-9642
SELECT col2 DIV col2 AS col1 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9642
SELECT col2 / col2 AS col1 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT ALL + - 40 FROM tab1 AS cor0
----
-40
-40
-40
query I rowsort
SELECT col2 * col1 + + 7 FROM tab0 AS cor0
----
104
2845
7469
query I rowsort
SELECT DISTINCT + col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9646
SELECT 65 * col1 + CAST( 27 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1717
677
872
skipif mysql # not compatible
query I rowsort label-9646
SELECT 65 * col1 + CAST ( 27 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1717
677
872
query I rowsort
SELECT + col0 * + cor0.col2 + + col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT - col1 + - col2 * 49 AS col0 FROM tab2 AS cor0
----
-1333
-1354
-1879
query I rowsort
SELECT ALL col1 * col1 + + col2 + - col2 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT cor0.col0 + 92 AS col0 FROM tab1 AS cor0
----
156
172
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-9651
SELECT DISTINCT - - cor0.col2 + + 1 * - 70 DIV + col0 AS col0 FROM tab1 AS cor0
----
31
56
96
skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT - - cor0.col2 + + 1 * - 70 / + col0 AS col0 FROM tab1 AS cor0
----
31
56
96
query I rowsort
SELECT DISTINCT - - col1 - + col1 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT col2 * - ( + ( + col2 ) + col1 ) FROM tab1 AS cor0
----
-10464
-3819
-4320
query I rowsort
SELECT - ( col1 ) * col0 + col1 AS col1 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT - col1 * col0 AS col1 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9656
SELECT CAST( NULL AS SIGNED ) / + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9656
SELECT CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + tab2.col2 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9658
SELECT DISTINCT CAST( - col1 AS SIGNED ) * - col2 FROM tab0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * - col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL col1 + 26 + col1 FROM tab0
----
198
208
220
query I rowsort
SELECT ALL col2 + + col0 + col2 FROM tab0
----
253
37
90
query I rowsort
SELECT DISTINCT col0 + cor0.col2 * 88 AS col0 FROM tab0 AS cor0
----
123
2928
7305
query I rowsort
SELECT ALL 57 + - cor0.col0 * col2 AS col0 FROM tab2 AS cor0
----
-132
-1971
-2945
query I rowsort
SELECT ALL 78 * 81 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 4c34a3448a6afff7028f7f57b059fe68
query I rowsort
SELECT 6 * col0 AS col1 FROM tab1
----
18
384
480
onlyif mysql # use DIV operator for integer division
query I rowsort label-9665
SELECT DISTINCT tab2.col0 DIV + col1 AS col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-9665
SELECT DISTINCT tab2.col0 / + col1 AS col1 FROM tab2
----
0
1
4
query I rowsort
SELECT col0 * tab2.col1 AS col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + 38 * - col0 AS col1 FROM tab0
----
-1330
-3382
-912
query I rowsort
SELECT ALL 21 * col1 + col2 + ( col2 * + 68 + - col1 * col2 ) FROM tab0
----
107
1245
2009
query I rowsort
SELECT - 99 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 761f5f1a166a00db99360141565a85da
query I rowsort
SELECT DISTINCT + col1 * - col1 + - col0 FROM tab1
----
-164
-249
-679
query I rowsort
SELECT + 41 * col0 FROM tab2
----
287
3198
3239
query I rowsort
SELECT ALL + + col0 * col2 - cor0.col2 AS col1 FROM tab0 AS cor0
----
34
7216
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-9673
SELECT ALL - + cor0.col2 * col1 DIV - ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL - + cor0.col2 * col1 / - ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + 99 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
125
126
137
query I rowsort
SELECT DISTINCT - + 48 * cor0.col2 FROM tab1 cor0
----
-2592
-2736
-4608
query I rowsort
SELECT ALL + cor0.col1 * cor0.col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + col0 + col1 * + cor0.col1 FROM tab0 AS cor0
----
7420
8370
9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-9678
SELECT - col0 DIV 33 + col1 col2 FROM tab2
----
15
31
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9678
SELECT - col0 / 33 + col1 col2 FROM tab2
----
15
31
57
query I rowsort
SELECT - cor0.col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9680
SELECT + col2 * col0 DIV 97 FROM tab1
----
1
37
79
skipif mysql # not compatible
query I rowsort label-9680
SELECT + col2 * col0 / 97 FROM tab1
----
1
37
79
query I rowsort
SELECT 17 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT + col2 + 98 * col2 AS col2 FROM tab0 cor0
----
3267
8118
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-9683
SELECT ALL - col0 * - col1 + col2 DIV + col0 FROM tab2 cor0
----
1343
220
4602
skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL - col0 * - col1 + col2 / + col0 FROM tab2 cor0
----
1343
220
4602
query I rowsort
SELECT col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL + - col1 + - col0 * + col0 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT DISTINCT - + 67 * col2 FROM tab1 AS cor0
----
-3618
-3819
-6432
onlyif mysql # use DIV operator for integer division
query I rowsort label-9687
SELECT DISTINCT col1 + + col2 DIV - col1 AS col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-9687
SELECT DISTINCT col1 + + col2 / - col1 AS col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( col1 AS REAL ) FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT - ( 40 ) + col1 FROM tab2 AS cor0
----
-23
-9
19
query I rowsort
SELECT - ( col1 ) * col0 + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1054
-1989
-6136
query I rowsort
SELECT DISTINCT + + 18 * col2 + col1 * - col0 FROM tab1 AS cor0
----
386
688
894
query I rowsort
SELECT DISTINCT - col2 - 26 AS col2 FROM tab1 AS cor0
----
-122
-80
-83
query I rowsort
SELECT - col2 * cor0.col0 * col1 + ( + cor0.col0 ) * col1 AS col0 FROM tab2 AS cor0
----
-115050
-49691
-5642
query I rowsort
SELECT DISTINCT - + col0 * col2 * + col2 AS col1 FROM tab1 AS cor0
----
-207936
-737280
-8748
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9695
SELECT ALL - + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL - + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( col0 ) + col2 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - 34 + col1 - - cor0.col2 AS col2 FROM tab2 AS cor0
----
21
24
51
query I rowsort
SELECT + ( col2 ) - + col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT 36 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - 17 * col0 * - cor0.col0 col1 FROM tab0 AS cor0
----
-134575
-20824
-9759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 23 - - 18 col0 FROM tab1 cor0
----
248
317
616
query I rowsort
SELECT + col0 * 51 + col2 AS col1 FROM tab2 AS cor0
----
384
4004
4067
onlyif mysql # use DIV operator for integer division
query I rowsort label-9703
SELECT ALL col2 * col1 DIV 2 AS col0 FROM tab1 AS cor0
----
285
624
702
skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL col2 * col1 / 2 AS col0 FROM tab1 AS cor0
----
285
624
702
query I rowsort
SELECT DISTINCT cor0.col2 * col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - + col2 + col2 * + col1 AS col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT ALL tab1.col2 + - col0 FROM tab1
----
-7
16
51
query I rowsort
SELECT + tab2.col0 + col0 FROM tab2
----
14
156
158
query I rowsort
SELECT - 73 * 89 FROM tab1 AS cor0
----
-6497
-6497
-6497
query I rowsort
SELECT tab0.col0 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT - col0 * + 41 FROM tab1
----
-123
-2624
-3280
query I rowsort
SELECT DISTINCT + 50 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
50
query I rowsort
SELECT - col0 * col0 + + tab2.col0 + + col0 AS col2 FROM tab2
----
-35
-5928
-6083
query I rowsort
SELECT DISTINCT tab2.col1 + - tab2.col2 * tab2.col2 FROM tab2
----
-1427
-617
-698
query I rowsort
SELECT col2 * + 72 + col1 AS col2 FROM tab1
----
3914
4114
6925
query I rowsort
SELECT + 44 AS col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
query I rowsort
SELECT - - 13 * cor0.col0 AS col1 FROM tab2 AS cor0
----
1014
1027
91
query I rowsort
SELECT + 40 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1320
3280
40
query I rowsort
SELECT ALL cor0.col0 + + cor0.col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - + cor0.col1 * + col1 * cor0.col0 FROM tab0 AS cor0
----
-177504
-329315
-737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-9720
SELECT - - col2 + - col0 DIV - ( + col0 ) FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-9720
SELECT - - col2 + - col0 / - ( + col0 ) FROM tab0 AS cor0
----
2
34
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9721
SELECT CAST( NULL AS SIGNED ) * 86 - + col1 * - 60 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9721
SELECT CAST ( NULL AS INTEGER ) * 86 - + col1 * - 60 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9722
SELECT - CAST( col0 AS SIGNED ) AS col2 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-9722
SELECT - CAST ( col0 AS INTEGER ) AS col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT - cor1.col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT ALL - - ( + col2 ) + + ( col1 * + col1 ) AS col1 FROM tab0 AS cor0
----
7429
8363
9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-9725
SELECT ALL + - 68 DIV col0 + col1 FROM tab1 AS cor0
----
13
4
9
skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL + - 68 / col0 + col1 FROM tab1 AS cor0
----
13
4
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9726
SELECT col1 DIV + col2 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9726
SELECT col1 / + col2 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - ( + col0 ) * - col2 + col2 + col2 * - ( 79 ) FROM tab0
----
-1782
-43
902
query I rowsort
SELECT ALL + - ( col1 ) + + 68 AS col2 FROM tab0 AS cor0
----
-18
-23
-29
onlyif mysql # use DIV operator for integer division
query I rowsort label-9729
SELECT ALL + + col1 DIV - col1 + + ( cor0.col2 + - col2 ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL + + col1 / - col1 + + ( cor0.col2 + - col2 ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + 29 AS col2 FROM tab1 AS cor0
----
29
29
29
query I rowsort
SELECT DISTINCT - cor0.col1 + col1 * + 79 AS col1 FROM tab1 AS cor0
----
1014
2028
780
query I rowsort
SELECT col1 + - col2 AS col1 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT ALL ( tab0.col0 * col0 ) FROM tab0
----
1225
576
7921
query I rowsort
SELECT col0 - + 43 FROM tab0 AS cor0
----
-19
-8
46
query I rowsort
SELECT + - col0 * + cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-9736
SELECT ALL col0 * ( col0 + col2 ) DIV 93 AS col2 FROM tab0
----
13
14
163
skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL col0 * ( col0 + col2 ) / 93 AS col2 FROM tab0
----
13
14
163
onlyif mysql # use DIV operator for integer division
query I rowsort label-9737
SELECT col0 DIV ( + col0 ) FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9737
SELECT col0 / ( + col0 ) FROM tab2
----
1
1
1
query I rowsort
SELECT - + col2 + - 30 * - ( col0 ) AS col0 FROM tab2 AS cor0
----
183
2314
2332
query I rowsort
SELECT + col2 - col0 FROM tab0 cor0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 * col0 col0 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT - col2 * + ( col0 ) - + col1 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT - + col2 - col1 AS col1 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT ALL + 46 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9744
SELECT - CAST( NULL AS SIGNED ) * + col1 + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9744
SELECT - CAST ( NULL AS INTEGER ) * + col1 + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - 8 AS col2 FROM tab1 AS cor0
----
8
8
8
query I rowsort
SELECT ALL - 91 * + col1 + col2 AS col1 FROM tab2 AS cor0
----
-1509
-2794
-5343
query I rowsort
SELECT DISTINCT + + col2 * - 63 AS col2 FROM tab2 AS cor0
----
-1638
-1701
-2394
query I rowsort
SELECT - + col2 + cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT DISTINCT + cor0.col1 * col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL 32 * cor0.col1 FROM tab2 AS cor0
----
1888
544
992
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - ( - col0 ) col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT 47 FROM tab2, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT DISTINCT 5 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
5
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1, tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - 44 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
query I rowsort
SELECT - col2 * 69 AS col2 FROM tab1 AS cor0
----
-3726
-3933
-6624
query I rowsort
SELECT col1 * + col1 + cor0.col1 * col1 * - ( col2 * col1 + 16 * 92 ) FROM tab1 AS cor0
----
-1943500
-204100
-459511
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 + ( - col1 ) col2 FROM tab0 AS cor0
----
-27
-38
87
query I rowsort
SELECT - col0 + - 24 FROM tab1 AS cor0
----
-104
-27
-88
query I rowsort
SELECT ALL 22 + - 59 FROM tab1 AS cor0
----
-37
-37
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT - + 46 FROM tab2 AS cor0
----
-46
-46
-46
query I rowsort
SELECT ( cor0.col0 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT col2 * - ( tab0.col1 ) * - col1 AS col0 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT ALL - - 72 AS col0 FROM tab2 AS cor0
----
72
72
72
query I rowsort
SELECT DISTINCT ( - col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + - 31 * + col1 - + ( - ( col1 ) ) AS col2 FROM tab0 AS cor0
----
-2580
-2730
-2910
query I rowsort
SELECT + col2 * col1 - 6 FROM tab1 AS cor0
----
1242
1398
564
query I rowsort
SELECT + col1 + + cor0.col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT 14 * + col0 AS col2 FROM tab0 AS cor0
----
1246
336
490
query I rowsort
SELECT cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
onlyif mysql # use DIV operator for integer division
query I rowsort label-9772
SELECT - + col0 DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-9772
SELECT - + col0 / col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT + 78 FROM tab1, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT ALL col1 * 35 FROM tab0 AS cor0
----
3010
3185
3395
query I rowsort
SELECT - 23 AS col1 FROM tab1
----
-23
-23
-23
query I rowsort
SELECT ALL - col1 * 49 * + col1 - col0 FROM tab1 AS cor0
----
-33127
-4964
-8361
query I rowsort
SELECT - col0 - + col0 AS col2 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT DISTINCT + 10 * + col2 AS col2 FROM tab0
----
10
330
820
query I rowsort
SELECT ALL - 29 AS col2 FROM tab0
----
-29
-29
-29
query I rowsort
SELECT DISTINCT ( + tab2.col2 ) FROM tab2, tab0, tab1 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - + col2 * cor0.col2 + 8 FROM tab0 AS cor0
----
-1081
-6716
7
query I rowsort
SELECT - col2 * ( ( col1 ) ) - - 71 FROM tab1 AS cor0
----
-1177
-1333
-499
query I rowsort
SELECT DISTINCT col1 * + 87 FROM tab1 AS cor0
----
1131
2262
870
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9784
SELECT ALL CAST( NULL AS SIGNED ) * ( - cor0.col1 ) AS col0 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL CAST ( NULL AS INTEGER ) * ( - cor0.col1 ) AS col0 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + col0 * 70 * - tab2.col1 AS col2 FROM tab2
----
-15190
-322140
-94010
query I rowsort
SELECT DISTINCT + + ( - ( col0 ) ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + col0 + tab1.col2 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT + 46 AS col1 FROM tab2, tab0 AS cor0
----
46
query I rowsort
SELECT ALL col2 - 9 * - col0 AS col2 FROM tab0
----
249
316
883
query I rowsort
SELECT DISTINCT tab2.col0 * - col2 + col0 - - col2 * ( + col1 ) AS col2 FROM tab2
----
-2277
-416
655
query I rowsort
SELECT DISTINCT 71 FROM tab2, tab0 AS cor0
----
71
query I rowsort
SELECT + cor0.col1 + + ( + col2 ) * col1 - - cor0.col0 AS col2 FROM tab0 AS cor0
----
229
2948
7642
query I rowsort
SELECT ALL cor0.col1 + col2 AS col1 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL + col1 * + ( col0 ) + + col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT ALL col1 + + 80 + col1 * + col2 * + col0 AS col2 FROM tab0
----
3572
664289
68278
onlyif mysql # use DIV operator for integer division
query I rowsort label-9796
SELECT ALL col2 + ( col2 + col1 ) DIV + tab0.col2 AS col0 FROM tab0
----
36
84
99
skipif mysql # not compatible
query I rowsort label-9796
SELECT ALL col2 + ( col2 + col1 ) / + tab0.col2 AS col0 FROM tab0
----
36
84
99
query I rowsort
SELECT DISTINCT + col1 + - col2 * 64 AS col0 FROM tab1
----
-3430
-3638
-6131
onlyif mysql # use DIV operator for integer division
query I rowsort label-9798
SELECT ALL + 2 + + col2 DIV 18 FROM tab2 AS cor0
----
3
3
4
skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL + 2 + + col2 / 18 FROM tab2 AS cor0
----
3
3
4
query I rowsort
SELECT DISTINCT ( col0 ) + - col0 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + cor0.col2 * + col0 + - 68 AS col1 FROM tab1 AS cor0
----
3580
7612
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 + col2 col2 FROM tab2 AS cor0
----
82
83
94
query I rowsort
SELECT 84 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9803
SELECT ALL CAST( - 84 AS SIGNED ) AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4
skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL CAST ( - 84 AS INTEGER ) AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4
query I rowsort
SELECT DISTINCT - ( col2 ) * - col0 * 8 AS col1 FROM tab0
----
280
58384
6336
query I rowsort
SELECT + - col0 * + col2 + + ( + col1 ) FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT - col2 * - col1 + + ( - col1 ) FROM tab2
----
1475
629
806
query I rowsort
SELECT ALL + 1 * + col1 * col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL + cor0.col1 - col0 * - 11 FROM tab2 AS cor0
----
108
886
917
query I rowsort
SELECT DISTINCT + ( - cor0.col1 ) - col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT ALL - + ( + cor0.col0 ) * col0 + + ( + col0 ) FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT ALL - 39 * col1 * + ( 64 ) + + col2 * - col1 FROM tab2 AS cor0
----
-148798
-43078
-78213
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL col2 + + col1 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT 49 * cor0.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 44c333e6d83e71e6e5b17720a5120882
query I rowsort
SELECT ALL + col2 * - 33 AS col1 FROM tab1 AS cor0
----
-1782
-1881
-3168
query I rowsort
SELECT ALL 55 + + col0 FROM tab0
----
144
79
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9817
SELECT - CAST( NULL AS SIGNED ) * ( - col2 ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9817
SELECT - CAST ( NULL AS INTEGER ) * ( - col2 ) FROM tab1
----
NULL
NULL
NULL
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9819
SELECT DISTINCT + 3 + + cor0.col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
2
skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT + 3 + + cor0.col1 / - col1 AS col0 FROM tab2 AS cor0
----
2
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 58b53d9f2c5d79e6fe94b4a97272440e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9821
SELECT + CAST( + col0 AS SIGNED ) * + col0 * col0 AS col2 FROM tab0 AS cor0
----
13824
42875
704969
skipif mysql # not compatible
query I rowsort label-9821
SELECT + CAST ( + col0 AS INTEGER ) * + col0 * col0 AS col2 FROM tab0 AS cor0
----
13824
42875
704969
onlyif mysql # use DIV operator for integer division
query I rowsort label-9822
SELECT - - col0 + - col2 * col1 DIV 42 AS col1 FROM tab0 cor0
----
-43
-88
33
skipif mysql # not compatible
query I rowsort label-9822
SELECT - - col0 + - col2 * col1 / 42 AS col1 FROM tab0 cor0
----
-43
-88
33
query I rowsort
SELECT 43 * + 11 * col1 AS col1 FROM tab0 AS cor0
----
40678
43043
45881
query I rowsort
SELECT ALL + 16 AS col1 FROM tab1 cor0
----
16
16
16
query I rowsort
SELECT - - col2 * + col2 - + 90 AS col1 FROM tab1 AS cor0
----
2826
3159
9126
query I rowsort
SELECT - 6 * - col2 AS col2 FROM tab1 AS cor0
----
324
342
576
query I rowsort
SELECT + col2 + col0 * + col0 AS col2 FROM tab1 cor0
----
4153
63
6496
query I rowsort
SELECT ALL - 24 + col0 AS col1 FROM tab1 AS cor0
----
-21
40
56
query I rowsort
SELECT ALL + 23 + cor0.col1 AS col0 FROM tab0 AS cor0
----
109
114
120
query I rowsort
SELECT DISTINCT + col1 - col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL - ( cor0.col1 ) AS col2 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT col1 * col1 - - ( - col1 ) AS col1 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT DISTINCT - col0 * - col2 + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL 40 + col1 AS col2 FROM tab0 AS cor0
----
126
131
137
query I rowsort
SELECT col2 + + col0 * ( + col1 ) AS col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT 47 * + col2 FROM tab0 AS cor0
----
1551
3854
47
query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab1, tab0, tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT - ( + cor0.col0 ) AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT ALL tab1.col0 + tab1.col1 + col0 AS col2 FROM tab1
----
138
173
32
query I rowsort
SELECT - - 92 + col1 AS col1 FROM tab2 AS cor0
----
109
123
151
onlyif mysql # use DIV operator for integer division
query I rowsort label-9841
SELECT tab2.col0 DIV col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-9841
SELECT tab2.col0 / col1 FROM tab2
----
0
1
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-9842
SELECT ALL ( + col1 ) + + col1 + - col2 DIV tab1.col0 AS col0 FROM tab1
----
20
25
34
skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL ( + col1 ) + + col1 + - col2 / tab1.col0 AS col0 FROM tab1
----
20
25
34
query I rowsort
SELECT ALL - 29 + col2 AS col2 FROM tab2
----
-2
-3
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9844
SELECT - col2 DIV col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-9844
SELECT - col2 / col1 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT DISTINCT cor0.col2 * ( 39 ) FROM tab0 AS cor0
----
1287
3198
39
query I rowsort
SELECT DISTINCT - col0 * - 3 + col0 AS col2 FROM tab1 cor0
----
12
256
320
query I rowsort
SELECT ALL col2 * - 39 AS col0 FROM tab1 AS cor0
----
-2106
-2223
-3744
onlyif mysql # use DIV operator for integer division
query I rowsort label-9848
SELECT DISTINCT + col2 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-9848
SELECT DISTINCT + col2 / cor0.col0 AS col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT + col0 * - cor0.col0 * - cor0.col1 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT ALL col2 + col0 * col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT + - col1 * - 99 AS col1 FROM tab0 AS cor0
----
8514
9009
9603
onlyif mysql # use DIV operator for integer division
query I rowsort label-9852
SELECT ALL col0 DIV tab0.col0 + CAST( - 42 AS SIGNED ) FROM tab0
----
-41
-41
-41
skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL col0 / tab0.col0 + CAST ( - 42 AS INTEGER ) FROM tab0
----
-41
-41
-41
query I rowsort
SELECT DISTINCT + 99 + tab1.col0 FROM tab1
----
102
163
179
query I rowsort
SELECT col0 * - col1 - + 29 AS col1 FROM tab2
----
-1372
-246
-4631
onlyif mysql # use DIV operator for integer division
query I rowsort label-9855
SELECT ALL - col2 + + col1 DIV + cor0.col0 FROM tab2 AS cor0
----
-23
-26
-38
skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL - col2 + + col1 / + cor0.col0 FROM tab2 AS cor0
----
-23
-26
-38
query I rowsort
SELECT cor0.col1 * + 11 FROM tab0 AS cor0
----
1001
1067
946
query I rowsort
SELECT - col1 + + ( 29 ) FROM tab2 AS cor0
----
-2
-30
12
query I rowsort
SELECT 66 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9859
SELECT + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9859
SELECT + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * + ( - col1 ) + col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL - cor0.col0 * col1 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 8a7905bab027a06731ba57659d83981d
query I rowsort
SELECT + col2 * + col2 AS col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT 35 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9865
SELECT - CAST( - col0 AS SIGNED ) * + cor0.col1 FROM tab0 cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-9865
SELECT - CAST ( - col0 AS INTEGER ) * + cor0.col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT col1 + ( ( col2 ) ) AS col1 FROM tab2
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9867
SELECT ALL - CAST( NULL AS SIGNED ) * + col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL - CAST ( NULL AS INTEGER ) * + col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + + col2 AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ( tab2.col1 ) + col2 AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT 41 * - col1 * col1 FROM tab0
----
-303236
-339521
-385769
query I rowsort
SELECT DISTINCT + col2 + - col2 * - col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT col0 + + col0 * 36 FROM tab1 AS cor0
----
111
2368
2960
query I rowsort
SELECT ALL + 70 + col2 AS col0 FROM tab0 AS cor0
----
103
152
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 * + col1 col1 FROM tab2 AS cor0
----
-1180
-340
-620
query I rowsort
SELECT DISTINCT + + col0 * + cor0.col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT cor0.col1 * 53 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 81b191200f3cb1721594ff604da49844
query I rowsort
SELECT ALL + - col2 + - col0 * 90 AS col1 FROM tab2 AS cor0
----
-657
-7046
-7148
query I rowsort
SELECT ALL + - col0 * + 67 FROM tab2 cor0
----
-469
-5226
-5293
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9879
SELECT ALL col2 / + CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9879
SELECT ALL col2 / + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9880
SELECT - - col2 + - CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-9880
SELECT - - col2 + - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL + col0 + + col1 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + + col2 + + col2 * cor0.col0 + cor0.col2 FROM tab1 AS cor0
----
270
3762
7872
query I rowsort
SELECT ALL - col2 * col0 + col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL + + cor0.col1 + + col2 + - 58 * - col0 FROM tab1 cor0
----
254
3779
4749
onlyif mysql # use DIV operator for integer division
query I rowsort label-9885
SELECT - - ( col0 ) + col0 DIV + 72 + col0 * col2 FROM tab0 AS cor0
----
70
7388
816
skipif mysql # not compatible
query I rowsort label-9885
SELECT - - ( col0 ) + col0 / + 72 + col0 * col2 FROM tab0 AS cor0
----
70
7388
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) * + ( col0 ) col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col2 - - col2 AS col2 FROM tab2
----
52
54
76
query I rowsort
SELECT - 2 + - tab0.col2 * col1 AS col1 FROM tab0
----
-2840
-7464
-99
query I rowsort
SELECT col0 + 12 FROM tab1
----
15
76
92
query I rowsort
SELECT - ( + col0 ) * + col0 + - 98 FROM tab0
----
-1323
-674
-8019
query I rowsort
SELECT ALL - 15 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 91b10a00c89b36b5bf0bed723e656ccc
onlyif mysql # use DIV operator for integer division
query I rowsort label-9892
SELECT 29 * col0 DIV + col0 FROM tab0
----
29
29
29
skipif mysql # not compatible
query I rowsort label-9892
SELECT 29 * col0 / + col0 FROM tab0
----
29
29
29
query I rowsort
SELECT 72 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT DISTINCT col2 + col0 * - 89 FROM tab2
----
-596
-6916
-6993
query I rowsort
SELECT - col1 + - tab1.col0 + ( + 82 ) FROM tab1
----
-11
53
8
query I rowsort
SELECT + 19 + + col2 - 89 AS col0 FROM tab2
----
-32
-43
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-9897
SELECT 39 DIV - cor0.col1 + + CAST( 17 AS SIGNED ) FROM tab1 AS cor0
----
14
14
16
skipif mysql # not compatible
query I rowsort label-9897
SELECT 39 / - cor0.col1 + + CAST ( 17 AS INTEGER ) FROM tab1 AS cor0
----
14
14
16
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 49 col2 FROM tab0 AS cor0
----
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9899
SELECT - - cor0.col2 + + col1 * CAST( - col0 AS SIGNED ) + - col2 * col2 FROM tab1 AS cor0
----
-10160
-2940
-3832
skipif mysql # not compatible
query I rowsort label-9899
SELECT - - cor0.col2 + + col1 * CAST ( - col0 AS INTEGER ) + - col2 * col2 FROM tab1 AS cor0
----
-10160
-2940
-3832
query I rowsort
SELECT - col0 + - col0 FROM tab2 cor0
----
-14
-156
-158
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 93ed44f621cc970f32b0cc9543b45262
query I rowsort
SELECT - cor0.col1 * + 93 FROM tab0 AS cor0
----
-7998
-8463
-9021
query I rowsort
SELECT ALL - col0 * - col1 AS col2 FROM tab0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9904
SELECT - CAST( NULL AS SIGNED ) * + col0 / cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9904
SELECT - CAST ( NULL AS INTEGER ) * + col0 / cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 - col1 * - col0 AS col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL cor1.col0 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL col0 - + 12 * + col2 AS col2 FROM tab0 AS cor0
----
-372
-895
23
query I rowsort
SELECT - + 62 FROM tab1 AS cor0
----
-62
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-9909
SELECT DISTINCT - - col2 DIV - 9 + col2 DIV 62 col1 FROM tab2 AS cor0
----
-2
-3
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9909
SELECT DISTINCT - - col2 / - 9 + col2 / 62 col1 FROM tab2 AS cor0
----
-2
-3
-4
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 cor1, tab0 cor2
----
972 values hashing to 8420206d6932c454f05a38de634b3cb5
query I rowsort
SELECT - ( - ( cor0.col1 ) ) AS col2 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9912
SELECT ALL - + CAST( - cor0.col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL - + CAST ( - cor0.col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + ( - col2 ) * col0 + col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL - 44 AS col0 FROM tab0
----
-44
-44
-44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col1 FROM tab2 AS cor0
----
-85
-85
-85
query I rowsort
SELECT DISTINCT ( + 54 ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
4644
4914
5238
query I rowsort
SELECT ALL - col0 * - col2 + + col1 FROM tab1 cor0
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 col1 FROM tab2
----
-54
-54
-54
query I rowsort
SELECT col0 * col2 + col0 AS col2 FROM tab2
----
196
2106
3081
query I rowsort
SELECT DISTINCT + 26 + col2 AS col2 FROM tab0 cor0
----
108
27
59
query I rowsort
SELECT - - col0 + ( - col1 ) * + cor0.col0 * + col0 AS col0 FROM tab2 AS cor0
----
-106018
-1512
-358878
query I rowsort
SELECT ALL + + 23 FROM tab2 AS cor0
----
23
23
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9923
SELECT DISTINCT - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 79 + col0 col0 FROM tab0 cor0
----
103
114
168
query I rowsort
SELECT ALL 75 AS col2 FROM tab2 AS cor0
----
75
75
75
query I rowsort
SELECT - - ( + ( col0 ) ) AS col2 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - - col2 - + col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL 82 * cor0.col1 FROM tab0 AS cor0
----
7052
7462
7954
query I rowsort
SELECT + ( + ( col0 ) ) * - cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9930
SELECT DISTINCT + CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT + CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL 92 * col1 AS col0 FROM tab2 AS cor0
----
1564
2852
5428
query I rowsort
SELECT ALL + col1 + - col2 * + col2 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT ALL col1 + + col2 * + 77 + - col0 FROM tab2 AS cor0
----
1983
2103
2864
query I rowsort
SELECT DISTINCT + 29 - - col1 AS col0 FROM tab0 AS cor0
----
115
120
126
query I rowsort
SELECT col1 - + col0 AS col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT DISTINCT col2 * col1 * col0 + + ( - col1 * col2 + col1 ) FROM tab1 AS cor0
----
2834
35920
98605
onlyif mysql # use DIV operator for integer division
query I rowsort label-9937
SELECT ALL + 80 DIV col1 + cor0.col2 + col2 AS col2 FROM tab0 AS cor0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-9937
SELECT ALL + 80 / col1 + cor0.col2 + col2 AS col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT + col0 + col2 + - 75 * - 22 AS col0 FROM tab1 AS cor0
----
1707
1771
1826
query I rowsort
SELECT ALL 23 AS col2 FROM tab2
----
23
23
23
query I rowsort
SELECT 87 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 46 col2 FROM tab0 AS cor0
----
46
46
46
query I rowsort
SELECT col1 * + cor0.col0 * 66 FROM tab1 AS cor0
----
42240
5148
68640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( ( + col2 ) + - 47 ) col2 FROM tab1 AS cor0
----
378
4704
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-9944
SELECT DISTINCT cor0.col1 DIV 54 AS col2 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-9944
SELECT DISTINCT cor0.col1 / 54 AS col2 FROM tab2 AS cor0
----
0
1
query I rowsort
SELECT - col2 * 71 * + 97 AS col1 FROM tab1 AS cor0
----
-371898
-392559
-661152
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9946
SELECT DISTINCT col1 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT col1 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + col2 + + 26 AS col1 FROM tab1 AS cor0
----
122
80
83
query I rowsort
SELECT DISTINCT 23 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1357
391
713
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9949
SELECT ALL CAST( - col0 AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-9949
SELECT ALL CAST ( - col0 AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9950
SELECT DISTINCT + 77 * + col1 + - col2 * CAST( NULL AS SIGNED ) + - col1 / - col1 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT + 77 * + col1 + - col2 * CAST ( NULL AS INTEGER ) + - col1 / - col1 AS col1 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * cor0.col2 col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL col2 * + 14 FROM tab2
----
364
378
532
query I rowsort
SELECT + col1 * col1 + tab0.col0 AS col1 FROM tab0
----
7420
8370
9444
query I rowsort
SELECT ALL - col2 + + col2 * col1 FROM tab2
----
1508
608
810
query I rowsort
SELECT DISTINCT - col0 + - 86 + - 77 AS col2 FROM tab0
----
-187
-198
-252
query I rowsort
SELECT DISTINCT + col1 + + 60 FROM tab0
----
146
151
157
query I rowsort
SELECT col0 * 47 FROM tab0 AS cor0
----
1128
1645
4183
query I rowsort
SELECT cor2.col1 AS col2 FROM tab0, tab2 AS cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9959
SELECT ALL + col2 DIV col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL + col2 / col2 FROM tab0
----
1
1
1
query I rowsort
SELECT cor0.col2 * - col1 AS col0 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + 11 * - cor0.col1 FROM tab2, tab2 cor0, tab0 AS cor1
----
-187
-341
-649
query I rowsort
SELECT DISTINCT - - col0 + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT - col2 * + 17 AS col2 FROM tab1
----
-1632
-918
-969
query I rowsort
SELECT + col0 * col0 + col0 AS col2 FROM tab2 cor0
----
56
6162
6320
query I rowsort
SELECT DISTINCT - + cor0.col2 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT - cor0.col2 - 89 FROM tab0 AS cor0
----
-122
-171
-90
query I rowsort
SELECT DISTINCT + - 67 + col1 FROM tab0 AS cor0
----
19
24
30
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9968
SELECT ALL - CAST( NULL AS SIGNED ) - + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL - CAST ( NULL AS INTEGER ) - + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9969
SELECT ALL - CAST( col0 AS SIGNED ) FROM tab1 cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL - CAST ( col0 AS INTEGER ) FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT + - ( col2 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - col0 ) + 48 col0 FROM tab1 AS cor0
----
-16
-32
45
query I rowsort
SELECT DISTINCT + col0 * cor0.col2 + - col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT ALL col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - 68 + col0 * + col2 FROM tab0 AS cor0
----
-33
7230
724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 53 col2 FROM tab2 AS cor0
----
-53
-53
-53
query I rowsort
SELECT ALL ( - col0 ) * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT col0 + - col1 AS col0 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT - 87 * + col1 + col0 FROM tab0 AS cor0
----
-7458
-7828
-8404
query I rowsort
SELECT DISTINCT 65 + col0 - col2 FROM tab0 cor0
----
56
72
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9980
SELECT DISTINCT + 0 / - col1 + ( - col2 ) * col0 + - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9980
SELECT DISTINCT + 0 / - col1 + ( - col2 ) * col0 + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - col2 + col0 * - col0 FROM tab2 cor0
----
-6110
-6279
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-9982
SELECT ALL tab0.col2 + - col0 DIV col0 AS col0 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL tab0.col2 + - col0 / col0 AS col0 FROM tab0
----
0
32
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-9983
SELECT ALL - ( + ( + col1 ) ) DIV 90 + - col1 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL - ( + ( + col1 ) ) / 90 + - col1 FROM tab1
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9984
SELECT ALL + CAST( NULL AS SIGNED ) + 37 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL + CAST ( NULL AS INTEGER ) + 37 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9985
SELECT ALL + ( + 31 ) + col2 DIV 72 FROM tab0
----
31
31
32
skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL + ( + 31 ) + col2 / 72 FROM tab0
----
31
31
32
query I rowsort
SELECT + col0 + col0 * col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT - col0 * + col0 * - 25 FROM tab0
----
14400
198025
30625
query I rowsort
SELECT ALL 57 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5
query I rowsort
SELECT - tab1.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * col2 + - col2 col2 FROM tab2 cor0
----
1508
608
810
query I rowsort
SELECT + + 26 AS col1 FROM tab2 cor0
----
26
26
26
query I rowsort
SELECT + cor0.col2 * col2 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT DISTINCT col1 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT - col1 + 36 FROM tab0 AS cor0
----
-50
-55
-61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - cor0.col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT cor0.col1 + ( col1 ) AS col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT + col2 * 34 + + col1 * + col1 AS col0 FROM tab2 AS cor0
----
1581
1879
4365
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * - col1 col1 FROM tab2
----
-1767
-3363
-969