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 IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
54 values hashing to 018801f36b33d2fe82cb95918ba502d6
query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0
----
54 values hashing to fe43263cad63144a098cccb9cd58c32a
query IIIIII rowsort
SELECT * FROM tab1, tab2 cor0
----
54 values hashing to d8165ceb99ded93f34ad83c310a80ea7
query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0
----
54 values hashing to b8667d60d280879b35ad1450a82b3a49
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query III rowsort
SELECT * FROM tab0 AS cor0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query III rowsort
SELECT ALL * FROM tab0 AS cor0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7
SELECT - col2 DIV - col0 - + 69 AS col0 FROM tab1 AS cor0
----
-51
-68
-69
skipif mysql # not compatible
query I rowsort label-7
SELECT - col2 / - col0 - + 69 AS col0 FROM tab1 AS cor0
----
-51
-68
-69
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
54 values hashing to fe43263cad63144a098cccb9cd58c32a
query III rowsort
SELECT DISTINCT * FROM tab2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT 67 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query III rowsort
SELECT * FROM tab2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0
----
54 values hashing to 2a7467bc6f55dbb61fbd4aa2bd0646a9
query III rowsort
SELECT DISTINCT * FROM tab0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query III rowsort
SELECT DISTINCT * FROM tab1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab1 cor0
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f
query III rowsort
SELECT * FROM tab0 cor0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query III rowsort
SELECT * FROM tab2 AS cor0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab0 AS cor1
----
243 values hashing to 3e8bd9634a3f5947d8becd5f5799bb7f
query III rowsort
SELECT ALL * FROM tab2 AS cor0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query III rowsort
SELECT ALL * FROM tab1 AS cor0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab0 AS cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356
query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab1 AS cor0
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9
query III rowsort
SELECT * FROM tab0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query III rowsort
SELECT ALL * FROM tab1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0
----
54 values hashing to fe43263cad63144a098cccb9cd58c32a
query I rowsort
SELECT DISTINCT - + 43 AS col0 FROM tab1 AS cor0
----
-43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 78 ) + col1 col2 FROM tab0 AS cor0
----
13
19
8
query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ( - col2 ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - + col1 * cor0.col1 FROM tab1 cor0
----
-100
-169
-676
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab2 cor1
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0 AS cor1
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8
query III rowsort
SELECT * FROM tab1 AS cor0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query III rowsort
SELECT ALL * FROM tab0 cor0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab2 AS cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-36
SELECT + CAST( - 59 AS SIGNED ) FROM tab0 AS cor0
----
-59
-59
-59
skipif mysql # not compatible
query I rowsort label-36
SELECT + CAST ( - 59 AS INTEGER ) FROM tab0 AS cor0
----
-59
-59
-59
query III rowsort
SELECT ALL * FROM tab1 cor0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT cor0.col0 * 59 FROM tab0, tab1 AS cor0
----
177
3776
4720
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0
----
54 values hashing to b010e320d66ab5b2711fc14e8fb58b01
query I rowsort
SELECT + col0 * + col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT tab1.col1 + 77 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e95026a3b232313ec2d8a183f7b1cc4c
query I rowsort
SELECT DISTINCT col0 * - col2 - - col1 FROM tab2
----
-158
-1969
-2985
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab1 AS cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
query I rowsort
SELECT DISTINCT - col1 FROM tab2
----
-17
-31
-59
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab1 AS cor0
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998
query I rowsort
SELECT + col0 + col1 FROM tab0 cor0
----
110
132
180
query III rowsort
SELECT DISTINCT * FROM tab2 cor0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab2 AS cor0
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d
query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0
----
54 values hashing to 2a7467bc6f55dbb61fbd4aa2bd0646a9
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab0 AS cor0
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8
onlyif mysql # use DIV operator for integer division
query I rowsort label-52
SELECT ALL + ( + col1 ) DIV + tab0.col2 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-52
SELECT ALL + ( + col1 ) / + tab0.col2 FROM tab0
----
1
2
97
query I rowsort
SELECT DISTINCT - col1 * col0 FROM tab1
----
-1040
-640
-78
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab2 AS cor1
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab2 AS cor0
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca
query I rowsort
SELECT DISTINCT - col1 FROM tab1
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 85 col0 FROM tab2
----
85
query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0
----
54 values hashing to 69e208df4a305efdfcc036bb4b31e720
query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0
----
54 values hashing to b010e320d66ab5b2711fc14e8fb58b01
query I rowsort
SELECT - + 18 AS col0 FROM tab2 AS cor0
----
-18
-18
-18
query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0
----
54 values hashing to d8165ceb99ded93f34ad83c310a80ea7
query I rowsort
SELECT col0 * + col2 FROM tab0 AS cor0
----
35
7298
792
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT cor0.col1 + - 13 FROM tab2 AS cor0
----
18
4
46
query I rowsort
SELECT + - col2 + 11 AS col2 FROM tab0 AS cor0
----
-22
-71
10
query I rowsort
SELECT - col2 * + col1 + + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-1328
-1407
-634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 + + col0 col0 FROM tab0 AS cor0
----
260
71
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - ( + 40 * - col1 ) + - col0 + 26 col2 FROM tab2 AS cor0
----
184028
53667
8699
query III rowsort
SELECT ALL * FROM tab0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT ALL + 78 * col1 AS col2 FROM tab1
----
1014
2028
780
query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0
----
54 values hashing to 018801f36b33d2fe82cb95918ba502d6
query IIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab1 AS cor1
----
243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab0 AS cor1
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8
query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 * col2 col2 FROM tab0
----
3267
8118
99
query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0
----
54 values hashing to 3352c458f45211cf9aa3236c2cd6dd38
query III rowsort
SELECT * FROM tab1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0
----
54 values hashing to b8667d60d280879b35ad1450a82b3a49
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab0 AS cor1
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8
query I rowsort
SELECT col1 * tab0.col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT col0 * col2 * col2 FROM tab2
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-82
SELECT DISTINCT - col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-82
SELECT DISTINCT - col1 / - col1 AS col2 FROM tab1 AS cor0
----
1
query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - col1 + 69 AS col1 FROM tab0 cor0
----
-17
-22
-28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - col1 + + col0 * col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT DISTINCT - - col1 FROM tab0 AS cor0
----
86
91
97
query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0
----
54 values hashing to 3352c458f45211cf9aa3236c2cd6dd38
query I rowsort
SELECT ALL + - col2 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + col1 + + col1 + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1377
279
4720
query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - col2 * - col2 * ( + col2 ) - cor0.col1 FROM tab0 cor0
----
-96
35851
551277
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * col0 col0 FROM tab2 cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-94
SELECT ALL col0 + + CAST( col1 AS SIGNED ) * col0 FROM tab2
----
1422
224
4680
skipif mysql # not compatible
query I rowsort label-94
SELECT ALL col0 + + CAST ( col1 AS INTEGER ) * col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT ALL + + col0 * 53 + - cor0.col1 FROM tab2 AS cor0
----
340
4075
4170
query I rowsort
SELECT ALL - - cor0.col1 + 25 FROM tab0 AS cor0
----
111
116
122
query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0
----
54 values hashing to fe43263cad63144a098cccb9cd58c32a
query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0
----
54 values hashing to b8667d60d280879b35ad1450a82b3a49
query I rowsort
SELECT DISTINCT + col0 - col0 AS col1 FROM tab2 cor0
----
0
query I rowsort
SELECT + col2 - + col0 * + 61 * col1 FROM tab2 AS cor0
----
-13210
-280696
-81885
onlyif mysql # use DIV operator for integer division
query I rowsort label-101
SELECT DISTINCT + col1 DIV + 49 AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-101
SELECT DISTINCT + col1 / + 49 AS col0 FROM tab1 AS cor0
----
0
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab2 AS cor1
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b
query I rowsort
SELECT + - col1 AS col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + - cor0.col2 AS col0 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT ALL col2 * 47 + + col1 FROM tab1 AS cor0
----
2564
2689
4525
query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - col1 + cor0.col1 FROM tab2 AS cor0
----
0
0
0
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 DISTINCT + + col0 + + ( + col2 * + col2 ) AS col2 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT col0 * + 80 * col0 + 94 AS col1 FROM tab2 AS cor0
----
4014
486814
499374
query I rowsort
SELECT ALL 71 * col2 FROM tab0 cor0
----
2343
5822
71
query I rowsort
SELECT + - 98 + col2 AS col2 FROM tab2 AS cor0
----
-60
-71
-72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-113
SELECT DISTINCT - col2 * ( col1 * tab2.col2 ) - CAST( 58 * col0 AS SIGNED ) FROM tab2
----
-23005
-29130
-44408
skipif mysql # not compatible
query I rowsort label-113
SELECT DISTINCT - col2 * ( col1 * tab2.col2 ) - CAST ( 58 * col0 AS INTEGER ) FROM tab2
----
-23005
-29130
-44408
query I rowsort
SELECT DISTINCT - - 57 FROM tab0 AS cor0
----
57
query I rowsort
SELECT col1 * col1 - - col1 * + col0 AS col1 FROM tab2 AS cor0
----
1178
1632
8083
query IIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab0 AS cor1
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993
query I rowsort
SELECT DISTINCT - - col0 + 42 * + col0 AS col1 FROM tab2 AS cor0
----
301
3354
3397
query I rowsort
SELECT DISTINCT - ( + col2 ) * col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 * - 49 + + cor0.col1 col1 FROM tab0 AS cor0
----
1948
1953
1959
query I rowsort
SELECT DISTINCT col0 * 9 + - col2 AS col2 FROM tab0 AS cor0
----
183
314
719
query I rowsort
SELECT ALL + 41 + - col1 * col0 FROM tab0 AS cor0
----
-2023
-3354
-8058
query I rowsort
SELECT ALL + 28 AS col2 FROM tab2 AS cor0
----
28
28
28
query I rowsort
SELECT + ( - cor0.col0 ) * col2 + - cor0.col0 * - col0 * + col2 AS col1 FROM tab0 AS cor0
----
1190
18216
642224
query I rowsort
SELECT DISTINCT - - col0 + ( + col1 * col2 ) + + cor0.col2 AS col1 FROM tab2 AS cor0
----
1638
763
871
query III rowsort
SELECT ALL * FROM tab2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
onlyif mysql # use DIV operator for integer division
query I rowsort label-127
SELECT ALL col0 + + col2 DIV + tab1.col0 FROM tab1
----
21
64
81
skipif mysql # not compatible
query I rowsort label-127
SELECT ALL col0 + + col2 / + tab1.col0 FROM tab1
----
21
64
81
query I rowsort
SELECT + col2 FROM tab0
----
1
33
82
query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0
----
54 values hashing to b010e320d66ab5b2711fc14e8fb58b01
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab1 AS cor0, tab1 AS cor1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823
query I rowsort
SELECT DISTINCT col1 * col1 - col1 AS col0 FROM tab1
----
156
650
90
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab2 AS cor0
----
243 values hashing to 042fa16c43ab365359ee93c064e44127
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab1 cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab0 AS cor1
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d
onlyif mysql # use DIV operator for integer division
query I rowsort label-135
SELECT ALL + col0 DIV col1 AS col2 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-135
SELECT ALL + col0 / col1 AS col2 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT DISTINCT - 92 FROM tab0 AS cor0
----
-92
query I rowsort
SELECT ALL + + col2 * col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - col2 + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-4153
-63
-6496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - ( + col0 ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - col1 * col2 * col0 + + col0 FROM tab2 cor0
----
-119574
-50955
-5852
query III rowsort
SELECT * FROM tab1 cor0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT + 29 + - col0 + - 90 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
2165
3144
7950
query I rowsort
SELECT - 43 AS col0 FROM tab2 AS cor0
----
-43
-43
-43
query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-146
SELECT DISTINCT + col0 + col1 / CAST( NULL AS DECIMAL ) + - col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-146
SELECT DISTINCT + col0 + col1 / CAST ( NULL AS REAL ) + - col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL 27 * col2 + col0 * col1 FROM tab1 AS cor0
----
1536
2179
3632
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) * col0 - col2 * + col0 * ( col0 ) col0 FROM tab0 AS cor0
----
-1190
-18216
-642224
onlyif mysql # use DIV operator for integer division
query I rowsort label-149
SELECT ALL - 5 + - col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
-5
-5
3
skipif mysql # not compatible
query I rowsort label-149
SELECT ALL - 5 + - col1 / - col0 AS col2 FROM tab1 AS cor0
----
-5
-5
3
query I rowsort
SELECT 10 + + col0 AS col2 FROM tab2 cor0
----
17
88
89
query I rowsort
SELECT DISTINCT + - 71 - + col2 FROM tab2 AS cor0
----
-109
-97
-98
query I rowsort
SELECT + 26 FROM tab1 AS cor0
----
26
26
26
query I rowsort
SELECT ALL - 82 AS col1 FROM tab2 AS cor0
----
-82
-82
-82
query I rowsort
SELECT - col1 + - col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT - cor0.col2 - + col0 AS col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT + - cor0.col1 + col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - cor0.col0 * cor0.col1 * + col1 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT + - col1 AS col0 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + col2 * - col0 + - 48 AS col1 FROM tab1 AS cor0
----
-210
-3696
-7728
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 cor1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c
query I rowsort
SELECT col1 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL - tab1.col0 + - 20 AS col1 FROM tab1
----
-100
-23
-84
query I rowsort
SELECT + col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + col2 + col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL col1 + col1 AS col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT ALL col2 FROM tab1
----
54
57
96
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0
----
54 values hashing to 2a7467bc6f55dbb61fbd4aa2bd0646a9
query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab1 AS cor1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL col0 AS col1 FROM tab0
----
24
35
89
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab1 AS cor0, tab2
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-172
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-172
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
54 values hashing to 018801f36b33d2fe82cb95918ba502d6
query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0
----
54 values hashing to 3352c458f45211cf9aa3236c2cd6dd38
query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
54 values hashing to b8667d60d280879b35ad1450a82b3a49
query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + - col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + col0 FROM tab1 AS cor0
----
3
64
80
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
54 values hashing to d8165ceb99ded93f34ad83c310a80ea7
query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
54 values hashing to d8165ceb99ded93f34ad83c310a80ea7
query I rowsort
SELECT + cor0.col2 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT 55 AS col0 FROM tab0
----
55
query I rowsort
SELECT ALL + col2 AS col2 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL col0 * tab1.col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT ALL ( - tab1.col2 + col1 * - col1 ) FROM tab1
----
-157
-265
-730
query I rowsort
SELECT DISTINCT ( col2 ) - col1 AS col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT DISTINCT col2 + - col0 FROM tab0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-188
SELECT ALL col0 DIV + tab0.col2 + col0 * + 84 AS col0 FROM tab0
----
2016
2975
7477
skipif mysql # not compatible
query I rowsort label-188
SELECT ALL col0 / + tab0.col2 + col0 * + 84 AS col0 FROM tab0
----
2016
2975
7477
query I rowsort
SELECT - col0 + + col2 AS col0 FROM tab0
----
-34
-7
9
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab2 AS cor0
----
243 values hashing to ea21cea53be47edd19229592e3d26141
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab1 AS cor0
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab2 AS cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b
query I rowsort
SELECT DISTINCT + col0 * col2 AS col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT + cor0.col0 * cor0.col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to aff311fa1b3948e179779cc03c1fade4
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab0 AS cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab2 AS cor1
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc
query I rowsort
SELECT + cor0.col0 * 59 FROM tab2 AS cor0
----
413
4602
4661
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 76903cfa3a27727fd541d9dcdf362a4c
query I rowsort
SELECT 57 * ( col1 ) AS col0 FROM tab1 AS cor0
----
1482
570
741
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-200
SELECT ALL + + CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-200
SELECT ALL + + CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 AS cor0
----
86
91
97
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab0 AS cor0
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993
query IIIIII rowsort
SELECT * FROM tab2, tab0 cor0
----
54 values hashing to 3352c458f45211cf9aa3236c2cd6dd38
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab1 cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0
----
54 values hashing to 341cdc053c309cf3abe57fa060ecf96e
query I rowsort
SELECT ALL col0 * - col1 AS col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + + col0 AS col0 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-208
SELECT - col1 DIV col2 col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-208
SELECT - col1 / col2 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 79 * + col1 FROM tab2 AS cor0
----
1343
2449
4661
query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL - col1 * - cor0.col0 - 13 AS col1 FROM tab1 AS cor0
----
1027
627
65
query I rowsort
SELECT ALL - - cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + 4 FROM tab1 AS cor0
----
4
4
4
query I rowsort
SELECT ALL + col0 + - col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + - cor0.col1 + + col0 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT + col1 * + col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - col2 * + col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + + 98 AS col1 FROM tab1 AS cor0
----
98
98
98
query I rowsort
SELECT ALL - cor0.col1 * col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - + 94 - col2 * + 46 FROM tab1 AS cor0
----
-2578
-2716
-4510
query I rowsort
SELECT - - ( col2 ) + - 6 * 40 * col1 FROM tab1 AS cor0
----
-2343
-3024
-6186
query III rowsort
SELECT DISTINCT * FROM tab1 cor0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT + cor0.col0 - col2 * ( col0 ) FROM tab0 cor0
----
-7209
-768
0
query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0
----
54 values hashing to 3352c458f45211cf9aa3236c2cd6dd38
query I rowsort
SELECT - + col1 * - col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-226
SELECT + - 88 DIV - col0 + col1 AS col2 FROM tab0 AS cor0
----
89
91
99
skipif mysql # not compatible
query I rowsort label-226
SELECT + - 88 / - col0 + col1 AS col2 FROM tab0 AS cor0
----
89
91
99
query I rowsort
SELECT - ( + col1 ) * - 57 FROM tab1 AS cor0
----
1482
570
741
query I rowsort
SELECT cor0.col2 + - col2 * + col2 AS col0 FROM tab0 cor0
----
-1056
-6642
0
query I rowsort
SELECT ALL col2 * - col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + + col1 * col0 + 86 + col0 AS col0 FROM tab2 AS cor0
----
1508
310
4766
query I rowsort
SELECT DISTINCT + col1 - - col2 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL col1 * col0 + col2 FROM tab2 cor0
----
1381
244
4628
query I rowsort
SELECT col1 * - col0 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + + cor0.col2 AS col2 FROM tab2 AS cor0
----
26
27
38
query IIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc
query I rowsort
SELECT col0 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 8 + + col2 col0 FROM tab2 AS cor0
----
650
670
83
query I rowsort
SELECT - - col0 * cor0.col2 + - col0 AS col1 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT - col0 + col1 * - 42 * - col1 AS col0 FROM tab1 AS cor0
----
28389
4136
7018
query I rowsort
SELECT DISTINCT col0 * 1 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-242
SELECT ALL - col1 + - col2 * - ( col2 ) DIV - col2 FROM tab0 AS cor0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort label-242
SELECT ALL - col1 + - col2 * - ( col2 ) / - col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT + cor0.col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + - col1 * col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - + col2 * col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-246
SELECT ALL + - col1 DIV - 25 AS col0 FROM tab0 AS cor0
----
3
3
3
skipif mysql # not compatible
query I rowsort label-246
SELECT ALL + - col1 / - 25 AS col0 FROM tab0 AS cor0
----
3
3
3
query I rowsort
SELECT + - col1 * ( + col1 * + col0 ) AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT ALL col0 AS col1 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-249
SELECT - col1 * - CAST( col1 AS SIGNED ) + - col0 DIV CAST( + col1 + col1 AS SIGNED ) col2 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-249
SELECT - col1 * - CAST ( col1 AS INTEGER ) + - col0 / CAST ( + col1 + col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL col2 AS col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT - col0 * + 41 AS col2 FROM tab0 cor0
----
-1435
-3649
-984
query I rowsort
SELECT DISTINCT col1 * - col0 + 82 AS col1 FROM tab2 AS cor0
----
-1261
-135
-4520
query I rowsort
SELECT ALL - + col1 * 84 FROM tab0 AS cor0
----
-7224
-7644
-8148
query I rowsort
SELECT ALL - - col0 AS col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT col1 * col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + cor0.col1 + 32 FROM tab0 AS cor0
----
118
123
129
query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0
----
1
33
82
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 AS cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127
query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + 53 * + col2 FROM tab2 AS cor0
----
1378
1431
2014
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 3406497351e4789c89a295ee9b64b201
query III rowsort
SELECT ALL * FROM tab2 cor0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab1 AS cor0
----
54
57
96
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab0 AS cor1
----
243 values hashing to 3e8bd9634a3f5947d8becd5f5799bb7f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-267
SELECT + + CAST( 84 AS SIGNED ) * col2 FROM tab2 cor0
----
2184
2268
3192
skipif mysql # not compatible
query I rowsort label-267
SELECT + + CAST ( 84 AS INTEGER ) * col2 FROM tab2 cor0
----
2184
2268
3192
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab0 AS cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356
query I rowsort
SELECT + col2 * 35 AS col1 FROM tab1 AS cor0
----
1890
1995
3360
query I rowsort
SELECT ALL 90 FROM tab2, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT DISTINCT - - col0 * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2 AS cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca
query I rowsort
SELECT ALL col0 + 20 AS col0 FROM tab2 AS cor0
----
27
98
99
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab0 AS cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356
query IIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab1 AS cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab0 AS cor1
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2, tab0 cor3
----
3645 values hashing to 181d902c42955a43a374f13a73d8b0a1
query I rowsort
SELECT - ( + 44 ) FROM tab0, tab0 cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9
query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
54 values hashing to 018801f36b33d2fe82cb95918ba502d6
query I rowsort
SELECT + ( + 1 ) FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + col1 * + 65 FROM tab0 AS cor0
----
5590
5915
6305
query I rowsort
SELECT - cor0.col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-286
SELECT + 15 DIV - ( col0 ) + - cor0.col2 FROM tab1 AS cor0
----
-57
-59
-96
skipif mysql # not compatible
query I rowsort label-286
SELECT + 15 / - ( col0 ) + - cor0.col2 FROM tab1 AS cor0
----
-57
-59
-96
query I rowsort
SELECT ALL 73 FROM tab2, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT - col1 + 88 AS col1 FROM tab0
----
-3
-9
2
query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col1 col0 FROM tab1
----
10
13
26
query I rowsort
SELECT + ( cor0.col0 ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + ( 32 + - col2 * - ( + 37 ) ) FROM tab0
----
1253
3066
69
query I rowsort
SELECT DISTINCT - 79 AS col1 FROM tab0
----
-79
query I rowsort
SELECT - col0 AS col1 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT - - 66 * - col1 + ( col1 ) * - col1 FROM tab2 cor0
----
-1411
-3007
-7375
query I rowsort
SELECT - - cor0.col0 FROM tab0 AS cor0
----
24
35
89
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab0 cor1
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00
query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0
----
54 values hashing to d8165ceb99ded93f34ad83c310a80ea7
query I rowsort
SELECT DISTINCT 79 FROM tab0
----
79
query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
54 values hashing to 2a7467bc6f55dbb61fbd4aa2bd0646a9
query I rowsort
SELECT - col2 FROM tab0
----
-1
-33
-82
query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0
----
54 values hashing to 018801f36b33d2fe82cb95918ba502d6
query I rowsort
SELECT 94 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
query I rowsort
SELECT + - col1 * col2 FROM tab2 AS cor0
----
-1534
-646
-837
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
54 values hashing to d8165ceb99ded93f34ad83c310a80ea7
query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
54 values hashing to 341cdc053c309cf3abe57fa060ecf96e
query I rowsort
SELECT 21 * col0 + 85 FROM tab1
----
1429
148
1765
query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
54 values hashing to 018801f36b33d2fe82cb95918ba502d6
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0
----
54 values hashing to 341cdc053c309cf3abe57fa060ecf96e
query I rowsort
SELECT col2 * col0 AS col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT + tab2.col1 FROM tab2
----
17
31
59
query IIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab0 cor1
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab1 cor0, tab0 cor1
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9
query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0
----
54 values hashing to 3352c458f45211cf9aa3236c2cd6dd38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-315
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-315
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT 51 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab0 cor1
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8
query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab1 cor0
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998
query I rowsort
SELECT - tab2.col1 * ( - col0 ) FROM tab2
----
1343
217
4602
query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0
----
54 values hashing to 341cdc053c309cf3abe57fa060ecf96e
query I rowsort
SELECT DISTINCT + tab0.col1 FROM tab0
----
86
91
97
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab1 AS cor0
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
query I rowsort
SELECT + cor0.col0 FROM tab0 cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-324
SELECT col2 * col0 + + col2 DIV + col2 FROM tab1 AS cor0
----
163
3649
7681
skipif mysql # not compatible
query I rowsort label-324
SELECT col2 * col0 + + col2 / + col2 FROM tab1 AS cor0
----
163
3649
7681
query I rowsort
SELECT - 44 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
query I rowsort
SELECT ALL 71 FROM tab0, tab0 cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0
----
54 values hashing to 2a7467bc6f55dbb61fbd4aa2bd0646a9
query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-329
SELECT - col2 DIV col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-329
SELECT - col2 / col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT DISTINCT col0 * - col1 * ( - col1 ) FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT - col1 * + col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL - - col2 + col1 * 49 AS col0 FROM tab2 AS cor0
----
1546
2917
871
query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0
----
54 values hashing to 69e208df4a305efdfcc036bb4b31e720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-334
SELECT DISTINCT - + col0 + cor0.col1 * - CAST( 0 AS SIGNED ) FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-334
SELECT DISTINCT - + col0 + cor0.col1 * - CAST ( 0 AS INTEGER ) FROM tab0 AS cor0
----
-24
-35
-89
query III rowsort
SELECT * FROM tab2 cor0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT 40 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
query I rowsort
SELECT DISTINCT + 0 * col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - - 49 * col2 AS col0 FROM tab2 cor0
----
1274
1323
1862
query I rowsort
SELECT cor1.col2 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL ( col0 ) FROM tab0
----
24
35
89
query IIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993
query I rowsort
SELECT - 91 FROM tab0, tab2 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
54 values hashing to 3352c458f45211cf9aa3236c2cd6dd38
query I rowsort
SELECT DISTINCT tab0.col2 AS col0 FROM tab0
----
1
33
82
query I rowsort
SELECT col1 FROM tab2
----
17
31
59
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-348
SELECT DISTINCT - CAST( - 42 AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
42
skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT - CAST ( - 42 AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
42
query I rowsort
SELECT + col2 + col1 * 50 FROM tab1
----
1354
557
746
query IIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab2 AS cor0
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b
query I rowsort
SELECT ( col1 ) * 8 FROM tab2
----
136
248
472
query I rowsort
SELECT + col2 AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT - tab0.col1 AS col2 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT col0 AS col2 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL 90 FROM tab1
----
90
90
90
query I rowsort
SELECT + 9 AS col2 FROM tab2
----
9
9
9
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab2 AS cor0
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0
query I rowsort
SELECT DISTINCT col0 * col1 AS col0 FROM tab1
----
1040
640
78
query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0
----
54 values hashing to 018801f36b33d2fe82cb95918ba502d6
query I rowsort
SELECT col1 * cor0.col2 + - 22 AS col2 FROM tab0 AS cor0
----
2816
7440
75
query IIIIII rowsort
SELECT * FROM tab0, tab2 cor0
----
54 values hashing to 018801f36b33d2fe82cb95918ba502d6
query I rowsort
SELECT + + col2 - - col0 * col1 AS col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT - tab0.col2 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT DISTINCT - 48 AS col0 FROM tab2, tab1, tab0 AS cor0
----
-48
query I rowsort
SELECT - col1 * + cor0.col1 + col0 FROM tab1 AS cor0
----
-36
-673
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col0 + - ( + col1 + - col0 ) col0 FROM tab0 AS cor0
----
-1287
-638
-7923
query I rowsort
SELECT - - cor0.col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab1 AS cor0
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 AS cor1
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f
query I rowsort
SELECT ALL + col0 AS col2 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col1 col1 FROM tab2
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1
----
3
64
80
query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0
----
54 values hashing to 018801f36b33d2fe82cb95918ba502d6
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 AS cor1
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab0 cor0, tab0
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0
query I rowsort
SELECT - col1 AS col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT col2 - - col1 AS col0 FROM tab2
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-378
SELECT + + col1 DIV - col0 col0 FROM tab0 cor0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-378
SELECT + + col1 / - col0 col0 FROM tab0 cor0
----
-1
-2
-3
query I rowsort
SELECT - cor0.col1 * + 75 AS col1 FROM tab1 AS cor0
----
-1950
-750
-975
query IIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab1 cor0
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab0 AS cor0
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab2 AS cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca
query I rowsort
SELECT ALL col0 * col2 AS col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT - col1 AS col2 FROM tab0
----
-86
-91
-97
query III rowsort
SELECT DISTINCT * FROM tab0 cor0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-387
SELECT + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-387
SELECT + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ( - 59 ) FROM tab0 AS cor0
----
-59
-59
-59
query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
54 values hashing to fe43263cad63144a098cccb9cd58c32a
query I rowsort
SELECT DISTINCT col0 * tab1.col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT - + 60 FROM tab0 cor0
----
-60
-60
-60
query I rowsort
SELECT - 87 * col1 AS col2 FROM tab1 AS cor0
----
-1131
-2262
-870
query I rowsort
SELECT ALL + col0 * - 91 AS col1 FROM tab0 AS cor0
----
-2184
-3185
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-394
SELECT DISTINCT ( - col1 ) * col0 DIV ( col1 ) AS col0 FROM tab1 cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-394
SELECT DISTINCT ( - col1 ) * col0 / ( col1 ) AS col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT + + col2 * ( + col1 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL 28 AS col2 FROM tab1 AS cor0
----
28
28
28
query I rowsort
SELECT col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + ( col2 ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - + 3 * + col1 AS col0 FROM tab1 AS cor0
----
-30
-39
-78
query I rowsort
SELECT + ( - col0 ) FROM tab2
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-401
SELECT - col1 + + 87 DIV + tab2.col0 AS col0 FROM tab2
----
-16
-19
-58
skipif mysql # not compatible
query I rowsort label-401
SELECT - col1 + + 87 / + tab2.col0 AS col0 FROM tab2
----
-16
-19
-58
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab2 AS cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127
onlyif mysql # use DIV operator for integer division
query I rowsort label-403
SELECT DISTINCT col0 DIV 40 FROM tab1
----
0
1
2
skipif mysql # not compatible
query I rowsort label-403
SELECT DISTINCT col0 / 40 FROM tab1
----
0
1
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-404
SELECT col0 + 50 DIV col0 AS col0 FROM tab2
----
14
78
79
skipif mysql # not compatible
query I rowsort label-404
SELECT col0 + 50 / col0 AS col0 FROM tab2
----
14
78
79
query I rowsort
SELECT col1 * + col0 + col2 FROM tab2
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 + + col1 col0 FROM tab2
----
-3
-31
-45
query I rowsort
SELECT DISTINCT + col1 FROM tab1
----
10
13
26
query I rowsort
SELECT cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL col0 FROM tab0 AS cor0
----
24
35
89
query IIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab1 cor1
----
243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + col1 + - cor0.col0 + col2 * + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
119741
32436
75839
query I rowsort
SELECT ALL + col0 * col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - - col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT tab2.col0 + - col2 AS col0 FROM tab2
----
-20
41
52
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab1 AS cor1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT ALL - 23 * + 11 FROM tab2 cor0
----
-253
-253
-253
query I rowsort
SELECT - - ( col2 ) FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL col2 + + cor0.col2 * - ( + col0 * - col2 ) FROM tab1 cor0
----
207993
737376
8802
query I rowsort
SELECT ( - col0 ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - col2 + col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + ( + col2 ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + col1 * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + 95 FROM tab1 cor0
----
95
95
95
query I rowsort
SELECT - col1 + col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL 91 + + col1 * 2 FROM tab0 AS cor0
----
263
273
285
query I rowsort
SELECT col0 - - col0 AS col1 FROM tab2 AS cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL col1 + + col0 + col2 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT + + col2 * - col2 + - 91 FROM tab0 AS cor0
----
-1180
-6815
-92
query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + cor0.col2 + col0 * 33 FROM tab2 AS cor0
----
258
2600
2645
query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - 76 AS col1 FROM tab0 AS cor0
----
-76
-76
-76
query I rowsort
SELECT - 24 FROM tab1 AS cor0
----
-24
-24
-24
onlyif mysql # use DIV operator for integer division
query I rowsort label-439
SELECT ALL 62 DIV + col0 + cor0.col1 * col1 AS col2 FROM tab0 AS cor0
----
7398
8281
9410
skipif mysql # not compatible
query I rowsort label-439
SELECT ALL 62 / + col0 + cor0.col1 * col1 AS col2 FROM tab0 AS cor0
----
7398
8281
9410
query IIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab0 AS cor0
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
onlyif mysql # use DIV operator for integer division
query I rowsort label-441
SELECT DISTINCT 73 DIV 86 AS col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-441
SELECT DISTINCT 73 / 86 AS col2 FROM tab1
----
0
query I rowsort
SELECT DISTINCT - 64 * col1 AS col0 FROM tab2
----
-1088
-1984
-3776
query I rowsort
SELECT col2 AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT + col1 FROM tab2
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-445
SELECT ALL ( + col1 ) DIV 61 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-445
SELECT ALL ( + col1 ) / 61 FROM tab1 AS cor0
----
0
0
0
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 - col0 AS col2 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + cor0.col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + col1 * + col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - - col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT 38 * cor0.col0 FROM tab0 AS cor0
----
1330
3382
912
query I rowsort
SELECT - - col2 AS col0 FROM tab2 cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-455
SELECT - col1 DIV 66 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-455
SELECT - col1 / 66 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL col1 + col1 FROM tab2 cor0
----
118
34
62
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0
----
54 values hashing to d8165ceb99ded93f34ad83c310a80ea7
query I rowsort
SELECT cor0.col0 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - - col2 + + ( - col2 ) AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col1 * col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT + cor0.col1 + - ( cor0.col2 ) * + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL col1 * - col0 * - col0 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT ALL - - col2 * + 49 FROM tab0 AS cor0
----
1617
4018
49
query I rowsort
SELECT + col1 + col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - col0 + - col0 AS col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT DISTINCT + col2 * + 95 AS col0 FROM tab1 AS cor0
----
5130
5415
9120
query I rowsort
SELECT DISTINCT + cor0.col1 * ( col2 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + col1 * col2 + col0 FROM tab0 cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-471
SELECT ALL - col0 DIV - cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
27
27
42
skipif mysql # not compatible
query I rowsort label-471
SELECT ALL - col0 / - cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
27
27
42
query I rowsort
SELECT - col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + col0 + + cor0.col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT col2 + cor0.col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + col0 + - 93 AS col1 FROM tab0 AS cor0
----
-4
-58
-69
query I rowsort
SELECT - cor0.col0 * col0 + + 37 * col1 AS col1 FROM tab2 AS cor0
----
-3901
-5612
1098
query I rowsort
SELECT ALL - col2 * + col2 + - col1 * col1 * + 1 AS col0 FROM tab1 AS cor0
----
-3349
-3592
-9385
query I rowsort
SELECT + col2 + - cor0.col0 * - col2 AS col2 FROM tab0 AS cor0
----
36
7380
825
query IIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab0 AS cor1
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0
query I rowsort
SELECT - 64 + - col1 FROM tab0 cor0
----
-150
-155
-161
query I rowsort
SELECT ALL + col1 * + col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
306
3540
992
query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab2 cor1
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9
query I rowsort
SELECT DISTINCT + col2 + + col2 AS col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL + - 31 + + col2 * + col1 + col0 AS col1 FROM tab2 AS cor0
----
1581
694
813
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab0, tab1 AS cor1
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab0 AS cor1
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993
query I rowsort
SELECT col1 * col1 FROM tab2
----
289
3481
961
query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
54 values hashing to fe43263cad63144a098cccb9cd58c32a
query IIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5
query I rowsort
SELECT DISTINCT col2 + ( col0 * tab1.col2 ) FROM tab1
----
216
3705
7776
query I rowsort
SELECT ALL col1 * - col1 AS col2 FROM tab2
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col0 FROM tab1
----
3
3
3
query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT + col0 * col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - col0 + - col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT - 47 + col1 * tab1.col0 AS col0 FROM tab1
----
31
593
993
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 col0 FROM tab1
----
68
68
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 * - col0 col0 FROM tab2
----
266
2964
3002
query IIIIII rowsort
SELECT * FROM tab2, tab2 cor0
----
54 values hashing to fe43263cad63144a098cccb9cd58c32a
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab0 cor0
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0
query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab1 AS cor0
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998
query I rowsort
SELECT - cor0.col0 * 8 FROM tab2, tab2 AS cor0
----
9 values hashing to 37adeb86c25a09c1cb1ab4304ae07bfd
query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab0 cor0
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0
query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2
----
-26
-27
-38
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab1 AS cor0, tab2 AS cor1
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed
query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0
----
54 values hashing to b010e320d66ab5b2711fc14e8fb58b01
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab0 AS cor1
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993
query IIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab2 AS cor1
----
243 values hashing to ea21cea53be47edd19229592e3d26141
query IIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d
query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 cor1
----
54 values hashing to b8667d60d280879b35ad1450a82b3a49
query I rowsort
SELECT DISTINCT + col1 FROM tab0
----
86
91
97
query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + col0 + col0 + + 43 AS col0 FROM tab1 AS cor0
----
171
203
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-517
SELECT ALL + + col0 - - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-517
SELECT ALL + + col0 - - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + - col1 * 5 FROM tab1 AS cor0
----
-127
14
15
query I rowsort
SELECT DISTINCT cor0.col0 * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + col1 * col0 * + cor0.col2 AS col2 FROM tab0 cor0
----
3395
664118
68112
query I rowsort
SELECT ALL + cor0.col2 + cor0.col0 * ( + col0 ) AS col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT cor0.col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - col2 + - 56 AS col0 FROM tab2 cor0
----
-82
-83
-94
query I rowsort
SELECT + col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 + + col0 + cor0.col2 FROM tab1 AS cor0
----
1216
135
761
query I rowsort
SELECT + - col0 + 81 FROM tab0 AS cor0
----
-8
46
57
query I rowsort
SELECT DISTINCT - cor0.col0 + col1 * + 73 AS col2 FROM tab2 AS cor0
----
1162
2256
4229
query I rowsort
SELECT ALL col1 - + col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + + cor0.col2 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + - col0 FROM tab2 AS cor0
----
-7
-78
-79
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab2, tab0 AS cor1
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 * - col0 col0 FROM tab0
----
-1190
-552
-7832
query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
54 values hashing to 69e208df4a305efdfcc036bb4b31e720
query I rowsort
SELECT 3 * - ( - col2 + + col0 ) AS col2 FROM tab1
----
-21
153
48
query I rowsort
SELECT - cor0.col0 AS col1 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
54 values hashing to b010e320d66ab5b2711fc14e8fb58b01
query I rowsort
SELECT ( col1 ) + - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT - + col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + col0 * - col0 AS col1 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-541
SELECT ALL + - col2 * col1 + + col2 DIV col0 + col1 * col0 col1 FROM tab2 AS cor0
----
-617
3068
697
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-541
SELECT ALL + - col2 * col1 + + col2 / col0 + col1 * col0 col1 FROM tab2 AS cor0
----
-617
3068
697
query I rowsort
SELECT DISTINCT + - col0 + col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL col0 * col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col1 FROM tab1 AS cor0
----
78
78
78
query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - 24 * 3 FROM tab1 AS cor0
----
-72
query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 66 * - 17 col0 FROM tab2 AS cor0
----
1122
query I rowsort
SELECT ALL - + 64 AS col1 FROM tab1 AS cor0
----
-64
-64
-64
query I rowsort
SELECT col2 + + col0 * + col1 * - col0 FROM tab0 AS cor0
----
-118824
-49503
-720729
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab2 AS cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0
query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-553
SELECT DISTINCT - cor0.col1 DIV - col0 AS col0 FROM tab1 AS cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-553
SELECT DISTINCT - cor0.col1 / - col0 AS col0 FROM tab1 AS cor0
----
0
8
query I rowsort
SELECT - + col1 * - col2 + + col2 FROM tab0 cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT + 72 * + col0 AS col0 FROM tab0 AS cor0
----
1728
2520
6408
query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0
----
54 values hashing to fe43263cad63144a098cccb9cd58c32a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 + + 76 col0 FROM tab2
----
117
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 69 + col1 * + col0 FROM tab1
----
1109
147
709
query I rowsort
SELECT ALL + + col1 AS col0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - ( col1 ) FROM tab0 AS cor0
----
-86
-91
-97
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab1 AS cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
query I rowsort
SELECT 62 FROM tab1 AS cor0
----
62
62
62
query I rowsort
SELECT col2 * + col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
54 values hashing to b8667d60d280879b35ad1450a82b3a49
onlyif mysql # use DIV operator for integer division
query I rowsort label-567
SELECT - - col2 DIV col1 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-567
SELECT - - col2 / col1 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT ALL col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - 99 * col2 * 83 FROM tab0 AS cor0
----
-271161
-673794
-8217
query I rowsort
SELECT ALL 77 FROM tab0 cor0
----
77
77
77
query I rowsort
SELECT + 61 + + col0 + ( + col0 ) FROM tab0 AS cor0
----
109
131
239
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 col2 FROM tab0
----
96
query I rowsort
SELECT - 71 * - 16 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a0bf15783cccd13961e689dd206aa328
query I rowsort
SELECT DISTINCT + col0 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 + col2 * ( col0 ) col0 FROM tab2 AS cor0
----
2079
240
3053
query I rowsort
SELECT col1 + col1 AS col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + 74 FROM tab2 AS cor0
----
74
74
74
query I rowsort
SELECT - 56 AS col0 FROM tab1 AS cor0
----
-56
-56
-56
onlyif mysql # use DIV operator for integer division
query I rowsort label-579
SELECT col1 DIV col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-579
SELECT col1 / col0 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT + col0 + + col1 + - col1 AS col1 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col1 ) + cor0.col1 col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT - - cor0.col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - + col0 * col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query IIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab0 AS cor1
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f
onlyif mysql # use DIV operator for integer division
query I rowsort label-585
SELECT col0 + col0 DIV 75 FROM tab0 cor0
----
24
35
90
skipif mysql # not compatible
query I rowsort label-585
SELECT col0 + col0 / 75 FROM tab0 cor0
----
24
35
90
query I rowsort
SELECT ALL 59 FROM tab2
----
59
59
59
query I rowsort
SELECT ALL - tab0.col1 * + col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT col0 * - cor0.col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-589
SELECT - col1 * + col0 - + col0 DIV 7 AS col2 FROM tab2 AS cor0
----
-1354
-218
-4613
skipif mysql # not compatible
query I rowsort label-589
SELECT - col1 * + col0 - + col0 / 7 AS col2 FROM tab2 AS cor0
----
-1354
-218
-4613
onlyif mysql # use DIV operator for integer division
query I rowsort label-590
SELECT - - 59 DIV + 88 - cor0.col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-590
SELECT - - 59 / + 88 - cor0.col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + - col1 * - col1 - cor0.col0 FROM tab2 AS cor0
----
210
3403
954
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - ( tab1.col1 ) * col0 col2 FROM tab1
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT + col2 FROM tab2
----
26
27
38
query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
54 values hashing to b010e320d66ab5b2711fc14e8fb58b01
query I rowsort
SELECT - col1 + + col0 * col2 FROM tab1 cor0
----
136
3638
7667
query I rowsort
SELECT DISTINCT - col2 + 49 FROM tab2
----
11
22
23
query I rowsort
SELECT ALL 56 + 80 * col0 AS col0 FROM tab2
----
616
6296
6376
query I rowsort
SELECT - col2 FROM tab2
----
-26
-27
-38
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2 AS cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca
query I rowsort
SELECT ALL - ( col0 ) * col1 + col1 AS col1 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT 1 + - 22 FROM tab1
----
-21
-21
-21
skipif mysql # not compatible
query I rowsort
SELECT cor0.col0 * col0 + - CAST ( col0 AS REAL ) FROM tab0 AS cor0
----
1190
552
7832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - cor0.col1 - col0 col2 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT - 14 + - col2 * - col0 AS col1 FROM tab2 AS cor0
----
175
2014
2988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT ( - col0 ) FROM tab0
----
-24
-35
-89
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab2 AS cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7
query I rowsort
SELECT ALL - ( col2 ) * + col1 + col0 + 39 AS col1 FROM tab2 AS cor0
----
-1417
-528
-791
onlyif mysql # use DIV operator for integer division
query I rowsort label-609
SELECT ALL col1 DIV + ( col0 ) AS col2 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-609
SELECT ALL col1 / + ( col0 ) AS col2 FROM tab2
----
0
0
4
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2 AS cor1
----
243 values hashing to ea21cea53be47edd19229592e3d26141
query I rowsort
SELECT tab1.col0 FROM tab1
----
3
64
80
query I rowsort
SELECT + col0 * col2 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT - tab1.col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT col2 FROM tab2
----
26
27
38
query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - col0 * + col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL col2 AS col0 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-619
SELECT ALL + + col2 DIV + cor0.col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-619
SELECT ALL + + col2 / + cor0.col2 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-620
SELECT col1 DIV + cor0.col0 FROM tab0 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-620
SELECT col1 / + cor0.col0 FROM tab0 cor0
----
1
2
3
query I rowsort
SELECT ALL - cor0.col0 * - ( - col0 ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - - col2 * ( - col2 ) AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL - + cor0.col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + - col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + cor0.col0 * ( - 67 ) FROM tab2 AS cor0
----
-469
-5226
-5293
query I rowsort
SELECT DISTINCT - col2 + + 16 * cor0.col2 * col0 FROM tab1 cor0
----
122784
2538
58311
query I rowsort
SELECT DISTINCT - col0 + 85 + + col2 FROM tab0 AS cor0
----
51
78
94
query I rowsort
SELECT - col0 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT + - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - + col0 + 74 FROM tab0 AS cor0
----
-15
39
50
query I rowsort
SELECT ALL - cor0.col2 + 49 AS col0 FROM tab0 AS cor0
----
-33
16
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT col2 AS col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT col1 * 55 FROM tab1 AS cor0
----
1430
550
715
query I rowsort
SELECT DISTINCT + + cor0.col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - + col1 + - 16 FROM tab0 cor0
----
-102
-107
-113
query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0
----
54 values hashing to fe43263cad63144a098cccb9cd58c32a
query I rowsort
SELECT - cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT DISTINCT + + 93 * + 28 AS col0 FROM tab1 AS cor0
----
2604
query I rowsort
SELECT ALL col0 + + col1 AS col0 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT - cor0.col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - col2 + - col1 AS col1 FROM tab0 cor0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-643
SELECT DISTINCT 63 DIV col2 AS col2 FROM tab0 AS cor0
----
0
1
63
skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT 63 / col2 AS col2 FROM tab0 AS cor0
----
0
1
63
query I rowsort
SELECT col2 + + 19 FROM tab0 AS cor0
----
101
20
52
query I rowsort
SELECT + col2 - + col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - + col1 * - cor0.col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - col1 + - col1 FROM tab1 AS cor0
----
-20
-26
-52
query IIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab2 AS cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0
query I rowsort
SELECT DISTINCT ( + 52 ) * + cor0.col0 AS col2 FROM tab0, tab1 AS cor0
----
156
3328
4160
query I rowsort
SELECT ALL 98 + 32 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ec85eb0bc5c919183cbcd7ee94cb222b
query I rowsort
SELECT DISTINCT - + 88 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-88
query I rowsort
SELECT + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-654
SELECT ALL - + col1 * cor0.col0 + - 17 + 53 DIV col0 AS col1 FROM tab0 AS cor0
----
-2079
-3411
-8116
skipif mysql # not compatible
query I rowsort label-654
SELECT ALL - + col1 * cor0.col0 + - 17 + 53 / col0 AS col1 FROM tab0 AS cor0
----
-2079
-3411
-8116
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab1 AS cor1
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 + + cor0.col1 col2 FROM tab1 AS cor0
----
53
56
69
query I rowsort
SELECT + col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + cor0.col2 * + 33 * - 49 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 910aba92f213ac03f42d290e14bfa6d5
query I rowsort
SELECT + ( col1 ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + + 57 * - col2 FROM tab0 AS cor0
----
-1881
-4674
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 AS cor1
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f
query I rowsort
SELECT ALL tab1.col1 FROM tab1
----
10
13
26
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab0 AS cor0
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00
query I rowsort
SELECT ALL + 50 AS col1 FROM tab0
----
50
50
50
query I rowsort
SELECT ( col2 + col0 ) FROM tab0
----
171
36
57
query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + col2 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL + col0 AS col2 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL + 90 AS col0 FROM tab1
----
90
90
90
query I rowsort
SELECT + col2 + - col1 FROM tab0 AS cor0
----
-53
-9
-96
query IIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab2 AS cor1
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d
query I rowsort
SELECT ALL col1 * - col2 + ( + ( - col1 ) ) * col2 + tab0.col1 FROM tab0
----
-14833
-5590
-97
query I rowsort
SELECT DISTINCT - col1 * col2 + - tab1.col2 AS col1 FROM tab1
----
-1344
-1458
-627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT ( col1 ) * + col2 + col2 * col0 * col2 AS col0 FROM tab2
----
114722
54262
5940
query I rowsort
SELECT ALL - - col1 + - col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL col1 * - col0 + + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - + col0 FROM tab1 AS cor0
----
-3
-64
-80
query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
54 values hashing to 341cdc053c309cf3abe57fa060ecf96e
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
54 values hashing to 341cdc053c309cf3abe57fa060ecf96e
query I rowsort
SELECT - 45 * + col0 + - col1 * tab2.col2 FROM tab2
----
-1152
-4201
-5044
query I rowsort
SELECT DISTINCT col1 * + col2 * col0 + + col0 FROM tab0
----
3430
664207
68136
query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT + col0 + + col1 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL - col0 AS col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT col0 FROM tab2
----
7
78
79
query I rowsort
SELECT - col2 AS col0 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT + col2 + tab2.col1 FROM tab2
----
55
58
85
query I rowsort
SELECT - col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT - col0 AS col2 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2
----
17
31
59
query I rowsort
SELECT tab1.col1 + col0 FROM tab1
----
29
74
93
query I rowsort
SELECT col2 * col2 + col1 * tab2.col0 FROM tab2
----
2787
5278
946
query I rowsort
SELECT col1 AS col0 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT + tab0.col1 * col2 AS col2 FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col2 FROM tab1, tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT col1 + col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL - col2 * col2 + col1 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT + - col0 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT - col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + cor0.col2 col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + + col0 AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + 61 + tab1.col0 - + col2 AS col1 FROM tab1
----
10
45
68
query I rowsort
SELECT DISTINCT col1 + - col1 + + col2 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL - 6 + + col0 FROM tab0
----
18
29
83
query I rowsort
SELECT col2 + - col0 + - col0 FROM tab1
----
-64
-71
48
query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0
----
54 values hashing to 69e208df4a305efdfcc036bb4b31e720
query I rowsort
SELECT ALL - tab1.col0 + - col0 AS col0 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT DISTINCT col1 * - col2 - + col2 FROM tab0
----
-2871
-7544
-98
query I rowsort
SELECT col0 * - col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL + col1 + - col2 - col1 AS col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT - 0 - + col1 AS col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT 86 * - tab2.col2 + col2 FROM tab2
----
-2210
-2295
-3230
query I rowsort
SELECT + col1 - - col1 * + col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT + col2 * col2 - + col2 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT DISTINCT col1 * col1 * + col2 AS col2 FROM tab0 AS cor0
----
244068
679042
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-722
SELECT - CAST( col1 AS SIGNED ) * - col1 - + col0 AS col0 FROM tab2 AS cor0
----
210
3403
954
skipif mysql # not compatible
query I rowsort label-722
SELECT - CAST ( col1 AS INTEGER ) * - col1 - + col0 AS col0 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT DISTINCT + 63 AS col2 FROM tab1 AS cor0
----
63
query I rowsort
SELECT + col2 + + col2 + col1 FROM tab0
----
152
255
99
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab0 AS cor1
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
query I rowsort
SELECT ALL - col1 + - col2 * + col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT col0 * + col1 AS col0 FROM tab1 cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * cor0.col1 col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - cor0.col1 * - col1 * - col0 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT col2 + - col2 FROM tab1 cor0
----
0
query I rowsort
SELECT DISTINCT col2 * - col1 + col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL - + col2 * - col2 + col0 AS col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - - cor0.col2 + cor0.col0 + col2 FROM tab2 cor0
----
130
155
61
query I rowsort
SELECT DISTINCT cor0.col1 * - col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + + 12 FROM tab0 AS cor0
----
12
query I rowsort
SELECT ALL - 64 AS col0 FROM tab2 AS cor0
----
-64
-64
-64
query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT - col0 * cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + 69 FROM tab1 cor0
----
69
69
69
query I rowsort
SELECT DISTINCT - - cor0.col1 + col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT - cor0.col2 * + col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT ( col2 ) FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT + col1 * tab2.col0 AS col2 FROM tab2
----
1343
217
4602
query IIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab0 cor1
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab2 AS cor0
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca
query I rowsort
SELECT DISTINCT - col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - + 52 FROM tab2 AS cor0
----
-52
-52
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-752
SELECT DISTINCT + 25 + - col2 DIV + col1 FROM tab0 AS cor0
----
25
skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT + 25 + - col2 / + col1 FROM tab0 AS cor0
----
25
query I rowsort
SELECT - cor0.col2 * col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - - 84 + col1 * col2 + - col0 FROM tab1 AS cor0
----
1252
1485
590
query I rowsort
SELECT col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL + col2 - col1 AS col0 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT + 67 * col2 + - col1 AS col0 FROM tab2 AS cor0
----
1683
1778
2529
query I rowsort
SELECT DISTINCT - col1 * col0 * col0 AS col1 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT - 98 AS col1 FROM tab0 AS cor0
----
-98
-98
-98
query IIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab2 AS cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b
query I rowsort
SELECT DISTINCT + col1 * - col0 * + col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL + + col2 * col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
query IIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab2 AS cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7
query I rowsort
SELECT DISTINCT + 59 AS col2 FROM tab2
----
59
query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab0 AS cor0
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-766
SELECT CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-766
SELECT CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 + - col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 64 col0 FROM tab1 AS cor0
----
128
144
67
query I rowsort
SELECT tab1.col0 AS col2 FROM tab1
----
3
64
80
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823
onlyif mysql # use DIV operator for integer division
query I rowsort label-771
SELECT - col0 DIV col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-771
SELECT - col0 / col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + 72 * col1 AS col2 FROM tab2 AS cor0
----
1224
2232
4248
query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab2 AS cor0
----
243 values hashing to ea21cea53be47edd19229592e3d26141
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab0 cor1
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d
query I rowsort
SELECT - tab1.col1 + + ( + col2 ) * + col2 FROM tab1
----
2890
3239
9203
query I rowsort
SELECT ALL col1 AS col2 FROM tab2
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-777
SELECT 25 DIV col0 FROM tab1 cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-777
SELECT 25 / col0 FROM tab1 cor0
----
0
0
8
query I rowsort
SELECT + cor0.col1 * + col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT + + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0
----
54 values hashing to 018801f36b33d2fe82cb95918ba502d6
query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 * - col2 col0 FROM tab1
----
486
513
864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-783
SELECT ALL CAST( + col2 AS SIGNED ) * - col1 FROM tab0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-783
SELECT ALL CAST ( + col2 AS INTEGER ) * - col1 FROM tab0
----
-2838
-7462
-97
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab2 AS cor0, tab1
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763
query I rowsort
SELECT + tab0.col1 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT + col1 * - 74 FROM tab1
----
-1924
-740
-962
query I rowsort
SELECT DISTINCT + 91 FROM tab2
----
91
query I rowsort
SELECT DISTINCT tab2.col1 * - col0 AS col0 FROM tab2
----
-1343
-217
-4602
query IIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab0 AS cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-790
SELECT CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-790
SELECT CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab0 AS cor0
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-792
SELECT - col0 + + ( + col1 + + CAST( - col1 AS SIGNED ) * col1 ) AS col0 FROM tab0
----
-7334
-8279
-9347
skipif mysql # not compatible
query I rowsort label-792
SELECT - col0 + + ( + col1 + + CAST ( - col1 AS INTEGER ) * col1 ) AS col0 FROM tab0
----
-7334
-8279
-9347
query I rowsort
SELECT + 34 FROM tab0
----
34
34
34
query I rowsort
SELECT + col2 - - ( col0 ) * col2 * col1 FROM tab2 AS cor0
----
119678
51072
5886
onlyif mysql # use DIV operator for integer division
query I rowsort label-795
SELECT col2 * - col1 + + 1 DIV col0 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-795
SELECT col2 * - col1 + + 1 / col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT col0 * - 47 AS col1 FROM tab0 AS cor0
----
-1128
-1645
-4183
onlyif mysql # use DIV operator for integer division
query I rowsort label-797
SELECT + col2 + + col0 DIV ( col0 ) AS col0 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-797
SELECT + col2 + + col0 / ( col0 ) AS col0 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT ALL - - col0 * col2 + + ( + col2 ) - + col0 FROM tab2 AS cor0
----
1976
209
2961
query I rowsort
SELECT DISTINCT - col2 * - col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + + col2 + ( + ( + cor0.col2 ) ) FROM tab1 AS cor0
----
108
114
192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - 43 + col2 col2 FROM tab0 cor0
----
3731
3995
4172
query I rowsort
SELECT - col2 * ( col0 ) - col1 FROM tab1 AS cor0
----
-188
-3658
-7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-804
SELECT DISTINCT - + cor0.col0 DIV tab0.col0 + 47 + 95 AS col1 FROM tab0, tab2, tab2 AS cor0
----
139
140
142
skipif mysql # not compatible
query I rowsort label-804
SELECT DISTINCT - + cor0.col0 / tab0.col0 + 47 + 95 AS col1 FROM tab0, tab2, tab2 AS cor0
----
139
140
142
query I rowsort
SELECT ALL - tab2.col2 + col1 AS col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT ALL 51 + tab0.col1 AS col2 FROM tab0
----
137
142
148
query I rowsort
SELECT ALL + ( col0 ) + - col0 FROM tab1
----
0
0
0
query I rowsort
SELECT col1 + - col0 AS col2 FROM tab0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-809
SELECT DISTINCT + col1 DIV - col2 - col2 AS col2 FROM tab0
----
-35
-83
-98
skipif mysql # not compatible
query I rowsort label-809
SELECT DISTINCT + col1 / - col2 - col2 AS col2 FROM tab0
----
-35
-83
-98
query I rowsort
SELECT DISTINCT col1 + - col0 FROM tab1
----
-54
-67
23
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab0 AS cor0
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d
query I rowsort
SELECT ALL - col0 + col0 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL + tab2.col1 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL 77 FROM tab1, tab0 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
54 values hashing to 341cdc053c309cf3abe57fa060ecf96e
query I rowsort
SELECT - tab1.col1 + - col1 * - tab1.col0 * col2 AS col0 FROM tab1
----
36470
4186
99827
query I rowsort
SELECT DISTINCT + tab1.col1 + 23 * - col0 AS col1 FROM tab1
----
-1462
-1827
-43
query I rowsort
SELECT + col2 + ( 77 ) AS col0 FROM tab2
----
103
104
115
query I rowsort
SELECT col0 * 35 AS col2 FROM tab1
----
105
2240
2800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( - 52 ) + col1 col0 FROM tab0 cor0
----
-4386
-4641
-4947
query I rowsort
SELECT DISTINCT + cor0.col1 * + ( - col1 ) + col2 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - + col2 * col0 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT - col1 * col0 + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT - col1 * + col1 + - ( cor0.col1 ) * col2 * cor0.col2 FROM tab2 AS cor0
----
-23560
-24837
-43365
query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT col0 * 41 AS col1 FROM tab0 AS cor0
----
1435
3649
984
query I rowsort
SELECT DISTINCT col2 * + ( - 28 ) + - col0 AS col0 FROM tab1 AS cor0
----
-1515
-1660
-2768
query I rowsort
SELECT DISTINCT col1 + ( - col0 ) + + col1 * col0 AS col0 FROM tab0 AS cor0
----
2126
3457
8101
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 * col2 col1 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT col2 * 36 FROM tab1
----
1944
2052
3456
query I rowsort
SELECT + col0 AS col0 FROM tab1
----
3
64
80
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab2 AS cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-834
SELECT ALL + col0 * CAST( col2 AS SIGNED ) col0 FROM tab2
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-834
SELECT ALL + col0 * CAST ( col2 AS INTEGER ) col0 FROM tab2
----
189
2028
3002
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab2 cor0
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0
----
54 values hashing to 2a7467bc6f55dbb61fbd4aa2bd0646a9
query I rowsort
SELECT + + 9 + + 67 AS col1 FROM tab0 AS cor0
----
76
76
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-838
SELECT DISTINCT - 59 DIV + col0 AS col1 FROM tab2 AS cor0
----
-8
0
skipif mysql # not compatible
query I rowsort label-838
SELECT DISTINCT - 59 / + col0 AS col1 FROM tab2 AS cor0
----
-8
0
query I rowsort
SELECT 78 * + 17 FROM tab1, tab1 AS cor0
----
9 values hashing to 2960fe9d9d65cbc56dfd35cf13275c80
query I rowsort
SELECT col0 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-841
SELECT - col0 * col0 DIV 99 FROM tab2
----
-61
-63
0
skipif mysql # not compatible
query I rowsort label-841
SELECT - col0 * col0 / 99 FROM tab2
----
-61
-63
0
query I rowsort
SELECT + tab2.col1 AS col0 FROM tab2
----
17
31
59
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab1 AS cor1
----
243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 40 col1 FROM tab2
----
-1240
-2360
-680
query I rowsort
SELECT tab2.col0 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-846
SELECT + tab1.col2 DIV 48 AS col0 FROM tab1
----
1
1
2
skipif mysql # not compatible
query I rowsort label-846
SELECT + tab1.col2 / 48 AS col0 FROM tab1
----
1
1
2
query I rowsort
SELECT ALL 44 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - ( col2 ) + + col2 - ( 2 ) col2 FROM tab1
----
1342
1456
625
onlyif mysql # use DIV operator for integer division
query I rowsort label-849
SELECT col2 DIV col1 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-849
SELECT col2 / col1 FROM tab2
----
0
0
2
query I rowsort
SELECT ALL + col2 AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT col0 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT tab0.col2 FROM tab0
----
1
33
82
query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
54 values hashing to d8165ceb99ded93f34ad83c310a80ea7
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0 CROSS JOIN tab2, tab2 AS cor1
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
query I rowsort
SELECT - + 35 * - ( col0 + cor0.col1 ) FROM tab2 AS cor0
----
1330
3360
4795
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 + - cor0.col1 col2 FROM tab2 cor0
----
1475
629
806
query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
54 values hashing to 3352c458f45211cf9aa3236c2cd6dd38
onlyif mysql # use DIV operator for integer division
query I rowsort label-858
SELECT - col0 + 83 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
-22
-88
48
skipif mysql # not compatible
query I rowsort label-858
SELECT - col0 + 83 / cor0.col2 AS col2 FROM tab0 AS cor0
----
-22
-88
48
query I rowsort
SELECT + + col2 * col1 + + col2 AS col2 FROM tab2 cor0
----
1560
684
864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-860
SELECT + + col2 * cor0.col2 - col1 * + CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1690
1733
4157
skipif mysql # not compatible
query I rowsort label-860
SELECT + + col2 * cor0.col2 - col1 * + CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1690
1733
4157
query I rowsort
SELECT - 65 FROM tab1 AS cor0
----
-65
-65
-65
query I rowsort
SELECT + + col1 * - 21 + - col1 AS col1 FROM tab0 AS cor0
----
-1892
-2002
-2134
query I rowsort
SELECT - ( + 75 ) + - col0 * + col2 FROM tab2 AS cor0
----
-2103
-264
-3077
query I rowsort
SELECT col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + cor0.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT col0 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab2 cor0
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-870
SELECT col1 DIV + col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-870
SELECT col1 / + col1 FROM tab1 AS cor0
----
1
1
1
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 ALL + 98 * - col2 AS col2 FROM tab1 AS cor0
----
-5292
-5586
-9408
query I rowsort
SELECT - + col1 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + 97 * col0 AS col2 FROM tab1 AS cor0
----
291
6208
7760
query I rowsort
SELECT col1 * - col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-876
SELECT col0 DIV col1 AS col0 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-876
SELECT col0 / col1 AS col0 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT 6 FROM tab1, tab1 cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT - + col1 * ( col1 ) FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL col2 FROM tab2
----
26
27
38
query I rowsort
SELECT - col0 + - col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1523
-736
-754
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1 AS cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998
query I rowsort
SELECT - - col1 * + col1 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT cor0.col0 AS col0 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) + + 80 * col2 + col0 * col2 col2 FROM tab2
----
2380
4167
6059
query I rowsort
SELECT - 47 FROM tab0
----
-47
-47
-47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 * 30 col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d50018813407ca4dbe6500b236224160
query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
54 values hashing to b8667d60d280879b35ad1450a82b3a49
onlyif mysql # use DIV operator for integer division
query I rowsort label-888
SELECT - + col1 DIV + col2 + col2 FROM tab0 cor0
----
-96
31
81
skipif mysql # not compatible
query I rowsort label-888
SELECT - + col1 / + col2 + col2 FROM tab0 cor0
----
-96
31
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-889
SELECT - 75 DIV + col1 FROM tab2 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-889
SELECT - 75 / + col1 FROM tab2 AS cor0
----
-1
-2
-4
query I rowsort
SELECT - 5 FROM tab1 AS cor0
----
-5
-5
-5
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2, tab2 AS cor1
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08
query I rowsort
SELECT DISTINCT tab0.col1 AS col0 FROM tab0, tab2 cor0
----
86
91
97
query I rowsort
SELECT - + col0 + col2 AS col0 FROM tab0 cor0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 col2 FROM tab1 AS cor0
----
24
24
24
query I rowsort
SELECT + col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + col0 + col1 FROM tab2 AS cor0
----
137
38
96
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 86dbd337f00ab84c613ad03d6fc06e28
query I rowsort
SELECT ALL col1 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT - tab2.col2 AS col0 FROM tab2
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-900
SELECT - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-900
SELECT - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query IIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab1 cor1
----
243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5
query I rowsort
SELECT col2 * - 79 * col2 AS col2 FROM tab1 AS cor0
----
-230364
-256671
-728064
query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0
----
3
64
80
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0, tab1 cor2
----
3645 values hashing to f464d40c605db608927f2c4d66190a23
query I rowsort
SELECT ALL + col1 + - 3 AS col1 FROM tab1 cor0
----
10
23
7
query I rowsort
SELECT DISTINCT + - col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + col1 + - col2 * col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT DISTINCT - col1 + col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT col2 + - cor0.col2 - + cor0.col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + 74 FROM tab2, tab1 AS cor0
----
74
query I rowsort
SELECT ALL 8 + tab2.col2 * col1 AS col0 FROM tab2
----
1542
654
845
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-913
SELECT ALL - CAST( NULL AS SIGNED ) + col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-913
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + - cor0.col2 + 89 * + col0 AS col1 FROM tab1 AS cor0
----
213
5639
7024
onlyif mysql # use DIV operator for integer division
query I rowsort label-915
SELECT ALL + + ( col2 ) + - col2 DIV col1 col1 FROM tab2 AS cor0
----
26
27
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-915
SELECT ALL + + ( col2 ) + - col2 / col1 col1 FROM tab2 AS cor0
----
26
27
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-916
SELECT ALL + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-916
SELECT ALL + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 87 FROM tab1 cor0
----
87
query I rowsort
SELECT - 2 * col1 * - col1 + - col1 - col1 * - col2 FROM tab1 AS cor0
----
1573
2730
760
query I rowsort
SELECT ALL - - col1 + col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT + col1 * - col1 + - col2 AS col2 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT ALL - + col2 + + col1 AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + ( - col1 * col1 ) FROM tab0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-925
SELECT - 6 DIV - cor0.col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-925
SELECT - 6 / - cor0.col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col2 + col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + ( + col0 ) * - ( - col1 ) AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT col2 + - col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-932
SELECT ALL col1 DIV col1 col1 FROM tab2
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-932
SELECT ALL col1 / col1 col1 FROM tab2
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-933
SELECT DISTINCT + ( col0 ) DIV - col0 AS col0 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT + ( col0 ) / - col0 AS col0 FROM tab1
----
-1
query I rowsort
SELECT + ( 58 ) - + col1 AS col1 FROM tab0
----
-28
-33
-39
query I rowsort
SELECT ALL 70 * + col0 FROM tab2
----
490
5460
5530
query I rowsort
SELECT - col2 * + col1 * - col1 AS col2 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT - col2 * col2 AS col0 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT - col2 AS col1 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL 1 FROM tab2, tab0, tab0 AS cor0, tab2 AS cor1
----
81 values hashing to 2a004dce2d308bae163576f54ee1a3fc
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab0 AS cor1
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00
query I rowsort
SELECT col2 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT col0 + col2 - + cor0.col1 * + col0 * + col0 AS col2 FROM tab2 AS cor0
----
-105980
-1485
-358852
query I rowsort
SELECT 1 + - col0 FROM tab0 AS cor0
----
-23
-34
-88
query I rowsort
SELECT 68 * + col1 AS col0 FROM tab1 AS cor0
----
1768
680
884
query I rowsort
SELECT ALL + 72 AS col2 FROM tab0 cor0
----
72
72
72
query I rowsort
SELECT col1 * - col1 - 52 FROM tab2 AS cor0
----
-1013
-341
-3533
query I rowsort
SELECT + + col0 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + 3 AS col1 FROM tab2 AS cor0
----
3
3
3
query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - col2 * col0 + ( 88 ) - - col1 AS col2 FROM tab1 cor0
----
-3550
-48
-7579
query I rowsort
SELECT ALL col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT DISTINCT - + col0 * + col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL col2 - - col0 AS col1 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT cor0.col1 * col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + - col2 + + col0 * col1 FROM tab0 cor0
----
2031
3394
8017
query I rowsort
SELECT - col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - col1 AS col1 FROM tab2
----
-17
-31
-59
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab0 AS cor1
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab0 AS cor0
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab1 AS cor0
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f
query I rowsort
SELECT - col1 * + tab1.col2 + + col2 FROM tab1
----
-1152
-1350
-513
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab1 cor0, tab2 AS cor1
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab1 cor1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9
query I rowsort
SELECT + col2 + col0 AS col0 FROM tab2
----
104
117
34
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab2 cor0
----
243 values hashing to 042fa16c43ab365359ee93c064e44127
query I rowsort
SELECT ALL - col0 * - col1 * 23 + 7 FROM tab2
----
105853
30896
4998
query I rowsort
SELECT DISTINCT tab1.col2 AS col2 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-968
SELECT - tab2.col0 * + col0 + + 16 * col2 DIV - col1 + + ( - col0 + - col0 ) AS col1 FROM tab2
----
-6247
-6434
-76
skipif mysql # not compatible
query I rowsort label-968
SELECT - tab2.col0 * + col0 + + 16 * col2 / - col1 + + ( - col0 + - col0 ) AS col1 FROM tab2
----
-6247
-6434
-76
query I rowsort
SELECT - col2 * + col0 FROM tab1
----
-162
-3648
-7680
query IIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab1 AS cor0
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
query I rowsort
SELECT DISTINCT + - 49 + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-1010
-338
-3530
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab1 AS cor1
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f
query I rowsort
SELECT ALL + + col0 + - col0 * - 91 AS col2 FROM tab2 AS cor0
----
644
7176
7268
query I rowsort
SELECT DISTINCT - ( - col2 * col2 ) + col0 * col1 + 60 * col1 * col0 FROM tab0
----
126993
207096
500763
query I rowsort
SELECT tab2.col2 * + tab2.col1 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to f5605ce6cbd6ecc79a4a887488bb6947
query I rowsort
SELECT 79 + col1 * + col0 FROM tab2
----
1422
296
4681
query I rowsort
SELECT col0 * col1 FROM tab2
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-978
SELECT col0 + + col2 DIV - 73 FROM tab0
----
24
35
88
skipif mysql # not compatible
query I rowsort label-978
SELECT col0 + + col2 / - 73 FROM tab0
----
24
35
88
query I rowsort
SELECT DISTINCT + tab0.col1 * ( + col1 ) AS col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + col1 * 10 * + col2 FROM tab2 AS cor0
----
15340
6460
8370
onlyif mysql # use DIV operator for integer division
query I rowsort label-982
SELECT + col1 DIV col0 + - col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-18
skipif mysql # not compatible
query I rowsort label-982
SELECT + col1 / col0 + - col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-18
query I rowsort
SELECT ALL + col1 * 47 FROM tab1 AS cor0
----
1222
470
611
query I rowsort
SELECT 5 AS col0 FROM tab2 cor0
----
5
5
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 65 col1 FROM tab1 cor0
----
-65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-986
SELECT DISTINCT - CAST( - 55 AS SIGNED ) * + col2 AS col2 FROM tab1 AS cor0
----
2970
3135
5280
skipif mysql # not compatible
query I rowsort label-986
SELECT DISTINCT - CAST ( - 55 AS INTEGER ) * + col2 AS col2 FROM tab1 AS cor0
----
2970
3135
5280
query I rowsort
SELECT ALL - cor0.col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( col0 ) + col1 * - ( col1 * col2 ) col1 FROM tab1
----
-1604
-36495
-9824
query I rowsort
SELECT + tab2.col2 + 76 AS col0 FROM tab2
----
102
103
114
query I rowsort
SELECT - 40 FROM tab1, tab0 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
onlyif mysql # use DIV operator for integer division
query I rowsort label-991
SELECT col1 * 7 + col0 DIV col0 AS col2 FROM tab2
----
120
218
414
skipif mysql # not compatible
query I rowsort label-991
SELECT col1 * 7 + col0 / col0 AS col2 FROM tab2
----
120
218
414
query I rowsort
SELECT + col1 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-994
SELECT tab0.col2 - CAST( + col0 AS SIGNED ) FROM tab0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-994
SELECT tab0.col2 - CAST ( + col0 AS INTEGER ) FROM tab0
----
-34
-7
9
query I rowsort
SELECT + + 65 AS col0 FROM tab0 AS cor0
----
65
65
65
query I rowsort
SELECT - col2 * col2 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT - col0 * - col1 + + col1 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT + - ( - 51 ) - col1 AS col0 FROM tab1 AS cor0
----
25
38
41
query I rowsort
SELECT ALL + 21 * + 56 + col1 AS col2 FROM tab1 AS cor0
----
1186
1189
1202
query I rowsort
SELECT col0 - col2 * - col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL - 52 AS col1 FROM tab2 AS cor0
----
-52
-52
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-1002
SELECT - ( - cor0.col2 ) - cor0.col0 DIV - ( - 93 ) FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-1002
SELECT - ( - cor0.col2 ) - cor0.col0 / - ( - 93 ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - 60 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1
-29
-43
query I rowsort
SELECT ALL - + col1 - col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT - cor0.col2 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1152
1350
513
onlyif mysql # use DIV operator for integer division
query I rowsort label-1006
SELECT col2 * + 71 - + col2 DIV - 76 AS col2 FROM tab1 AS cor0
----
3834
4047
6817
skipif mysql # not compatible
query I rowsort label-1006
SELECT col2 * + 71 - + col2 / - 76 AS col2 FROM tab1 AS cor0
----
3834
4047
6817
query I rowsort
SELECT ALL - + 75 * + col0 AS col2 FROM tab1 AS cor0
----
-225
-4800
-6000
query I rowsort
SELECT DISTINCT - col0 * col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + 54 + 52 AS col1 FROM tab2 AS cor0
----
106
query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) + col1 col2 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NULL BETWEEN NULL AND - col2
----
query I rowsort
SELECT - col1 AS col0 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT + col0 AS col2 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT - tab0.col2 FROM tab0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1016
SELECT DISTINCT + col1 - + tab2.col0 DIV - col1 col2 FROM tab2
----
21
31
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1016
SELECT DISTINCT + col1 - + tab2.col0 / - col1 col2 FROM tab2
----
21
31
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-1017
SELECT ALL col0 * col0 * col2 + + col2 DIV col2 col1 FROM tab1
----
233473
487
614401
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL col0 * col0 * col2 + + col2 / col2 col1 FROM tab1
----
233473
487
614401
query I rowsort
SELECT - col0 - + col0 FROM tab2
----
-14
-156
-158
query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT col0 + - col0 AS col1 FROM tab2
----
0
query I rowsort
SELECT ALL col0 * + col1 AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT - col2 AS col0 FROM tab2
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + tab1.col0 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL + col0 AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT col2 + - col0 AS col0 FROM tab1
----
-7
16
51
query I rowsort
SELECT ALL - col2 - col2 * col2 FROM tab2
----
-1482
-702
-756
query I rowsort
SELECT ALL col0 FROM tab1 cor0
----
3
64
80
query IIIIII rowsort
SELECT * FROM tab0, tab0 cor0
----
54 values hashing to b8667d60d280879b35ad1450a82b3a49
query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0
----
54 values hashing to d8165ceb99ded93f34ad83c310a80ea7
query I rowsort
SELECT cor0.col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT col0 + - col2 * col2 + + col1 * + col2 AS col2 FROM tab1 AS cor0
----
-1509
-2615
-7888
query I rowsort
SELECT + col1 * - col2 - - col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - col2 + cor0.col1 + - col0 * - col2 AS col1 FROM tab0 AS cor0
----
131
7307
845
query I rowsort
SELECT DISTINCT col0 * + col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + col2 AS col2 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT + tab1.col0 * + col2 * col0 FROM tab1
----
233472
486
614400
query I rowsort
SELECT tab2.col0 + col0 + col1 FROM tab2
----
175
215
45
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND ( - col0 )
----
query I rowsort
SELECT tab1.col2 + + col1 AS col1 FROM tab1
----
109
67
80
query I rowsort
SELECT ALL - col0 + + col2 + col0 FROM tab2
----
26
27
38
query I rowsort
SELECT - tab0.col2 + col1 FROM tab0
----
53
9
96
query I rowsort
SELECT - col0 FROM tab1
----
-3
-64
-80
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( col0 * col0 )
----
query I rowsort
SELECT DISTINCT col0 + + col1 AS col1 FROM tab1
----
29
74
93
query I rowsort
SELECT col2 + col0 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL - col2 * col1 * col1 FROM tab1
----
-16224
-36504
-5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-1051
SELECT DISTINCT - col0 DIV col0 + col2 * col2 + col1 FROM tab0
----
1174
6814
97
skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT - col0 / col0 + col2 * col2 + col1 FROM tab0
----
1174
6814
97
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 * - col2 ) <= ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1053
SELECT + col2 + col1 DIV col2 - + col0 FROM tab0
----
-6
11
63
skipif mysql # not compatible
query I rowsort label-1053
SELECT + col2 + col1 / col2 - + col0 FROM tab0
----
-6
11
63
query I rowsort
SELECT DISTINCT + col0 + col0 + + col0 * - col0 FROM tab2
----
-35
-5928
-6083
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 col2 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT col2 * col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL col1 + - col1 AS col0 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col0 * + col1 col0 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT col2 * + col1 FROM tab2 WHERE - col2 + col2 BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT + col1 * col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL + col2 + tab2.col0 * col0 FROM tab2
----
6110
6279
76
query I rowsort
SELECT ALL - col0 * col1 AS col0 FROM tab1
----
-1040
-640
-78
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN ( col0 * col0 * col2 ) AND ( col0 * col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * tab0.col1 col0 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT col0 + - col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col0 * - tab2.col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + col0 * col1 AS col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL + tab0.col2 * col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - col2 * col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL tab2.col2 + + col0 AS col0 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT + col0 * + col0 + - col2 AS col2 FROM tab2 AS cor0
----
22
6058
6203
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> NULL OR NOT col1 * - col1 * - col1 BETWEEN + col0 * + col1 AND - col1 * + col2
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT ALL + col0 - col0 * + col2 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT - - cor0.col0 AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - col0 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - col2 + - cor0.col2 * col2 FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT + + col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL + - cor0.col0 * cor0.col0 - cor0.col1 AS col0 FROM tab1 AS cor0
----
-35
-4106
-6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT col0 * col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - + col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + cor0.col0 + col1 AS col2 FROM tab0 cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col1 * col0 col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT col0 + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - - cor0.col1 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT + cor0.col0 * col0 + + col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL + col0 * cor0.col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT tab2.col1 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL col0 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT + tab1.col2 FROM tab1
----
54
57
96
query I rowsort
SELECT col1 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT - tab2.col0 AS col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL - col1 * + cor0.col0 + - cor0.col0 * - col2 AS col2 FROM tab2 AS cor0
----
-2574
-28
1659
query I rowsort
SELECT col0 + col0 AS col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL + col1 + col2 * - col0 * + cor0.col1 FROM tab1 AS cor0
----
-36470
-4186
-99827
query I rowsort
SELECT + - col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + tab1.col1 * col1 + col2 * col1 AS col0 FROM tab1
----
1417
2080
670
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) >= NULL
----
query I rowsort
SELECT + col0 * + col0 + + col1 FROM tab2
----
6143
6258
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col0 col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT tab2.col2 + col1 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + tab0.col2 AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT + col1 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT col1 AS col0 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT col0 FROM tab1
----
3
64
80
query I rowsort
SELECT col0 + + tab2.col2 * + col2 AS col1 FROM tab2
----
1523
736
754
query I rowsort
SELECT ALL + col1 + + col2 AS col0 FROM tab1
----
109
67
80
query I rowsort
SELECT + col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + + col1 * - col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + col0 * - 0 + - 37 * + col1 FROM tab2 AS cor0
----
-1147
-2183
-629
query I rowsort
SELECT col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + col0 FROM tab2 cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 4 col2 FROM tab0 AS cor0
----
37
5
86
query I rowsort
SELECT + col0 * col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + cor1.col1 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab2 cor0, tab2 AS cor1
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2
query I rowsort
SELECT - tab0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT DISTINCT - 43 + - tab0.col2 AS col0 FROM tab0, tab1, tab0 cor0
----
-125
-44
-76
query I rowsort
SELECT DISTINCT - tab0.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-1
-33
-82
query I rowsort
SELECT DISTINCT 48 AS col1 FROM tab0, tab1 AS cor0
----
48
query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
54 values hashing to d8165ceb99ded93f34ad83c310a80ea7
query I rowsort
SELECT ALL - col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT - col0 + col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + 40 FROM tab2, tab0 AS cor0
----
40
query I rowsort
SELECT - col0 - 85 * - col2 FROM tab1 AS cor0
----
4587
4781
8080
query I rowsort
SELECT ALL - tab2.col0 + col1 AS col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT + tab0.col2 + col0 * - col1 AS col1 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT col0 - col1 AS col0 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND col2 + col1
----
query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1139
SELECT ALL col0 DIV + col0 + - col0 AS col0 FROM tab0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL col0 / + col0 + - col0 AS col0 FROM tab0
----
-23
-34
-88
query I rowsort
SELECT - col0 FROM tab0 WHERE - col2 < col2 / col0
----
-24
-35
-89
query I rowsort
SELECT ALL + tab0.col1 AS col2 FROM tab0
----
86
91
97
query I rowsort
SELECT col1 * col1 + tab1.col2 AS col1 FROM tab1
----
157
265
730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - tab0.col1 + - col0 - + col2 FROM tab0
----
-133
-143
-262
query I rowsort
SELECT DISTINCT col2 FROM tab2
----
26
27
38
query I rowsort
SELECT + tab1.col0 FROM tab1 WHERE NOT ( col1 ) >= ( + col2 )
----
3
64
80
query I rowsort
SELECT ALL + col0 AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL col2 + + col0 FROM tab0
----
171
36
57
query I rowsort
SELECT + col0 AS col1 FROM tab2
----
7
78
79
query I rowsort
SELECT + tab2.col1 * + col0 - - col1 FROM tab2
----
1360
248
4661
query I rowsort
SELECT ALL col1 + col1 AS col2 FROM tab0
----
172
182
194
query I rowsort
SELECT + col0 AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT + col1 FROM tab2
----
17
31
59
query I rowsort
SELECT col0 AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL + col1 AS col2 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL col0 * + col2 * tab0.col0 AS col1 FROM tab0 WHERE NOT col0 NOT IN ( - col0 + col2 / col1 )
----
query I rowsort
SELECT tab2.col0 * col0 + - col1 * tab2.col1 FROM tab2
----
-912
2603
5952
query I rowsort
SELECT ALL col2 * - col0 FROM tab2
----
-189
-2028
-3002
query IIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab0 AS cor1
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993
query I rowsort
SELECT + col2 * col0 * col2 AS col2 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT ALL + 83 * + col0 AS col0 FROM tab0
----
1992
2905
7387
query I rowsort
SELECT - ( col0 ) AS col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL - tab1.col0 AS col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col2 FROM tab1, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT ALL cor0.col1 FROM tab0, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
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 + + col0 + - cor0.col1 FROM tab2 cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT col2 * + col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT col0 - - col1 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - col0 * - 64 + - col1 FROM tab0 AS cor0
----
1450
2143
5605
query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1174
SELECT - col0 DIV col1 + cor0.col2 FROM tab2 AS cor0
----
25
27
34
skipif mysql # not compatible
query I rowsort label-1174
SELECT - col0 / col1 + cor0.col2 FROM tab2 AS cor0
----
25
27
34
query I rowsort
SELECT col1 AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL cor0.col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1177
SELECT ALL + ( col1 ) DIV col2 - 7 AS col1 FROM tab0 AS cor0
----
-5
-6
90
skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL + ( col1 ) / col2 - 7 AS col1 FROM tab0 AS cor0
----
-5
-6
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 50 ) * cor0.col2 + 71 col0 FROM tab2 AS cor0
----
1371
1421
1971
query I rowsort
SELECT + ( - col2 ) * - col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) + col2 * + 55 + + col2 AS col1 FROM tab0 cor0
----
1824
21
4503
query I rowsort
SELECT col0 + col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + + ( col1 ) * col1 - 21 AS col1 FROM tab0 AS cor0
----
7375
8260
9388
query I rowsort
SELECT - col0 * + col0 FROM tab1
----
-4096
-6400
-9
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab1 AS cor0
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4
query I rowsort
SELECT ALL col2 + + 95 AS col1 FROM tab1
----
149
152
191
query I rowsort
SELECT DISTINCT - tab1.col2 AS col1 FROM tab1
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( - col2 ) col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT + col1 * tab2.col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT col0 AS col2 FROM tab0
----
24
35
89
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab2 AS cor0
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b
query I rowsort
SELECT ALL + col1 - + 97 * + tab2.col2 FROM tab2
----
-2463
-2588
-3669
onlyif mysql # use DIV operator for integer division
query I rowsort label-1193
SELECT col1 DIV col0 + - col2 * - col0 - + col2 DIV 98 FROM tab2
----
193
2028
3002
skipif mysql # not compatible
query I rowsort label-1193
SELECT col1 / col0 + - col2 * - col0 - + col2 / 98 FROM tab2
----
193
2028
3002
query I rowsort
SELECT DISTINCT col2 - + ( tab2.col1 ) FROM tab2
----
-33
-4
21
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab0 AS cor1
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0
query I rowsort
SELECT - ( col2 ) + - col2 AS col0 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT - col0 + col1 AS col0 FROM tab0
----
2
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1199
SELECT ALL CAST( NULL AS SIGNED ) + 62 / col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL CAST ( NULL AS INTEGER ) + 62 / col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( - 45 ) + col0 * col0 AS col0 FROM tab1 AS cor0
----
-36
4051
6355
query I rowsort
SELECT - cor0.col0 + 87 * - col1 AS col2 FROM tab0 AS cor0
----
-7506
-8006
-8474
query I rowsort
SELECT col0 * col0 * col0 + 1 * 67 * - col1 AS col2 FROM tab1 AS cor0
----
-1715
261474
511129
query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - + ( 12 ) + col0 AS col1 FROM tab2 AS cor0
----
-5
66
67
query I rowsort
SELECT + col1 + - col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT + - 53 * + 61 FROM tab1 AS cor0
----
-3233
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1208
SELECT CAST( 89 AS SIGNED ) + col0 * - col1 * 36 FROM tab1
----
-22951
-2719
-37351
skipif mysql # not compatible
query I rowsort label-1208
SELECT CAST ( 89 AS INTEGER ) + col0 * - col1 * 36 FROM tab1
----
-22951
-2719
-37351
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1 AS cor1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242
query I rowsort
SELECT + col0 AS col2 FROM tab1 cor0
----
3
64
80
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab1 AS cor1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9
query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
54 values hashing to b8667d60d280879b35ad1450a82b3a49
query I rowsort
SELECT + tab2.col0 + col1 * col2 AS col2 FROM tab2
----
1612
725
844
query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1
----
3
64
80
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab0 cor1
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1216
SELECT + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1216
SELECT + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
54 values hashing to b8667d60d280879b35ad1450a82b3a49
query I rowsort
SELECT col1 * cor0.col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + col2 * cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL 88 AS col2 FROM tab2
----
88
88
88
query I rowsort
SELECT + col0 * - cor0.col1 - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT - + col1 - - col1 AS col2 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 - - col1 col1 FROM tab2 AS cor0
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-1224
SELECT ALL + col2 DIV + col1 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL + col2 / + col1 FROM tab2 AS cor0
----
0
0
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-1225
SELECT + col1 + + 22 DIV 78 - col2 FROM tab2 AS cor0
----
-21
33
4
skipif mysql # not compatible
query I rowsort label-1225
SELECT + col1 + + 22 / 78 - col2 FROM tab2 AS cor0
----
-21
33
4
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 ALL - col1 + - col2 AS col1 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT - - cor0.col2 * + col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - 67 AS col1 FROM tab2, tab1 AS cor0
----
-67
query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 - - col0 col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT + - col0 * 64 FROM tab0 AS cor0
----
-1536
-2240
-5696
query I rowsort
SELECT DISTINCT - col0 * 69 + col0 AS col1 FROM tab2 AS cor0
----
-476
-5304
-5372
query IIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998
query I rowsort
SELECT - 29 + - cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c124f92154ee6bb89335e1ec4d734274
query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + + col2 * col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + cor0.col0 * - 47 AS col1 FROM tab1 AS cor0
----
-141
-3008
-3760
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 * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + - col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT col2 + 64 + col0 FROM tab2 cor0
----
168
181
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 * 36 col0 FROM tab2 AS cor0
----
108072
6804
73008
query I rowsort
SELECT - col0 * - 97 AS col0 FROM tab0 AS cor0
----
2328
3395
8633
query I rowsort
SELECT + col2 + col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - col0 * - col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + cor0.col0 + ( col0 ) FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 68 col1 FROM tab1 AS cor0
----
-3672
-3876
-6528
query I rowsort
SELECT col1 * - 55 * col0 AS col0 FROM tab1 AS cor0
----
-35200
-4290
-57200
query I rowsort
SELECT DISTINCT - - 35 * 83 AS col1 FROM tab2 AS cor0
----
2905
query I rowsort
SELECT ( + 96 ) * - col2 FROM tab2 AS cor0
----
-2496
-2592
-3648
query I rowsort
SELECT DISTINCT - ( col2 ) * col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT 57 + - 82 * + col0 FROM tab1 cor0
----
-189
-5191
-6503
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0
query I rowsort
SELECT ALL - + col1 * - 60 FROM tab1 AS cor0
----
1560
600
780
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col1 col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL + + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query IIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 cor1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c
query I rowsort
SELECT - 9 * + 7 FROM tab2, tab0 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1263
SELECT - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1263
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 96 + - cor0.col0 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-696
-7202
61
query I rowsort
SELECT ALL - + 54 * cor0.col2 FROM tab1 AS cor0
----
-2916
-3078
-5184
query I rowsort
SELECT - col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - col2 * col2 + col0 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT DISTINCT - 24 FROM tab1 AS cor0
----
-24
query I rowsort
SELECT DISTINCT - - 81 AS col1 FROM tab1 AS cor0
----
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-1270
SELECT DISTINCT - 41 DIV col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-1270
SELECT DISTINCT - 41 / col1 FROM tab0
----
0
query I rowsort
SELECT ALL + col0 + cor0.col0 * + ( 46 ) AS col1 FROM tab1 AS cor0
----
141
3008
3760
query I rowsort
SELECT + 54 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query I rowsort
SELECT DISTINCT - + cor0.col1 + col0 FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - tab0.col2 - tab0.col2 col1 FROM tab0
----
-36
-7380
-825
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab0 AS cor1
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 AS cor1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c
query I rowsort
SELECT - col2 * col1 FROM tab0 cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + 62 * cor0.col1 FROM tab0 AS cor0
----
5332
5642
6014
onlyif mysql # use DIV operator for integer division
query I rowsort label-1281
SELECT + col1 DIV - ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-1281
SELECT + col1 / - ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT 12 + + tab0.col2 FROM tab0
----
13
45
94
query I rowsort
SELECT - cor1.col1 + 17 - + cor0.col0 FROM tab2, tab1, tab0 AS cor0, tab0 AS cor1
----
81 values hashing to aa4b8c79934b1a7908c6b3e8819d67a4
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab1 AS cor0
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f
query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + col1 * - ( 52 ) FROM tab1 AS cor0
----
-1352
-520
-676
query I rowsort
SELECT ALL - - col0 + - cor0.col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1, tab2, tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT col1 * col0 AS col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT col2 + + col0 FROM tab2
----
104
117
34
query I rowsort
SELECT col1 * - col2 + col0 AS col0 FROM tab1
----
-1168
-1401
-506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab1
----
54
57
96
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab2 cor0
----
243 values hashing to ea21cea53be47edd19229592e3d26141
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab1 cor0
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab2 cor0
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d
query I rowsort
SELECT DISTINCT 88 AS col1 FROM tab1
----
88
query I rowsort
SELECT tab1.col1 FROM tab1
----
10
13
26
query I rowsort
SELECT - 51 AS col2 FROM tab0
----
-51
-51
-51
query I rowsort
SELECT ( + 7 ) + + col1 * col0 FROM tab2
----
1350
224
4609
query I rowsort
SELECT cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query IIIIII rowsort
SELECT * FROM tab1, tab1 cor0
----
54 values hashing to 341cdc053c309cf3abe57fa060ecf96e
query I rowsort
SELECT col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query IIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab1 AS cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
query I rowsort
SELECT - + 53 FROM tab2 AS cor0
----
-53
-53
-53
query I rowsort
SELECT + 84 AS col2 FROM tab0
----
84
84
84
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643
query I rowsort
SELECT ALL + 90 AS col2 FROM tab1
----
90
90
90
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0
----
54 values hashing to d8165ceb99ded93f34ad83c310a80ea7
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
54 values hashing to 2a7467bc6f55dbb61fbd4aa2bd0646a9
query I rowsort
SELECT DISTINCT ( col0 ) AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT - 57 AS col2 FROM tab1
----
-57
query I rowsort
SELECT col2 * - col2 FROM tab2
----
-1444
-676
-729
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab0 cor0, tab2 AS cor1
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c
query I rowsort
SELECT col2 * col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT col0 * - cor0.col0 + 46 FROM tab0 AS cor0
----
-1179
-530
-7875
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab0 AS cor1
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d
query I rowsort
SELECT - col1 - col1 AS col0 FROM tab0 cor0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT + + cor0.col0 + + col0 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT col1 * + col1 * + 43 AS col1 FROM tab1
----
29068
4300
7267
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab2 AS cor0
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab2 AS cor0
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0
query I rowsort
SELECT col2 * tab0.col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL 82 AS col2 FROM tab1
----
82
82
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - col0 col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + col0 * + col0 + + col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT + + cor0.col0 - + cor0.col1 * col2 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT col2 + + col0 * - 0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT col1 * ( 45 ) FROM tab2
----
1395
2655
765
query I rowsort
SELECT tab2.col2 AS col2 FROM tab2
----
26
27
38
query I rowsort
SELECT cor0.col0 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + ( 79 ) col1 FROM tab1
----
4266
4503
7584
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab2 AS cor0, tab1 AS cor1
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643
query I rowsort
SELECT ALL - col2 AS col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT + col2 AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT - col0 + - ( col1 + col0 ) * ( col0 + + col0 ) FROM tab2
----
-15247
-21450
-539
query I rowsort
SELECT ALL - col2 * 29 AS col0 FROM tab1
----
-1566
-1653
-2784
query I rowsort
SELECT + + col2 * col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + col0 + col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT col1 + - col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + ( - ( cor0.col0 ) ) col2 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT 47 + + col2 FROM tab2 AS cor0
----
73
74
85
query I rowsort
SELECT + - cor0.col1 * 49 AS col0 FROM tab1 AS cor0
----
-1274
-490
-637
query I rowsort
SELECT cor0.col1 * + col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT 31 FROM tab0
----
31
31
31
query I rowsort
SELECT DISTINCT + + 20 * col2 AS col1 FROM tab2 AS cor0
----
520
540
760
onlyif mysql # use DIV operator for integer division
query I rowsort label-1350
SELECT ALL col1 + 9 + + col1 DIV ( 69 ) FROM tab2 AS cor0
----
26
40
68
skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL col1 + 9 + + col1 / ( 69 ) FROM tab2 AS cor0
----
26
40
68
query I rowsort
SELECT col2 * 74 AS col1 FROM tab0 AS cor0
----
2442
6068
74
query I rowsort
SELECT ALL + + col2 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + - ( - 77 ) FROM tab2 AS cor0
----
77
77
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + cor0.col1 + col1 AS col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL ( cor0.col0 ) * + cor0.col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT 34 FROM tab0 AS cor0
----
34
34
34
query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + + ( col1 ) * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - 88 + cor0.col0 * + col2 AS col1 FROM tab2 cor0
----
101
1940
2914
query I rowsort
SELECT cor0.col1 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL - col2 * col2 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT + 92 * cor0.col0 FROM tab1 AS cor0
----
276
5888
7360
onlyif mysql # use DIV operator for integer division
query I rowsort label-1364
SELECT - 63 + col0 DIV col2 FROM tab0 AS cor0
----
-28
-62
-63
skipif mysql # not compatible
query I rowsort label-1364
SELECT - 63 + col0 / col2 FROM tab0 AS cor0
----
-28
-62
-63
query I rowsort
SELECT - 46 FROM tab1 AS cor0
----
-46
-46
-46
query IIIIII rowsort
SELECT * FROM tab2, tab1 cor0
----
54 values hashing to 69e208df4a305efdfcc036bb4b31e720
query I rowsort
SELECT 50 + + col1 AS col0 FROM tab0
----
136
141
147
query I rowsort
SELECT ALL - 95 FROM tab1
----
-95
-95
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-1369
SELECT + col2 - - col2 DIV col0 AS col0 FROM tab2
----
26
30
38
skipif mysql # not compatible
query I rowsort label-1369
SELECT + col2 - - col2 / col0 AS col0 FROM tab2
----
26
30
38
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 AS cor1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9
query I rowsort
SELECT ( 47 ) AS col1 FROM tab0
----
47
47
47
query I rowsort
SELECT ALL - col2 * - col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL + cor1.col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab2 AS cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0
query IIIIII rowsort
SELECT * FROM tab0, tab1 cor0
----
54 values hashing to b010e320d66ab5b2711fc14e8fb58b01
query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab2 AS cor1
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b
query I rowsort
SELECT 60 AS col1 FROM tab1 AS cor0
----
60
60
60
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 380241bbc503a31e70494611a87ffd99
query I rowsort
SELECT col0 * col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + - 61 * - cor0.col1 * + ( + ( col0 ) + - col1 ) AS col1 FROM tab2 AS cor0
----
-45384
64294
68381
query I rowsort
SELECT DISTINCT - - col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - - 25 FROM tab2 AS cor0
----
25
25
25
query I rowsort
SELECT ALL col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL 34 * col2 FROM tab2 AS cor0
----
1292
884
918
query I rowsort
SELECT ALL + col0 + + col0 AS col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL + col2 * + col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col0 * - col2 + + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT + col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - + col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT 50 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1550
2950
850
query I rowsort
SELECT - + 15 * + col2 + - 30 AS col2 FROM tab1 AS cor0
----
-1470
-840
-885
query I rowsort
SELECT ALL - 93 * col0 FROM tab1
----
-279
-5952
-7440
query IIIIII rowsort
SELECT * FROM tab1, tab0 cor0
----
54 values hashing to 2a7467bc6f55dbb61fbd4aa2bd0646a9
query I rowsort
SELECT DISTINCT - - col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL 29 FROM tab2 AS cor0
----
29
29
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab1
----
54
57
96
query I rowsort
SELECT - col0 + - col1 * 34 FROM tab2 cor0
----
-1061
-2084
-657
query I rowsort
SELECT + - col2 * 65 + - 82 FROM tab0 AS cor0
----
-147
-2227
-5412
query I rowsort
SELECT - col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT col0 * - col0 + + col0 * - col0 * - col1 AS col1 FROM tab1 AS cor0
----
225
36864
76800
query I rowsort
SELECT - + col2 * + col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT - col2 * + col0 + col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - col1 * + col0 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1405
SELECT - col1 DIV + col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-1405
SELECT - col1 / + col0 FROM tab0 AS cor0
----
-1
-2
-3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1406
SELECT ALL 7 * tab1.col0 * CAST( NULL AS SIGNED ) + + col2 + + tab1.col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL 7 * tab1.col0 * CAST ( NULL AS INTEGER ) + + col2 + + tab1.col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 AS col0 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT tab1.col2 AS col1 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1409
SELECT DISTINCT CAST( + col0 AS SIGNED ) DIV + col1 FROM tab1 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-1409
SELECT DISTINCT CAST ( + col0 AS INTEGER ) / + col1 FROM tab1 AS cor0
----
0
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-1410
SELECT 85 DIV - col1 FROM tab2 AS cor0
----
-1
-2
-5
skipif mysql # not compatible
query I rowsort label-1410
SELECT 85 / - col1 FROM tab2 AS cor0
----
-1
-2
-5
query I rowsort
SELECT ALL + col1 + col1 FROM tab2 cor0
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-1412
SELECT - CAST( 7 AS SIGNED ) DIV col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1412
SELECT - CAST ( 7 AS INTEGER ) / col2 FROM tab1 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 57 col0 FROM tab0
----
-1881
-4674
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 39 + - 27 * - tab2.col0 col0 FROM tab2
----
2189
2204
259
query I rowsort
SELECT - - col1 * 99 + col0 AS col2 FROM tab1 cor0
----
1054
1367
2577
query I rowsort
SELECT + col2 FROM tab2 AS cor0
----
26
27
38
query IIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993
query I rowsort
SELECT + - col0 - col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-1419
SELECT DISTINCT - + col1 + - col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT - + col1 + - col2 / + col2 AS col0 FROM tab0 AS cor0
----
-87
-92
-98
query I rowsort
SELECT DISTINCT + col0 - - col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - cor0.col0 * + col0 * - col0 + col0 FROM tab2 AS cor0
----
350
474630
493118
query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + col1 + - col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + + ( - col2 ) + + 5 AS col1 FROM tab1 cor0
----
-49
-52
-91
query I rowsort
SELECT - + col2 * + col1 + + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT col1 - col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + + col1 + + cor0.col1 * col0 + 88 AS col2 FROM tab2 AS cor0
----
1448
336
4749
query I rowsort
SELECT - 84 + - col0 FROM tab0 AS cor0
----
-108
-119
-173
query I rowsort
SELECT ALL col2 * col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + + col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT 98 - col2 AS col2 FROM tab2 AS cor0
----
60
71
72
query I rowsort
SELECT ALL + col2 * + col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT col1 + col0 * col2 + + ( - col1 * - ( col2 ) ) AS col0 FROM tab0 AS cor0
----
14851
229
3716
onlyif mysql # use DIV operator for integer division
query I rowsort label-1436
SELECT DISTINCT col1 DIV - col0 AS col1 FROM tab1 cor0
----
-8
0
skipif mysql # not compatible
query I rowsort label-1436
SELECT DISTINCT col1 / - col0 AS col1 FROM tab1 cor0
----
-8
0
query I rowsort
SELECT DISTINCT + col2 + col2 * col1 FROM tab1 AS cor0
----
1344
1458
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 col1 FROM tab0 AS cor0
----
171
36
57
query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
54 values hashing to 2a7467bc6f55dbb61fbd4aa2bd0646a9
query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
54 values hashing to 018801f36b33d2fe82cb95918ba502d6
onlyif mysql # use DIV operator for integer division
query I rowsort label-1441
SELECT DISTINCT + col0 DIV 19 AS col2 FROM tab0 AS cor0
----
1
4
skipif mysql # not compatible
query I rowsort label-1441
SELECT DISTINCT + col0 / 19 AS col2 FROM tab0 AS cor0
----
1
4
query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT + - col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + + col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - - 90 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT ALL + tab0.col1 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT col0 + cor0.col1 AS col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT - col2 * col0 + - ( - col0 ) FROM tab0
----
-7209
-768
0
query I rowsort
SELECT - col1 AS col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT col2 AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL + col0 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) + + col2 col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + 91 + col2 AS col2 FROM tab2 cor0
----
117
118
129
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab1 cor1, tab0 AS cor2
----
972 values hashing to 43f0c51511c8642d19190fd4dfcf905a
query I rowsort
SELECT DISTINCT + - ( + col1 ) - col2 AS col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT - + col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1457
SELECT DISTINCT + 63 - 48 * col0 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1457
SELECT DISTINCT + 63 - 48 * col0 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
query I rowsort
SELECT + ( + cor0.col2 ) * col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + 70 FROM tab0, tab0 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col1 col0 FROM tab0
----
86
91
97
query I rowsort
SELECT + col2 FROM tab2
----
26
27
38
query I rowsort
SELECT col2 AS col2 FROM tab2
----
26
27
38
query I rowsort
SELECT - 78 * tab0.col2 + col0 * + col0 FROM tab0
----
-1998
1147
1525
query I rowsort
SELECT col0 - col0 * - col0 * - 21 FROM tab1
----
-134320
-186
-85952
onlyif mysql # use DIV operator for integer division
query I rowsort label-1465
SELECT col0 * col2 + + col2 DIV - ( - 91 * col2 ) FROM tab0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-1465
SELECT col0 * col2 + + col2 / - ( - 91 * col2 ) FROM tab0
----
35
7298
792
query I rowsort
SELECT col0 - col1 AS col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT + col2 - + 85 FROM tab2
----
-47
-58
-59
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 AS cor1
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
query I rowsort
SELECT ALL + col0 * - cor0.col0 + - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-6760
-7685
-778
query I rowsort
SELECT ALL - col2 + - cor0.col1 * - col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
33
82
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab1 cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
query I rowsort
SELECT + cor0.col0 + - 50 AS col2 FROM tab2 cor0
----
-43
28
29
query I rowsort
SELECT + ( - col0 ) - col2 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT ALL - col2 FROM tab2
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1476
SELECT ALL - CAST( NULL AS SIGNED ) + cor0.col1 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1476
SELECT ALL - CAST ( NULL AS INTEGER ) + cor0.col1 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * 1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + - ( + ( col1 ) ) FROM tab0 AS cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT ( col2 ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - ( 72 ) * + col2 AS col0 FROM tab2 cor0
----
-1872
-1944
-2736
query I rowsort
SELECT ALL - - col2 AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + - col0 * - col1 * col1 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT 93 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT DISTINCT + col0 * + col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - tab1.col0 * col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL + 30 * col2 FROM tab2
----
1140
780
810
query I rowsort
SELECT ALL + + col2 + + col1 * - col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab0 cor0
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT col0 AS col2 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT - + col2 * cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
query I rowsort
SELECT DISTINCT + col1 * - col2 + - col2 * + 2 * + col2 FROM tab2 AS cor0
----
-2295
-2886
-3534
query I rowsort
SELECT + 88 * + col2 AS col0 FROM tab0 cor0
----
2904
7216
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1497
SELECT ALL - - col0 * - col0 + CAST( 24 AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
-4668
-5833
695
skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL - - col0 * - col0 + CAST ( 24 AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
-4668
-5833
695
query IIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab0 AS cor1
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
query I rowsort
SELECT col2 + - col0 * col1 FROM tab2 cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL + col0 + + col0 + + col0 FROM tab1 AS cor0
----
192
240
9
query I rowsort
SELECT DISTINCT col0 - cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT - col1 * col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + + col0 - + col2 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT - col0 * col0 * - 8 FROM tab0
----
4608
63368
9800
query I rowsort
SELECT - col1 FROM tab0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 12 col1 FROM tab1 AS cor0
----
22
25
38
query I rowsort
SELECT ALL - col0 * + 44 FROM tab1 AS cor0
----
-132
-2816
-3520
query I rowsort
SELECT DISTINCT - col0 + col1 FROM tab2
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1509
SELECT DISTINCT + tab0.col2 * tab0.col1 * - ( col2 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-1509
SELECT DISTINCT + tab0.col2 * tab0.col1 * - ( col2 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT col1 + - col1 FROM tab1
----
0
query I rowsort
SELECT col1 + col0 FROM tab0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * cor0.col1 col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 col0 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1516
SELECT - col0 DIV ( + col0 ) col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1516
SELECT - col0 / ( + col0 ) col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + - col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL col1 AS col0 FROM tab1 cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1519
SELECT cor0.col2 DIV - 42 + - col2 + + col0 FROM tab1 AS cor0
----
-18
-52
6
skipif mysql # not compatible
query I rowsort label-1519
SELECT cor0.col2 / - 42 + - col2 + + col0 FROM tab1 AS cor0
----
-18
-52
6
query I rowsort
SELECT DISTINCT + + col0 * - col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-1521
SELECT ALL - + col0 DIV - 79 AS col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL - + col0 / - 79 AS col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + + col0 * - col2 AS col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - + col2 AS col1 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT ALL col0 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - ( + col0 ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL 65 AS col2 FROM tab1 AS cor0
----
65
65
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col2 FROM tab1 AS cor0
----
83
83
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-1529
SELECT ALL col2 DIV 98 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL col2 / 98 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 + col2 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-1531
SELECT + - cor0.col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1531
SELECT + - cor0.col1 / + col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 91 + col2 col1 FROM tab1 AS cor0
----
-34
-37
5
query I rowsort
SELECT DISTINCT - + cor0.col0 * 52 FROM tab2 AS cor0
----
-364
-4056
-4108
query I rowsort
SELECT 77 * - 45 * col0 FROM tab0 AS cor0
----
-121275
-308385
-83160
query I rowsort
SELECT ALL + 29 + + col1 FROM tab2 AS cor0
----
46
60
88
query I rowsort
SELECT + + 79 * + col0 FROM tab1 AS cor0
----
237
5056
6320
query I rowsort
SELECT ALL - - col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + cor0.col2 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1540
SELECT DISTINCT - col0 + col1 DIV col0 AS col1 FROM tab1 AS cor0
----
-64
-80
5
skipif mysql # not compatible
query I rowsort label-1540
SELECT DISTINCT - col0 + col1 / col0 AS col1 FROM tab1 AS cor0
----
-64
-80
5
query I rowsort
SELECT DISTINCT - - 37 * col1 + col1 FROM tab2 AS cor0
----
1178
2242
646
query I rowsort
SELECT - ( col2 ) + - cor0.col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0
----
17
31
59
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab2 AS cor0
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d
query I rowsort
SELECT ALL col0 * tab1.col2 + col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT - col0 + 43 FROM tab2 AS cor0
----
-35
-36
36
query I rowsort
SELECT DISTINCT - col2 * + col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1548
SELECT DISTINCT + + CAST( - col0 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-1548
SELECT DISTINCT + + CAST ( - col0 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL 46 FROM tab1 cor0
----
46
46
46
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) * col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL + cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT + col1 * + col2 FROM tab0 AS cor0
----
2838
7462
97
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 803a5565701c4ced6bba69940782c17a
query I rowsort
SELECT cor0.col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - tab2.col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT + tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab2, tab2 AS cor1
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7
query I rowsort
SELECT ALL - col0 AS col2 FROM tab1
----
-3
-64
-80
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab0 AS cor1
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d
query I rowsort
SELECT DISTINCT + 66 AS col0 FROM tab1, tab0 AS cor0
----
66
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab0 cor0
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d
query I rowsort
SELECT - col2 AS col2 FROM tab1
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT tab2.col2 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL + col2 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL col1 FROM tab0
----
86
91
97
query I rowsort
SELECT tab0.col0 FROM tab0
----
24
35
89
query I rowsort
SELECT - col2 AS col1 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - cor0.col2 * ( + cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - + cor0.col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - cor0.col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT 84 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
query I rowsort
SELECT DISTINCT col1 + + col2 FROM tab0
----
119
173
98
query I rowsort
SELECT col1 * cor0.col1 + 54 AS col0 FROM tab2 AS cor0
----
1015
343
3535
query I rowsort
SELECT cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab1 AS cor0
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
query IIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab1 AS cor1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9
query I rowsort
SELECT ( + col1 ) * col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL + tab0.col1 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT + 63 * col1 FROM tab1
----
1638
630
819
query I rowsort
SELECT ( col2 ) * col1 + col2 FROM tab2 cor0
----
1560
684
864
query I rowsort
SELECT + + col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1586
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-1586
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + col2 * col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + ( - col0 ) FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1590
SELECT ALL + + 5 + col2 * CAST( - ( - col2 ) AS SIGNED ) FROM tab0 AS cor0
----
1094
6
6729
skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL + + 5 + col2 * CAST ( - ( - col2 ) AS INTEGER ) FROM tab0 AS cor0
----
1094
6
6729
query I rowsort
SELECT ALL cor0.col2 * col1 * col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT - 63 AS col0 FROM tab0 AS cor0
----
-63
-63
-63
onlyif mysql # use DIV operator for integer division
query I rowsort label-1593
SELECT ALL - col0 DIV cor0.col0 FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1593
SELECT ALL - col0 / cor0.col0 FROM tab2 cor0
----
-1
-1
-1
query I rowsort
SELECT ALL 38 * - col0 FROM tab0
----
-1330
-3382
-912
query I rowsort
SELECT - + 87 + cor0.col0 FROM tab2 AS cor0
----
-8
-80
-9
query I rowsort
SELECT + col0 + col2 AS col1 FROM tab2 AS cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 73 col1 FROM tab2 AS cor0
----
-73
query I rowsort
SELECT DISTINCT + col1 + + col1 * + col1 + col2 AS col1 FROM tab2 AS cor0
----
1019
344
3566
onlyif mysql # use DIV operator for integer division
query I rowsort label-1599
SELECT ALL col2 + + cor0.col0 + col0 DIV + col1 FROM tab2 AS cor0
----
105
121
34
skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL col2 + + cor0.col0 + col0 / + col1 FROM tab2 AS cor0
----
105
121
34
query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - 77 AS col2 FROM tab2 AS cor0
----
-77
-77
-77
query I rowsort
SELECT ALL col0 * - col2 + - col0 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 + col0 col0 FROM tab0 AS cor0
----
-6
5
59
query I rowsort
SELECT DISTINCT + - col2 + col0 AS col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + cor0.col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + + col2 FROM tab0 AS cor0
----
1
33
82
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab1 AS cor0
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f
query I rowsort
SELECT DISTINCT ( + tab0.col2 + + 56 ) FROM tab0
----
138
57
89
query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT - col1 * col2 AS col1 FROM tab0
----
-2838
-7462
-97
query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0
----
54 values hashing to b010e320d66ab5b2711fc14e8fb58b01
query I rowsort
SELECT ALL tab1.col0 AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT col1 AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL - cor0.col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT - 53 * + col2 FROM tab2
----
-1378
-1431
-2014
query I rowsort
SELECT col1 + - col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 AS col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT - 75 FROM tab0
----
-75
-75
-75
query I rowsort
SELECT + col1 * col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + col0 FROM tab1 cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2
----
7
78
79
query I rowsort
SELECT + col0 * 92 + col2 AS col0 FROM tab1 AS cor0
----
330
5945
7456
query I rowsort
SELECT col2 + col2 AS col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL - col1 - 72 FROM tab0 cor0
----
-158
-163
-169
query I rowsort
SELECT - + cor0.col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - col2 + ( - col0 ) FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT - + cor0.col1 + + cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
272
3422
930
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab2 AS cor0
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b
query I rowsort
SELECT - tab2.col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + col1 + col1 FROM tab2 AS cor0
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-1634
SELECT ALL col1 + + 72 DIV col1 - - cor0.col1 FROM tab2 AS cor0
----
119
38
64
skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL col1 + + 72 / col1 - - cor0.col1 FROM tab2 AS cor0
----
119
38
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-1635
SELECT ALL col1 DIV col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL col1 / col0 FROM tab2 AS cor0
----
0
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 68 * + col2 col1 FROM tab1 AS cor0
----
-3646
-3866
-6515
query I rowsort
SELECT - - col1 + 94 AS col0 FROM tab0 AS cor0
----
180
185
191
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
query I rowsort
SELECT ALL - col2 + - col0 AS col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT + ( - col1 ) + col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1641
SELECT - - col0 DIV col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1641
SELECT - - col0 / col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT + + col1 * ( col0 + + cor0.col0 ) FROM tab0 AS cor0
----
16198
4128
6790
query I rowsort
SELECT col2 * col1 * + col0 AS col2 FROM tab1 AS cor0
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-1644
SELECT col1 DIV 54 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1644
SELECT col1 / 54 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + 44 * - col1 - col1 AS col0 FROM tab1 AS cor0
----
-1170
-450
-585
query I rowsort
SELECT - ( col2 ) * col0 + + col2 + + col2 FROM tab1 AS cor0
----
-3534
-54
-7488
query I rowsort
SELECT - col2 * - 73 AS col0 FROM tab0 cor0
----
2409
5986
73
query I rowsort
SELECT + col1 * - col0 + + cor0.col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 76 * col0 col0 FROM tab1 AS cor0
----
-228
-4864
-6080
query I rowsort
SELECT DISTINCT 63 * cor0.col1 FROM tab0 AS cor0
----
5418
5733
6111
query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
54 values hashing to 69e208df4a305efdfcc036bb4b31e720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1652
SELECT + CAST( NULL AS SIGNED ) * + col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1652
SELECT + CAST ( NULL AS INTEGER ) * + col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * - col2 - - cor0.col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
54 values hashing to 018801f36b33d2fe82cb95918ba502d6
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab0, tab0 AS cor1
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0
query I rowsort
SELECT ALL tab2.col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-1657
SELECT - col0 + tab1.col1 DIV col2 AS col1 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-1657
SELECT - col0 + tab1.col1 / col2 AS col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT col2 * 83 FROM tab1
----
4482
4731
7968
query I rowsort
SELECT DISTINCT - 34 * col2 * + col0 FROM tab1
----
-124032
-261120
-5508
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1660
SELECT ALL - CAST( 43 AS SIGNED ) * tab2.col2 FROM tab2
----
-1118
-1161
-1634
skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL - CAST ( 43 AS INTEGER ) * tab2.col2 FROM tab2
----
-1118
-1161
-1634
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab2 cor0
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca
query I rowsort
SELECT ALL 35 FROM tab1
----
35
35
35
query I rowsort
SELECT DISTINCT - col0 * - 54 FROM tab1
----
162
3456
4320
query I rowsort
SELECT DISTINCT - 76 * - 57 * col1 FROM tab0
----
372552
394212
420204
query I rowsort
SELECT DISTINCT - col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT + col1 * - 32 + tab2.col0 FROM tab2
----
-1810
-465
-985
query I rowsort
SELECT - 26 + + col1 FROM tab0
----
60
65
71
query I rowsort
SELECT ALL + col2 + col1 AS col0 FROM tab2 AS cor0
----
55
58
85
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to a8d2ba8b8eb568b0a9a1771ccb0a8f23
query I rowsort
SELECT - 81 + + cor0.col0 * - col0 FROM tab2 AS cor0
----
-130
-6165
-6322
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab1 AS cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4
query I rowsort
SELECT DISTINCT - ( col0 ) * col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT - col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL + + cor0.col0 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to 63f734facb33901524f6f2c799118db4
query I rowsort
SELECT + 20 + + col0 * - col1 FROM tab1 AS cor0
----
-1020
-58
-620
query I rowsort
SELECT ALL + col1 * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT col0 * - col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + - col2 AS col1 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + - 97 FROM tab2 AS cor0
----
-97
query I rowsort
SELECT ALL - + 63 + col2 * 98 * - 16 FROM tab1 cor0
----
-150591
-84735
-89439
query I rowsort
SELECT ALL - 33 * col2 FROM tab0 AS cor0
----
-1089
-2706
-33
query I rowsort
SELECT 81 + col0 - ( + ( - col1 ) + - 24 * col2 ) FROM tab0 AS cor0
----
2229
237
983
query I rowsort
SELECT DISTINCT + 33 * - col1 AS col1 FROM tab0 AS cor0
----
-2838
-3003
-3201
query I rowsort
SELECT - 42 * - col0 FROM tab2 AS cor0
----
294
3276
3318
query I rowsort
SELECT ALL - 24 FROM tab0 AS cor0
----
-24
-24
-24
query I rowsort
SELECT + + col2 + col2 FROM tab0 AS cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-1687
SELECT ALL + col1 DIV + col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL + col1 / + col1 FROM tab2 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1688
SELECT DISTINCT + - col0 + col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT + - col0 + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - 51 + col0 AS col0 FROM tab2 AS cor0
----
-44
27
28
query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + col1 + + cor0.col2 * ( + col0 ) AS col1 FROM tab0 cor0
----
132
7389
878
query I rowsort
SELECT + + col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL cor0.col0 * col0 - + 58 * 69 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
132642
336085
5227
onlyif mysql # use DIV operator for integer division
query I rowsort label-1694
SELECT ALL - + 28 * col1 * ( col2 ) + col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
-15961
-34945
-39313
skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL - + 28 * col1 * ( col2 ) + col2 / - col2 AS col0 FROM tab1 AS cor0
----
-15961
-34945
-39313
query I rowsort
SELECT + 1 + + col0 AS col1 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL + 79 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT col2 - col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT + col1 * 52 - + col2 * + col0 AS col1 FROM tab0
----
-2566
3680
5009
query I rowsort
SELECT + 29 + + ( col0 ) FROM tab2
----
107
108
36
query I rowsort
SELECT ALL - + col0 FROM tab1 cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col2 * - 43 col0 FROM tab2 AS cor0
----
-1144
-1188
-1672
query I rowsort
SELECT DISTINCT cor0.col2 * col2 * col2 AS col1 FROM tab0 AS cor0
----
1
35937
551368
query I rowsort
SELECT ALL 38 * col2 FROM tab0 AS cor0
----
1254
3116
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1705
SELECT ALL + col2 DIV col2 + + CAST( - col1 AS SIGNED ) * col1 * - col1 + col2 * - col2 FROM tab0 AS cor0
----
634968
746848
912673
skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL + col2 / col2 + + CAST ( - col1 AS INTEGER ) * col1 * - col1 + col2 * - col2 FROM tab0 AS cor0
----
634968
746848
912673
query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ( col0 ) AS col2 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1708
SELECT - col1 + 67 * cor0.col0 DIV + cor0.col1 FROM tab1 AS cor0
----
-19
399
418
skipif mysql # not compatible
query I rowsort label-1708
SELECT - col1 + 67 * cor0.col0 / + cor0.col1 FROM tab1 AS cor0
----
-19
399
418
query I rowsort
SELECT + col2 * + col2 + + 62 + - col1 FROM tab2 AS cor0
----
1489
679
760
onlyif mysql # use DIV operator for integer division
query I rowsort label-1710
SELECT + col2 DIV 83 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1710
SELECT + col2 / 83 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + + col0 + col2 * col0 AS col1 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT ALL cor0.col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + + col2 + + 41 * + col1 AS col2 FROM tab1 AS cor0
----
1120
467
629
onlyif mysql # use DIV operator for integer division
query I rowsort label-1714
SELECT - col1 + + col2 DIV - 20 AS col0 FROM tab1 cor0
----
-12
-17
-28
skipif mysql # not compatible
query I rowsort label-1714
SELECT - col1 + + col2 / - 20 AS col0 FROM tab1 cor0
----
-12
-17
-28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + + col1 AS col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL + col0 * + col0 AS col1 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + 68 AS col0 FROM tab2
----
68
query I rowsort
SELECT ALL + col0 * col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT col2 * - col1 AS col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT tab1.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
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-1723
SELECT DISTINCT col2 + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT col2 + CAST ( NULL AS REAL ) AS col1 FROM tab1 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1724
SELECT ALL cor0.col0 * + CAST( 30 AS SIGNED ) col1 FROM tab2 AS cor0
----
210
2340
2370
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL cor0.col0 * + CAST ( 30 AS INTEGER ) col1 FROM tab2 AS cor0
----
210
2340
2370
query I rowsort
SELECT DISTINCT + col0 * - 30 + + col1 * col2 FROM tab0 AS cor0
----
-953
2118
4792
query I rowsort
SELECT ALL + col2 + + col1 * + 36 FROM tab2 AS cor0
----
1143
2150
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-1727
SELECT DISTINCT + col0 * - col0 * + col0 + - col0 DIV - col0 AS col2 FROM tab0 AS cor0
----
-13823
-42874
-704968
skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT + col0 * - col0 * + col0 + - col0 / - col0 AS col2 FROM tab0 AS cor0
----
-13823
-42874
-704968
query I rowsort
SELECT col1 * ( + 10 ) FROM tab2 AS cor0
----
170
310
590
query I rowsort
SELECT DISTINCT - col0 * cor0.col2 FROM tab0 cor0
----
-35
-7298
-792
query IIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab1 AS cor1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2, tab1 AS cor1
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - col0 * - col0 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1734
SELECT ALL - CAST( col0 AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL - CAST ( col0 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + ( col1 ) FROM tab2 AS cor0
----
17
31
59
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab2 AS cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1737
SELECT ALL - + CAST( + col2 AS SIGNED ) DIV col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-1737
SELECT ALL - + CAST ( + col2 AS INTEGER ) / col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT DISTINCT tab0.col1 + - col1 AS col1 FROM tab0
----
0
query IIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca
query I rowsort
SELECT col2 + col1 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT + - ( - col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + cor0.col0 * - col2 + + col1 * - ( - col0 ) FROM tab2 AS cor0
----
-1659
2574
28
query I rowsort
SELECT ALL - ( col0 ) + - col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT + col2 - 3 AS col1 FROM tab1 AS cor0
----
51
54
93
query I rowsort
SELECT + + col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + ( col2 ) + - col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + - ( col1 ) AS col2 FROM tab1 cor0
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1748
SELECT ALL CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 AS col2 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + col1 * - col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL 22 * - 90 + col2 FROM tab1 AS cor0
----
-1884
-1923
-1926
query I rowsort
SELECT - col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - - col0 + col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - ( cor0.col0 ) * col0 AS col1 FROM tab2 cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-1755
SELECT ALL + + col0 + + col0 DIV col0 col1 FROM tab2 AS cor0
----
79
8
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL + + col0 + + col0 / col0 col1 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0
----
54
57
96
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1 AS cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
query I rowsort
SELECT DISTINCT - col0 + + col0 AS col1 FROM tab1
----
0
query I rowsort
SELECT + col1 * + 50 FROM tab1 cor0
----
1300
500
650
query I rowsort
SELECT col0 * col2 + - col0 AS col0 FROM tab1 AS cor0
----
159
3584
7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1761
SELECT ALL col0 * + CAST( NULL AS SIGNED ) + + ( col1 + ( - ( tab2.col1 ) ) ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) + + ( col1 + ( - ( tab2.col1 ) ) ) AS col0 FROM tab2
----
NULL
NULL
NULL
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab1 cor1
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f
query I rowsort
SELECT col0 * col1 AS col1 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1764
SELECT ALL 62 DIV col0 AS col2 FROM tab2
----
0
0
8
skipif mysql # not compatible
query I rowsort label-1764
SELECT ALL 62 / col0 AS col2 FROM tab2
----
0
0
8
query I rowsort
SELECT DISTINCT + col2 * col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - 31 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa
query I rowsort
SELECT ALL + col2 * + 52 FROM tab1 AS cor0
----
2808
2964
4992
query I rowsort
SELECT + - col1 + col0 * + col0 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1770
SELECT DISTINCT - - ( 72 ) DIV col0 AS col1 FROM tab1 AS cor0
----
0
1
24
skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT - - ( 72 ) / col0 AS col1 FROM tab1 AS cor0
----
0
1
24
query I rowsort
SELECT DISTINCT + + col0 + + ( - cor0.col0 + ( col1 ) ) AS col2 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1772
SELECT - col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1772
SELECT - col2 / - col2 AS col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT 52 AS col1 FROM tab1
----
52
52
52
query I rowsort
SELECT ALL 59 FROM tab1
----
59
59
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1775
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab1 AS cor1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c
query I rowsort
SELECT + col1 + tab0.col2 FROM tab0
----
119
173
98
query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - tab2.col0 * - ( + 15 ) FROM tab2, tab1 AS cor0
----
9 values hashing to bc7cc4d636e1a75f4ea539327215be2b
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab1 AS cor1
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f
query I rowsort
SELECT DISTINCT - col0 + + col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT col2 + col0 FROM tab2
----
104
117
34
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
54 values hashing to 69e208df4a305efdfcc036bb4b31e720
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab1, tab1 AS cor1
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1785
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 75 AS col2 FROM tab0, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 75 AS col2 FROM tab0, tab1 AS cor0
----
NULL
query I rowsort
SELECT col1 * + col0 FROM tab2
----
1343
217
4602
query IIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab2 AS cor1
----
243 values hashing to ea21cea53be47edd19229592e3d26141
query I rowsort
SELECT - col2 + - col1 FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1789
SELECT DISTINCT - - col0 * ( + 58 ) + - col2 - CAST( - 77 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
197
3732
4621
skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT - - col0 * ( + 58 ) + - col2 - CAST ( - 77 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
197
3732
4621
query I rowsort
SELECT col1 * - ( 23 ) AS col2 FROM tab0
----
-1978
-2093
-2231
query I rowsort
SELECT 78 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT ALL col1 AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT col2 * + col1 AS col1 FROM tab0 cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-1795
SELECT col2 - + 34 DIV col0 FROM tab1 AS cor0
----
43
57
96
skipif mysql # not compatible
query I rowsort label-1795
SELECT col2 - + 34 / col0 FROM tab1 AS cor0
----
43
57
96
query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0
----
54 values hashing to 341cdc053c309cf3abe57fa060ecf96e
query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 AS cor0
----
3
64
80
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19
query I rowsort
SELECT ALL col0 * + 14 FROM tab0 AS cor0
----
1246
336
490
query I rowsort
SELECT 38 + cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5d4444e709ceda9c70ea14e40445f143
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0 cor2
----
972 values hashing to 3406497351e4789c89a295ee9b64b201
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1802
SELECT + + col0 * - CAST( NULL AS SIGNED ) + + col0 * + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1802
SELECT + + col0 * - CAST ( NULL AS INTEGER ) + + col0 * + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col0 - col2 AS col1 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1804
SELECT col2 * CAST( NULL AS SIGNED ) + 5 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1804
SELECT col2 * CAST ( NULL AS INTEGER ) + 5 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col1 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + - col0 * 77 FROM tab1 AS cor0
----
-231
-4928
-6160
query I rowsort
SELECT - + col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1809
SELECT DISTINCT + col0 + + CAST( 50 AS SIGNED ) col1 FROM tab1 AS cor0
----
114
130
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1809
SELECT DISTINCT + col0 + + CAST ( 50 AS INTEGER ) col1 FROM tab1 AS cor0
----
114
130
53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1810
SELECT ALL col1 + CAST( + 60 AS SIGNED ) * cor0.col2 FROM tab1 AS cor0
----
3266
3430
5773
skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL col1 + CAST ( + 60 AS INTEGER ) * cor0.col2 FROM tab1 AS cor0
----
3266
3430
5773
query I rowsort
SELECT col0 * + col2 + - 89 FROM tab0 AS cor0
----
-54
703
7209
query I rowsort
SELECT ALL - tab0.col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT col2 FROM tab1
----
54
57
96
query I rowsort
SELECT - - col2 * + col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - - col0 * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1
----
54 values hashing to b010e320d66ab5b2711fc14e8fb58b01
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT - col0 * col1 FROM tab0
----
-2064
-3395
-8099
query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0
----
54 values hashing to b8667d60d280879b35ad1450a82b3a49
query I rowsort
SELECT col0 * col1 AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT - + col2 * col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 * col1 col0 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + cor0.col0 AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - col2 + - col1 * + col1 * col2 AS col2 FROM tab2 AS cor0
----
-11020
-25974
-90532
query I rowsort
SELECT col2 FROM tab0 AS cor0
----
1
33
82
query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN - col2 * - col1 AND NULL
----
query I rowsort
SELECT - col0 * + col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1
----
54 values hashing to 341cdc053c309cf3abe57fa060ecf96e
query III rowsort
SELECT * FROM tab0 WHERE NULL < ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 col0 FROM tab2
----
189
2028
3002
query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0
----
54 values hashing to b8667d60d280879b35ad1450a82b3a49
query I rowsort
SELECT ALL - col1 AS col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( - col2 * + col2 )
----
query I rowsort
SELECT col0 + cor0.col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - + col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - col1 - - col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + col0 - - col2 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT col2 + - col2 + - col0 AS col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT - col0 * col2 * col0 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT - col1 + - tab2.col0 * col2 * + col2 FROM tab2
----
-114093
-5134
-52787
query I rowsort
SELECT - col2 FROM tab0 cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + col1 + col0 col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - tab0.col0 + - col0 AS col1 FROM tab0
----
-178
-48
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 * - col2 col0 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT DISTINCT + tab1.col2 * col1 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-1853
SELECT DISTINCT col2 DIV col0 AS col2 FROM tab2
----
0
3
skipif mysql # not compatible
query I rowsort label-1853
SELECT DISTINCT col2 / col0 AS col2 FROM tab2
----
0
3
query I rowsort
SELECT col2 AS col1 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1855
SELECT - col2 DIV col0 AS col2 FROM tab2
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-1855
SELECT - col2 / col0 AS col2 FROM tab2
----
-3
0
0
query I rowsort
SELECT col0 * col1 AS col0 FROM tab1
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL - tab2.col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0
----
86
91
97
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab0 AS cor0
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8
query I rowsort
SELECT col0 AS col0 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1862
SELECT - col1 DIV - col0 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-1862
SELECT - col1 / - col0 FROM tab1
----
0
0
8
query I rowsort
SELECT + col2 + cor0.col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT - ( col0 ) - + col2 AS col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL - + col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - 61 - col0 AS col2 FROM tab1 AS cor0
----
-125
-141
-64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + tab2.col0 col0 FROM tab2
----
-137
-38
-96
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1870
SELECT col0 DIV col1 - ( + col2 ) * col1 AS col0 FROM tab1 AS cor0
----
-1242
-1404
-564
skipif mysql # not compatible
query I rowsort label-1870
SELECT col0 / col1 - ( + col2 ) * col1 AS col0 FROM tab1 AS cor0
----
-1242
-1404
-564
query I rowsort
SELECT + - 22 FROM tab1, tab2 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9
query I rowsort
SELECT - col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL + col1 + col2 AS col2 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1875
SELECT - col1 DIV tab2.col0 + col2 AS col2 FROM tab2
----
23
26
38
skipif mysql # not compatible
query I rowsort label-1875
SELECT - col1 / tab2.col0 + col2 AS col2 FROM tab2
----
23
26
38
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 >= NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col0 AND ( col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1878
SELECT ALL - col2 DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL - col2 / col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT tab2.col0 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL col0 FROM tab1
----
3
64
80
query I rowsort
SELECT - col0 AS col0 FROM tab1
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 col0 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL + col2 + col0 FROM tab1
----
121
176
57
query I rowsort
SELECT - col0 AS col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT - col2 AS col0 FROM tab1
----
-54
-57
-96
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab2 AS cor0
----
243 values hashing to 042fa16c43ab365359ee93c064e44127
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab2 AS cor0, tab1
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
query I rowsort
SELECT ALL tab0.col0 + col1 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL + 8 * + col0 FROM tab1
----
24
512
640
query I rowsort
SELECT - col0 + col2 + 68 FROM tab2 AS cor0
----
16
27
88
query I rowsort
SELECT + 24 + col1 FROM tab1 AS cor0
----
34
37
50
query IIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab2 cor0
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b
query I rowsort
SELECT ALL + col1 + + col0 AS col0 FROM tab2
----
137
38
96
query I rowsort
SELECT + + col2 + + col2 + - 86 FROM tab2 AS cor0
----
-10
-32
-34
query I rowsort
SELECT col2 - col0 FROM tab1
----
-7
16
51
query I rowsort
SELECT - col1 + + col2 FROM tab0 WHERE NULL BETWEEN NULL AND ( + col1 + col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 * + tab2.col1 col2 FROM tab2
----
306
3540
992
query I rowsort
SELECT ALL + col2 FROM tab1
----
54
57
96
query I rowsort
SELECT col1 - + tab2.col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT + col2 + - col2 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT col1 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT + col1 + col1 * tab2.col0 AS col0 FROM tab2
----
1360
248
4661
query I rowsort
SELECT col0 AS col1 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1904
SELECT DISTINCT + col2 DIV col0 + + col0 FROM tab1
----
21
64
81
skipif mysql # not compatible
query I rowsort label-1904
SELECT DISTINCT + col2 / col0 + + col0 FROM tab1
----
21
64
81
query I rowsort
SELECT tab1.col2 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL col1 + tab2.col2 AS col0 FROM tab2
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 col0 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL col0 * - col1 + + col2 - + col1 * + col1 FROM tab0 WHERE - col0 <> col0 + + col2
----
-12803
-16298
-9427
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - tab2.col1 col1 FROM tab2
----
-118
-34
-62
query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - cor0.col2 / col0 + + col1 = NULL
----
query I rowsort
SELECT col0 * + col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - col0 + col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT col1 + col2 FROM tab1
----
109
67
80
query I rowsort
SELECT col2 AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT + col1 - col2 FROM tab0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0
----
86
91
97
query I rowsort
SELECT + col2 + col1 AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL col1 AS col2 FROM tab1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1921
SELECT ALL - col2 DIV - col0 + col0 DIV - col2 AS col0 FROM tab0
----
-1
-35
1
skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL - col2 / - col0 + col0 / - col2 AS col0 FROM tab0
----
-1
-35
1
query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1923
SELECT DISTINCT + col2 DIV + col2 + + col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-1923
SELECT DISTINCT + col2 / + col2 + + col1 FROM tab0
----
87
92
98
query I rowsort
SELECT col2 * col2 FROM tab1
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-1925
SELECT - col0 DIV + col2 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1925
SELECT - col0 / + col2 FROM tab1
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1926
SELECT ALL col0 DIV col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL col0 / col1 FROM tab2
----
0
1
4
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + col1 + col2 / col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1928
SELECT DISTINCT + col1 DIV col2 AS col0 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-1928
SELECT DISTINCT + col1 / col2 AS col0 FROM tab1
----
0
query I rowsort
SELECT col0 * col0 * + col1 AS col0 FROM tab1
----
234
40960
83200
query I rowsort
SELECT - col1 + col2 + + tab1.col0 AS col0 FROM tab1
----
111
163
31
query I rowsort
SELECT DISTINCT - col2 + - col2 + - col2 * + col1 FROM tab0
----
-2904
-7626
-99
query I rowsort
SELECT + col0 FROM tab0
----
24
35
89
query I rowsort
SELECT col2 * col1 FROM tab0
----
2838
7462
97
query III rowsort
SELECT * FROM tab0 WHERE - col1 BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT ALL col0 + + col1 AS col1 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL - col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL + col2 * tab0.col1 * col0 + - tab0.col2 FROM tab0
----
3394
664036
68079
query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0
----
1
33
82
query I rowsort
SELECT col2 - col2 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL col2 * col1 * - col1 + - col2 FROM tab1
----
-16320
-36558
-5757
query I rowsort
SELECT ALL + col0 + + tab0.col2 AS col0 FROM tab0
----
171
36
57
query I rowsort
SELECT col2 * + col2 AS col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT col2 AS col2 FROM tab1
----
54
57
96
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab0 AS cor0
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0
query I rowsort
SELECT ALL col2 + col1 * + 6 FROM tab0
----
549
583
628
query I rowsort
SELECT DISTINCT + col0 * col1 + 56 AS col0 FROM tab1
----
1096
134
696
query I rowsort
SELECT DISTINCT - + col1 - - col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL col2 * 63 FROM tab2 AS cor0
----
1638
1701
2394
query I rowsort
SELECT + cor0.col2 + col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL - col2 * col1 + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT + 96 FROM tab0
----
96
96
96
query I rowsort
SELECT DISTINCT col2 FROM tab0
----
1
33
82
query I rowsort
SELECT 72 * col0 * tab2.col0 AS col1 FROM tab2
----
3528
438048
449352
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL col0 * - col1 + col1 * col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - tab2.col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT + + col0 + 12 AS col0 FROM tab1 AS cor0
----
15
76
92
query I rowsort
SELECT ALL + col2 * cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - - col1 + col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + col1 * col1 * - col0 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT + col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1965
SELECT DISTINCT - col0 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT - col0 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL col2 + - 78 FROM tab0 AS cor0
----
-45
-77
4
query I rowsort
SELECT - cor0.col2 + col1 AS col2 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT ALL + - cor0.col0 - + ( + col1 ) FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT + - col1 + - col0 FROM tab1 cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT col1 * - col1 * - col2 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT DISTINCT col0 + col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - col1 * 30 + 67 FROM tab2 AS cor0
----
-1703
-443
-863
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 54 * 27 col1 FROM tab0 AS cor0
----
1376
1425
1457
query I rowsort
SELECT DISTINCT + col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - col2 + cor0.col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col1 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + - col1 + + col0 * col2 AS col0 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT + col1 * col1 AS col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT ALL col2 * 35 + col0 AS col1 FROM tab2 AS cor0
----
1409
952
988
query I rowsort
SELECT ALL - col1 * col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - col0 * + col2 + - col2 * + col1 AS col2 FROM tab2 AS cor0
----
-1026
-3562
-3648
onlyif mysql # use DIV operator for integer division
query I rowsort label-1988
SELECT ( + col0 ) DIV col1 AS col0 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-1988
SELECT ( + col0 ) / col1 AS col0 FROM tab2
----
0
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 + - col0 + col1 col1 FROM tab2
----
-24
51
7
query I rowsort
SELECT + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1991
SELECT + CAST( NULL AS SIGNED ) * - 61 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1991
SELECT + CAST ( NULL AS INTEGER ) * - 61 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col2 * col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - CAST ( ( col1 ) AS REAL ) + - ( - col2 ) AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - + col0 * - col1 AS col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - cor0.col0 * 66 AS col0 FROM tab2 AS cor0
----
-462
-5148
-5214
query I rowsort
SELECT + 36 - - col0 * col0 FROM tab0 AS cor0
----
1261
612
7957
onlyif mysql # use DIV operator for integer division
query I rowsort label-1997
SELECT ALL col0 DIV - col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL col0 / - col1 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT - col1 * cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT cor0.col2 * col1 AS col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT 7 + - col2 FROM tab2 AS cor0
----
-19
-20
-31
query I rowsort
SELECT ( col2 ) + + col1 * col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT 26 + ( + cor0.col2 ) * col1 + - cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
-1921
-98
383
query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + 37 FROM tab0 AS cor0
----
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2005
SELECT - col2 + + col2 * CAST( col1 * - col2 AS SIGNED ) FROM tab0 AS cor0
----
-611966
-93687
-98
skipif mysql # not compatible
query I rowsort label-2005
SELECT - col2 + + col2 * CAST ( col1 * - col2 AS INTEGER ) FROM tab0 AS cor0
----
-611966
-93687
-98
query I rowsort
SELECT ALL - + col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT 96 * col1 FROM tab2 cor0
----
1632
2976
5664
query I rowsort
SELECT ALL - 32 * + col0 FROM tab1 AS cor0
----
-2048
-2560
-96
query I rowsort
SELECT + col1 * col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + col1 + + col2 * + ( col1 ) AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0
----
-1
-33
-82
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2, tab0 AS cor1
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9
query I rowsort
SELECT ALL - + 83 AS col1 FROM tab2, tab0 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 291feef3dca992d41fad4b2f7ab1ab9e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT DISTINCT 5 FROM tab1, tab1 AS cor0
----
5
query I rowsort
SELECT DISTINCT + 77 AS col1 FROM tab2, tab1 cor0, tab1 AS cor1
----
77
query I rowsort
SELECT - col0 AS col2 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - + 76 + + col0 AS col2 FROM tab2 cor0
----
-69
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + - col2 + + col1 col1 FROM tab0 AS cor0
----
100
139
193
query I rowsort
SELECT - col2 + cor0.col1 FROM tab1 cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-2022
SELECT - col0 * cor0.col0 DIV - col0 + + col1 AS col0 FROM tab1 cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-2022
SELECT - col0 * cor0.col0 / - col0 + + col1 AS col0 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + + col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - col2 * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL - col2 * + col2 + ( + cor0.col0 ) FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + - 67 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f
query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0
----
54 values hashing to b8667d60d280879b35ad1450a82b3a49
query I rowsort
SELECT col0 + col2 + ( col2 ) * col2 FROM tab2 AS cor0
----
1561
763
780
query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + - 82 AS col0 FROM tab1 AS cor0
----
-82
-82
-82
query I rowsort
SELECT + 27 AS col2 FROM tab2 AS cor0
----
27
27
27
query I rowsort
SELECT - col1 * - col0 + col2 + - 80 AS col0 FROM tab2 AS cor0
----
1301
164
4548
query I rowsort
SELECT + + col0 AS col1 FROM tab1 cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - + col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - col1 + col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL + + cor0.col2 + + col2 AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL + - ( + col0 ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + cor0.col0 + col2 + + ( + col2 + - col1 ) AS col0 FROM tab0 AS cor0
----
-60
162
4
query I rowsort
SELECT ALL ( + col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - + col0 + + col0 * + ( col1 ) AS col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab1 cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0
----
10
13
26
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab2 cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
54 values hashing to 69e208df4a305efdfcc036bb4b31e720
query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab0 AS cor1
----
243 values hashing to 3e8bd9634a3f5947d8becd5f5799bb7f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 col1 FROM tab2
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-2051
SELECT ALL + col1 + col0 DIV col1 FROM tab1
----
16
19
26
skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL + col1 + col0 / col1 FROM tab1
----
16
19
26
query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab0, tab2 AS cor0, tab1, tab0 AS cor1
----
26
27
38
query I rowsort
SELECT 35 * - col0 FROM tab2
----
-245
-2730
-2765
query I rowsort
SELECT - 0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
54 values hashing to 341cdc053c309cf3abe57fa060ecf96e
query I rowsort
SELECT ALL + 78 * 66 - - col2 * - cor0.col2 FROM tab1 AS cor0
----
-4068
1899
2232
query I rowsort
SELECT + 28 FROM tab0 AS cor0
----
28
28
28
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab1 AS cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4
query I rowsort
SELECT DISTINCT - col0 + col0 * - col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT ALL - col2 * - col0 + col0 * col2 FROM tab0 cor0
----
14596
1584
70
query I rowsort
SELECT + - ( cor0.col0 ) FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2062
SELECT ALL ( + 22 ) DIV - col1 - + col0 col0 FROM tab1 AS cor0
----
-3
-66
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL ( + 22 ) / - col1 - + col0 col0 FROM tab1 AS cor0
----
-3
-66
-81
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to d41be7437523f0dba2158c7f0439f329
query I rowsort
SELECT DISTINCT col2 * + 91 + - col0 FROM tab0 AS cor0
----
2979
56
7373
query I rowsort
SELECT + col2 + - col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT + ( ( + col0 ) ) + 97 FROM tab1 AS cor0
----
100
161
177
query I rowsort
SELECT + 57 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT + + 70 AS col2 FROM tab0 AS cor0
----
70
70
70
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - ( col0 ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT 36 FROM tab0, tab2 AS cor0
----
36
query I rowsort
SELECT + - cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT - tab0.col0 + col2 AS col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT ALL 34 + + col0 AS col1 FROM tab0
----
123
58
69
query I rowsort
SELECT 37 + + ( - col0 ) * col1 AS col1 FROM tab2
----
-1306
-180
-4565
query I rowsort
SELECT col0 * tab1.col1 + col2 + tab1.col0 * 71 AS col2 FROM tab1
----
345
5241
6816
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab0 AS cor1
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
query I rowsort
SELECT col1 + 83 * + col2 + col0 FROM tab0
----
215
2849
6986
onlyif mysql # use DIV operator for integer division
query I rowsort label-2079
SELECT DISTINCT - col1 - col2 DIV - col0 FROM tab0
----
-85
-91
-97
skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT - col1 - col2 / - col0 FROM tab0
----
-85
-91
-97
query I rowsort
SELECT tab1.col0 + col2 AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT ( - col0 ) * - col2 AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT + 33 + + col1 FROM tab0
----
119
124
130
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 + + col0 col2 FROM tab0
----
70
7387
816
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 3ef3d333138b2b558b77004bad9bdabc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT - cor0.col0 * - col2 + col2 * - ( + 74 * col2 ) + cor0.col0 FROM tab0 AS cor0
----
-4
-490189
-79770
query I rowsort
SELECT ALL - + ( + 39 ) * - col0 + + 24 FROM tab2 AS cor0
----
297
3066
3105
query I rowsort
SELECT col0 * - col1 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 862fba9ac85fdf2cec88a0bec0808b7e
query I rowsort
SELECT DISTINCT - - ( col2 ) FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2091
SELECT ALL + col1 DIV 69 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL + col1 / 69 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - ( + col2 ) + col1 * - col2 FROM tab0
----
-2871
-7544
-98
query I rowsort
SELECT DISTINCT + col1 + + col1 FROM tab1
----
20
26
52
query I rowsort
SELECT + tab2.col0 FROM tab2
----
7
78
79
query IIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998
query I rowsort
SELECT ALL - col0 * col0 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 18 + col2 * cor0.col2 * - ( 4 ) col1 FROM tab2 AS cor0
----
-3474
-3766
-6082
query I rowsort
SELECT DISTINCT col1 - + col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + - col0 + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - col2 * cor0.col2 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL + col0 * - 86 FROM tab0
----
-2064
-3010
-7654
query I rowsort
SELECT - 38 * + 59 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 9ec73a02c093a01394453ae5631adf20
query I rowsort
SELECT DISTINCT - - col0 - col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + - col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2105
SELECT + cor0.col1 DIV 58 + cor0.col2 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-2105
SELECT + cor0.col1 / 58 + cor0.col2 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT + cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT 92 FROM tab0
----
92
92
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab0
----
1
33
82
query I rowsort
SELECT col2 * + 35 * - col2 AS col1 FROM tab0
----
-235340
-35
-38115
query I rowsort
SELECT - - col1 AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + ( - 11 ) * + col2 FROM tab0 AS cor0
----
-11
-363
-902
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 * - 67 + - tab2.col0 col2 FROM tab2
----
-19442
-233305
-64394
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f
query I rowsort
SELECT - col1 * 1 + col0 AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL col2 + col0 * - 90 FROM tab2 AS cor0
----
-603
-6994
-7072
query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + col1 * + col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT + col1 * col0 * ( col2 ) AS col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT - - ( - 74 ) FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
-74
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to f8426cd4d01ba96a72d7348574fbbc8e
query I rowsort
SELECT + col0 * + col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL ( col0 ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT col0 + col1 * + ( 71 ) * col1 FROM tab1 AS cor0
----
12079
47999
7164
query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + col2 * - col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + col2 * - 33 FROM tab2 AS cor0
----
-1254
-858
-891
query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + col1 * ( - 26 ) * cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
-210483
-53578
-88173
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + cor0.col1 * + col0 col0 FROM tab2 AS cor0
----
1360
248
4661
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab1 cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998
query I rowsort
SELECT 55 AS col0 FROM tab1
----
55
55
55
query I rowsort
SELECT ( tab0.col0 ) + + ( + ( - col0 ) ) FROM tab0
----
0
0
0
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0 AS cor1
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2135
SELECT CAST( NULL AS SIGNED ) + 25 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2135
SELECT CAST ( NULL AS INTEGER ) + 25 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - col2 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2137
SELECT - + col2 + - col0 DIV col0 FROM tab2 AS cor0
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-2137
SELECT - + col2 + - col0 / col0 FROM tab2 AS cor0
----
-27
-28
-39
query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - col1 * + 43 FROM tab1 AS cor0
----
-1118
-430
-559
query I rowsort
SELECT ALL + + col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT cor1.col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab2 AS cor0
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0
query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab2 AS cor1
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b
onlyif mysql # use DIV operator for integer division
query I rowsort label-2144
SELECT col1 DIV 95 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2144
SELECT col1 / 95 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL col2 AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL col1 * - ( - col1 ) AS col0 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT col1 - 13 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-1010
-60
-955
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 col0 FROM tab1 AS cor0
----
97
query I rowsort
SELECT + 68 * - 58 + - col0 AS col0 FROM tab0 AS cor0
----
-3968
-3979
-4033
query I rowsort
SELECT DISTINCT - - ( + 64 ) + col2 FROM tab2 AS cor0
----
102
90
91
query I rowsort
SELECT ALL - ( col2 ) * + col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - + col2 + col0 AS col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT col1 - 99 AS col1 FROM tab2 AS cor0
----
-40
-68
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2154
SELECT DISTINCT col1 DIV - 78 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT col1 / - 78 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL ( col1 ) * - col0 + - 17 AS col0 FROM tab1 AS cor0
----
-1057
-657
-95
query I rowsort
SELECT + tab2.col0 * col1 + col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT DISTINCT + col2 - col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT + col2 + 45 * - col0 AS col2 FROM tab0
----
-1047
-1574
-3923
onlyif mysql # use DIV operator for integer division
query I rowsort label-2159
SELECT - col1 DIV ( 56 ) - + tab1.col0 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-2159
SELECT - col1 / ( 56 ) - + tab1.col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT tab1.col1 - 73 FROM tab1
----
-47
-60
-63
query I rowsort
SELECT - col2 * + col1 AS col0 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + tab1.col2 * + col0 AS col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL + - col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - col0 + col0 - col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + + cor0.col2 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2166
SELECT DISTINCT - - col0 DIV + col1 + - col2 + col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT - - col0 / + col1 + - col2 + col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - col0 * - col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query IIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab2 AS cor1
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT - cor0.col2 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT col0 * - col2 + + 92 FROM tab0 AS cor0
----
-700
-7206
57
query I rowsort
SELECT + col2 * 30 AS col1 FROM tab1
----
1620
1710
2880
query I rowsort
SELECT ALL 16 FROM tab2
----
16
16
16
query I rowsort
SELECT col0 * col1 * - col0 AS col0 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT ( + col2 ) AS col2 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT - ( + col1 ) FROM tab2
----
-17
-31
-59
query I rowsort
SELECT tab2.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT 41 * col1 AS col1 FROM tab0
----
3526
3731
3977
query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2
----
26
27
38
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 + col1 * - cor0.col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT + cor0.col1 + - col0 AS col1 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2184
SELECT ( + col0 ) + - CAST( 38 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-31
40
41
skipif mysql # not compatible
query I rowsort label-2184
SELECT ( + col0 ) + - CAST ( 38 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-31
40
41
query I rowsort
SELECT 74 * + col2 FROM tab0 AS cor0
----
2442
6068
74
query I rowsort
SELECT DISTINCT - 50 * - col0 + - col0 AS col0 FROM tab1 AS cor0
----
147
3136
3920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - - col0 + - col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT ALL col1 + col1 AS col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + 27 * col1 FROM tab2 AS cor0
----
1593
459
837
query I rowsort
SELECT ALL + ( col2 ) * + col1 * cor0.col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT ALL ( + 90 ) * col2 AS col1 FROM tab2 AS cor0
----
2340
2430
3420
query I rowsort
SELECT col2 + col0 + + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-15
-5980
-6124
query I rowsort
SELECT 58 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT DISTINCT col1 * + cor0.col2 FROM tab1 AS cor0
----
1248
1404
570
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab1 AS cor1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2197
SELECT - col1 + col0 DIV col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-2197
SELECT - col1 + col0 / col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - - ( col1 ) * - col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT ( - col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - 67 FROM tab0, tab2 AS cor0
----
-67
query I rowsort
SELECT ALL ( - col1 ) * col1 + col1 + + col0 FROM tab2
----
-193
-3344
-923
query I rowsort
SELECT ALL - tab0.col2 + - 98 AS col2 FROM tab0
----
-131
-180
-99
query I rowsort
SELECT col1 + col1 FROM tab2
----
118
34
62
query I rowsort
SELECT - col0 * - col1 + col2 AS col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT + + col0 * col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT 90 + col0 FROM tab2
----
168
169
97
query I rowsort
SELECT col0 + col2 FROM tab2
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-2208
SELECT 87 DIV + 40 col1 FROM tab0 cor0
----
2
2
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2208
SELECT 87 / + 40 col1 FROM tab0 cor0
----
2
2
2
query I rowsort
SELECT ALL ( col0 ) FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 + - col0 col1 FROM tab0
----
-34
20
31
query I rowsort
SELECT cor1.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - col2 * - tab2.col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT DISTINCT - col2 + - col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT - tab0.col0 FROM tab0
----
-24
-35
-89
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab0 cor0
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0, tab1 AS cor0
----
10
13
26
query I rowsort
SELECT cor0.col2 * ( cor0.col2 ) - - cor0.col1 FROM tab1 AS cor0
----
2942
3259
9229
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-2219
SELECT ALL - col0 * CAST( col0 AS DECIMAL ) + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL - col0 * CAST ( col0 AS REAL ) + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - + col0 + - col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT ALL col2 * - ( 89 ) + + col0 FROM tab1 AS cor0
----
-4803
-5009
-8464
skipif mysql # not compatible
query I rowsort
SELECT - - cor0.col0 - CAST ( - col2 AS REAL ) * + col1 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + + col2 * - col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + - col2 - col1 * - col1 AS col0 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT col1 AS col2 FROM tab0
----
86
91
97
query I rowsort
SELECT 52 * col1 + + tab1.col1 * col2 FROM tab1
----
1090
1924
2756
query I rowsort
SELECT DISTINCT 99 AS col1 FROM tab0
----
99
query I rowsort
SELECT - col1 FROM tab2
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL + col1 * + tab1.col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL + 79 FROM tab2
----
79
79
79
query I rowsort
SELECT ( col2 ) * 27 + col0 * + col0 FROM tab1
----
1467
5635
8992
query I rowsort
SELECT + col1 * - 78 + + 17 + - col2 FROM tab2
----
-1347
-2428
-4611
query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2, tab1 AS cor3
----
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2237
SELECT DISTINCT + col0 * + ( - col1 ) + col2 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2237
SELECT DISTINCT + col0 * + ( - col1 ) + col2 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT - 83 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843
query I rowsort
SELECT - ( cor0.col0 ) FROM tab0, tab1 cor0, tab1, tab2 AS cor1
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4
query I rowsort
SELECT col0 + + tab0.col1 + 12 * col0 AS col2 FROM tab0
----
1248
398
552
onlyif mysql # use DIV operator for integer division
query I rowsort label-2242
SELECT DISTINCT - + cor0.col0 DIV + col2 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-2242
SELECT DISTINCT - + cor0.col0 / + col2 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT + col0 * ( + col2 ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + cor0.col2 * col0 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-2245
SELECT col2 * 99 + col1 * + col0 + + 60 DIV cor0.col1 FROM tab2 AS cor0
----
2891
5108
7177
skipif mysql # not compatible
query I rowsort label-2245
SELECT col2 * 99 + col1 * + col0 + + 60 / cor0.col1 FROM tab2 AS cor0
----
2891
5108
7177
query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + col2 * col0 + + ( + col2 ) AS col1 FROM tab2 cor0
----
2054
216
3040
query I rowsort
SELECT + + cor0.col1 * + 74 + - col0 * col1 AS col1 FROM tab1 AS cor0
----
-78
100
1846
query I rowsort
SELECT DISTINCT - col1 * - 58 FROM tab1 AS cor0
----
1508
580
754
query I rowsort
SELECT - col2 + - col2 * + cor0.col1 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT + - col1 + 48 AS col2 FROM tab2 AS cor0
----
-11
17
31
query I rowsort
SELECT DISTINCT - - col2 + 19 * col2 AS col2 FROM tab1 cor0
----
1080
1140
1920
query I rowsort
SELECT ALL col2 * 90 + 3 AS col2 FROM tab1 AS cor0
----
4863
5133
8643
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2254
SELECT col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2254
SELECT col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 + ( - cor0.col2 ) * - col0 AS col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT cor0.col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + cor0.col1 * + col2 + - 82 - cor0.col0 AS col0 FROM tab2 AS cor0
----
1374
485
748
query I rowsort
SELECT - cor0.col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT col0 * + col1 - + col1 * - col0 AS col0 FROM tab1 cor0
----
1280
156
2080
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + col0 col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT ALL col2 + 67 AS col2 FROM tab0
----
100
149
68
query I rowsort
SELECT DISTINCT col1 + col0 AS col2 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL - tab1.col2 + col2 * - col2 AS col0 FROM tab1
----
-2970
-3306
-9312
query I rowsort
SELECT ALL col1 + - ( col0 ) AS col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT DISTINCT + col0 + + col1 * - 75 * - col2 AS col1 FROM tab2
----
115128
48529
62782
query I rowsort
SELECT ALL - col2 + - 58 * col1 * - col2 AS col2 FROM tab0
----
164571
432714
5625
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT DISTINCT col1 + + col1 * - col0 + cor0.col2 FROM tab0 AS cor0
----
-1945
-3297
-7926
query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - - col2 + + col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL - ( col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - 45 * cor0.col1 - - col2 FROM tab0 cor0
----
-3837
-4013
-4364
query I rowsort
SELECT ALL + 95 * - 12 + - col2 * + 88 AS col1 FROM tab1 AS cor0
----
-5892
-6156
-9588
query I rowsort
SELECT col2 - - col1 AS col2 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2275
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2275
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col1 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + cor0.col1 * + cor0.col0 * + col2 col0 FROM tab0 AS cor0
----
3492
664209
68198
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2277
SELECT CAST( + col1 AS SIGNED ) + - col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-2277
SELECT CAST ( + col1 AS INTEGER ) + - col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL + - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + ( - col1 * tab1.col2 ) AS col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL - - cor0.col2 + - col1 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-2281
SELECT + 62 DIV col1 + col2 AS col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2281
SELECT + 62 / col1 + col2 AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT col1 + col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT 35 - col2 AS col1 FROM tab1 AS cor0
----
-19
-22
-61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 * cor0.col2 + - col1 * + col0 col2 FROM tab0 AS cor0
----
-3360
24072
590337
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2285
SELECT + + col2 * - 43 + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2285
SELECT + + col2 * - 43 + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2286
SELECT - col0 DIV col0 + col0 AS col0 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-2286
SELECT - col0 / col0 + col0 AS col0 FROM tab1 AS cor0
----
2
63
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1
----
-54
-57
-96
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 cor1
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b
query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
54 values hashing to 341cdc053c309cf3abe57fa060ecf96e
query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT 5 * + col0 FROM tab0 AS cor0
----
120
175
445
onlyif mysql # use DIV operator for integer division
query I rowsort label-2294
SELECT col1 DIV col0 AS col2 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-2294
SELECT col1 / col0 AS col2 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT ALL + 91 * + col0 * 98 AS col2 FROM tab0 AS cor0
----
214032
312130
793702
query I rowsort
SELECT col1 * + col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + 43 FROM tab2
----
43
43
43
query I rowsort
SELECT DISTINCT - col1 * col1 * col0 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT ALL 76 + col2 AS col1 FROM tab2 AS cor0
----
102
103
114
query I rowsort
SELECT ALL cor0.col0 * col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + col1 * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT + 47 * col1 FROM tab1 AS cor0
----
1222
470
611
query I rowsort
SELECT DISTINCT + col0 * col0 * ( - col2 ) FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT + + 42 AS col0 FROM tab0 AS cor0
----
42
query I rowsort
SELECT 98 * col2 FROM tab2 AS cor0
----
2548
2646
3724
query I rowsort
SELECT DISTINCT - col0 * col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL - ( + col2 ) + - col1 AS col1 FROM tab1 AS cor0
----
-109
-67
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + cor0.col1 * - 17 col0 FROM tab0 AS cor0
----
-1429
-1465
-1648
onlyif mysql # use DIV operator for integer division
query I rowsort label-2311
SELECT DISTINCT + - col0 DIV cor0.col0 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT + - col0 / cor0.col0 FROM tab2 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL ( col0 ) FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2315
SELECT ( - col1 ) DIV col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2315
SELECT ( - col1 ) / col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - - col2 + + col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - col1 * cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col2 * + 38 AS col0 FROM tab0 AS cor0
----
-1254
-3116
-38
query I rowsort
SELECT + col1 * ( 62 ) FROM tab2 AS cor0
----
1054
1922
3658
query I rowsort
SELECT col1 * + col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2321
SELECT ALL - cor0.col1 + CAST( NULL AS SIGNED ) * col1 + col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL - cor0.col1 + CAST ( NULL AS INTEGER ) * col1 + col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d
query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2324
SELECT ALL + col1 DIV + tab0.col2 AS col2 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL + col1 / + tab0.col2 AS col2 FROM tab0
----
1
2
97
query I rowsort
SELECT - + 28 FROM tab0 AS cor0
----
-28
-28
-28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 col1 FROM tab2 AS cor0
----
44
44
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 * - col0 col0 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-2328
SELECT ALL col0 + + col1 DIV + 80 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL col0 + + col1 / + 80 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + col1 * + cor0.col2 - 87 AS col1 FROM tab2 AS cor0
----
1447
559
750
query I rowsort
SELECT 48 * col0 AS col2 FROM tab2 AS cor0
----
336
3744
3792
query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab0 AS cor1
----
243 values hashing to 3e8bd9634a3f5947d8becd5f5799bb7f
query I rowsort
SELECT - 41 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf
query I rowsort
SELECT + col2 * - 62 + col0 * - col0 AS col0 FROM tab0
----
-1287
-13005
-2622
query I rowsort
SELECT 51 FROM tab2 AS cor0
----
51
51
51
query I rowsort
SELECT col0 AS col1 FROM tab2
----
7
78
79
query I rowsort
SELECT - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1 cor1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab0, tab2 AS cor1
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2339
SELECT col0 * + col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2339
SELECT col0 * + col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + - 60 * - 77 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b5bc5325086de9ee245d0162c7a67c3c
query I rowsort
SELECT ALL 30 - - col0 AS col1 FROM tab0
----
119
54
65
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998
query I rowsort
SELECT - + 56 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab1 AS cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
query I rowsort
SELECT tab2.col1 AS col2 FROM tab2
----
17
31
59
query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
query IIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab0 AS cor1
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0
query I rowsort
SELECT col1 * - col2 AS col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + + col0 * cor0.col0 + + ( col2 ) * - col2 * col0 AS col2 FROM tab1 AS cor0
----
-203840
-730880
-8739
query I rowsort
SELECT DISTINCT - col0 + + ( col2 * + col2 ) + ( col1 ) FROM tab0 AS cor0
----
1151
63
6726
query I rowsort
SELECT - 91 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945
query I rowsort
SELECT - - 87 + cor0.col2 * + 72 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0f5ba4c4e3a710aab6641e863ec48813
query I rowsort
SELECT DISTINCT + ( col1 * col2 ) FROM tab2
----
1534
646
837
query I rowsort
SELECT + col1 * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 5e655b1287771868a8f868574a94d749
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + cor0.col0 ) col0 FROM tab0, tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + - ( 91 ) AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab
query I rowsort
SELECT + - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to db9b93cf4fdd5de4106f0487a66ce0a5
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 AS cor0
----
-10
-13
-26
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab0 AS cor1
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab1 AS cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998
onlyif mysql # use DIV operator for integer division
query I rowsort label-2366
SELECT ALL - cor1.col0 DIV cor0.col1 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 214081a7be3ec22822234877e6e1c464
skipif mysql # not compatible
query I rowsort label-2366
SELECT ALL - cor1.col0 / cor0.col1 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 214081a7be3ec22822234877e6e1c464
query I rowsort
SELECT 98 * 83 + tab2.col0 * + ( - col0 ) * + col0 FROM tab2
----
-466418
-484905
7791
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 08000767d0a951e4a7a7f8edda07fb64
query I rowsort
SELECT + ( + tab1.col1 ) FROM tab1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-2370
SELECT cor0.col1 + + 39 DIV col0 col2 FROM tab0 AS cor0
----
87
91
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2370
SELECT cor0.col1 + + 39 / col0 col2 FROM tab0 AS cor0
----
87
91
98
query I rowsort
SELECT - col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + - col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 + cor0.col0 col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT 28 + - col1 AS col2 FROM tab1 AS cor0
----
15
18
2
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab0 cor1
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8
query I rowsort
SELECT DISTINCT + col2 + col0 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + - cor0.col1 * col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - col2 - col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT - 95 * - col2 * - col2 AS col2 FROM tab1 AS cor0
----
-277020
-308655
-875520
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab2 cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca
query I rowsort
SELECT DISTINCT - col0 + col0 AS col2 FROM tab1 AS cor0
----
0
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab0 AS cor0
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d
query I rowsort
SELECT cor0.col0 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT + 97 AS col2 FROM tab1 AS cor0
----
97
97
97
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to 1260d4dbe7a8d809e8010586a3c398c5
query I rowsort
SELECT DISTINCT - col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT + 98 FROM tab1, tab2 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT ALL 39 * col1 FROM tab0 AS cor0
----
3354
3549
3783
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab2 cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab2 AS cor1
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc
query I rowsort
SELECT ALL - + col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - ( - cor0.col0 ) FROM tab1 AS cor0
----
3
64
80
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab0 AS cor0
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00
query I rowsort
SELECT ALL + col1 + 38 * - 76 FROM tab2
----
-2829
-2857
-2871
onlyif mysql # use DIV operator for integer division
query I rowsort label-2396
SELECT - col1 * - ( + col2 ) + + col2 DIV + 49 + - col0 AS col0 FROM tab0 AS cor0
----
2814
62
7374
skipif mysql # not compatible
query I rowsort label-2396
SELECT - col1 * - ( + col2 ) + + col2 / + 49 + - col0 AS col0 FROM tab0 AS cor0
----
2814
62
7374
query I rowsort
SELECT - + col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT col1 + + col0 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT col2 * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + col0 - col0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - col2 * + cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT col1 + cor0.col2 * col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL ( col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - col0 * 43 * - col1 FROM tab0
----
145985
348257
88752
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * - col1 col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - ( + 66 ) AS col1 FROM tab0 cor0
----
-66
-66
-66
query I rowsort
SELECT - col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL col0 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + ( + 21 ) * + col0 FROM tab0 cor0
----
1869
504
735
onlyif mysql # use DIV operator for integer division
query I rowsort label-2411
SELECT DISTINCT + ( 85 ) DIV + col0 AS col2 FROM tab0 AS cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT + ( 85 ) / + col0 AS col2 FROM tab0 AS cor0
----
0
2
3
query I rowsort
SELECT + - 33 + - 25 AS col1 FROM tab2 AS cor0
----
-58
-58
-58
query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - col0 * + ( col0 ) + + cor0.col0 * + 11 AS col2 FROM tab0 AS cor0
----
-312
-6942
-840
query I rowsort
SELECT DISTINCT + col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + 98 FROM tab1 cor0
----
98
query I rowsort
SELECT ALL tab0.col0 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 + col0 col2 FROM tab2
----
-24
19
62
query I rowsort
SELECT 52 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
onlyif mysql # use DIV operator for integer division
query I rowsort label-2420
SELECT DISTINCT - col2 DIV col2 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-2420
SELECT DISTINCT - col2 / col2 FROM tab0
----
-1
query I rowsort
SELECT - col2 * + 66 FROM tab0
----
-2178
-5412
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-2422
SELECT ALL - ( - col2 ) DIV col2 + col0 AS col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL - ( - col2 ) / col2 + col0 AS col0 FROM tab1 AS cor0
----
4
65
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab2 AS cor0
----
17
31
59
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab0 cor0
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d
query I rowsort
SELECT ALL tab2.col2 * col2 + col1 * col2 FROM tab2
----
1566
2090
2210
query I rowsort
SELECT ALL - col1 + col2 + col2 * col1 AS col0 FROM tab0
----
1
2785
7453
query I rowsort
SELECT DISTINCT 62 * - col0 * + col0 AS col1 FROM tab0 AS cor0
----
-35712
-491102
-75950
query I rowsort
SELECT - 19 + + col0 * cor0.col2 * col2 FROM tab1 cor0
----
207917
737261
8729
query I rowsort
SELECT DISTINCT col2 * cor0.col2 AS col0 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT - col1 * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - + col1 * col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + - col2 + - col1 * ( col0 ) * - cor0.col1 AS col0 FROM tab1 AS cor0
----
13424
1974
6343
query I rowsort
SELECT - - col1 - col0 * - col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2434
SELECT DISTINCT - - col0 * col1 + - CAST( NULL AS SIGNED ) * + 34 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2434
SELECT DISTINCT - - col0 * col1 + - CAST ( NULL AS INTEGER ) * + 34 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + col1 + col0 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + 77 AS col1 FROM tab0 cor0
----
77
77
77
query I rowsort
SELECT DISTINCT + - col2 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT cor0.col2 * 35 FROM tab0 AS cor0
----
1155
2870
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2439
SELECT ALL col0 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL col0 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col1 col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + col0 * + ( - 48 * + cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-10416
-220896
-64464
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2443
SELECT + + cor0.col1 + - CAST( NULL AS SIGNED ) / + 7 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2443
SELECT + + cor0.col1 + - CAST ( NULL AS INTEGER ) / + 7 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT - col2 * col2 + - col2 * + col2 FROM tab0 AS cor0
----
-13448
-2
-2178
query I rowsort
SELECT ALL - + col2 + - col0 * col0 AS col2 FROM tab1 AS cor0
----
-4153
-63
-6496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2448
SELECT ALL + col2 * CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL + col2 * CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + cor0.col1 * - 22 + col0 * cor0.col1 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-438
1007
3330
query I rowsort
SELECT col0 * col0 AS col1 FROM tab2
----
49
6084
6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2453
SELECT ALL col1 * + col2 + + CAST( + col0 * col0 AS SIGNED ) FROM tab0
----
1322
15383
3414
skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL col1 * + col2 + + CAST ( + col0 * col0 AS INTEGER ) FROM tab0
----
1322
15383
3414
query I rowsort
SELECT DISTINCT + 6 * + tab2.col2 AS col2 FROM tab2, tab1, tab2 AS cor0
----
156
162
228
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * tab2.col1 + + col2 * ( + tab2.col2 ) - col1 col0 FROM tab2
----
1535
2073
2151
query I rowsort
SELECT + col1 AS col0 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT + col0 + - col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + col1 * col2 + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT + cor0.col0 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + cor0.col1 + - col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL - + col0 + 15 AS col0 FROM tab1 AS cor0
----
-49
-65
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - ( + col1 ) col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + - 58 * col2 AS col2 FROM tab1 cor0
----
-3132
-3306
-5568
query I rowsort
SELECT col1 * 61 + col0 FROM tab2 AS cor0
----
1116
1898
3677
query I rowsort
SELECT ALL + + col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + 52 FROM tab1 AS cor0
----
52
52
52
query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL col0 * + col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + 76 * 86 + col1 * 4 FROM tab1 AS cor0
----
6576
6588
6640
query I rowsort
SELECT - col2 * col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - col0 * 28 FROM tab2 cor0
----
-196
-2184
-2212
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2473
SELECT CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2473
SELECT CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + col2 + + col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - col0 * + 44 + - col0 * - 78 + + col2 AS col0 FROM tab1 AS cor0
----
156
2233
2816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2478
SELECT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2478
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2479
SELECT ALL col0 * col2 DIV + 64 AS col2 FROM tab1
----
120
2
57
skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL col0 * col2 / + 64 AS col2 FROM tab1
----
120
2
57
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab0 AS cor0
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8
query I rowsort
SELECT DISTINCT 99 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
99
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab1 AS cor0
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9
query I rowsort
SELECT ALL + col1 + - ( - col2 ) * - col2 FROM tab1
----
-2890
-3239
-9203
onlyif mysql # use DIV operator for integer division
query I rowsort label-2484
SELECT ALL + ( col2 ) + - col1 DIV ( + ( - col1 ) ) + - cor0.col2 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2484
SELECT ALL + ( col2 ) + - col1 / ( + ( - col1 ) ) + - cor0.col2 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + col1 AS col2 FROM tab2
----
17
31
59
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
54 values hashing to 3352c458f45211cf9aa3236c2cd6dd38
query I rowsort
SELECT DISTINCT + 87 FROM tab0, tab1 AS cor0
----
87
query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
54 values hashing to 2a7467bc6f55dbb61fbd4aa2bd0646a9
query I rowsort
SELECT + 96 * col2 FROM tab0 AS cor0
----
3168
7872
96
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
972 values hashing to deaaa983f771be544ffdc26f04a18657
onlyif mysql # use DIV operator for integer division
query I rowsort label-2492
SELECT + tab0.col0 DIV col0 + - col2 FROM tab0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-2492
SELECT + tab0.col0 / col0 + - col2 FROM tab0
----
-32
-81
0
query I rowsort
SELECT col2 * col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-2494
SELECT - + cor0.col1 DIV + 28 FROM tab0 AS cor0
----
-3
-3
-3
skipif mysql # not compatible
query I rowsort label-2494
SELECT - + cor0.col1 / + 28 FROM tab0 AS cor0
----
-3
-3
-3
query I rowsort
SELECT + + ( - col1 ) * + col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + ( col2 ) AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - tab0.col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT ALL 20 FROM tab2
----
20
20
20
query IIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7
query I rowsort
SELECT cor0.col2 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + 22 AS col0 FROM tab2
----
22
query I rowsort
SELECT ALL col0 AS col0 FROM tab2
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col2 col1 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 col2 FROM tab1
----
0
0
0
query I rowsort
SELECT + cor0.col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + 19 AS col1 FROM tab2
----
19
query I rowsort
SELECT + 39 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT - 88 FROM tab0
----
-88
-88
-88
query I rowsort
SELECT col0 + ( col0 ) FROM tab0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-2511
SELECT - ( col2 ) + tab1.col0 DIV col1 AS col2 FROM tab1
----
-51
-54
-90
skipif mysql # not compatible
query I rowsort label-2511
SELECT - ( col2 ) + tab1.col0 / col1 AS col2 FROM tab1
----
-51
-54
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 + col0 ) col2 FROM tab2
----
0
query I rowsort
SELECT DISTINCT col2 * tab2.col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL tab0.col2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
54 values hashing to 341cdc053c309cf3abe57fa060ecf96e
query I rowsort
SELECT col2 AS col0 FROM tab1
----
54
57
96
query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
54 values hashing to 3352c458f45211cf9aa3236c2cd6dd38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab0
----
1
33
82
query I rowsort
SELECT + ( + tab1.col1 ) AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL col1 * col2 + col0 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-2521
SELECT col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-2521
SELECT col2 / - col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2522
SELECT DISTINCT - col0 + - col1 DIV col1 AS col0 FROM tab2 AS cor0
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT - col0 + - col1 / col1 AS col0 FROM tab2 AS cor0
----
-79
-8
-80
query I rowsort
SELECT DISTINCT - col1 + col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - - cor0.col1 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ( - col0 ) FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + 69 * col2 FROM tab1 cor0
----
3726
3933
6624
query I rowsort
SELECT - 12 AS col1 FROM tab2 AS cor0
----
-12
-12
-12
query I rowsort
SELECT ALL - - col1 - col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 79 * col2 + cor0.col0 FROM tab2 AS cor0
----
2132
2140
3081
query I rowsort
SELECT - - 21 * col2 FROM tab1 AS cor0
----
1134
1197
2016
query I rowsort
SELECT DISTINCT col1 - - col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - + 42 AS col1 FROM tab0 AS cor0
----
-42
-42
-42
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-2534
SELECT DISTINCT + col2 * ( col1 * col0 ) + col0 DIV - col1 AS col0 FROM tab2
----
119651
51030
5859
skipif mysql # not compatible
query I rowsort label-2534
SELECT DISTINCT + col2 * ( col1 * col0 ) + col0 / - col1 AS col0 FROM tab2
----
119651
51030
5859
query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
54 values hashing to b010e320d66ab5b2711fc14e8fb58b01
query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT col0 * ( + col0 ) FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL - + col0 * - col2 - - 54 * - col2 FROM tab0 AS cor0
----
-19
-990
2870
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2539
SELECT - col0 * CAST( NULL AS SIGNED ) + ( + col0 ) / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2539
SELECT - col0 * CAST ( NULL AS INTEGER ) + ( + col0 ) / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2540
SELECT ALL - col2 DIV ( 32 ) + + cor0.col0 FROM tab2 AS cor0
----
7
78
78
skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL - col2 / ( 32 ) + + cor0.col0 FROM tab2 AS cor0
----
7
78
78
query I rowsort
SELECT + col2 + 57 FROM tab0 AS cor0
----
139
58
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2542
SELECT DISTINCT + col0 + CAST( cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT + col0 + CAST ( cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - - col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 88 + col1 * + col1 col2 FROM tab1 AS cor0
----
-5532
-6871
412
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2547
SELECT ALL - CAST( NULL AS SIGNED ) * + cor0.col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2547
SELECT ALL - CAST ( NULL AS INTEGER ) * + cor0.col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + cor0.col2 + + col2 AS col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL - col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL ( col2 + tab0.col0 ) AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT 87 AS col2 FROM tab1
----
87
87
87
query I rowsort
SELECT ALL - + col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - 60 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f
onlyif mysql # use DIV operator for integer division
query I rowsort label-2555
SELECT ALL + col2 DIV + col2 AS col2 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL + col2 / + col2 AS col2 FROM tab0 cor0
----
1
1
1
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 AS cor1
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993
query I rowsort
SELECT + - col1 + 62 FROM tab0 AS cor0
----
-24
-29
-35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 23 col2 FROM tab2
----
-15
-3
-4
query I rowsort
SELECT 4 AS col2 FROM tab2 AS cor0
----
4
4
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 94 ) + col1 col1 FROM tab1 AS cor0
----
-68
-81
-84
query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + col1 * - 26 AS col1 FROM tab0 AS cor0
----
-2236
-2366
-2522
query I rowsort
SELECT - - col0 + col1 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT col0 * + 18 FROM tab2 AS cor0
----
126
1404
1422
query I rowsort
SELECT + col2 * col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-2566
SELECT col2 DIV col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-2566
SELECT col2 / col0 FROM tab1 AS cor0
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * tab0.col2 * + tab0.col1 col1 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT + col1 * - col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + - col1 * col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - - col1 FROM tab0 AS cor0
----
86
91
97
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab0 cor1, tab0 AS cor2
----
972 values hashing to 8420206d6932c454f05a38de634b3cb5
query I rowsort
SELECT DISTINCT + 80 AS col2 FROM tab2, tab2 cor0
----
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 24 ) col0 FROM tab2 cor0
----
-24
-24
-24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 col1 FROM tab1, tab1 cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab0
----
24
35
89
query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
54 values hashing to 3352c458f45211cf9aa3236c2cd6dd38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2578
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 FROM tab0
----
NULL
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab1, tab0 AS cor1
----
972 values hashing to 5e655b1287771868a8f868574a94d749
query I rowsort
SELECT - - 88 * - col2 AS col1 FROM tab1 AS cor0
----
-4752
-5016
-8448
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2581
SELECT ( - col2 ) + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-55
-58
-85
skipif mysql # not compatible
query I rowsort label-2581
SELECT ( - col2 ) + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT cor0.col1 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
54 values hashing to d8165ceb99ded93f34ad83c310a80ea7
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab0, tab2 AS cor1
----
972 values hashing to 591a9a93560839231c038a1e10bd240a
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc
query I rowsort
SELECT DISTINCT 5 + 30 AS col1 FROM tab2
----
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) + - col1 * ( 17 + + col0 ) col0 FROM tab2
----
-1649
-5664
-775
query I rowsort
SELECT col1 AS col2 FROM tab1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col0 col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT + ( + col2 ) AS col1 FROM tab2
----
26
27
38
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab0 AS cor0, tab2
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c
query I rowsort
SELECT DISTINCT ( - col2 + 74 ) FROM tab0
----
-8
41
73
query I rowsort
SELECT + 38 FROM tab2
----
38
38
38
query I rowsort
SELECT + col0 FROM tab2
----
7
78
79
query I rowsort
SELECT 42 FROM tab1
----
42
42
42
query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL - 36 FROM tab1
----
-36
-36
-36
query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
54 values hashing to b8667d60d280879b35ad1450a82b3a49
query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 cor1
----
54 values hashing to b8667d60d280879b35ad1450a82b3a49
query I rowsort
SELECT DISTINCT + + col0 + - ( + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - col1 * col0 * 24 AS col0 FROM tab0 AS cor0
----
-194376
-49536
-81480
query I rowsort
SELECT ALL - 19 + col0 FROM tab2
----
-12
59
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-2604
SELECT + col2 + - col2 DIV - col1 FROM tab2 AS cor0
----
26
27
40
skipif mysql # not compatible
query I rowsort label-2604
SELECT + col2 + - col2 / - col1 FROM tab2 AS cor0
----
26
27
40
query I rowsort
SELECT + 1 + - col1 AS col1 FROM tab0 AS cor0
----
-85
-90
-96
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab0 cor1
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993
query I rowsort
SELECT ALL + col1 AS col0 FROM tab2
----
17
31
59
query I rowsort
SELECT col2 - ( tab1.col0 ) * + col2 FROM tab1
----
-108
-3591
-7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT ALL - col1 * + col2 * 29 FROM tab1 AS cor0
----
-16530
-36192
-40716
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab0 AS cor0
----
-24
-35
-89
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 980274175fafec015a83080672486a9a
query I rowsort
SELECT - - col2 * + ( - 45 + cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-10
-693
3608
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * col1 col2 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT + tab1.col2 * + 20 - + tab1.col1 AS col2 FROM tab1
----
1054
1130
1907
query I rowsort
SELECT DISTINCT + col1 - + col0 AS col0 FROM tab0
----
2
62
query I rowsort
SELECT DISTINCT 87 * col0 + - col2 - + col2 FROM tab2
----
555
6734
6797
query I rowsort
SELECT DISTINCT - 9 + 85 - col2 FROM tab1
----
-20
19
22
query I rowsort
SELECT + 2 * col1 AS col1 FROM tab2
----
118
34
62
query I rowsort
SELECT ALL tab0.col0 - - col2 * + col2 AS col0 FROM tab0
----
1113
36
6813
query I rowsort
SELECT ALL 2 AS col2 FROM tab0
----
2
2
2
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab0 AS cor0
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d
query I rowsort
SELECT - col0 AS col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT + 64 FROM tab0 AS cor0
----
64
64
64
query I rowsort
SELECT - + 99 AS col0 FROM tab2 AS cor0
----
-99
-99
-99
query I rowsort
SELECT + col1 * + col2 * + col1 FROM tab1 AS cor0
----
16224
36504
5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 + + cor0.col2 - col2 col2 FROM tab0 AS cor0
----
34
34
34
query I rowsort
SELECT - 2 * - 43 AS col1 FROM tab1 AS cor0
----
86
86
86
query I rowsort
SELECT - cor0.col1 - - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 * col2 AS col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT + - col0 - + col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL - + col1 * col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - - 27 FROM tab1 AS cor0
----
27
query I rowsort
SELECT col1 + col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + - col2 + - col2 * + ( col1 ) * - col0 FROM tab2 AS cor0
----
119626
50996
5832
query I rowsort
SELECT + + 64 * col1 AS col2 FROM tab2 AS cor0
----
1088
1984
3776
query I rowsort
SELECT 62 * col1 + - col0 FROM tab1 AS cor0
----
1609
556
726
query I rowsort
SELECT + 12 * col1 AS col0 FROM tab0
----
1032
1092
1164
query I rowsort
SELECT DISTINCT - ( + col2 ) FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - col2 * cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2641
SELECT ALL col1 DIV col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL col1 / col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT ALL 97 * 67 FROM tab1
----
6499
6499
6499
query I rowsort
SELECT 42 + col1 * - col2 * col0 FROM tab2
----
-119610
-50992
-5817
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2644
SELECT DISTINCT + CAST( + col2 AS SIGNED ) FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) FROM tab1
----
54
57
96
query I rowsort
SELECT ALL - ( - 92 ) FROM tab2 AS cor0
----
92
92
92
query I rowsort
SELECT DISTINCT col2 * - col1 * col2 FROM tab2 cor0
----
-22599
-24548
-39884
query I rowsort
SELECT + 88 AS col1 FROM tab1 cor0
----
88
88
88
query I rowsort
SELECT DISTINCT - cor0.col2 * ( cor1.col0 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6e956995b57dab53690e9e5feefd0b3a
query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0
----
54 values hashing to 69e208df4a305efdfcc036bb4b31e720
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-2651
SELECT ALL 88 * col0 DIV col1 FROM tab0 AS cor0
----
24
31
86
skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL 88 * col0 / col1 FROM tab0 AS cor0
----
24
31
86
query I rowsort
SELECT DISTINCT - col0 * + ( + col1 + cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-10686
-266
-7584
query I rowsort
SELECT - 78 FROM tab1 AS cor0
----
-78
-78
-78
query I rowsort
SELECT ALL - col0 * + col0 + + col0 AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab2 cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2656
SELECT 70 * col1 - + CAST( NULL AS SIGNED ) * col0 * + col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2656
SELECT 70 * col1 - + CAST ( NULL AS INTEGER ) * col0 * + col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col2 * - col2 + + ( - cor0.col2 ) AS col0 FROM tab0 cor0
----
0
1056
6642
query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - 91 FROM tab0, tab0 cor0, tab2 cor1
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab
query I rowsort
SELECT ALL + ( + tab1.col1 ) + col1 * - 80 + col1 AS col2 FROM tab1
----
-1014
-2028
-780
query I rowsort
SELECT - 64 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 100c625e45715c20368551989514ba64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2662
SELECT ALL + tab1.col2 * + col0 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL + tab1.col2 * + col0 + + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 AS col1 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + col1 * - col1 - ( + 81 ) FROM tab1 AS cor0
----
-181
-250
-757
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + col0 col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - cor0.col1 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-2667
SELECT ALL + - col1 * + cor0.col2 + col2 DIV + 91 FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL + - col1 * + cor0.col2 + col2 / + 91 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + + col0 + + col2 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL - - col1 * col1 - col0 AS col1 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT DISTINCT + - col1 - + col2 FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2671
SELECT ALL col2 * - cor0.col1 + + CAST( NULL AS SIGNED ) + + col1 * cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL col2 * - cor0.col1 + + CAST ( NULL AS INTEGER ) + + col1 * cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab0 AS cor0, tab2
----
972 values hashing to a9068b700464993db9fae6f630605fde
query I rowsort
SELECT - col1 + + col2 * - col0 FROM tab0
----
-132
-7389
-878
query I rowsort
SELECT ALL - + col0 * - col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1
----
3
64
80
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab1 AS cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col0 col1 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL + col1 AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL tab1.col1 * col0 * col0 AS col1 FROM tab1
----
234
40960
83200
query I rowsort
SELECT DISTINCT col1 FROM tab1
----
10
13
26
query I rowsort
SELECT + 2 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
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 # support for MySQL specific system types and syntax
query I rowsort label-2683
SELECT DISTINCT + col0 * CAST( col2 + col0 * - 16 AS SIGNED ) AS col1 FROM tab1 cor0
----
-61888
-94720
18
skipif mysql # not compatible
query I rowsort label-2683
SELECT DISTINCT + col0 * CAST ( col2 + col0 * - 16 AS INTEGER ) AS col1 FROM tab1 cor0
----
-61888
-94720
18
query I rowsort
SELECT col1 + - 67 * 18 FROM tab0 AS cor0
----
-1109
-1115
-1120
query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + + cor0.col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + - col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - - col0 + + col0 * + 2 FROM tab1 AS cor0
----
192
240
9
query I rowsort
SELECT ALL - + 4 * col2 FROM tab2 AS cor0
----
-104
-108
-152
query I rowsort
SELECT DISTINCT + col0 * - col0 * - col2 + + col0 FROM tab0 AS cor0
----
1260
19032
649611
query I rowsort
SELECT DISTINCT + col0 + - col2 * + cor0.col1 * + col0 AS col1 FROM tab2 AS cor0
----
-119574
-50955
-5852
query I rowsort
SELECT ALL cor0.col1 - col1 * + col2 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT - - 62 AS col0 FROM tab2 AS cor0
----
62
62
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 18 col0 FROM tab1 AS cor0
----
-18
-18
-18
query I rowsort
SELECT DISTINCT - 95 + col1 AS col2 FROM tab1 AS cor0
----
-69
-82
-85
query I rowsort
SELECT + col0 * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT - ( 61 ) AS col2 FROM tab1 AS cor0
----
-61
-61
-61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2699
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( cor0.col0 ) * col0 + + 2 AS col0 FROM tab1 cor0
----
11
4098
6402
query I rowsort
SELECT DISTINCT + - 67 * col1 AS col1 FROM tab1 AS cor0
----
-1742
-670
-871
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2702
SELECT DISTINCT - CAST( + col0 AS SIGNED ) - col1 FROM tab2 AS cor0
----
-137
-38
-96
skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) - col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT ALL col1 * + col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + + ( - col0 ) + + col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + ( - col1 ) - col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT ALL - + 87 AS col2 FROM tab1 cor0
----
-87
-87
-87
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab0 cor0, tab0
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b
query I rowsort
SELECT 82 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT ALL - col0 * + col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL cor0.col2 * col0 AS col2 FROM tab1 cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 13 * col2 col2 FROM tab0 AS cor0
----
-1066
-13
-429
query I rowsort
SELECT - 9 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a
query I rowsort
SELECT ALL ( + cor0.col1 ) * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab0 cor1
----
243 values hashing to 3e8bd9634a3f5947d8becd5f5799bb7f
query I rowsort
SELECT + + col2 * col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT + ( - col1 ) * cor0.col0 + - col2 AS col1 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT ALL + col1 * col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT 55 + - 34 FROM tab1 AS cor0
----
21
21
21
query I rowsort
SELECT - - col1 * - cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + col1 + - 31 FROM tab0
----
55
60
66
query IIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5
query IIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1, tab1 AS cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
onlyif mysql # use DIV operator for integer division
query I rowsort label-2727
SELECT + col1 DIV cor0.col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-2727
SELECT + col1 / cor0.col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT - + col1 * - cor0.col0 + col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - - col1 + col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT - col1 * + col1 + - col2 FROM tab0
----
-7429
-8363
-9410
query I rowsort
SELECT ALL 20 * + col0 FROM tab1
----
1280
1600
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2732
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab2
----
NULL
query I rowsort
SELECT - col0 * col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + cor0.col0 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
onlyif mysql # use DIV operator for integer division
query I rowsort label-2735
SELECT 27 DIV col1 + - col2 FROM tab1
----
-53
-55
-94
skipif mysql # not compatible
query I rowsort label-2735
SELECT 27 / col1 + - col2 FROM tab1
----
-53
-55
-94
query I rowsort
SELECT DISTINCT 9 * col1 AS col0 FROM tab2
----
153
279
531
onlyif mysql # use DIV operator for integer division
query I rowsort label-2737
SELECT DISTINCT + 6 DIV 44 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT + 6 / 44 FROM tab2
----
0
query I rowsort
SELECT - 35 FROM tab1, tab2 cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b
query I rowsort
SELECT ALL ( 37 ) FROM tab2
----
37
37
37
query I rowsort
SELECT DISTINCT 12 * col1 AS col1 FROM tab0
----
1032
1092
1164
query I rowsort
SELECT col2 + - col2 * + tab0.col0 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT + ( col1 ) AS col0 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2743
SELECT - cor0.col2 - ( - col0 ) DIV + col0 AS col1 FROM tab2 cor0
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-2743
SELECT - cor0.col2 - ( - col0 ) / + col0 AS col1 FROM tab2 cor0
----
-25
-26
-37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2744
SELECT + col0 * CAST( NULL AS SIGNED ) + + col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2744
SELECT + col0 * CAST ( NULL AS INTEGER ) + + col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + - ( - col0 ) FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT col2 + tab2.col1 FROM tab2
----
55
58
85
query I rowsort
SELECT + col2 * + col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT + col1 * col2 AS col0 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL + - col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + col0 + - col1 + + col2 * col1 AS col1 FROM tab2 AS cor0
----
1553
708
813
query I rowsort
SELECT - col0 AS col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT 51 + col2 * ( ( col2 ) ) * 0 AS col2 FROM tab1
----
51
query I rowsort
SELECT ALL col0 + - col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT - col1 * col2 + + 37 AS col2 FROM tab1
----
-1211
-1367
-533
query I rowsort
SELECT tab0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to b62c1ebc681aca72d13feadb888b3be7
query I rowsort
SELECT ALL + col1 * 27 AS col0 FROM tab2
----
1593
459
837
query I rowsort
SELECT ALL - cor0.col0 * - col1 + - col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT DISTINCT - - col2 * - ( col0 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-2761
SELECT ALL col1 DIV + cor0.col2 col2 FROM tab0 AS cor0
----
1
2
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL col1 / + cor0.col2 col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT + col0 * 57 FROM tab2 AS cor0
----
399
4446
4503
query I rowsort
SELECT col0 * ( + col2 ) FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL - + 38 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507
query I rowsort
SELECT + + col0 AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - + col2 + - 20 + - col1 AS col0 FROM tab0 AS cor0
----
-118
-139
-193
query I rowsort
SELECT - - col2 - - 84 AS col2 FROM tab2 AS cor0
----
110
111
122
query I rowsort
SELECT ALL col1 + + cor0.col1 * - col1 * - col2 FROM tab0 cor0
----
244154
679133
9506
query I rowsort
SELECT 31 FROM tab1
----
31
31
31
query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2
----
-26
-27
-38
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab1 cor0
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4
query I rowsort
SELECT ALL ( col1 + 39 * 4 ) FROM tab2
----
173
187
215
query I rowsort
SELECT col2 * col0 FROM tab1
----
162
3648
7680
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab2 AS cor0
----
243 values hashing to ea21cea53be47edd19229592e3d26141
query I rowsort
SELECT 50 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80
query I rowsort
SELECT + col2 * col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab1 cor0
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
query I rowsort
SELECT + col2 + col2 * - ( + 89 * col2 ) FROM tab2 AS cor0
----
-128478
-60138
-64854
query I rowsort
SELECT - + col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - cor0.col2 * + 51 FROM tab2 AS cor0
----
-1326
-1377
-1938
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 61 * + col1 col2 FROM tab2 AS cor0
----
-1116
-1898
-3677
query I rowsort
SELECT DISTINCT col1 * 69 FROM tab0 AS cor0
----
5934
6279
6693
onlyif mysql # use DIV operator for integer division
query I rowsort label-2783
SELECT DISTINCT + col2 DIV + ( col0 ) FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-2783
SELECT DISTINCT + col2 / + ( col0 ) FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT DISTINCT - col2 + + col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL col2 * col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + col2 + - col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - col2 AS col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + col1 * 33 + 85 AS col2 FROM tab2 AS cor0
----
1108
2032
646
query I rowsort
SELECT DISTINCT - col2 * col2 - - col0 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - col1 * - 30 + col2 + - 53 FROM tab2 AS cor0
----
1743
495
904
query I rowsort
SELECT + col1 * col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - - col1 * + col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - col2 * col1 - col0 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT ALL - col0 * - 5 AS col1 FROM tab1
----
15
320
400
onlyif mysql # use DIV operator for integer division
query I rowsort label-2797
SELECT tab1.col2 DIV tab1.col1 AS col2 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-2797
SELECT tab1.col2 / tab1.col1 AS col2 FROM tab1
----
2
5
7
query I rowsort
SELECT + ( cor0.col2 ) + col0 * - col0 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT - + col1 - + col0 * col0 AS col1 FROM tab0 AS cor0
----
-1322
-662
-8012
query I rowsort
SELECT + ( 28 ) AS col1 FROM tab1 AS cor0
----
28
28
28
query I rowsort
SELECT - 91 - 75 AS col0 FROM tab1 cor0
----
-166
-166
-166
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2802
SELECT + CAST( - col2 AS SIGNED ) - col1 * col1 FROM tab0 AS cor0
----
-7429
-8363
-9410
skipif mysql # not compatible
query I rowsort label-2802
SELECT + CAST ( - col2 AS INTEGER ) - col1 * col1 FROM tab0 AS cor0
----
-7429
-8363
-9410
query I rowsort
SELECT - col0 + - col1 FROM tab1 cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT 76 * col0 * col0 AS col1 FROM tab1 AS cor0
----
311296
486400
684
query I rowsort
SELECT - col2 * - col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT - cor0.col2 * col2 * + ( + 75 ) FROM tab1 AS cor0
----
-218700
-243675
-691200
query I rowsort
SELECT DISTINCT + - cor0.col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL ( cor0.col1 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL + col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT + col0 + - col1 FROM tab0 AS cor0
----
-2
-62
-62
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab2 AS cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2812
SELECT DISTINCT - CAST( 18 AS SIGNED ) * + col0 AS col0 FROM tab0
----
-1602
-432
-630
skipif mysql # not compatible
query I rowsort label-2812
SELECT DISTINCT - CAST ( 18 AS INTEGER ) * + col0 AS col0 FROM tab0
----
-1602
-432
-630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) + - ( + col0 ) col0 FROM tab1 AS cor0
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col1 - + col2 col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT + + 13 FROM tab1 AS cor0
----
13
query I rowsort
SELECT DISTINCT - 51 * col1 FROM tab0 AS cor0
----
-4386
-4641
-4947
onlyif mysql # use DIV operator for integer division
query I rowsort label-2817
SELECT DISTINCT - 51 DIV + cor0.col0 FROM tab0 cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-2817
SELECT DISTINCT - 51 / + cor0.col0 FROM tab0 cor0
----
-1
-2
0
query I rowsort
SELECT - 59 * col0 AS col1 FROM tab2 cor0
----
-413
-4602
-4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2819
SELECT + ( col1 ) * CAST( NULL AS SIGNED ) + 53 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2819
SELECT + ( col1 ) * CAST ( NULL AS INTEGER ) + 53 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * + cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL + - col0 + - col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT - + col2 * cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + 59 AS col0 FROM tab2 AS cor0
----
59
59
59
query I rowsort
SELECT + - col0 - - col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - + col0 + - col2 * + cor0.col0 FROM tab1 AS cor0
----
-165
-3712
-7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - col0 * + col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ( 0 + tab0.col2 ) AS col2 FROM tab0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2829
SELECT col2 DIV + 12 AS col2 FROM tab2
----
2
2
3
skipif mysql # not compatible
query I rowsort label-2829
SELECT col2 / + 12 AS col2 FROM tab2
----
2
2
3
query I rowsort
SELECT DISTINCT col0 * col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT 40 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT ALL 54 + - col0 AS col2 FROM tab0 AS cor0
----
-35
19
30
onlyif mysql # use DIV operator for integer division
query I rowsort label-2833
SELECT + col1 + col2 * 85 DIV col0 + col2 FROM tab1 cor0
----
142
1610
211
skipif mysql # not compatible
query I rowsort label-2833
SELECT + col1 + col2 * 85 / col0 + col2 FROM tab1 cor0
----
142
1610
211
query I rowsort
SELECT DISTINCT - cor0.col2 + - cor0.col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT - + 82 * col0 * - ( cor0.col0 ) FROM tab1 AS cor0
----
335872
524800
738
query I rowsort
SELECT + col2 * + col0 - col1 FROM tab0 AS cor0
----
-62
706
7207
onlyif mysql # use DIV operator for integer division
query I rowsort label-2837
SELECT ALL + col0 DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL + col0 / cor0.col1 AS col1 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT DISTINCT 25 + - cor0.col0 * col2 * + col0 FROM tab0 cor0
----
-1200
-18983
-649497
query I rowsort
SELECT ALL - - 31 * col0 AS col0 FROM tab0 AS cor0
----
1085
2759
744
query I rowsort
SELECT ALL + col1 + col1 FROM tab1
----
20
26
52
query I rowsort
SELECT DISTINCT 14 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
14
query I rowsort
SELECT + 33 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT - col1 * col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - + col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + + col0 + - col1 * col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL - col1 * - col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + 67 * + col2 FROM tab0
----
2211
5494
67
query I rowsort
SELECT - col1 - col1 * 68 FROM tab1 AS cor0
----
-1794
-690
-897
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1 AS cor1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242
query I rowsort
SELECT DISTINCT - 66 AS col2 FROM tab1, tab1 AS cor0
----
-66
query IIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f
query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + - col0 + + 49 * - col0 FROM tab2 AS cor0
----
-350
-3900
-3950
query I rowsort
SELECT DISTINCT + - col2 * + col2 + col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT - + col1 * col1 FROM tab1 AS cor0
----
-100
-169
-676
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab0 cor1
----
243 values hashing to 3e8bd9634a3f5947d8becd5f5799bb7f
query I rowsort
SELECT DISTINCT - col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + 5 + 52 AS col0 FROM tab1 AS cor0
----
57
57
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2859
SELECT - col1 DIV col2 + - tab0.col1 FROM tab0
----
-194
-88
-92
skipif mysql # not compatible
query I rowsort label-2859
SELECT - col1 / col2 + - tab0.col1 FROM tab0
----
-194
-88
-92
query IIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab1 AS cor1
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614
query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT - 34 FROM tab1
----
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-2864
SELECT DISTINCT + tab1.col0 DIV + col1 AS col0 FROM tab1
----
0
6
skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT + tab1.col0 / + col1 AS col0 FROM tab1
----
0
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2865
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / tab2.col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT - CAST ( NULL AS REAL ) / tab2.col0 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT + 7 AS col0 FROM tab0, tab0 AS cor0
----
7
query I rowsort
SELECT col2 * + ( + col1 * + col1 ) + + tab0.col0 FROM tab0
----
244092
679131
9444
query I rowsort
SELECT + ( tab2.col0 ) + col1 * ( + ( col1 ) * + col1 ) FROM tab2
----
205457
29798
4992
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab0 AS cor0, tab0
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b
query I rowsort
SELECT - col1 * - ( col2 ) - - col1 * col1 FROM tab2
----
1798
5015
935
query I rowsort
SELECT tab0.col2 + - 14 + col2 * + 48 FROM tab0
----
1603
35
4004
query I rowsort
SELECT DISTINCT - - 17 AS col1 FROM tab0, tab1, tab0 AS cor0
----
17
query I rowsort
SELECT DISTINCT 3 * col2 FROM tab0
----
246
3
99
query I rowsort
SELECT ALL + 94 FROM tab1, tab0 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT + cor0.col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query IIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab0 cor1
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0
query I rowsort
SELECT + - cor0.col1 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT + 37 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2
onlyif mysql # use DIV operator for integer division
query I rowsort label-2880
SELECT DISTINCT ( 60 ) * - cor0.col0 DIV cor0.col0 FROM tab2, tab2 AS cor0
----
-60
skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT ( 60 ) * - cor0.col0 / cor0.col0 FROM tab2, tab2 AS cor0
----
-60
query I rowsort
SELECT - col2 + col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + col2 + 22 FROM tab2 AS cor0
----
48
49
60
query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + col0 * 23 FROM tab1 cor0
----
1472
1840
69
query I rowsort
SELECT + cor0.col2 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 col0 FROM tab2
----
-14
-156
-158
query I rowsort
SELECT - col0 * + tab2.col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT - col2 + col0 * col1 FROM tab2
----
1305
190
4576
query I rowsort
SELECT col1 + + 27 * - 53 AS col1 FROM tab0
----
-1334
-1340
-1345
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab0 AS cor0, tab0
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0
query I rowsort
SELECT col1 + - col1 AS col0 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2892
SELECT col2 DIV + col2 + col2 AS col0 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-2892
SELECT col2 / + col2 + col2 AS col0 FROM tab0
----
2
34
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-2893
SELECT DISTINCT - col0 DIV tab0.col2 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT - col0 / tab0.col2 FROM tab0
----
-1
-35
0
query I rowsort
SELECT col0 * ( col1 ) FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL - + col2 + col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT - col1 * + 61 AS col0 FROM tab2 AS cor0
----
-1037
-1891
-3599
query I rowsort
SELECT ALL 80 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91
query I rowsort
SELECT DISTINCT col1 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - + col0 + ( - col1 ) * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT col2 + col2 AS col0 FROM tab1
----
108
114
192
query I rowsort
SELECT DISTINCT + col2 + col2 FROM tab1
----
108
114
192
query I rowsort
SELECT ALL + 63 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab0 AS cor0
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col2 * + col0 AS REAL ) + + col1 AS col0 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT 61 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT DISTINCT + col0 + + 25 FROM tab0
----
114
49
60
query I rowsort
SELECT col0 + - col2 AS col2 FROM tab1
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2910
SELECT + 81 * + 68 + + col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2910
SELECT + 81 * + 68 + + col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - - col1 * - col2 - col2 AS col1 FROM tab2 AS cor0
----
-1560
-684
-864
onlyif mysql # use DIV operator for integer division
query I rowsort label-2912
SELECT col0 DIV 79 + - col1 FROM tab1 AS cor0
----
-10
-12
-26
skipif mysql # not compatible
query I rowsort label-2912
SELECT col0 / 79 + - col1 FROM tab1 AS cor0
----
-10
-12
-26
query I rowsort
SELECT DISTINCT 45 + ( + col0 ) AS col1 FROM tab2 AS cor0
----
123
124
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-2914
SELECT ALL + ( col1 ) * + col0 - col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL + ( col1 ) * + col0 - col0 / + col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT col0 + - col2 AS col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT ALL + col0 + col1 AS col0 FROM tab1
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 + + tab1.col1 col2 FROM tab1
----
-1
15
2
query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL - col2 * col0 + 67 * col0 FROM tab2 AS cor0
----
2291
280
3198
query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + col0 - - col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + + col1 + col2 * col0 AS col0 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2923
SELECT ALL - col1 * cor0.col0 + - CAST( 18 * + col0 AS SIGNED ) FROM tab1 cor0
----
-132
-1792
-2480
skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL - col1 * cor0.col0 + - CAST ( 18 * + col0 AS INTEGER ) FROM tab1 cor0
----
-132
-1792
-2480
query I rowsort
SELECT DISTINCT - col2 - col1 AS col2 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT ALL + col2 * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab1 cor1
----
243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5
skipif mysql # not compatible
query I rowsort
SELECT + col0 * - col2 + CAST ( 70 + - col1 AS REAL ) AS col2 FROM tab0 AS cor0
----
-62
-7319
-808
query I rowsort
SELECT DISTINCT - + cor0.col1 * + col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + - col1 + col0 * 32 FROM tab2 AS cor0
----
193
2437
2511
query I rowsort
SELECT - + col0 + - cor0.col2 * cor0.col2 FROM tab2 cor0
----
-1523
-736
-754
query I rowsort
SELECT ALL - + col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT cor0.col1 * col1 + 55 FROM tab2 AS cor0
----
1016
344
3536
query I rowsort
SELECT DISTINCT - - 81 FROM tab1 AS cor0
----
81
query I rowsort
SELECT + col2 + + col2 * ( 90 ) AS col0 FROM tab1 AS cor0
----
4914
5187
8736
query I rowsort
SELECT DISTINCT + + col1 * col2 + ( + col1 ) FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL col0 + - col2 * col0 FROM tab1 cor0
----
-159
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-2937
SELECT ALL - + 96 DIV col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-32
skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL - + 96 / col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-32
query I rowsort
SELECT + col1 * col1 FROM tab1
----
100
169
676
query I rowsort
SELECT + 67 - + col2 FROM tab1
----
-29
10
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col2 * - ( - col0 ) col0 FROM tab0 AS cor0
----
-706
-7207
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 + - col0 col2 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT ALL - col0 * col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ( - tab0.col2 ) * - ( tab0.col2 ) FROM tab0
----
1
1089
6724
query I rowsort
SELECT DISTINCT col0 * col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT - col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - - cor0.col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT col2 * + col1 AS col1 FROM tab1
----
1248
1404
570
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 cor1
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d
query I rowsort
SELECT ALL 9 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07
query I rowsort
SELECT DISTINCT col0 * tab1.col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT - tab0.col1 * col0 * 1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + 6 + col1 AS col1 FROM tab2 AS cor0
----
23
37
65
query I rowsort
SELECT + 58 - col2 AS col1 FROM tab0 AS cor0
----
-24
25
57
query I rowsort
SELECT col0 * - col0 - - col2 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + col0 + + col1 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + + 97 FROM tab0 cor0
----
97
query I rowsort
SELECT - 2 + + col1 * - col0 FROM tab1 AS cor0
----
-1042
-642
-80
query I rowsort
SELECT + - 55 - - col1 FROM tab0 AS cor0
----
31
36
42
query I rowsort
SELECT - - col2 * - 87 AS col1 FROM tab1 AS cor0
----
-4698
-4959
-8352
query I rowsort
SELECT - col0 AS col1 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT + + col2 * + ( col0 ) AS col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT + col1 + col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + col0 + 29 FROM tab2 AS cor0
----
107
108
36
query I rowsort
SELECT + - col0 * col1 * + 93 + col0 FROM tab1 AS cor0
----
-59456
-7251
-96640
query I rowsort
SELECT ALL + col1 + col2 AS col0 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL 19 AS col2 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498
query I rowsort
SELECT + col0 + - col2 * + cor0.col0 FROM tab2 cor0
----
-182
-1950
-2923
query I rowsort
SELECT ALL + 61 + col1 FROM tab1 cor0
----
71
74
87
query I rowsort
SELECT 92 FROM tab0 AS cor0
----
92
92
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 85 + 15 col1 FROM tab1 cor0
----
100
query I rowsort
SELECT ALL cor0.col0 + col0 AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT + 83 FROM tab2 AS cor0
----
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-2976
SELECT DISTINCT + + CAST( col2 AS SIGNED ) * + col2 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2976
SELECT DISTINCT + + CAST ( col2 AS INTEGER ) * + col2 / cor0.col2 AS col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2977
SELECT + col0 + 81 DIV + col1 FROM tab1 AS cor0
----
6
72
86
skipif mysql # not compatible
query I rowsort label-2977
SELECT + col0 + 81 / + col1 FROM tab1 AS cor0
----
6
72
86
query I rowsort
SELECT ALL + 51 + ( cor0.col2 ) * + ( + col1 ) FROM tab0 AS cor0
----
148
2889
7513
onlyif mysql # use DIV operator for integer division
query I rowsort label-2979
SELECT - + col1 DIV ( col1 * + 69 ) AS col2 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2979
SELECT - + col1 / ( col1 * + 69 ) AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 + col1 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL - ( - col2 ) * col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + + 83 AS col1 FROM tab2 AS cor0
----
83
query I rowsort
SELECT DISTINCT - - col0 * + col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2985
SELECT ALL + + 58 DIV - col0 col1 FROM tab2 AS cor0
----
-8
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL + + 58 / - col0 col1 FROM tab2 AS cor0
----
-8
0
0
query I rowsort
SELECT col0 * - 8 AS col2 FROM tab0 AS cor0
----
-192
-280
-712
query I rowsort
SELECT ALL 12 FROM tab0 AS cor0
----
12
12
12
query I rowsort
SELECT - - ( col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - + col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - col2 col0 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT - tab2.col0 - - ( - 93 * + col2 ) AS col1 FROM tab2
----
-2496
-2518
-3613
query I rowsort
SELECT DISTINCT - col1 * ( + 25 + + col1 ) AS col0 FROM tab1
----
-1326
-350
-494
query I rowsort
SELECT + + 59 FROM tab1 AS cor0
----
59
59
59
query I rowsort
SELECT col0 - col0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - ( - col0 ) * col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - 15 * 0 FROM tab2
----
0
0
0
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d
query I rowsort
SELECT cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT - 44 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127
query I rowsort
SELECT ALL 13 FROM tab2, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab2 cor0
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL + col1 AS col2 FROM tab1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
21
query I rowsort
SELECT DISTINCT - 99 AS col0 FROM tab2 AS cor0
----
-99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3007
SELECT - CAST( 4 AS SIGNED ) FROM tab0 AS cor0
----
-4
-4
-4
skipif mysql # not compatible
query I rowsort label-3007
SELECT - CAST ( 4 AS INTEGER ) FROM tab0 AS cor0
----
-4
-4
-4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3008
SELECT ALL - - col0 * + 91 + + cor0.col0 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL - - col0 * + 91 + + cor0.col0 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + - col0 + - col0 AS col1 FROM tab0 cor0
----
-178
-48
-70
query I rowsort
SELECT ALL col0 + + col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + + col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - tab2.col1 AS col0 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT - col2 AS col2 FROM tab0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3015
SELECT col0 * CAST( - 83 AS SIGNED ) col1 FROM tab1
----
-249
-5312
-6640
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3015
SELECT col0 * CAST ( - 83 AS INTEGER ) col1 FROM tab1
----
-249
-5312
-6640
query I rowsort
SELECT + col2 * col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - col1 AS col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT col0 * tab0.col0 + col0 - col1 FROM tab0
----
1163
514
7919
query I rowsort
SELECT + + ( 14 ) FROM tab0 AS cor0
----
14
14
14
query I rowsort
SELECT - 68 + col0 FROM tab1 AS cor0
----
-4
-65
12
query I rowsort
SELECT 56 * - col1 + col1 AS col2 FROM tab2 AS cor0
----
-1705
-3245
-935
query I rowsort
SELECT - ( 2 ) * col1 + col0 AS col1 FROM tab2 AS cor0
----
-40
-55
45
query I rowsort
SELECT - 87 + 87 * - col0 AS col0 FROM tab2 AS cor0
----
-6873
-696
-6960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0
----
26
27
38
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab0, tab1 cor1
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53
query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 cor1
----
54 values hashing to 2a7467bc6f55dbb61fbd4aa2bd0646a9
query I rowsort
SELECT - col2 * col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + col0 AS col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT + 74 AS col1 FROM tab1 AS cor0
----
74
74
74
query I rowsort
SELECT 78 AS col0 FROM tab1 AS cor0
----
78
78
78
query I rowsort
SELECT DISTINCT + col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - - ( col0 ) * - 73 FROM tab1 AS cor0
----
-219
-4672
-5840
query I rowsort
SELECT + col0 - cor0.col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT - + col0 * 71 * + col2 - col0 AS col1 FROM tab1 AS cor0
----
-11505
-259072
-545360
query I rowsort
SELECT DISTINCT 82 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
82
query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab2, tab1 cor0
----
10
13
26
query I rowsort
SELECT col0 + 0 FROM tab2
----
7
78
79
query I rowsort
SELECT col0 * cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL tab0.col1 FROM tab0
----
86
91
97
query IIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1
----
243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5
query IIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc
query I rowsort
SELECT + 0 - cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to c569638e8a09ff819458d62ddbde994c
query I rowsort
SELECT DISTINCT - col1 + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT ALL - + col2 + - ( col1 ) + col0 AS col2 FROM tab0 cor0
----
-63
-84
-95
query I rowsort
SELECT - col2 * 30 FROM tab2 cor0
----
-1140
-780
-810
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 col2 * 23 FROM tab1 AS cor0
----
1242
1311
2208
query I rowsort
SELECT ALL col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - col0 * 98 AS col0 FROM tab2 AS cor0
----
-686
-7644
-7742
query I rowsort
SELECT + - col0 * 72 FROM tab0 AS cor0
----
-1728
-2520
-6408
query I rowsort
SELECT ALL + - col1 * + cor0.col2 AS col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - + col0 * 86 FROM tab1 cor0
----
-258
-5504
-6880
query I rowsort
SELECT - + col2 + - 48 * col0 FROM tab0 AS cor0
----
-1185
-1681
-4354
query I rowsort
SELECT ALL col2 + ( 63 ) * col0 AS col0 FROM tab0 cor0
----
1545
2206
5689
query I rowsort
SELECT - col0 * + 97 FROM tab2 AS cor0
----
-679
-7566
-7663
query I rowsort
SELECT ALL + col1 + + col0 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + cor0.col1 + col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT col1 * 69 FROM tab0 AS cor0
----
5934
6279
6693
query I rowsort
SELECT + + 40 * - ( col2 + col2 * 98 ) FROM tab1 AS cor0
----
-213840
-225720
-380160
query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab0, tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + 91 * - col0 FROM tab0 AS cor0
----
-2184
-3185
-8099
query I rowsort
SELECT 85 - - col0 FROM tab2 AS cor0
----
163
164
92
query I rowsort
SELECT - col1 * + col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + 86 FROM tab1 AS cor0
----
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-3067
SELECT + ( col1 ) - + cor0.col2 DIV col2 AS col2 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-3067
SELECT + ( col1 ) - + cor0.col2 / col2 AS col2 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT ALL col0 * 18 FROM tab2 AS cor0
----
126
1404
1422
query I rowsort
SELECT DISTINCT + cor0.col2 + + col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL col1 * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT 65 FROM tab2, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT ALL - col0 - 78 * + col2 AS col2 FROM tab0 AS cor0
----
-113
-2598
-6485
query I rowsort
SELECT DISTINCT 71 FROM tab0, tab0 AS cor0
----
71
query I rowsort
SELECT ALL - + col1 * + ( + col1 ) - 4 AS col0 FROM tab1 AS cor0
----
-104
-173
-680
query I rowsort
SELECT ALL col0 AS col0 FROM tab0
----
24
35
89
query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242
query I rowsort
SELECT 29 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
query I rowsort
SELECT 67 FROM tab2, tab0 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab0 AS cor1
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993
query I rowsort
SELECT ALL + - cor0.col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 col1 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 50 * col0 col0 FROM tab0 AS cor0
----
-1200
-1750
-4450
onlyif mysql # use DIV operator for integer division
query I rowsort label-3083
SELECT ALL + 54 DIV + col1 FROM tab2 AS cor0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL + 54 / + col1 FROM tab2 AS cor0
----
0
1
3
query I rowsort
SELECT DISTINCT cor1.col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
24
35
89
query I rowsort
SELECT - - cor0.col1 * + col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + ( + col2 ) + col0 * cor0.col1 FROM tab0 AS cor0
----
2097
3396
8181
query IIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab2 AS cor1
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc
query I rowsort
SELECT + cor0.col2 * + col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - 52 AS col1 FROM tab0 AS cor0
----
-52
-52
-52
query I rowsort
SELECT DISTINCT 43 * - col1 FROM tab2 AS cor0
----
-1333
-2537
-731
query I rowsort
SELECT - 50 FROM tab0
----
-50
-50
-50
onlyif mysql # use DIV operator for integer division
query I rowsort label-3092
SELECT DISTINCT - col0 DIV col0 AS col1 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-3092
SELECT DISTINCT - col0 / col0 AS col1 FROM tab2
----
-1
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab1 AS cor0
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab1 cor0
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4
query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - + col1 * 57 AS col0 FROM tab1 AS cor0
----
-1482
-570
-741
query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + 72 AS col0 FROM tab0
----
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-3099
SELECT ALL + ( col1 ) DIV 60 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL + ( col1 ) / 60 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL + col1 FROM tab2
----
17
31
59
query I rowsort
SELECT - 6 AS col1 FROM tab2
----
-6
-6
-6
query I rowsort
SELECT DISTINCT col1 * + col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + col0 * col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - col1 + cor0.col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT col0 + col0 AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL + col1 + 44 FROM tab0 cor0
----
130
135
141
query I rowsort
SELECT - col2 * cor0.col2 + - col0 AS col1 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT DISTINCT + + ( - 12 ) * cor0.col1 FROM tab2 AS cor0
----
-204
-372
-708
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3109
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ( 0 ) * - col0 * 56 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-3113
SELECT + + col1 + col0 DIV col1 FROM tab2 AS cor0
----
21
31
60
skipif mysql # not compatible
query I rowsort label-3113
SELECT + + col1 + col0 / col1 FROM tab2 AS cor0
----
21
31
60
query I rowsort
SELECT - col2 + 9 + + col2 FROM tab1 AS cor0
----
9
9
9
query I rowsort
SELECT DISTINCT tab2.col0 + - col2 * - col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT + 33 + ( col0 ) AS col0 FROM tab2 AS cor0
----
111
112
40
query I rowsort
SELECT ALL - ( - cor0.col1 ) * col1 AS col0 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT ALL - ( + col1 ) * - col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT - - col2 * - 23 FROM tab1 AS cor0
----
-1242
-1311
-2208
query I rowsort
SELECT ( - col0 ) * + col0 - + col2 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT ALL ( col0 ) + col1 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT - - col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL 0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - - 61 AS col0 FROM tab1 AS cor0
----
61
61
61
query I rowsort
SELECT - col2 * - col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT 56 * - col2 FROM tab0
----
-1848
-4592
-56
query I rowsort
SELECT - col1 * col2 * - col2 AS col1 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT col2 * col0 + col0 * - 74 FROM tab1
----
-1088
-60
1760
query I rowsort
SELECT DISTINCT col1 * col2 + col0 AS col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT ALL - 90 FROM tab2, tab0 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 7414b682e5ab5dac55bc20746601d17a
query I rowsort
SELECT ALL col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + cor0.col1 * col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - col1 * col0 - + col2 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT - 83 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843
query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - - cor0.col0 * col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT col2 - 94 * + col1 AS col1 FROM tab0 AS cor0
----
-8051
-8472
-9117
query I rowsort
SELECT ALL - cor0.col0 * + 99 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0efdcd7c477bd4fb6c16e7f8362ec86b
onlyif mysql # use DIV operator for integer division
query I rowsort label-3139
SELECT - + col2 DIV col0 AS col2 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3139
SELECT - + col2 / col0 AS col2 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT col2 + ( col2 * - col1 ) FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT ALL 31 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
onlyif mysql # use DIV operator for integer division
query I rowsort label-3142
SELECT - col2 DIV col2 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3142
SELECT - col2 / col2 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - col0 + + col1 * - col2 FROM tab2
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT - + col1 + + col1 * col0 AS col2 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-3145
SELECT - - col0 DIV - 56 - + col0 FROM tab0 AS cor0
----
-24
-35
-90
skipif mysql # not compatible
query I rowsort label-3145
SELECT - - col0 / - 56 - + col0 FROM tab0 AS cor0
----
-24
-35
-90
query I rowsort
SELECT DISTINCT col1 * - col2 * - cor0.col1 FROM tab1 AS cor0
----
16224
36504
5700
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3147
SELECT ALL col0 + 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-3147
SELECT ALL col0 + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col2 + - col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 5 FROM tab1, tab1 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21
query I rowsort
SELECT ALL - col0 + + tab0.col2 * col2 FROM tab0
----
-34
1065
6635
query I rowsort
SELECT cor0.col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query IIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00
query IIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9
query I rowsort
SELECT ALL - 30 * 17 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to aab2be19f25ca873297e15374a97f6ee
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab1 AS cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998
query I rowsort
SELECT - + col2 * - col0 * col1 - - col0 FROM tab0 AS cor0
----
3430
664207
68136
query I rowsort
SELECT DISTINCT + col0 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT + col0 FROM tab2
----
7
78
79
query I rowsort
SELECT tab0.col2 FROM tab0
----
1
33
82
query I rowsort
SELECT col0 * col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT DISTINCT 24 FROM tab1
----
24
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab0 AS cor0
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
query I rowsort
SELECT + tab1.col1 * ( + tab1.col1 ) * col0 FROM tab1
----
13520
2028
6400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3164
SELECT + CAST( col1 AS SIGNED ) * col0 FROM tab2
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-3164
SELECT + CAST ( col1 AS INTEGER ) * col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL col0 * 58 FROM tab0
----
1392
2030
5162
query I rowsort
SELECT ( col2 ) FROM tab0
----
1
33
82
query I rowsort
SELECT - ( - 94 * col0 ) AS col2 FROM tab2
----
658
7332
7426
query I rowsort
SELECT ALL ( col1 ) * col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT + ( + ( col0 ) ) - - col1 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT col2 + + ( col1 ) AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + 30 * col1 AS col1 FROM tab1 AS cor0
----
300
390
780
query I rowsort
SELECT - - 28 AS col1 FROM tab0 AS cor0
----
28
28
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT 26 FROM tab2
----
26
26
26
query I rowsort
SELECT ALL - ( - col2 ) AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT + ( col2 ) FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2
----
7
78
79
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab0 AS cor0, tab2 AS cor1
----
972 values hashing to 89714dd446b7a97f8787d5744bdbf323
query I rowsort
SELECT ALL - cor0.col1 * + col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT 28 AS col1 FROM tab0 AS cor0
----
28
28
28
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 + col2 col1 FROM tab2
----
26
27
38
query I rowsort
SELECT 8 FROM tab0
----
8
8
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3185
SELECT DISTINCT - col0 DIV col0 AS col2 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT - col0 / col0 AS col2 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT + col2 * + col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - col2 * cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + col2 + + col1 * col2 FROM tab2 cor0
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - cor0.col2 * - col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT - - col0 * - col2 + + col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT + + col2 + 85 AS col0 FROM tab1 AS cor0
----
139
142
181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * - 41 col2 FROM tab0 cor0
----
-1435
-3649
-984
onlyif mysql # use DIV operator for integer division
query I rowsort label-3194
SELECT ALL col0 + ( 5 ) DIV col2 AS col2 FROM tab0 AS cor0
----
24
40
89
skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL col0 + ( 5 ) / col2 AS col2 FROM tab0 AS cor0
----
24
40
89
query I rowsort
SELECT DISTINCT cor0.col1 * 73 + - col1 * - col0 FROM tab1 cor0
----
1370
1976
1989
query I rowsort
SELECT DISTINCT + col2 * + col1 AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL - 89 AS col0 FROM tab0
----
-89
-89
-89
query I rowsort
SELECT 24 FROM tab2
----
24
24
24
query I rowsort
SELECT + + col0 * - ( + 74 ) AS col2 FROM tab2 cor0
----
-518
-5772
-5846
query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT col1 + ( + col2 ) AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT col2 * col0 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-3203
SELECT + col2 DIV - col1 FROM tab1 cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-3203
SELECT + col2 / - col1 FROM tab1 cor0
----
-2
-5
-7
query I rowsort
SELECT 31 FROM tab0 AS cor0
----
31
31
31
query I rowsort
SELECT cor0.col2 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - 43 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 2f72bd9cab68c8d8c38874510a290a3c
query I rowsort
SELECT ALL + ( + cor1.col0 ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab2 cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b
query I rowsort
SELECT DISTINCT + + 40 + col1 FROM tab1 AS cor0
----
50
53
66
query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
243 values hashing to ea21cea53be47edd19229592e3d26141
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474
query I rowsort
SELECT ALL 28 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query I rowsort
SELECT + cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT 55 * col1 AS col0 FROM tab2 AS cor0
----
1705
3245
935
query I rowsort
SELECT ALL - cor0.col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0
----
54 values hashing to b8667d60d280879b35ad1450a82b3a49
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab2 AS cor0, tab2 AS cor1
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08
query I rowsort
SELECT ALL + col1 * - ( - 92 + col1 ) FROM tab0 AS cor0
----
-485
516
91
query I rowsort
SELECT + col2 * - 76 + + col1 FROM tab2 cor0
----
-1917
-2021
-2871
query I rowsort
SELECT DISTINCT cor0.col1 + col0 + + col2 * - col2 FROM tab1 AS cor0
----
-2887
-3175
-9123
query I rowsort
SELECT DISTINCT + col1 * - 56 * 57 + col1 FROM tab2 AS cor0
----
-188269
-54247
-98921
query I rowsort
SELECT ALL - col1 - - col2 AS col2 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT - col1 + col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3225
SELECT ALL - - col2 + ( col1 ) DIV - col0 FROM tab2 AS cor0
----
23
26
38
skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL - - col2 + ( col1 ) / - col0 FROM tab2 AS cor0
----
23
26
38
query I rowsort
SELECT ALL - col0 - 79 * + col1 FROM tab0 AS cor0
----
-6818
-7278
-7698
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3227
SELECT - - col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3227
SELECT - - col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
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 DISTINCT + tab2.col1 * - tab2.col1 - col1 col2 FROM tab2
----
-306
-3540
-992
query I rowsort
SELECT DISTINCT - col1 - tab0.col2 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT ALL col2 * col1 - - col2 AS col0 FROM tab0
----
2871
7544
98
query I rowsort
SELECT col2 + col0 + + col1 * - col1 * - tab2.col2 FROM tab2
----
11099
25981
90610
query I rowsort
SELECT - 3 + col2 AS col0 FROM tab1
----
51
54
93
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0
----
54 values hashing to 341cdc053c309cf3abe57fa060ecf96e
query I rowsort
SELECT DISTINCT + 63 * + col2 + col0 * - 34 * col0 - - ( - col1 * col0 ) AS col2 FROM tab0
----
-19569
-272247
-44982
query I rowsort
SELECT col0 * - col0 - col0 FROM tab1
----
-12
-4160
-6480
query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - + 60 * col0 FROM tab0 AS cor0
----
-1440
-2100
-5340
query I rowsort
SELECT ALL col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + col0 * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + cor0.col1 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT - 56 * - 4 FROM tab1 AS cor0
----
224
224
224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3244
SELECT + CAST( NULL AS DECIMAL ) / + col2 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-3244
SELECT + CAST ( NULL AS REAL ) / + col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 33 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT + col2 * col2 FROM tab0
----
1
1089
6724
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab0 AS cor0, tab2 AS cor1
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666
query I rowsort
SELECT ALL - 36 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e
query I rowsort
SELECT + ( - 13 ) - - cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 232f86b532f58c090fb111cc5f901d89
query I rowsort
SELECT - 88 AS col2 FROM tab1
----
-88
-88
-88
query I rowsort
SELECT ALL col1 * 80 * + col1 FROM tab1
----
13520
54080
8000
query I rowsort
SELECT - col2 AS col1 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - 44 AS col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
-44
query I rowsort
SELECT col1 AS col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT - 70 * - 39 + col0 FROM tab0 AS cor0
----
2754
2765
2819
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - - ( col2 ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - 17 FROM tab0 AS cor0
----
-17
-17
-17
query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + tab1.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT tab0.col0 + + col2 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT - col2 + - col2 * + cor0.col2 AS col0 FROM tab0 cor0
----
-1122
-2
-6806
query I rowsort
SELECT ALL - + cor0.col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3264
SELECT - - col0 DIV col1 AS col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-3264
SELECT - - col0 / col1 AS col1 FROM tab2 AS cor0
----
0
1
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3265
SELECT ALL + cor0.col2 + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL + cor0.col2 + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 5 * cor0.col2 AS col2 FROM tab0 AS cor0
----
165
410
5
query I rowsort
SELECT DISTINCT - col1 * + col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT 6 * - ( - col2 ) + - 61 AS col2 FROM tab0
----
-55
137
431
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 + - col2 col1 FROM tab1
----
-110
-113
-152
query I rowsort
SELECT col2 * tab1.col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + + ( + col1 ) * col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL + 55 FROM tab0
----
55
55
55
query I rowsort
SELECT cor0.col0 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL tab1.col1 AS col1 FROM tab1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col2 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - - 22 FROM tab0 cor0
----
22
query I rowsort
SELECT col0 AS col2 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL + - 84 * col0 + col2 * 31 * cor0.col2 + - col0 AS col1 FROM tab0 AS cor0
----
-2944
200879
31719
query I rowsort
SELECT + 65 FROM tab0 AS cor0
----
65
65
65
query I rowsort
SELECT ALL - col2 + - col1 * + 44 FROM tab1 AS cor0
----
-1198
-497
-668
query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT 32 + + col0 FROM tab2 AS cor0
----
110
111
39
query I rowsort
SELECT ALL - 76 AS col1 FROM tab0
----
-76
-76
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 - + col1 col0 FROM tab0 AS cor0
----
1978
3298
8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + col2 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL - col1 * col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT ( col1 ) FROM tab0 cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 + cor0.col1 col1 FROM tab1 AS cor0
----
73
76
89
query I rowsort
SELECT DISTINCT + - col2 + col0 * - 9 FROM tab2 AS cor0
----
-728
-749
-90
query I rowsort
SELECT DISTINCT - col1 + - cor0.col2 FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3292
SELECT ALL col2 + + col0 - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL col2 + + col0 - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL + + col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - 11 AS col0 FROM tab2 AS cor0
----
-11
query I rowsort
SELECT ALL + ( cor0.col0 ) + col0 AS col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT - col1 * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + cor0.col0 + col0 * - 13 + col2 FROM tab2 AS cor0
----
-57
-910
query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL + - col2 + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - 81 AS col1 FROM tab1 cor0
----
-81
-81
-81
query I rowsort
SELECT DISTINCT cor0.col2 * + col1 + + 99 * - ( col0 ) AS col2 FROM tab0 AS cor0
----
-1349
-3368
462
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
243 values hashing to ea21cea53be47edd19229592e3d26141
query I rowsort
SELECT 56 FROM tab2, tab2 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
54 values hashing to fe43263cad63144a098cccb9cd58c32a
query I rowsort
SELECT ALL col0 + col0 AS col0 FROM tab0
----
178
48
70
query I rowsort
SELECT - - col2 + col2 + col0 AS col2 FROM tab2 AS cor0
----
130
155
61
query I rowsort
SELECT ALL - - cor0.col1 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - + col2 * ( - 15 * col0 ) FROM tab2 AS cor0
----
2835
30420
45030
query I rowsort
SELECT col2 + col1 * - col0 AS col0 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL col2 + + col2 AS col2 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT ALL - cor0.col1 * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL col2 * + 17 * col2 FROM tab1 AS cor0
----
156672
49572
55233
query I rowsort
SELECT - - cor0.col1 * 88 + - col2 * - col2 FROM tab1 AS cor0
----
10360
4129
5204
query I rowsort
SELECT col0 * + 12 + - col0 * col2 FROM tab2 AS cor0
----
-105
-1092
-2054
query I rowsort
SELECT + col1 + + col2 * + col1 FROM tab1 AS cor0
----
1261
1430
580
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab2 AS cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7
query I rowsort
SELECT - + col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - col2 * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL ( cor0.col0 ) * col2 + col0 * - col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 + - col2 AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ( cor0.col0 ) + col0 AS col0 FROM tab2 AS cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 + cor0.col2 col1 FROM tab2 AS cor0
----
110
98
99
query IIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab1 cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998
query I rowsort
SELECT ALL + cor0.col0 * - col2 AS col1 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT 2 + - col0 FROM tab0 AS cor0
----
-22
-33
-87
query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab1 cor1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3330
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - 18 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - 18 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL col2 * col1 AS col1 FROM tab2
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + col2 col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL cor0.col2 + + col1 FROM tab2 AS cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 col1 FROM tab2, tab0 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query I rowsort
SELECT + col0 * + col0 AS col1 FROM tab0
----
1225
576
7921
query I rowsort
SELECT - col2 + + 30 + + col1 FROM tab2
----
34
63
9
query I rowsort
SELECT col2 * + 49 AS col2 FROM tab2
----
1274
1323
1862
query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0
query I rowsort
SELECT ALL + - col1 + + col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT cor0.col2 * col0 AS col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT - - col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL col1 * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL col1 AS col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT + + col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - col0 * ( col1 ) AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT - col1 * col2 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL + col0 * cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-3349
SELECT - col1 DIV + cor0.col0 + 16 FROM tab1 AS cor0
----
16
16
8
skipif mysql # not compatible
query I rowsort label-3349
SELECT - col1 / + cor0.col0 + 16 FROM tab1 AS cor0
----
16
16
8
query I rowsort
SELECT ALL - - cor0.col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - col0 - - col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 * 50 FROM tab1 AS cor0
----
-1300
-500
-650
query I rowsort
SELECT - col1 + col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col1 * - col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + col0 + ( col0 ) * col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010
skipif mysql # not compatible
query I rowsort
SELECT ALL + + CAST ( col1 AS REAL ) + col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3357
SELECT + 27 DIV + 6 - - col0 AS col0 FROM tab2 cor0
----
11
82
83
skipif mysql # not compatible
query I rowsort label-3357
SELECT + 27 / + 6 - - col0 AS col0 FROM tab2 cor0
----
11
82
83
query I rowsort
SELECT + col2 * col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - + ( col0 ) - col2 * - col1 * col2 AS col1 FROM tab1 cor0
----
119728
32426
75813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3360
SELECT - CAST( NULL AS SIGNED ) - - 90 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3360
SELECT - CAST ( NULL AS INTEGER ) - - 90 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) * col2 + - ( col1 ) col2 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT ALL 82 * - col1 + col2 AS col0 FROM tab2 AS cor0
----
-1356
-2515
-4812
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 9af67d6f98010464af5d560bf949d487
query I rowsort
SELECT DISTINCT - col2 * col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT col2 * + tab1.col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT col1 FROM tab1 cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3367
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3367
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL col0 + col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + col2 + - col2 * 85 FROM tab1 AS cor0
----
-4536
-4788
-8064
query I rowsort
SELECT + ( - col2 ) * + col0 * + 65 AS col2 FROM tab1 AS cor0
----
-10530
-237120
-499200
query I rowsort
SELECT + - col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT ( col1 ) + - 20 AS col1 FROM tab0 cor0
----
66
71
77
query I rowsort
SELECT ALL + + col2 + - col1 AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - + col2 * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + col0 * - tab0.col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT col2 * + col1 - col2 FROM tab0
----
2805
7380
96
query I rowsort
SELECT col2 * col0 + - col0 FROM tab2
----
182
1950
2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-3378
SELECT - col2 DIV + col2 AS col0 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3378
SELECT - col2 / + col2 AS col0 FROM tab1
----
-1
-1
-1
query III rowsort
SELECT * FROM tab1 WHERE col1 + + tab1.col2 = NULL
----
query I rowsort
SELECT ALL + col1 + col2 AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL + - 87 * + col0 AS col2 FROM tab2 AS cor0
----
-609
-6786
-6873
onlyif mysql # use DIV operator for integer division
query I rowsort label-3382
SELECT - col2 DIV + col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-3382
SELECT - col2 / + col0 FROM tab1 AS cor0
----
-1
-18
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3383
SELECT DISTINCT + 61 DIV - col0 AS col1 FROM tab1 AS cor0
----
-20
0
skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT + 61 / - col0 AS col1 FROM tab1 AS cor0
----
-20
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3384
SELECT col0 DIV col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3384
SELECT col0 / col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT - col0 * - ( col0 ) FROM tab2 AS cor0
----
49
6084
6241
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab0 AS cor0, tab1 AS cor1
----
972 values hashing to 5621675b1bd32b061d284d0444c76601
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab1 AS cor0
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
query I rowsort
SELECT - col1 * - 3 FROM tab1 AS cor0
----
30
39
78
query I rowsort
SELECT ALL - col0 * - 98 - - col0 FROM tab2 AS cor0
----
693
7722
7821
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * 61 + - col2 * cor0.col0 col1 FROM tab1 AS cor0
----
-2800
21
256
query I rowsort
SELECT col0 + - tab1.col1 AS col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2, tab1 cor0
----
3
64
80
query I rowsort
SELECT + col0 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL col1 AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT ( + col1 ) FROM tab0
----
86
91
97
query I rowsort
SELECT + tab0.col1 FROM tab0
----
86
91
97
query I rowsort
SELECT + cor0.col1 + col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - + cor0.col2 * 70 FROM tab1 AS cor0
----
-3780
-3990
-6720
query I rowsort
SELECT - + cor0.col0 + - col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT - 14 FROM tab1, tab1 AS cor0
----
-14
query I rowsort
SELECT - 68 * - 99 FROM tab1 AS cor0
----
6732
6732
6732
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab1 cor0, tab0
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7
query I rowsort
SELECT - + col0 * + 84 AS col0 FROM tab1 cor0
----
-252
-5376
-6720
query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT - col0 * + col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + 82 FROM tab0, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT - col2 + col0 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT col1 * col2 + col1 * - ( 77 ) FROM tab0
----
-3784
-7372
455
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3409
SELECT CAST( col2 + col2 AS SIGNED ) FROM tab2
----
52
54
76
skipif mysql # not compatible
query I rowsort label-3409
SELECT CAST ( col2 + col2 AS INTEGER ) FROM tab2
----
52
54
76
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab1 AS cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3411
SELECT ALL CAST( NULL AS SIGNED ) * + 47 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL CAST ( NULL AS INTEGER ) * + 47 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * col1 + + col2 AS col1 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT ALL col1 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT 28 AS col0 FROM tab2
----
28
28
28
query I rowsort
SELECT cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT DISTINCT - 26 + col1 FROM tab0 AS cor0
----
60
65
71
query I rowsort
SELECT DISTINCT col0 + + col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + 27 + - col1 AS col2 FROM tab0 AS cor0
----
-59
-64
-70
query I rowsort
SELECT + tab1.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query IIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab0 AS cor1
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
query I rowsort
SELECT + + col2 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT 95 + + cor0.col1 * + col1 AS col0 FROM tab1 AS cor0
----
195
264
771
query I rowsort
SELECT ( col0 ) * + col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT cor0.col1 * + cor0.col0 + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL 72 FROM tab2 AS cor0
----
72
72
72
query I rowsort
SELECT DISTINCT - col2 * col2 + ( - 57 + col2 ) FROM tab2 AS cor0
----
-1463
-707
-759
query I rowsort
SELECT DISTINCT - - 72 FROM tab2 AS cor0
----
72
query I rowsort
SELECT - 73 FROM tab1 AS cor0
----
-73
-73
-73
query I rowsort
SELECT ALL - col0 * col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - 17 + + col1 * + col2 FROM tab2 AS cor0
----
1517
629
820
query I rowsort
SELECT DISTINCT col1 + + col0 + 86 FROM tab0 AS cor0
----
196
218
266
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT col0 * + col0 + - col2 * + col1 AS col1 FROM tab0
----
-2262
1128
459
query I rowsort
SELECT DISTINCT - col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT col0 + tab1.col0 * + col2 AS col2 FROM tab1
----
165
3712
7760
query I rowsort
SELECT + col0 * + col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL + tab2.col0 * col2 FROM tab2
----
189
2028
3002
query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----
query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab1, tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL col2 + + col1 * - col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-106059
-1492
-358930
query I rowsort
SELECT + col2 * col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + col2 * col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-3446
SELECT + + col2 DIV + col2 AS col0 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3446
SELECT + + col2 / + col2 AS col0 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - col2 - col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL - cor0.col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - - col0 * col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL - col0 + - col2 * + col1 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT + col1 + - col0 FROM tab2 cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-3452
SELECT DISTINCT + col1 + - col2 + col1 DIV col2 FROM tab1 AS cor0
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT + col1 + - col2 + col1 / col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + col1 * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT cor0.col0 + - col2 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT + col1 - + col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - col2 + + col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - - col0 * + col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + col1 + col1 AS col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT col0 * + col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-3461
SELECT ALL + - col0 * + col2 + col2 DIV - col0 + cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
-1659
25
2574
skipif mysql # not compatible
query I rowsort label-3461
SELECT ALL + - col0 * + col2 + col2 / - col0 + cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
-1659
25
2574
query I rowsort
SELECT ALL - col1 AS col2 FROM tab1
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-3463
SELECT ALL col0 DIV + col0 AS col2 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL col0 / + col0 AS col2 FROM tab2
----
1
1
1
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab2 AS cor0
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca
query I rowsort
SELECT DISTINCT + col2 + col0 * + col1 + cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
1337
210
2176
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT - tab2.col2 AS col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT + - cor0.col1 * + col0 + col2 + + col0 AS col1 FROM tab1 AS cor0
----
-21
-519
-864
query I rowsort
SELECT - - col1 * col0 + - col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT + ( - cor0.col1 ) * + col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT + col1 + - col1 + col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + + col2 * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT 81 * col2 + col2 AS col1 FROM tab1 AS cor0
----
4428
4674
7872
onlyif mysql # use DIV operator for integer division
query I rowsort label-3475
SELECT - - col2 * cor0.col2 + + col2 DIV col1 + col0 FROM tab1 cor0
----
2921
3318
9303
skipif mysql # not compatible
query I rowsort label-3475
SELECT - - col2 * cor0.col2 + + col2 / col1 + col0 FROM tab1 cor0
----
2921
3318
9303
query I rowsort
SELECT - col1 + col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT 60 * col0 FROM tab2
----
420
4680
4740
query I rowsort
SELECT tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL col1 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL - col0 * + col0 + - col1 + - col0 FROM tab0 AS cor0
----
-1357
-686
-8101
query I rowsort
SELECT DISTINCT 86 FROM tab0 AS cor0
----
86
query I rowsort
SELECT 40 + + col0 AS col2 FROM tab1 cor0
----
104
120
43
query I rowsort
SELECT ALL - col2 * + col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT + cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL - + col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + - col2 * + col1 - + col1 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT - + cor0.col2 + col1 AS col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - col1 * - tab2.col0 AS col0 FROM tab2
----
1343
217
4602
query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
54 values hashing to 69e208df4a305efdfcc036bb4b31e720
query I rowsort
SELECT col2 * - col1 FROM tab2 cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-3492
SELECT - - col0 * col1 + col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
1344
218
4603
skipif mysql # not compatible
query I rowsort label-3492
SELECT - - col0 * col1 + col0 / + col0 AS col1 FROM tab2 AS cor0
----
1344
218
4603
query I rowsort
SELECT + col2 + + col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT 77 * - tab1.col1 AS col0 FROM tab1
----
-1001
-2002
-770
query I rowsort
SELECT ALL - 27 FROM tab1
----
-27
-27
-27
query I rowsort
SELECT + col1 AS col2 FROM tab0
----
86
91
97
query I rowsort
SELECT - col0 + col0 FROM tab2
----
0
0
0
query I rowsort
SELECT col0 * tab1.col2 AS col1 FROM tab1 WHERE ( - col1 ) NOT IN ( - col0 )
----
162
3648
7680
query I rowsort
SELECT DISTINCT col0 - - col1 * col2 FROM tab2
----
1612
725
844
query I rowsort
SELECT ALL tab0.col0 * - col1 + col0 * col2 AS col2 FROM tab0
----
-1272
-3360
-801
query I rowsort
SELECT - col1 AS col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - col0 + col0 FROM tab2
----
0
query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NULL >= + col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 col1 FROM tab2 WHERE NOT NULL < NULL
----
query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NULL >= col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab2
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 col1 FROM tab1
----
108
114
192
query I rowsort
SELECT + col0 * tab0.col2 + - col0 AS col2 FROM tab0
----
0
7209
768
query I rowsort
SELECT ALL col0 * col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL - tab1.col2 + col2 - col1 AS col1 FROM tab1
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * tab0.col1 * col1 col0 FROM tab0
----
-636056
-753571
-912673
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 - tab2.col2 * col1 * col2 col0 FROM tab2
----
-21638
-24259
-36403
query I rowsort
SELECT + col0 + tab1.col0 + - col2 * + tab1.col1 FROM tab1
----
-1088
-1398
-442
query I rowsort
SELECT + col1 * col0 / col0 + col2 FROM tab2 WHERE NOT NULL > ( NULL )
----
query I rowsort
SELECT ALL tab0.col1 + - col1 * col0 * + col2 + - col0 FROM tab0
----
-3333
-664116
-68050
query I rowsort
SELECT DISTINCT - col2 + + col1 + tab2.col1 AS col2 FROM tab2
----
-4
35
92
query I rowsort
SELECT ALL col0 - + col2 AS col1 FROM tab2
----
-20
41
52
query I rowsort
SELECT ALL col0 * + col1 + + col2 FROM tab1
----
1136
132
697
query I rowsort
SELECT ALL col2 FROM tab0
----
1
33
82
query I rowsort
SELECT tab0.col2 * col1 * col1 AS col2 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT col1 * col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT + col1 AS col1 FROM tab1
----
10
13
26
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) < ( col1 )
----
query I rowsort
SELECT col2 * - tab0.col0 AS col2 FROM tab0
----
-35
-7298
-792
query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IN ( + col0 )
----
query I rowsort
SELECT DISTINCT col1 * + col2 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT + col1 * - tab2.col2 AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT col1 FROM tab0
----
86
91
97
query I rowsort
SELECT tab0.col2 AS col0 FROM tab0
----
1
33
82
query I rowsort
SELECT col0 AS col2 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3532
SELECT - tab0.col1 DIV col1 AS col0 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3532
SELECT - tab0.col1 / col1 AS col0 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - tab1.col2 + col0 FROM tab1
----
-16
-51
7
query I rowsort
SELECT - col0 * col2 AS col2 FROM tab2
----
-189
-2028
-3002
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND + col0
----
query I rowsort
SELECT col0 + + col1 * col1 + + tab2.col1 FROM tab2
----
3618
385
999
query I rowsort
SELECT tab0.col1 * + col2 + col2 * col1 AS col2 FROM tab0
----
14924
194
5676
onlyif mysql # use DIV operator for integer division
query I rowsort label-3538
SELECT - col1 DIV col1 AS col1 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3538
SELECT - col1 / col1 AS col1 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - col0 + + col1 * - tab0.col0 FROM tab0
----
-2088
-3430
-8188
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < ( NULL )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * - tab0.col0 > NULL
----
query I rowsort
SELECT ALL + col1 + - col2 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT tab2.col2 * col0 FROM tab2 WHERE NOT NULL IN ( + col0 )
----
query I rowsort
SELECT DISTINCT - col1 * + col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + tab2.col0 * col1 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL + col1 + col1 FROM tab2
----
118
34
62
query I rowsort
SELECT DISTINCT col2 + + col0 AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL col0 * tab1.col0 + tab1.col1 AS col2 FROM tab1
----
35
4106
6413
query I rowsort
SELECT tab1.col0 AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT + tab2.col2 + col1 AS col0 FROM tab2
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 + - col0 col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT DISTINCT col1 * - col2 + - tab1.col2 AS col0 FROM tab1
----
-1344
-1458
-627
query I rowsort
SELECT - col2 * tab2.col1 AS col0 FROM tab2
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 + col2 col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL tab1.col1 * col0 - + tab1.col1 * - col2 FROM tab1
----
1210
1482
2288
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0 CROSS JOIN tab0
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0 CROSS JOIN tab1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9
query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT IN ( tab0.col2 * col2 + col2 + col1 )
----
query I rowsort
SELECT ALL col2 AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT - col1 * - cor0.col1 FROM tab1 AS cor0
----
100
169
676
query IIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242
query I rowsort
SELECT ALL - col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT col0 * + col0 * + col1 + col0 FROM tab0 AS cor0
----
118860
49560
720900
query III rowsort
SELECT * FROM tab0 WHERE NULL = ( col0 + - col1 )
----
query I rowsort
SELECT + tab2.col2 * col0 * + col2 FROM tab2
----
114076
5103
52728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT + col0 * col1 FROM tab1
----
1040
640
78
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > ( NULL )
----
query I rowsort
SELECT ALL - col1 * col0 AS col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + col2 * col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT tab1.col1 * col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT cor0.col1 - + col0 * col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT - col0 * + col0 + + col0 FROM tab0
----
-1190
-552
-7832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + col1 * + col0 * cor0.col0 AS col2 FROM tab1 cor0
----
234
40960
83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - cor0.col2 col1 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 * col1 ) >= ( - col0 + - col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT ALL - cor0.col0 * - col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-3583
SELECT ALL col1 DIV col0 + col1 * - col1 * + col0 FROM tab1 AS cor0
----
-13520
-2020
-6400
skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL col1 / col0 + col1 * - col1 * + col0 FROM tab1 AS cor0
----
-13520
-2020
-6400
query I rowsort
SELECT cor0.col2 AS col0 FROM tab1 cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 * + col1 col0 FROM tab1
----
370
481
962
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT + cor0.col0 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT col2 + - col1 * col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT + col1 + - col1 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT 0 + ( - col0 ) FROM tab1
----
-3
-64
-80
query I rowsort
SELECT - 34 + + 29 AS col0 FROM tab2
----
-5
-5
-5
query I rowsort
SELECT DISTINCT + 45 AS col1 FROM tab2
----
45
query I rowsort
SELECT - ( col0 ) FROM tab0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT DISTINCT + tab2.col0 * col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ( + col0 ) FROM tab2
----
7
78
79
query I rowsort
SELECT ALL - col1 * col1 + tab2.col1 * - col2 FROM tab2
----
-1798
-5015
-935
query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + - cor0.col0 + - col0 * + ( + cor0.col1 ) FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT col1 AS col0 FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 + + col1 / - CAST ( - cor0.col1 AS REAL ) FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT - + 66 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a
onlyif mysql # use DIV operator for integer division
query I rowsort label-3604
SELECT - col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3604
SELECT - col0 / + col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT 15 * col0 FROM tab2 AS cor0
----
105
1170
1185
onlyif mysql # use DIV operator for integer division
query I rowsort label-3606
SELECT DISTINCT + col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT + col2 / - col2 AS col1 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT - - col1 * col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + col1 * + col0 * col1 + - col2 FROM tab1 AS cor0
----
13424
1974
6343
onlyif mysql # use DIV operator for integer division
query I rowsort label-3610
SELECT - - 77 DIV + col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-3610
SELECT - - 77 / + col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT DISTINCT - col1 * col0 + - ( col0 ) * + col1 AS col2 FROM tab2 AS cor0
----
-2686
-434
-9204
query I rowsort
SELECT ALL 75 * col0 AS col0 FROM tab0 AS cor0
----
1800
2625
6675
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2, tab1 cor3
----
3645 values hashing to 7a2f620d56640e95048dfa9a4cf93159
query I rowsort
SELECT tab1.col1 * col0 * col2 AS col2 FROM tab1
----
36480
4212
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 col2 FROM tab0
----
172
182
194
query I rowsort
SELECT DISTINCT col2 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL + col1 - - 54 * cor0.col1 FROM tab0 AS cor0
----
4730
5005
5335
query I rowsort
SELECT col0 * - col1 * + col0 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT DISTINCT + cor0.col0 + col0 FROM tab0 AS cor0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + col0 col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT + cor0.col2 * + col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + + col1 AS col0 FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 col1 FROM tab1 AS cor0
----
100
169
676
query IIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d
query I rowsort
SELECT + col1 * col2 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL col0 FROM tab2
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3629
SELECT DISTINCT cor0.col0 + CAST( NULL AS DECIMAL ) * col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT cor0.col0 + CAST ( NULL AS REAL ) * col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + + col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT - cor0.col2 * - ( - col0 ) + - col1 * + col2 FROM tab0 cor0
----
-132
-14760
-3630
query I rowsort
SELECT col1 * - col2 FROM tab1 cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - cor0.col1 ) col0 FROM tab0 cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3634
SELECT + + 35 + - ( col2 ) * + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3634
SELECT + + 35 + - ( col2 ) * + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab2 AS cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3636
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3636
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3637
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3637
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT 68 AS col1 FROM tab1 cor0
----
68
68
68
query I rowsort
SELECT ALL - tab1.col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ALL 78 AS col0 FROM tab0 AS cor0
----
78
78
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3641
SELECT + CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3641
SELECT + CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 44 AS col0 FROM tab1 AS cor0
----
44
44
44
query I rowsort
SELECT DISTINCT + tab1.col1 + + col1 * - col2 FROM tab1
----
-1235
-1378
-560
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab0, tab2 AS cor1
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3
query I rowsort
SELECT ALL - ( + col2 ) FROM tab2 cor0
----
-26
-27
-38
query IIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab0 cor1
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993
query I rowsort
SELECT + 3 * 17 FROM tab2 AS cor0
----
51
51
51
query I rowsort
SELECT 21 * col0 + col0 FROM tab2 AS cor0
----
154
1716
1738
query I rowsort
SELECT - 45 + - ( col1 ) + 29 FROM tab0 AS cor0
----
-102
-107
-113
query I rowsort
SELECT - col0 + col2 + col1 AS col2 FROM tab2 AS cor0
----
-24
51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3651
SELECT + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3651
SELECT + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col1 + col2 * - col0 + 90 AS col1 FROM tab0 AS cor0
----
-42
-7299
-788
query I rowsort
SELECT + 76 FROM tab0 cor0
----
76
76
76
query I rowsort
SELECT 75 + col0 FROM tab2 AS cor0
----
153
154
82
query I rowsort
SELECT + ( + col2 ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT col0 * cor0.col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - - col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + 50 FROM tab0, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT + 94 + col2 AS col2 FROM tab0 AS cor0
----
127
176
95
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab0, tab1 AS cor1
----
972 values hashing to 5621675b1bd32b061d284d0444c76601
query IIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9
query I rowsort
SELECT ALL ( - col2 ) * - 67 + - col2 FROM tab2 cor0
----
1716
1782
2508
query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
54 values hashing to b010e320d66ab5b2711fc14e8fb58b01
query I rowsort
SELECT col2 * 2 AS col2 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT - col1 * - 65 + col1 * - cor0.col1 AS col1 FROM tab1 cor0
----
1014
550
676
query I rowsort
SELECT + - cor0.col1 * - ( + col1 ) FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT col2 * - col0 FROM tab1 cor0
----
-162
-3648
-7680
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab2 cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca
query I rowsort
SELECT ALL 24 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
onlyif mysql # use DIV operator for integer division
query I rowsort label-3671
SELECT + cor0.col0 DIV - col2 + col2 + 6 FROM tab0 AS cor0
----
-28
39
87
skipif mysql # not compatible
query I rowsort label-3671
SELECT + cor0.col0 / - col2 + col2 + 6 FROM tab0 AS cor0
----
-28
39
87
query I rowsort
SELECT - 52 * + cor0.col2 + col1 * + col2 AS col1 FROM tab0 AS cor0
----
1122
3198
45
query I rowsort
SELECT ALL + col0 * 83 FROM tab0
----
1992
2905
7387
query I rowsort
SELECT col0 * - 9 FROM tab2
----
-63
-702
-711
query I rowsort
SELECT DISTINCT - col1 * col0 AS col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL col1 + col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3677
SELECT DISTINCT col0 DIV ( + col1 ) AS col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT col0 / ( + col1 ) AS col2 FROM tab0
----
0
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab0 AS cor0, tab0 AS cor1
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237
query I rowsort
SELECT ALL col1 AS col0 FROM tab2
----
17
31
59
query I rowsort
SELECT col1 * col2 AS col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + col2 AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT + 63 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
63
query I rowsort
SELECT ALL col1 AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL + - col2 * 59 * - col2 + - col1 AS col0 FROM tab0 AS cor0
----
-38
396625
64165
query I rowsort
SELECT 10 FROM tab2, tab0 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + + col0 * col1 * - 58 FROM tab1 cor0
----
-37120
-4524
-60320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3688
SELECT col1 / + CAST( NULL AS SIGNED ) + + col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3688
SELECT col1 / + CAST ( NULL AS INTEGER ) + + col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - tab1.col2 * ( + col2 ) * - col1 AS col0 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - cor0.col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + col2 * 53 + - 42 AS col1 FROM tab1 AS cor0
----
2820
2979
5046
query I rowsort
SELECT DISTINCT - col0 * col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - col0 FROM tab1 cor0
----
-3
-64
-80
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 88213a0de4c0a44aaefe8bbffbcaf44a
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d
query I rowsort
SELECT DISTINCT + + col2 AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - - col1 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - col0 * ( - col1 ) FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT 56 * - col2 FROM tab0
----
-1848
-4592
-56
query I rowsort
SELECT DISTINCT - 26 - + col1 AS col0 FROM tab1
----
-36
-39
-52
query I rowsort
SELECT ALL 17 - col2 * - col1 AS col1 FROM tab1
----
1265
1421
587
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3704
SELECT - col2 / 39 + + col1 / - CAST( NULL AS SIGNED ) - 71 * + tab0.col0 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3704
SELECT - col2 / 39 + + col1 / - CAST ( NULL AS INTEGER ) - 71 * + tab0.col0 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( ( col0 ) * + col0 + - ( col0 ) * col1 ) FROM tab1
----
-69
3456
5360
query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE NULL < ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3707
SELECT - ( cor0.col2 ) * col2 DIV ( col0 ) + + col2 * + 11 FROM tab1 AS cor0
----
-378
577
941
skipif mysql # not compatible
query I rowsort label-3707
SELECT - ( cor0.col2 ) * col2 / ( col0 ) + + col2 * + 11 FROM tab1 AS cor0
----
-378
577
941
query I rowsort
SELECT - col0 * - col1 - + col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT + - ( - 85 ) + - col0 * + col2 FROM tab0 AS cor0
----
-707
-7213
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3710
SELECT + + col0 * cor0.col2 - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3710
SELECT + + col0 * cor0.col2 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 46 * col0 FROM tab1 AS cor0
----
138
2944
3680
query I rowsort
SELECT DISTINCT + col2 + cor0.col1 AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL - 12 * + col0 * + col2 FROM tab0 AS cor0
----
-420
-87576
-9504
query I rowsort
SELECT + col2 + col2 * 76 FROM tab2 AS cor0
----
2002
2079
2926
query I rowsort
SELECT ALL - + 27 + col0 * - 63 FROM tab0 AS cor0
----
-1539
-2232
-5634
query I rowsort
SELECT col1 AS col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT col0 + col2 * + col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT 11 FROM tab1, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT ALL - ( col2 ) * col0 * - ( + 14 ) AS col1 FROM tab0
----
102172
11088
490
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3720
SELECT ALL CAST( col1 AS SIGNED ) FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL CAST ( col1 AS INTEGER ) FROM tab0
----
86
91
97
query I rowsort
SELECT 66 * - 1 AS col1 FROM tab2
----
-66
-66
-66
query I rowsort
SELECT + + cor0.col2 * col0 + + cor0.col0 FROM tab0 cor0
----
70
7387
816
query I rowsort
SELECT ALL + + col0 AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT cor0.col1 + + col0 AS col1 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 76 + + col2 col1 FROM tab0 AS cor0
----
-43
-75
6
query I rowsort
SELECT ALL - ( - col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3727
SELECT - - col1 DIV col0 + + col2 * col1 FROM tab2 AS cor0
----
1534
646
841
skipif mysql # not compatible
query I rowsort label-3727
SELECT - - col1 / col0 + + col2 * col1 FROM tab2 AS cor0
----
1534
646
841
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3728
SELECT DISTINCT + + col1 * + col0 + CAST( + col0 AS SIGNED ) * col2 FROM tab2 AS cor0
----
406
4345
6630
skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT + + col1 * + col0 + CAST ( + col0 AS INTEGER ) * col2 FROM tab2 AS cor0
----
406
4345
6630
query I rowsort
SELECT ALL - col0 + + col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3730
SELECT 94 DIV cor0.col1 - col0 AS col1 FROM tab2 AS cor0
----
-4
-74
-77
skipif mysql # not compatible
query I rowsort label-3730
SELECT 94 / cor0.col1 - col0 AS col1 FROM tab2 AS cor0
----
-4
-74
-77
query I rowsort
SELECT ALL - + col0 + col0 FROM tab0 AS cor0
----
0
0
0
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab2 cor0
----
243 values hashing to ea21cea53be47edd19229592e3d26141
query I rowsort
SELECT ALL col1 + col0 * + col1 AS col2 FROM tab2
----
1360
248
4661
query I rowsort
SELECT ALL - col0 + col0 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3735
SELECT ALL + col0 + col0 DIV + 15 FROM tab2 cor0
----
7
83
84
skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL + col0 + col0 / + 15 FROM tab2 cor0
----
7
83
84
query I rowsort
SELECT ALL + col1 + cor0.col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - + 27 * col0 * 97 FROM tab2 cor0
----
-18333
-204282
-206901
query I rowsort
SELECT ALL + 87 FROM tab2, tab0 cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT + cor0.col1 * col0 - 88 FROM tab0 AS cor0
----
1976
3307
8011
query I rowsort
SELECT DISTINCT - 39 FROM tab2 AS cor0
----
-39
query I rowsort
SELECT DISTINCT col2 * + col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL - col1 * col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + 34 - col0 FROM tab2 AS cor0
----
-44
-45
27
query I rowsort
SELECT DISTINCT col2 + ( col1 ) + - col2 * + 77 AS col2 FROM tab2 AS cor0
----
-1917
-2021
-2871
query I rowsort
SELECT col2 FROM tab0 cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort
SELECT col0 * - CAST ( 24 AS REAL ) + col2 * col2 FROM tab2 AS cor0
----
-1196
-452
561
onlyif mysql # use DIV operator for integer division
query I rowsort label-3747
SELECT DISTINCT - col2 * col0 DIV col2 + 35 * + col0 FROM tab0
----
1190
3026
816
skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT - col2 * col0 / col2 + 35 * + col0 FROM tab0
----
1190
3026
816
query I rowsort
SELECT + + col2 + col0 * col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL - col0 + - ( 18 ) * col2 * ( ( cor0.col0 ) ) FROM tab2 AS cor0
----
-3409
-36582
-54115
query I rowsort
SELECT - - col0 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3751
SELECT ALL - col1 * 83 DIV 83 + + col0 AS col1 FROM tab2 AS cor0
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL - col1 * 83 / 83 + + col0 AS col1 FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + + 16 col2 FROM tab1 AS cor0
----
-38
-41
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3753
SELECT DISTINCT - cor0.col1 * cor0.col0 + + col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
-1342
-216
-4601
skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT - cor0.col1 * cor0.col0 + + col0 / + col0 AS col0 FROM tab2 AS cor0
----
-1342
-216
-4601
query I rowsort
SELECT ALL col1 + + 98 FROM tab0 AS cor0
----
184
189
195
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 * - ( col0 ) * col2 col1 FROM tab2
----
-1316
-158106
-237079
query I rowsort
SELECT ALL + 6 + col1 FROM tab1
----
16
19
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * 8 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 133027b7616524290ec6272746bccede
query I rowsort
SELECT - col2 * col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT col0 + col1 AS col0 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT col0 + - col1 AS col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT DISTINCT col0 + col1 AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT + col1 * col2 * col1 + col2 FROM tab2
----
11020
25974
90532
query I rowsort
SELECT - col2 * - col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT + 33 * col0 + 56 AS col0 FROM tab1
----
155
2168
2696
query I rowsort
SELECT ALL + 26 FROM tab1 AS cor0
----
26
26
26
query I rowsort
SELECT ALL - col2 + col0 * - col2 FROM tab1 AS cor0
----
-216
-3705
-7776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3767
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3767
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - 99 FROM tab2 AS cor0
----
-99
query I rowsort
SELECT DISTINCT + col1 + col0 AS col1 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3772
SELECT + col1 DIV ( col0 ) AS col2 FROM tab2 cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-3772
SELECT + col1 / ( col0 ) AS col2 FROM tab2 cor0
----
0
0
4
query I rowsort
SELECT ALL - ( + 26 ) AS col2 FROM tab1 AS cor0
----
-26
-26
-26
query I rowsort
SELECT DISTINCT + 12 AS col1 FROM tab1 AS cor0
----
12
query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - col2 * 68 FROM tab1 AS cor0
----
-3672
-3876
-6528
query I rowsort
SELECT DISTINCT + + ( 70 ) AS col0 FROM tab2 AS cor0
----
70
query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - col0 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT - - col1 * + col0 AS col2 FROM tab1 cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 col1 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3782
SELECT - 21 + - 92 DIV - col1 AS col1 FROM tab0 AS cor0
----
-20
-20
-21
skipif mysql # not compatible
query I rowsort label-3782
SELECT - 21 + - 92 / - col1 AS col1 FROM tab0 AS cor0
----
-20
-20
-21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col2 col2 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 * cor0.col0 col1 FROM tab2 AS cor0
----
315
3510
3555
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3785
SELECT - CAST( NULL AS SIGNED ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3785
SELECT - CAST ( NULL AS INTEGER ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 * 91 AS col0 FROM tab0
----
2184
3185
8099
query I rowsort
SELECT ALL 16 FROM tab2, tab1 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT - col0 AS col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL - col1 * col0 AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + cor0.col0 * 92 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9f91b4f2fe0b891f0f8ae75454401ec
query I rowsort
SELECT + - 81 * - ( col1 ) * col2 FROM tab2 AS cor0
----
124254
52326
67797
query I rowsort
SELECT ALL 30 AS col0 FROM tab2 AS cor0
----
30
30
30
query I rowsort
SELECT 55 AS col0 FROM tab1 AS cor0
----
55
55
55
query I rowsort
SELECT - 62 FROM tab2
----
-62
-62
-62
query I rowsort
SELECT col1 * col0 + col1 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1209
740
754
query I rowsort
SELECT ALL col2 + - col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - + col2 * + ( 81 ) AS col1 FROM tab0 AS cor0
----
-2673
-6642
-81
query I rowsort
SELECT + + col0 + - col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3799
SELECT ALL - col1 + 8 DIV - ( - col2 ) FROM tab0 AS cor0
----
-86
-89
-91
skipif mysql # not compatible
query I rowsort label-3799
SELECT ALL - col1 + 8 / - ( - col2 ) FROM tab0 AS cor0
----
-86
-89
-91
query I rowsort
SELECT + - col0 * - col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT col1 + col0 * + col2 FROM tab2 AS cor0
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT col0 + + col1 * col0 * col2 FROM tab1 AS cor0
----
36544
4215
99920
query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - + col0 * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL - - col2 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL tab1.col0 + col1 AS col1 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL - col1 + + col2 AS col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT + + col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-3811
SELECT - col0 DIV - col1 FROM tab1 cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-3811
SELECT - col0 / - col1 FROM tab1 cor0
----
0
6
6
query I rowsort
SELECT ALL + col0 + + col0 + col0 AS col1 FROM tab0
----
105
267
72
query I rowsort
SELECT ALL + col0 * 71 AS col0 FROM tab2
----
497
5538
5609
query I rowsort
SELECT + cor0.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT 9 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT ALL cor0.col0 FROM tab2, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT DISTINCT col1 + + col2 * cor0.col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT cor0.col2 + col0 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - col0 + col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ( + tab0.col2 ) FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT + col0 AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) AS col1 FROM tab1, tab0 AS cor0
----
1
33
82
query I rowsort
SELECT tab2.col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT - 6 FROM tab0, tab0 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934
query I rowsort
SELECT ALL - - col2 AS col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT + 81 AS col1 FROM tab1 cor0
----
81
81
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3827
SELECT - CAST( - col2 AS SIGNED ) * - col2 FROM tab2
----
-1444
-676
-729
skipif mysql # not compatible
query I rowsort label-3827
SELECT - CAST ( - col2 AS INTEGER ) * - col2 FROM tab2
----
-1444
-676
-729
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 cor2
----
3645 values hashing to d47b3f87370e79c6978209440a41fac4
query I rowsort
SELECT col0 * + col1 * col1 AS col2 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT + 82 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
query I rowsort
SELECT DISTINCT - 89 FROM tab2
----
-89
skipif mysql # not compatible
query I rowsort
SELECT ALL ( - col2 ) + CAST ( col0 AS REAL ) * col0 FROM tab1 AS cor0
----
-45
4039
6304
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab1 AS cor0
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4
query I rowsort
SELECT ( - col1 ) * - col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT ALL col2 * col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL + - 97 * 59 FROM tab2, tab2 AS cor0
----
9 values hashing to b8ca9b0aa623bb0e9d5013ef9242beaf
query I rowsort
SELECT DISTINCT - 29 * col0 AS col2 FROM tab1 AS cor0
----
-1856
-2320
-87
query I rowsort
SELECT DISTINCT - - col2 * + col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - 70 * - col2 FROM tab2 AS cor0
----
1820
1890
2660
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3840
SELECT ALL + ( col2 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL + ( col2 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 25 + + col0 * cor0.col2 FROM tab1 cor0
----
187
3673
7705
onlyif mysql # use DIV operator for integer division
query I rowsort label-3842
SELECT ALL col0 * + col1 + + col1 DIV + col1 FROM tab0 cor0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL col0 * + col1 + + col1 / + col1 FROM tab0 cor0
----
2065
3396
8100
query I rowsort
SELECT - + 74 + col2 FROM tab0 AS cor0
----
-41
-73
8
query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL col2 + col1 AS col0 FROM tab2 AS cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - col0 * + col1 FROM tab0
----
-2064
-3395
-8099
query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
54 values hashing to 69e208df4a305efdfcc036bb4b31e720
query I rowsort
SELECT - col0 * + tab2.col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT 74 AS col0 FROM tab0
----
74
query I rowsort
SELECT DISTINCT + + col2 * + col1 + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT + col1 + - col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT 74 + - col2 AS col0 FROM tab2 AS cor0
----
36
47
48
query I rowsort
SELECT + - col1 * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 col2 FROM tab2
----
23
23
23
query I rowsort
SELECT + col2 * col1 + + col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT col2 * 70 FROM tab0
----
2310
5740
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 + 95 * + col1 col2 FROM tab0
----
8194
8734
9250
query I rowsort
SELECT + col0 * - col1 AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + col2 * 86 FROM tab1 AS cor0
----
4644
4902
8256
query I rowsort
SELECT - - col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT + cor0.col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3863
SELECT - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3863
SELECT - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 8 AS col0 FROM tab2, tab0 AS cor0, tab0 cor1
----
-8
query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + col0 + col0 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL + + 69 * + col1 - col1 FROM tab2 AS cor0
----
1156
2108
4012
query I rowsort
SELECT + ( - col2 ) * - col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT 55 FROM tab2, tab2 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT ALL - 51 + - 19 * cor0.col2 FROM tab1 AS cor0
----
-1077
-1134
-1875
query I rowsort
SELECT DISTINCT + tab1.col1 FROM tab1, tab0 cor0
----
10
13
26
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab2 AS cor1
----
243 values hashing to ea21cea53be47edd19229592e3d26141
query I rowsort
SELECT 55 FROM tab0 AS cor0
----
55
55
55
query I rowsort
SELECT col0 * col1 AS col2 FROM tab1 cor0
----
1040
640
78
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab1 AS cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
query I rowsort
SELECT - col0 * 2 * + col2 AS col1 FROM tab2 AS cor0
----
-378
-4056
-6004
query I rowsort
SELECT - - 17 * + ( col1 ) AS col1 FROM tab1 cor0
----
170
221
442
query I rowsort
SELECT 17 * + col1 - col2 FROM tab2 AS cor0
----
251
500
977
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3879
SELECT - col2 * col2 - - CAST( 49 + col1 AS SIGNED ) FROM tab1 cor0
----
-2841
-3190
-9154
skipif mysql # not compatible
query I rowsort label-3879
SELECT - col2 * col2 - - CAST ( 49 + col1 AS INTEGER ) FROM tab1 cor0
----
-2841
-3190
-9154
query I rowsort
SELECT col0 - + col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT col2 * col2 * ( + col1 ) FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT + col2 * - col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT col2 * + col0 + - col1 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT ALL col1 + + col1 * - col1 + ( col1 ) FROM tab2
----
-255
-3363
-899
query I rowsort
SELECT ALL tab0.col1 AS col0 FROM tab0
----
86
91
97
query I rowsort
SELECT tab0.col1 AS col0 FROM tab0
----
86
91
97
query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab0 cor0
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3888
SELECT CAST( NULL AS SIGNED ) + - col2 * + tab0.col1 + col2 * + col0 * - col1 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3888
SELECT CAST ( NULL AS INTEGER ) + - col2 * + tab0.col1 + col2 * + col0 * - col1 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 + col0 AS col0 FROM tab1
----
-16
-51
7
query I rowsort
SELECT - 64 AS col1 FROM tab2
----
-64
-64
-64
query I rowsort
SELECT ALL - cor1.col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 * + col1 + col0 col0 FROM tab0
----
-177480
-329280
-736920
onlyif mysql # use DIV operator for integer division
query I rowsort label-3893
SELECT ( ( - col0 ) ) DIV - 84 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3893
SELECT ( ( - col0 ) ) / - 84 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL + 16 FROM tab1 AS cor0
----
16
16
16
query I rowsort
SELECT + 10 FROM tab1, tab1 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT ALL - col0 * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL - - 34 FROM tab1 AS cor0
----
34
34
34
query I rowsort
SELECT DISTINCT 45 FROM tab1 AS cor0
----
45
query I rowsort
SELECT - - col2 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + 49 AS REAL ) AS col2 FROM tab1 AS cor0
----
-49
-49
-49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 * + col1 - col0 col0 FROM tab0 AS cor0
----
7458
7828
8404
query I rowsort
SELECT DISTINCT + + col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT col2 * - col2 + + col1 * + col0 - col0 * col0 FROM tab1
----
-14576
-2847
-6705
query I rowsort
SELECT col0 * + col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT ALL col0 + tab0.col2 AS col1 FROM tab0
----
171
36
57
query I rowsort
SELECT col0 AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 col2 FROM tab2
----
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - cor0.col2 ) - cor0.col1 col1 FROM tab2 AS cor0
----
-55
-58
-85
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab2 cor1, tab1 cor2
----
972 values hashing to 980274175fafec015a83080672486a9a
query I rowsort
SELECT cor0.col1 + + col2 * col0 AS col1 FROM tab1 AS cor0
----
188
3658
7693
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab1 AS cor1
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f
query I rowsort
SELECT ALL + 20 FROM tab0
----
20
20
20
query I rowsort
SELECT ALL - col1 - + col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - col1 + - col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT ALL + 41 FROM tab2
----
41
41
41
query I rowsort
SELECT + 5 AS col0 FROM tab1
----
5
5
5
query I rowsort
SELECT ALL + 97 AS col1 FROM tab0
----
97
97
97
query I rowsort
SELECT + col2 AS col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT cor0.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL + col0 + 90 - - col0 * - col1 AS col2 FROM tab2
----
-1174
-120
-4434
query I rowsort
SELECT - col0 + - 78 FROM tab2 AS cor0
----
-156
-157
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-3924
SELECT - tab1.col2 DIV 82 + + col2 FROM tab1
----
54
57
95
skipif mysql # not compatible
query I rowsort label-3924
SELECT - tab1.col2 / 82 + + col2 FROM tab1
----
54
57
95
query I rowsort
SELECT DISTINCT tab2.col1 * + 28 FROM tab2, tab0 AS cor0
----
1652
476
868
query I rowsort
SELECT + cor0.col0 + + 40 FROM tab0 cor0
----
129
64
75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3927
SELECT ALL + - col0 * CAST( NULL AS DECIMAL ) + - cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL + - col0 * CAST ( NULL AS REAL ) + - cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 - + col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL - col2 * col2 * 94 FROM tab0 AS cor0
----
-102366
-632056
-94
query I rowsort
SELECT + col0 AS col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT col2 + + ( 21 + cor0.col1 ) FROM tab2 cor0
----
106
76
79
query I rowsort
SELECT DISTINCT + - cor0.col0 + - 68 * col1 FROM tab1 cor0
----
-1771
-744
-964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - + col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - col1 AS col0 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT - col2 * - cor0.col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT col1 + ( col0 * - col1 ) AS col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT + col2 AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT col2 AS col0 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT + cor1.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT + col1 - + col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - tab1.col0 AS col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL col0 AS col2 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 col0 FROM tab2
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + col1 * + ( col0 ) FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-3948
SELECT ALL col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL col1 / + col2 AS col0 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT DISTINCT + cor0.col2 * col2 FROM tab0 AS cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab1
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3951
SELECT ALL + col2 * ( + col2 ) * + cor0.col1 + + CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL + col2 * ( + col2 ) * + cor0.col1 + + CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + - col0 * - col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-3954
SELECT DISTINCT + cor0.col1 DIV ( + col0 ) FROM tab2 cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-3954
SELECT DISTINCT + cor0.col1 / ( + col0 ) FROM tab2 cor0
----
0
4
query I rowsort
SELECT + 9 * col0 - + col2 AS col0 FROM tab1 cor0
----
-27
519
624
query I rowsort
SELECT ALL - + ( - col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - 26 * + cor0.col2 + - col1 AS col1 FROM tab0 AS cor0
----
-123
-2223
-944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3958
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - + col1 + - ( + cor0.col2 ) AS col1 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT ALL - 88 FROM tab1 AS cor0
----
-88
-88
-88
query I rowsort
SELECT - + col2 - ( + col0 + col2 ) FROM tab0 AS cor0
----
-253
-37
-90
query I rowsort
SELECT DISTINCT col0 + + col0 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3963
SELECT ALL - + CAST( NULL AS SIGNED ) * + 54 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL - + CAST ( NULL AS INTEGER ) * + 54 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3964
SELECT DISTINCT + - col2 * col1 + col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3964
SELECT DISTINCT + - col2 * col1 + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + - col1 + 76 FROM tab0 AS cor0
----
-10
-15
-21
query I rowsort
SELECT ALL - + col2 * col0 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3967
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3967
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ( 27 ) - + cor0.col1 FROM tab1 cor0
----
1
14
17
query I rowsort
SELECT ALL - cor0.col0 * - col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT col0 + + 24 FROM tab0 cor0
----
113
48
59
query I rowsort
SELECT ( cor0.col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL col0 + col0 + + col1 FROM tab1 AS cor0
----
138
173
32
query I rowsort
SELECT DISTINCT + + 30 AS col1 FROM tab2 AS cor0
----
30
query I rowsort
SELECT ALL + - ( - 26 ) * col2 AS col0 FROM tab1 AS cor0
----
1404
1482
2496
query I rowsort
SELECT + ( - 6 ) AS col0 FROM tab0 AS cor0
----
-6
-6
-6
query I rowsort
SELECT - col1 * + 63 AS col2 FROM tab0 cor0
----
-5418
-5733
-6111
query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL - - 33 - - 38 AS col1 FROM tab0 AS cor0
----
71
71
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3979
SELECT DISTINCT - CAST( col1 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL cor0.col1 + 30 * - col0 AS col0 FROM tab2 AS cor0
----
-179
-2281
-2353
query I rowsort
SELECT ALL + + col2 * + col2 - col1 * cor0.col2 FROM tab0 AS cor0
----
-1749
-738
-96
query I rowsort
SELECT DISTINCT - + 11 AS col0 FROM tab0 AS cor0
----
-11
query I rowsort
SELECT - cor0.col2 * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + col1 + + col0 * 24 FROM tab1 AS cor0
----
1546
1933
98
query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3986
SELECT + col0 DIV - col0 + col1 DIV 24 AS col1 FROM tab1
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-3986
SELECT + col0 / - col0 + col1 / 24 AS col1 FROM tab1
----
-1
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 + - col1 col1 FROM tab0
----
-40
-45
-51
query I rowsort
SELECT DISTINCT + col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-3989
SELECT DISTINCT - + 94 DIV + col0 AS col2 FROM tab2 AS cor0
----
-1
-13
skipif mysql # not compatible
query I rowsort label-3989
SELECT DISTINCT - + 94 / + col0 AS col2 FROM tab2 AS cor0
----
-1
-13
query I rowsort
SELECT + col1 * cor0.col2 + col2 + col2 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-3021
-6336
1296
query I rowsort
SELECT DISTINCT cor0.col0 * col2 + - col1 FROM tab1 AS cor0
----
136
3638
7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * - col2 col0 FROM tab2 AS cor0
----
-1092
-1134
-1596
query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT col0 + col1 + - ( col2 ) * col2 AS col0 FROM tab2 AS cor0
----
-1348
-539
-691
query I rowsort
SELECT ALL + 61 * col1 FROM tab1 AS cor0
----
1586
610
793
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 + - col0 col0 FROM tab0 AS cor0
----
0
7209
768
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * col0 col2 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3998
SELECT DISTINCT 57 * col1 DIV - 34 AS col2 FROM tab1 AS cor0
----
-16
-21
-43
skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT 57 * col1 / - 34 AS col2 FROM tab1 AS cor0
----
-16
-21
-43
query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) * 45 col1 FROM tab2 cor0
----
-1170
-1215
-1710
query I rowsort
SELECT - 83 FROM tab1 AS cor0
----
-83
-83
-83
query I rowsort
SELECT DISTINCT + + 28 * col0 AS col0 FROM tab1 AS cor0
----
1792
2240
84
query I rowsort
SELECT + - col0 * col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * cor0.col2 * 91 - col2 * ( - 50 * - col0 ) col0 FROM tab2 AS cor0
----
-18696
-39884
56889
query I rowsort
SELECT tab2.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 col0 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL - - col2 + 32 AS col1 FROM tab0 AS cor0
----
114
33
65
query I rowsort
SELECT ALL cor0.col2 + col0 + 35 AS col1 FROM tab1 cor0
----
156
211
92
query I rowsort
SELECT - - col2 + col0 FROM tab1 AS cor0
----
121
176
57
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab1 AS cor1
----
243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5
query I rowsort
SELECT DISTINCT + col2 - + ( 22 * col1 + + col2 ) FROM tab2 AS cor0
----
-1298
-374
-682
query I rowsort
SELECT - cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT col2 - tab1.col1 FROM tab1
----
28
47
83
query I rowsort
SELECT DISTINCT - tab0.col0 AS col1 FROM tab0, tab2 AS cor0
----
-24
-35
-89
query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
54 values hashing to 018801f36b33d2fe82cb95918ba502d6
query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
54 values hashing to d8165ceb99ded93f34ad83c310a80ea7
query I rowsort
SELECT 36 AS col0 FROM tab0
----
36
36
36
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab1 AS cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4
onlyif mysql # use DIV operator for integer division
query I rowsort label-4019
SELECT DISTINCT - cor0.col1 + cor0.col2 * 1 DIV 79 AS col2 FROM tab2, tab0, tab0 AS cor0
----
-86
-90
-97
skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT - cor0.col1 + cor0.col2 * 1 / 79 AS col2 FROM tab2, tab0, tab0 AS cor0
----
-86
-90
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab0
----
24
35
89
query I rowsort
SELECT - + ( - 93 ) AS col1 FROM tab0, tab1 cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT DISTINCT 30 - + col1 AS col2 FROM tab0 AS cor0
----
-56
-61
-67
query I rowsort
SELECT col0 * col2 * + ( col2 ) - col1 FROM tab1 AS cor0
----
207926
737267
8722
query I rowsort
SELECT - + col0 + col0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 + - col1 AS col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT + col1 - + col0 AS col1 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT ALL - 87 * cor0.col2 * - col2 FROM tab0 AS cor0
----
584988
87
94743
query I rowsort
SELECT col1 * col1 + - col2 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT + col0 * + col0 + cor0.col2 AS col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT - col0 * col1 + col0 FROM tab0 cor0
----
-2040
-3360
-8010
query I rowsort
SELECT + col2 AS col0 FROM tab1 cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4032
SELECT col0 DIV col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4032
SELECT col0 / col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT + ( - tab2.col1 ) AS col1 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4034
SELECT ALL - CAST( NULL AS SIGNED ) * - 3 + + cor1.col2 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL - CAST ( NULL AS INTEGER ) * - 3 + + cor1.col2 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + ( col2 ) * cor0.col2 + col1 * + col1 col2 FROM tab1 AS cor0
----
158140
185293
884905
onlyif mysql # use DIV operator for integer division
query I rowsort label-4036
SELECT - cor0.col2 DIV - ( 29 ) + + col0 DIV CAST( + cor0.col2 * col0 AS SIGNED ) FROM tab0 AS cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-4036
SELECT - cor0.col2 / - ( 29 ) + + col0 / CAST ( + cor0.col2 * col0 AS INTEGER ) FROM tab0 AS cor0
----
1
1
2
query I rowsort
SELECT cor0.col0 + - cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830
query IIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab2 cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > + col1
----
query I rowsort
SELECT ALL col1 + col0 AS col2 FROM tab0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 col0 FROM tab0
----
178
48
70
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT col2 - col1 AS col0 FROM tab0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4044
SELECT - col1 DIV col0 + col1 AS col2 FROM tab2
----
17
27
59
skipif mysql # not compatible
query I rowsort label-4044
SELECT - col1 / col0 + col1 AS col2 FROM tab2
----
17
27
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 col1 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT tab0.col1 + col1 * + col2 FROM tab0
----
194
2924
7553
query I rowsort
SELECT col1 + - tab0.col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL + col1 + - col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT - tab1.col2 * + col2 AS col2 FROM tab1
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-4051
SELECT ALL + col2 + col1 DIV - col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL + col2 + col1 / - col2 FROM tab1
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT tab2.col0 + col0 AS col2 FROM tab2
----
14
156
158
query I rowsort
SELECT DISTINCT col2 * - tab2.col1 + - col2 FROM tab2
----
-1560
-684
-864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT col0 + + col0 FROM tab1
----
128
160
6
query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL + col2 + + col1 FROM tab2
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 * col2 col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT col0 + + col0 * + col2 AS col2 FROM tab1
----
165
3712
7760
query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT IN ( + col0 )
----
query I rowsort
SELECT DISTINCT col1 * col1 FROM tab1
----
100
169
676
query I rowsort
SELECT ALL col0 * + col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + col0 AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT col0 * - col2 FROM tab2
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT + col1 * col1 - + ( col2 * + col1 ) AS col0 FROM tab1 AS cor0
----
-1079
-470
-728
query I rowsort
SELECT + col2 * col2 * cor0.col1 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT - - 24 * + col2 FROM tab0 AS cor0
----
1968
24
792
query I rowsort
SELECT ALL + col1 * + col2 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT + col2 * + col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT DISTINCT tab2.col0 + col2 FROM tab2
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT col1 - + col1 AS col0 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4075
SELECT ALL col1 + col0 DIV + col2 FROM tab0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL col1 + col0 / + col2 FROM tab0
----
132
86
92
query I rowsort
SELECT ALL col2 + + col2 * col2 FROM tab2
----
1482
702
756
onlyif mysql # use DIV operator for integer division
query I rowsort label-4077
SELECT col2 DIV col1 + - col1 * + col0 col2 FROM tab0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4077
SELECT col2 / col1 + - col1 * + col0 col2 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4078
SELECT + col2 DIV tab1.col0 + col1 FROM tab1
----
10
14
44
skipif mysql # not compatible
query I rowsort label-4078
SELECT + col2 / tab1.col0 + col1 FROM tab1
----
10
14
44
query I rowsort
SELECT + col1 AS col1 FROM tab2
----
17
31
59
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - col2 * col2 AS col0 FROM tab1
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 * + col1 col0 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT + col1 AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT - tab2.col1 AS col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT DISTINCT col2 * col0 FROM tab2
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col1 + col0 AS col2 FROM tab0 cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-4089
SELECT DISTINCT + col1 * - col0 DIV col0 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT + col1 * - col0 / col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - - cor0.col0 AS col2 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4091
SELECT + col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4091
SELECT + col1 / + col1 AS col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT - 27 FROM tab2 AS cor0
----
-27
-27
-27
query I rowsort
SELECT - col1 - - col0 AS col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL - col2 * - col0 FROM tab2
----
189
2028
3002
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab2 cor0, tab2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
query I rowsort
SELECT + cor0.col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL - 36 FROM tab2
----
-36
-36
-36
query I rowsort
SELECT DISTINCT - col0 * - col2 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL + + 76 FROM tab2 AS cor0
----
76
76
76
query I rowsort
SELECT col1 * col1 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-4102
SELECT ALL - ( + col0 ) DIV + col0 AS col2 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL - ( + col0 ) / + col0 AS col2 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT - col1 * col1 AS col1 FROM tab2
----
-289
-3481
-961
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab2, tab2 AS cor1
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
54 values hashing to fe43263cad63144a098cccb9cd58c32a
query IIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab2 cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b
query I rowsort
SELECT 68 * col0 FROM tab0
----
1632
2380
6052
query I rowsort
SELECT + col0 + col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT - 54 + col0 AS col1 FROM tab2 AS cor0
----
-47
24
25
query I rowsort
SELECT ALL + 96 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 cor1, tab2 AS cor2
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7
query I rowsort
SELECT DISTINCT + + col0 + + ( col1 + + col0 ) * - col1 FROM tab0 AS cor0
----
-12769
-16291
-9436
query I rowsort
SELECT + col0 + + 49 AS col1 FROM tab1 AS cor0
----
113
129
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + ( + col0 ) + col2 col1 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4116
SELECT DISTINCT + col2 + + CAST( NULL AS SIGNED ) * - cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4116
SELECT DISTINCT + col2 + + CAST ( NULL AS INTEGER ) * - cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
243 values hashing to 3e8bd9634a3f5947d8becd5f5799bb7f
query I rowsort
SELECT - 48 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c
query I rowsort
SELECT ALL + ( - 63 ) * col0 FROM tab0
----
-1512
-2205
-5607
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab0 AS cor1
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4122
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 13 FROM tab2
----
13
13
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT ( + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - 10 AS col1 FROM tab2 cor0
----
-10
-10
-10
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 263f0eb7d5dfd4076c74918bc141bd9b
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to 89714dd446b7a97f8787d5744bdbf323
query IIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab2 cor1
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc
query I rowsort
SELECT + 40 * col0 AS col0 FROM tab1 AS cor0
----
120
2560
3200
query I rowsort
SELECT - - col1 AS col2 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT - 30 * - cor0.col1 + col1 FROM tab0 cor0
----
2666
2821
3007
query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
54 values hashing to b8667d60d280879b35ad1450a82b3a49
query I rowsort
SELECT col2 + + tab1.col0 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT + - cor0.col1 * + col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4138
SELECT ALL - col2 + col1 DIV cor0.col0 col0 FROM tab2 AS cor0
----
-23
-26
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL - col2 + col1 / cor0.col0 col0 FROM tab2 AS cor0
----
-23
-26
-38
query I rowsort
SELECT + col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL + + cor0.col1 * + col1 AS col0 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + - col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ( - col2 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL 96 * + col2 * + col2 FROM tab2 AS cor0
----
138624
64896
69984
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 col0 FROM tab0 cor0
----
51
51
51
query I rowsort
SELECT cor0.col0 + col1 * + col1 FROM tab2 AS cor0
----
3559
368
968
onlyif mysql # use DIV operator for integer division
query I rowsort label-4148
SELECT ALL - col1 DIV col0 - - col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-841
skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL - col1 / col0 - - col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-841
query I rowsort
SELECT ALL + ( - col2 ) FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT ( col0 ) + + col0 FROM tab1 AS cor0
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 80 + + col0 + - col0 col1 FROM tab0 AS cor0
----
80
query I rowsort
SELECT + ( col1 ) * col1 AS col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT + col1 * - col0 + + col0 FROM tab1 AS cor0
----
-576
-75
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-4155
SELECT + col1 DIV col2 - - col0 AS col2 FROM tab0 cor0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-4155
SELECT + col1 / col2 - - col0 AS col2 FROM tab0 cor0
----
132
26
90
query I rowsort
SELECT DISTINCT col0 * - col2 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4157
SELECT - col0 DIV - col1 + + col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4157
SELECT - col0 / - col1 + + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - - col1 * col2 AS col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + col0 - col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 - + col2 FROM tab2 AS cor0
----
-52
-54
-76
query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
54 values hashing to d8165ceb99ded93f34ad83c310a80ea7
query I rowsort
SELECT + ( col0 * - col1 ) + col2 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT DISTINCT + tab1.col0 AS col0 FROM tab1, tab2 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + col1 * col2 * + cor0.col2 + - cor0.col1 - col1 FROM tab2 AS cor0
----
22537
24514
39766
query I rowsort
SELECT ALL + col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4166
SELECT ALL CAST( 69 AS SIGNED ) FROM tab2 AS cor0
----
69
69
69
skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL CAST ( 69 AS INTEGER ) FROM tab2 AS cor0
----
69
69
69
query I rowsort
SELECT - cor0.col2 * + cor1.col1 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 8a7091a178800976724d6ffd81583e13
query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - 91 + - col0 AS col0 FROM tab2 AS cor0
----
-169
-170
-98
query I rowsort
SELECT ALL ( + col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + col2 * col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + 92 FROM tab1, tab2 AS cor0
----
92
query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7
query I rowsort
SELECT DISTINCT - + ( - col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + - col0 + 13 FROM tab0 AS cor0
----
-11
-22
-76
query I rowsort
SELECT DISTINCT 20 FROM tab2, tab1 AS cor0
----
20
query I rowsort
SELECT DISTINCT - - col0 * - col1 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - + col2 * col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT col0 + - col1 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT 33 * - 38 FROM tab1
----
-1254
query I rowsort
SELECT DISTINCT 81 FROM tab1
----
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 * - col0 col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1, tab0, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - ( col2 ) FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL col0 * ( col1 + col1 * col1 ) FROM tab0
----
179568
332710
745108
query I rowsort
SELECT col2 * cor0.col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL col0 * col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL + 37 AS col0 FROM tab0
----
37
37
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4192
SELECT ALL CAST( - col0 + col2 AS SIGNED ) * - col0 FROM tab1
----
-1280
-153
448
skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL CAST ( - col0 + col2 AS INTEGER ) * - col0 FROM tab1
----
-1280
-153
448
query I rowsort
SELECT - tab0.col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab0 AS cor0
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 col0 FROM tab0
----
-37
query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0
----
54 values hashing to 69e208df4a305efdfcc036bb4b31e720
query I rowsort
SELECT ALL col1 + + col0 * cor0.col1 + - col0 FROM tab2 cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT + col0 * col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-4199
SELECT ALL - col0 DIV col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL - col0 / col0 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT cor0.col2 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT + col1 + col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT tab1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2
----
54 values hashing to fe43263cad63144a098cccb9cd58c32a
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( col1 * - col2 + col2 ) AND + col0
----
query I rowsort
SELECT + col1 + tab1.col1 * - col1 AS col0 FROM tab1
----
-156
-650
-90
query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0
----
86
91
97
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( - col0 + col1 * + col2 )
----
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1
----
54 values hashing to 69e208df4a305efdfcc036bb4b31e720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT - col0 * col2 + + col1 + - col0 FROM tab2
----
-165
-2047
-3064
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2
----
54 values hashing to d8165ceb99ded93f34ad83c310a80ea7
query I rowsort
SELECT - col0 * + col0 AS col1 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT + col0 * col0 AS col1 FROM tab0
----
1225
576
7921
query I rowsort
SELECT ALL + col0 AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL - tab0.col2 FROM tab0 WHERE ( col1 * - col1 ) < ( NULL )
----
query I rowsort
SELECT ALL + col1 + + col0 FROM tab2
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE ( NULL ) BETWEEN + col1 * - col1 AND ( NULL )
----
query I rowsort
SELECT col0 * - col0 AS col0 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT col2 * + col1 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - col1 * col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT tab0.col1 FROM tab0
----
86
91
97
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) > NULL
----
query I rowsort
SELECT col2 * col0 AS col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT col1 * col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 < NULL
----
query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) < + col2 * - col0 + col2 + + col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + col1 * col1 AS col2 FROM tab1 AS cor0 WHERE - cor0.col1 / + col0 < ( + col0 * col2 + + col1 )
----
100
169
676
query I rowsort
SELECT - col0 * + col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-4236
SELECT - col1 * + tab1.col2 + + col2 - - col1 * col1 DIV + col1 FROM tab1
----
-1139
-1324
-503
skipif mysql # not compatible
query I rowsort label-4236
SELECT - col1 * + tab1.col2 + + col2 - - col1 * col1 / + col1 FROM tab1
----
-1139
-1324
-503
query I rowsort
SELECT DISTINCT tab0.col2 + col1 + col2 FROM tab0
----
152
255
99
query I rowsort
SELECT DISTINCT + tab1.col0 + - col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT DISTINCT col1 * col0 + + col1 * tab2.col0 FROM tab2
----
2686
434
9204
query I rowsort
SELECT ALL + col1 * - col1 + + col0 * + col0 FROM tab1
----
-667
3996
6231
onlyif mysql # use DIV operator for integer division
query I rowsort label-4241
SELECT ALL - col2 DIV - col0 + col0 * col1 DIV + tab0.col1 AS col1 FROM tab0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL - col2 / - col0 + col0 * col1 / + tab0.col1 AS col1 FROM tab0
----
25
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 - + col0 col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT - col2 + col2 - + col2 AS col0 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT tab2.col2 * col2 + col2 AS col1 FROM tab2
----
1482
702
756
query I rowsort
SELECT DISTINCT + col0 * - col0 + col1 AS col2 FROM tab0
----
-1128
-490
-7830
query I rowsort
SELECT DISTINCT col1 + + col1 * tab0.col2 AS col0 FROM tab0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-4247
SELECT DISTINCT - col0 + - col0 DIV - col1 FROM tab1
----
-3
-58
-74
skipif mysql # not compatible
query I rowsort label-4247
SELECT DISTINCT - col0 + - col0 / - col1 FROM tab1
----
-3
-58
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-4248
SELECT col0 + - col1 DIV col0 FROM tab2
----
3
78
79
skipif mysql # not compatible
query I rowsort label-4248
SELECT col0 + - col1 / col0 FROM tab2
----
3
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4249
SELECT col2 * + tab1.col1 + col0 + col0 DIV + col1 AS col1 FROM tab1
----
1334
1407
640
skipif mysql # not compatible
query I rowsort label-4249
SELECT col2 * + tab1.col1 + col0 + col0 / + col1 AS col1 FROM tab1
----
1334
1407
640
query I rowsort
SELECT ALL + + col1 * cor0.col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-4251
SELECT + cor0.col0 * + col0 - col1 DIV + cor0.col0 AS col1 FROM tab1 AS cor0
----
1
4096
6400
skipif mysql # not compatible
query I rowsort label-4251
SELECT + cor0.col0 * + col0 - col1 / + cor0.col0 AS col1 FROM tab1 AS cor0
----
1
4096
6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 + col0 * col2 + - col0 * - col2 col2 FROM tab2
----
1107
4732
7448
query I rowsort
SELECT tab1.col0 * + col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL tab0.col1 * col0 * col1 + - col1 * + col2 FROM tab0
----
174666
329218
729547
query I rowsort
SELECT DISTINCT col2 + + col1 AS col2 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL tab1.col1 + + col1 AS col1 FROM tab1
----
20
26
52
query I rowsort
SELECT ALL + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + col1 * col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT cor0.col0 * + col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + col1 + + col0 * col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL - col1 + col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + col2 * col2 + cor0.col1 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT + tab0.col0 FROM tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4264
SELECT col0 DIV col1 AS col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4264
SELECT col0 / col1 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + col0 * col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 + + col2 col1 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT + - col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * - col0 + - col0 col2 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT - col0 + + col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT col2 * + tab0.col0 + - col2 FROM tab0
----
34
7216
759
query I rowsort
SELECT ALL + cor0.col1 * + col2 + col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT col1 * - col1 + + col0 * + cor0.col2 * cor0.col2 FROM tab2 AS cor0
----
113787
4142
49247
query I rowsort
SELECT DISTINCT cor0.col2 + + col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + col1 + col0 FROM tab2
----
137
38
96
query I rowsort
SELECT tab1.col2 * - col1 + 77 AS col1 FROM tab1
----
-1171
-1327
-493
query I rowsort
SELECT ALL col2 * + col2 + col1 FROM tab0
----
1175
6815
98
query I rowsort
SELECT DISTINCT - tab1.col2 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL col2 + tab0.col2 FROM tab0
----
164
2
66
query I rowsort
SELECT DISTINCT col1 * tab2.col0 + col0 AS col2 FROM tab2
----
1422
224
4680
query I rowsort
SELECT + cor1.col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
onlyif mysql # use DIV operator for integer division
query I rowsort label-4287
SELECT DISTINCT - col0 - ( + col2 ) DIV - col2 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-4287
SELECT DISTINCT - col0 - ( + col2 ) / - col2 FROM tab0 AS cor0
----
-23
-34
-88
query I rowsort
SELECT ALL cor0.col2 * + col0 + + ( col2 ) AS col1 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4289
SELECT col0 / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4289
SELECT col0 / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + tab0.col0 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + cor0.col1 * + col2 + + ( col2 + col0 ) col2 FROM tab1 AS cor0
----
1344
1458
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col1 * col2 col1 FROM tab0 cor0
----
-2805
-7380
-96
skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( cor0.col2 AS REAL ) * cor0.col1 * col1 + ( - col2 ) + - col1 AS col1 FROM tab0 AS cor0
----
243949
678869
9311
query I rowsort
SELECT ALL + + col0 + - col0 * - col1 + col1 AS col0 FROM tab1 AS cor0
----
107
1133
714
query I rowsort
SELECT DISTINCT - ( - 57 ) AS col0 FROM tab1 AS cor0
----
57
query I rowsort
SELECT - + col0 + col1 AS col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - col2 - ( col2 ) FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT + ( - cor0.col0 ) * + col2 + - col0 * col2 AS col1 FROM tab1 AS cor0
----
-15360
-324
-7296
query I rowsort
SELECT col1 + + col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + + ( + col0 ) * - col0 AS col2 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - tab1.col1 AS col2 FROM tab1, tab0 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + + cor0.col1 * col2 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 * col2 col2 FROM tab0 AS cor0
----
1485
3690
45
query I rowsort
SELECT DISTINCT 49 + - col2 * col1 AS col2 FROM tab2 cor0
----
-1485
-597
-788
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4306
SELECT ALL col1 + - cor0.col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL col1 + - cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 9 AS col2 FROM tab0
----
-9
-9
-9
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab0, tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + - col0 + + col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT col0 * col1 FROM tab0 cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 80 col1 FROM tab2 AS cor0
----
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4312
SELECT - + col2 DIV col0 + - CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-57
-72
-97
skipif mysql # not compatible
query I rowsort label-4312
SELECT - + col2 / col0 + - CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-57
-72
-97
query I rowsort
SELECT ALL - col0 * - col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + ( - col1 ) * col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + 29 FROM tab0 AS cor0
----
29
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - + col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT 35 * col0 AS col1 FROM tab0 AS cor0
----
1225
3115
840
onlyif mysql # use DIV operator for integer division
query I rowsort label-4319
SELECT ALL - col1 * col1 DIV col0 - 14 AS col0 FROM tab0 AS cor0
----
-107
-282
-322
skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL - col1 * col1 / col0 - 14 AS col0 FROM tab0 AS cor0
----
-107
-282
-322
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 col1 + + col0 * + col2 * + col1 FROM tab1 AS cor0
----
36490
4238
99853
query I rowsort
SELECT ALL - col1 * - col1 + 90 FROM tab1 AS cor0
----
190
259
766
query I rowsort
SELECT - col0 * col2 * + ( col1 + col0 ) AS col0 FROM tab0 cor0
----
-1313640
-4620
-87120
query I rowsort
SELECT DISTINCT + + col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - col1 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT DISTINCT 30 * + col1 FROM tab0 AS cor0
----
2580
2730
2910
query I rowsort
SELECT ALL - 22 AS col2 FROM tab1 AS cor0
----
-22
-22
-22
query I rowsort
SELECT ALL - col0 * col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + + col0 FROM tab0 cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 53 col0 FROM tab1 AS cor0
----
63
66
79
query I rowsort
SELECT DISTINCT + col1 + + col2 * col2 AS col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT col1 * col1 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - col2 * + 23 - col1 * col0 * col1 AS col2 FROM tab2 AS cor0
----
-23705
-272116
-7348
query I rowsort
SELECT - col0 * col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT col0 + col1 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + 62 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
62
query I rowsort
SELECT ALL - tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT + col0 + + col2 AS col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL 74 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + col1 AS col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT cor0.col0 AS col1 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - col1 * col0 * - col1 AS col2 FROM tab0 AS cor0
----
177504
329315
737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-4346
SELECT ALL + col2 DIV + col1 AS col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-4346
SELECT ALL + col2 / + col1 AS col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT - col0 * + col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT - - cor0.col1 * - 72 FROM tab0 AS cor0
----
-6192
-6552
-6984
query I rowsort
SELECT + - col1 + 53 * col1 FROM tab2 AS cor0
----
1612
3068
884
query I rowsort
SELECT - cor0.col2 * - col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + col0 * col0 FROM tab0 AS cor0
----
1225
576
7921
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab1 AS cor1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c
query I rowsort
SELECT DISTINCT + col1 * + 62 - cor0.col1 FROM tab1 AS cor0
----
1586
610
793
query I rowsort
SELECT + 28 FROM tab1, tab1 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
query I rowsort
SELECT ALL tab2.col0 AS col0 FROM tab2
----
7
78
79
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 72eb3d4d523f5d0c69d1b855edd18f4a
query I rowsort
SELECT col0 + 23 * col2 AS col0 FROM tab2 cor0
----
628
676
953
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4359
SELECT DISTINCT + + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-4359
SELECT DISTINCT + + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL col1 * - col2 + - col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query IIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0
query I rowsort
SELECT ALL col2 AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT - col1 AS col0 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + 42 AS col0 FROM tab1, tab1 cor0, tab1 AS cor1
----
42
query I rowsort
SELECT DISTINCT + 84 FROM tab1, tab1 AS cor0
----
84
query I rowsort
SELECT + - col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT 70 FROM tab0
----
70
query I rowsort
SELECT col1 * + 53 FROM tab2
----
1643
3127
901
query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
54 values hashing to b010e320d66ab5b2711fc14e8fb58b01
query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
54 values hashing to 69e208df4a305efdfcc036bb4b31e720
query I rowsort
SELECT 9 FROM tab2
----
9
9
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 col1 FROM tab1
----
-1
query I rowsort
SELECT DISTINCT col2 * col1 AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT - 29 * + col1 FROM tab0
----
-2494
-2639
-2813
query I rowsort
SELECT + ( col0 ) * - col1 AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT 95 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT ( col2 * col0 + - col1 ) AS col1 FROM tab1
----
136
3638
7667
query I rowsort
SELECT DISTINCT - col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ( tab2.col1 ) FROM tab2
----
17
31
59
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to 2507aa9f48c3db94de9fec065edf3731
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab1 cor0
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 * col2 col0 FROM tab0
----
3168
7872
96
query I rowsort
SELECT DISTINCT - col1 * col2 FROM tab1
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-4384
SELECT ( col1 ) + + ( + col0 ) DIV + col1 AS col0 FROM tab2 AS cor0
----
21
31
60
skipif mysql # not compatible
query I rowsort label-4384
SELECT ( col1 ) + + ( + col0 ) / + col1 AS col0 FROM tab2 AS cor0
----
21
31
60
query I rowsort
SELECT - 79 AS col1 FROM tab2
----
-79
-79
-79
query I rowsort
SELECT - + col1 * col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2
----
26
27
38
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0 CROSS JOIN tab0
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00
query I rowsort
SELECT ALL cor0.col0 + + 11 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 365e85330b095eb9c8184ee9233d1519
query IIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
243 values hashing to ea21cea53be47edd19229592e3d26141
query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
54 values hashing to 018801f36b33d2fe82cb95918ba502d6
query I rowsort
SELECT + col2 * 52 + col2 FROM tab1
----
2862
3021
5088
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab1, tab0 AS cor1
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521
query I rowsort
SELECT + 88 - 4 * tab1.col2 FROM tab1
----
-128
-140
-296
query I rowsort
SELECT - 77 + - 48 FROM tab0 cor0
----
-125
-125
-125
query I rowsort
SELECT + col2 * col0 FROM tab0 cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) + cor0.col1 col0 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4398
SELECT + col0 + col2 DIV col1 AS col0 FROM tab0 cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4398
SELECT + col0 + col2 / col1 AS col0 FROM tab0 cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 92 ) col0 FROM tab1 AS cor0
----
92
92
92
query I rowsort
SELECT - 67 * col2 FROM tab1 AS cor0
----
-3618
-3819
-6432
query I rowsort
SELECT - col2 + - col0 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT DISTINCT - 62 FROM tab2 AS cor0
----
-62
query I rowsort
SELECT ALL + 46 * + col2 + col2 * - col1 FROM tab1 AS cor0
----
1080
2052
3168
query I rowsort
SELECT - col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT 66 * - col2 FROM tab2 AS cor0
----
-1716
-1782
-2508
query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4407
SELECT ALL + + 15 + col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
15
15
15
skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL + + 15 + col0 / - col1 AS col2 FROM tab0 AS cor0
----
15
15
15
query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - col1 - - col1 AS col1 FROM tab0 AS cor0
----
0
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521
query I rowsort
SELECT ALL + 99 FROM tab0
----
99
99
99
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab0 cor1
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521
query I rowsort
SELECT ALL cor0.col2 * col2 + + 53 AS col2 FROM tab0 AS cor0
----
1142
54
6777
query I rowsort
SELECT - col1 * col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - cor1.col1 AS col2 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT DISTINCT + col0 + + tab1.col0 FROM tab1
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( cor0.col1 ) * - col0 col2 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL + + cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT ALL - 3 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc
query I rowsort
SELECT + cor0.col2 * + col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col1 * + col2 - col1 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + cor0.col0 col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - 37 FROM tab2 cor0
----
-37
query I rowsort
SELECT DISTINCT - - 90 + col0 AS col0 FROM tab1 AS cor0
----
154
170
93
query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT col1 * + col1 AS col2 FROM tab1 AS cor0
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 * 12 + + cor0.col1 col0 FROM tab2 cor0
----
509
523
551
query I rowsort
SELECT ALL - ( 24 ) AS col2 FROM tab0 AS cor0
----
-24
-24
-24
query I rowsort
SELECT DISTINCT - ( 87 ) AS col1 FROM tab0 AS cor0
----
-87
query I rowsort
SELECT DISTINCT 8 + + 48 * col0 FROM tab0 AS cor0
----
1160
1688
4280
query I rowsort
SELECT - + ( 23 ) FROM tab1 AS cor0
----
-23
-23
-23
query I rowsort
SELECT ALL + + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + cor0.col2 * + col1 + col2 * + 69 AS col0 FROM tab2 AS cor0
----
2700
3268
3328
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4438
SELECT col1 * - CAST( - 37 AS SIGNED ) AS col2 FROM tab0
----
3182
3367
3589
skipif mysql # not compatible
query I rowsort label-4438
SELECT col1 * - CAST ( - 37 AS INTEGER ) AS col2 FROM tab0
----
3182
3367
3589
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab1 AS cor0, tab1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823
query I rowsort
SELECT DISTINCT - col0 + tab1.col2 AS col0 FROM tab1
----
-7
16
51
query I rowsort
SELECT DISTINCT - col1 + col2 + ( col1 ) * + col1 FROM tab1
----
147
252
704
query I rowsort
SELECT + col2 + - 30 FROM tab0
----
-29
3
52
query I rowsort
SELECT + col0 + ( - 29 + col2 * col2 ) FROM tab0
----
1084
6784
7
query I rowsort
SELECT col1 * + col1 - - col0 FROM tab0
----
7420
8370
9444
query I rowsort
SELECT + 18 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2
----
17
31
59
query I rowsort
SELECT + cor0.col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - col0 * - 35 FROM tab1
----
105
2240
2800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 * - 73 col2 FROM tab0
----
207174
544726
7081
query I rowsort
SELECT ALL 86 * cor0.col0 FROM tab2 cor0
----
602
6708
6794
query I rowsort
SELECT DISTINCT + col0 * col1 * col0 AS col1 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT - - col0 * - ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4453
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL 90 + col2 FROM tab0 AS cor0
----
123
172
91
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474
query I rowsort
SELECT ALL - ( + col2 ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 5e655b1287771868a8f868574a94d749
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + ( + col0 ) ) col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + 84 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT ALL col1 + col2 * - 28 + col2 FROM tab2
----
-1009
-643
-698
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4462
SELECT - CAST( - col1 AS SIGNED ) * col0 + ( 8 ) AS col0 FROM tab0 AS cor0
----
2072
3403
8107
skipif mysql # not compatible
query I rowsort label-4462
SELECT - CAST ( - col1 AS INTEGER ) * col0 + ( 8 ) AS col0 FROM tab0 AS cor0
----
2072
3403
8107
query I rowsort
SELECT 36 FROM tab2 AS cor0
----
36
36
36
query I rowsort
SELECT ( + col2 ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - 15 + 82 * - tab2.col0 AS col1 FROM tab2
----
-589
-6411
-6493
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col1 ) col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - col1 + - ( - col2 ) AS col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT - ( + 51 ) * + col1 AS col0 FROM tab0
----
-4386
-4641
-4947
query I rowsort
SELECT ALL + 29 FROM tab0, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT DISTINCT + col2 * + col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT - ( col2 ) + + col0 * + ( col2 ) AS col0 FROM tab2 AS cor0
----
162
2002
2964
query IIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab0 cor1
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f
query I rowsort
SELECT ALL + + 53 + + col1 AS col2 FROM tab2 AS cor0
----
112
70
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-4475
SELECT + - cor0.col0 + - col0 + + cor0.col2 * ( - col0 ) DIV + cor0.col0 FROM tab1 AS cor0
----
-185
-256
-60
skipif mysql # not compatible
query I rowsort label-4475
SELECT + - cor0.col0 + - col0 + + cor0.col2 * ( - col0 ) / + cor0.col0 FROM tab1 AS cor0
----
-185
-256
-60
query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL ( + ( + col1 ) * + col2 ) FROM tab0
----
2838
7462
97
query I rowsort
SELECT ( - col1 ) AS col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ALL col0 + - col1 - tab2.col2 FROM tab2
----
-51
-7
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-4480
SELECT ALL col2 + - col0 DIV + col0 - + col1 AS col2 FROM tab2
----
-34
-5
20
skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL col2 + - col0 / + col0 - + col1 AS col2 FROM tab2
----
-34
-5
20
query I rowsort
SELECT - ( col0 ) * 39 * + col1 FROM tab1
----
-24960
-3042
-40560
query I rowsort
SELECT DISTINCT - col2 * 92 FROM tab2 AS cor0
----
-2392
-2484
-3496
onlyif mysql # use DIV operator for integer division
query I rowsort label-4483
SELECT DISTINCT + - col1 DIV - cor0.col1 + col0 * - col2 + col0 FROM tab0 AS cor0
----
-7208
-767
1
skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT + - col1 / - cor0.col1 + col0 * - col2 + col0 FROM tab0 AS cor0
----
-7208
-767
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 7 + cor0.col1 * cor0.col0 * col1 col0 FROM tab2 AS cor0
----
22712
271105
6510
onlyif mysql # use DIV operator for integer division
query I rowsort label-4485
SELECT ALL - - col0 DIV 70 + col2 FROM tab0 AS cor0
----
1
33
83
skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL - - col0 / 70 + col2 FROM tab0 AS cor0
----
1
33
83
query I rowsort
SELECT ALL col0 * cor0.col0 AS col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT + col1 * 34 AS col1 FROM tab1 AS cor0
----
340
442
884
query I rowsort
SELECT + - col1 - col2 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL + cor0.col0 * 75 AS col2 FROM tab1 AS cor0
----
225
4800
6000
query I rowsort
SELECT col1 + col2 FROM tab0
----
119
173
98
query I rowsort
SELECT + 53 + - col1 FROM tab1
----
27
40
43
query I rowsort
SELECT tab1.col2 + + col1 * col2 * - col2 FROM tab1
----
-119712
-32433
-75762
query I rowsort
SELECT DISTINCT - 45 FROM tab0
----
-45
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab2 AS cor1
----
243 values hashing to ea21cea53be47edd19229592e3d26141
query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT col1 * - tab1.col1 + + col2 AS col1 FROM tab1
----
-43
-622
-73
query I rowsort
SELECT tab1.col2 * - cor0.col1 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 3e351fdfa2fd88779f2d7b6136dc00d1
query I rowsort
SELECT DISTINCT - 67 FROM tab2
----
-67
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 AS cor2, tab0 AS cor3
----
13122 values hashing to 76444691021e654ba468b5c8fca61882
query I rowsort
SELECT col0 * + col1 * ( col1 ) FROM tab1
----
13520
2028
6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 54 + - col1 * - col2 * + tab0.col0 col0 FROM tab0
----
3450
664254
68199
query I rowsort
SELECT DISTINCT 77 FROM tab0, tab1 AS cor0
----
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col0 col0 FROM tab1
----
128
160
6
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c
query I rowsort
SELECT - - col1 * - col1 - col2 FROM tab2 AS cor0
----
-327
-3507
-988
onlyif mysql # use DIV operator for integer division
query I rowsort label-4506
SELECT DISTINCT col1 DIV ( col0 ) FROM tab1 cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-4506
SELECT DISTINCT col1 / ( col0 ) FROM tab1 cor0
----
0
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4507
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + col2 * col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL - col0 * col1 * + col1 AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727
skipif mysql # not compatible
query I rowsort
SELECT col2 + CAST ( 13 + + col0 AS REAL ) FROM tab1 AS cor0
----
134
189
70
query I rowsort
SELECT DISTINCT + - col1 * + col1 + + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT - - col0 * 26 + cor0.col2 FROM tab2 cor0
----
2054
209
2092
query I rowsort
SELECT ALL - cor0.col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT + col2 - + col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4515
SELECT - col1 * - CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-4515
SELECT - col1 * - CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - col1 * ( + col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL col0 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT - col2 + - cor0.col0 + + col0 * col2 AS col2 FROM tab2 AS cor0
----
155
1924
2885
query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + - col0 * - ( + 91 ) FROM tab2 AS cor0
----
637
7098
7189
query I rowsort
SELECT col2 * 60 - 87 AS col0 FROM tab1 AS cor0
----
3153
3333
5673
query I rowsort
SELECT + 91 * col0 FROM tab2 AS cor0
----
637
7098
7189
query I rowsort
SELECT - + col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab2, tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 col0 FROM tab0 AS cor0
----
2064
3395
8099
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab0 AS cor1
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00
query I rowsort
SELECT - 62 AS col0 FROM tab0
----
-62
-62
-62
query I rowsort
SELECT + col1 + + col2 * - ( + col1 * cor0.col2 ) FROM tab2 AS cor0
----
-22568
-24531
-39825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4530
SELECT + ( + col0 + CAST( NULL AS DECIMAL ) ) col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4530
SELECT + ( + col0 + CAST ( NULL AS REAL ) ) col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4531
SELECT + cor0.col2 + col1 * cor0.col0 DIV col1 - - 96 * - col2 FROM tab0 AS cor0
----
-3111
-60
-7701
skipif mysql # not compatible
query I rowsort label-4531
SELECT + cor0.col2 + col1 * cor0.col0 / col1 - - 96 * - col2 FROM tab0 AS cor0
----
-3111
-60
-7701
query I rowsort
SELECT - col0 * col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + col2 + + col0 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL + col1 + + col0 * 35 AS col0 FROM tab0
----
1322
3206
926
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab2 AS cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca
query I rowsort
SELECT tab0.col0 FROM tab0, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT + - col0 * + cor0.col1 * col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT 24 + col0 * + cor0.col1 FROM tab1 AS cor0
----
102
1064
664
query I rowsort
SELECT ALL + col0 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL col1 AS col2 FROM tab0
----
86
91
97
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab2 AS cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca
query I rowsort
SELECT - tab0.col0 + + col2 * col1 + col1 * + col0 * 66 FROM tab0
----
139038
224132
541907
query I rowsort
SELECT ALL tab2.col1 * col1 AS col0 FROM tab2
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-4544
SELECT ALL + col0 DIV - col0 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL + col0 / - col0 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT - + col0 + + col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + col0 * + 61 FROM tab0
----
1464
2135
5429
query I rowsort
SELECT DISTINCT col0 + ( - col2 ) FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - col0 + col0 AS col0 FROM tab2 cor0
----
0
0
0
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2 cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca
query I rowsort
SELECT + ( + 20 ) FROM tab2
----
20
20
20
query I rowsort
SELECT - - col0 + + 45 FROM tab0 cor0
----
134
69
80
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + col1 AS REAL ) AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 3 col1 FROM tab1 AS cor0
----
3
query I rowsort
SELECT DISTINCT + 9 AS col0 FROM tab1, tab0 AS cor0, tab0, tab2 AS cor1
----
9
query I rowsort
SELECT + + 43 * - col2 FROM tab1 AS cor0
----
-2322
-2451
-4128
onlyif mysql # use DIV operator for integer division
query I rowsort label-4559
SELECT - col1 DIV + col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4559
SELECT - col1 / + col1 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4560
SELECT + + 48 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4560
SELECT + + 48 / cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + + 79 * cor0.col2 + - col0 FROM tab1 AS cor0
----
4263
4439
7504
query I rowsort
SELECT ALL + col1 * col1 * - col0 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 66 col0 FROM tab2 AS cor0
----
66
query I rowsort
SELECT ALL 11 + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1545
657
848
query I rowsort
SELECT + col2 * 18 AS col1 FROM tab1 AS cor0
----
1026
1728
972
query I rowsort
SELECT - - ( col1 ) + col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT 76 AS col0 FROM tab1
----
76
76
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4568
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4568
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + tab1.col1 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT ( 3 ) + + col2 AS col0 FROM tab0
----
36
4
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4571
SELECT DISTINCT CAST( - 48 + - col1 * col2 AS SIGNED ) AS col0 FROM tab0
----
-145
-2886
-7510
skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT CAST ( - 48 + - col1 * col2 AS INTEGER ) AS col0 FROM tab0
----
-145
-2886
-7510
query I rowsort
SELECT 93 AS col1 FROM tab2
----
93
93
93
query I rowsort
SELECT col2 * + col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ALL - 51 FROM tab1, tab1 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
query I rowsort
SELECT ALL + col0 AS col0 FROM tab0
----
24
35
89
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab1 AS cor0, tab2 AS cor1
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0
query I rowsort
SELECT col0 + + 0 * + col0 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + ( col0 ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + tab2.col2 FROM tab2
----
26
27
38
query I rowsort
SELECT - tab1.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT 52 * + 53 FROM tab2
----
2756
2756
2756
onlyif mysql # use DIV operator for integer division
query I rowsort label-4582
SELECT DISTINCT tab0.col1 + col2 DIV col0 FROM tab0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT tab0.col1 + col2 / col0 FROM tab0
----
87
91
97
query I rowsort
SELECT col1 AS col2 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT - - col1 * col0 AS col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT - - col2 * col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT cor0.col2 AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + - col1 + col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL col1 * col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + + col0 * col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL + 68 * col0 + 89 * + col2 FROM tab1 AS cor0
----
13984
5010
9425
query I rowsort
SELECT 75 AS col2 FROM tab1
----
75
75
75
query I rowsort
SELECT ALL cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - col0 * col1 + - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-4594
SELECT + col1 DIV + col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-4594
SELECT + col1 / + col0 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT - + ( cor0.col2 ) * + 19 AS col1 FROM tab0 AS cor0
----
-1558
-19
-627
query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + col0 * 93 - + 52 * - col1 FROM tab1 AS cor0
----
1631
6472
8116
query I rowsort
SELECT - ( cor0.col2 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT DISTINCT - 33 AS col0 FROM tab1, tab2 AS cor0
----
-33
query IIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00
query I rowsort
SELECT DISTINCT - col1 - col0 * + col2 * col0 FROM tab2
----
-1354
-158243
-237175
query I rowsort
SELECT - + cor0.col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4604
SELECT + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4604
SELECT + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4605
SELECT - col0 DIV - col1 + 3 AS col0 FROM tab0 AS cor0
----
3
3
3
skipif mysql # not compatible
query I rowsort label-4605
SELECT - col0 / - col1 + 3 AS col0 FROM tab0 AS cor0
----
3
3
3
query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + + col1 * + col1 + col0 AS col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT - col0 + + ( col1 ) FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4609
SELECT + + col0 / - CAST( NULL AS SIGNED ) - 50 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4609
SELECT + + col0 / - CAST ( NULL AS INTEGER ) - 50 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - cor0.col0 + col2 * 25 AS col0 FROM tab0 AS cor0
----
-10
1961
801
query I rowsort
SELECT col2 + + ( - col2 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT 27 * + col0 FROM tab1 AS cor0
----
1728
2160
81
query I rowsort
SELECT - 36 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4616
SELECT CAST( NULL AS SIGNED ) * + col1 + - col2 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4616
SELECT CAST ( NULL AS INTEGER ) * + col1 + - col2 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 4c0813b2179303fdf58f082d81d6d03c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 col2 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4619
SELECT ALL col1 DIV + col0 AS col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL col1 / + col0 AS col0 FROM tab2 AS cor0
----
0
0
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4620
SELECT col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4620
SELECT col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col1 * + 24 AS col2 FROM tab1 AS cor0
----
240
312
624
query I rowsort
SELECT ALL + tab2.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT DISTINCT col1 * col0 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4624
SELECT + - cor0.col2 * col2 + col1 DIV col1 + + 36 FROM tab1 AS cor0
----
-2879
-3212
-9179
skipif mysql # not compatible
query I rowsort label-4624
SELECT + - cor0.col2 * col2 + col1 / col1 + + 36 FROM tab1 AS cor0
----
-2879
-3212
-9179
query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT + cor0.col1 + - col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL + col1 * - 95 FROM tab2 AS cor0
----
-1615
-2945
-5605
query I rowsort
SELECT col2 + + col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + + col2 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + col1 + cor0.col0 * - col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT col2 + tab2.col0 FROM tab2
----
104
117
34
query I rowsort
SELECT - col1 + col1 - col2 FROM tab0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 col2 FROM tab0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4634
SELECT + CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4634
SELECT + CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT col2 + - col1 FROM tab1
----
28
47
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4636
SELECT DISTINCT col1 + col0 + CAST( 86 AS SIGNED ) * - col2 FROM tab1
----
-4615
-4828
-8163
skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT col1 + col0 + CAST ( 86 AS INTEGER ) * - col2 FROM tab1
----
-4615
-4828
-8163
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0
----
1
33
82
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab0 cor1
----
243 values hashing to 3e8bd9634a3f5947d8becd5f5799bb7f
query I rowsort
SELECT col2 * col0 FROM tab0
----
35
7298
792
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab1 cor1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4641
SELECT + col1 * + CAST( NULL AS SIGNED ) + 65 * col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4641
SELECT + col1 * + CAST ( NULL AS INTEGER ) + 65 * col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + + 87 FROM tab1
----
23
7
84
query I rowsort
SELECT ALL 46 * + cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 47332122c626b044d782a3115598aecb
query I rowsort
SELECT + tab1.col1 - - col1 AS col1 FROM tab1
----
20
26
52
query I rowsort
SELECT + col2 + cor0.col0 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL - col1 + - 70 FROM tab1 AS cor0
----
-80
-83
-96
query I rowsort
SELECT DISTINCT - col2 * + ( 75 ) AS col1 FROM tab2 AS cor0
----
-1950
-2025
-2850
query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0
----
-24
-35
-89
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-4650
SELECT ALL col0 DIV + col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL col0 / + col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT + col1 + + col0 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL - col0 + 46 FROM tab1 AS cor0
----
-18
-34
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-4653
SELECT DISTINCT + col1 DIV - ( + col2 * col0 ) FROM tab0 cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-4653
SELECT DISTINCT + col1 / - ( + col2 * col0 ) FROM tab0 cor0
----
-2
0
query I rowsort
SELECT - col2 * + col2 FROM tab1 cor0
----
-2916
-3249
-9216
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab0, tab1 cor1
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614
query I rowsort
SELECT 91 FROM tab2
----
91
91
91
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4659
SELECT DISTINCT + CAST( - 87 + - col2 AS SIGNED ) AS col0 FROM tab0
----
-120
-169
-88
skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT + CAST ( - 87 + - col2 AS INTEGER ) AS col0 FROM tab0
----
-120
-169
-88
query I rowsort
SELECT - 80 FROM tab1 AS cor0
----
-80
-80
-80
query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab1, tab1 cor0 CROSS JOIN tab2, tab2 cor1, tab0 AS cor2
----
3
64
80
query I rowsort
SELECT + col0 * col0 + + col0 + - col2 FROM tab0 AS cor0
----
1259
567
7928
query I rowsort
SELECT ALL ( col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL 42 + col1 FROM tab2
----
101
59
73
query I rowsort
SELECT - col1 + + tab0.col2 * + col0 AS col0 FROM tab0
----
-62
706
7207
query I rowsort
SELECT DISTINCT + 0 AS col2 FROM tab1, tab2, tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - col0 * col1 + ( ( - col2 ) ) FROM tab2
----
-1381
-244
-4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-4668
SELECT DISTINCT 93 * col1 + + 6 DIV + col1 FROM tab0 AS cor0
----
7998
8463
9021
skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT 93 * col1 + + 6 / + col1 FROM tab0 AS cor0
----
7998
8463
9021
query I rowsort
SELECT ALL - 81 * - col1 AS col0 FROM tab1 cor0
----
1053
2106
810
query I rowsort
SELECT - col2 - - col2 * col2 * + col1 AS col2 FROM tab2 AS cor0
----
22572
24510
39858
query I rowsort
SELECT ALL - 84 * col1 FROM tab2 AS cor0
----
-1428
-2604
-4956
query I rowsort
SELECT DISTINCT + - col0 + - col2 AS col1 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL + + col0 AS col2 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL - 3 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166
query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 79 col2 FROM tab2 AS cor0
----
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4678
SELECT + col1 + col0 DIV - ( + col2 ) - col1 AS col0 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4678
SELECT + col1 + col0 / - ( + col2 ) - col1 AS col0 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT - - 78 FROM tab0 AS cor0
----
78
78
78
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab1, tab1 AS cor1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 col1 FROM tab1
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-4682
SELECT - 16 DIV + col2 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4682
SELECT - 16 / + col2 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ( col1 ) * 95 AS col1 FROM tab1
----
1235
2470
950
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4684
SELECT ALL + + 62 + + col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL + + 62 + + col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 51 AS col1 FROM tab2 AS cor0
----
-51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4686
SELECT - ( col2 ) - + CAST( 53 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-1432
-587
-785
skipif mysql # not compatible
query I rowsort label-4686
SELECT - ( col2 ) - + CAST ( 53 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-1432
-587
-785
query I rowsort
SELECT ALL + + ( col2 ) * ( + 23 ) * col2 FROM tab1 AS cor0
----
211968
67068
74727
query I rowsort
SELECT ALL - col0 * col1 + + 36 + 83 FROM tab1 AS cor0
----
-521
-921
41
query I rowsort
SELECT DISTINCT + + col1 - - col1 AS col0 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-4690
SELECT - col2 * col0 - col1 * col1 DIV + col2 FROM tab1 AS cor0
----
-174
-3649
-7681
skipif mysql # not compatible
query I rowsort label-4690
SELECT - col2 * col0 - col1 * col1 / + col2 FROM tab1 AS cor0
----
-174
-3649
-7681
query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-4692
SELECT DISTINCT - col2 DIV col2 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-4692
SELECT DISTINCT - col2 / col2 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT ALL ( + col1 ) * + col2 * + col2 + + col1 * - ( col0 ) AS col2 FROM tab1 AS cor0
----
118768
31850
75738
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4694
SELECT ALL + 3 + cor0.col1 * + CAST( NULL AS SIGNED ) + 43 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL + 3 + cor0.col1 * + CAST ( NULL AS INTEGER ) + 43 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( - col1 ) + col1 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - cor0.col0 + col0 * - 16 FROM tab1 AS cor0
----
-1088
-1360
-51
query I rowsort
SELECT DISTINCT col2 + + col1 * + ( - col1 * col1 ) FROM tab2 AS cor0
----
-205353
-29764
-4875
query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - - col2 + col0 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + col0 + + col0 * 92 FROM tab2 AS cor0
----
651
7254
7347
query I rowsort
SELECT ALL col1 + ( + col2 ) * + col0 FROM tab2 AS cor0
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 * col1 col2 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT - - col2 + ( + col2 ) * + col0 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-4704
SELECT col2 DIV col2 + + col0 + + col1 DIV + 11 col0 FROM tab0 AS cor0
----
32
44
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4704
SELECT col2 / col2 + + col0 + + col1 / + 11 col0 FROM tab0 AS cor0
----
32
44
98
query I rowsort
SELECT - cor0.col2 + + ( - col2 ) - col1 FROM tab2 AS cor0
----
-111
-85
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + 87 + col0 + + col2 col1 FROM tab2 AS cor0
----
1596
2731
5237
query I rowsort
SELECT - - col2 * + cor0.col2 + col0 * col2 AS col0 FROM tab1 cor0
----
16896
3078
6897
query I rowsort
SELECT ALL + col2 * + col0 - 47 FROM tab0 AS cor0
----
-12
7251
745
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 col2 FROM tab2, tab2 AS cor0
----
-44
query I rowsort
SELECT col0 * + 99 + + 66 FROM tab1 AS cor0
----
363
6402
7986
onlyif mysql # use DIV operator for integer division
query I rowsort label-4711
SELECT + - col0 + - 18 DIV - col0 FROM tab1 AS cor0
----
-64
-80
3
skipif mysql # not compatible
query I rowsort label-4711
SELECT + - col0 + - 18 / - col0 FROM tab1 AS cor0
----
-64
-80
3
query I rowsort
SELECT DISTINCT - col2 + col0 * col1 FROM tab0 AS cor0
----
2031
3394
8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT + + col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - col0 + + col2 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4716
SELECT DISTINCT col0 + col0 + - col1 DIV col2 AS col2 FROM tab1 cor0
----
128
160
6
skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT col0 + col0 + - col1 / col2 AS col2 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT DISTINCT + col1 - + col1 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - - col0 * col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT 60 FROM tab1
----
60
60
60
query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT + - ( col0 ) * + cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4722
SELECT DISTINCT + + ( - 79 ) DIV col1 AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT + + ( - 79 ) / col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT cor1.col2 * 75 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
4050
4275
7200
query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + col2 * 14 * + col0 FROM tab2 AS cor0
----
2646
28392
42028
query I rowsort
SELECT + 5 * - col2 AS col1 FROM tab2 AS cor0
----
-130
-135
-190
query I rowsort
SELECT col0 + 1 * + 51 FROM tab0
----
140
75
86
query I rowsort
SELECT DISTINCT col0 * - cor0.col2 + + col0 FROM tab0 AS cor0
----
-7209
-768
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4729
SELECT CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4729
SELECT CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4730
SELECT ALL + col1 + + col1 DIV 19 AS col2 FROM tab2 cor0
----
17
32
62
skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL + col1 + + col1 / 19 AS col2 FROM tab2 cor0
----
17
32
62
query I rowsort
SELECT - - col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + - 4 AS col2 FROM tab1 AS cor0
----
-4
-4
-4
query I rowsort
SELECT + - col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - + col2 * + col0 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837
query I rowsort
SELECT + 12 FROM tab0
----
12
12
12
onlyif mysql # use DIV operator for integer division
query I rowsort label-4737
SELECT - 9 * - col1 + - col1 DIV col1 FROM tab2
----
152
278
530
skipif mysql # not compatible
query I rowsort label-4737
SELECT - 9 * - col1 + - col1 / col1 FROM tab2
----
152
278
530
query I rowsort
SELECT 42 FROM tab0
----
42
42
42
query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - 83 AS col0 FROM tab0
----
-83
query I rowsort
SELECT DISTINCT 56 FROM tab2
----
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 + col2 ) col0 FROM tab0
----
164
2
66
query I rowsort
SELECT - col0 AS col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + col2 + - 83 - 23 * + col1 * - col0 AS col0 FROM tab2 AS cor0
----
105789
30844
4935
query I rowsort
SELECT - col1 + + col2 FROM tab1 AS cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + + cor0.col1 AS col2 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT DISTINCT cor0.col2 + + 24 FROM tab0 AS cor0
----
106
25
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - ( + col0 ) + col1 col0 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT ALL col0 * col2 + - col1 * - tab1.col1 FROM tab1
----
3748
7849
838
query I rowsort
SELECT col2 + ( col1 ) FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - 65 FROM tab0, tab2 AS cor0
----
-65
query I rowsort
SELECT col2 * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT 40 FROM tab1 AS cor0
----
40
40
40
query I rowsort
SELECT ALL col0 AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT + col0 + - ( col0 ) AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT + col2 + 76 * - col1 AS col0 FROM tab0
----
-6503
-6834
-7371
query I rowsort
SELECT + col1 * + col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT col0 * - 42 AS col1 FROM tab1 cor0
----
-126
-2688
-3360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT 21 FROM tab1, tab1 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
query I rowsort
SELECT DISTINCT tab2.col2 AS col0 FROM tab2
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 col2 FROM tab0
----
1
33
82
query I rowsort
SELECT - 72 * col0 + - 48 + cor0.col1 FROM tab1 AS cor0
----
-238
-4646
-5795
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4765
SELECT col1 + col1 + + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4765
SELECT col1 + col1 + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * - col0 * - col0 col1 FROM tab2 AS cor0
----
1354
158243
237175
query I rowsort
SELECT + col2 + + col0 + + 28 FROM tab1 AS cor0
----
149
204
85
query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - - col0 + col0 * col2 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-4770
SELECT col1 DIV cor0.col1 + + 25 + - 48 AS col2 FROM tab0 AS cor0
----
-22
-22
-22
skipif mysql # not compatible
query I rowsort label-4770
SELECT col1 / cor0.col1 + + 25 + - 48 AS col2 FROM tab0 AS cor0
----
-22
-22
-22
query I rowsort
SELECT DISTINCT + + col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - 84 * - col1 FROM tab1 AS cor0
----
1092
2184
840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + col1 col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT - col0 * ( col0 ) * col0 AS col1 FROM tab0
----
-13824
-42875
-704969
onlyif mysql # use DIV operator for integer division
query I rowsort label-4775
SELECT - col0 DIV tab0.col2 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-4775
SELECT - col0 / tab0.col2 FROM tab0
----
-1
-35
0
query I rowsort
SELECT ALL 90 + 70 AS col1 FROM tab1
----
160
160
160
query I rowsort
SELECT tab0.col1 * - tab0.col0 AS col2 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + ( + col1 + - col2 ) FROM tab2
----
-21
33
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4779
SELECT DISTINCT 67 * col1 + col1 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-4779
SELECT DISTINCT 67 * col1 + col1 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
query I rowsort
SELECT - 12 FROM tab2
----
-12
-12
-12
query I rowsort
SELECT DISTINCT ( + col1 ) * + 61 * + tab1.col0 AS col1 FROM tab1
----
39040
4758
63440
query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
54 values hashing to 341cdc053c309cf3abe57fa060ecf96e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 col0 FROM tab1
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4784
SELECT col1 * - col0 * CAST( col2 AS SIGNED ) FROM tab0
----
-3395
-664118
-68112
skipif mysql # not compatible
query I rowsort label-4784
SELECT col1 * - col0 * CAST ( col2 AS INTEGER ) FROM tab0
----
-3395
-664118
-68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4785
SELECT - cor0.col1 + - col2 * - CAST( + 30 AS SIGNED ) + col2 AS col1 FROM tab2 AS cor0
----
1161
747
806
skipif mysql # not compatible
query I rowsort label-4785
SELECT - cor0.col1 + - col2 * - CAST ( + 30 AS INTEGER ) + col2 AS col1 FROM tab2 AS cor0
----
1161
747
806
query I rowsort
SELECT ALL - 19 * col2 FROM tab0 AS cor0
----
-1558
-19
-627
query I rowsort
SELECT col2 + col0 AS col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT + + col0 * col2 + - col2 + + col0 AS col0 FROM tab0 AS cor0
----
69
7305
783
query I rowsort
SELECT ALL cor0.col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT col1 * - col1 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - 66 + + col2 + + cor0.col0 * - col0 FROM tab1 AS cor0
----
-21
-4105
-6370
query I rowsort
SELECT DISTINCT col1 * - col2 * col0 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ( + col1 ) * ( 15 ) * - col2 AS col1 FROM tab2
----
-12555
-23010
-9690
query I rowsort
SELECT DISTINCT + cor1.col2 * - 19 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-1558
-19
-627
query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL col2 * - col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab2, tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + - col0 + col0 * 52 * col1 AS col0 FROM tab2 AS cor0
----
11277
239226
69757
query I rowsort
SELECT + cor0.col1 + 79 FROM tab2 AS cor0
----
110
138
96
query I rowsort
SELECT DISTINCT - col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT + - cor0.col2 + 68 + col0 AS col1 FROM tab1 cor0
----
17
52
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-4804
SELECT DISTINCT - cor0.col1 DIV + 96 + col0 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-4804
SELECT DISTINCT - cor0.col1 / + 96 + col0 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4805
SELECT col2 + col2 DIV col2 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-4805
SELECT col2 + col2 / col2 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT ALL col0 + col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - col1 * col0 * + 88 AS col0 FROM tab1
----
-56320
-6864
-91520
query I rowsort
SELECT 17 + col1 AS col0 FROM tab1
----
27
30
43
query I rowsort
SELECT - tab0.col1 + col2 + ( col0 ) * + col1 AS col0 FROM tab0
----
2011
3299
8090
query I rowsort
SELECT DISTINCT - col0 - - col2 AS col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT col0 - + col2 AS col0 FROM tab1
----
-16
-51
7
query I rowsort
SELECT 46 FROM tab1
----
46
46
46
query I rowsort
SELECT col0 * - col2 * 23 FROM tab1
----
-176640
-3726
-83904
onlyif mysql # use DIV operator for integer division
query I rowsort label-4814
SELECT DISTINCT - 84 * col1 DIV + ( col0 * - col1 ) FROM tab2
----
1
12
skipif mysql # not compatible
query I rowsort label-4814
SELECT DISTINCT - 84 * col1 / + ( col0 * - col1 ) FROM tab2
----
1
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 col2 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4816
SELECT + 54 DIV - col2 AS col2 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4816
SELECT + 54 / - col2 AS col2 FROM tab1
----
-1
0
0
query IIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 cor1
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b
query I rowsort
SELECT ALL col2 * 66 * ( col2 ) + + col1 FROM tab2
----
44675
48145
95321
query I rowsort
SELECT + + col0 + - col1 * ( cor0.col1 ) + + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-12769
-16291
-9436
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + cor0.col1 col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - - col0 * col1 * + col2 + col2 FROM tab0 AS cor0
----
3396
664200
68145
query I rowsort
SELECT col2 * + 6 + + cor0.col2 AS col2 FROM tab2 cor0
----
182
189
266
onlyif mysql # use DIV operator for integer division
query I rowsort label-4823
SELECT + col1 DIV 38 col0 FROM tab2 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4823
SELECT + col1 / 38 col0 FROM tab2 AS cor0
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4824
SELECT + CAST( + col1 AS SIGNED ) FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-4824
SELECT + CAST ( + col1 AS INTEGER ) FROM tab0
----
86
91
97
query I rowsort
SELECT ALL - 96 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539
query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
54 values hashing to 3352c458f45211cf9aa3236c2cd6dd38
query I rowsort
SELECT + 24 AS col1 FROM tab0
----
24
24
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2
----
17
31
59
query I rowsort
SELECT + + col2 * + col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + + col0 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4831
SELECT CAST( col2 * col0 + 87 AS SIGNED ) col0 FROM tab1
----
249
3735
7767
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4831
SELECT CAST ( col2 * col0 + 87 AS INTEGER ) col0 FROM tab1
----
249
3735
7767
query I rowsort
SELECT ( col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59
query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
54 values hashing to 2a7467bc6f55dbb61fbd4aa2bd0646a9
query I rowsort
SELECT + 68 AS col0 FROM tab1 AS cor0
----
68
68
68
query I rowsort
SELECT + + col2 + col1 + + 1 AS col0 FROM tab2 AS cor0
----
56
59
86
query I rowsort
SELECT - col2 - col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT col1 + cor0.col2 + + col0 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT - - col1 + col1 AS col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT DISTINCT tab2.col0 - col1 * col2 FROM tab2
----
-1456
-567
-830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 - col0 col0 FROM tab2 cor0
----
-159
-160
-88
query I rowsort
SELECT DISTINCT - 88 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 cor2
----
-88
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
query I rowsort
SELECT - col1 + - col0 * + ( col0 ) AS col2 FROM tab1 AS cor0
----
-35
-4106
-6413
query I rowsort
SELECT ALL - col2 - + col2 FROM tab1 cor0
----
-108
-114
-192
query I rowsort
SELECT + col2 + - col2 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 2 + cor0.col2 col2 FROM tab0 AS cor0
----
3
35
84
query I rowsort
SELECT DISTINCT + 4 * col0 FROM tab1 AS cor0
----
12
256
320
query I rowsort
SELECT DISTINCT - col1 + + col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT 8 AS col1 FROM tab0 AS cor0
----
8
8
8
query I rowsort
SELECT DISTINCT ( 59 ) + col0 FROM tab0 AS cor0
----
148
83
94
query I rowsort
SELECT ALL + - col1 + 30 FROM tab0 AS cor0
----
-56
-61
-67
query I rowsort
SELECT ALL + cor0.col1 * col1 * col2 - - col2 * col0 AS col0 FROM tab0 AS cor0
----
244860
686340
9444
query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT cor0.col0 * cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
1225
19008
649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-4855
SELECT ALL - - col1 DIV col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL - - col1 / col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT + 86 * + col1 FROM tab1 AS cor0
----
1118
2236
860
query I rowsort
SELECT ALL - + col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + + col1 * col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + 48 * - cor0.col0 FROM tab0 cor0
----
-1152
-1680
-4272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 79 col0 FROM tab0 AS cor0
----
-6794
-7189
-7663
query I rowsort
SELECT ALL - 14 FROM tab1 AS cor0
----
-14
-14
-14
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col0 col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ( cor0.col0 ) + - col2 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT ALL col2 * - col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL - col0 * ( col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + col1 col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - - col0 * col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - 73 + 45 * - col1 FROM tab0 AS cor0
----
-3943
-4168
-4438
query I rowsort
SELECT ALL - 5 FROM tab2 AS cor0
----
-5
-5
-5
query I rowsort
SELECT + - col1 - + col1 * + col0 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - + cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - 74 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130
query I rowsort
SELECT ALL - col1 * + ( + col1 ) + col2 FROM tab1
----
-43
-622
-73
query I rowsort
SELECT DISTINCT + 56 FROM tab1 AS cor0
----
56
query I rowsort
SELECT DISTINCT 97 FROM tab1 AS cor0
----
97
query I rowsort
SELECT - - 54 FROM tab0 AS cor0
----
54
54
54
query I rowsort
SELECT ALL + col0 * - col0 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT + 18 * cor0.col1 AS col1 FROM tab1 cor0
----
180
234
468
query I rowsort
SELECT DISTINCT col0 + + 74 * col0 AS col1 FROM tab1
----
225
4800
6000
query I rowsort
SELECT 94 * col0 FROM tab0
----
2256
3290
8366
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4882
SELECT CAST( NULL AS SIGNED ) * - col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4882
SELECT CAST ( NULL AS INTEGER ) * - col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 803a5565701c4ced6bba69940782c17a
query I rowsort
SELECT ALL col1 * 41 + col1 + col1 FROM tab0 cor0
----
3698
3913
4171
query I rowsort
SELECT ALL - col0 + col2 * + col2 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT DISTINCT + - col1 + + col2 * cor0.col2 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT DISTINCT - col2 * + col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT tab0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL tab1.col0 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 col2 FROM tab2
----
-16
-16
-16
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4892
SELECT - tab1.col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4892
SELECT - tab1.col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 6 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
query I rowsort
SELECT - col0 - + 23 AS col0 FROM tab0
----
-112
-47
-58
query I rowsort
SELECT + col0 * ( - col0 ) + - col2 * + 91 + col0 AS col0 FROM tab2
----
-2499
-8372
-9620
onlyif mysql # use DIV operator for integer division
query I rowsort label-4896
SELECT DISTINCT - tab1.col2 + col1 DIV + 63 - + col1 FROM tab1
----
-109
-67
-80
skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT - tab1.col2 + col1 / + 63 - + col1 FROM tab1
----
-109
-67
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4897
SELECT - col1 + - CAST( NULL AS SIGNED ) * ( - col1 ) * tab0.col1 + col2 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4897
SELECT - col1 + - CAST ( NULL AS INTEGER ) * ( - col1 ) * tab0.col1 + col2 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + 89 AS col2 FROM tab1 AS cor0
----
63
76
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 + - col0 * + col2 col2 FROM tab1
----
-108
-3591
-7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab1
----
10
13
26
query I rowsort
SELECT - col0 + 97 FROM tab0
----
62
73
8
query I rowsort
SELECT - col1 * + col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + col0 * 23 FROM tab2 AS cor0
----
161
1794
1817
query I rowsort
SELECT + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + cor0.col2 + - 30 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ed22eb52f3df52e357f360edf5fa023b
query I rowsort
SELECT DISTINCT 79 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
79
query I rowsort
SELECT DISTINCT + col2 + col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL - col1 AS col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab2, tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4911
SELECT DISTINCT + col0 * col1 DIV + cor0.col0 AS col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-4911
SELECT DISTINCT + col0 * col1 / + cor0.col0 AS col1 FROM tab0 AS cor0
----
86
91
97
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab0 cor1
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab2, tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + 64 * - col2 AS col1 FROM tab2
----
-1664
-1728
-2432
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4916
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
24
35
89
query I rowsort
SELECT tab0.col2 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT - - col0 * - col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + 91 + + 85 * - col2 * ( col2 ) AS col2 FROM tab2 AS cor0
----
-122649
-57369
-61874
query IIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab2 AS cor1
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d
query I rowsort
SELECT - ( + cor0.col2 ) FROM tab1, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT ALL - 97 AS col1 FROM tab1 AS cor0
----
-97
-97
-97
query I rowsort
SELECT ALL col0 * + cor0.col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - 88 + + 24 FROM tab0 cor0
----
-64
-64
-64
query I rowsort
SELECT ALL cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # use DIV operator for integer division
query I rowsort label-4927
SELECT DISTINCT col0 DIV col1 + col1 AS col1 FROM tab1 AS cor0
----
16
19
26
skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT col0 / col1 + col1 AS col1 FROM tab1 AS cor0
----
16
19
26
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab0 AS cor1
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8
query I rowsort
SELECT col2 + - col2 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT + 73 + col2 FROM tab1
----
127
130
169
query I rowsort
SELECT - tab2.col1 * 45 FROM tab2, tab2 AS cor0
----
9 values hashing to e4d5c63cd450f2b33efe605cd738029d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT DISTINCT col2 + col2 AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT 55 + + col2 FROM tab1 AS cor0
----
109
112
151
query I rowsort
SELECT ALL - 81 FROM tab1, tab0 cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1
query I rowsort
SELECT ALL - - col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT 62 + + col0 FROM tab2 AS cor0
----
140
141
69
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 8420206d6932c454f05a38de634b3cb5
query I rowsort
SELECT DISTINCT + col1 * col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - 61 FROM tab1 AS cor0
----
-61
query I rowsort
SELECT DISTINCT + col2 * + col1 - - col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL 91 * cor0.col1 FROM tab0 AS cor0
----
7826
8281
8827
query I rowsort
SELECT ALL col0 * - col1 + + col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL - + col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4945
SELECT - + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4945
SELECT - + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + - col2 + + col0 * col1 * - cor0.col0 FROM tab1 AS cor0
----
-288
-41017
-83296
query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL col1 + col2 * - col0 + col0 AS col0 FROM tab1 AS cor0
----
-133
-3574
-7587
query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL col0 * - 55 + - col1 AS col2 FROM tab1 AS cor0
----
-191
-3530
-4413
query I rowsort
SELECT - cor0.col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL col1 * + cor0.col2 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + col0 - col1 col1 FROM tab0 AS cor0
----
-148
-159
-93
query I rowsort
SELECT DISTINCT + + col0 + col0 AS col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT - col0 + col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - col0 + + 20 FROM tab1 AS cor0
----
-44
-60
17
query I rowsort
SELECT - - col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + col1 * - 33 - + col0 FROM tab1 AS cor0
----
-394
-509
-861
query I rowsort
SELECT ALL + tab0.col2 AS col2 FROM tab0
----
1
33
82
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab2 AS cor0
----
243 values hashing to 042fa16c43ab365359ee93c064e44127
query I rowsort
SELECT col0 + 22 FROM tab1 AS cor0
----
102
25
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4965
SELECT + - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4965
SELECT + - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + 32 col0 FROM tab0 AS cor0
----
121
56
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 * - tab0.col2 * - tab0.col2 col2 FROM tab0
----
0
0
0
query I rowsort
SELECT col0 * col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT 38 FROM tab0 cor0
----
38
38
38
query I rowsort
SELECT col2 * + col1 * + ( cor0.col2 ) - + col2 * + col1 FROM tab0 AS cor0
----
0
604422
90816
query I rowsort
SELECT col2 * - col1 * - col0 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT - + col0 * ( col1 ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL ( 46 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT + - col0 * cor0.col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL col2 * - col2 * 66 + col0 FROM tab0
----
-31
-443695
-71850
onlyif mysql # use DIV operator for integer division
query I rowsort label-4976
SELECT col0 + - cor0.col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4976
SELECT col0 + - cor0.col0 / - col1 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + col2 * - 91 FROM tab0 AS cor0
----
-3003
-7462
-91
query I rowsort
SELECT ALL col0 + - col0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + cor0.col2 FROM tab2, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL - col2 AS col0 FROM tab1
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT DISTINCT - 61 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-58
19
3
query I rowsort
SELECT - 9 AS col2 FROM tab1 AS cor0
----
-9
-9
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4984
SELECT DISTINCT col0 DIV - ( + col0 ) FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT col0 / - ( + col0 ) FROM tab0 AS cor0
----
-1
query I rowsort
SELECT cor0.col1 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT 33 AS col2 FROM tab1 AS cor0
----
33
33
33
query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - + 0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 35 + cor0.col1 FROM tab1 AS cor0
----
45
48
61
query I rowsort
SELECT + 43 + + col0 + col1 * - 31 AS col0 FROM tab1 AS cor0
----
-203
-280
-760
query I rowsort
SELECT - + col0 * - col2 + 32 AS col1 FROM tab2 AS cor0
----
2060
221
3034
query I rowsort
SELECT + col0 * + cor0.col0 + col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT + col2 * col1 + - col0 FROM tab0 cor0
----
2814
62
7373
query I rowsort
SELECT - - col1 * cor0.col2 + ( 73 * col2 ) FROM tab2 AS cor0
----
2808
3420
3432
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab2
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( col1 ) + col2 col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT + cor0.col2 * 38 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e68b737d711572ddf765db7fc596ee1e
query I rowsort
SELECT - col0 * col0 + - col0 AS col0 FROM tab2 AS cor0
----
-56
-6162
-6320
query I rowsort
SELECT DISTINCT tab0.col0 FROM tab0, tab2, tab2 cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5000
SELECT 73 DIV tab2.col0 FROM tab2
----
0
0
10
skipif mysql # not compatible
query I rowsort label-5000
SELECT 73 / tab2.col0 FROM tab2
----
0
0
10
query I rowsort
SELECT - ( 36 ) * - col0 FROM tab0
----
1260
3204
864
query I rowsort
SELECT DISTINCT 14 + 16 FROM tab1
----
30
query I rowsort
SELECT col0 * - col0 * col2 FROM tab1 AS cor0
----
-233472
-486
-614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 * - col2 col1 FROM tab0 AS cor0
----
-2937
-7298
-89
query I rowsort
SELECT - 80 * 67 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to be3ed8f67bcdf05a3430c7197bde4cf0
query I rowsort
SELECT col1 + + col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT - col0 + col2 FROM tab2
----
-41
-52
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5008
SELECT - tab0.col0 / + col0 + + CAST( NULL AS SIGNED ) * col0 + - col1 * col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5008
SELECT - tab0.col0 / + col0 + + CAST ( NULL AS INTEGER ) * col0 + - col1 * col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - 50 * + col2 - + col0 AS col1 FROM tab0 AS cor0
----
-1674
-4189
-85
query I rowsort
SELECT ALL + col0 + col0 FROM tab1 AS cor0
----
128
160
6
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab2 cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0
query I rowsort
SELECT ALL col0 + col1 * 53 AS col1 FROM tab2 AS cor0
----
1650
3205
980
query I rowsort
SELECT + 96 AS col1 FROM tab1 AS cor0
----
96
96
96
query I rowsort
SELECT DISTINCT + col0 - cor0.col0 FROM tab1 AS cor0
----
0
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 591a9a93560839231c038a1e10bd240a
query I rowsort
SELECT ALL col0 - - col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL 48 FROM tab2
----
48
48
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-5018
SELECT ALL col0 DIV - col1 + 63 AS col0 FROM tab1 AS cor0
----
57
57
63
skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL col0 / - col1 + 63 AS col0 FROM tab1 AS cor0
----
57
57
63
query I rowsort
SELECT DISTINCT col2 * - 80 AS col1 FROM tab1 AS cor0
----
-4320
-4560
-7680
query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5021
SELECT ALL - + col0 * cor0.col2 + + col2 DIV col0 AS col0 FROM tab2 cor0
----
-186
-2028
-3002
skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL - + col0 * cor0.col2 + + col2 / col0 AS col0 FROM tab2 cor0
----
-186
-2028
-3002
query I rowsort
SELECT col0 * + cor0.col1 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - col1 * 66 * - ( + col0 ) - + cor0.col1 FROM tab2 AS cor0
----
14291
303673
88621
query I rowsort
SELECT ALL - col1 * col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - + col0 + + 67 * - 73 AS col1 FROM tab1 AS cor0
----
-4894
-4955
-4971
query I rowsort
SELECT - col2 + ( col2 * - cor0.col1 + + ( 47 ) ) AS col2 FROM tab2 AS cor0
----
-1513
-637
-817
query I rowsort
SELECT col2 * ( + col0 ) - cor0.col1 FROM tab2 AS cor0
----
158
1969
2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-5028
SELECT col2 DIV col1 + col2 - + 51 * col0 AS col0 FROM tab1
----
-3202
-3977
-97
skipif mysql # not compatible
query I rowsort label-5028
SELECT col2 / col1 + col2 - + 51 * col0 AS col0 FROM tab1
----
-3202
-3977
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - tab2.col1 col2 FROM tab2
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5030
SELECT + col1 * - col1 DIV ( + col1 ) FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-5030
SELECT + col1 * - col1 / ( + col1 ) FROM tab1
----
-10
-13
-26
query I rowsort
SELECT 67 + - col0 FROM tab0
----
-22
32
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-5032
SELECT DISTINCT tab0.col2 - - tab0.col0 DIV col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-5032
SELECT DISTINCT tab0.col2 - - tab0.col0 / col1 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT col1 - col0 AS col2 FROM tab2
----
-19
-62
24
query I rowsort
SELECT ALL - cor0.col2 * - ( + 62 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 0e17897f1fc9f2832721077754b3bbd6
query I rowsort
SELECT DISTINCT 10 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
10
query I rowsort
SELECT ALL 1 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
query I rowsort
SELECT 77 - - col0 FROM tab1
----
141
157
80
query I rowsort
SELECT DISTINCT + tab2.col2 * - col2 * + 99 - + 17 AS col2 FROM tab2
----
-142973
-66941
-72188
query I rowsort
SELECT - col0 * - tab1.col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + col0 * + 89 + col1 FROM tab0 AS cor0
----
2222
3212
8012
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5042
SELECT - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5042
SELECT - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + - 62 + col2 * + col2 FROM tab2 AS cor0
----
1382
614
667
query I rowsort
SELECT - + col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT 8 * + 19 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 565904e33266d77f7dacf61b699cde5a
onlyif mysql # use DIV operator for integer division
query I rowsort label-5047
SELECT DISTINCT col1 DIV tab1.col1 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT col1 / tab1.col1 FROM tab1
----
1
query I rowsort
SELECT ALL + 67 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT ( - tab2.col1 ) AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT DISTINCT 33 FROM tab0, tab1, tab1 AS cor0, tab2
----
33
query I rowsort
SELECT DISTINCT col0 * 63 FROM tab0
----
1512
2205
5607
query I rowsort
SELECT + 62 AS col0 FROM tab0
----
62
62
62
query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2
----
26
27
38
query I rowsort
SELECT 79 AS col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
query I rowsort
SELECT ALL 62 FROM tab1, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5056
SELECT 95 DIV col0 - col0 * - col1 * - 59 AS col0 FROM tab0
----
-121773
-200303
-477840
skipif mysql # not compatible
query I rowsort label-5056
SELECT 95 / col0 - col0 * - col1 * - 59 AS col0 FROM tab0
----
-121773
-200303
-477840
query IIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to 6193516da5556fc054f35e0d2f4e5372
skipif mysql # not compatible
query I rowsort
SELECT CAST ( cor0.col0 AS REAL ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + 59 * + col2 * col2 FROM tab2 AS cor0
----
39884
43011
85196
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab1, tab1 AS cor1
----
972 values hashing to 635619591835474e6aa6acdff4ab166c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5062
SELECT - + CAST( NULL AS DECIMAL ) * + ( + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5062
SELECT - + CAST ( NULL AS REAL ) * + ( + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * + col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + - col2 * - cor0.col0 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5065
SELECT - tab2.col1 + col1 DIV col1 FROM tab2
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-5065
SELECT - tab2.col1 + col1 / col1 FROM tab2
----
-16
-30
-58
query IIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab1 AS cor1
----
243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-5067
SELECT DISTINCT - col0 DIV tab1.col2 FROM tab1
----
-1
0
skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT - col0 / tab1.col2 FROM tab1
----
-1
0
query I rowsort
SELECT ALL + 87 * - tab1.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2dcb718bc4e1d331fbfee33db8143eea
query I rowsort
SELECT + - col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0
----
24
35
89
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7
query I rowsort
SELECT + tab2.col0 AS col1 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL col2 * - cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT cor0.col2 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT tab2.col1 * - col0 * 1 + - col0 FROM tab2
----
-1422
-224
-4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 + col0 col2 FROM tab0 AS cor0
----
178
48
70
query IIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab1 cor1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242
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-5080
SELECT DISTINCT - - 16 DIV 51 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT - - 16 / 51 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + + col2 * - 46 + + col2 * - cor0.col0 + ( col2 ) * + col0 * col1 FROM tab0 AS cor0
----
3314
653048
65802
query I rowsort
SELECT col1 + + col1 AS col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT - + 54 AS col2 FROM tab0 cor0
----
-54
-54
-54
query I rowsort
SELECT ALL - ( + col1 ) + col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * 74 * + col0 - 87 col0 FROM tab0 AS cor0
----
42537
586067
90563
query I rowsort
SELECT + cor0.col0 * + ( + col0 ) AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL 76 AS col0 FROM tab2 AS cor0
----
76
76
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-5088
SELECT - + 32 DIV 62 + + col0 * 5 * col0 + col1 FROM tab0 AS cor0
----
2966
39696
6222
skipif mysql # not compatible
query I rowsort label-5088
SELECT - + 32 / 62 + + col0 * 5 * col0 + col1 FROM tab0 AS cor0
----
2966
39696
6222
query I rowsort
SELECT DISTINCT + 42 * - 58 FROM tab1 AS cor0
----
-2436
query I rowsort
SELECT DISTINCT + 70 FROM tab2 cor0
----
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-5091
SELECT col2 DIV + col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5091
SELECT col2 / + col0 FROM tab0
----
0
0
1
query I rowsort
SELECT ALL + - 23 + - col0 AS col1 FROM tab0 AS cor0
----
-112
-47
-58
query I rowsort
SELECT + 3 + + 88 AS col2 FROM tab1 AS cor0
----
91
91
91
query I rowsort
SELECT ALL - - ( - col2 ) * col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + + col2 * - ( + cor0.col0 * - col2 ) + + col2 AS col2 FROM tab1 AS cor0
----
207993
737376
8802
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - - ( - col2 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - cor0.col1 + + cor0.col2 * + col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT DISTINCT ( 97 ) + col2 * + col0 FROM tab2 cor0
----
2125
286
3099
query I rowsort
SELECT ALL col0 - col1 * + col2 AS col0 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT - 45 * + 69 AS col2 FROM tab0 AS cor0
----
-3105
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 * ( + col0 ) col2 FROM tab0 AS cor0
----
-1104
-1610
-4094
query I rowsort
SELECT ALL col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT 98 + + 79 + - cor0.col2 FROM tab0 AS cor0
----
144
176
95
query I rowsort
SELECT DISTINCT + ( - 33 ) AS col0 FROM tab1 AS cor0
----
-33
query I rowsort
SELECT ALL - col1 * - col1 * col1 AS col2 FROM tab2 AS cor0
----
205379
29791
4913
query I rowsort
SELECT 8 * - col0 FROM tab2 AS cor0
----
-56
-624
-632
query I rowsort
SELECT ( col2 ) + - col1 + col1 * col0 FROM tab2 AS cor0
----
1364
213
4569
query I rowsort
SELECT ALL - - col2 * + col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - + 18 * col1 AS col1 FROM tab0 AS cor0
----
-1548
-1638
-1746
query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 * col1 * col0 col2 FROM tab1 AS cor0
----
1092
14560
8960
query I rowsort
SELECT + 21 AS col1 FROM tab2 cor0
----
21
21
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5114
SELECT ALL + ( - col0 ) * - CAST( NULL AS DECIMAL ) / 81 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL + ( - col0 ) * - CAST ( NULL AS REAL ) / 81 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 45 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba
query I rowsort
SELECT - col0 + col0 * col1 * tab2.col1 AS col2 FROM tab2
----
22752
271440
6720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5117
SELECT - 38 * col0 * CAST( - col2 * + col1 AS SIGNED ) FROM tab2 AS cor0
----
1939292
222642
4546776
skipif mysql # not compatible
query I rowsort label-5117
SELECT - 38 * col0 * CAST ( - col2 * + col1 AS INTEGER ) FROM tab2 AS cor0
----
1939292
222642
4546776
query I rowsort
SELECT ALL - col0 + - col0 * col2 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT + + col0 + - col1 AS col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT col2 * - col1 + + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT - col0 * col1 - + 20 FROM tab2 cor0
----
-1363
-237
-4622
query I rowsort
SELECT - cor0.col2 + + col2 * cor0.col0 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT ALL - col1 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT - col0 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + 1 * col0 AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT 88 + col0 AS col2 FROM tab1 AS cor0
----
152
168
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-5127
SELECT ALL - + cor0.col2 + cor0.col0 DIV 46 AS col1 FROM tab1 AS cor0
----
-54
-56
-95
skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL - + cor0.col2 + cor0.col0 / 46 AS col1 FROM tab1 AS cor0
----
-54
-56
-95
query I rowsort
SELECT DISTINCT + col0 - - col2 FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 col1 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5130
SELECT ALL + col1 DIV cor0.col0 + col1 FROM tab2 AS cor0
----
17
35
59
skipif mysql # not compatible
query I rowsort label-5130
SELECT ALL + col1 / cor0.col0 + col1 FROM tab2 AS cor0
----
17
35
59
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 17ceecc141378b185d60a17e53464c26
query I rowsort
SELECT DISTINCT + col2 - + col1 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5133
SELECT ALL cor0.col0 DIV cor0.col1 - - 81 * + col0 FROM tab2 cor0
----
567
6319
6403
skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL cor0.col0 / cor0.col1 - - 81 * + col0 FROM tab2 cor0
----
567
6319
6403
onlyif mysql # use DIV operator for integer division
query I rowsort label-5134
SELECT ALL + col0 DIV - cor0.col0 + + col1 * col2 FROM tab1 AS cor0
----
1247
1403
569
skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL + col0 / - cor0.col0 + + col1 * col2 FROM tab1 AS cor0
----
1247
1403
569
query I rowsort
SELECT DISTINCT col1 * + col2 + + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL + col2 * cor0.col0 - ( - col2 ) AS col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT + 13 + - col0 FROM tab1
----
-51
-67
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-5138
SELECT cor0.col2 * col2 DIV - cor0.col0 FROM tab0 AS cor0
----
-45
-75
0
skipif mysql # not compatible
query I rowsort label-5138
SELECT cor0.col2 * col2 / - cor0.col0 FROM tab0 AS cor0
----
-45
-75
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5139
SELECT - col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5139
SELECT - col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col2 + + col1 * ( col1 ) AS col1 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT ALL - - col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - - col1 AS col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT + - col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - col2 + 55 AS col2 FROM tab0 AS cor0
----
-27
22
54
query I rowsort
SELECT ALL + col2 * col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT col2 * 56 FROM tab1 AS cor0
----
3024
3192
5376
query I rowsort
SELECT ALL + + col0 AS col1 FROM tab0 cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort
SELECT + + col1 * CAST ( - col0 AS REAL ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - cor0.col1 * col0 + + 70 FROM tab2 AS cor0
----
-1273
-147
-4532
query I rowsort
SELECT col2 + - col0 AS col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT + col0 * 28 FROM tab2 AS cor0
----
196
2184
2212
query I rowsort
SELECT - col2 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ALL ( + col1 ) FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT + 48 * - 74 AS col0 FROM tab1 AS cor0
----
-3552
-3552
-3552
query I rowsort
SELECT col2 + + tab2.col1 FROM tab2
----
55
58
85
query I rowsort
SELECT + cor0.col0 + col0 AS col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL + cor0.col1 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT 59 + 60 FROM tab2, tab0 AS cor0
----
119
query I rowsort
SELECT DISTINCT cor1.col0 - + cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
0
query I rowsort
SELECT + col0 * col0 FROM tab1 AS cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + col1 col0 FROM tab0 cor0
----
119
173
98
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859
query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
54 values hashing to b010e320d66ab5b2711fc14e8fb58b01
query I rowsort
SELECT ALL + 14 * - 11 + + col1 * + 66 FROM tab1
----
1562
506
704
query I rowsort
SELECT + tab1.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL + col0 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL - tab0.col1 * col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + 2 * + tab1.col0 FROM tab1
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5172
SELECT ALL 15 DIV + col0 AS col2 FROM tab1
----
0
0
5
skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL 15 / + col0 AS col2 FROM tab1
----
0
0
5
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab1 cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998
onlyif mysql # use DIV operator for integer division
query I rowsort label-5174
SELECT DISTINCT 30 + col1 DIV - col2 AS col2 FROM tab0 cor0
----
-67
28
29
skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT 30 + col1 / - col2 AS col2 FROM tab0 cor0
----
-67
28
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5178
SELECT ALL col2 DIV col0 AS col2 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL col2 / col0 AS col2 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT ALL ( - col1 ) + + 2 FROM tab2 AS cor0
----
-15
-29
-57
query I rowsort
SELECT DISTINCT + 62 FROM tab0 cor0
----
62
query I rowsort
SELECT col2 + + col0 + + col0 * col0 * - col2 AS col0 FROM tab0 AS cor0
----
-1189
-18951
-649351
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - 38 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT - col2 + + col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + 63 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5188
SELECT ALL CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL CAST ( NULL AS REAL ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + 83 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
query I rowsort
SELECT DISTINCT - ( tab2.col2 ) FROM tab2
----
-26
-27
-38
query I rowsort
SELECT tab2.col2 FROM tab2
----
26
27
38
query I rowsort
SELECT 22 * col1 AS col0 FROM tab0
----
1892
2002
2134
query I rowsort
SELECT ALL ( - 59 ) AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f
query I rowsort
SELECT + 33 * col0 AS col1 FROM tab0 AS cor0
----
1155
2937
792
query I rowsort
SELECT - + 46 - - cor0.col2 AS col1 FROM tab1 AS cor0
----
11
50
8
query I rowsort
SELECT + 34 * + col1 - + col1 * - ( col1 ) * col2 FROM tab1 AS cor0
----
16666
37388
6040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 AS col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT - tab1.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT ALL - ( + col1 ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + 27 FROM tab1 AS cor0
----
27
27
27
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab2 AS cor0, tab1 AS cor1
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col2 col0 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT + cor0.col2 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 40 ) col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
query I rowsort
SELECT cor1.col1 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
query I rowsort
SELECT ALL + + 50 + + col0 AS col2 FROM tab1 AS cor0
----
114
130
53
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab
query I rowsort
SELECT col1 FROM tab2 cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-5210
SELECT + col2 DIV - 11 FROM tab0 AS cor0
----
-3
-7
0
skipif mysql # not compatible
query I rowsort label-5210
SELECT + col2 / - 11 FROM tab0 AS cor0
----
-3
-7
0
query I rowsort
SELECT + + col2 * + 21 FROM tab2 cor0
----
546
567
798
query I rowsort
SELECT DISTINCT tab0.col1 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL cor0.col0 + col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL + + col1 + + 84 * 50 FROM tab0 AS cor0
----
4286
4291
4297
query I rowsort
SELECT DISTINCT - col1 * + 81 AS col2 FROM tab1 AS cor0
----
-1053
-2106
-810
query I rowsort
SELECT DISTINCT - col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT - + col1 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab1 AS cor0
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998
query I rowsort
SELECT + tab1.col1 + - col0 FROM tab1
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-5221
SELECT + + col2 DIV 52 AS col1 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5221
SELECT + + col2 / 52 AS col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT col0 * + 57 AS col0 FROM tab0 AS cor0
----
1368
1995
5073
onlyif mysql # use DIV operator for integer division
query I rowsort label-5223
SELECT + tab1.col2 + 15 DIV + col1 AS col0 FROM tab1
----
54
58
97
skipif mysql # not compatible
query I rowsort label-5223
SELECT + tab1.col2 + 15 / + col1 AS col0 FROM tab1
----
54
58
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da
query I rowsort
SELECT - col0 * col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - 19 FROM tab1, tab1 AS cor0
----
-19
query I rowsort
SELECT DISTINCT - cor0.col2 * - col1 * ( col1 ) + - 68 AS col0 FROM tab0 cor0
----
244000
678974
9341
query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort
SELECT + - cor0.col0 + CAST ( col2 AS REAL ) AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT 29 + - col1 FROM tab2 AS cor0
----
-2
-30
12
query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) - col1 AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL + + 52 FROM tab0 AS cor0
----
52
52
52
query I rowsort
SELECT DISTINCT + 85 * - col0 FROM tab1 AS cor0
----
-255
-5440
-6800
query I rowsort
SELECT + - ( - col1 ) AS col2 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - 37 * + ( cor0.col2 ) FROM tab1 cor0
----
-1998
-2109
-3552
onlyif mysql # use DIV operator for integer division
query I rowsort label-5236
SELECT DISTINCT col0 + + 20 DIV col1 FROM tab1 AS cor0
----
3
66
81
skipif mysql # not compatible
query I rowsort label-5236
SELECT DISTINCT col0 + + 20 / col1 FROM tab1 AS cor0
----
3
66
81
query I rowsort
SELECT DISTINCT + 40 * col1 FROM tab2 AS cor0
----
1240
2360
680
query I rowsort
SELECT - 0 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + cor0.col0 + col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL - + cor0.col1 * + col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT 49 * col1 AS col1 FROM tab1 AS cor0
----
1274
490
637
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5242
SELECT - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5242
SELECT - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( + col1 ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - + col2 * cor0.col1 + + col1 * + col0 FROM tab2 AS cor0
----
-620
3068
697
query I rowsort
SELECT + + ( - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5246
SELECT ALL + ( cor0.col1 ) * + col0 - + col0 DIV + col0 AS col2 FROM tab2 cor0
----
1342
216
4601
skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL + ( cor0.col1 ) * + col0 - + col0 / + col0 AS col2 FROM tab2 cor0
----
1342
216
4601
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 12 col0 FROM tab1 AS cor0
----
36
768
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-5248
SELECT ALL 63 DIV 98 + - col0 * cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
skipif mysql # not compatible
query I rowsort label-5248
SELECT ALL 63 / 98 + - col0 * cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT + col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL - - cor0.col1 + + col2 * col0 * cor0.col0 FROM tab1 AS cor0
----
233482
512
614413
query I rowsort
SELECT + 7 + col1 AS col1 FROM tab0 AS cor0
----
104
93
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1
----
3
64
80
query I rowsort
SELECT - + col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - 45 + + cor0.col1 * col0 FROM tab1 AS cor0
----
33
595
995
query I rowsort
SELECT - + 26 FROM tab1 AS cor0
----
-26
-26
-26
query I rowsort
SELECT - + 47 * col2 AS col0 FROM tab0 AS cor0
----
-1551
-3854
-47
query I rowsort
SELECT - 69 * col0 + ( 24 + col0 ) FROM tab0 AS cor0
----
-1608
-2356
-6028
query I rowsort
SELECT 12 * + col2 FROM tab1 cor0
----
1152
648
684
query I rowsort
SELECT ALL + ( col2 * col2 ) FROM tab2
----
1444
676
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5260
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 4 * + col1 AS col1 FROM tab0
----
344
364
388
query I rowsort
SELECT - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - - 6 FROM tab0 AS cor0
----
6
6
6
query I rowsort
SELECT ALL 15 FROM tab1 AS cor0
----
15
15
15
query I rowsort
SELECT DISTINCT + - col1 + col0 AS col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - col1 * col0 + col2 AS col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT + - 14 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
query I rowsort
SELECT - col0 AS col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1 AS cor0
----
-3
-64
-80
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 199388980dc5177ebebcfdbc0408ba02
query I rowsort
SELECT DISTINCT - col1 + ( col1 ) FROM tab0 cor0
----
0
query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
54 values hashing to 3352c458f45211cf9aa3236c2cd6dd38
query I rowsort
SELECT DISTINCT col0 + + tab2.col0 AS col0 FROM tab2
----
14
156
158
query I rowsort
SELECT - 9 + col0 AS col2 FROM tab1
----
-6
55
71
query IIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab2 cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7
query I rowsort
SELECT + 36 + - col0 FROM tab2 AS cor0
----
-42
-43
29
query I rowsort
SELECT ( + 30 ) FROM tab1
----
30
30
30
query I rowsort
SELECT DISTINCT + 91 + col0 FROM tab1 AS cor0
----
155
171
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 52 * + col0 + - col0 * cor0.col1 * - cor0.col2 + + col2 * + col2 col2 FROM tab2 AS cor0
----
124384
56586
6952
query I rowsort
SELECT ALL + col2 AS col2 FROM tab2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-5281
SELECT col0 + + col1 * tab1.col0 DIV col0 AS col0 FROM tab1
----
29
74
93
skipif mysql # not compatible
query I rowsort label-5281
SELECT col0 + + col1 * tab1.col0 / col0 AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT 5 * + tab0.col0 FROM tab0
----
120
175
445
query I rowsort
SELECT cor0.col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + ( col2 ) * tab2.col1 * col2 AS col0 FROM tab2
----
22599
24548
39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-5285
SELECT ALL + 66 DIV 81 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL + 66 / 81 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - 43 FROM tab0
----
-43
-43
-43
query I rowsort
SELECT ALL + col2 * cor0.col1 + - col2 AS col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 * - col2 col2 FROM tab2 AS cor0
----
-1742
-1809
-2546
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5291
SELECT - col0 + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5291
SELECT - col0 + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 69 + col1 FROM tab0 AS cor0
----
17
22
28
query I rowsort
SELECT + 74 AS col2 FROM tab2 AS cor0
----
74
74
74
query I rowsort
SELECT DISTINCT - col1 * col0 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT 36 * col2 FROM tab2
----
1368
936
972
query I rowsort
SELECT + 82 * col0 AS col0 FROM tab1 AS cor0
----
246
5248
6560
query I rowsort
SELECT DISTINCT - ( col1 ) FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + 81 * col1 * col0 FROM tab0 AS cor0
----
167184
274995
656019
query I rowsort
SELECT + col2 * cor0.col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - col0 + + col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL + cor0.col1 + - col2 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT DISTINCT - 69 AS col0 FROM tab0 cor0
----
-69
query I rowsort
SELECT DISTINCT 5 * - col2 * col2 FROM tab1 AS cor0
----
-14580
-16245
-46080
query I rowsort
SELECT ALL + col1 * cor0.col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - + 71 + col2 FROM tab0 AS cor0
----
-38
-70
11
query I rowsort
SELECT ALL + col0 + + cor0.col0 * + col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT + ( + cor0.col0 ) * + 33 FROM tab0 AS cor0
----
1155
2937
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-5309
SELECT col0 DIV col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-5309
SELECT col0 / col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT - + 97 AS col0 FROM tab1 AS cor0
----
-97
query IIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127
query I rowsort
SELECT - col1 AS col2 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT + 42 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
query I rowsort
SELECT ALL tab2.col1 + col2 * 82 FROM tab2
----
2191
2245
3133
query I rowsort
SELECT ALL - + col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-5316
SELECT ALL - col0 DIV + col0 + col1 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL - col0 / + col0 + col1 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + col2 + + ( - col2 ) * col2 AS col1 FROM tab0 cor0
----
-1056
-6642
0
query I rowsort
SELECT + col1 * col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - col2 * + ( col1 * col2 ) + col1 AS col0 FROM tab1 AS cor0
----
-119795
-32480
-75790
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * col2 + 57 col1 FROM tab2 AS cor0
----
2085
246
3059
query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL + col0 + + col1 AS col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT col2 + 60 AS col0 FROM tab1 AS cor0
----
114
117
156
query I rowsort
SELECT DISTINCT + - col2 + 65 - 18 FROM tab2 AS cor0
----
20
21
9
query I rowsort
SELECT + col0 * col0 + 55 * col2 FROM tab2 cor0
----
1534
7514
8331
query I rowsort
SELECT col2 + 7 AS col2 FROM tab1 AS cor0
----
103
61
64
query I rowsort
SELECT col2 + ( - col1 + - col2 ) FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + + col2 + - 52 AS col0 FROM tab2 cor0
----
-14
-25
-26
query I rowsort
SELECT ALL - ( - 17 ) * cor0.col1 FROM tab0 AS cor0
----
1462
1547
1649
query I rowsort
SELECT ALL + ( + col2 ) FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col2 col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL col2 * + col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5334
SELECT DISTINCT - CAST( col1 AS SIGNED ) + + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL ( - col2 ) * - cor0.col1 * col1 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT + col2 * + col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + ( cor0.col1 ) FROM tab2, tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - - 64 FROM tab2 AS cor0
----
64
64
64
query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL col1 + 9 AS col0 FROM tab0
----
100
106
95
query I rowsort
SELECT - - 35 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5342
SELECT DISTINCT CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL col0 * col2 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5344
SELECT col2 DIV + col1 + col2 AS col1 FROM tab2 AS cor0
----
26
27
40
skipif mysql # not compatible
query I rowsort label-5344
SELECT col2 / + col1 + col2 AS col1 FROM tab2 AS cor0
----
26
27
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5345
SELECT CAST( + col2 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-5345
SELECT CAST ( + col2 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL col0 * - cor0.col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + col1 + col2 + col1 FROM tab1 AS cor0
----
106
122
77
query I rowsort
SELECT ALL + cor0.col2 + cor0.col1 * + col1 * + col2 FROM tab0 AS cor0
----
244101
679124
9410
query I rowsort
SELECT DISTINCT col1 + 66 FROM tab2 AS cor0
----
125
83
97
query I rowsort
SELECT DISTINCT + 10 * col0 AS col2 FROM tab2 AS cor0
----
70
780
790
query I rowsort
SELECT col1 + col0 AS col0 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - ( col2 ) AS col0 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT 65 FROM tab2, tab0 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT DISTINCT 43 FROM tab0
----
43
query I rowsort
SELECT + col0 * ( col1 ) * col0 + + col1 * col2 AS col1 FROM tab0 AS cor0
----
118922
52374
728273
query I rowsort
SELECT + + cor0.col0 + 35 AS col0 FROM tab2 AS cor0
----
113
114
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 78 * - col2 col1 FROM tab1 AS cor0
----
-4212
-4446
-7488
query I rowsort
SELECT 81 + col2 * col0 + col0 FROM tab2 AS cor0
----
2187
277
3162
query I rowsort
SELECT - 16 * col0 + col0 FROM tab1 AS cor0
----
-1200
-45
-960
query I rowsort
SELECT ALL - col0 * + col1 + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT 30 FROM tab1 cor0
----
30
query I rowsort
SELECT + - col2 * + 97 + col2 * + col2 * col2 AS col2 FROM tab2 AS cor0
----
15054
17064
51186
query I rowsort
SELECT - 56 + - 83 FROM tab1 AS cor0
----
-139
-139
-139
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab1 cor1
----
972 values hashing to f8fe28681e8720551e1ec173631fc529
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab0 AS cor1
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab1, tab2 AS cor1
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0
query I rowsort
SELECT ALL + cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT DISTINCT - 6 AS col1 FROM tab0
----
-6
query I rowsort
SELECT ALL cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT - col0 + + col0 - + col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5375
SELECT - + col2 * - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-5375
SELECT - + col2 * - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT col1 * 22 FROM tab1 cor0
----
220
286
572
query I rowsort
SELECT + cor0.col0 * + col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL + col2 + col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT col2 * ( col0 ) AS col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-5380
SELECT - - col0 DIV ( 88 ) + + col1 - + 7 FROM tab1 AS cor0
----
19
3
6
skipif mysql # not compatible
query I rowsort label-5380
SELECT - - col0 / ( 88 ) + + col1 - + 7 FROM tab1 AS cor0
----
19
3
6
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - col1 * CAST ( + col0 AS REAL ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT col2 - tab0.col2 * ( + 71 ) FROM tab0
----
-2310
-5740
-70
query I rowsort
SELECT DISTINCT - col2 * + col2 * col0 + col1 * - col2 AS col0 FROM tab2
----
-114722
-54262
-5940
query I rowsort
SELECT ALL + col2 + col1 AS col2 FROM tab1
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5385
SELECT DISTINCT col1 * + 89 * tab0.col1 + col2 DIV col1 AS col2 FROM tab0
----
658244
737009
837401
skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT col1 * + 89 * tab0.col1 + col2 / col1 AS col2 FROM tab0
----
658244
737009
837401
query I rowsort
SELECT + col2 + - 62 * 3 AS col1 FROM tab1
----
-129
-132
-90
query I rowsort
SELECT col1 + col1 AS col2 FROM tab0
----
172
182
194
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5388
SELECT col1 * CAST( - 99 AS SIGNED ) + col0 * tab1.col1 + col0 FROM tab1
----
-167
-2493
-286
skipif mysql # not compatible
query I rowsort label-5388
SELECT col1 * CAST ( - 99 AS INTEGER ) + col0 * tab1.col1 + col0 FROM tab1
----
-167
-2493
-286
onlyif mysql # use DIV operator for integer division
query I rowsort label-5389
SELECT col2 DIV - col1 AS col1 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-5389
SELECT col2 / - col1 AS col1 FROM tab2
----
-2
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5390
SELECT col0 * CAST( col0 AS SIGNED ) AS col0 FROM tab1
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-5390
SELECT col0 * CAST ( col0 AS INTEGER ) AS col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT + col0 * - col0 + - col2 * + col0 + col0 FROM tab1
----
-14000
-168
-7680
query I rowsort
SELECT DISTINCT col1 + + 17 + col2 AS col0 FROM tab2
----
102
72
75
query I rowsort
SELECT DISTINCT + tab0.col1 + + col1 + ( - col1 ) * - col0 AS col0 FROM tab0
----
2236
3589
8281
query I rowsort
SELECT DISTINCT + col1 + - ( - col2 ) FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL col0 * ( + 32 ) FROM tab1 AS cor0
----
2048
2560
96
query I rowsort
SELECT ALL - col0 * col2 * 26 AS col2 FROM tab1 AS cor0
----
-199680
-4212
-94848
query I rowsort
SELECT + - col1 + - col1 * - col1 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT ALL + col1 + col1 FROM tab0
----
172
182
194
query I rowsort
SELECT ALL col2 + 54 FROM tab0
----
136
55
87
query I rowsort
SELECT - cor0.col1 * - col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + - col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + + cor0.col0 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort
SELECT col2 * - col2 * CAST ( col1 + + col1 AS REAL ) FROM tab0 AS cor0
----
-1223768
-187308
-194
query I rowsort
SELECT - - col0 + col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT 22 AS col1 FROM tab2
----
22
22
22
query I rowsort
SELECT DISTINCT + col2 * col2 - + 79 FROM tab0 AS cor0
----
-78
1010
6645
query I rowsort
SELECT ALL ( col1 ) AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT + - col1 * + col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + 16 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1312
16
528
query I rowsort
SELECT col1 + - col2 FROM tab2 AS cor0
----
-21
33
4
query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
54 values hashing to 3352c458f45211cf9aa3236c2cd6dd38
query I rowsort
SELECT ALL - - col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT - + cor0.col2 - 75 FROM tab0 AS cor0
----
-108
-157
-76
query I rowsort
SELECT DISTINCT + + col1 + - col0 * - col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT - 50 AS col2 FROM tab0
----
-50
query I rowsort
SELECT col1 * 36 AS col1 FROM tab1
----
360
468
936
query I rowsort
SELECT - 51 FROM tab2 AS cor0
----
-51
-51
-51
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab2 cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b
query I rowsort
SELECT - col0 * ( - col2 ) FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col2 * col1 AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT - col1 * - col1 * - col0 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT tab1.col2 * + 90 AS col1 FROM tab1
----
4860
5130
8640
query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
54 values hashing to b010e320d66ab5b2711fc14e8fb58b01
query I rowsort
SELECT col2 * 72 AS col2 FROM tab2
----
1872
1944
2736
onlyif mysql # use DIV operator for integer division
query I rowsort label-5425
SELECT DISTINCT - tab1.col0 DIV - col1 FROM tab1
----
0
6
skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT - tab1.col0 / - col1 FROM tab1
----
0
6
query I rowsort
SELECT - 66 AS col1 FROM tab2
----
-66
-66
-66
query I rowsort
SELECT - 54 AS col1 FROM tab1
----
-54
-54
-54
query I rowsort
SELECT ALL 94 FROM tab2, tab0 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT DISTINCT - col1 * col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT col1 * - 83 FROM tab1
----
-1079
-2158
-830
query I rowsort
SELECT + col1 + col2 * + cor0.col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT + col1 * - col1 AS col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT ( col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - cor0.col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT - + col0 * col2 + 94 * - ( cor0.col2 ) * col1 FROM tab2 cor0
----
-146224
-63726
-78867
onlyif mysql # use DIV operator for integer division
query I rowsort label-5437
SELECT DISTINCT 93 DIV 12 col1 FROM tab0
----
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5437
SELECT DISTINCT 93 / 12 col1 FROM tab0
----
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5438
SELECT ALL tab1.col2 + 32 DIV - col0 + - 78 * + tab1.col2 FROM tab1
----
-4168
-4389
-7392
skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL tab1.col2 + 32 / - col0 + - 78 * + tab1.col2 FROM tab1
----
-4168
-4389
-7392
query I rowsort
SELECT col1 + 17 AS col0 FROM tab2
----
34
48
76
query I rowsort
SELECT - 39 AS col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93
query I rowsort
SELECT ALL col1 + + 87 * + col2 + col2 FROM tab2
----
2347
2407
3361
query I rowsort
SELECT - cor1.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT + col1 * col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL + col2 * + col1 FROM tab2
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 + col1 * + col2 col2 FROM tab2
----
1054
1989
6136
query I rowsort
SELECT DISTINCT - cor0.col0 * - 69 FROM tab2, tab0 cor0
----
1656
2415
6141
query I rowsort
SELECT - col1 * col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + + 23 * col2 FROM tab0 AS cor0
----
1886
23
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-5449
SELECT DISTINCT + col0 * col2 DIV - ( col2 ) col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT + col0 * col2 / - ( col2 ) col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL ( col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + - col1 * - col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT - col1 * + col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-5455
SELECT - col2 * col0 DIV col1 FROM tab2
----
-176
-34
-6
skipif mysql # not compatible
query I rowsort label-5455
SELECT - col2 * col0 / col1 FROM tab2
----
-176
-34
-6
query I rowsort
SELECT - 14 FROM tab2, tab2 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
query I rowsort
SELECT ALL - col2 - col2 * 54 AS col1 FROM tab0
----
-1815
-4510
-55
query I rowsort
SELECT ALL + col2 AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT 2 * 89 FROM tab1, tab1 AS cor0
----
9 values hashing to bc1381d798d6e2509f49d5db7a874c06
query I rowsort
SELECT ALL - col0 AS col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT - cor0.col1 * cor0.col2 - 74 FROM tab1 AS cor0
----
-1322
-1478
-644
query I rowsort
SELECT DISTINCT - col1 + - col1 - 2 FROM tab2
----
-120
-36
-64
query I rowsort
SELECT + col1 + - col1 + + col0 * + col2 FROM tab2 AS cor0
----
189
2028
3002
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 - + col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + + col0 AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL ( col1 ) + + col2 AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT ( + col2 ) + - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - + 55 + col2 FROM tab0 cor0
----
-22
-54
27
query I rowsort
SELECT - - col0 * col2 + - col2 * - cor0.col1 FROM tab0 cor0
----
132
14760
3630
query I rowsort
SELECT 19 * - 78 + col2 FROM tab0 AS cor0
----
-1400
-1449
-1481
query I rowsort
SELECT - col2 * - 24 FROM tab1 AS cor0
----
1296
1368
2304
query I rowsort
SELECT col0 + - cor0.col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5474
SELECT CAST( NULL AS SIGNED ) * - 2 * + cor0.col0 + + 76 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5474
SELECT CAST ( NULL AS INTEGER ) * - 2 * + cor0.col0 + + 76 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 48 AS col0 FROM tab0 AS cor0
----
48
48
48
query I rowsort
SELECT - - col2 + + 77 AS col0 FROM tab0 AS cor0
----
110
159
78
query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 col2 FROM tab0 AS cor0
----
50
50
50
query I rowsort
SELECT ALL + col0 * cor0.col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + col1 + col0 * - col2 AS col1 FROM tab0 cor0
----
-706
-7207
62
query I rowsort
SELECT - cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5484
SELECT ALL - CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL - CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + + col0 * ( col1 ) FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + - col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT col1 + ( col1 ) AS col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT 15 FROM tab1, tab2 AS cor0
----
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-5492
SELECT col1 DIV tab0.col2 - ( + col1 ) AS col2 FROM tab0
----
-84
-90
0
skipif mysql # not compatible
query I rowsort label-5492
SELECT col1 / tab0.col2 - ( + col1 ) AS col2 FROM tab0
----
-84
-90
0
query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
54 values hashing to fe43263cad63144a098cccb9cd58c32a
query I rowsort
SELECT ALL col2 * col1 + col0 AS col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT ALL + col2 + - col2 + - col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - + col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + + col1 * cor0.col0 + col2 AS col1 FROM tab2 cor0
----
1381
244
4628
query I rowsort
SELECT + col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL col0 AS col1 FROM tab2
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 col0 FROM tab1
----
108
114
192
query I rowsort
SELECT col0 * + ( col1 * - col2 + ( 8 ) ) FROM tab0
----
-3115
-663406
-67920
query I rowsort
SELECT - 77 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107
query I rowsort
SELECT + 80 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT col2 * + col1 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-5505
SELECT ALL col2 * col0 DIV cor0.col1 - col1 * 27 FROM tab2 cor0
----
-1559
-283
-831
skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL col2 * col0 / cor0.col1 - col1 * 27 FROM tab2 cor0
----
-1559
-283
-831
query I rowsort
SELECT + 75 AS col1 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query I rowsort
SELECT - col0 * col1 - cor0.col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT DISTINCT - 43 FROM tab2 AS cor0
----
-43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5509
SELECT ALL + CAST( NULL AS SIGNED ) * col2 - - col1 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5509
SELECT ALL + CAST ( NULL AS INTEGER ) * col2 - - col1 AS col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5510
SELECT ALL - ( 54 * col1 ) + + 11 DIV col0 - col2 * col2 FROM tab0
----
-11638
-5239
-5733
skipif mysql # not compatible
query I rowsort label-5510
SELECT ALL - ( 54 * col1 ) + + 11 / col0 - col2 * col2 FROM tab0
----
-11638
-5239
-5733
onlyif mysql # use DIV operator for integer division
query I rowsort label-5511
SELECT ALL 73 * col1 DIV - tab1.col0 - - 54 FROM tab1
----
-578
43
43
skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL 73 * col1 / - tab1.col0 - - 54 FROM tab1
----
-578
43
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-5512
SELECT - - col2 + col0 * cor0.col1 DIV ( col0 * - CAST( + col1 AS SIGNED ) ) FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-5512
SELECT - - col2 + col0 * cor0.col1 / ( col0 * - CAST ( + col1 AS INTEGER ) ) FROM tab2 AS cor0
----
25
26
37
query I rowsort
SELECT DISTINCT + + cor0.col1 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT ALL - col1 * + col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + 36 * col0 AS col0 FROM tab1 AS cor0
----
108
2304
2880
query I rowsort
SELECT ALL col0 + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) + col1 col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT + 60 * - col0 - col2 * - col1 AS col2 FROM tab2
----
-3146
-4094
417
onlyif mysql # use DIV operator for integer division
query I rowsort label-5520
SELECT DISTINCT 76 DIV col1 FROM tab2
----
1
2
4
skipif mysql # not compatible
query I rowsort label-5520
SELECT DISTINCT 76 / col1 FROM tab2
----
1
2
4
query I rowsort
SELECT ( - ( - col1 ) ) AS col0 FROM tab2
----
17
31
59
query I rowsort
SELECT 0 * ( col2 ) + + tab1.col0 AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT ( - 47 ) FROM tab1
----
-47
-47
-47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + ( col2 ) + + col2 ) col0 FROM tab1
----
108
114
192
query I rowsort
SELECT DISTINCT - col1 + + col0 * col1 - 26 AS col1 FROM tab2
----
1300
160
4517
query I rowsort
SELECT ALL + col2 * - tab1.col2 - col2 FROM tab1
----
-2970
-3306
-9312
query I rowsort
SELECT + 76 * + ( - tab1.col1 ) FROM tab1
----
-1976
-760
-988
query I rowsort
SELECT DISTINCT + 73 - tab2.col0 * col1 FROM tab2
----
-1270
-144
-4529
query I rowsort
SELECT 82 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 cor1
----
54 values hashing to fe43263cad63144a098cccb9cd58c32a
onlyif mysql # use DIV operator for integer division
query I rowsort label-5531
SELECT DISTINCT col0 DIV col1 + ( 69 + col1 ) AS col1 FROM tab2
----
100
129
90
skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT col0 / col1 + ( 69 + col1 ) AS col1 FROM tab2
----
100
129
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 * + col2 + + col1 col2 FROM tab1
----
1592
1663
2797
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-5534
SELECT + col2 * col1 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5534
SELECT + col2 * col1 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + 73 * + col0 AS col2 FROM tab1 AS cor0
----
219
4672
5840
query I rowsort
SELECT 23 * cor0.col2 + - col2 AS col2 FROM tab2 AS cor0
----
572
594
836
query I rowsort
SELECT ALL + - col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT col0 * + col1 + col2 + col0 * + col2 FROM tab1 AS cor0
----
294
4345
8816
query I rowsort
SELECT DISTINCT + col0 * - col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT col0 * col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL 63 AS col1 FROM tab1 AS cor0
----
63
63
63
query I rowsort
SELECT DISTINCT - 6 AS col1 FROM tab2 cor0
----
-6
query I rowsort
SELECT DISTINCT - col0 + + col1 + tab1.col1 FROM tab1
----
-44
-54
49
query I rowsort
SELECT ALL - col1 * + cor0.col0 + - 67 * + 86 FROM tab2 AS cor0
----
-10364
-5979
-7105
query I rowsort
SELECT + col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT + col1 - - col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL + col0 * col1 + ( col0 ) + + col0 FROM tab1 AS cor0
----
1200
768
84
query I rowsort
SELECT DISTINCT + col1 - col0 AS col0 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT + col1 * col0 + + col0 AS col2 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL - cor0.col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5554
SELECT DISTINCT - 41 + - col2 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT - 41 + - col2 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query I rowsort
SELECT ALL - tab2.col2 + - col1 AS col1 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT DISTINCT - 41 FROM tab0, tab1, tab2 AS cor0
----
-41
query I rowsort
SELECT - 48 * - col2 FROM tab0
----
1584
3936
48
query I rowsort
SELECT col2 * - col2 * - col1 AS col0 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT DISTINCT + tab2.col0 + col1 + - ( - col0 + + col1 ) AS col0 FROM tab2
----
14
156
158
query I rowsort
SELECT DISTINCT + tab2.col1 + - col1 FROM tab2
----
0
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab1 cor0
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
query I rowsort
SELECT DISTINCT 47 + + col1 + + 75 * + 32 FROM tab0
----
2533
2538
2544
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab2 cor0
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d
query I rowsort
SELECT ALL - tab1.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT DISTINCT 64 * cor1.col1 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
5504
5824
6208
query I rowsort
SELECT - + 94 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-37
-40
2
query I rowsort
SELECT DISTINCT - col2 + col0 AS col1 FROM tab1 cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5568
SELECT 32 DIV col2 + col0 * col1 + + col2 FROM tab0 AS cor0
----
2097
3428
8181
skipif mysql # not compatible
query I rowsort label-5568
SELECT 32 / col2 + col0 * col1 + + col2 FROM tab0 AS cor0
----
2097
3428
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) + - col2 col1 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT 42 AS col2 FROM tab1
----
42
42
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-5571
SELECT ALL col2 DIV + col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL col2 / + col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + cor0.col0 + + col2 + col2 AS col0 FROM tab1 AS cor0
----
111
178
272
query I rowsort
SELECT DISTINCT + cor0.col2 + col0 AS col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT + cor0.col1 * col0 - + ( + col1 ) FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT - col1 * - col1 * - col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT - 36 FROM tab2, tab0 cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837
query I rowsort
SELECT - + col0 - + 21 FROM tab1 AS cor0
----
-101
-24
-85
query I rowsort
SELECT + cor0.col0 * + cor0.col2 + col1 * col1 AS col0 FROM tab1 cor0
----
3748
7849
838
query I rowsort
SELECT - col2 * col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + + col2 * + col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - + 87 * col2 - col1 AS col0 FROM tab2 AS cor0
----
-2321
-2380
-3323
query I rowsort
SELECT DISTINCT ( + col0 ) * - col0 AS col1 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL + 25 AS col1 FROM tab0 AS cor0
----
25
25
25
query I rowsort
SELECT DISTINCT 63 + ( - col0 ) FROM tab0 AS cor0
----
-26
28
39
query I rowsort
SELECT DISTINCT - col1 + col0 AS col1 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT + + col0 * + col1 * col1 + + col2 + col0 AS col1 FROM tab2 AS cor0
----
22948
271622
6761
query I rowsort
SELECT - 37 AS col1 FROM tab0 AS cor0
----
-37
-37
-37
query I rowsort
SELECT DISTINCT 18 + + 12 AS col0 FROM tab0 AS cor0
----
30
query I rowsort
SELECT DISTINCT 83 * col1 AS col1 FROM tab2 AS cor0
----
1411
2573
4897
query I rowsort
SELECT DISTINCT - - col2 + - col2 * + col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-244035
-678960
-9408
query I rowsort
SELECT DISTINCT - + col2 + col1 AS col0 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5592
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-5592
SELECT + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col1 + cor0.col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ( + col0 ) FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5595
SELECT ALL + cor0.col2 + 64 + col1 DIV + col0 AS col1 FROM tab2 cor0
----
102
90
95
skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL + cor0.col2 + 64 + col1 / + col0 AS col1 FROM tab2 cor0
----
102
90
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT + - 17 FROM tab1 AS cor0
----
-17
-17
-17
query I rowsort
SELECT + col1 + col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL - 16 * col1 + col2 AS col0 FROM tab0 AS cor0
----
-1343
-1374
-1551
onlyif mysql # use DIV operator for integer division
query I rowsort label-5600
SELECT DISTINCT + col1 * - col0 DIV - CAST( col1 * col0 + + col0 AS SIGNED ) FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT + col1 * - col0 / - CAST ( col1 * col0 + + col0 AS INTEGER ) FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - + 39 * col0 + + col2 AS col0 FROM tab1 cor0
----
-2439
-3024
-63
query I rowsort
SELECT - cor0.col0 * - col0 + col1 * 72 AS col0 FROM tab0 cor0
----
14473
6768
8209
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab2 cor1, tab0 cor2
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d
query I rowsort
SELECT ALL - col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT - 35 * - col2 * + col0 FROM tab0 AS cor0
----
1225
255430
27720
query I rowsort
SELECT + col0 + col1 AS col2 FROM tab2
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5607
SELECT ALL + col1 DIV + col1 + - col2 * - col2 FROM tab1
----
2917
3250
9217
skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL + col1 / + col1 + - col2 * - col2 FROM tab1
----
2917
3250
9217
query I rowsort
SELECT col0 + col2 FROM tab0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5609
SELECT - col0 * - col1 + + col1 - + col2 DIV + col0 FROM tab1
----
1052
650
86
skipif mysql # not compatible
query I rowsort label-5609
SELECT - col0 * - col1 + + col1 - + col2 / + col0 FROM tab1
----
1052
650
86
query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE NOT NULL <> ( NULL )
----
query I rowsort
SELECT ALL col2 * - col1 AS col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL tab1.col1 * + col0 + col0 AS col1 FROM tab1
----
1120
704
81
query I rowsort
SELECT ALL + col0 AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT tab2.col1 AS col2 FROM tab2
----
17
31
59
query I rowsort
SELECT - col1 + - col2 * tab1.col0 FROM tab1
----
-188
-3658
-7693
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > NULL
----
query I rowsort
SELECT DISTINCT col2 * + col2 FROM tab1 WHERE NOT ( + col2 * col0 + col0 ) <> ( col0 )
----
query I rowsort
SELECT ALL + col0 * tab2.col2 FROM tab2
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT col2 * - col0 + - col1 AS col1 FROM tab1
----
-188
-3658
-7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-5621
SELECT + col1 * col0 - col1 DIV + tab2.col0 AS col1 FROM tab2
----
1343
213
4602
skipif mysql # not compatible
query I rowsort label-5621
SELECT + col1 * col0 - col1 / + tab2.col0 AS col1 FROM tab2
----
1343
213
4602
query I rowsort
SELECT DISTINCT tab0.col0 * + col2 AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT + col2 * - col2 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT ALL col1 + - col0 AS col2 FROM tab0
----
2
62
62
query I rowsort
SELECT col2 * - col2 FROM tab1
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * col1 col1 FROM tab0
----
7396
8281
9409
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + col0 )
----
query I rowsort
SELECT + col2 + + col2 * col1 FROM tab0
----
2871
7544
98
query I rowsort
SELECT DISTINCT col1 * col0 + + col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT ALL col0 * - col1 + - col1 * col2 AS col2 FROM tab1
----
-1210
-1482
-2288
query I rowsort
SELECT DISTINCT tab2.col1 * - col2 AS col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT col1 * col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT + col2 * + tab0.col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL + 66 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
query I rowsort
SELECT + cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT + - col0 * col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT 42 FROM tab1 AS cor0
----
42
42
42
query I rowsort
SELECT col1 AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT col1 * col1 + - tab1.col2 AS col2 FROM tab1
----
43
622
73
query I rowsort
SELECT - col2 + col1 * + tab1.col2 FROM tab1
----
1152
1350
513
query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT col1 * - col1 AS col2 FROM tab0 WHERE - col1 >= ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL + + col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-5645
SELECT - + col2 * col1 DIV - ( col1 * col0 ) FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5645
SELECT - + col2 * col1 / - ( col1 * col0 ) FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + - col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - 33 + + col0 FROM tab1 AS cor0
----
-30
31
47
query I rowsort
SELECT ALL col0 * col2 * - col1 + col1 AS col2 FROM tab1
----
-36470
-4186
-99827
query I rowsort
SELECT col1 + col2 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT col1 - col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL + col0 - col0 * - cor0.col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT col0 * + cor0.col2 + col1 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-5654
SELECT - col2 * col1 - col1 DIV col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-5654
SELECT - col2 * col1 - col1 / col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL tab1.col1 + + col1 FROM tab1
----
20
26
52
query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE ( + col2 + - col2 * + cor0.col2 ) IN ( - col1 + - col1 + + col2 )
----
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN col0 + col1 * col2 AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2
----
17
31
59
query I rowsort
SELECT col0 + + col1 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL col1 + col2 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL - col1 AS col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT tab2.col2 * - col1 * tab2.col2 FROM tab2
----
-22599
-24548
-39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * tab0.col1 col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT col1 + - col1 * - col0 AS col0 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT ALL col2 * col1 + tab0.col1 FROM tab0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-5666
SELECT + col1 + - col2 DIV col1 - tab1.col2 AS col1 FROM tab1
----
-30
-52
-90
skipif mysql # not compatible
query I rowsort label-5666
SELECT + col1 + - col2 / col1 - tab1.col2 AS col1 FROM tab1
----
-30
-52
-90
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col1 ) BETWEEN + col1 AND NULL
----
query I rowsort
SELECT DISTINCT + col2 * col2 + col1 FROM tab2
----
1461
735
760
query I rowsort
SELECT + col1 * + col1 + - col1 AS col0 FROM tab2
----
272
3422
930
query I rowsort
SELECT tab0.col1 * col0 + col1 * col0 FROM tab0
----
16198
4128
6790
query I rowsort
SELECT ALL - col2 + col2 AS col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col1 col0 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT DISTINCT - tab2.col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL - col0 * col0 + + col0 FROM tab0
----
-1190
-552
-7832
query I rowsort
SELECT + tab1.col0 + + col0 * + col0 FROM tab1
----
12
4160
6480
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND col0 - col2
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 > + col0
----
query I rowsort
SELECT - col1 + - col2 AS col0 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT ALL - ( - 94 ) * col0 AS col1 FROM tab1 AS cor0
----
282
6016
7520
query I rowsort
SELECT + + col0 AS col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL + + ( col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - + 61 FROM tab1 AS cor0
----
-61
query I rowsort
SELECT DISTINCT + col0 * + col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - 59 AS col1 FROM tab1 AS cor0
----
-59
-59
-59
query I rowsort
SELECT + - col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + 76 FROM tab2 AS cor0
----
76
76
76
query I rowsort
SELECT col1 * ( col1 ) AS col1 FROM tab1
----
100
169
676
query I rowsort
SELECT + 85 * tab0.col2 FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 15490118be912011bb0fa199166a034e
query I rowsort
SELECT DISTINCT 65 AS col0 FROM tab1, tab1 AS cor0
----
65
query I rowsort
SELECT 12 + + col0 FROM tab2
----
19
90
91
query I rowsort
SELECT - 0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + 76 AS col0 FROM tab0
----
100
111
165
query I rowsort
SELECT col0 * + cor0.col1 + + col1 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT 61 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
onlyif mysql # use DIV operator for integer division
query I rowsort label-5696
SELECT ALL + col2 DIV col0 + + col1 AS col0 FROM tab0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL + col2 / col0 + + col1 AS col0 FROM tab0
----
87
91
97
query I rowsort
SELECT + 21 * - col0 * col2 FROM tab1
----
-161280
-3402
-76608
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5698
SELECT + CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5698
SELECT + CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5699
SELECT ALL col1 * + CAST( - col1 AS SIGNED ) + col0 col0 FROM tab1 AS cor0
----
-36
-673
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL col1 * + CAST ( - col1 AS INTEGER ) + col0 col0 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT DISTINCT col2 * col0 AS col2 FROM tab2 cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col1 col2 FROM tab0, tab1 AS cor0
----
86
91
97
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab1 cor0, tab2
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed
query I rowsort
SELECT + cor1.col2 - + 19 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 8059bd7d9fa89be1ca76a584802cdc27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - tab1.col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + ( - col2 + 3 ) AS col0 FROM tab0
----
-30
-79
2
query I rowsort
SELECT col2 + col0 - - col2 * col1 FROM tab1 AS cor0
----
1424
1461
691
query I rowsort
SELECT - cor0.col0 + col2 FROM tab2 AS cor0
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - + ( ( col0 ) ) col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT + col0 * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT + tab2.col1 + ( col0 * + col1 ) - + ( + col1 ) FROM tab2
----
1343
217
4602
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 63ccb67e72ebac679a0221202c067b9e
skipif mysql # not compatible
query I rowsort
SELECT col0 * + CAST ( 50 * + col1 AS REAL ) AS col1 FROM tab2 AS cor0
----
10850
230100
67150
query I rowsort
SELECT - col2 * + 24 AS col0 FROM tab0 AS cor0
----
-1968
-24
-792
query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - + col1 + - 14 * col0 AS col0 FROM tab1 AS cor0
----
-1133
-68
-906
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + col1 * - ( 40 ) FROM tab0 cor0
----
-3440
-3640
-3880
query I rowsort
SELECT DISTINCT col1 + + col2 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-5722
SELECT col0 - col2 DIV col0 FROM tab2 AS cor0
----
4
78
79
skipif mysql # not compatible
query I rowsort label-5722
SELECT col0 - col2 / col0 FROM tab2 AS cor0
----
4
78
79
query I rowsort
SELECT + + col1 * col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT col0 * - ( 27 ) - cor0.col1 FROM tab0 AS cor0
----
-1042
-2494
-734
query I rowsort
SELECT DISTINCT + + col1 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT ALL + + ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab2 cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 col2 FROM tab1, tab2 AS cor0
----
-40
query I rowsort
SELECT DISTINCT + col2 + 43 FROM tab1
----
100
139
97
query I rowsort
SELECT ALL + col0 + - col0 * col2 AS col1 FROM tab0
----
-7209
-768
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5731
SELECT ALL col1 DIV - ( col2 * col2 ) + + col1 FROM tab0 AS cor0
----
0
86
91
skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL col1 / - ( col2 * col2 ) + + col1 FROM tab0 AS cor0
----
0
86
91
query I rowsort
SELECT DISTINCT - + col2 + - cor0.col2 FROM tab0 AS cor0
----
-164
-2
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-5733
SELECT DISTINCT - - col1 + + cor0.col1 DIV + col0 - - col1 FROM tab0 AS cor0
----
175
183
196
skipif mysql # not compatible
query I rowsort label-5733
SELECT DISTINCT - - col1 + + cor0.col1 / + col0 - - col1 FROM tab0 AS cor0
----
175
183
196
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b
query I rowsort
SELECT + col2 * col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + + ( col1 ) * - col2 - col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-15561
-3492
-4902
query I rowsort
SELECT ALL - - 50 * + col2 + col1 * cor0.col2 AS col0 FROM tab0 cor0
----
11562
147
4488
query I rowsort
SELECT - col1 + col0 AS col1 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT - 72 + col2 AS col2 FROM tab0 AS cor0
----
-39
-71
10
query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT col2 * + cor0.col2 * col1 + + col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
22648
30789
45968
query I rowsort
SELECT col2 * - col2 + + col2 - col0 * col1 AS col2 FROM tab2 AS cor0
----
-2749
-5252
-919
query I rowsort
SELECT + col0 + + col0 * + col0 * - col0 AS col0 FROM tab0 cor0
----
-13800
-42840
-704880
query I rowsort
SELECT ALL col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT - cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL 74 * cor0.col0 + + col2 FROM tab0 AS cor0
----
1809
2591
6668
query I rowsort
SELECT ALL + col1 * col1 * col1 + + col0 AS col0 FROM tab1 AS cor0
----
1064
17579
2277
query I rowsort
SELECT DISTINCT col1 + col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT + col0 + col0 AS col2 FROM tab1 AS cor0
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 45 + - col1 col0 FROM tab0 AS cor0
----
-41
-46
-52
query I rowsort
SELECT DISTINCT + + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + + col1 * - col0 + - col2 * - col1 FROM tab2 AS cor0
----
-3068
-697
620
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5753
SELECT - CAST( - col1 AS SIGNED ) * col0 FROM tab0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-5753
SELECT - CAST ( - col1 AS INTEGER ) * col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - ( - tab1.col2 ) + col0 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT 30 FROM tab2, tab1 AS cor0
----
30
onlyif mysql # use DIV operator for integer division
query I rowsort label-5756
SELECT DISTINCT - 84 DIV col0 + col0 col1 FROM tab1
----
-25
63
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT - 84 / col0 + col0 col1 FROM tab1
----
-25
63
79
query I rowsort
SELECT + ( col1 ) * - col1 + col1 * tab2.col0 AS col1 FROM tab2
----
-744
1054
1121
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5758
SELECT CAST( NULL AS SIGNED ) + col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5758
SELECT CAST ( NULL AS INTEGER ) + col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5759
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-5759
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col2 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT + ( 30 ) + col1 FROM tab1
----
40
43
56
query I rowsort
SELECT + 55 AS col0 FROM tab0
----
55
55
55
query I rowsort
SELECT + col2 * 20 AS col2 FROM tab2
----
520
540
760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5763
SELECT CAST( NULL AS SIGNED ) * ( col1 ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5763
SELECT CAST ( NULL AS INTEGER ) * ( col1 ) FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5764
SELECT CAST( NULL AS SIGNED ) * + col0 * - col0 - - col0 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5764
SELECT CAST ( NULL AS INTEGER ) * + col0 * - col0 - - col0 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + 88 AS col0 FROM tab0
----
121
170
89
query I rowsort
SELECT - cor0.col1 * ( col1 ) AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL - col0 * col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT + + col2 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + + col0 * cor0.col0 * 71 FROM tab1 AS cor0
----
290816
454400
639
query I rowsort
SELECT DISTINCT - col2 * ( 29 ) AS col2 FROM tab2 AS cor0
----
-1102
-754
-783
query I rowsort
SELECT - col0 * - col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-5772
SELECT ALL - col2 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL - col2 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT cor0.col0 + + col2 * 86 AS col2 FROM tab2 AS cor0
----
2314
2329
3347
query I rowsort
SELECT ALL + - col0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 * + col1 col0 FROM tab1 AS cor0
----
1000
17576
2197
query I rowsort
SELECT cor0.col2 * - 4 AS col2 FROM tab0 AS cor0
----
-132
-328
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 58 col0 FROM tab1 AS cor0
----
-55
22
6
query I rowsort
SELECT ALL - - col0 + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT col0 * - 72 AS col0 FROM tab1 AS cor0
----
-216
-4608
-5760
query I rowsort
SELECT ALL - + col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT cor0.col0 + - 87 * col2 FROM tab1 AS cor0
----
-4695
-4895
-8272
query I rowsort
SELECT ALL - col2 * ( ( + col1 ) ) * cor0.col0 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-5783
SELECT DISTINCT + + col2 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-5783
SELECT DISTINCT + + col2 / cor0.col1 AS col2 FROM tab2 AS cor0
----
0
2
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab1 AS cor0, tab0
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7
query I rowsort
SELECT - col1 - col2 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT col2 * + col1 - - col0 FROM tab2
----
1612
725
844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 84 - col0 col2 FROM tab1 AS cor0
----
4533
4724
7984
query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT col0 * - col0 + col1 AS col0 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT ALL + col0 * ( - col0 ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT col0 + + 25 + + 74 * - col2 FROM tab2 cor0
----
-1821
-1966
-2708
query I rowsort
SELECT - col0 + col1 * + 84 AS col2 FROM tab0 cor0
----
7200
7555
8113
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab1
----
10
13
26
query IIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5795
SELECT - col1 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5795
SELECT - col1 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + + col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT col0 + tab0.col1 * + 45 AS col1 FROM tab0
----
3894
4184
4400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + col1 * - col0 + col1 col0 FROM tab1 AS cor0
----
-573
-931
2
query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1
----
-10
-13
-26
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 * + col0 ) OR NULL NOT IN ( + col1 )
----
query I rowsort
SELECT DISTINCT - col2 * - col2 FROM tab2
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-5803
SELECT - col2 DIV - col1 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-5803
SELECT - col2 / - col1 FROM tab2 AS cor0
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - - col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-5806
SELECT - + col1 DIV col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5806
SELECT - + col1 / col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT col2 * + col0 AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col0 * + col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL - cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT + col1 AS col2 FROM tab1
----
10
13
26
query I rowsort
SELECT - tab1.col0 + + col1 * col1 FROM tab1
----
36
673
89
query I rowsort
SELECT DISTINCT + tab2.col0 * col1 FROM tab2
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT - col0 * + col1 AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT - col2 * col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL - col2 * - col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT col0 + + col1 * col1 FROM tab0
----
7420
8370
9444
query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - - col1 * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + + cor0.col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - col0 * - col2 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT + col0 * cor0.col0 + - col1 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT ALL - col0 + col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT cor0.col1 - - col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT col0 + - col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT + + col0 * col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL - - cor0.col2 * col1 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT col0 * - tab1.col2 + - col2 FROM tab1
----
-216
-3705
-7776
query I rowsort
SELECT col0 + + col1 FROM tab2
----
137
38
96
query I rowsort
SELECT - col1 + - col2 * + col0 * - col0 FROM tab1
----
233462
460
614387
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 * + tab1.col0 col2 FROM tab1
----
171
3648
4560
query I rowsort
SELECT ALL col1 + - col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-5837
SELECT + col2 DIV - cor0.col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5837
SELECT + col2 / - cor0.col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + - col0 + col0 * col2 FROM tab2 AS cor0
----
182
1950
2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + - ( + col2 ) * - col1 + - col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL - - 8 + + col0 AS col1 FROM tab1 AS cor0
----
11
72
88
query I rowsort
SELECT - col1 + col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab2 cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-5844
SELECT ALL - tab0.col0 DIV - col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5844
SELECT ALL - tab0.col0 / - col0 FROM tab0
----
1
1
1
query I rowsort
SELECT ALL - col2 + + cor0.col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL + col2 FROM tab1 cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT - col0 * col2 * col1 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT + cor0.col2 + + col0 * - col2 + col1 FROM tab0 AS cor0
----
-673
-7125
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-5850
SELECT DISTINCT col1 * col2 DIV col0 FROM tab0
----
118
2
83
skipif mysql # not compatible
query I rowsort label-5850
SELECT DISTINCT col1 * col2 / col0 FROM tab0
----
118
2
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 col2 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL col2 * col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-5853
SELECT + col2 DIV + cor0.col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5853
SELECT + col2 / + cor0.col2 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5854
SELECT ALL + col1 DIV col0 col0 FROM tab0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL + col1 / col0 col0 FROM tab0
----
1
2
3
query I rowsort
SELECT ALL + col2 + + col0 * col2 AS col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT col0 * col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL col2 AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT - tab1.col1 * ( + 27 ) AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 33ca158e4b50316b3787dced60f0f273
onlyif mysql # use DIV operator for integer division
query I rowsort label-5859
SELECT ALL - col1 DIV col2 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL - col1 / col2 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 + 40 * - col0 * col2 AS col1 FROM tab2 AS cor0
----
-120159
-7567
-81198
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col1 col0 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5862
SELECT col0 * CAST( 69 AS SIGNED ) col2 FROM tab0 cor0
----
1656
2415
6141
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5862
SELECT col0 * CAST ( 69 AS INTEGER ) col2 FROM tab0 cor0
----
1656
2415
6141
query I rowsort
SELECT - col2 * col2 + - col2 AS col1 FROM tab2 cor0
----
-1482
-702
-756
query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT - col0 * - col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT ALL - col0 + + ( col2 ) * col1 AS col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT DISTINCT - - col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT col0 + - col2 AS col2 FROM tab0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 + + col0 col2 FROM tab0
----
-7209
-768
0
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab2 cor0, tab2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab2 AS cor0, tab2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
query I rowsort
SELECT ALL - 6 * col1 AS col0 FROM tab2
----
-102
-186
-354
query I rowsort
SELECT cor0.col0 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5875
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT ALL col1 * 38 + - col1 AS col1 FROM tab2
----
1147
2183
629
query I rowsort
SELECT - col1 + 7 FROM tab2 AS cor0
----
-10
-24
-52
query I rowsort
SELECT - col1 + + 80 AS col1 FROM tab0 cor0
----
-11
-17
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5879
SELECT col1 DIV + col2 + col1 FROM tab0 AS cor0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-5879
SELECT col1 / + col2 + col1 FROM tab0 AS cor0
----
194
88
92
query I rowsort
SELECT + col0 + + col2 * - ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT - cor0.col0 + col0 + + col1 AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + + col1 + + cor0.col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + 98 AS col2 FROM tab1
----
98
98
98
query I rowsort
SELECT ( 47 ) FROM tab0
----
47
47
47
query I rowsort
SELECT + + ( + col0 ) * col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT + 14 FROM tab1 AS cor0
----
14
14
14
query I rowsort
SELECT ALL ( + ( - tab0.col0 ) ) FROM tab0
----
-24
-35
-89
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00
query I rowsort
SELECT + + col0 * col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - col2 * + col0 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + ( + cor0.col1 ) * + ( + col2 ) col2 FROM tab1 AS cor0
----
1235
1378
560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * cor0.col0 col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + + col1 - + col0 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT col0 * + col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL 50 * 88 * col2 + 65 * - col1 * col0 AS col2 FROM tab1
----
209200
232530
354800
query I rowsort
SELECT - 86 - - col0 FROM tab1 AS cor0
----
-22
-6
-83
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1 cor1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242
query I rowsort
SELECT col2 * col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT - + col2 * - col2 FROM tab1 AS cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + 53 * + col0 AS col0 FROM tab1 AS cor0
----
159
3392
4240
query I rowsort
SELECT ALL + 80 * col0 - - col1 * + col0 FROM tab0
----
15219
3984
6195
query I rowsort
SELECT DISTINCT - col1 * col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT + 9 + col0 AS col1 FROM tab0 AS cor0
----
33
44
98
query I rowsort
SELECT ALL - ( + col2 ) * - col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT ALL + col0 + col2 * + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5907
SELECT DISTINCT + 6 + col1 * + CAST( - 95 + + cor0.col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1177
-5326
-9112
skipif mysql # not compatible
query I rowsort label-5907
SELECT DISTINCT + 6 + col1 * + CAST ( - 95 + + cor0.col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1177
-5326
-9112
query I rowsort
SELECT ALL col0 * cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + cor0.col2 + col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT DISTINCT - 9 - col2 AS col0 FROM tab1 AS cor0
----
-105
-63
-66
query I rowsort
SELECT ALL + col1 * cor0.col2 + col0 AS col1 FROM tab2 cor0
----
1612
725
844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 47 - + col1 col1 FROM tab1 AS cor0
----
-57
-60
-73
query I rowsort
SELECT ALL - col2 * - col0 * + ( - col1 ) AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL ( - col1 ) * - col2 + col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT 13 * + col0 AS col0 FROM tab1 AS cor0
----
1040
39
832
onlyif mysql # use DIV operator for integer division
query I rowsort label-5916
SELECT ALL - col0 DIV col1 FROM tab2 cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL - col0 / col1 FROM tab2 cor0
----
-1
-4
0
query I rowsort
SELECT DISTINCT + 92 AS col1 FROM tab0 AS cor0
----
92
query I rowsort
SELECT + 29 FROM tab2 AS cor0
----
29
29
29
query I rowsort
SELECT ALL - col2 * cor0.col0 + col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT col2 + + 11 FROM tab1 AS cor0
----
107
65
68
query I rowsort
SELECT + 53 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 82e15d5967b272804e574774895a0222
query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab1 AS cor0
----
10
13
26
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c
query I rowsort
SELECT DISTINCT + - col1 + - col2 + 77 FROM tab1 cor0
----
-3
-32
10
query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + col2 * + 83 FROM tab0 AS cor0
----
2739
6806
83
query I rowsort
SELECT ALL - col2 * - cor0.col2 + - ( col0 ) FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT DISTINCT cor0.col1 * 92 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
1564
2852
5428
query I rowsort
SELECT + col1 * + tab0.col0 * 54 - col2 AS col0 FROM tab0
----
111423
183329
437264
query I rowsort
SELECT DISTINCT col2 - - col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + 98 FROM tab0 AS cor0
----
98
98
98
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab2 AS cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 * col0 col0 FROM tab2 AS cor0
----
-1014
-1027
-91
query I rowsort
SELECT ALL - 50 AS col2 FROM tab1 AS cor0
----
-50
-50
-50
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab0 cor1
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f
query I rowsort
SELECT + col2 + col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT + - ( 10 ) AS col1 FROM tab1 AS cor0
----
-10
-10
-10
query I rowsort
SELECT - col0 * col1 * - col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT + + 45 FROM tab0 AS cor0
----
45
query I rowsort
SELECT col1 * cor0.col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - col2 * - col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT 49 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT ALL ( - 52 ) * tab2.col0 FROM tab2
----
-364
-4056
-4108
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5945
SELECT CAST( col2 AS SIGNED ) FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-5945
SELECT CAST ( col2 AS INTEGER ) FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT + col1 + col2 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - 1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5949
SELECT DISTINCT cor0.col0 * col1 + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT cor0.col0 * col1 + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0
----
1
33
82
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab1 AS cor1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242
query I rowsort
SELECT DISTINCT 5 FROM tab1
----
5
query I rowsort
SELECT ALL 81 FROM tab0, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT ALL - 15 FROM tab2
----
-15
-15
-15
query I rowsort
SELECT 19 FROM tab2, tab2 cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab0 AS cor0, tab2
----
972 values hashing to a9068b700464993db9fae6f630605fde
query I rowsort
SELECT DISTINCT ( + ( col1 ) ) * + ( col1 ) AS col1 FROM tab0
----
7396
8281
9409
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab1 AS cor0, tab2 cor1
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab1 cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab0
----
1
33
82
query I rowsort
SELECT - - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL col1 * + ( + 33 ) FROM tab1 AS cor0
----
330
429
858
query I rowsort
SELECT ALL - - cor0.col2 * col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT + col2 * ( col1 ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL col1 * col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * - 67 col2 FROM tab2 AS cor0
----
-1139
-2077
-3953
query I rowsort
SELECT cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL 80 * - col2 FROM tab2
----
-2080
-2160
-3040
query I rowsort
SELECT ALL - ( 16 ) + col1 FROM tab1 cor0
----
-3
-6
10
query I rowsort
SELECT DISTINCT + 82 * col0 FROM tab2 AS cor0
----
574
6396
6478
query I rowsort
SELECT 32 * + cor0.col2 + - col0 FROM tab0 AS cor0
----
-3
1032
2535
query I rowsort
SELECT DISTINCT ( ( + col0 ) ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + 17 FROM tab2, tab2 cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT ALL + ( 58 ) FROM tab0, tab1, tab2 cor0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab2 AS cor1
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc
query I rowsort
SELECT + col1 - col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + - col1 * col2 * col0 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5979
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - col0 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5979
SELECT DISTINCT - CAST ( NULL AS REAL ) - col0 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - + cor0.col0 - - col1 AS col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT DISTINCT - + col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL ( - tab0.col2 + col2 * col0 ) AS col1 FROM tab0
----
34
7216
759
query I rowsort
SELECT ( - ( + tab2.col2 ) ) AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5984
SELECT - CAST( NULL AS SIGNED ) - 42 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5984
SELECT - CAST ( NULL AS INTEGER ) - 42 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT 34 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
query I rowsort
SELECT ALL - 75 AS col1 FROM tab1
----
-75
-75
-75
query I rowsort
SELECT DISTINCT + tab0.col2 AS col0 FROM tab0, tab2, tab1 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + col0 * col0 AS col0 FROM tab1 cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5989
SELECT + - col0 DIV col0 col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5989
SELECT + - col0 / col0 col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL 79 AS col1 FROM tab1 cor0
----
79
79
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 col1 FROM tab1 AS cor0
----
-80
-80
-80
query I rowsort
SELECT + col0 + + col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + 82 AS col2 FROM tab1 AS cor0
----
82
query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + - ( col0 ) * col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - - col1 AS col0 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5998
SELECT - + col1 + + CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5998
SELECT - + col1 + + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5999
SELECT ALL - col0 * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5999
SELECT ALL - col0 * - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + 97 * 52 FROM tab0 AS cor0
----
5045
5077
5126
query I rowsort
SELECT DISTINCT - + cor0.col0 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT - col1 * col1 + cor0.col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT + + col0 AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - + col0 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - col0 * col1 + col2 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT - + cor0.col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + col2 * col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL + col0 * + 95 FROM tab1 AS cor0
----
285
6080
7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6010
SELECT col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6010
SELECT col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + 37 AS col0 FROM tab2 AS cor0
----
54
68
96
query I rowsort
SELECT - - col2 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - col1 FROM tab1 cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-6014
SELECT DISTINCT + cor0.col2 + ( col0 ) DIV col2 + 1 * col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-512
skipif mysql # not compatible
query I rowsort label-6014
SELECT DISTINCT + cor0.col2 + ( col0 ) / col2 + 1 * col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-512
query I rowsort
SELECT DISTINCT + col1 * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-6016
SELECT - col2 DIV col1 + col2 AS col2 FROM tab1
----
52
52
89
skipif mysql # not compatible
query I rowsort label-6016
SELECT - col2 / col1 + col2 AS col2 FROM tab1
----
52
52
89
query I rowsort
SELECT - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - col2 + col0 AS col0 FROM tab1
----
-16
-51
7
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab1 AS cor0
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9
query I rowsort
SELECT 98 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT ALL - 31 FROM tab2, tab0 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6022
SELECT cor0.col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6022
SELECT cor0.col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( 47 ) FROM tab1 AS cor0
----
47
47
47
query I rowsort
SELECT col2 * col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + col0 AS col1 FROM tab1
----
3
64
80
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 cor1
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0
query I rowsort
SELECT - col0 - - col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + - cor0.col1 * + col2 + 3 FROM tab2 cor0
----
-1531
-643
-834
query I rowsort
SELECT + 10 FROM tab1 cor0
----
10
10
10
query I rowsort
SELECT cor0.col2 + + cor0.col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - cor0.col0 + - col0 * - ( 52 ) * - col2 FROM tab0 AS cor0
----
-1855
-379585
-41208
query I rowsort
SELECT + col0 + col1 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + col2 + - col2 AS col2 FROM tab2
----
0
0
0
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab1 AS cor0, tab0
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae
query I rowsort
SELECT + 61 AS col0 FROM tab2
----
61
61
61
query I rowsort
SELECT ALL 37 FROM tab1, tab2 cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query I rowsort
SELECT DISTINCT col0 + + col1 AS col1 FROM tab0
----
110
132
180
query I rowsort
SELECT - col2 + col1 AS col1 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT + ( 54 + col2 * + 52 ) AS col0 FROM tab0
----
106
1770
4318
query I rowsort
SELECT + col0 + col0 + - col1 * ( tab2.col0 ) AS col2 FROM tab2
----
-1185
-203
-4446
query I rowsort
SELECT + col0 + 6 AS col1 FROM tab0
----
30
41
95
query I rowsort
SELECT DISTINCT col0 + - col1 AS col0 FROM tab1
----
-23
54
67
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab2 AS cor0, tab0
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975
query I rowsort
SELECT DISTINCT col2 * col1 FROM tab2
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) + - 91 col1 FROM tab0 AS cor0
----
-58
-9
-90
query I rowsort
SELECT ALL + + col0 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + col2 * cor0.col0 + - col1 * - col1 * + col0 FROM tab2 AS cor0
----
25833
273546
6916
query I rowsort
SELECT DISTINCT 76 * cor0.col2 + - col0 * col0 FROM tab0 AS cor0
----
-1149
-1689
1932
query I rowsort
SELECT ALL + + 20 - col0 AS col2 FROM tab1 AS cor0
----
-44
-60
17
query I rowsort
SELECT + col2 * + col0 + - col0 AS col2 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT ALL - cor0.col2 * col1 AS col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + col2 * + col0 + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT + 82 * col0 FROM tab0 cor0
----
1968
2870
7298
query I rowsort
SELECT + col2 * + col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT + + cor0.col1 + col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT - - ( - col1 ) - + cor0.col1 * - ( + col0 ) AS col2 FROM tab0 cor0
----
1978
3298
8008
query I rowsort
SELECT - - 56 + - col0 FROM tab1 AS cor0
----
-24
-8
53
query I rowsort
SELECT ALL - col0 + + 62 * - col2 FROM tab1 cor0
----
-3351
-3598
-6032
query I rowsort
SELECT DISTINCT col1 * + col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + 75 FROM tab2 AS cor0
----
75
75
75
query I rowsort
SELECT DISTINCT + ( col1 ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + col0 + + col0 * cor0.col1 * 21 AS col2 FROM tab2 AS cor0
----
28282
4564
96720
query I rowsort
SELECT col1 - cor0.col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 + + col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0
----
86
91
97
query I rowsort
SELECT + tab0.col1 AS col2 FROM tab0
----
86
91
97
query I rowsort
SELECT - 76 * + 96 FROM tab2, tab0 AS cor0
----
9 values hashing to aadfa35b9e3ab2fb8560e6643551c193
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6069
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * ( + col0 ) * - 50 + 39 * + col1 AS col2 FROM tab2 cor0
----
103701
10659
150763
query I rowsort
SELECT 65 FROM tab1, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
onlyif mysql # use DIV operator for integer division
query I rowsort label-6072
SELECT ALL - cor0.col1 DIV - col1 col1 FROM tab2 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL - cor0.col1 / - col1 col1 FROM tab2 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - cor0.col2 col2 FROM tab1 AS cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT - 5 FROM tab1, tab1 AS cor0
----
-5
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2 cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127
query I rowsort
SELECT DISTINCT ( col0 ) * - col1 AS col1 FROM tab1
----
-1040
-640
-78
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab1, tab0 AS cor1
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae
query I rowsort
SELECT 54 FROM tab1, tab1 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT DISTINCT - + cor0.col0 + cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dbfc6e14a516b2f4a3bad04409a815fc
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab1, tab1 AS cor1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823
query I rowsort
SELECT - col1 * cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 * col1 + ( col2 ) * cor0.col1 col2 FROM tab1 AS cor0
----
-14976
-35100
-5130
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0 cor2
----
972 values hashing to 3406497351e4789c89a295ee9b64b201
onlyif mysql # use DIV operator for integer division
query I rowsort label-6085
SELECT + + col2 DIV ( 61 ) AS col0 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6085
SELECT + + col2 / ( 61 ) AS col0 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 - 98 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 25b5ae136348c77b64e0d8f622054990
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT ALL tab2.col1 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL + col1 * cor0.col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL 46 AS col0 FROM tab0
----
46
46
46
query I rowsort
SELECT ALL tab1.col2 * - 0 * + 37 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6092
SELECT cor0.col0 DIV col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6092
SELECT cor0.col0 / col0 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT + + col2 * 29 * cor0.col1 FROM tab1 AS cor0
----
16530
36192
40716
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6095
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6095
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT tab2.col0 AS col0 FROM tab2
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - 54 col1 FROM tab2 AS cor0
----
-1674
-3186
-918
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6098
SELECT col1 + + CAST( NULL AS SIGNED ) * + col2 * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6098
SELECT col1 + + CAST ( NULL AS INTEGER ) * + col2 * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * + 7 FROM tab2 AS cor0
----
49
546
553
query I rowsort
SELECT DISTINCT - 3 FROM tab2, tab0 AS cor0
----
-3
query I rowsort
SELECT - - col0 * col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6102
SELECT DISTINCT tab2.col0 DIV 53 FROM tab2
----
0
1
skipif mysql # not compatible
query I rowsort label-6102
SELECT DISTINCT tab2.col0 / 53 FROM tab2
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 - col0 col1 FROM tab0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6104
SELECT - col2 DIV - 17 AS col2 FROM tab1 AS cor0
----
3
3
5
skipif mysql # not compatible
query I rowsort label-6104
SELECT - col2 / - 17 AS col2 FROM tab1 AS cor0
----
3
3
5
query I rowsort
SELECT + col2 * 1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + col2 * + 15 FROM tab0 cor0
----
1230
15
495
query I rowsort
SELECT ALL - col1 + 37 FROM tab0 AS cor0
----
-49
-54
-60
query I rowsort
SELECT ALL + col2 + + col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT + 40 AS col0 FROM tab1 cor0 CROSS JOIN tab1, tab0 AS cor1
----
40
query I rowsort
SELECT col2 * col2 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6111
SELECT DISTINCT CAST( NULL AS SIGNED ) / col2 + + col0 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6111
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col2 + + col0 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - + 33 AS col2 FROM tab0 AS cor0
----
-33
-33
-33
query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * + 8 + - col2 col0 FROM tab2 AS cor0
----
-174
-275
-498
query I rowsort
SELECT DISTINCT - + col2 + - col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL - ( + col1 ) * col2 * - ( 23 ) + - col1 + col2 * + col0 AS col1 FROM tab1 AS cor0
----
16748
32428
36371
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab0 cor0, tab0
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b
query I rowsort
SELECT DISTINCT - 58 * - tab0.col0 FROM tab0
----
1392
2030
5162
query I rowsort
SELECT DISTINCT + tab1.col1 AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL + ( - 95 ) AS col2 FROM tab2 AS cor0
----
-95
-95
-95
query I rowsort
SELECT DISTINCT col0 * 74 AS col0 FROM tab0 AS cor0
----
1776
2590
6586
query I rowsort
SELECT ALL + 45 * + col2 FROM tab2 AS cor0
----
1170
1215
1710
query I rowsort
SELECT DISTINCT ( - col1 ) * - col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + ( - col0 ) * + col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT ( - cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1 AS cor0
----
3
64
80
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 9af67d6f98010464af5d560bf949d487
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 col0 FROM tab0, tab1 AS cor0
----
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6129
SELECT + col2 + col2 DIV col1 FROM tab2 AS cor0
----
26
27
40
skipif mysql # not compatible
query I rowsort label-6129
SELECT + col2 + col2 / col1 FROM tab2 AS cor0
----
26
27
40
query I rowsort
SELECT col2 AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT col0 * + col0 + - 70 AS col2 FROM tab2
----
-21
6014
6171
query I rowsort
SELECT ALL - col1 * col0 + col2 AS col0 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT + + col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - ( - col2 ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL - 3 * col0 FROM tab2 AS cor0
----
-21
-234
-237
query I rowsort
SELECT cor0.col1 + - col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0
----
26
27
38
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f
query I rowsort
SELECT cor0.col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ( - col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - ( 21 ) AS col1 FROM tab1, tab2 cor0
----
-21
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 AS cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7
query I rowsort
SELECT ALL - ( + col2 ) - 84 FROM tab0 AS cor0
----
-117
-166
-85
query I rowsort
SELECT ALL 71 AS col0 FROM tab1, tab0 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to 39b7515708f32e28b7b5a1bfec0df356
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6145
SELECT ALL - col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL - col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * col0 + + 12 + col2 AS col0 FROM tab0 AS cor0
----
-22
-7204
-747
query I rowsort
SELECT DISTINCT - col1 + cor0.col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + - col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + col2 * + col0 + - col2 AS col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT DISTINCT col2 * - ( + 22 ) + col1 AS col1 FROM tab2 AS cor0
----
-513
-563
-819
query I rowsort
SELECT ALL tab1.col2 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL + ( col0 ) AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT col2 * 91 FROM tab2 AS cor0
----
2366
2457
3458
query I rowsort
SELECT DISTINCT col2 + + col1 AS col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL + col1 * - col1 + + 46 * col1 FROM tab0 AS cor0
----
-3440
-4095
-4947
query I rowsort
SELECT - col1 * - col0 + + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT col1 * - col2 + col2 * col0 FROM tab1 AS cor0
----
-1242
3078
6432
query I rowsort
SELECT ALL - - col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT col2 * + 17 + col1 AS col2 FROM tab0 AS cor0
----
114
1485
647
query I rowsort
SELECT DISTINCT + tab2.col2 + + col1 FROM tab2
----
55
58
85
query I rowsort
SELECT 94 * + col0 AS col1 FROM tab1
----
282
6016
7520
query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab1, tab2, tab0 AS cor0
----
24
35
89
query I rowsort
SELECT col1 * col0 + + ( - tab0.col2 ) * + col1 FROM tab0
----
-774
3298
637
onlyif mysql # use DIV operator for integer division
query I rowsort label-6164
SELECT DISTINCT - col0 DIV - col2 + 85 FROM tab0
----
120
85
86
skipif mysql # not compatible
query I rowsort label-6164
SELECT DISTINCT - col0 / - col2 + 85 FROM tab0
----
120
85
86
query I rowsort
SELECT ALL tab2.col0 + col0 FROM tab2
----
14
156
158
query I rowsort
SELECT DISTINCT + 49 FROM tab1
----
49
query I rowsort
SELECT + tab2.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab2 cor0, tab0 AS cor1
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab1 AS cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
onlyif mysql # use DIV operator for integer division
query I rowsort label-6170
SELECT cor2.col1 DIV + cor1.col0 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0 cor2
----
81 values hashing to 7233f87dfb156c8a83ad6688e1c36b52
skipif mysql # not compatible
query I rowsort label-6170
SELECT cor2.col1 / + cor1.col0 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0 cor2
----
81 values hashing to 7233f87dfb156c8a83ad6688e1c36b52
query IIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab1 AS cor1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9
query I rowsort
SELECT DISTINCT ( + col2 ) * cor0.col2 * col2 FROM tab0 cor0
----
1
35937
551368
query I rowsort
SELECT + 16 FROM tab2
----
16
16
16
onlyif mysql # use DIV operator for integer division
query I rowsort label-6174
SELECT ALL - 91 DIV + col1 FROM tab2
----
-1
-2
-5
skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL - 91 / + col1 FROM tab2
----
-1
-2
-5
query I rowsort
SELECT cor0.col0 AS col0 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1
----
54
57
96
query I rowsort
SELECT 8 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
query I rowsort
SELECT ALL - 15 AS col0 FROM tab1
----
-15
-15
-15
query I rowsort
SELECT DISTINCT 34 AS col0 FROM tab0
----
34
query I rowsort
SELECT + col0 + col1 AS col1 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT - 5 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
-5
query I rowsort
SELECT DISTINCT + + ( + col0 ) + 19 AS col1 FROM tab0 AS cor0
----
108
43
54
query I rowsort
SELECT DISTINCT 85 FROM tab1, tab0 AS cor0, tab0 cor1, tab2 cor2
----
85
query I rowsort
SELECT ALL - 52 * col1 + + col2 + col0 * col2 FROM tab2 cor0
----
-1014
-1396
2156
query I rowsort
SELECT ALL + - col2 FROM tab0 AS cor0
----
-1
-33
-82
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab0 AS cor0, tab1
----
972 values hashing to 5621675b1bd32b061d284d0444c76601
query I rowsort
SELECT DISTINCT 76 FROM tab1
----
76
query I rowsort
SELECT DISTINCT - + 53 + col2 * cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
-17
1060
6760
query I rowsort
SELECT col0 * col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + 85 + - col2 + 76 FROM tab2 cor0
----
123
134
135
query I rowsort
SELECT DISTINCT col0 * - col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT col0 + col0 + - 20 AS col0 FROM tab2
----
-6
136
138
query I rowsort
SELECT DISTINCT 88 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
88
query I rowsort
SELECT - col1 + col1 + - col0 * - col0 AS col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT - col2 + + 47 AS col2 FROM tab2
----
20
21
9
query I rowsort
SELECT DISTINCT - col1 + col0 AS col2 FROM tab2
----
-24
19
62
query I rowsort
SELECT - col1 - - col0 FROM tab1
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 + - 52 col2 FROM tab0
----
2786
45
7410
query I rowsort
SELECT - tab1.col1 AS col1 FROM tab1
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-6200
SELECT ALL - col0 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6200
SELECT ALL - col0 / cor0.col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - - col1 + cor0.col0 FROM tab1 cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6202
SELECT + col2 * - CAST( NULL AS DECIMAL ) + + ( col2 ) + cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6202
SELECT + col2 * - CAST ( NULL AS REAL ) + + ( col2 ) + cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 cor1
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993
query I rowsort
SELECT col2 - col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT col1 * col0 AS col1 FROM tab2
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - - cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ALL + col0 * 10 + + col1 AS col1 FROM tab0 AS cor0
----
326
447
981
query I rowsort
SELECT DISTINCT cor0.col0 * - 47 FROM tab2 AS cor0
----
-329
-3666
-3713
query I rowsort
SELECT DISTINCT + 84 + col2 AS col2 FROM tab1 AS cor0
----
138
141
180
query I rowsort
SELECT + col0 * + 86 + - col2 + - col0 AS col2 FROM tab2 AS cor0
----
568
6604
6677
query I rowsort
SELECT ALL cor0.col2 + + col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT + + col1 AS col0 FROM tab0 AS cor0
----
86
91
97
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab2, tab0 AS cor1
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * cor1.col2 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ede9f33694b1d188a31631cf33240c69
query I rowsort
SELECT DISTINCT - ( 7 ) + cor0.col1 FROM tab2 AS cor0
----
10
24
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6218
SELECT - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6218
SELECT - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6220
SELECT DISTINCT - col0 * col0 DIV col1 FROM tab2 AS cor0
----
-1
-103
-367
skipif mysql # not compatible
query I rowsort label-6220
SELECT DISTINCT - col0 * col0 / col1 FROM tab2 AS cor0
----
-1
-103
-367
query I rowsort
SELECT DISTINCT + ( col0 ) AS col2 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT - col0 * - col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT ALL 68 * col2 FROM tab2 AS cor0
----
1768
1836
2584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6224
SELECT DISTINCT - CAST( - 38 AS SIGNED ) FROM tab2 AS cor0
----
38
skipif mysql # not compatible
query I rowsort label-6224
SELECT DISTINCT - CAST ( - 38 AS INTEGER ) FROM tab2 AS cor0
----
38
query I rowsort
SELECT DISTINCT - cor0.col1 + col1 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL col0 AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + + ( col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + + col2 + + col1 * - col2 AS col2 FROM tab2 cor0
----
-1508
-608
-810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6229
SELECT CAST( ( + col0 ) AS SIGNED ) + 81 * + 63 FROM tab1 AS cor0
----
5106
5167
5183
skipif mysql # not compatible
query I rowsort label-6229
SELECT CAST ( ( + col0 ) AS INTEGER ) + 81 * + 63 FROM tab1 AS cor0
----
5106
5167
5183
query I rowsort
SELECT - + cor0.col0 + - col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT ALL + col2 + - col0 * + col0 AS col1 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT ALL - + 5 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e
query I rowsort
SELECT - 41 FROM tab0
----
-41
-41
-41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6234
SELECT DISTINCT - CAST( col1 AS SIGNED ) AS col1 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-6234
SELECT DISTINCT - CAST ( col1 AS INTEGER ) AS col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT tab1.col2 FROM tab1
----
54
57
96
query I rowsort
SELECT 53 FROM tab1, tab2 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT + - 12 AS col1 FROM tab2 AS cor0
----
-12
-12
-12
query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - col1 * + 22 + cor0.col0 FROM tab2 AS cor0
----
-1220
-295
-675
query I rowsort
SELECT + 51 FROM tab1 AS cor0
----
51
51
51
query I rowsort
SELECT + + col1 + col2 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT + col1 * col0 + - 36 FROM tab1 AS cor0
----
1004
42
604
query I rowsort
SELECT - tab0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT + ( + tab1.col2 ) * - col2 FROM tab1
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-6246
SELECT ALL 21 DIV - col0 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL 21 / - col0 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT + col1 + col2 AS col0 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-6249
SELECT - 21 DIV + col0 AS col1 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-6249
SELECT - 21 / + col0 AS col1 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT + + col1 + col0 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + col2 + 39 AS col1 FROM tab0 cor0
----
121
40
72
query I rowsort
SELECT - cor0.col0 + 11 FROM tab0 cor0
----
-13
-24
-78
query I rowsort
SELECT ALL - - col2 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - - col1 - + col2 AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL + col0 + + 96 FROM tab0 AS cor0
----
120
131
185
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab1
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 - col1 col0 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT ALL col2 + + 36 FROM tab0 AS cor0
----
118
37
69
query I rowsort
SELECT DISTINCT col2 * col1 + + col2 * + col1 + 61 * col1 AS col2 FROM tab0 AS cor0
----
10922
20475
6111
query I rowsort
SELECT col1 - 24 AS col1 FROM tab0 AS cor0
----
62
67
73
query I rowsort
SELECT DISTINCT col1 + col0 AS col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT ALL - - col1 * 58 - col1 FROM tab0 AS cor0
----
4902
5187
5529
query I rowsort
SELECT - - col0 * - ( - cor0.col1 ) + - col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ALL - col0 AS col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT col2 + + col0 AS col1 FROM tab1
----
121
176
57
query I rowsort
SELECT - - cor0.col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + col1 * + col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + - cor0.col2 + cor0.col2 * - col2 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
26
27
38
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f
query I rowsort
SELECT ALL col0 + + ( - 84 * - tab1.col2 ) AS col0 FROM tab1
----
4539
4852
8144
query I rowsort
SELECT + col2 - + 29 AS col0 FROM tab2 AS cor0
----
-2
-3
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6273
SELECT - col2 DIV 91 AS col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6273
SELECT - col2 / 91 AS col0 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6274
SELECT col0 DIV - col1 AS col2 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-6274
SELECT col0 / - col1 AS col2 FROM tab2
----
-1
-4
0
query I rowsort
SELECT ALL - col2 + col1 * + col0 * col1 AS col1 FROM tab0
----
177471
329314
736927
onlyif mysql # use DIV operator for integer division
query I rowsort label-6276
SELECT ALL - col2 * col1 + col1 DIV + col1 col0 FROM tab2
----
-1533
-645
-836
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL - col2 * col1 + col1 / + col1 col0 FROM tab2
----
-1533
-645
-836
query I rowsort
SELECT ALL - col1 AS col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT col2 AS col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT col0 * col2 AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL tab0.col0 AS col1 FROM tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6281
SELECT + col0 DIV col2 AS col2 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6281
SELECT + col0 / col2 AS col2 FROM tab1
----
0
0
1
query I rowsort
SELECT col2 + - tab0.col0 AS col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT DISTINCT + col1 - col2 FROM tab2
----
-21
33
4
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 NOT BETWEEN ( - col2 ) AND NULL
----
query I rowsort
SELECT DISTINCT col0 * col2 * + col2 AS col0 FROM tab2 AS cor0 WHERE NULL < NULL
----
query I rowsort
SELECT cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL col2 * col0 + col0 + col0 AS col0 FROM tab1 AS cor0
----
168
3776
7840
query I rowsort
SELECT + cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + col1 FROM tab1 cor0
----
10
13
26
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col0
----
query I rowsort
SELECT + cor0.col1 * col2 * + col1 AS col2 FROM tab2 AS cor0
----
10982
25947
90506
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * - col2 IN ( + cor0.col0 )
----
query I rowsort
SELECT col0 + - col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT ALL - tab1.col2 + col1 * + col1 AS col1 FROM tab1
----
43
622
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * tab2.col2 + col1 col2 FROM tab2
----
1593
663
868
query I rowsort
SELECT ALL col1 * col0 AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL + col2 * col1 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT col2 * col2 AS col0 FROM tab2
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT col2 + + tab2.col0 * col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT col0 + + col0 AS col2 FROM tab1
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 + col1 col0 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT + col1 + col1 FROM tab0
----
172
182
194
query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT ALL col0 + + col0 FROM tab2
----
14
156
158
query I rowsort
SELECT ALL col0 AS col2 FROM tab2
----
7
78
79
query I rowsort
SELECT col1 + - col0 AS col0 FROM tab0
----
2
62
62
query I rowsort
SELECT + col1 + - col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + - col2 col2 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT col1 * + cor0.col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + col0 * + col2 + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL - col2 AS col1 FROM tab2
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6316
SELECT col2 DIV col1 + + col1 FROM tab1 AS cor0
----
15
20
28
skipif mysql # not compatible
query I rowsort label-6316
SELECT col2 / col1 + + col1 FROM tab1 AS cor0
----
15
20
28
query I rowsort
SELECT ALL - + col0 * col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT - cor0.col0 + col2 * + col0 + + col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
15280
321
7232
query I rowsort
SELECT DISTINCT - col2 * - cor0.col2 * col0 + + col2 FROM tab2 AS cor0
----
114114
5130
52754
query I rowsort
SELECT col0 + + col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT col1 * col0 * + col2 FROM tab1
----
36480
4212
99840
query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1
----
54 values hashing to 341cdc053c309cf3abe57fa060ecf96e
query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 NOT IN ( col0 + col2 * col1 )
----
query I rowsort
SELECT ALL + tab0.col2 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL + cor0.col0 * + col0 + col2 * col2 FROM tab1 AS cor0
----
15616
2925
7345
query I rowsort
SELECT ALL - col0 + col2 + col1 AS col0 FROM tab2 AS cor0
----
-24
51
7
query I rowsort
SELECT + cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0
----
54 values hashing to 2a7467bc6f55dbb61fbd4aa2bd0646a9
query I rowsort
SELECT ALL + col2 AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT - col2 + col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT ALL cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8
query I rowsort
SELECT ALL + cor0.col0 + 23 FROM tab0 AS cor0
----
112
47
58
query I rowsort
SELECT DISTINCT - - col1 + + 16 AS col1 FROM tab0 AS cor0
----
102
107
113
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * - col2 col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - col0 + + col1 + col1 AS col1 FROM tab0 AS cor0
----
148
159
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6339
SELECT ALL col1 * - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-289
-3481
-961
skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL col1 * - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT - + col0 * - ( 58 ) + col2 FROM tab0 AS cor0
----
1425
2031
5244
query I rowsort
SELECT ALL - - cor0.col0 * + 61 AS col1 FROM tab0 AS cor0
----
1464
2135
5429
query I rowsort
SELECT ALL + col1 - col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL + + cor0.col2 + col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT col0 * col0 + col1 AS col0 FROM tab1 AS cor0
----
35
4106
6413
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6345
SELECT col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6345
SELECT col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * 43 AS col0 FROM tab0 AS cor0
----
-3698
-3913
-4171
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 + - cor0.col2 col0 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + col1 * col2 + col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT col0 - - tab0.col0 AS col0 FROM tab0
----
178
48
70
query I rowsort
SELECT 73 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
query I rowsort
SELECT + col0 + col1 + + col1 FROM tab2
----
113
196
69
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab1 AS cor0, tab0
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7
query I rowsort
SELECT col1 * + col0 FROM tab1
----
1040
640
78
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab1 AS cor0, tab0 AS cor1
----
972 values hashing to 95920403df268a272c4e933cd0bbe0be
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6356
SELECT - CAST( NULL AS SIGNED ) * + 71 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-6356
SELECT - CAST ( NULL AS INTEGER ) * + 71 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-6357
SELECT + col2 DIV 96 + col0 * col2 FROM tab0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-6357
SELECT + col2 / 96 + col0 * col2 FROM tab0
----
35
7298
792
query IIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 3406497351e4789c89a295ee9b64b201
query I rowsort
SELECT - col2 * - col1 + + col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT - col0 - - 9 AS col2 FROM tab0 AS cor0
----
-15
-26
-80
query I rowsort
SELECT + col1 + 71 AS col2 FROM tab0 AS cor0
----
157
162
168
query I rowsort
SELECT DISTINCT - + col0 + 72 AS col1 FROM tab1 AS cor0
----
-8
69
8
query I rowsort
SELECT - col2 + ( cor0.col2 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - col2 * + cor0.col1 AS col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL + - col0 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6367
SELECT - + col0 + col1 DIV col0 FROM tab1 AS cor0
----
-64
-80
5
skipif mysql # not compatible
query I rowsort label-6367
SELECT - + col0 + col1 / col0 FROM tab1 AS cor0
----
-64
-80
5
query I rowsort
SELECT DISTINCT - cor0.col0 + 34 FROM tab0 AS cor0
----
-1
-55
10
query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
query I rowsort
SELECT ALL + - col2 * + 47 AS col0 FROM tab0 AS cor0
----
-1551
-3854
-47
onlyif mysql # use DIV operator for integer division
query I rowsort label-6371
SELECT DISTINCT - col1 DIV col2 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-6371
SELECT DISTINCT - col1 / col2 FROM tab0
----
-1
-2
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6372
SELECT DISTINCT col0 * col0 DIV - col2 col2 FROM tab1
----
-66
-71
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6372
SELECT DISTINCT col0 * col0 / - col2 col2 FROM tab1
----
-66
-71
0
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 - col1 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT col0 * col1 * col1 FROM tab1
----
13520
2028
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-6375
SELECT DISTINCT col2 DIV col2 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-6375
SELECT DISTINCT col2 / col2 FROM tab0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6376
SELECT ALL + col2 DIV + col0 AS col1 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL + col2 / + col0 AS col1 FROM tab0
----
0
0
1
query I rowsort
SELECT ALL col1 + + col1 + + col1 FROM tab1
----
30
39
78
query I rowsort
SELECT ALL - col2 AS col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL + tab2.col1 FROM tab2
----
17
31
59
query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) >= col2 + col0 * - col0
----
64
10
57
80
13
96
query I rowsort
SELECT col0 + col0 FROM tab0
----
178
48
70
query I rowsort
SELECT - col0 AS col0 FROM tab0
----
-24
-35
-89
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + col1 NOT IN ( - col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT ALL - col2 + - col2 * col1 * col2 + col0 AS col2 FROM tab0
----
-611877
-63
-93663
query I rowsort
SELECT + col2 * - col1 AS col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + col0 * tab0.col0 AS col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT DISTINCT tab1.col1 + + col1 + - col2 AS col1 FROM tab1
----
-2
-37
-70
query I rowsort
SELECT DISTINCT + tab0.col2 * + col1 * col0 AS col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT + col0 + - col1 + col1 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * col2 * - col2 col2 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT + col0 + col0 + + col2 * col0 AS col2 FROM tab0
----
105
7476
840
onlyif mysql # use DIV operator for integer division
query I rowsort label-6392
SELECT DISTINCT + col1 DIV col0 AS col1 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-6392
SELECT DISTINCT + col1 / col0 AS col1 FROM tab0
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-6393
SELECT + tab1.col1 DIV col0 + + col1 FROM tab1
----
10
13
34
skipif mysql # not compatible
query I rowsort label-6393
SELECT + tab1.col1 / col0 + + col1 FROM tab1
----
10
13
34
query I rowsort
SELECT + col0 * - col1 - col0 AS col2 FROM tab0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT col2 + - col1 + tab1.col1 AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT col2 * col2 AS col0 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT col0 * - col1 * - col2 FROM tab2
----
119652
51034
5859
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6399
SELECT ALL col0 DIV col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL col0 / col0 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT - + col1 + - col1 * + 13 FROM tab0 AS cor0
----
-1204
-1274
-1358
query I rowsort
SELECT + + col2 + - col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6402
SELECT DISTINCT + col2 DIV + col1 + 89 * - col1 AS col0 FROM tab1
----
-1150
-2312
-885
skipif mysql # not compatible
query I rowsort label-6402
SELECT DISTINCT + col2 / + col1 + 89 * - col1 AS col0 FROM tab1
----
-1150
-2312
-885
query I rowsort
SELECT DISTINCT col1 + - tab1.col0 * col1 AS col0 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT - 24 * - col2 AS col1 FROM tab2
----
624
648
912
query I rowsort
SELECT + col0 + col1 * col2 + - 18 AS col2 FROM tab0
----
114
2844
7533
query IIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab2 AS cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b
query I rowsort
SELECT ALL - col2 * + col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT col2 - col1 * - col2 FROM tab0 cor0
----
2871
7544
98
query I rowsort
SELECT ALL + ( - col2 ) AS col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT 29 AS col2 FROM tab2 AS cor0
----
29
query I rowsort
SELECT + cor0.col1 * col0 + + cor0.col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL 8 AS col0 FROM tab2 AS cor0
----
8
8
8
query I rowsort
SELECT ALL + + col2 + col1 * ( col1 ) FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT DISTINCT - - col2 + + col0 AS col2 FROM tab0 cor0
----
171
36
57
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-6416
SELECT DISTINCT + col0 * + 34 + col0 DIV col0 FROM tab1 AS cor0
----
103
2177
2721
skipif mysql # not compatible
query I rowsort label-6416
SELECT DISTINCT + col0 * + 34 + col0 / col0 FROM tab1 AS cor0
----
103
2177
2721
query I rowsort
SELECT DISTINCT col2 + 9 * - col2 FROM tab2 AS cor0
----
-208
-216
-304
query I rowsort
SELECT + + col1 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - col0 + 83 AS col1 FROM tab1 AS cor0
----
19
3
80
query I rowsort
SELECT - - col2 + 11 FROM tab1 AS cor0
----
107
65
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-6421
SELECT ALL + col2 * 75 + + col1 DIV col0 FROM tab1 AS cor0
----
4058
4275
7200
skipif mysql # not compatible
query I rowsort label-6421
SELECT ALL + col2 * 75 + + col1 / col0 FROM tab1 AS cor0
----
4058
4275
7200
query I rowsort
SELECT col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL col0 - + cor0.col1 * + ( col1 ) FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT + col0 * ( col1 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + col2 + cor0.col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL - - col2 + - 16 FROM tab1 AS cor0
----
38
41
80
query I rowsort
SELECT + - col1 * + ( - 15 ) FROM tab0 AS cor0
----
1290
1365
1455
query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 + + ( + cor0.col0 ) col1 FROM tab2 AS cor0
----
101
172
173
query I rowsort
SELECT ALL + cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
onlyif mysql # use DIV operator for integer division
query I rowsort label-6431
SELECT - + 75 * cor0.col2 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
-28
-67
0
skipif mysql # not compatible
query I rowsort label-6431
SELECT - + 75 * cor0.col2 / cor0.col1 AS col0 FROM tab0 AS cor0
----
-28
-67
0
query I rowsort
SELECT ALL + 72 FROM tab2, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT + col2 + + 86 FROM tab1
----
140
143
182
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6434
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6434
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-6435
SELECT DISTINCT + col0 DIV - 46 AS col0 FROM tab2
----
-1
0
skipif mysql # not compatible
query I rowsort label-6435
SELECT DISTINCT + col0 / - 46 AS col0 FROM tab2
----
-1
0
query I rowsort
SELECT DISTINCT - col2 - col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT + - 0 * col0 FROM tab0 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT DISTINCT cor0.col1 - + cor0.col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - ( col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6441
SELECT ( - cor0.col0 ) * CAST( + 33 AS SIGNED ) - - col0 FROM tab0 AS cor0
----
-1120
-2848
-768
skipif mysql # not compatible
query I rowsort label-6441
SELECT ( - cor0.col0 ) * CAST ( + 33 AS INTEGER ) - - col0 FROM tab0 AS cor0
----
-1120
-2848
-768
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab0 cor1, tab0 AS cor2
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 col1 FROM tab0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6444
SELECT CAST( NULL AS SIGNED ) + + col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6444
SELECT CAST ( NULL AS INTEGER ) + + col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * - col2 + + tab0.col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT DISTINCT col0 + col0 FROM tab0
----
178
48
70
query I rowsort
SELECT - ( col2 ) * - 7 FROM tab1
----
378
399
672
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6448
SELECT 4 * col1 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6448
SELECT 4 * col1 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + 50 + col0 FROM tab1
----
114
130
53
query I rowsort
SELECT + tab2.col2 + col2 * col1 FROM tab2
----
1560
684
864
query I rowsort
SELECT - tab1.col1 * - ( 79 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 9f356c92ad187127dc66b1253be8643b
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab2 AS cor0, tab1
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
query I rowsort
SELECT DISTINCT + 51 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
51
query I rowsort
SELECT - col2 * tab0.col2 FROM tab0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-6455
SELECT DISTINCT 87 DIV col1 + tab0.col2 FROM tab0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-6455
SELECT DISTINCT 87 / col1 + tab0.col2 FROM tab0
----
1
34
82
query I rowsort
SELECT col1 + col2 * - col1 AS col0 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT + col0 * + tab1.col0 + 47 + - col2 FROM tab1
----
2
4086
6351
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col1 col1 FROM tab2
----
0
query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL 0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT ALL - ( - col0 ) * col1 * col0 + col2 FROM tab1 AS cor0
----
288
41017
83296
onlyif mysql # use DIV operator for integer division
query I rowsort label-6462
SELECT ALL + + col0 * col1 + - 81 DIV col1 FROM tab2 AS cor0
----
1339
215
4601
skipif mysql # not compatible
query I rowsort label-6462
SELECT ALL + + col0 * col1 + - 81 / col1 FROM tab2 AS cor0
----
1339
215
4601
query I rowsort
SELECT ALL col0 + tab0.col0 AS col1 FROM tab0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 col0 FROM tab2
----
289
3481
961
query I rowsort
SELECT ALL + + 65 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c
query I rowsort
SELECT + + col0 * - col0 AS col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL - col1 + col2 * col2 * + col1 AS col0 FROM tab2
----
22568
24531
39825
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1, tab0 cor0
----
24
35
89
query I rowsort
SELECT - col2 * + col1 AS col0 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT col2 * col2 - col2 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL 57 FROM tab1
----
57
57
57
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab1 cor0
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
query I rowsort
SELECT DISTINCT col0 * col1 AS col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT + tab1.col2 * col1 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - col0 - col2 * col0 FROM tab0
----
-70
-7387
-816
query I rowsort
SELECT col0 * + col1 - - col0 AS col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT + tab1.col1 * col2 FROM tab1
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col0 col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL - col2 * + col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT - col0 * col1 - col0 * - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col1 - col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab1, tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT 5 + - col0 * tab2.col0 FROM tab2
----
-44
-6079
-6236
query I rowsort
SELECT - 3 FROM tab1
----
-3
-3
-3
query I rowsort
SELECT 88 AS col1 FROM tab2
----
88
88
88
query I rowsort
SELECT DISTINCT + ( - col2 ) AS col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL ( 20 ) FROM tab2
----
20
20
20
query I rowsort
SELECT col1 + + col1 * + col1 FROM tab1
----
110
182
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-6490
SELECT ALL - col1 DIV 5 AS col2 FROM tab2
----
-11
-3
-6
skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL - col1 / 5 AS col2 FROM tab2
----
-11
-3
-6
query I rowsort
SELECT DISTINCT 91 FROM tab1
----
91
query I rowsort
SELECT DISTINCT col2 * + tab1.col2 AS col0 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT + col2 * col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT - 7 * col2 FROM tab1 AS cor0
----
-378
-399
-672
query I rowsort
SELECT DISTINCT - 6 * + cor0.col1 FROM tab0 AS cor0
----
-516
-546
-582
query I rowsort
SELECT col1 * + col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - 21 AS col1 FROM tab2
----
-21
-21
-21
query I rowsort
SELECT - col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT + col1 + col0 * + col2 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT - ( col2 ) * col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT 91 + + col0 FROM tab2 AS cor0
----
169
170
98
query I rowsort
SELECT col0 + col0 * + col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT ALL cor0.col2 * col1 * - col1 AS col0 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT - + col1 * - col2 FROM tab2 cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-6505
SELECT - col0 DIV + col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-6505
SELECT - col0 / + col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT - - col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL col1 * + tab0.col2 AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - 84 * col0 AS col2 FROM tab2
----
-588
-6552
-6636
query I rowsort
SELECT 75 FROM tab2
----
75
75
75
query I rowsort
SELECT ( + col1 ) * - col0 FROM tab1
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6513
SELECT - - CAST( NULL AS SIGNED ) col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6513
SELECT - - CAST ( NULL AS INTEGER ) col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6514
SELECT CAST( 20 AS SIGNED ) FROM tab1
----
20
20
20
skipif mysql # not compatible
query I rowsort label-6514
SELECT CAST ( 20 AS INTEGER ) FROM tab1
----
20
20
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-6515
SELECT DISTINCT - ( + ( + col1 ) ) DIV + tab0.col2 AS col0 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-6515
SELECT DISTINCT - ( + ( + col1 ) ) / + tab0.col2 AS col0 FROM tab0
----
-1
-2
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6516
SELECT CAST( col1 AS SIGNED ) DIV - col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6516
SELECT CAST ( col1 AS INTEGER ) / - col1 FROM tab1 AS cor0
----
-1
-1
-1
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7
query I rowsort
SELECT + - ( col0 ) * + col0 AS col2 FROM tab2 cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 * - col0 col2 FROM tab1
----
-1600
-2000
-75
query I rowsort
SELECT ALL col2 * col1 + col0 AS col2 FROM tab1
----
1328
1407
634
query I rowsort
SELECT + 35 * col1 - + col0 FROM tab1
----
286
375
907
query I rowsort
SELECT + tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6523
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col2 + - col2 + + 24 * - tab0.col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-6523
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col2 + - col2 + + 24 * - tab0.col2 FROM tab0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6524
SELECT col0 DIV col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6524
SELECT col0 / col0 FROM tab2 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6525
SELECT - 87 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
-3
-6
-8
skipif mysql # not compatible
query I rowsort label-6525
SELECT - 87 / cor0.col1 AS col2 FROM tab1 AS cor0
----
-3
-6
-8
query I rowsort
SELECT - + col2 * col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - 56 FROM tab0
----
-56
query I rowsort
SELECT - 65 * col0 + col2 * 28 FROM tab2
----
-4071
-4342
301
query I rowsort
SELECT - 91 FROM tab1 AS cor0
----
-91
-91
-91
query I rowsort
SELECT DISTINCT - cor0.col1 + col1 * + col2 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT - cor0.col1 * + col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - - ( col2 ) + - col0 * - col1 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT + col2 * + col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - col2 + + col0 AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL - col1 * + col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT 74 AS col1 FROM tab2
----
74
74
74
query I rowsort
SELECT cor0.col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-6538
SELECT ALL + - col1 + cor0.col2 DIV - ( col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL + - col1 + cor0.col2 / - ( col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - + col0 AS col1 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT + ( col0 ) * 7 * 79 + cor0.col1 AS col1 FROM tab2 AS cor0
----
3902
43193
43704
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 79 * col2 col0 FROM tab2 AS cor0
----
2054
2133
3002
query I rowsort
SELECT ALL col1 * col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + col2 + col0 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - + cor0.col0 + col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT + cor0.col0 + + col1 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - col1 * - col0 AS col0 FROM tab1
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6547
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to 19a23ac6b759f8988954bf75ba7c431a
onlyif mysql # use DIV operator for integer division
query I rowsort label-6549
SELECT ALL col1 DIV - col0 - + col2 AS col2 FROM tab0
----
-3
-36
-83
skipif mysql # not compatible
query I rowsort label-6549
SELECT ALL col1 / - col0 - + col2 AS col2 FROM tab0
----
-3
-36
-83
query I rowsort
SELECT + - col0 + + ( ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT col1 + col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT + col2 - col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + - cor0.col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + col1 * + col2 + - ( col2 ) * col0 FROM tab1 AS cor0
----
-3078
-6432
1242
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666
query I rowsort
SELECT ( + 96 ) + + col2 AS col1 FROM tab2 cor0
----
122
123
134
query I rowsort
SELECT DISTINCT + ( + col2 ) * col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - ( - col2 ) + + col1 + + ( cor0.col1 ) AS col1 FROM tab2 AS cor0
----
144
72
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6559
SELECT + 53 DIV - col0 AS col1 FROM tab1 AS cor0
----
-17
0
0
skipif mysql # not compatible
query I rowsort label-6559
SELECT + 53 / - col0 AS col1 FROM tab1 AS cor0
----
-17
0
0
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab0 AS cor1
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL - cor1.col1 AS col1 FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
54 values hashing to 018801f36b33d2fe82cb95918ba502d6
query I rowsort
SELECT col0 * + 69 FROM tab1
----
207
4416
5520
query I rowsort
SELECT DISTINCT 74 FROM tab0, tab0 AS cor0
----
74
query I rowsort
SELECT DISTINCT col0 - ( col1 ) FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - + 85 * + col2 + + col0 * col2 * - 52 FROM tab0 AS cor0
----
-1905
-386466
-43989
query I rowsort
SELECT - + col1 + - 56 AS col0 FROM tab0 AS cor0
----
-142
-147
-153
query I rowsort
SELECT DISTINCT - ( col1 ) + - col0 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-6570
SELECT ALL col1 * col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL col1 * col0 / + col1 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - ( 1 ) + - col0 FROM tab0 cor0
----
-25
-36
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6572
SELECT ALL - - CAST( - col1 AS SIGNED ) + col1 - 33 FROM tab0 AS cor0
----
-33
-33
-33
skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL - - CAST ( - col1 AS INTEGER ) + col1 - 33 FROM tab0 AS cor0
----
-33
-33
-33
onlyif mysql # use DIV operator for integer division
query I rowsort label-6573
SELECT + ( + cor0.col1 ) DIV col0 + 47 FROM tab0 AS cor0
----
48
49
50
skipif mysql # not compatible
query I rowsort label-6573
SELECT + ( + cor0.col1 ) / col0 + 47 FROM tab0 AS cor0
----
48
49
50
query I rowsort
SELECT ALL + 63 AS col0 FROM tab2 AS cor0
----
63
63
63
query I rowsort
SELECT - - col1 * 65 + col1 FROM tab0 AS cor0
----
5676
6006
6402
query I rowsort
SELECT DISTINCT - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT 79 FROM tab1 AS cor0
----
79
79
79
query I rowsort
SELECT - 64 * - col1 - col2 FROM tab0 AS cor0
----
5471
5742
6207
query I rowsort
SELECT ALL col1 * + 38 + col0 AS col2 FROM tab1 cor0
----
444
574
991
query I rowsort
SELECT DISTINCT - col1 * + col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + - col2 * + ( col2 ) + ( cor0.col0 ) * cor0.col0 FROM tab0 AS cor0
----
-513
1197
1224
query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + col1 * - ( col0 ) + 70 AS col0 FROM tab0 cor0
----
-1994
-3325
-8029
query I rowsort
SELECT ALL + - col1 + + 38 AS col2 FROM tab0 AS cor0
----
-48
-53
-59
query I rowsort
SELECT ALL + tab0.col0 AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL col0 AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL col0 - - 55 * - col0 AS col2 FROM tab1
----
-162
-3456
-4320
query I rowsort
SELECT - ( ( cor0.col0 ) ) * col1 AS col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - 16 * 43 AS col0 FROM tab0 cor0
----
-688
onlyif mysql # use DIV operator for integer division
query I rowsort label-6591
SELECT DISTINCT - + col1 DIV 15 AS col1 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-6591
SELECT DISTINCT - + col1 / 15 AS col1 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT ALL + col0 + - 79 * + col1 * - 16 FROM tab0 AS cor0
----
108728
115113
122643
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) + - col0 * col2 col1 FROM tab1 cor0
----
-188
-3658
-7693
query I rowsort
SELECT - col2 * 72 + - col2 AS col2 FROM tab0 AS cor0
----
-2409
-5986
-73
query I rowsort
SELECT DISTINCT - 76 FROM tab2 AS cor0
----
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 col2 FROM tab1 AS cor0
----
29
74
93
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4
query I rowsort
SELECT 0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
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 - col0 + - cor0.col1 + - col1 * - col0 * + col0 AS col0 FROM tab1 AS cor0
----
205
40886
83107
query I rowsort
SELECT + + col1 + col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT + 91 FROM tab0
----
91
91
91
query I rowsort
SELECT - tab2.col2 * + 36 AS col1 FROM tab2
----
-1368
-936
-972
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 617c9545df26d6d983e3967864e8e9e4
query I rowsort
SELECT ALL + + cor0.col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - col0 * col2 * col0 AS col1 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT cor0.col1 * - 69 FROM tab1 AS cor0
----
-1794
-690
-897
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6608
SELECT - col1 * CAST( NULL AS DECIMAL ) 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-6608
SELECT - col1 * CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT col2 * - 35 - col1 AS col1 FROM tab2
----
-1347
-969
-976
onlyif mysql # use DIV operator for integer division
query I rowsort label-6611
SELECT col0 DIV + 46 FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-6611
SELECT col0 / + 46 FROM tab2
----
0
1
1
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab1 AS cor0, tab2 AS cor1
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766
query I rowsort
SELECT col2 + - col1 + - col0 AS col2 FROM tab1
----
-17
25
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-6614
SELECT + col0 DIV - 93 + - ( col2 ) + col0 AS col0 FROM tab2
----
-20
41
52
skipif mysql # not compatible
query I rowsort label-6614
SELECT + col0 / - 93 + - ( col2 ) + col0 AS col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT col0 + 44 AS col0 FROM tab0
----
133
68
79
query I rowsort
SELECT + cor0.col2 * col0 + 23 FROM tab2 AS cor0
----
2051
212
3025
query I rowsort
SELECT ALL - col1 + - col2 * - col1 FROM tab1 cor0
----
1235
1378
560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6618
SELECT ALL + + col0 + + CAST( NULL AS DECIMAL ) - col0 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-6618
SELECT ALL + + col0 + + CAST ( NULL AS REAL ) - col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor1.col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT + col2 * - 87 + col0 + col0 FROM tab0
----
-17
-2823
-6956
query I rowsort
SELECT + col1 + 32 AS col2 FROM tab0 AS cor0
----
118
123
129
query I rowsort
SELECT DISTINCT col2 + ( col1 * - col2 ) AS col1 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT col0 + - col2 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-6624
SELECT + 45 * tab1.col0 + 71 * - tab1.col0 + + col1 DIV - tab1.col2 AS col0 FROM tab1
----
-1664
-2080
-78
skipif mysql # not compatible
query I rowsort label-6624
SELECT + 45 * tab1.col0 + 71 * - tab1.col0 + + col1 / - tab1.col2 AS col0 FROM tab1
----
-1664
-2080
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6625
SELECT ALL 65 + col2 + + col2 DIV - 3 FROM tab2
----
83
83
91
skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL 65 + col2 + + col2 / - 3 FROM tab2
----
83
83
91
query I rowsort
SELECT - col1 * + col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + - cor0.col1 * + col2 AS col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT col1 - col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL + + col0 * + col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col1 * + col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - col0 + + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - col2 - - col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT - 89 AS col2 FROM tab0 AS cor0
----
-89
query I rowsort
SELECT ALL ( - col2 ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + + 28 * col2 - col1 FROM tab2 cor0
----
1047
669
725
query I rowsort
SELECT - col1 - col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT - - 1 * + col0 + - ( 71 ) * col1 FROM tab2 AS cor0
----
-1128
-2194
-4111
query I rowsort
SELECT - cor0.col1 + col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col0 * col1 AS col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - + 13 AS col1 FROM tab1 AS cor0
----
-13
-13
-13
query I rowsort
SELECT - - col0 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + - col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + 11 FROM tab2, tab1 AS cor0
----
11
query I rowsort
SELECT - col0 + 75 FROM tab2 AS cor0
----
-3
-4
68
query I rowsort
SELECT ALL col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT + - col2 + col2 + + ( col2 + col0 * 75 ) FROM tab2 AS cor0
----
552
5876
5963
query I rowsort
SELECT ALL - - cor0.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-6649
SELECT ALL + col1 / - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL + col1 / - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to 635619591835474e6aa6acdff4ab166c
query I rowsort
SELECT col1 + col0 AS col0 FROM tab2
----
137
38
96
query I rowsort
SELECT - + col2 FROM tab0 cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6653
SELECT ALL + col0 + col0 DIV - cor0.col0 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL + col0 + col0 / - cor0.col0 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT - ( + ( cor0.col0 ) ) + + col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT + - col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + 14 - col0 FROM tab1 AS cor0
----
-50
-66
11
query I rowsort
SELECT ALL + ( 10 ) + col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1258
1414
580
query I rowsort
SELECT + ( tab0.col1 * + col1 ) + col1 * 60 AS col0 FROM tab0
----
12556
13741
15229
query I rowsort
SELECT ( col1 + - col0 ) FROM tab2
----
-19
-62
24
query I rowsort
SELECT DISTINCT - col1 + + col0 AS col2 FROM tab0 cor0
----
-2
-62
query I rowsort
SELECT - ( + col1 ) FROM tab1 AS cor0
----
-10
-13
-26
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 0c9c9a26da1b45580001288543ac8dbe
query I rowsort
SELECT - + col0 * + col2 FROM tab2 cor0
----
-189
-2028
-3002
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d
query I rowsort
SELECT cor0.col2 + col2 FROM tab0 AS cor0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT 96 FROM tab1 cor0
----
96
96
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6668
SELECT ALL CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( 27 ) - - cor0.col0 FROM tab2 cor0
----
105
106
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6670
SELECT DISTINCT - 20 + + col1 DIV col2 FROM tab1 AS cor0
----
-20
skipif mysql # not compatible
query I rowsort label-6670
SELECT DISTINCT - 20 + + col1 / col2 FROM tab1 AS cor0
----
-20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6671
SELECT + CAST( NULL AS DECIMAL ) * + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6671
SELECT + CAST ( NULL AS REAL ) * + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 63ccb67e72ebac679a0221202c067b9e
onlyif mysql # use DIV operator for integer division
query I rowsort label-6673
SELECT ALL - ( + col0 ) DIV - col2 + - col1 * - 74 * cor0.col0 AS col2 FROM tab1 cor0
----
47361
5772
76960
skipif mysql # not compatible
query I rowsort label-6673
SELECT ALL - ( + col0 ) / - col2 + - col1 * - 74 * cor0.col0 AS col2 FROM tab1 cor0
----
47361
5772
76960
query I rowsort
SELECT 92 FROM tab2 AS cor0
----
92
92
92
query I rowsort
SELECT ALL + 64 FROM tab2
----
64
64
64
query I rowsort
SELECT DISTINCT - - 4 * col0 + + col2 FROM tab2 AS cor0
----
338
354
55
query I rowsort
SELECT col1 + + col1 * + ( col1 ) FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT ALL + + col0 * col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - col1 - col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT - col1 + + cor0.col0 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT + + 19 * col1 + col2 * col0 FROM tab1 AS cor0
----
3838
656
7927
query I rowsort
SELECT DISTINCT + col1 * - 42 FROM tab1
----
-1092
-420
-546
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6683
SELECT 86 + ( - tab2.col2 ) * CAST( + cor0.col2 AS SIGNED ) AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 9deb87d034b6375cd64a9bd8b2ee4edc
skipif mysql # not compatible
query I rowsort label-6683
SELECT 86 + ( - tab2.col2 ) * CAST ( + cor0.col2 AS INTEGER ) AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 9deb87d034b6375cd64a9bd8b2ee4edc
query I rowsort
SELECT DISTINCT + 60 FROM tab2
----
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6685
SELECT + CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6685
SELECT + CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - 58 FROM tab1, tab2 AS cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col0 FROM tab0
----
85
85
85
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab1 AS cor1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242
query I rowsort
SELECT + col2 * - col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - cor0.col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - 80 * + col1 * col2 AS col0 FROM tab0 cor0
----
-227040
-596960
-7760
query I rowsort
SELECT tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT 37 * tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 6e2d8808bd4257c36cb5fc1462c54827
query I rowsort
SELECT ALL - 7 FROM tab2, tab0 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5
query I rowsort
SELECT - col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ( - 31 ) FROM tab0
----
-31
-31
-31
query I rowsort
SELECT + 26 * + tab1.col1 AS col0 FROM tab1
----
260
338
676
query I rowsort
SELECT DISTINCT + + col2 + + col0 * col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT - - col2 * + ( + col1 ) - col2 FROM tab1 AS cor0
----
1152
1350
513
onlyif mysql # use DIV operator for integer division
query I rowsort label-6700
SELECT ALL - + col2 * - ( - 22 ) + + col2 DIV col1 FROM tab0 AS cor0
----
-1804
-22
-726
skipif mysql # not compatible
query I rowsort label-6700
SELECT ALL - + col2 * - ( - 22 ) + + col2 / col1 FROM tab0 AS cor0
----
-1804
-22
-726
query I rowsort
SELECT tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT tab1.col0 + - col0 + 48 AS col0 FROM tab1
----
48
48
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 col2 FROM tab0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 * col2 * CAST ( 5 AS REAL ) + col0 * + col0 col2 FROM tab2
----
16224
21251
994
query I rowsort
SELECT ALL - 48 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2558735eaa258a08592aef9d33020c18
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 8420206d6932c454f05a38de634b3cb5
query I rowsort
SELECT DISTINCT + 41 FROM tab2
----
41
query I rowsort
SELECT ALL 2 FROM tab0
----
2
2
2
query I rowsort
SELECT ALL + 87 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50
query I rowsort
SELECT - 89 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e
query I rowsort
SELECT - col1 * + 43 AS col0 FROM tab0 AS cor0
----
-3698
-3913
-4171
query I rowsort
SELECT 7 + + 48 AS col1 FROM tab2 AS cor0
----
55
55
55
query I rowsort
SELECT + col1 + - 79 AS col1 FROM tab0
----
12
18
7
query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab1 AS cor1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab0, tab0 cor1
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0
query I rowsort
SELECT DISTINCT + col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT DISTINCT 74 + + col2 * col0 AS col0 FROM tab0 cor0
----
109
7372
866
query I rowsort
SELECT 36 * col0 * + col0 AS col1 FROM tab2 cor0
----
1764
219024
224676
query I rowsort
SELECT - 76 + col1 AS col2 FROM tab2 AS cor0
----
-17
-45
-59
query I rowsort
SELECT + col0 * - cor0.col0 * + col0 FROM tab2 AS cor0
----
-343
-474552
-493039
query I rowsort
SELECT + col0 + col1 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - col0 * col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - ( col0 ) * col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - 0 * col1 + + col2 FROM tab2 cor0
----
26
27
38
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b
query I rowsort
SELECT ALL - col1 * - 20 * 12 FROM tab2 cor0
----
14160
4080
7440
query I rowsort
SELECT - col0 * col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1
query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6730
SELECT ALL + col2 * + CAST( NULL AS DECIMAL ) * - 42 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL + col2 * + CAST ( NULL AS REAL ) * - 42 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col1 * + 6 AS col1 FROM tab1 AS cor0
----
-156
-60
-78
query I rowsort
SELECT DISTINCT + col2 * col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 cor1
----
54 values hashing to fe43263cad63144a098cccb9cd58c32a
query I rowsort
SELECT ALL col2 - - col2 AS col0 FROM tab0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab1
----
3
64
80
query I rowsort
SELECT col0 + - ( + col0 ) AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT + col2 + col0 AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT + col2 + + 78 AS col2 FROM tab0
----
111
160
79
query I rowsort
SELECT DISTINCT col2 + - 98 FROM tab2
----
-60
-71
-72
query I rowsort
SELECT ALL - col0 + col0 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT - col1 + + 48 AS col2 FROM tab1
----
22
35
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col1 + ( - 46 + - col2 ) * ( 25 ) col2 FROM tab0
----
-1078
-1889
-3109
query I rowsort
SELECT - 49 FROM tab2, tab1 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae
query I rowsort
SELECT + col1 + 66 FROM tab2 AS cor0
----
125
83
97
query I rowsort
SELECT + tab2.col0 + ( col0 ) * col1 FROM tab2
----
1422
224
4680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6746
SELECT col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6746
SELECT col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6747
SELECT DISTINCT tab0.col0 DIV - tab0.col1 + 75 AS col1 FROM tab0
----
75
skipif mysql # not compatible
query I rowsort label-6747
SELECT DISTINCT tab0.col0 / - tab0.col1 + 75 AS col1 FROM tab0
----
75
query IIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab0 cor0
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
query I rowsort
SELECT 28 FROM tab0
----
28
28
28
query I rowsort
SELECT ALL + 11 FROM tab1 AS cor0
----
11
11
11
query I rowsort
SELECT - - 84 + col0 AS col1 FROM tab0 AS cor0
----
108
119
173
query I rowsort
SELECT DISTINCT + ( col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - - 82 FROM tab2 AS cor0
----
82
query I rowsort
SELECT 91 AS col0 FROM tab0
----
91
91
91
query I rowsort
SELECT DISTINCT - col2 * col2 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT ( 66 ) FROM tab1
----
66
66
66
query I rowsort
SELECT ALL col2 * 15 FROM tab0
----
1230
15
495
query I rowsort
SELECT ALL - 91 FROM tab0
----
-91
-91
-91
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab0 cor1
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d
query I rowsort
SELECT + cor1.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab2
----
7
78
79
query I rowsort
SELECT + col0 AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT - 61 + - col1 * 10 + tab2.col0 FROM tab2
----
-152
-364
-573
query I rowsort
SELECT + 69 + + col2 AS col1 FROM tab1 AS cor0
----
123
126
165
query I rowsort
SELECT + + col2 * - col0 - - 90 * 67 AS col0 FROM tab0 AS cor0
----
-1268
5238
5995
onlyif mysql # use DIV operator for integer division
query I rowsort label-6766
SELECT + 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-6766
SELECT + col2 / col0 col0 FROM tab1
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 * - cor0.col0 col1 FROM tab1 AS cor0
----
-1136
-132
-697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + col0 * + col1 col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT - col0 + col2 - col1 FROM tab0 cor0
----
-131
-77
-98
query I rowsort
SELECT - - col0 + - col2 AS col1 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT ALL - - 71 FROM tab0 AS cor0
----
71
71
71
query I rowsort
SELECT - 60 * cor0.col0 + col1 FROM tab0 AS cor0
----
-1354
-2003
-5249
query I rowsort
SELECT ALL + col0 * col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - col1 * + col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL 72 - col2 AS col2 FROM tab0 AS cor0
----
-10
39
71
query I rowsort
SELECT cor0.col1 AS col0 FROM tab1 cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-6777
SELECT DISTINCT col0 * col2 DIV col2 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-6777
SELECT DISTINCT col0 * col2 / col2 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - + col0 + - col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT col2 * + col2 * - ( + col0 ) + col2 FROM tab0 AS cor0
----
-26103
-34
-598354
onlyif mysql # use DIV operator for integer division
query I rowsort label-6780
SELECT cor0.col0 DIV col1 AS col0 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-6780
SELECT cor0.col0 / col1 AS col0 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT ALL - + col1 FROM tab0 AS cor0
----
-86
-91
-97
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab1 cor0
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998
onlyif mysql # use DIV operator for integer division
query I rowsort label-6783
SELECT ALL - col2 DIV col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL - col2 / col2 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT ALL 45 - tab0.col2 AS col2 FROM tab0
----
-37
12
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-6785
SELECT + col2 + col0 + 38 DIV col1 AS col2 FROM tab0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-6785
SELECT + col2 + col0 + 38 / col1 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL - col0 - + col0 * tab2.col0 FROM tab2
----
-56
-6162
-6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-6787
SELECT ALL col0 + - col1 DIV + col1 - - tab2.col0 AS col0 FROM tab2
----
13
155
157
skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL col0 + - col1 / + col1 - - tab2.col0 AS col0 FROM tab2
----
13
155
157
query I rowsort
SELECT DISTINCT + ( - col2 ) + - 80 * - col1 FROM tab1 AS cor0
----
2026
743
944
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 5ec52b92c3c8d78cc0a61df3fc16f18b
query I rowsort
SELECT - col2 * + col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + + cor0.col2 AS col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT - col2 + - col0 AS col1 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2
----
17
31
59
query I rowsort
SELECT cor0.col0 + + col0 AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - col0 * - col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT + col1 * + cor0.col0 + + col2 AS col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - cor0.col1 ) + ( col2 ) col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - 48 FROM tab0 AS cor0
----
-48
-48
-48
query I rowsort
SELECT DISTINCT + col0 + + col1 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL - col2 + col1 * + 81 FROM tab0 AS cor0
----
6933
7289
7856
query I rowsort
SELECT - col0 * 72 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-294912
-460800
-648
query I rowsort
SELECT DISTINCT + col2 + + col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL + + col0 * ( - col0 ) FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT + + col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT cor0.col1 + col0 AS col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT col2 - + 13 AS col0 FROM tab0 AS cor0
----
-12
20
69
query I rowsort
SELECT ALL col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + col2 * - col2 + + col1 + col0 FROM tab0 AS cor0
----
-6544
-979
131
query I rowsort
SELECT DISTINCT + col0 + ( col1 ) AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - col1 * 91 FROM tab0 AS cor0
----
-7826
-8281
-8827
onlyif mysql # use DIV operator for integer division
query I rowsort label-6815
SELECT ALL col2 + - col1 DIV col2 FROM tab0 AS cor0
----
-96
31
81
skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL col2 + - col1 / col2 FROM tab0 AS cor0
----
-96
31
81
query I rowsort
SELECT - col1 * + col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - + col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - - col0 AS col1 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL - col1 - - col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL tab0.col1 - - col2 * 51 FROM tab0
----
148
1769
4273
query I rowsort
SELECT DISTINCT - col1 + col0 AS col0 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT col1 * col0 + ( - col0 ) AS col2 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT - col1 * cor0.col2 + col2 * cor0.col1 + + ( 78 ) AS col0 FROM tab0 cor0
----
78
78
78
query I rowsort
SELECT ALL - col0 * cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort
SELECT + col0 / - CAST ( 32 AS REAL ) FROM tab2 AS cor0
----
-2
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6828
SELECT DISTINCT - ( col1 ) DIV - col1 + - 51 * + col0 + cor0.col2 FROM tab2 AS cor0
----
-329
-3951
-3990
skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT - ( col1 ) / - col1 + - 51 * + col0 + cor0.col2 FROM tab2 AS cor0
----
-329
-3951
-3990
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 col2 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT - + 49 + 62 * col0 FROM tab1 cor0
----
137
3919
4911
query I rowsort
SELECT ALL - 17 * 22 + - col0 AS col2 FROM tab2 AS cor0
----
-381
-452
-453
query I rowsort
SELECT DISTINCT + col0 * + col1 - col0 * - ( + col0 ) FROM tab0 AS cor0
----
16020
2640
4620
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 ALL col0 + col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT 25 FROM tab0 AS cor0
----
25
25
25
query I rowsort
SELECT ALL + - ( - cor0.col0 ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + 31 AS col1 FROM tab1 cor0
----
31
31
31
query I rowsort
SELECT DISTINCT - col1 * cor0.col2 + - col2 FROM tab2 cor0
----
-1560
-684
-864
query I rowsort
SELECT + 67 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6840
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6840
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6841
SELECT ALL + - CAST( + col0 AS SIGNED ) + col0 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL + - CAST ( + col0 AS INTEGER ) + col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 71 * - col0 FROM tab2 AS cor0
----
497
5538
5609
query I rowsort
SELECT + 71 FROM tab1 cor0
----
71
71
71
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) + - col0 * ( + 26 ) FROM tab0 AS cor0
----
-2396
-657
-911
query I rowsort
SELECT ALL + cor0.col0 + + col1 * col0 - ( + cor0.col1 ) AS col2 FROM tab0 AS cor0
----
2002
3333
8097
query I rowsort
SELECT DISTINCT col1 + + ( - col2 ) FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + 64 AS col1 FROM tab2 AS cor0
----
64
query I rowsort
SELECT + ( + 40 ) AS col0 FROM tab0 AS cor0
----
40
40
40
query I rowsort
SELECT ALL + col0 * col1 - - col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - 65 + - col0 * cor0.col1 col0 FROM tab0 AS cor0
----
-2043
-3363
-8073
query I rowsort
SELECT DISTINCT 1 FROM tab1 AS cor0
----
1
query I rowsort
SELECT DISTINCT + col2 * + col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-6853
SELECT + - cor0.col1 + - col0 DIV - col1 FROM tab2 AS cor0
----
-13
-31
-58
skipif mysql # not compatible
query I rowsort label-6853
SELECT + - cor0.col1 + - col0 / - col1 FROM tab2 AS cor0
----
-13
-31
-58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 col1 FROM tab1 AS cor0
----
64
64
64
query I rowsort
SELECT ( col2 ) * 29 FROM tab0 AS cor0
----
2378
29
957
query I rowsort
SELECT ALL 21 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
query I rowsort
SELECT DISTINCT - + col2 * + cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - col0 * col0 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6859
SELECT DISTINCT + cor0.col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6859
SELECT DISTINCT + cor0.col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + + col1 + col1 AS col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL 0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col2 + tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 000003476840160ea4e33204b8667672
query I rowsort
SELECT + 88 + + col2 AS col0 FROM tab2
----
114
115
126
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6864
SELECT + 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-6864
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - + ( - 0 ) + - col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL col2 AS col2 FROM tab1
----
54
57
96
query I rowsort
SELECT + - 97 * - 14 FROM tab1 cor0
----
1358
1358
1358
query I rowsort
SELECT + + col2 * + col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab1, tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + col2 * - tab0.col0 * col2 AS col0 FROM tab0
----
-26136
-35
-598436
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab1
----
10
13
26
query I rowsort
SELECT tab1.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ( ( + tab1.col1 ) ) * 37 AS col2 FROM tab1
----
370
481
962
query I rowsort
SELECT - col2 * ( - col1 ) FROM tab1
----
1248
1404
570
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col0 + + col2 * tab2.col1 col2 FROM tab2
----
1456
567
830
query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
54 values hashing to b010e320d66ab5b2711fc14e8fb58b01
query I rowsort
SELECT DISTINCT ( 68 ) AS col0 FROM tab2 AS cor0
----
68
query I rowsort
SELECT + - ( col1 ) * col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - + 89 * + col2 + col1 AS col0 FROM tab0 AS cor0
----
-2851
-7207
8
query I rowsort
SELECT col2 + - cor0.col1 * col2 AS col0 FROM tab1 cor0
----
-1152
-1350
-513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 col0 FROM tab2 AS cor0
----
65
65
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * + 56 col1 FROM tab0 AS cor0
----
1848
4592
56
query I rowsort
SELECT ALL + - 27 AS col2 FROM tab0 AS cor0
----
-27
-27
-27
onlyif mysql # use DIV operator for integer division
query I rowsort label-6887
SELECT + col0 DIV col0 col2 FROM tab1
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6887
SELECT + col0 / col0 col2 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT + ( col2 ) + col0 * + col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - 42 FROM tab1 AS cor0
----
-42
-42
-42
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6891
SELECT - - CAST( NULL AS SIGNED ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6891
SELECT - - CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( col0 ) * col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL 31 * + col0 AS col0 FROM tab0
----
1085
2759
744
query I rowsort
SELECT DISTINCT + 5 * col0 + col0 FROM tab0 AS cor0
----
144
210
534
query I rowsort
SELECT ALL col1 * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6896
SELECT col2 + cor0.col2 DIV 56 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-6896
SELECT col2 + cor0.col2 / 56 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - - 99 FROM tab0 AS cor0
----
99
query I rowsort
SELECT + col1 + col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL 99 AS col2 FROM tab0 cor0
----
99
99
99
query I rowsort
SELECT ALL + 19 FROM tab1 AS cor0
----
19
19
19
query I rowsort
SELECT + 27 + - col1 * + ( col1 * col1 ) AS col0 FROM tab0 AS cor0
----
-636029
-753544
-912646
query I rowsort
SELECT DISTINCT - col1 * + col2 * col1 FROM tab2 AS cor0
----
-10982
-25947
-90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col0 FROM tab2, tab2 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
query I rowsort
SELECT ALL - + col1 + + col0 AS col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT - - col2 + col1 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + cor0.col2 * + 25 AS col2 FROM tab1 cor0
----
1350
1425
2400
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 677ef6b86493a7e48d2f6a3cfd7eea4c
query I rowsort
SELECT DISTINCT - - cor0.col2 * - ( + col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - col0 + col1 * + 26 AS col0 FROM tab1 AS cor0
----
196
258
673
onlyif mysql # use DIV operator for integer division
query I rowsort label-6910
SELECT ALL + col0 DIV 54 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-6910
SELECT ALL + col0 / 54 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT + + cor0.col1 * col2 AS col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - col0 + 47 * col1 AS col1 FROM tab0 AS cor0
----
4018
4188
4524
query I rowsort
SELECT - + cor0.col1 * col2 * + col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT 98 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
query I rowsort
SELECT - col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT 38 + cor0.col1 FROM tab0, tab1 AS cor0
----
48
51
64
query I rowsort
SELECT DISTINCT + - col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - - col2 * 29 AS col0 FROM tab0 AS cor0
----
2378
29
957
query I rowsort
SELECT + col0 * cor0.col1 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT col0 + - col2 * col0 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL 15 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 97c4e033347d2076218e240ed49af0a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - col2 col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT ALL + 60 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6925
SELECT + cor0.col1 + 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-6925
SELECT + cor0.col1 + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6926
SELECT + col2 + CAST( 80 AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
587
6266
6358
skipif mysql # not compatible
query I rowsort label-6926
SELECT + col2 + CAST ( 80 AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
587
6266
6358
query I rowsort
SELECT col1 * 63 FROM tab0 AS cor0
----
5418
5733
6111
query I rowsort
SELECT - col1 * - ( + 76 ) FROM tab2 AS cor0
----
1292
2356
4484
query I rowsort
SELECT - - col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT - col0 + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1456
567
830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT col2 * - ( col1 ) AS col1 FROM tab0 cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + + 40 * - col0 col1 FROM tab2 AS cor0
----
-249
-3061
-3143
onlyif mysql # use DIV operator for integer division
query I rowsort label-6934
SELECT ALL - col1 DIV ( - cor0.col1 ) + - col1 + col0 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
1129
491
7831
skipif mysql # not compatible
query I rowsort label-6934
SELECT ALL - col1 / ( - cor0.col1 ) + - col1 + col0 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
1129
491
7831
query I rowsort
SELECT col2 * + 13 FROM tab2 AS cor0
----
338
351
494
query I rowsort
SELECT + 85 + 22 * col1 AS col1 FROM tab0 AS cor0
----
1977
2087
2219
query I rowsort
SELECT + 96 * - col2 AS col0 FROM tab2 AS cor0
----
-2496
-2592
-3648
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 8db0cc6df185b737ff75d2626a6d198b
query I rowsort
SELECT cor0.col0 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab0 AS cor1
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0
query I rowsort
SELECT ALL + - 87 + col2 * col2 * 60 FROM tab2 AS cor0
----
40473
43653
86553
query I rowsort
SELECT + + cor0.col1 * + 9 FROM tab2 AS cor0
----
153
279
531
query I rowsort
SELECT ALL - 83 * - col0 + col2 FROM tab0 AS cor0
----
2025
2906
7469
query I rowsort
SELECT + + cor0.col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT + col2 + + col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - - col1 * + col0 - + col0 * ( + cor0.col2 ) * ( col0 ) FROM tab2 AS cor0
----
-1106
-153582
-235815
query I rowsort
SELECT + 38 FROM tab2, tab1 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT col1 * col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + col0 + col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + 85 * cor0.col0 * - cor0.col2 FROM tab2 AS cor0
----
-16065
-172380
-255170
query I rowsort
SELECT col2 * col2 AS col2 FROM tab2
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col0 col2 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL - 91 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6954
SELECT + col0 + - CAST( ( - col0 ) * CAST( NULL AS SIGNED ) + - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6954
SELECT + col0 + - CAST ( ( - col0 ) * CAST ( NULL AS INTEGER ) + - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 * - 74 AS col0 FROM tab2 AS cor0
----
-1924
-1998
-2812
query I rowsort
SELECT - col0 * - col2 * - col2 + col2 AS col0 FROM tab1 cor0
----
-207879
-737184
-8694
query I rowsort
SELECT - col0 * cor0.col0 + 77 AS col0 FROM tab2 AS cor0
----
-6007
-6164
28
query I rowsort
SELECT ALL - + col2 * - col1 * col2 AS col0 FROM tab1 AS cor0
----
119808
32490
75816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col1 col2 FROM tab2
----
17
31
59
query I rowsort
SELECT - col2 * + col1 FROM tab2
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-6961
SELECT ALL + 42 DIV - col0 FROM tab2
----
-6
0
0
skipif mysql # not compatible
query I rowsort label-6961
SELECT ALL + 42 / - col0 FROM tab2
----
-6
0
0
query I rowsort
SELECT cor0.col1 * 28 FROM tab1, tab0 AS cor0
----
9 values hashing to a332cfd25dcf64ec1aac7d898652e988
query I rowsort
SELECT ALL - 90 * + col0 FROM tab0
----
-2160
-3150
-8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-6964
SELECT DISTINCT - 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-6964
SELECT DISTINCT - col2 / col0 col1 FROM tab0
----
-1
0
query I rowsort
SELECT DISTINCT - 82 AS col0 FROM tab2
----
-82
query I rowsort
SELECT cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1, tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - col2 AS col2 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ALL col1 + col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT - ( 88 ) * + col1 FROM tab1
----
-1144
-2288
-880
query I rowsort
SELECT col1 * - 77 * cor0.col0 + cor0.col1 * ( - col2 ) AS col1 FROM tab1 AS cor0
----
-49850
-7410
-81328
query I rowsort
SELECT - - col1 * ( col2 * + col1 ) - col2 AS col1 FROM tab2 AS cor0
----
10944
25920
90480
query I rowsort
SELECT DISTINCT 21 AS col0 FROM tab1 AS cor0
----
21
query I rowsort
SELECT - + 62 AS col0 FROM tab2 AS cor0
----
-62
-62
-62
query I rowsort
SELECT DISTINCT + col0 * - col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - col0 * + col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + col2 * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT col0 * col2 * col0 - + 57 FROM tab1 AS cor0
----
233415
429
614343
query I rowsort
SELECT + - ( + 14 ) FROM tab1 AS cor0
----
-14
-14
-14
query I rowsort
SELECT ALL col2 * col2 * col0 AS col2 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT DISTINCT - col1 + - col1 * - col1 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT - cor0.col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + ( col0 ) FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT - col0 * + col1 * - 86 AS col1 FROM tab2 AS cor0
----
115498
18662
395772
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6985
SELECT DISTINCT - - 67 + col0 / CAST( NULL AS SIGNED ) + + 11 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6985
SELECT DISTINCT - - 67 + col0 / CAST ( NULL AS INTEGER ) + + 11 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT cor0.col1 + cor0.col2 * + 27 + - 35 AS col2 FROM tab2 cor0
----
1008
725
726
query I rowsort
SELECT ALL - + col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + 73 FROM tab2 AS cor0
----
73
73
73
query I rowsort
SELECT + col1 - + cor0.col0 FROM tab0 AS cor0
----
2
62
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - col1 * - col0 + + 23 * - col0 AS col2 FROM tab2 AS cor0
----
-474
2808
56
query I rowsort
SELECT ALL - - col2 + - col2 AS col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT 78 * - cor0.col2 * - col2 + - cor0.col0 * col1 AS col2 FROM tab1 cor0
----
227370
252782
717808
onlyif mysql # use DIV operator for integer division
query I rowsort label-6994
SELECT ALL col2 - col1 DIV tab1.col1 col0 FROM tab1
----
53
56
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6994
SELECT ALL col2 - col1 / tab1.col1 col0 FROM tab1
----
53
56
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-6995
SELECT col1 * col2 + tab1.col1 - col2 DIV col2 AS col0 FROM tab1
----
1260
1429
579
skipif mysql # not compatible
query I rowsort label-6995
SELECT col1 * col2 + tab1.col1 - col2 / col2 AS col0 FROM tab1
----
1260
1429
579
onlyif mysql # use DIV operator for integer division
query I rowsort label-6996
SELECT 49 + - ( - col2 ) DIV col2 FROM tab1
----
50
50
50
skipif mysql # not compatible
query I rowsort label-6996
SELECT 49 + - ( - col2 ) / col2 FROM tab1
----
50
50
50
query I rowsort
SELECT + ( - 33 ) + + col1 AS col2 FROM tab0
----
53
58
64
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab0 cor0
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993
query I rowsort
SELECT - 67 FROM tab0, tab1 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f
query I rowsort
SELECT tab0.col0 + col1 + col2 FROM tab0
----
133
143
262
query I rowsort
SELECT DISTINCT + + col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + + col0 * + ( + col2 ) AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + + cor0.col2 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + - col1 * - col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7005
SELECT DISTINCT + col2 + - CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7005
SELECT DISTINCT + col2 + - CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - col1 * col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT ALL cor1.col0 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT - + col0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + + col1 * - cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - col0 - 15 FROM tab0 cor0
----
-104
-39
-50
query I rowsort
SELECT + ( col0 * - tab0.col2 ) FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT - 44 FROM tab0
----
-44
-44
-44
query I rowsort
SELECT DISTINCT ( + col0 * col1 ) AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL 95 * + tab0.col0 AS col2 FROM tab0
----
2280
3325
8455
query I rowsort
SELECT + tab0.col0 AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT - col0 * - col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT + - col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT col1 AS col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT col1 * col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + col1 + - col1 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT col2 * col0 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT 52 FROM tab1, tab2 cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab0 AS cor1
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00
onlyif mysql # use DIV operator for integer division
query I rowsort label-7028
SELECT ALL col1 DIV 71 AS col2 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL col1 / 71 AS col2 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - - 11 FROM tab0 AS cor0
----
11
query I rowsort
SELECT ALL - col0 * - col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + cor0.col0 * - 24 AS col1 FROM tab0 AS cor0
----
-2136
-576
-840
query I rowsort
SELECT col0 * 7 + 78 AS col2 FROM tab1
----
526
638
99
query I rowsort
SELECT + col2 + col2 FROM tab2
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-7034
SELECT ALL col1 DIV + col0 FROM tab0 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-7034
SELECT ALL col1 / + col0 FROM tab0 cor0
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-7035
SELECT ALL + tab0.col0 DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL + tab0.col0 / col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col2 * - col2 * + 64 FROM tab2
----
-43264
-46656
-92416
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab1, tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - cor0.col1 + col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT + col0 * + 80 FROM tab1 AS cor0
----
240
5120
6400
query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL col2 * col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL + 53 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + ( - col2 ) * col2 + col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT - 35 * - col2 AS col1 FROM tab1 AS cor0
----
1890
1995
3360
query I rowsort
SELECT ALL - 60 * ( + col1 ) + 2 + - 7 * - col0 FROM tab2 AS cor0
----
-1809
-2992
-465
query I rowsort
SELECT DISTINCT ( 38 ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
127
62
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 31 col0 FROM tab2 AS cor0
----
-31
-31
-31
onlyif mysql # use DIV operator for integer division
query I rowsort label-7049
SELECT ALL - 39 - col2 DIV col2 AS col0 FROM tab0 cor0
----
-40
-40
-40
skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL - 39 - col2 / col2 AS col0 FROM tab0 cor0
----
-40
-40
-40
query I rowsort
SELECT DISTINCT + - 36 + + 72 AS col0 FROM tab1 AS cor0
----
36
query I rowsort
SELECT 36 * + col0 AS col0 FROM tab0 AS cor0
----
1260
3204
864
query I rowsort
SELECT ALL + - 84 AS col1 FROM tab1 AS cor0
----
-84
-84
-84
query I rowsort
SELECT DISTINCT col2 * col1 + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL 95 * + col1 AS col0 FROM tab0 AS cor0
----
8170
8645
9215
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) col0 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - - col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL col0 - 80 AS col0 FROM tab1 AS cor0
----
-16
-77
0
query I rowsort
SELECT DISTINCT ( 57 ) FROM tab2 AS cor0
----
57
query I rowsort
SELECT - + col0 + cor0.col0 AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - 45 * col0 FROM tab1 cor0
----
-135
-2880
-3600
onlyif mysql # use DIV operator for integer division
query I rowsort label-7061
SELECT DISTINCT col0 DIV + col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-7061
SELECT DISTINCT col0 / + col1 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT ALL - cor0.col2 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7063
SELECT - col0 DIV - col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7063
SELECT - col0 / - col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT ALL - 95 * + col1 AS col0 FROM tab2 AS cor0
----
-1615
-2945
-5605
query I rowsort
SELECT ALL + + 37 AS col1 FROM tab1 AS cor0
----
37
37
37
query I rowsort
SELECT DISTINCT 67 + col0 FROM tab1 cor0
----
131
147
70
query I rowsort
SELECT DISTINCT + - col0 + col2 * - 50 FROM tab0 AS cor0
----
-1674
-4189
-85
query I rowsort
SELECT + + col1 + col2 + col2 * col1 AS col2 FROM tab2 cor0
----
1619
701
895
onlyif mysql # use DIV operator for integer division
query I rowsort label-7069
SELECT - 52 DIV + col0 AS col2 FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-7069
SELECT - 52 / + col0 AS col2 FROM tab0 AS cor0
----
-1
-2
0
query I rowsort
SELECT - cor0.col2 AS col0 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT - 79 * + col1 + - 18 * col0 AS col2 FROM tab2 AS cor0
----
-2575
-2765
-6065
onlyif mysql # use DIV operator for integer division
query I rowsort label-7072
SELECT DISTINCT col1 * col0 DIV - 13 FROM tab2 cor0
----
-103
-16
-354
skipif mysql # not compatible
query I rowsort label-7072
SELECT DISTINCT col1 * col0 / - 13 FROM tab2 cor0
----
-103
-16
-354
onlyif mysql # use DIV operator for integer division
query I rowsort label-7073
SELECT + 6 + col1 DIV ( col2 ) FROM tab1 AS cor0
----
6
6
6
skipif mysql # not compatible
query I rowsort label-7073
SELECT + 6 + col1 / ( col2 ) FROM tab1 AS cor0
----
6
6
6
query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-7075
SELECT ALL col2 DIV - 25 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL col2 / - 25 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - - col0 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7077
SELECT + col1 DIV 43 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7077
SELECT + col1 / 43 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7078
SELECT DISTINCT col1 * - CAST( + 37 AS SIGNED ) FROM tab2 AS cor0
----
-1147
-2183
-629
skipif mysql # not compatible
query I rowsort label-7078
SELECT DISTINCT col1 * - CAST ( + 37 AS INTEGER ) FROM tab2 AS cor0
----
-1147
-2183
-629
query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7080
SELECT - cor0.col0 DIV + ( col1 ) FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-7080
SELECT - cor0.col0 / + ( col1 ) FROM tab1 AS cor0
----
-6
-6
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7081
SELECT - - cor0.col1 DIV - CAST( 4 AS SIGNED ) FROM tab1 AS cor0
----
-2
-3
-6
skipif mysql # not compatible
query I rowsort label-7081
SELECT - - cor0.col1 / - CAST ( 4 AS INTEGER ) FROM tab1 AS cor0
----
-2
-3
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7082
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-7082
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
query I rowsort
SELECT DISTINCT - col2 + + col1 + 16 * + col2 * tab1.col0 FROM tab1
----
122797
2564
58321
onlyif mysql # use DIV operator for integer division
query I rowsort label-7084
SELECT DISTINCT + col1 * ( + col2 + + col1 ) DIV + col2 FROM tab0 AS cor0
----
191
310
9506
skipif mysql # not compatible
query I rowsort label-7084
SELECT DISTINCT + col1 * ( + col2 + + col1 ) / + col2 FROM tab0 AS cor0
----
191
310
9506
query I rowsort
SELECT ALL + - col2 AS col0 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT ALL - col2 * 77 AS col2 FROM tab1 AS cor0
----
-4158
-4389
-7392
query I rowsort
SELECT cor0.col1 * col0 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - col0 * col2 + cor0.col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT + 37 AS col1 FROM tab1 AS cor0
----
37
37
37
query I rowsort
SELECT DISTINCT + - ( cor0.col2 ) + - 54 AS col2 FROM tab1 AS cor0
----
-108
-111
-150
query I rowsort
SELECT + 31 FROM tab0 AS cor0
----
31
31
31
query I rowsort
SELECT ALL + col2 * col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7093
SELECT ALL 49 * - col2 + - CAST( NULL AS SIGNED ) * + cor0.col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7093
SELECT ALL 49 * - col2 + - CAST ( NULL AS INTEGER ) * + cor0.col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - cor0.col1 col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + 20 * col1 + - 94 FROM tab1 AS cor0
----
106
166
426
query I rowsort
SELECT ALL col0 - col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL tab0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT + + 42 + col1 FROM tab2 AS cor0
----
101
59
73
query I rowsort
SELECT - - col1 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + 18 FROM tab1 AS cor0
----
18
18
18
query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT - + col1 + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT 1 + + 48 FROM tab1
----
49
49
49
query I rowsort
SELECT 57 FROM tab2, tab2 cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT DISTINCT col2 + cor0.col1 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL + col0 + col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL col2 * col2 * - 20 + + col0 AS col2 FROM tab0
----
-134391
-21756
15
query I rowsort
SELECT col0 * col1 AS col2 FROM tab1
----
1040
640
78
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f
query I rowsort
SELECT ALL - col2 + col0 AS col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT + cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT - - col2 FROM tab1 cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7113
SELECT - + CAST( cor0.col1 AS SIGNED ) * col2 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-7113
SELECT - + CAST ( cor0.col1 AS INTEGER ) * col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + col0 + ( 3 ) * col0 * tab2.col1 FROM tab2
----
13884
4108
658
onlyif mysql # use DIV operator for integer division
query I rowsort label-7116
SELECT col1 DIV col0 AS col0 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-7116
SELECT col1 / col0 AS col0 FROM tab2
----
0
0
4
query I rowsort
SELECT ALL cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL 46 FROM tab0
----
46
46
46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 col1 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT - 86 * - 83 FROM tab0 AS cor0
----
7138
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 + - col0 * col2 col0 FROM tab2 AS cor0
----
-2103
-264
-3077
query I rowsort
SELECT ALL + + 46 AS col2 FROM tab2 cor0
----
46
46
46
query I rowsort
SELECT ALL + - ( 63 ) AS col1 FROM tab2 cor0
----
-63
-63
-63
query I rowsort
SELECT DISTINCT 64 FROM tab1, tab2 AS cor0, tab2, tab2 cor1
----
64
query I rowsort
SELECT col2 * + 86 AS col1 FROM tab2
----
2236
2322
3268
query I rowsort
SELECT ALL - + cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT - 79 * col2 FROM tab2
----
-2054
-2133
-3002
query I rowsort
SELECT 18 * cor0.col1 + + col2 + ( + col2 ) FROM tab0 AS cor0
----
1614
1748
1802
query I rowsort
SELECT + 54 + col2 FROM tab0 AS cor0
----
136
55
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-7130
SELECT col1 + col0 + - col2 DIV - col0 FROM tab2 AS cor0
----
137
41
96
skipif mysql # not compatible
query I rowsort label-7130
SELECT col1 + col0 + - col2 / - col0 FROM tab2 AS cor0
----
137
41
96
query I rowsort
SELECT - 88 * cor0.col1 FROM tab0 AS cor0
----
-7568
-8008
-8536
query I rowsort
SELECT + - 7 * col0 AS col2 FROM tab1 AS cor0
----
-21
-448
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col2 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1, tab1 cor2
----
243 values hashing to 651d73b1d4aaebc5a692f9febc779292
query I rowsort
SELECT col0 + col2 * col1 AS col2 FROM tab1 cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-7135
SELECT - col2 DIV col0 AS col2 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7135
SELECT - col2 / col0 AS col2 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT col2 + + col1 * 4 AS col1 FROM tab2
----
106
151
262
query I rowsort
SELECT col0 + + col2 * + col0 AS col1 FROM tab0
----
70
7387
816
query I rowsort
SELECT - 62 AS col0 FROM tab1
----
-62
-62
-62
query I rowsort
SELECT ALL - cor0.col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT cor0.col0 * - col1 + col2 AS col0 FROM tab2 cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL cor0.col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + col2 + col2 + - 66 FROM tab1 AS cor0
----
126
42
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7143
SELECT CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7143
SELECT CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT col0 * - ( col1 ) * tab2.col1 AS col1 FROM tab2
----
-22831
-271518
-6727
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab2 cor0, tab1
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763
query I rowsort
SELECT col0 * + cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT + + col2 * + ( + col1 ) FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT - col2 AS col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT + - 80 * + col1 AS col2 FROM tab1 cor0
----
-1040
-2080
-800
query I rowsort
SELECT + - 83 + cor0.col1 FROM tab2 AS cor0
----
-24
-52
-66
query I rowsort
SELECT - col1 * col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - 33 + col2 + + cor0.col1 FROM tab0 AS cor0
----
140
65
86
query I rowsort
SELECT - - col0 * ( cor0.col1 ) FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT col2 + - 67 AS col2 FROM tab1 cor0
----
-10
-13
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-7155
SELECT DISTINCT - col1 DIV col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-7155
SELECT DISTINCT - col1 / col2 FROM tab1
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7156
SELECT tab2.col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7156
SELECT tab2.col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * + 68 AS col1 FROM tab1
----
1768
680
884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7158
SELECT col2 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7158
SELECT col2 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT tab2.col2 * + 69 + + col0 + col2 AS col1 FROM tab2
----
1897
1898
2739
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( ( + col1 ) * col0 ) col2 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT + + cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
17
31
59
query I rowsort
SELECT + col0 + - col2 AS col2 FROM tab0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7164
SELECT + cor0.col0 DIV col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7164
SELECT + cor0.col0 / col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT - + col2 * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + cor0.col0 * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + - col2 + col1 FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * col1 col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT - tab0.col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT - tab1.col0 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT + col1 + col0 * col0 * + col1 FROM tab1 AS cor0
----
260
40970
83213
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT DISTINCT + + 64 FROM tab2 AS cor0
----
64
query I rowsort
SELECT cor0.col0 + 68 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4f5d4499e644681f67e840b4624c7612
query I rowsort
SELECT DISTINCT col1 + + 71 * col1 FROM tab1 AS cor0
----
1872
720
936
query I rowsort
SELECT 69 FROM tab0 cor0
----
69
69
69
query I rowsort
SELECT + col2 * + 85 FROM tab0 AS cor0
----
2805
6970
85
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab0 cor1
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT 86 * - cor0.col0 * - col1 FROM tab1 AS cor0
----
55040
6708
89440
query I rowsort
SELECT ALL + - col0 * + col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
-86
-91
-97
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab1 cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4
onlyif mysql # use DIV operator for integer division
query I rowsort label-7184
SELECT - col2 DIV cor0.col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-7184
SELECT - col2 / cor0.col1 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT 42 FROM tab1, tab1 AS cor0, tab0 cor1, tab2 AS cor2
----
81 values hashing to 4d49d5ffe533e92cf06d98cb59a19b10
onlyif mysql # use DIV operator for integer division
query I rowsort label-7186
SELECT - ( - 2 ) DIV + col1 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7186
SELECT - ( - 2 ) / + col1 FROM tab2 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 79 col0 FROM tab1 cor0
----
-17
22
25
query I rowsort
SELECT + 32 FROM tab2
----
32
32
32
query I rowsort
SELECT DISTINCT col2 + col2 * 67 + + col1 FROM tab1
----
3698
3886
6541
query I rowsort
SELECT ALL - - col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + 56 FROM tab0 cor0
----
56
56
56
query I rowsort
SELECT ALL + 27 AS col0 FROM tab0 AS cor0
----
27
27
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-7193
SELECT - col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-7193
SELECT - col1 / + col0 AS col1 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT 30 AS col2 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0
query I rowsort
SELECT ALL + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7197
SELECT DISTINCT - col2 DIV - cor0.col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT - col2 / - cor0.col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT DISTINCT - - col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT col0 * + col1 AS col1 FROM tab0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7200
SELECT ALL cor0.col2 * CAST( col2 AS SIGNED ) + col2 * 27 FROM tab1 cor0
----
11808
4374
4788
skipif mysql # not compatible
query I rowsort label-7200
SELECT ALL cor0.col2 * CAST ( col2 AS INTEGER ) + col2 * 27 FROM tab1 cor0
----
11808
4374
4788
onlyif mysql # use DIV operator for integer division
query I rowsort label-7201
SELECT - - col0 + ( + 91 ) DIV col2 AS col1 FROM tab0 AS cor0
----
126
26
90
skipif mysql # not compatible
query I rowsort label-7201
SELECT - - col0 + ( + 91 ) / col2 AS col1 FROM tab0 AS cor0
----
126
26
90
query I rowsort
SELECT ALL cor0.col0 * 47 AS col0 FROM tab0 AS cor0
----
1128
1645
4183
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + col0 col1 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - col1 + - ( + col1 ) AS col2 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + - col0 * col2 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + + col1 col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + col0 + - ( - col0 ) FROM tab2 AS cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col1 col0 FROM tab0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 - + col1 * col0 col2 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT + tab2.col0 * col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT - - 24 FROM tab1, tab2, tab2 AS cor0
----
24
query I rowsort
SELECT + col0 + - col0 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT - col1 + col0 FROM tab1
----
-23
54
67
query I rowsort
SELECT + cor0.col1 + + 5 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to b176c65c1e64e0787e1861a64085e08f
query I rowsort
SELECT ALL col1 + col1 * 17 FROM tab0 AS cor0
----
1548
1638
1746
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to fa0488bdae83f58c7ffa92505e928570
query I rowsort
SELECT 32 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 149298fc0224e93f3bc2df24a3ebeeb8
query I rowsort
SELECT ALL - + cor0.col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7222
SELECT DISTINCT + col1 + + CAST( NULL AS SIGNED ) * col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7222
SELECT DISTINCT + col1 + + CAST ( NULL AS INTEGER ) * col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + + col0 * - col0 AS col1 FROM tab1 cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 1a92b418ae3c05ba566f88a890a407ae
query I rowsort
SELECT 87 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7228
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7228
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + cor0.col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + cor0.col2 * - 62 * - col2 AS col2 FROM tab0 AS cor0
----
416888
62
67518
query I rowsort
SELECT cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT col0 * col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT col2 * col1 + col1 FROM tab2 AS cor0
----
1593
663
868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + col1 * - col2 * col0 AS col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT ALL - 67 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99
query I rowsort
SELECT + col1 - col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + 89 - col2 AS col1 FROM tab2 AS cor0
----
51
62
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 + col0 * 17 * 25 col0 FROM tab1 AS cor0
----
1310
27235
34035
query I rowsort
SELECT + - 33 FROM tab2 AS cor0
----
-33
-33
-33
query I rowsort
SELECT DISTINCT - 36 - col1 FROM tab1 AS cor0
----
-46
-49
-62
query I rowsort
SELECT DISTINCT col1 * col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + + cor0.col1 + - col0 * + col0 FROM tab1 cor0
----
-4086
-6387
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab1 cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7246
SELECT ALL col0 DIV + col0 + + 96 col0 FROM tab2 AS cor0
----
97
97
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL col0 / + col0 + + 96 col0 FROM tab2 AS cor0
----
97
97
97
query I rowsort
SELECT DISTINCT + - 27 + + cor0.col2 * + col0 FROM tab2 AS cor0
----
162
2001
2975
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7248
SELECT DISTINCT cor0.col0 + - col1 * CAST( col0 * - col1 AS SIGNED ) - col1 * - col2 FROM tab1 AS cor0
----
14848
3435
7034
skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT cor0.col0 + - col1 * CAST ( col0 * - col1 AS INTEGER ) - col1 * - col2 FROM tab1 AS cor0
----
14848
3435
7034
onlyif mysql # use DIV operator for integer division
query I rowsort label-7249
SELECT + col2 - col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
24
26
38
skipif mysql # not compatible
query I rowsort label-7249
SELECT + col2 - col2 / + col0 AS col1 FROM tab2 AS cor0
----
24
26
38
query I rowsort
SELECT ALL col0 + + col1 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT col0 * + col2 - + col2 AS col0 FROM tab0
----
34
7216
759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 + + col0 * + col1 col1 FROM tab0
----
2183
3493
8272
query I rowsort
SELECT - col2 - 69 * col1 * col0 FROM tab0
----
-142449
-234256
-558913
query I rowsort
SELECT - cor0.col2 * 91 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3c5d7c1ac20b0af8a6c1545c14b998d3
query I rowsort
SELECT DISTINCT 85 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
85
query I rowsort
SELECT DISTINCT - col1 + col0 AS col2 FROM tab1
----
-23
54
67
query I rowsort
SELECT cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
onlyif mysql # use DIV operator for integer division
query I rowsort label-7258
SELECT ALL 8 DIV - col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7258
SELECT ALL 8 / - col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT col0 * cor0.col0 - col1 AS col1 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT ALL + + col2 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + cor0.col2 * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + - col1 * col2 + 12 * + 74 FROM tab1 AS cor0
----
-360
-516
318
query I rowsort
SELECT ALL - ( col1 ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + col0 * col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT 18 + cor0.col0 FROM tab2 AS cor0
----
25
96
97
query I rowsort
SELECT DISTINCT + ( - col0 ) + col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ( cor0.col0 ) AS col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL - col1 * cor0.col1 + col2 FROM tab2 AS cor0
----
-251
-3455
-934
onlyif mysql # use DIV operator for integer division
query I rowsort label-7270
SELECT DISTINCT - - 61 + + col2 DIV col0 AS col0 FROM tab1 AS cor0
----
61
62
79
skipif mysql # not compatible
query I rowsort label-7270
SELECT DISTINCT - - 61 + + col2 / col0 AS col0 FROM tab1 AS cor0
----
61
62
79
query I rowsort
SELECT - - col2 * - cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT ALL - col1 * cor0.col1 - col0 FROM tab1 cor0
----
-164
-249
-679
query I rowsort
SELECT col1 * col1 + 42 * col0 FROM tab0 cor0
----
10879
12019
8404
query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - col2 * + col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + 23 * col2 AS col1 FROM tab1 AS cor0
----
1242
1311
2208
query I rowsort
SELECT 31 * col1 FROM tab0
----
2666
2821
3007
query I rowsort
SELECT DISTINCT - 52 FROM tab2
----
-52
query I rowsort
SELECT ALL - col1 * + col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL col0 AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT - cor0.col0 AS col2 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT 57 FROM tab1 AS cor0
----
57
57
57
query I rowsort
SELECT DISTINCT col0 + col2 * - col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL + ( cor0.col1 ) * cor2.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 9ef59267bc423612079185b5c4f6afb0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7285
SELECT - col1 DIV - 37 FROM tab0 cor0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-7285
SELECT - col1 / - 37 FROM tab0 cor0
----
2
2
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-7286
SELECT DISTINCT - col2 DIV ( - col0 ) AS col1 FROM tab2 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-7286
SELECT DISTINCT - col2 / ( - col0 ) AS col1 FROM tab2 AS cor0
----
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 4 col0 FROM tab2, tab1 cor0
----
4
query I rowsort
SELECT - + col0 + - col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT 93 * cor0.col2 FROM tab0 AS cor0
----
3069
7626
93
query I rowsort
SELECT + 38 * - col2 FROM tab0 cor0
----
-1254
-3116
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7291
SELECT + cor0.col1 DIV + cor0.col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-7291
SELECT + cor0.col1 / + cor0.col0 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT + col1 * + cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - 44 FROM tab1 AS cor0
----
-44
-44
-44
query I rowsort
SELECT + col0 AS col2 FROM tab0 cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ( col0 ) AS col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL + tab2.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT + ( col0 ) * 78 + 19 * col2 * + col2 FROM tab1 AS cor0
----
181344
55638
66723
onlyif mysql # use DIV operator for integer division
query I rowsort label-7299
SELECT + 19 DIV - col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7299
SELECT + 19 / - col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7300
SELECT + col1 DIV + col1 + - ( + col0 ) + col2 AS col0 FROM tab0 AS cor0
----
-33
-6
10
skipif mysql # not compatible
query I rowsort label-7300
SELECT + col1 / + col1 + - ( + col0 ) + col2 AS col0 FROM tab0 AS cor0
----
-33
-6
10
query I rowsort
SELECT - cor0.col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - col0 * 11 + + 94 * + cor0.col1 * col2 FROM tab0 AS cor0
----
266508
700449
8733
query I rowsort
SELECT DISTINCT - + col2 * - col1 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + col2 * 57 col1 FROM tab1 cor0
----
3104
3259
5485
query I rowsort
SELECT - col2 + col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL + + col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7307
SELECT + - cor0.col2 * col1 - col2 DIV col0 FROM tab2 AS cor0
----
-1534
-646
-840
skipif mysql # not compatible
query I rowsort label-7307
SELECT + - cor0.col2 * col1 - col2 / col0 FROM tab2 AS cor0
----
-1534
-646
-840
query IIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7309
SELECT - col1 + - col1 + + ( col2 ) / CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7309
SELECT - col1 + - col1 + + ( col2 ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + 27 - ( col0 + - col0 ) AS col1 FROM tab2 AS cor0
----
-32
-4
10
query I rowsort
SELECT DISTINCT cor0.col1 * - 36 FROM tab2 AS cor0
----
-1116
-2124
-612
query I rowsort
SELECT ALL + - cor0.col1 + ( - 86 ) FROM tab1 AS cor0
----
-112
-96
-99
query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL 46 FROM tab1
----
46
46
46
query I rowsort
SELECT + col2 * + col0 AS col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT - col2 + ( cor0.col2 ) * - col2 FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT 48 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT - 5 + col0 AS col0 FROM tab0 cor0
----
19
30
84
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to 35998cdc87c8b13ea047f14c9f5dc8d6
query IIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d
query I rowsort
SELECT DISTINCT 97 + 91 * + col0 * + 40 FROM tab2 AS cor0
----
25577
284017
287657
query I rowsort
SELECT ALL col0 + + col0 - + col2 AS col0 FROM tab2 AS cor0
----
-13
120
130
query I rowsort
SELECT + - col2 + + ( - col1 * + col0 ) AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT - - 84 + + col1 * col0 AS col0 FROM tab0 AS cor0
----
2148
3479
8183
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * col0 + col0 col0 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT + col2 + col2 AS col0 FROM tab2 cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + ( col0 ) ) col1 FROM tab0 AS cor0
----
24
35
89
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 + col2 * + 84 + col1 FROM tab0 cor0
----
181
2858
6979
query I rowsort
SELECT col0 * 31 AS col2 FROM tab1
----
1984
2480
93
query I rowsort
SELECT ALL - + ( 90 ) FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to 7414b682e5ab5dac55bc20746601d17a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL col0 + col1 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - col0 + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT + tab1.col2 AS col0 FROM tab1
----
54
57
96
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab2 AS cor0, tab0
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55
query I rowsort
SELECT col1 * tab2.col0 * 15 FROM tab2
----
20145
3255
69030
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * + col2 col1 FROM tab2
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * 57 + col0 col2 FROM tab2 AS cor0
----
406
4524
4582
query I rowsort
SELECT col1 - col2 * cor0.col2 AS col2 FROM tab2 cor0
----
-1427
-617
-698
query I rowsort
SELECT + col1 - - col1 FROM tab0
----
172
182
194
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab0, tab1 AS cor1
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e
query I rowsort
SELECT - 85 * 36 AS col2 FROM tab0
----
-3060
-3060
-3060
query I rowsort
SELECT 2 FROM tab2
----
2
2
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7345
SELECT DISTINCT + - col1 * + CAST( NULL AS SIGNED ) - - cor0.col2 / col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT + - col1 * + CAST ( NULL AS INTEGER ) - - cor0.col2 / col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT col2 + col2 AS col0 FROM tab2
----
52
54
76
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab0, tab2 AS cor1
----
972 values hashing to 591a9a93560839231c038a1e10bd240a
query I rowsort
SELECT + - col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + 50 - 67 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4
query I rowsort
SELECT ALL col1 * 86 FROM tab1
----
1118
2236
860
query I rowsort
SELECT 47 FROM tab2, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT col0 * col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - cor0.col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT ALL - ( - col1 + col1 ) * ( col1 ) AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT cor1.col0 + cor0.col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 83cf0399a6d731112910be713c92fa44
query I rowsort
SELECT - - col2 FROM tab2 AS cor0
----
26
27
38
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c
query I rowsort
SELECT DISTINCT + col1 * col1 + col0 * - col2 FROM tab1 AS cor0
----
-3548
-7511
514
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab2 AS cor1
----
243 values hashing to ea21cea53be47edd19229592e3d26141
query I rowsort
SELECT 47 FROM tab1 AS cor0
----
47
47
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-7361
SELECT ALL + cor0.col0 * + col1 - - CAST( col2 AS SIGNED ) * col2 DIV ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
1050
1155
690
skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL + cor0.col0 * + col1 - - CAST ( col2 AS INTEGER ) * col2 / ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
1050
1155
690
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab1, tab0 AS cor1
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab1 cor1
----
972 values hashing to 980274175fafec015a83080672486a9a
query I rowsort
SELECT + col2 * + col1 * 22 FROM tab2 AS cor0
----
14212
18414
33748
query I rowsort
SELECT cor0.col1 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab1 AS cor0, tab0
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT 96 + col1 * + 80 FROM tab1
----
1136
2176
896
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-7371
SELECT DISTINCT col0 DIV col2 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-7371
SELECT DISTINCT col0 / col2 FROM tab1 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 * col0 col1 FROM tab1 AS cor0
----
1408
1760
66
query I rowsort
SELECT DISTINCT col0 * cor0.col1 + - col2 AS col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT ALL - col0 + col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT ALL + + col1 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL + col1 * col1 FROM tab0 AS cor0
----
7396
8281
9409
query IIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab1 AS cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
query I rowsort
SELECT - + ( col1 ) FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7380
SELECT ALL col1 DIV 68 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7380
SELECT ALL col1 / 68 FROM tab0
----
1
1
1
query I rowsort
SELECT - col0 + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-7382
SELECT - 66 DIV + 32 FROM tab0, tab1 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
skipif mysql # not compatible
query I rowsort label-7382
SELECT - 66 / + 32 FROM tab0, tab1 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
query I rowsort
SELECT + + col0 - + col0 * + col2 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT col1 * + col0 - cor0.col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 97b2ae21242e1e40418ee2ad06544f7a
query I rowsort
SELECT col2 + col1 * col1 FROM tab0 AS cor0
----
7429
8363
9410
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7387
SELECT CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-7387
SELECT CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL cor0.col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + 33 FROM tab0 AS cor0
----
33
33
33
query I rowsort
SELECT ALL - + 65 * + col2 AS col0 FROM tab2 cor0
----
-1690
-1755
-2470
query I rowsort
SELECT ALL - 35 * + 56 AS col0 FROM tab0 AS cor0
----
-1960
-1960
-1960
onlyif mysql # use DIV operator for integer division
query I rowsort label-7392
SELECT DISTINCT + ( + 2 ) DIV - col1 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7392
SELECT DISTINCT + ( + 2 ) / - col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - 35 + 41 AS col1 FROM tab0 AS cor0
----
6
query I rowsort
SELECT - - col0 * cor0.col2 + - cor0.col1 + + ( col1 ) * cor0.col0 FROM tab1 AS cor0
----
214
4278
8707
query I rowsort
SELECT 11 + 9 * col2 FROM tab1 cor0
----
497
524
875
query I rowsort
SELECT 93 * cor0.col2 * + cor0.col1 + - col1 FROM tab0 AS cor0
----
263848
693875
8924
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col2 FROM tab0 AS cor0
----
80
80
80
query I rowsort
SELECT DISTINCT - ( col0 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL 73 * col2 AS col2 FROM tab1 cor0
----
3942
4161
7008
query I rowsort
SELECT + col0 + + col2 * + col2 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT DISTINCT - - col0 * col1 * - col1 AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT DISTINCT - 3 FROM tab2 AS cor0
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL 49 AS col1 FROM tab1 cor0
----
49
49
49
query I rowsort
SELECT + 65 * 53 + col0 + - 74 * + col2 AS col1 FROM tab0 AS cor0
----
-2534
1027
3406
onlyif mysql # use DIV operator for integer division
query I rowsort label-7406
SELECT DISTINCT - + col2 DIV col0 + + col2 * col0 + - 88 col0 FROM tab1 AS cor0
----
3560
56
7591
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7406
SELECT DISTINCT - + col2 / col0 + + col2 * col0 + - 88 col0 FROM tab1 AS cor0
----
3560
56
7591
onlyif mysql # use DIV operator for integer division
query I rowsort label-7407
SELECT + - cor0.col1 DIV col0 + + col2 + col0 DIV + 23 AS col1 FROM tab0 AS cor0
----
0
31
84
skipif mysql # not compatible
query I rowsort label-7407
SELECT + - cor0.col1 / col0 + + col2 + col0 / + 23 AS col1 FROM tab0 AS cor0
----
0
31
84
query I rowsort
SELECT ALL - col1 * - col1 + + col1 * cor0.col1 AS col1 FROM tab2 cor0
----
1922
578
6962
query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + ( - col1 ) FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7411
SELECT ALL - - 11 + col2 / + col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL - - 11 + col2 / + col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + ( col1 ) ) + 79 * + 80 col2 FROM tab0
----
6406
6411
6417
query I rowsort
SELECT DISTINCT 5 + - col0 AS col0 FROM tab0
----
-19
-30
-84
query I rowsort
SELECT DISTINCT - col0 + col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT DISTINCT + 69 AS col1 FROM tab0, tab2 cor0
----
69
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab1 cor1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242
query I rowsort
SELECT ALL + col1 + + col2 * + col1 AS col1 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT - ( col2 ) - + col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT ALL + + col0 - + col1 AS col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT + ( 12 ) + - cor0.col0 * - ( col1 ) AS col1 FROM tab2 AS cor0
----
1355
229
4614
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( col1 ) * col0 col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT 23 * + cor0.col0 - col0 * - col1 * col1 FROM tab1 cor0
----
15360
2097
7872
query I rowsort
SELECT 59 * - 72 - col1 * cor0.col1 * - 95 FROM tab2 AS cor0
----
23207
326447
87047
query I rowsort
SELECT DISTINCT + col1 + col1 AS col0 FROM tab2 AS cor0
----
118
34
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7425
SELECT DISTINCT cor0.col1 * col0 * - CAST( - col0 + + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-18576
115430
56693
skipif mysql # not compatible
query I rowsort label-7425
SELECT DISTINCT cor0.col1 * col0 * - CAST ( - col0 + + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-18576
115430
56693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT - col0 + col2 AS col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL col1 * + col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - + col0 FROM tab2 AS cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col0 * + 75 col1 FROM tab2 AS cor0
----
-532
-5928
-6004
query I rowsort
SELECT - 20 * col0 + ( col2 ) AS col0 FROM tab0 AS cor0
----
-1698
-447
-699
query I rowsort
SELECT + col0 + - col1 * col1 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT 33 - + col2 FROM tab2
----
-5
6
7
query I rowsort
SELECT DISTINCT - 48 * col0 + - tab0.col2 AS col2 FROM tab0
----
-1185
-1681
-4354
query IIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab0 AS cor1
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f
query I rowsort
SELECT - 41 AS col1 FROM tab0
----
-41
-41
-41
query I rowsort
SELECT + 38 * 71 + col2 AS col1 FROM tab0
----
2699
2731
2780
query I rowsort
SELECT + ( 78 ) * + col2 FROM tab0
----
2574
6396
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7440
SELECT DISTINCT col1 + + col2 DIV - col2 FROM tab1
----
12
25
9
skipif mysql # not compatible
query I rowsort label-7440
SELECT DISTINCT col1 + + col2 / - col2 FROM tab1
----
12
25
9
query I rowsort
SELECT 71 * col1 FROM tab2
----
1207
2201
4189
query I rowsort
SELECT DISTINCT + + col1 * + col2 + + 65 + col1 AS col1 FROM tab0 AS cor0
----
259
2989
7618
query I rowsort
SELECT ALL col1 * - cor0.col0 - + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT DISTINCT - + col2 * - ( cor0.col2 ) FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL - col2 * - 69 * + ( cor0.col1 ) + + 25 FROM tab2 AS cor0
----
105871
44599
57778
query I rowsort
SELECT col0 + + col1 AS col2 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + + cor0.col1 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + - col0 * cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL - + cor0.col2 - 45 FROM tab1 AS cor0
----
-102
-141
-99
query I rowsort
SELECT DISTINCT col1 * + col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT col0 * 40 FROM tab1 cor0
----
120
2560
3200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7452
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - col0 + + col2 FROM tab2 AS cor0
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - col2 * - col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + cor0.col2 + 18 * - col2 AS col0 FROM tab0 AS cor0
----
-1394
-17
-561
query I rowsort
SELECT + col1 * col1 + tab1.col0 * + tab1.col1 * col2 FROM tab1
----
100009
36580
4888
query I rowsort
SELECT - col2 + tab1.col2 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT 39 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
39
query I rowsort
SELECT + cor0.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT - ( - col1 + + tab0.col0 ) AS col0 FROM tab0
----
2
62
query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL + + col2 + + ( col2 ) + - cor0.col2 * 6 AS col1 FROM tab2 AS cor0
----
-104
-108
-152
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + 70 * - col0 col2 FROM tab0 AS cor0
----
-1766
-2547
-6321
query I rowsort
SELECT DISTINCT + col1 * + ( col2 ) - col1 FROM tab2 cor0
----
1475
629
806
query I rowsort
SELECT ALL + col1 * + 2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT - col0 + ( col1 ) FROM tab2 AS cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 col0 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT 33 FROM tab0
----
33
query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT + tab0.col1 - 83 AS col0 FROM tab0
----
14
3
8
query I rowsort
SELECT ALL col0 * 56 * 76 - - tab1.col1 AS col0 FROM tab1
----
12794
272394
340493
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 9af67d6f98010464af5d560bf949d487
query I rowsort
SELECT DISTINCT col2 - 44 * + 29 FROM tab1
----
-1180
-1219
-1222
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to ee83821bd928a072bc435d7135362ca1
query I rowsort
SELECT ALL col1 * + 13 AS col2 FROM tab1 AS cor0
----
130
169
338
query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 + + col2 col0 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 + - col0 * - 58 AS col0 FROM tab2
----
399
4446
4503
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab1 AS cor0, tab1 AS cor1
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd
query I rowsort
SELECT ALL - col0 * + tab1.col2 AS col1 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT 68 AS col0 FROM tab0
----
68
68
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-7484
SELECT col1 DIV col2 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7484
SELECT col1 / col2 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - ( - tab1.col1 ) AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL - col1 * col1 AS col0 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT - col0 - col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT - col1 * - col0 AS col1 FROM tab1
----
1040
640
78
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 52 AS REAL ) AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74
query I rowsort
SELECT ALL - 79 * col2 AS col1 FROM tab0
----
-2607
-6478
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-7491
SELECT ALL + col1 DIV col0 + + col2 * col1 + + col0 AS col0 FROM tab2 AS cor0
----
1612
725
848
skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL + col1 / col0 + + col2 * col1 + + col0 AS col0 FROM tab2 AS cor0
----
1612
725
848
query I rowsort
SELECT col2 * + col2 FROM tab1 cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-7493
SELECT DISTINCT - - col1 * col1 - + cor0.col2 * + col1 DIV cor0.col1 FROM tab2 AS cor0
----
251
3455
934
skipif mysql # not compatible
query I rowsort label-7493
SELECT DISTINCT - - col1 * col1 - + cor0.col2 * + col1 / cor0.col1 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT + - col2 + col1 + col2 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - col2 * col2 - col0 FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT - 95 FROM tab0, tab1 AS cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c
query I rowsort
SELECT + col0 * - col1 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7498
SELECT + col1 / - CAST( NULL AS SIGNED ) + col0 * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7498
SELECT + col1 / - CAST ( NULL AS INTEGER ) + col0 * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab2, tab0 cor0, tab0 AS cor1
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-7500
SELECT DISTINCT + cor0.col0 + col2 + + col2 DIV col2 AS col0 FROM tab1 AS cor0
----
122
177
58
skipif mysql # not compatible
query I rowsort label-7500
SELECT DISTINCT + cor0.col0 + col2 + + col2 / col2 AS col0 FROM tab1 AS cor0
----
122
177
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( + col1 + ( 78 ) ) col2 FROM tab0 cor0
----
-14104
-15379
-16975
query I rowsort
SELECT DISTINCT - tab1.col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT - - col0 + cor0.col1 * col2 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT + + col0 + col0 AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + ( cor0.col1 ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + - 37 AS col0 FROM tab2 AS cor0
----
-37
-37
-37
query I rowsort
SELECT - - col2 + - col0 AS col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT ( col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL col2 * col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT DISTINCT cor0.col1 * - col2 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7511
SELECT + CAST( + ( - col2 ) AS SIGNED ) col1 FROM tab0 cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7511
SELECT + CAST ( + ( - col2 ) AS INTEGER ) col1 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT - + col0 + cor0.col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-7515
SELECT ALL - col1 * 54 + col1 * cor0.col1 DIV - cor0.col1 AS col2 FROM tab0 AS cor0
----
-4730
-5005
-5335
skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL - col1 * 54 + col1 * cor0.col1 / - cor0.col1 AS col2 FROM tab0 AS cor0
----
-4730
-5005
-5335
query I rowsort
SELECT - col2 * col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT ( + col0 ) + + col1 * col2 AS col1 FROM tab2 AS cor0
----
1612
725
844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 38 ) col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3
query I rowsort
SELECT + + 1 * - col0 + - col2 * 36 FROM tab1 AS cor0
----
-1947
-2116
-3536
query I rowsort
SELECT col1 * col0 AS col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - 56 AS col2 FROM tab2
----
-56
query I rowsort
SELECT - 65 * col0 + col0 * + 49 * ( tab0.col1 ) FROM tab0
----
164080
391066
99576
query I rowsort
SELECT ( tab0.col0 + col2 * + 67 ) AS col0 FROM tab0
----
102
2235
5583
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col0 * col0 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT + + 55 FROM tab0 cor0
----
55
55
55
query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL col1 * col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT 46 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1196
460
598
query I rowsort
SELECT + col0 + cor0.col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + + 35 AS col0 FROM tab2 AS cor0
----
35
35
35
query I rowsort
SELECT + + col1 AS col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + col0 * + col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - - col2 - + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7537
SELECT - col1 DIV col2 FROM tab0 cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-7537
SELECT - col1 / col2 FROM tab0 cor0
----
-1
-2
-97
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 ALL + + col0 + 58 AS col1 FROM tab2 AS cor0
----
136
137
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - col0 * - col1 * col2 FROM tab2 AS cor0
----
119652
51034
5859
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab2, tab0 AS cor1
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1
query I rowsort
SELECT ALL + col1 AS col0 FROM tab1
----
10
13
26
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col0 FROM tab1 AS cor0
----
54
57
96
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19
query I rowsort
SELECT + col0 * col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT col2 * + ( col2 ) FROM tab1
----
2916
3249
9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7549
SELECT + CAST( NULL AS SIGNED ) FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7549
SELECT + CAST ( NULL AS INTEGER ) FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - col2 * + 68 AS col0 FROM tab1
----
-3672
-3876
-6528
query I rowsort
SELECT DISTINCT col2 * col0 AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL + col2 AS col0 FROM tab2
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col0 FROM tab2
----
5
5
5
query I rowsort
SELECT ALL - 53 FROM tab2, tab0 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d
query I rowsort
SELECT + ( + col2 ) FROM tab2 cor0
----
26
27
38
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab1 cor1, tab2 cor2
----
972 values hashing to 2507aa9f48c3db94de9fec065edf3731
query I rowsort
SELECT DISTINCT 46 FROM tab0
----
46
query I rowsort
SELECT DISTINCT ( + col2 ) AS col0 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( tab1.col1 ) col1 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT col1 + 36 FROM tab0
----
122
127
133
query I rowsort
SELECT DISTINCT - + col2 + cor0.col2 + cor0.col2 * + cor0.col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + col1 + - 41 FROM tab2 AS cor0
----
-10
-24
18
query I rowsort
SELECT + col1 * - col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col0 + + col1 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL + col2 * - col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + - col0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + cor0.col0 + - 6 AS col0 FROM tab0 AS cor0
----
18
29
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT cor0.col2 + 82 * + col2 AS col2 FROM tab0 AS cor0
----
2739
6806
83
query I rowsort
SELECT DISTINCT col0 * 48 FROM tab1 AS cor0
----
144
3072
3840
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab1, tab2 AS cor1
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - col2 * col2 + + col0 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-513
1197
1224
query I rowsort
SELECT DISTINCT - - col0 * cor0.col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL col2 * 3 AS col2 FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT + col2 + 82 + - col2 FROM tab1 AS cor0
----
82
82
82
query I rowsort
SELECT DISTINCT col1 + + col0 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - - col0 + 83 FROM tab1 AS cor0
----
147
163
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7581
SELECT ALL cor0.col2 + - CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL cor0.col2 + - CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7582
SELECT + col2 * tab1.col2 DIV - col2 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-7582
SELECT + col2 * tab1.col2 / - col2 FROM tab1
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7583
SELECT ALL + 80 DIV + col0 - + 59 FROM tab2
----
-48
-58
-58
skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL + 80 / + col0 - + 59 FROM tab2
----
-48
-58
-58
query I rowsort
SELECT DISTINCT - + col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT cor0.col0 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-7586
SELECT ALL - + col0 + cor0.col1 + col0 DIV col0 AS col2 FROM tab2 AS cor0
----
-18
-61
25
skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL - + col0 + cor0.col1 + col0 / col0 AS col2 FROM tab2 AS cor0
----
-18
-61
25
query I rowsort
SELECT + + col2 * cor0.col2 - col0 AS col1 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT ALL col0 * col2 + - 62 FROM tab0 cor0
----
-27
7236
730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - cor0.col2 - col2 * + 18 AS col1 FROM tab1 AS cor0
----
-1026
-1083
-1824
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 col2 FROM tab1 cor0
----
-29
-74
-93
query I rowsort
SELECT ALL - col0 * + col1 + - col1 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT DISTINCT + col2 + col0 * 3 + - col0 FROM tab2
----
182
196
41
query I rowsort
SELECT ALL + 66 * + col0 AS col1 FROM tab1 cor0
----
198
4224
5280
query I rowsort
SELECT ALL + 58 FROM tab0 AS cor0
----
58
58
58
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab0 cor1, tab0 AS cor2
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0
query I rowsort
SELECT + ( col1 ) * col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT cor1.col1 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT + col1 + 35 * col0 FROM tab0
----
1322
3206
926
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 6156c969b7e054b8a333fdb86aee82f2
query I rowsort
SELECT DISTINCT - 57 FROM tab0, tab2 AS cor0
----
-57
query I rowsort
SELECT ALL + col2 + + col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - col1 + col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 + cor0.col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL + 21 AS col2 FROM tab0 AS cor0
----
21
21
21
query I rowsort
SELECT + col1 AS col2 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT col0 * - tab1.col2 * - col0 + 54 FROM tab1
----
233526
540
614454
query I rowsort
SELECT + 20 FROM tab1
----
20
20
20
query I rowsort
SELECT ALL - tab0.col0 - + col2 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT 51 * col0 - ( - col2 ) * col2 FROM tab1
----
13296
3069
6513
query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT col0 * + col2 AS col0 FROM tab2
----
189
2028
3002
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab2 cor0
----
243 values hashing to 042fa16c43ab365359ee93c064e44127
onlyif mysql # use DIV operator for integer division
query I rowsort label-7614
SELECT DISTINCT - + col1 DIV col0 - - cor0.col1 FROM tab1 AS cor0
----
10
13
18
skipif mysql # not compatible
query I rowsort label-7614
SELECT DISTINCT - + col1 / col0 - - cor0.col1 FROM tab1 AS cor0
----
10
13
18
query I rowsort
SELECT col2 * col1 + col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - - 40 + col2 * col1 AS col2 FROM tab2 AS cor0
----
1574
686
877
query I rowsort
SELECT DISTINCT + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + 11 + 55 FROM tab0, tab1 AS cor0
----
66
query I rowsort
SELECT - col1 * - col1 * ( col1 ) FROM tab2 AS cor0
----
205379
29791
4913
onlyif mysql # use DIV operator for integer division
query I rowsort label-7620
SELECT + col0 DIV + col1 - + 15 AS col0 FROM tab0 AS cor0
----
-15
-15
-15
skipif mysql # not compatible
query I rowsort label-7620
SELECT + col0 / + col1 - + 15 AS col0 FROM tab0 AS cor0
----
-15
-15
-15
query I rowsort
SELECT - 4 - - col2 AS col1 FROM tab2 AS cor0
----
22
23
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 col1 FROM tab1 cor0
----
-10
-13
-26
query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
54 values hashing to b8667d60d280879b35ad1450a82b3a49
query I rowsort
SELECT + cor0.col2 + col2 AS col0 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT 47 * col2 AS col0 FROM tab2 AS cor0
----
1222
1269
1786
query I rowsort
SELECT ALL 37 FROM tab2 AS cor0
----
37
37
37
query I rowsort
SELECT DISTINCT col1 * + col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - - col0 * + ( col1 ) - + col2 FROM tab0 AS cor0
----
2031
3394
8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-7629
SELECT - + col2 * ( col2 ) * - col1 + cor0.col1 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
22600
24549
39885
skipif mysql # not compatible
query I rowsort label-7629
SELECT - + col2 * ( col2 ) * - col1 + cor0.col1 / cor0.col1 AS col0 FROM tab2 AS cor0
----
22600
24549
39885
query I rowsort
SELECT DISTINCT col1 + + 47 FROM tab2 AS cor0
----
106
64
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - col0 col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT + - col0 - - 15 * + col1 FROM tab1 AS cor0
----
115
387
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7634
SELECT - col0 * ( - cor0.col2 ) + - col1 - - CAST( - 50 * - col1 + + col2 AS SIGNED ) FROM tab0 AS cor0
----
11839
4789
5039
skipif mysql # not compatible
query I rowsort label-7634
SELECT - col0 * ( - cor0.col2 ) + - col1 - - CAST ( - 50 * - col1 + + col2 AS INTEGER ) FROM tab0 AS cor0
----
11839
4789
5039
query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + cor0.col0 - + col2 FROM tab2 AS cor0
----
-20
41
52
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab2 AS cor1
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc
query I rowsort
SELECT DISTINCT - 63 AS col0 FROM tab1
----
-63
query I rowsort
SELECT DISTINCT - 92 AS col0 FROM tab2 AS cor0
----
-92
query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col2 ) col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + - col1 * - cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab0, tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - - ( col1 ) * col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT + cor0.col1 + - col0 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7646
SELECT ALL - 14 DIV - 31 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL - 14 / - 31 AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7647
SELECT - CAST( + col1 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-7647
SELECT - CAST ( + col1 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - ( col1 ) * cor0.col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT - + cor0.col0 * + col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-7650
SELECT ALL col1 + 33 DIV + col0 AS col2 FROM tab0 AS cor0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL col1 + 33 / + col0 AS col2 FROM tab0 AS cor0
----
87
91
97
query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + + col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - col1 * col1 AS col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT + cor0.col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + 8 * - col1 FROM tab0 AS cor0
----
-688
-728
-776
query I rowsort
SELECT + + 60 * cor0.col1 FROM tab2 cor0
----
1020
1860
3540
query I rowsort
SELECT DISTINCT 38 FROM tab2 AS cor0
----
38
query I rowsort
SELECT + 57 * col2 AS col0 FROM tab1 AS cor0
----
3078
3249
5472
query I rowsort
SELECT 43 FROM tab2 cor0
----
43
43
43
query I rowsort
SELECT ALL + + col1 * col1 + + col0 AS col1 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT DISTINCT + cor0.col2 * - cor0.col0 - + col2 AS col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT + + col1 * col1 FROM tab1 AS cor0
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col0 * + ( + 15 ) col1 FROM tab2 AS cor0
----
-1111
-1168
-74
query I rowsort
SELECT cor0.col1 + col1 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-7666
SELECT DISTINCT - - col0 DIV + col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT - - col0 / + col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT 65 FROM tab0
----
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-7668
SELECT ALL - col1 DIV col0 AS col1 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL - col1 / col0 AS col1 FROM tab1
----
-8
0
0
query I rowsort
SELECT + col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - col1 + - col2 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT - col2 - col0 FROM tab2
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-7672
SELECT - 35 DIV - tab1.col2 + col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-7672
SELECT - 35 / - tab1.col2 + col2 FROM tab1
----
54
57
96
query I rowsort
SELECT 11 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT + + ( col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7675
SELECT - 12 DIV - 19 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7675
SELECT - 12 / - 19 AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7676
SELECT + col2 DIV + cor0.col2 col2 FROM tab0 cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7676
SELECT + col2 / + cor0.col2 col2 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT - - cor0.col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + tab2.col1 * col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT col0 * + col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ( 98 ) + + col0 AS col1 FROM tab2 cor0
----
105
176
177
query I rowsort
SELECT DISTINCT 1 AS col0 FROM tab1, tab0 AS cor0
----
1
query I rowsort
SELECT DISTINCT + ( 35 ) * col1 * - tab2.col1 FROM tab2
----
-10115
-121835
-33635
query I rowsort
SELECT DISTINCT - ( 25 ) FROM tab0
----
-25
onlyif mysql # use DIV operator for integer division
query I rowsort label-7684
SELECT col1 DIV tab0.col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-7684
SELECT col1 / tab0.col0 FROM tab0
----
1
2
3
query I rowsort
SELECT ALL col2 * + col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - 55 * col2 AS col1 FROM tab0 AS cor0
----
-1815
-4510
-55
query I rowsort
SELECT 99 * + 94 AS col1 FROM tab1
----
9306
9306
9306
onlyif mysql # use DIV operator for integer division
query I rowsort label-7688
SELECT 17 * col1 DIV col2 AS col1 FROM tab0
----
1649
18
44
skipif mysql # not compatible
query I rowsort label-7688
SELECT 17 * col1 / col2 AS col1 FROM tab0
----
1649
18
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab1
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7690
SELECT DISTINCT CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7690
SELECT DISTINCT CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT col0 * col2 AS col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT tab2.col1 + tab2.col1 * tab2.col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 09d904e364d7b9f14989070783f19e90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab2
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 col1 FROM tab0
----
-44
-44
-44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 AS cor0
----
-17
-31
-59
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 tab2.col0 * col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT + tab2.col2 * col2 AS col1 FROM tab2
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL col2 * tab0.col0 AS col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT + tab1.col0 FROM tab1, tab1 AS cor0
----
3
64
80
query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
54 values hashing to b8667d60d280879b35ad1450a82b3a49
query I rowsort
SELECT + 26 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b
query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
54 values hashing to 2a7467bc6f55dbb61fbd4aa2bd0646a9
query I rowsort
SELECT col0 + 7 FROM tab0 AS cor0
----
31
42
96
query I rowsort
SELECT - - col0 * + 81 AS col2 FROM tab2 AS cor0
----
567
6318
6399
query I rowsort
SELECT col0 + - 22 FROM tab0 AS cor0
----
13
2
67
query I rowsort
SELECT DISTINCT - col0 - 47 * + col1 AS col0 FROM tab0 AS cor0
----
-4066
-4366
-4594
query I rowsort
SELECT DISTINCT - col2 * col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + col2 + + 35 AS col0 FROM tab0 cor0
----
117
36
68
query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT col1 * - col0 AS col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT col0 + - col2 AS col1 FROM tab2
----
-20
41
52
query I rowsort
SELECT DISTINCT col0 * + 28 AS col2 FROM tab0
----
2492
672
980
query I rowsort
SELECT - cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT col1 - + ( col0 ) * col2 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT - col0 + col1 FROM tab2
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * tab0.col2 + + col2 col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT + 1 AS col0 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT 86 * 81 AS col0 FROM tab1 AS cor0
----
6966
6966
6966
query I rowsort
SELECT + cor0.col0 + ( - col0 ) * - col0 FROM tab2 cor0
----
56
6162
6320
query I rowsort
SELECT col2 + col2 FROM tab0
----
164
2
66
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab0 cor1
----
972 values hashing to 5e655b1287771868a8f868574a94d749
query I rowsort
SELECT + 90 + col2 * + col0 FROM tab1 AS cor0
----
252
3738
7770
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7727
SELECT DISTINCT - col1 * - col0 + + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT - col1 * - col0 + + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - + cor0.col0 + col1 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7729
SELECT ALL CAST( col2 AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL CAST ( col2 AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7730
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7730
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
query I rowsort
SELECT 67 AS col2 FROM tab0 AS cor0
----
67
67
67
query I rowsort
SELECT ALL cor0.col2 * - col1 + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT 56 * col2 FROM tab2 AS cor0
----
1456
1512
2128
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7734
SELECT ALL + - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL + - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - + 16 FROM tab2 AS cor0
----
-16
query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab1 cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 39 ) col0 FROM tab2 cor0
----
-39
-39
-39
onlyif mysql # use DIV operator for integer division
query I rowsort label-7738
SELECT ALL + col1 + col2 DIV col0 FROM tab0 AS cor0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL + col1 + col2 / col0 FROM tab0 AS cor0
----
87
91
97
query I rowsort
SELECT + ( col0 ) * col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT 68 FROM tab2 AS cor0
----
68
68
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-7742
SELECT - col1 DIV col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7742
SELECT - col1 / col2 FROM tab1
----
0
0
0
query I rowsort
SELECT + - col2 + col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT 71 + + col0 * 75 AS col0 FROM tab0 AS cor0
----
1871
2696
6746
query I rowsort
SELECT ALL + cor0.col1 * + cor0.col1 + + col0 FROM tab0 cor0
----
7420
8370
9444
query I rowsort
SELECT DISTINCT + col2 * col1 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col0 col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - col1 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT ALL + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab2 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 9d746e15fdb5adcb43a7518cd9743eb3
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab0 cor1, tab0 AS cor2
----
972 values hashing to d522b52b67b20888d3544d25cb98f232
query I rowsort
SELECT - - col2 + 23 FROM tab1 AS cor0
----
119
77
80
query I rowsort
SELECT + 28 * - 67 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85b4b4980b4cd8bbc7032074fca52d22
query I rowsort
SELECT col1 * - col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + 63 * + col0 AS col1 FROM tab0
----
1512
2205
5607
query I rowsort
SELECT ALL + col2 * + col2 * col0 + col2 + - col1 FROM tab2
----
114097
5099
52695
query I rowsort
SELECT col1 * col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - - col2 + col2 AS col1 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-7760
SELECT + col2 + col0 + + col1 DIV col1 FROM tab1
----
122
177
58
skipif mysql # not compatible
query I rowsort label-7760
SELECT + col2 + col0 + + col1 / col1 FROM tab1
----
122
177
58
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
243 values hashing to 042fa16c43ab365359ee93c064e44127
query I rowsort
SELECT ALL + col0 - col1 FROM tab0
----
-2
-62
-62
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0 CROSS JOIN tab0
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d
onlyif mysql # use DIV operator for integer division
query I rowsort label-7764
SELECT - col0 DIV col2 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-7764
SELECT - col0 / col2 FROM tab0
----
-1
-35
0
query I rowsort
SELECT col2 + col1 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( - col2 * col2 )
----
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 ALL col1 * - col1 + col2 * + col0 AS col2 FROM tab2 AS cor0
----
-1453
-772
2713
query I rowsort
SELECT DISTINCT - col2 + col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL + col0 + col1 AS col2 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT col1 * + cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
1000
17576
2197
query I rowsort
SELECT ALL - col2 * col1 + col0 * col0 FROM tab2 AS cor0
----
-788
4550
5595
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 - - col2 * + col1 + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT - col2 + - col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT ALL + col0 * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL - col0 + col2 * + col0 AS col1 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT tab1.col2 * col2 - + col1 FROM tab1
----
2890
3239
9203
query I rowsort
SELECT col0 * col0 + - col0 FROM tab0
----
1190
552
7832
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0 CROSS JOIN tab0
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00
query I rowsort
SELECT DISTINCT - col0 * - col2 - + col0 FROM tab2
----
182
1950
2923
query I rowsort
SELECT col0 - col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT DISTINCT - col0 + - col1 - col1 AS col1 FROM tab2
----
-113
-196
-69
query I rowsort
SELECT ALL col0 + tab1.col1 - col2 FROM tab1
----
-25
-3
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 * cor0.col2 + col0 col0 FROM tab0 AS cor0
----
132
611973
93678
query I rowsort
SELECT ALL - + cor0.col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - + cor0.col0 + - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1612
-725
-844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col2 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT - tab2.col2 * - col0 AS col1 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-7789
SELECT DISTINCT col1 + col2 DIV + col1 AS col1 FROM tab2 cor0
----
19
31
59
skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT col1 + col2 / + col1 AS col1 FROM tab2 cor0
----
19
31
59
query I rowsort
SELECT ALL + col1 + col1 * col2 - col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + col1 + col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT + col0 + - col0 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - + col2 * + col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1427
-617
-698
onlyif mysql # use DIV operator for integer division
query I rowsort label-7794
SELECT ALL cor0.col0 DIV - col0 - - col0 AS col0 FROM tab2 AS cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-7794
SELECT ALL cor0.col0 / - col0 - - col0 AS col0 FROM tab2 AS cor0
----
6
77
78
query I rowsort
SELECT + - col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT col0 * col0 AS col1 FROM tab1
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0
----
24
35
89
query I rowsort
SELECT + col1 - col1 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT col1 - + col2 * col2 AS col0 FROM tab0
----
-1003
-6633
96
query I rowsort
SELECT ALL + col2 + - col1 * - col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT - col1 FROM tab1 cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7802
SELECT + col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-7802
SELECT + col1 / + col0 AS col1 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT ALL + col1 * col0 * - col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-7804
SELECT DISTINCT col1 DIV + col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-7804
SELECT DISTINCT col1 / + col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT ALL tab0.col2 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT - tab1.col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT + 43 FROM tab2 AS cor0
----
43
43
43
query I rowsort
SELECT DISTINCT 15 + - cor0.col2 FROM tab1 AS cor0
----
-39
-42
-81
query I rowsort
SELECT cor0.col2 AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT col2 * col0 AS col2 FROM tab0 cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 * tab1.col2 col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT tab0.col0 AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT + col2 * + col0 * col1 + tab1.col0 FROM tab1
----
36544
4215
99920
query I rowsort
SELECT ALL - col1 AS col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT - col2 + col0 AS col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT col0 + col2 * + col2 FROM tab0
----
1113
36
6813
query I rowsort
SELECT + tab0.col0 * - col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - col2 + - col2 * - col2 AS col2 FROM tab0
----
0
1056
6642
query I rowsort
SELECT col2 * col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT tab0.col2 - tab0.col1 * - tab0.col1 FROM tab0
----
7429
8363
9410
query I rowsort
SELECT col2 + - col2 * - col2 FROM tab0
----
1122
2
6806
query I rowsort
SELECT - 58 AS col0 FROM tab2
----
-58
-58
-58
query I rowsort
SELECT DISTINCT cor0.col1 + col1 AS col1 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-7825
SELECT DISTINCT col0 + + col0 DIV - 49 AS col0 FROM tab0 AS cor0
----
24
35
88
skipif mysql # not compatible
query I rowsort label-7825
SELECT DISTINCT col0 + + col0 / - 49 AS col0 FROM tab0 AS cor0
----
24
35
88
query I rowsort
SELECT - + col1 * + col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT col0 * col2 * col0 AS col1 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT DISTINCT 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 + col1 + col0 col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL - - ( + col2 ) * - ( - col2 ) FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT + col1 * - col2 AS col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL tab0.col0 + - col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT col0 * col1 + + col0 / - col0 AS col0 FROM tab0 WHERE ( - col2 * - col1 + col0 + - col2 / - col0 ) >= NULL
----
query I rowsort
SELECT + tab1.col1 AS col2 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT col1 * + col2 AS col2 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-7837
SELECT - tab0.col1 DIV - col2 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-7837
SELECT - tab0.col1 / - col2 FROM tab0
----
1
2
97
query I rowsort
SELECT ALL col1 + - col1 * col1 AS col0 FROM tab2
----
-272
-3422
-930
query I rowsort
SELECT ALL col2 * - col0 * - col2 + col0 + + col0 FROM tab2
----
114234
5117
52884
onlyif mysql # use DIV operator for integer division
query I rowsort label-7840
SELECT col2 * col0 DIV - col1 AS col0 FROM tab0
----
-80
-9
0
skipif mysql # not compatible
query I rowsort label-7840
SELECT col2 * col0 / - col1 AS col0 FROM tab0
----
-80
-9
0
query I rowsort
SELECT - col1 AS col1 FROM tab0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT col1 + - tab0.col2 + - tab0.col2 AS col1 FROM tab0
----
-73
20
95
query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE ( NULL ) = ( col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7845
SELECT col0 DIV col1 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7845
SELECT col0 / col1 AS col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL tab1.col0 * col1 AS col2 FROM tab1
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL col1 * col2 + + col2 * col1 * col1 + + col1 FROM tab1 AS cor0
----
17485
37934
6280
query I rowsort
SELECT ALL + cor0.col1 * col0 + + col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT + col1 + col1 * col2 AS col1 FROM tab2
----
1593
663
868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 * + col2 col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL - col2 * tab1.col2 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + col0 * col2 * + col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT ALL + col2 - + tab0.col0 * col2 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT - col0 * col0 FROM tab2
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-7857
SELECT tab1.col1 DIV col0 + col2 * + col2 AS col2 FROM tab1
----
2924
3249
9216
skipif mysql # not compatible
query I rowsort label-7857
SELECT tab1.col1 / col0 + col2 * + col2 AS col2 FROM tab1
----
2924
3249
9216
query I rowsort
SELECT DISTINCT - col0 + - col2 AS col1 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT DISTINCT - col1 * - col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL col2 * tab2.col2 + - col2 FROM tab2
----
1406
650
702
query I rowsort
SELECT ALL + col1 + col1 * col0 FROM tab1
----
104
1053
650
query I rowsort
SELECT DISTINCT tab2.col1 AS col1 FROM tab2
----
17
31
59
query III rowsort
SELECT * FROM tab0 WHERE col2 BETWEEN - col2 AND ( NULL )
----
query I rowsort
SELECT tab2.col1 AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT col0 + + col0 AS col0 FROM tab1
----
128
160
6
query I rowsort
SELECT + col0 + col0 FROM tab1
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab0
----
86
91
97
query I rowsort
SELECT tab0.col2 + + col0 * + col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT ALL + col1 * + col1 AS col2 FROM tab1
----
100
169
676
query I rowsort
SELECT ALL col1 * - tab0.col0 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-7871
SELECT tab2.col1 DIV tab2.col1 AS col2 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7871
SELECT tab2.col1 / tab2.col1 AS col2 FROM tab2
----
1
1
1
query I rowsort
SELECT - col1 + - col0 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT - tab1.col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + col0 + col1 * tab1.col1 * - col1 FROM tab1
----
-17573
-2117
-936
onlyif mysql # use DIV operator for integer division
query I rowsort label-7875
SELECT tab2.col1 + - col0 DIV - col1 col1 FROM tab2
----
21
31
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7875
SELECT tab2.col1 + - col0 / - col1 col1 FROM tab2
----
21
31
60
query I rowsort
SELECT + col2 AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT - col0 + tab0.col2 * col0 AS col0 FROM tab0
----
0
7209
768
query I rowsort
SELECT - 99 AS col2 FROM tab0
----
-99
-99
-99
query I rowsort
SELECT + 49 FROM tab1
----
49
49
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
onlyif mysql # use DIV operator for integer division
query I rowsort label-7881
SELECT DISTINCT 9 DIV + col0 FROM tab2
----
0
1
skipif mysql # not compatible
query I rowsort label-7881
SELECT DISTINCT 9 / + col0 FROM tab2
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7882
SELECT + cor0.col1 * + col0 DIV + ( col0 ) + col1 * - col0 * col2 AS col1 FROM tab0 AS cor0
----
-3298
-664027
-68026
skipif mysql # not compatible
query I rowsort label-7882
SELECT + cor0.col1 * + col0 / + ( col0 ) + col1 * - col0 * col2 AS col1 FROM tab0 AS cor0
----
-3298
-664027
-68026
query I rowsort
SELECT + cor0.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT + col2 * + col0 FROM tab0 cor0
----
35
7298
792
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to d522b52b67b20888d3544d25cb98f232
onlyif mysql # use DIV operator for integer division
query I rowsort label-7886
SELECT + col0 DIV col0 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7886
SELECT + col0 / col0 AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + + cor0.col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT + col0 * + 29 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1421
-176436
-180989
onlyif mysql # use DIV operator for integer division
query I rowsort label-7889
SELECT ALL col0 DIV + col2 AS col2 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7889
SELECT ALL col0 / + col2 AS col2 FROM tab1
----
0
0
1
query I rowsort
SELECT - col1 + + ( col2 ) FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT - col1 * 1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - cor0.col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT - tab1.col0 AS col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + tab2.col2 AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT 69 FROM tab2
----
69
query I rowsort
SELECT DISTINCT 44 FROM tab1
----
44
query I rowsort
SELECT 98 * col1 + col1 AS col0 FROM tab0 AS cor0
----
8514
9009
9603
query I rowsort
SELECT + ( - col2 ) * - col1 * - col1 + - col0 AS col2 FROM tab2 AS cor0
----
-11061
-25954
-90584
query I rowsort
SELECT - 43 * col1 FROM tab2 AS cor0
----
-1333
-2537
-731
onlyif mysql # use DIV operator for integer division
query I rowsort label-7900
SELECT + cor0.col1 DIV + col1 + col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-7900
SELECT + cor0.col1 / + col1 + col0 FROM tab0 AS cor0
----
25
36
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7901
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7901
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col1 * + cor0.col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + col0 + col0 AS col0 FROM tab2
----
14
156
158
query I rowsort
SELECT DISTINCT col1 * + col2 + 3 * - col1 * + 56 AS col0 FROM tab2
----
-2210
-4371
-8378
query I rowsort
SELECT - tab0.col1 * + col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT tab2.col0 + col0 + + col1 FROM tab2
----
175
215
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-7907
SELECT ALL + tab0.col1 + col2 DIV 84 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-7907
SELECT ALL + tab0.col1 + col2 / 84 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT - col0 + col0 FROM tab1
----
0
query IIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0 CROSS JOIN tab2
----
243 values hashing to ea21cea53be47edd19229592e3d26141
query I rowsort
SELECT DISTINCT 89 FROM tab2
----
89
query I rowsort
SELECT DISTINCT col1 * 40 AS col1 FROM tab0
----
3440
3640
3880
query I rowsort
SELECT - 44 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
query I rowsort
SELECT ALL 70 + col1 AS col2 FROM tab0 AS cor0
----
156
161
167
query I rowsort
SELECT ALL - ( - ( col2 ) ) * 94 + cor0.col2 FROM tab0 AS cor0
----
3135
7790
95
query I rowsort
SELECT - col0 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - - cor0.col2 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - col0 * col1 + + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL - col0 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - - cor0.col1 * + col1 + cor0.col0 AS col0 FROM tab1 cor0
----
164
249
679
query I rowsort
SELECT DISTINCT col2 - col2 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - ( + 31 ) * + col1 - col2 AS col1 FROM tab1 AS cor0
----
-367
-499
-860
query I rowsort
SELECT ALL + col1 * col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + - 6 * col0 + - col0 FROM tab2 cor0
----
-49
-546
-553
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c
query I rowsort
SELECT DISTINCT - + col1 * col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + - col1 + col0 * cor0.col2 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT ALL ( tab2.col1 ) * - col2 AS col2 FROM tab2
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7928
SELECT DISTINCT - CAST( 85 AS SIGNED ) AS col2 FROM tab2
----
-85
skipif mysql # not compatible
query I rowsort label-7928
SELECT DISTINCT - CAST ( 85 AS INTEGER ) AS col2 FROM tab2
----
-85
query I rowsort
SELECT + 24 FROM tab1, tab2 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + col1 col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-7933
SELECT + cor0.col1 DIV - col2 + col2 AS col1 FROM tab0 AS cor0
----
-96
31
81
skipif mysql # not compatible
query I rowsort label-7933
SELECT + cor0.col1 / - col2 + col2 AS col1 FROM tab0 AS cor0
----
-96
31
81
query I rowsort
SELECT DISTINCT - 38 AS col1 FROM tab2 AS cor0
----
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 - + col1 * + col1 FROM tab0 AS cor0
----
-12804
-16380
-9460
query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + - col0 + - cor0.col0 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL col2 + + col0 + - col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL ( - 22 ) AS col1 FROM tab0
----
-22
-22
-22
query I rowsort
SELECT DISTINCT col0 + - 31 - + col2 * - col2 * col1 FROM tab2
----
22575
24596
39931
query I rowsort
SELECT col2 + + tab1.col2 * - col1 FROM tab1
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-7944
SELECT + 69 DIV + col1 + col2 * + col1 FROM tab1
----
1253
1406
576
skipif mysql # not compatible
query I rowsort label-7944
SELECT + 69 / + col1 + col2 * + col1 FROM tab1
----
1253
1406
576
query I rowsort
SELECT 63 * ( col1 + + col1 ) FROM tab0
----
10836
11466
12222
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( 90 AS REAL ) FROM tab2
----
90
90
90
query I rowsort
SELECT ALL col1 * col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
86
91
97
query I rowsort
SELECT DISTINCT 34 + tab1.col1 AS col1 FROM tab1
----
44
47
60
query I rowsort
SELECT - ( cor0.col0 ) + - col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT + - col0 AS col1 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT + - col1 + + col0 AS col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL - - col0 * col1 + - col1 AS col0 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT + col2 + - col2 AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + - 48 FROM tab0 AS cor0
----
-48
-48
-48
query I rowsort
SELECT + col1 * col1 FROM tab2 cor0
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab2
----
17
31
59
query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
54 values hashing to 2a7467bc6f55dbb61fbd4aa2bd0646a9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7959
SELECT col2 DIV 23 AS col0 FROM tab0 AS cor0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-7959
SELECT col2 / 23 AS col0 FROM tab0 AS cor0
----
0
1
3
query I rowsort
SELECT + col0 * ( 53 ) FROM tab1 AS cor0
----
159
3392
4240
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d
onlyif mysql # use DIV operator for integer division
query I rowsort label-7962
SELECT + col2 DIV - col0 col1 FROM tab0 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7962
SELECT + col2 / - col0 col1 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT - - cor0.col1 * + col2 - col0 AS col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT - cor0.col0 + + 42 * - col0 * col0 AS col2 FROM tab1 AS cor0
----
-172096
-268880
-381
query I rowsort
SELECT + ( col0 ) * col1 - col2 FROM tab2 AS cor0
----
1305
190
4576
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7966
SELECT DISTINCT CAST( NULL AS SIGNED ) / 59 - col1 AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-7966
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 59 - col1 AS col1 FROM tab0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7967
SELECT CAST( col1 AS SIGNED ) - + col0 * + col0 FROM tab1 AS cor0
----
-4086
-6387
17
skipif mysql # not compatible
query I rowsort label-7967
SELECT CAST ( col1 AS INTEGER ) - + col0 * + col0 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT DISTINCT + - 16 FROM tab2 AS cor0
----
-16
onlyif mysql # use DIV operator for integer division
query I rowsort label-7969
SELECT - + cor0.col2 DIV col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-7969
SELECT - + cor0.col2 / col0 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT DISTINCT 34 AS col2 FROM tab0, tab2 AS cor0
----
34
query I rowsort
SELECT col1 + col2 AS col1 FROM tab1
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL + - col0 * + col2 + col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT 74 * + 30 AS col0 FROM tab2 AS cor0
----
2220
2220
2220
query I rowsort
SELECT DISTINCT col1 * col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT 96 AS col1 FROM tab0 AS cor0
----
96
96
96
query I rowsort
SELECT - ( 51 ) * cor0.col2 FROM tab0 AS cor0
----
-1683
-4182
-51
query I rowsort
SELECT DISTINCT - col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT - col2 + col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col2 * col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT col0 AS col0 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547
query I rowsort
SELECT DISTINCT col2 * ( 0 + col1 * + col0 ) AS col2 FROM tab2
----
119652
51034
5859
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab1 AS cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4
query I rowsort
SELECT DISTINCT - - 43 - cor0.col2 FROM tab0 AS cor0
----
-39
10
42
query I rowsort
SELECT ALL + + 73 * col0 * col0 + ( 78 ) * col1 + + col1 FROM tab0 cor0
----
48842
585422
97088
query I rowsort
SELECT DISTINCT cor1.col1 + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
20
26
52
query I rowsort
SELECT ALL + + cor1.col1 * - ( 67 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 795e14125556a7621a6fd82ccc8b02ef
query I rowsort
SELECT ALL + col0 + - cor0.col2 + - col1 FROM tab0 cor0
----
-63
-84
-95
query I rowsort
SELECT ALL - ( - col1 ) * + cor0.col1 AS col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT + - col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7993
SELECT + CAST( + col2 AS SIGNED ) * cor0.col2 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-35937
-551368
skipif mysql # not compatible
query I rowsort label-7993
SELECT + CAST ( + col2 AS INTEGER ) * cor0.col2 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-35937
-551368
query I rowsort
SELECT ALL - 2 FROM tab2 cor0
----
-2
-2
-2
query I rowsort
SELECT DISTINCT - - col0 + col1 * col1 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT 6 * ( + col2 * + ( - cor0.col0 ) ) FROM tab2 AS cor0
----
-1134
-12168
-18012
query I rowsort
SELECT ALL 87 * col0 * - col1 FROM tab1 AS cor0
----
-55680
-6786
-90480
query I rowsort
SELECT ALL col1 + col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + - col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - - 81 * + 17 + + col2 AS col0 FROM tab0 cor0
----
1378
1410
1459
query I rowsort
SELECT DISTINCT + cor0.col2 + + col2 + - cor0.col2 * + ( - ( + cor0.col1 ) ) * - col2 AS col2 FROM tab1 AS cor0
----
-119616
-32376
-75708
query I rowsort
SELECT DISTINCT - + 80 - + col0 AS col2 FROM tab2 AS cor0
----
-158
-159
-87
query I rowsort
SELECT + col0 * - cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL cor0.col0 * 12 FROM tab0, tab1 cor0
----
9 values hashing to 4d11d73bea933b26450aca686f453b51
query I rowsort
SELECT + + col2 * + col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - cor0.col1 * col1 + - 58 + - 14 AS col2 FROM tab1 cor0
----
-172
-241
-748
query I rowsort
SELECT DISTINCT + 56 FROM tab2 cor0
----
56
query I rowsort
SELECT ALL col2 + - col0 + + col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - 20 + col2 FROM tab2 AS cor0
----
18
6
7
query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL + - 6 FROM tab2 AS cor0
----
-6
-6
-6
query I rowsort
SELECT - 33 AS col1 FROM tab0 cor0
----
-33
-33
-33
query I rowsort
SELECT ALL + - col2 + col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT 39 * - col2 + col2 FROM tab2 AS cor0
----
-1026
-1444
-988
query I rowsort
SELECT DISTINCT + 83 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
83
query I rowsort
SELECT DISTINCT + - ( - col1 ) * + 75 AS col2 FROM tab0 cor0
----
6450
6825
7275
query I rowsort
SELECT + col2 + + col0 * + col1 + - col0 AS col0 FROM tab1 cor0
----
1056
129
633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 95 * - col1 + + ( col1 ) col2 FROM tab0 AS cor0
----
8256
8736
9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * - cor0.col1 col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL + + cor0.col0 AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + col2 + + 44 FROM tab2 AS cor0
----
70
71
82
query I rowsort
SELECT ALL - col0 + + col2 AS col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT - + col1 * col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - col2 * 46 FROM tab1 AS cor0
----
-2484
-2622
-4416
query I rowsort
SELECT ALL 25 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450
query I rowsort
SELECT DISTINCT + - col1 * col2 * + col2 + col0 * col0 AS col2 FROM tab2 AS cor0
----
-18307
-22550
-33800
query I rowsort
SELECT + cor0.col1 FROM tab2 cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 col0 FROM tab1, tab2 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT - col1 * + col0 + col2 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - ( - col2 ) col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + col0 * ( 10 ) AS col1 FROM tab0 AS cor0
----
240
350
890
query I rowsort
SELECT - col1 + - col1 * col2 FROM tab2 cor0
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT - col2 * - 23 * - col1 FROM tab1 AS cor0
----
-13110
-28704
-32292
onlyif mysql # use DIV operator for integer division
query I rowsort label-8036
SELECT col0 DIV + col0 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8036
SELECT col0 / + col0 FROM tab0 cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8037
SELECT ALL col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-8040
SELECT DISTINCT col1 DIV + 65 AS col2 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-8040
SELECT DISTINCT col1 / + 65 AS col2 FROM tab1 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT col1 + ( - col2 ) AS col2 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT col0 * - col2 * 56 AS col2 FROM tab2 AS cor0
----
-10584
-113568
-168112
query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - col1 + - col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-8047
SELECT - col0 DIV col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8047
SELECT - col0 / col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) col2 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8049
SELECT - + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8049
SELECT - + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab1 cor1, tab0 AS cor2
----
972 values hashing to 95920403df268a272c4e933cd0bbe0be
onlyif mysql # use DIV operator for integer division
query I rowsort label-8051
SELECT + + 69 DIV - col0 FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-8051
SELECT + + 69 / - col0 FROM tab0 AS cor0
----
-1
-2
0
query I rowsort
SELECT + col2 * col1 FROM tab2
----
1534
646
837
query IIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c
onlyif mysql # use DIV operator for integer division
query I rowsort label-8054
SELECT ALL - tab1.col1 DIV - col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL - tab1.col1 / - col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - cor0.col0 * + col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + 80 + - col1 * - col2 * col1 - col1 AS col1 FROM tab1 AS cor0
----
16291
36558
5770
query I rowsort
SELECT DISTINCT - col2 * - col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + - col1 + col0 + - 67 AS col2 FROM tab1 AS cor0
----
-13
-90
0
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f
query I rowsort
SELECT + col1 + + col0 * col2 FROM tab1 AS cor0
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - ( col1 ) * - 8 col1 FROM tab1
----
182
70
91
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 + col0 * - CAST ( col1 * + col0 AS REAL ) + - 15 * + col2 * + col1 AS col0 FROM tab2
----
-115770
-14043
-381907
query I rowsort
SELECT 10 + - col1 FROM tab1
----
-16
-3
0
query I rowsort
SELECT cor0.col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT - 94 AS col1 FROM tab0
----
-94
-94
-94
query I rowsort
SELECT DISTINCT - 7 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 83 col2 FROM tab2 AS cor0
----
4
5
76
query I rowsort
SELECT DISTINCT col0 + - col2 FROM tab2
----
-20
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8070
SELECT DISTINCT + cor0.col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8070
SELECT DISTINCT + cor0.col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8071
SELECT ALL - 2 * col1 + CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL - 2 * col1 + CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 22 * + cor0.col0 - - col1 FROM tab1 AS cor0
----
1418
1773
92
query I rowsort
SELECT DISTINCT - ( - tab0.col1 ) + col1 AS col0 FROM tab0
----
172
182
194
query I rowsort
SELECT DISTINCT col2 + col2 AS col1 FROM tab2
----
52
54
76
query I rowsort
SELECT + col1 * + col0 AS col2 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8076
SELECT - col1 DIV + col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8076
SELECT - col1 / + col2 FROM tab1
----
0
0
0
query I rowsort
SELECT + 84 * 94 FROM tab2
----
7896
7896
7896
query I rowsort
SELECT DISTINCT - cor0.col1 * 7 * 22 - cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0b235801b044062ec725313a7f1c726e
query I rowsort
SELECT + cor0.col2 + + col0 * + col2 FROM tab0 AS cor0
----
36
7380
825
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0 CROSS JOIN tab2, tab1 cor1
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 * + col0 * - tab2.col1 col0 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT DISTINCT ( - 67 ) * + col1 AS col2 FROM tab1
----
-1742
-670
-871
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 col2 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT + 80 AS col1 FROM tab1 cor0
----
80
80
80
query I rowsort
SELECT DISTINCT - col0 * col2 + - tab2.col0 + col2 FROM tab2
----
-169
-2080
-3043
query I rowsort
SELECT DISTINCT col1 * + col2 * ( col2 ) + + col0 AS col0 FROM tab2
----
22606
24627
39962
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col2 col1 FROM tab1
----
0
query I rowsort
SELECT tab2.col1 - - col0 FROM tab2
----
137
38
96
query I rowsort
SELECT - col2 + - col0 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT col2 * col0 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) * 36 col1 FROM tab0 AS cor0
----
1188
2952
36
query I rowsort
SELECT + 99 FROM tab2 AS cor0
----
99
99
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 17 * col0 col1 FROM tab2
----
-3213
-34476
-51034
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 ALL - - cor0.col1 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8097
SELECT - col0 * + CAST( - col1 AS SIGNED ) + col2 FROM tab2 AS cor0
----
1381
244
4628
skipif mysql # not compatible
query I rowsort label-8097
SELECT - col0 * + CAST ( - col1 AS INTEGER ) + col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT 65 FROM tab1, tab2 cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab1 AS cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
query I rowsort
SELECT ALL col2 * col0 AS col2 FROM tab1
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8101
SELECT col2 DIV 34 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8101
SELECT col2 / 34 FROM tab2
----
0
0
1
query I rowsort
SELECT DISTINCT - 21 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-21
onlyif mysql # use DIV operator for integer division
query I rowsort label-8103
SELECT + + col2 DIV ( col1 ) - - col0 AS col2 FROM tab2 cor0
----
7
78
81
skipif mysql # not compatible
query I rowsort label-8103
SELECT + + col2 / ( col1 ) - - col0 AS col2 FROM tab2 cor0
----
7
78
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8104
SELECT ALL - CAST( NULL AS DECIMAL ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL - CAST ( NULL AS REAL ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - 15 * + 29 - col2 FROM tab1 AS cor0
----
-489
-492
-531
query I rowsort
SELECT + col2 - 36 AS col0 FROM tab2 AS cor0
----
-10
-9
2
query I rowsort
SELECT - 9 + ( col1 ) FROM tab1 AS cor0
----
1
17
4
query I rowsort
SELECT - col1 * + ( col2 + ( + col0 ) ) AS col1 FROM tab0 cor0
----
-15561
-3492
-4902
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 * col1 - col2 col1 FROM tab2 AS cor0
----
1616
3101
863
query I rowsort
SELECT - - 27 * + col0 + - col2 FROM tab0 AS cor0
----
2321
615
944
query I rowsort
SELECT DISTINCT col0 + 55 * 75 + col2 AS col0 FROM tab0
----
4161
4182
4296
query I rowsort
SELECT - col1 * 32 AS col0 FROM tab2
----
-1888
-544
-992
query I rowsort
SELECT ALL col0 * - 31 AS col0 FROM tab1
----
-1984
-2480
-93
query I rowsort
SELECT ( col0 ) * col0 - - 26 FROM tab2 AS cor0
----
6110
6267
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-8115
SELECT ( col0 ) + col1 DIV + cor0.col0 + + col0 AS col0 FROM tab2 AS cor0
----
156
158
18
skipif mysql # not compatible
query I rowsort label-8115
SELECT ( col0 ) + col1 / + cor0.col0 + + col0 AS col0 FROM tab2 AS cor0
----
156
158
18
query I rowsort
SELECT DISTINCT tab0.col2 + + 69 * + 2 + col2 * ( + 29 ) FROM tab0
----
1128
168
2598
query I rowsort
SELECT + + col2 * cor0.col1 - + col1 AS col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT DISTINCT ( - col2 ) + col2 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8119
SELECT - CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-8119
SELECT - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - 10 FROM tab1 AS cor0
----
-10
-10
-10
query I rowsort
SELECT 76 + - col2 + col0 AS col1 FROM tab2
----
117
128
56
query I rowsort
SELECT - 88 * 13 - + col2 AS col1 FROM tab1 AS cor0
----
-1198
-1201
-1240
query I rowsort
SELECT col1 * 65 + col0 + 9 AS col1 FROM tab1 AS cor0
----
1702
723
934
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab0 AS cor1
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8
query I rowsort
SELECT col0 * col2 - + cor0.col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT DISTINCT col2 + + col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + 60 * + col2 AS col1 FROM tab2 AS cor0
----
1560
1620
2280
query I rowsort
SELECT ALL - - 22 AS col1 FROM tab1 AS cor0
----
22
22
22
query I rowsort
SELECT + col1 * + col1 - col2 AS col0 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT ALL + + col1 * ( + col2 ) + cor0.col1 AS col0 FROM tab2 AS cor0
----
1593
663
868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT - col1 * col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + 79 FROM tab2 AS cor0
----
79
79
79
query I rowsort
SELECT ALL - 7 + + col0 AS col1 FROM tab0 AS cor0
----
17
28
82
query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - - col2 * col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - 63 * + col1 AS col0 FROM tab2 AS cor0
----
-1071
-1953
-3717
query I rowsort
SELECT DISTINCT - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + 77 * col1 FROM tab1 AS cor0
----
1001
2002
770
query I rowsort
SELECT + - col0 + - cor0.col0 FROM tab0 AS cor0
----
-178
-48
-70
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab1 AS cor0, tab0 cor1
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8143
SELECT ALL CAST( col2 AS SIGNED ) - tab2.col0 FROM tab2
----
-41
-52
20
skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL CAST ( col2 AS INTEGER ) - tab2.col0 FROM tab2
----
-41
-52
20
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab0 cor1
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00
query I rowsort
SELECT DISTINCT + col2 + 82 * col2 AS col1 FROM tab2
----
2158
2241
3154
onlyif mysql # use DIV operator for integer division
query I rowsort label-8146
SELECT ALL + col0 * 6 + col1 - - tab1.col1 DIV col1 AS col0 FROM tab1
----
395
45
494
skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL + col0 * 6 + col1 - - tab1.col1 / col1 AS col0 FROM tab1
----
395
45
494
query I rowsort
SELECT ALL - col2 * col2 - col2 AS col0 FROM tab2
----
-1482
-702
-756
query I rowsort
SELECT cor0.col1 + + ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT - + col0 * col1 FROM tab0 cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-8150
SELECT ALL col2 DIV + col1 + + col1 FROM tab1 AS cor0
----
15
20
28
skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL col2 / + col1 + + col1 FROM tab1 AS cor0
----
15
20
28
query I rowsort
SELECT DISTINCT + col2 + 98 * + col1 + col2 FROM tab1 AS cor0
----
1094
1466
2656
query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT + col2 * col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + + col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT col1 * col1 FROM tab1 cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-8156
SELECT DISTINCT - col0 + col0 DIV - col2 FROM tab0 AS cor0
----
-24
-70
-90
skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT - col0 + col0 / - col2 FROM tab0 AS cor0
----
-24
-70
-90
query I rowsort
SELECT ALL + - col0 * col1 + col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - ( - col2 ) col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + 4 AS col1 FROM tab1
----
4
query I rowsort
SELECT ALL + cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 col0 FROM tab1
----
-19
-19
-19
query I rowsort
SELECT cor0.col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL + + 90 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2
----
17
31
59
query IIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca
query I rowsort
SELECT DISTINCT tab1.col1 FROM tab1
----
10
13
26
query I rowsort
SELECT - - col0 AS col2 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8168
SELECT tab1.col0 - - 78 DIV - col0 AS col1 FROM tab1
----
-23
63
80
skipif mysql # not compatible
query I rowsort label-8168
SELECT tab1.col0 - - 78 / - col0 AS col1 FROM tab1
----
-23
63
80
query I rowsort
SELECT + col0 + 30 AS col0 FROM tab2 AS cor0
----
108
109
37
query I rowsort
SELECT + 34 AS col2 FROM tab0 AS cor0
----
34
34
34
query I rowsort
SELECT + + col1 + col1 AS col2 FROM tab2 AS cor0
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-8172
SELECT ALL + col1 DIV - col0 + 51 + - col0 FROM tab0 AS cor0
----
-39
14
24
skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL + col1 / - col0 + 51 + - col0 FROM tab0 AS cor0
----
-39
14
24
query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT 81 FROM tab1 cor0
----
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8175
SELECT col2 * + cor0.col2 + CAST( NULL AS SIGNED ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8175
SELECT col2 * + cor0.col2 + CAST ( NULL AS INTEGER ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8176
SELECT - + col1 * cor0.col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8176
SELECT - + col1 * cor0.col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col2 * + cor0.col0 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT ( col2 ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL - col0 + + col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT - col2 * + col2 + col0 FROM tab1 cor0
----
-2913
-3185
-9136
onlyif mysql # use DIV operator for integer division
query I rowsort label-8182
SELECT + col2 * col0 + col1 DIV - ( col0 ) FROM tab2
----
185
2028
3002
skipif mysql # not compatible
query I rowsort label-8182
SELECT + col2 * col0 + col1 / - ( col0 ) FROM tab2
----
185
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 col2 FROM tab1
----
121
176
57
query I rowsort
SELECT col1 + tab2.col0 + col1 FROM tab2
----
113
196
69
query I rowsort
SELECT tab0.col0 - + col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT - col1 - col2 * col1 AS col0 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT + col1 * 44 - - col1 FROM tab0
----
3870
4095
4365
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8188
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8188
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * 47 + + col1 FROM tab2
----
360
3725
3730
onlyif mysql # use DIV operator for integer division
query I rowsort label-8190
SELECT DISTINCT + col0 * col1 DIV - col1 + + 73 * tab2.col2 AS col0 FROM tab2
----
1820
1964
2695
skipif mysql # not compatible
query I rowsort label-8190
SELECT DISTINCT + col0 * col1 / - col1 + + 73 * tab2.col2 AS col0 FROM tab2
----
1820
1964
2695
query I rowsort
SELECT - ( - col1 ) AS col1 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + - col1 col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT - + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT col0 + col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - col2 * col0 - - col0 * col1 * col2 FROM tab0 cor0
----
3360
656820
67320
query I rowsort
SELECT ALL + col0 + col1 + + col2 AS col2 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT + 85 FROM tab0 AS cor0
----
85
85
85
query I rowsort
SELECT DISTINCT + ( col0 ) + 44 - col1 AS col0 FROM tab1 AS cor0
----
111
21
98
query I rowsort
SELECT ALL 63 + - col0 - ( + col0 ) FROM tab0 cor0
----
-115
-7
15
query I rowsort
SELECT DISTINCT ( col0 ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - 85 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a
query I rowsort
SELECT DISTINCT - tab1.col1 - tab1.col2 * - col0 FROM tab1
----
136
3638
7667
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8204
SELECT CAST( NULL AS SIGNED ) + - cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-8204
SELECT CAST ( NULL AS INTEGER ) + - cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT ALL - 47 + col1 AS col2 FROM tab1 AS cor0
----
-21
-34
-37
query I rowsort
SELECT DISTINCT + 29 AS col2 FROM tab0, tab2 AS cor0
----
29
query I rowsort
SELECT - col2 - col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT - - cor0.col0 * - ( 14 ) + cor0.col0 - + col2 AS col2 FROM tab2 AS cor0
----
-1040
-1065
-118
query IIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 + + col0 + 49 col2 FROM tab0
----
-13
-13
47
query I rowsort
SELECT 2 AS col2 FROM tab2 cor0
----
2
2
2
query I rowsort
SELECT cor0.col2 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT cor0.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT DISTINCT - col0 - - 71 FROM tab2 AS cor0
----
-7
-8
64
query I rowsort
SELECT ALL - + 56 FROM tab2 AS cor0
----
-56
-56
-56
query I rowsort
SELECT + - ( 7 ) * col1 + col0 FROM tab0 AS cor0
----
-548
-578
-644
query I rowsort
SELECT ALL + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - col2 * - col0 col1 FROM tab0 cor0
----
34
7216
759
query I rowsort
SELECT ALL 76 FROM tab0, tab2 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT - - col2 * + col2 AS col1 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT col2 * - ( col0 ) FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - + 1 + col2 FROM tab2 AS cor0
----
25
26
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8223
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 98 AS col2 FROM tab0 AS cor0
----
-98
-98
-98
query I rowsort
SELECT ALL - col1 * + 61 FROM tab2 AS cor0
----
-1037
-1891
-3599
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 2507aa9f48c3db94de9fec065edf3731
query I rowsort
SELECT ALL - - col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query IIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab2 AS cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b
query I rowsort
SELECT + 74 + + col1 * col0 FROM tab2 AS cor0
----
1417
291
4676
query I rowsort
SELECT + ( 45 ) + + col1 + cor0.col1 FROM tab0 AS cor0
----
217
227
239
query I rowsort
SELECT + - 62 * 25 AS col1 FROM tab1 AS cor0
----
-1550
-1550
-1550
query I rowsort
SELECT ALL - - col2 + - col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + col1 * col2 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8236
SELECT ALL + + col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL + + col1 / - col0 AS col2 FROM tab2 AS cor0
----
-4
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8237
SELECT DISTINCT - 14 DIV col0 col0 FROM tab1 cor0
----
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8237
SELECT DISTINCT - 14 / col0 col0 FROM tab1 cor0
----
-4
0
query I rowsort
SELECT - + 65 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-455
-5070
-5135
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8239
SELECT ALL col2 + + ( col0 ) * CAST( - 95 AS SIGNED ) FROM tab1 AS cor0
----
-231
-6023
-7504
skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL col2 + + ( col0 ) * CAST ( - 95 AS INTEGER ) FROM tab1 AS cor0
----
-231
-6023
-7504
query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + + col0 + + col0 * - col2 FROM tab0 cor0
----
-7209
-768
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8243
SELECT ALL - CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL - CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8244
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8244
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - col1 + + col1 + col2 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + 79 AS col2 FROM tab0 AS cor0
----
79
79
79
query I rowsort
SELECT - 47 * - cor0.col1 + cor0.col1 FROM tab0 AS cor0
----
4128
4368
4656
query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - - col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - 3 FROM tab1 AS cor0
----
-3
-3
-3
query I rowsort
SELECT cor0.col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + ( col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL ( col1 ) + + ( cor0.col0 ) - col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + col1 * col1 AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - - 68 + col1 FROM tab2 AS cor0
----
127
85
99
query I rowsort
SELECT + 11 * - cor0.col1 FROM tab1 AS cor0
----
-110
-143
-286
query I rowsort
SELECT ALL + col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL + col1 + - col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT + col0 * - 65 FROM tab1 AS cor0
----
-195
-4160
-5200
query I rowsort
SELECT DISTINCT cor0.col2 + - 73 * col2 FROM tab2 AS cor0
----
-1872
-1944
-2736
query I rowsort
SELECT DISTINCT - + col1 + - 56 + ( col1 ) FROM tab1 AS cor0
----
-56
query I rowsort
SELECT DISTINCT - tab2.col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - col1 * col2 AS col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT + col0 + + tab1.col2 AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT col0 * - col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + col1 + col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + ( col1 ) * - col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col0 * col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - - 37 * cor0.col0 - col0 * col1 * col0 AS col1 FROM tab1 AS cor0
----
-123
-38592
-80240
query I rowsort
SELECT ALL ( + col0 ) + - col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - - ( - 78 ) FROM tab1 cor0
----
-78
-78
-78
query I rowsort
SELECT DISTINCT - col0 * col0 + - col1 AS col1 FROM tab0 AS cor0
----
-1322
-662
-8012
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8274
SELECT CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8274
SELECT CAST ( NULL AS INTEGER ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( col0 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + col1 * + ( - col0 ) AS col1 FROM tab2 cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL tab2.col2 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL 63 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0
query I rowsort
SELECT cor0.col2 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT col0 * col2 + 87 FROM tab0
----
122
7385
879
query I rowsort
SELECT ALL + col1 FROM tab1
----
10
13
26
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab0 cor0
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL - 18 FROM tab0, tab0 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8286
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - col2 * ( + 91 ) - - col2 AS col0 FROM tab0 AS cor0
----
-2970
-7380
-90
query I rowsort
SELECT DISTINCT + col2 * tab0.col2 AS col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT col2 * - 9 AS col2 FROM tab2
----
-234
-243
-342
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8290
SELECT col2 * CAST( col1 AS SIGNED ) * col0 + ( ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
3492
664209
68198
skipif mysql # not compatible
query I rowsort label-8290
SELECT col2 * CAST ( col1 AS INTEGER ) * col0 + ( ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
3492
664209
68198
query I rowsort
SELECT - - col2 * - col1 - col0 FROM tab1 cor0
----
-1328
-1407
-634
query I rowsort
SELECT + + col2 - 34 * + col0 * + col2 AS col2 FROM tab0 AS cor0
----
-1189
-248050
-26895
query I rowsort
SELECT + 77 AS col1 FROM tab2
----
77
77
77
query I rowsort
SELECT - 71 FROM tab1, tab0 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062
query I rowsort
SELECT ALL - - 69 AS col2 FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to dfada1ee7a4e3e5c74a063a1282769f9
query I rowsort
SELECT - 95 AS col2 FROM tab2
----
-95
-95
-95
query I rowsort
SELECT DISTINCT 74 * col0 AS col1 FROM tab0
----
1776
2590
6586
query IIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab1 cor1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9
query I rowsort
SELECT ALL col2 * + col1 * tab1.col1 FROM tab1
----
16224
36504
5700
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8300
SELECT ALL + CAST( + col0 AS SIGNED ) AS col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT + col2 + - col2 * col1 AS col0 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT ALL - col0 * + cor0.col0 FROM tab2 cor0
----
-49
-6084
-6241
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to ed80235f6457dada5cbb50ce9e2a8923
query I rowsort
SELECT + cor0.col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - ( - col1 + - col2 ) AS col1 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL + col1 * + 46 FROM tab1 AS cor0
----
1196
460
598
query I rowsort
SELECT ( col0 ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - - cor0.col0 AS col2 FROM tab1 cor0
----
3
64
80
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab1 AS cor1
----
243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5
query I rowsort
SELECT + col0 + col0 AS col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - cor0.col2 * col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT col2 * + col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + col1 + col2 AS col1 FROM tab2
----
55
58
85
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab2 AS cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca
query I rowsort
SELECT + ( col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT 67 * + col2 FROM tab2 AS cor0
----
1742
1809
2546
query I rowsort
SELECT ALL 12 AS col0 FROM tab1
----
12
12
12
query I rowsort
SELECT ALL 23 * tab1.col0 FROM tab1
----
1472
1840
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab2
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab2, tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT cor0.col2 + col1 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL col0 * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + col0 + + col1 + 54 AS col1 FROM tab1 AS cor0
----
128
147
83
query I rowsort
SELECT - + cor0.col2 * col0 + - ( 25 ) AS col0 FROM tab1 AS cor0
----
-187
-3673
-7705
query I rowsort
SELECT 64 * - col2 FROM tab0 AS cor0
----
-2112
-5248
-64
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab1 cor1, tab0 AS cor2
----
972 values hashing to 5e655b1287771868a8f868574a94d749
query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - 27 col0 FROM tab0 AS cor0
----
-26
55
6
query I rowsort
SELECT ALL - col2 * col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT + - cor0.col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + cor0.col1 * 38 FROM tab1 AS cor0
----
380
494
988
query I rowsort
SELECT cor0.col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL col1 AS col1 FROM tab0 cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8336
SELECT ALL cor0.col1 DIV col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL cor0.col1 / col0 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT DISTINCT + + col1 AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + col2 * - ( col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8339
SELECT ALL - col1 - CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL - col1 - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col0 + + 36 FROM tab1 cor0
----
100
116
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 - - col1 col0 FROM tab1 AS cor0
----
-136
-3638
-7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-8342
SELECT DISTINCT + col0 + col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-8342
SELECT DISTINCT + col0 + col2 / + col0 AS col2 FROM tab0 AS cor0
----
25
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8343
SELECT - col2 - - 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-8343
SELECT - col2 - - CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 FROM tab1, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
onlyif mysql # use DIV operator for integer division
query I rowsort label-8345
SELECT DISTINCT + col1 DIV col1 AS col1 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT + col1 / col1 AS col1 FROM tab0
----
1
query I rowsort
SELECT DISTINCT - col2 * 10 FROM tab0 cor0
----
-10
-330
-820
query I rowsort
SELECT - tab1.col2 AS col0 FROM tab1
----
-54
-57
-96
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab0 AS cor0, tab1 cor1
----
972 values hashing to 5621675b1bd32b061d284d0444c76601
query I rowsort
SELECT + 44 FROM tab2
----
44
44
44
query I rowsort
SELECT + col1 + - 43 AS col2 FROM tab0 cor0
----
43
48
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-8351
SELECT + col1 * col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
-1
-2
-225
skipif mysql # not compatible
query I rowsort label-8351
SELECT + col1 * col1 / - col0 AS col2 FROM tab1 AS cor0
----
-1
-2
-225
query I rowsort
SELECT - - 6 + 8 FROM tab0 AS cor0
----
14
14
14
query I rowsort
SELECT 74 AS col1 FROM tab0 AS cor0
----
74
74
74
query I rowsort
SELECT - + col1 + 93 AS col1 FROM tab2 AS cor0
----
34
62
76
query I rowsort
SELECT + 34 * - col1 AS col2 FROM tab2 cor0
----
-1054
-2006
-578
query I rowsort
SELECT + col2 + 9 AS col1 FROM tab1 AS cor0
----
105
63
66
query I rowsort
SELECT DISTINCT - 7 FROM tab1, tab0 AS cor0
----
-7
query I rowsort
SELECT - col0 * + col2 AS col1 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT - 64 FROM tab1 AS cor0
----
-64
-64
-64
query I rowsort
SELECT ALL - 60 * col2 FROM tab0 AS cor0
----
-1980
-4920
-60
query I rowsort
SELECT DISTINCT + cor0.col0 * 77 AS col2 FROM tab1 AS cor0
----
231
4928
6160
query I rowsort
SELECT + col0 * + col0 + - col0 AS col1 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT ALL - 42 * col2 + + cor0.col0 * ( col2 * - col0 ) FROM tab1 AS cor0
----
-235866
-2754
-618432
query I rowsort
SELECT 37 FROM tab1 cor0
----
37
37
37
query I rowsort
SELECT DISTINCT + col2 - 21 FROM tab0 AS cor0
----
-20
12
61
query I rowsort
SELECT - + col0 + 33 FROM tab1 AS cor0
----
-31
-47
30
query I rowsort
SELECT ALL col1 + + col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT DISTINCT 27 AS col2 FROM tab0
----
27
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1 cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
query I rowsort
SELECT - ( - 96 ) FROM tab2
----
96
96
96
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab0, tab2 AS cor1
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8372
SELECT DISTINCT col0 * cor0.col0 + - CAST( col0 * cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
-1280
-153
448
skipif mysql # not compatible
query I rowsort label-8372
SELECT DISTINCT col0 * cor0.col0 + - CAST ( col0 * cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
-1280
-153
448
onlyif mysql # use DIV operator for integer division
query I rowsort label-8373
SELECT - col0 * col2 DIV CAST( - 15 AS SIGNED ) col0 FROM tab0 AS cor0
----
2
486
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8373
SELECT - col0 * col2 / CAST ( - 15 AS INTEGER ) col0 FROM tab0 AS cor0
----
2
486
52
query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0
----
3
64
80
query IIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
243 values hashing to b3323704f6873113d863f8e27386b356
query I rowsort
SELECT ALL ( col0 ) * + tab1.col2 + - col2 * 55 AS col0 FROM tab1
----
-2808
2400
513
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614
query I rowsort
SELECT col0 * tab1.col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT - col1 * + col0 * - col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT col2 * + tab0.col1 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL + col0 + col2 * - cor0.col2 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT DISTINCT + + cor0.col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + + col2 AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + col2 + col2 AS col1 FROM tab0
----
164
2
66
query I rowsort
SELECT - col0 + col1 FROM tab0
----
2
62
62
query I rowsort
SELECT - col1 * col0 + col0 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT col2 + + col2 FROM tab2
----
52
54
76
query I rowsort
SELECT DISTINCT col0 + tab1.col0 * col0 + + tab1.col2 AS col1 FROM tab1
----
4217
6576
66
query I rowsort
SELECT DISTINCT tab2.col2 AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL + + col2 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + + col0 + cor0.col0 AS col1 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + col0 col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + - col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - col2 * col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL - cor0.col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - + col1 - - col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT + col0 - - cor0.col2 * col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT ALL col2 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL col2 - cor0.col2 AS col0 FROM tab1 cor0 WHERE NOT ( + col1 ) <= NULL OR NULL NOT BETWEEN col1 AND col0 / col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8401
SELECT - - cor0.col2 DIV + cor0.col1 col1 FROM tab1 AS cor0
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8401
SELECT - - cor0.col2 / + cor0.col1 col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT ALL + cor0.col0 * col1 * + col0 AS col1 FROM tab0 AS cor0
----
118825
49536
720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - + col2 * col2 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT - col1 * cor0.col0 * cor0.col1 + + col2 + + col1 FROM tab0 AS cor0
----
-177385
-329217
-736836
query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 col1 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL + col0 + tab1.col2 AS col2 FROM tab1
----
121
176
57
query I rowsort
SELECT - col2 + + col1 * + col1 * + tab2.col1 AS col1 FROM tab2
----
205353
29764
4875
query I rowsort
SELECT - tab1.col2 + tab1.col1 FROM tab1, tab1 cor0
----
9 values hashing to c1eca5ea8dadf5efbc400ae6094b52e3
query I rowsort
SELECT - col0 + - col1 AS col1 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT - tab1.col0 AS col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT + col0 * - col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT tab2.col0 * - tab2.col1 + tab2.col2 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT col2 + col0 AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL col0 * + col0 + - tab0.col0 AS col0 FROM tab0
----
1190
552
7832
query I rowsort
SELECT col0 + col1 * col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT ALL - col1 + + col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT + - cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - + col2 * - col2 AS col1 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT - + 9 + col1 * + col1 AS col0 FROM tab2 AS cor0
----
280
3472
952
query I rowsort
SELECT ALL - + col0 AS col1 FROM tab1 cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8423
SELECT - 85 DIV - cor0.col0 FROM tab2 AS cor0
----
1
1
12
skipif mysql # not compatible
query I rowsort label-8423
SELECT - 85 / - cor0.col0 FROM tab2 AS cor0
----
1
1
12
query I rowsort
SELECT DISTINCT col2 + col2 AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL + - col2 * - col2 * + col1 AS col1 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT DISTINCT + col0 + col1 * + col2 FROM tab2 cor0
----
1612
725
844
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 + + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + 96 * - col0 + col1 FROM tab2 AS cor0
----
-641
-7429
-7567
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 + - cor0.col1 * cor0.col0 col0 FROM tab1 AS cor0
----
-1039
-639
-77
query I rowsort
SELECT DISTINCT + cor0.col1 * col0 - col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT col0 * col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + ( col0 ) + col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT - 78 + col1 * col0 FROM tab2
----
1265
139
4524
query I rowsort
SELECT ALL - 27 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a
query I rowsort
SELECT DISTINCT - 16 FROM tab0
----
-16
query I rowsort
SELECT - col2 + ( - col1 ) AS col1 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT DISTINCT + 35 + col1 FROM tab1 AS cor0
----
45
48
61
query I rowsort
SELECT ALL - 34 * - col1 AS col0 FROM tab1 AS cor0
----
340
442
884
query I rowsort
SELECT ALL - 13 FROM tab2 AS cor0
----
-13
-13
-13
query I rowsort
SELECT DISTINCT 31 * col2 FROM tab2 cor0
----
1178
806
837
query I rowsort
SELECT ALL - col0 + - col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT + - ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + ( + col0 * col2 ) FROM tab1
----
162
3648
7680
query I rowsort
SELECT 22 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8446
SELECT DISTINCT tab1.col0 * - col2 - - col0 DIV + col0 FROM tab1
----
-161
-3647
-7679
skipif mysql # not compatible
query I rowsort label-8446
SELECT DISTINCT tab1.col0 * - col2 - - col0 / + col0 FROM tab1
----
-161
-3647
-7679
query I rowsort
SELECT 11 * - col2 FROM tab2
----
-286
-297
-418
query I rowsort
SELECT DISTINCT col0 - - col2 * + tab2.col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT + cor0.col0 AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + ( - tab2.col0 ) AS col2 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ( col1 ) + col1 AS col2 FROM tab0
----
172
182
194
query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT col2 + + col1 + + col2 AS col2 FROM tab1
----
124
134
205
query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 cor1
----
54 values hashing to 69e208df4a305efdfcc036bb4b31e720
query I rowsort
SELECT + col1 * col1 FROM tab0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 + - col0 col2 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8457
SELECT col2 DIV - col0 AS col1 FROM tab2
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-8457
SELECT col2 / - col0 AS col1 FROM tab2
----
-3
0
0
query I rowsort
SELECT ALL + col2 + col2 * + col0 AS col1 FROM tab0
----
36
7380
825
query I rowsort
SELECT DISTINCT col1 + + col1 FROM tab2
----
118
34
62
query I rowsort
SELECT col2 * col0 AS col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT tab1.col2 FROM tab1 WHERE NOT col2 NOT IN ( + col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col1 col2 FROM tab0
----
-172
-182
-194
onlyif mysql # use DIV operator for integer division
query I rowsort label-8463
SELECT DISTINCT col2 * - col2 + col0 DIV + col0 AS col0 FROM tab1
----
-2915
-3248
-9215
skipif mysql # not compatible
query I rowsort label-8463
SELECT DISTINCT col2 * - col2 + col0 / + col0 AS col0 FROM tab1
----
-2915
-3248
-9215
onlyif mysql # use DIV operator for integer division
query I rowsort label-8464
SELECT - col0 DIV col0 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8464
SELECT - col0 / col0 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT ALL - col0 * - col0 + tab2.col2 FROM tab2
----
6110
6279
76
query I rowsort
SELECT - col1 * - col1 AS col2 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT ALL col0 FROM tab2 WHERE NULL <= NULL
----
query I rowsort
SELECT ALL + col0 * - col2 + col1 * + col1 * col0 FROM tab0
----
176712
329280
729711
query I rowsort
SELECT DISTINCT col0 + col0 FROM tab2 WHERE NOT + col1 <> ( NULL )
----
query I rowsort
SELECT col1 * - tab0.col0 FROM tab0 WHERE col2 <> NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col1 * tab1.col2 col2 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT + tab1.col1 + col0 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT - col1 * col1 + col1 AS col1 FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT col2 * col0 AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT + tab2.col1 + + col1 * - col0 AS col2 FROM tab2
----
-1326
-186
-4543
query III rowsort
SELECT ALL * FROM tab1 WHERE col1 < - col1 + + col2
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT col0 + col0 AS col2 FROM tab0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 col0 FROM tab2
----
55
58
85
query I rowsort
SELECT + tab1.col2 AS col0 FROM tab1
----
54
57
96
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8481
SELECT tab0.col1 DIV - col0 + - col2 FROM tab0
----
-3
-36
-83
skipif mysql # not compatible
query I rowsort label-8481
SELECT tab0.col1 / - col0 + - col2 FROM tab0
----
-3
-36
-83
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) > NULL
----
query I rowsort
SELECT ALL col1 + col0 AS col0 FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-8484
SELECT col2 DIV + col0 + col0 AS col0 FROM tab0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-8484
SELECT col2 / + col0 + col0 AS col0 FROM tab0
----
25
35
89
query I rowsort
SELECT + col1 AS col0 FROM tab2
----
17
31
59
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = ( NULL )
----
query I rowsort
SELECT ALL - col1 * tab1.col0 AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL tab0.col0 * col1 * - col0 + col1 * col0 * + col2 FROM tab0
----
-115430
-56693
18576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 * + col1 col1 FROM tab2
----
327
3507
988
query I rowsort
SELECT - tab2.col1 + + col2 * col2 FROM tab2
----
1427
617
698
query III rowsort
SELECT * FROM tab0 WHERE col0 * - col1 / col2 BETWEEN ( - col1 - + col1 ) AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8492
SELECT DISTINCT col1 DIV - col2 AS col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT col1 / - col2 AS col2 FROM tab1
----
0
query I rowsort
SELECT col0 * - col1 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-8494
SELECT DISTINCT col2 DIV col0 FROM tab2
----
0
3
skipif mysql # not compatible
query I rowsort label-8494
SELECT DISTINCT col2 / col0 FROM tab2
----
0
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-8495
SELECT ALL - col1 DIV - col2 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-8495
SELECT ALL - col1 / - col2 FROM tab0
----
1
2
97
query I rowsort
SELECT col0 * + col2 * + col0 AS col2 FROM tab1
----
233472
486
614400
query I rowsort
SELECT DISTINCT col0 + col2 * col2 FROM tab1
----
2919
3313
9296
query I rowsort
SELECT + col2 AS col0 FROM tab0
----
1
33
82
query III rowsort
SELECT * FROM tab1 WHERE col2 >= ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8500
SELECT + col1 * col1 DIV col1 + - col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8500
SELECT + col1 * col1 / col1 + - col1 FROM tab2
----
0
0
0
query I rowsort
SELECT tab0.col0 + - col0 * + tab0.col1 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT col0 + col0 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - col1 + - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT col1 + - col2 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8505
SELECT ALL + cor0.col2 + col2 DIV + cor0.col2 FROM tab1 cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL + cor0.col2 + col2 / + cor0.col2 FROM tab1 cor0
----
55
58
97
query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - col0 * col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL col2 * - col0 * col2 FROM tab1 cor0
----
-207936
-737280
-8748
query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab2
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-8512
SELECT DISTINCT + col1 + - col2 DIV + cor0.col1 + - cor0.col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-8512
SELECT DISTINCT + col1 + - col2 / + cor0.col1 + - cor0.col1 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT ALL col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + col1 + + col0 AS col1 FROM tab0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 col2 FROM tab2
----
-52
-54
-76
query I rowsort
SELECT cor0.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT cor0.col2 * + col0 FROM tab0 AS cor0
----
35
7298
792
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2 )
----
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0, tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col2 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + cor0.col1 * + col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - - 44 AS col0 FROM tab0 AS cor0
----
44
44
44
query I rowsort
SELECT ALL - - 15 * + col1 FROM tab1 AS cor0
----
150
195
390
onlyif mysql # use DIV operator for integer division
query I rowsort label-8526
SELECT ALL - - col2 * + col1 * - col2 + col0 * 60 DIV - cor0.col0 FROM tab2 cor0
----
-22659
-24608
-39944
skipif mysql # not compatible
query I rowsort label-8526
SELECT ALL - - col2 * + col1 * - col2 + col0 * 60 / - cor0.col0 FROM tab2 cor0
----
-22659
-24608
-39944
query I rowsort
SELECT DISTINCT 73 AS col0 FROM tab0 AS cor0
----
73
query I rowsort
SELECT + col1 + + col2 * - col2 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT DISTINCT col1 + + col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - 7 AS col0 FROM tab2 AS cor0
----
-7
-7
-7
query I rowsort
SELECT + + col1 * - 50 + - col2 AS col0 FROM tab2 AS cor0
----
-1577
-2976
-888
query I rowsort
SELECT - ( - ( col2 ) ) * - cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT col0 + 82 * + col1 AS col0 FROM tab1 AS cor0
----
1146
2135
884
onlyif mysql # use DIV operator for integer division
query I rowsort label-8534
SELECT DISTINCT ( + col2 ) DIV + col2 AS col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-8534
SELECT DISTINCT ( + col2 ) / + col2 AS col1 FROM tab0 AS cor0
----
1
query I rowsort
SELECT col1 * col0 - - col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT - + 32 FROM tab0 AS cor0
----
-32
-32
-32
query I rowsort
SELECT DISTINCT - col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
54 values hashing to 2a7467bc6f55dbb61fbd4aa2bd0646a9
query I rowsort
SELECT - col2 * - col0 AS col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - cor0.col1 * col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + col1 - col0 FROM tab0 cor0
----
2
62
query I rowsort
SELECT col2 * - col1 - - 56 FROM tab2 AS cor0
----
-1478
-590
-781
query I rowsort
SELECT ALL - cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT ALL + col1 * 81 FROM tab2
----
1377
2511
4779
query I rowsort
SELECT cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT - + col0 + 68 + col0 AS col1 FROM tab2 AS cor0
----
68
68
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-8548
SELECT + col1 * 66 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
11
31
8
skipif mysql # not compatible
query I rowsort label-8548
SELECT + col1 * 66 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
11
31
8
query I rowsort
SELECT DISTINCT + col0 * 40 + - ( + col2 * ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
-1088
-42
-4480
query I rowsort
SELECT + 35 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT + + col2 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT - col2 + col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT 87 * + col0 FROM tab1
----
261
5568
6960
query I rowsort
SELECT ALL - col1 * - ( col2 ) * - col2 AS col1 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT col2 * + ( tab0.col0 ) FROM tab0
----
35
7298
792
query I rowsort
SELECT - + col2 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8557
SELECT DISTINCT + col2 DIV - tab0.col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-8557
SELECT DISTINCT + col2 / - tab0.col1 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab0
----
86
91
97
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab0 AS cor0, tab0
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b
query I rowsort
SELECT DISTINCT col2 + 86 * col1 * col1 + col2 AS col0 FROM tab1
----
14726
58244
8714
query I rowsort
SELECT col2 * col2 * col0 FROM tab0
----
26136
35
598436
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
query IIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 cor1
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f
onlyif mysql # use DIV operator for integer division
query I rowsort label-8565
SELECT ALL 3 DIV cor0.col2 + + col1 col0 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL 3 / cor0.col2 + + col1 col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + - ( col1 ) * - cor0.col2 + cor0.col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT - 37 * - col1 FROM tab2 cor0
----
1147
2183
629
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab0 cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356
query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT 19 * + 86 + tab1.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to e8e07674feb713443df6f6bd94352bd0
query I rowsort
SELECT ALL col1 + col0 + + 70 * + col1 * col2 FROM tab2
----
107517
45316
58628
query IIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998
onlyif mysql # use DIV operator for integer division
query I rowsort label-8573
SELECT ALL col1 DIV + col2 + tab1.col2 * + col2 * col2 FROM tab1
----
157464
185193
884736
skipif mysql # not compatible
query I rowsort label-8573
SELECT ALL col1 / + col2 + tab1.col2 * + col2 * col2 FROM tab1
----
157464
185193
884736
query I rowsort
SELECT ALL - col1 + + ( - 6 ) FROM tab1
----
-16
-19
-32
query I rowsort
SELECT DISTINCT + tab1.col0 AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL col2 * col1 AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL - tab1.col1 AS col1 FROM tab1
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT tab1.col0 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL 38 AS col0 FROM tab0
----
38
38
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8581
SELECT + CAST( + col0 AS SIGNED ) + - col1 FROM tab0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-8581
SELECT + CAST ( + col0 AS INTEGER ) + - col1 FROM tab0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL col1 * - 82 * + col2 + - col0 FROM tab1 AS cor0
----
-102416
-115131
-46804
query I rowsort
SELECT + + col2 AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + - 30 * + col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1123
-721
-779
query I rowsort
SELECT ALL - + col1 - col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT + ( col2 ) + + col1 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT cor0.col2 * 70 FROM tab0 AS cor0
----
2310
5740
70
query I rowsort
SELECT ALL col0 * - col0 - - col0 FROM tab0
----
-1190
-552
-7832
query I rowsort
SELECT tab2.col2 * col2 * col1 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT ALL - ( col0 ) + col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT DISTINCT - col0 + col2 * 57 FROM tab1
----
3075
3185
5392
query I rowsort
SELECT DISTINCT 87 * col0 FROM tab2
----
609
6786
6873
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab2 cor0
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0
query I rowsort
SELECT 42 * col2 - 37 FROM tab0 AS cor0
----
1349
3407
5
query I rowsort
SELECT + col0 * col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT col2 + + col2 FROM tab0
----
164
2
66
query I rowsort
SELECT DISTINCT + col2 + col2 AS col0 FROM tab2
----
52
54
76
query I rowsort
SELECT tab0.col2 + col0 FROM tab0
----
171
36
57
query I rowsort
SELECT + 90 FROM tab2, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT col0 * - ( + col1 ) + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-16020
-2640
-4620
query I rowsort
SELECT ALL + cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT col2 * ( - col0 ) + - cor0.col2 * col2 FROM tab1 AS cor0
----
-16896
-3078
-6897
query I rowsort
SELECT ALL + cor0.col2 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8606
SELECT - col0 + ( cor0.col2 ) DIV col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-8606
SELECT - col0 + ( cor0.col2 ) / col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - col1 + 55 AS col0 FROM tab2 AS cor0
----
-4
24
38
query I rowsort
SELECT - cor0.col0 * - col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + - col1 + - cor0.col0 + 11 FROM tab2 AS cor0
----
-126
-27
-85
query I rowsort
SELECT DISTINCT + col0 + cor0.col0 * col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL - cor0.col0 * - col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT col1 + ( 80 + - col2 ) FROM tab0 cor0
----
133
176
89
query I rowsort
SELECT DISTINCT + 0 FROM tab1, tab0 AS cor0, tab2 cor1
----
0
query I rowsort
SELECT - tab0.col2 AS col1 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL + col1 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT + - 74 AS col1 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28
query I rowsort
SELECT DISTINCT + - col2 - col0 FROM tab0 cor0
----
-171
-36
-57
query I rowsort
SELECT - col0 + - 19 FROM tab1 AS cor0
----
-22
-83
-99
query I rowsort
SELECT ALL + cor0.col2 + + col2 AS col0 FROM tab0 AS cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-8620
SELECT col0 DIV col0 + - col1 AS col2 FROM tab2 AS cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-8620
SELECT col0 / col0 + - col1 AS col2 FROM tab2 AS cor0
----
-16
-30
-58
query I rowsort
SELECT cor0.col2 + ( - col2 ) * col1 FROM tab0 AS cor0
----
-2805
-7380
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8622
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) * - 95 + col0 * + col0 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8622
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) * - 95 + col0 * + col0 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col1 + ( + col2 * cor0.col1 ) + - col2 AS col0 FROM tab1 AS cor0
----
1165
1376
523
query I rowsort
SELECT ALL + cor0.col2 - 42 AS col1 FROM tab0 AS cor0
----
-41
-9
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-8625
SELECT DISTINCT + cor0.col0 + col0 DIV cor0.col2 FROM tab0 AS cor0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-8625
SELECT DISTINCT + cor0.col0 + col0 / cor0.col2 FROM tab0 AS cor0
----
24
70
90
query I rowsort
SELECT ALL col0 + col2 AS col1 FROM tab2
----
104
117
34
query I rowsort
SELECT - 67 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99
query I rowsort
SELECT DISTINCT + 93 * col1 FROM tab0
----
7998
8463
9021
query I rowsort
SELECT ALL col1 - col0 AS col2 FROM tab2
----
-19
-62
24
query I rowsort
SELECT ALL - 27 + - col0 * + 27 AS col2 FROM tab0
----
-2430
-675
-972
query I rowsort
SELECT DISTINCT + + 53 * col1 FROM tab2 AS cor0
----
1643
3127
901
query I rowsort
SELECT ALL ( + col1 ) + col1 AS col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + 21 * - col1 FROM tab2 AS cor0
----
-1239
-357
-651
query I rowsort
SELECT ALL col2 * + col2 * ( - col0 ) FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT DISTINCT + - 17 FROM tab1 AS cor0
----
-17
query I rowsort
SELECT + - col0 * - col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - tab1.col1 FROM tab1, tab2, tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL - - cor0.col2 AS col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8641
SELECT ALL + + col1 + + CAST( NULL AS SIGNED ) / col1 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL + + col1 + + CAST ( NULL AS INTEGER ) / col1 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * + col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 + - col1 col0 FROM tab2 AS cor0
----
1475
629
806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8644
SELECT ALL - cor0.col0 / CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8644
SELECT ALL - cor0.col0 / CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col0 - ( + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT ALL col2 * + col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + + col2 * 37 + col1 * - col0 FROM tab0 AS cor0
----
-3358
-5065
-843
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - cor0.col1 - CAST ( col2 AS REAL ) * col0 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT + - col1 + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT - col0 + + 12 AS col0 FROM tab2 AS cor0
----
-66
-67
5
query I rowsort
SELECT ALL - col1 * - 2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8653
SELECT - col0 DIV col0 + - 83 * col2 FROM tab1 AS cor0
----
-4483
-4732
-7969
skipif mysql # not compatible
query I rowsort label-8653
SELECT - col0 / col0 + - 83 * col2 FROM tab1 AS cor0
----
-4483
-4732
-7969
query I rowsort
SELECT ALL - col0 * col0 FROM tab0 cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + ( - col1 ) col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL + + col0 AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + + cor0.col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL cor0.col0 * cor0.col1 + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT col0 + - cor0.col2 * 43 FROM tab0 AS cor0
----
-1395
-3437
-8
query I rowsort
SELECT ALL + col2 - + col0 FROM tab0
----
-34
-7
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8661
SELECT col1 + + CAST( col1 AS SIGNED ) * col1 AS col1 FROM tab1 cor0
----
110
182
702
skipif mysql # not compatible
query I rowsort label-8661
SELECT col1 + + CAST ( col1 AS INTEGER ) * col1 AS col1 FROM tab1 cor0
----
110
182
702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8662
SELECT DISTINCT - - col0 * - CAST( NULL AS SIGNED ) + col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT - - col0 * - CAST ( NULL AS INTEGER ) + col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - cor0.col0 + + 7 * + col0 AS col0 FROM tab2 AS cor0
----
42
468
474
query I rowsort
SELECT col1 * - col2 + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8665
SELECT DISTINCT - col1 DIV 41 AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT - col1 / 41 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + col0 * ( - 45 ) AS col0 FROM tab0 AS cor0
----
-1080
-1575
-4005
query I rowsort
SELECT - ( col2 ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL - 16 FROM tab2 AS cor0
----
-16
-16
-16
query I rowsort
SELECT + col2 * col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL - ( - 68 ) FROM tab2 AS cor0
----
68
68
68
query I rowsort
SELECT DISTINCT + ( - col0 ) + - col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844
onlyif mysql # use DIV operator for integer division
query I rowsort label-8672
SELECT DISTINCT - ( - col0 ) DIV + col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8672
SELECT DISTINCT - ( - col0 ) / + col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + + ( 85 ) * + cor0.col2 AS col2 FROM tab2 AS cor0
----
2210
2295
3230
query I rowsort
SELECT ALL col0 * 84 AS col0 FROM tab1 AS cor0
----
252
5376
6720
onlyif mysql # use DIV operator for integer division
query I rowsort label-8675
SELECT + 87 DIV 52 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8675
SELECT + 87 / 52 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - + 79 * col0 AS col2 FROM tab1 AS cor0
----
-237
-5056
-6320
query I rowsort
SELECT + ( 34 ) * col0 + + col0 FROM tab0
----
1225
3115
840
query I rowsort
SELECT col2 + col2 * - col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT + col1 + - col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + - 53 AS col0 FROM tab0 AS cor0
----
-53
-53
-53
onlyif mysql # use DIV operator for integer division
query I rowsort label-8681
SELECT - col0 * cor0.col0 + col0 DIV - CAST( col1 AS SIGNED ) FROM tab0 cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-8681
SELECT - col0 * cor0.col0 + col0 / - CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 * col0 col0 FROM tab2 cor0
----
162
2002
2964
query I rowsort
SELECT ALL + ( - col2 ) FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8684
SELECT ALL + CAST( + col2 AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL + CAST ( + col2 AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + 17 + + col2 + col2 * + 70 FROM tab1 AS cor0
----
3851
4064
6833
query I rowsort
SELECT DISTINCT + ( col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL col2 AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - col2 + - col0 * - col2 AS col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT 14 + col2 * col0 FROM tab2 AS cor0
----
203
2042
3016
query I rowsort
SELECT DISTINCT + - 83 AS col1 FROM tab1 AS cor0
----
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8692
SELECT ALL - cor0.col1 DIV 40 AS col2 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL - cor0.col1 / 40 AS col2 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT - 68 * col2 AS col0 FROM tab1 AS cor0
----
-3672
-3876
-6528
query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 35 * + col2 col2 FROM tab0 cor0
----
1155
2870
35
query I rowsort
SELECT - 58 * col1 AS col2 FROM tab2 AS cor0
----
-1798
-3422
-986
query I rowsort
SELECT - col2 * + col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - - col0 * col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + 96 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
query I rowsort
SELECT ALL col0 * - col2 + + col2 AS col2 FROM tab2 cor0
----
-162
-2002
-2964
query I rowsort
SELECT 56 * - col1 FROM tab1 AS cor0
----
-1456
-560
-728
query I rowsort
SELECT ALL + 64 + - col0 AS col2 FROM tab2 AS cor0
----
-14
-15
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + + col1 col0 FROM tab2
----
1593
663
868
query I rowsort
SELECT + col0 - - col0 AS col0 FROM tab0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 51 ) col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4
query I rowsort
SELECT col1 + + ( + col0 + tab1.col0 ) AS col2 FROM tab1
----
138
173
32
query I rowsort
SELECT + cor0.col2 * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-8708
SELECT + col1 DIV col1 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8708
SELECT + col1 / col1 FROM tab1 cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8709
SELECT + 44 * col2 DIV col0 FROM tab2 AS cor0
----
14
169
21
skipif mysql # not compatible
query I rowsort label-8709
SELECT + 44 * col2 / col0 FROM tab2 AS cor0
----
14
169
21
query I rowsort
SELECT + col1 * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - + 47 AS col2 FROM tab1 cor0
----
-47
-47
-47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) * col0 * - 88 col1 FROM tab2 cor0
----
4312
535392
549208
query I rowsort
SELECT ALL + cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 col2 FROM tab1 AS cor0
----
-30
-30
-30
query I rowsort
SELECT ALL + + cor0.col0 * col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL + col2 + + col1 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8717
SELECT ( - cor0.col0 ) DIV 64 FROM tab2 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-8717
SELECT ( - cor0.col0 ) / 64 FROM tab2 AS cor0
----
-1
-1
0
query I rowsort
SELECT - ( tab0.col1 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT tab0.col2 + 5 FROM tab0
----
38
6
87
query I rowsort
SELECT + 44 + - col0 FROM tab2
----
-34
-35
37
query I rowsort
SELECT + cor0.col2 + + col0 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + cor0.col2 + - col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + col0 * col0 AS col2 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT 52 * col0 FROM tab0
----
1248
1820
4628
query I rowsort
SELECT - col1 * cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - + col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
54 values hashing to 341cdc053c309cf3abe57fa060ecf96e
query I rowsort
SELECT DISTINCT col1 * col0 + cor0.col1 * col2 * col2 FROM tab1 AS cor0
----
120848
33130
75894
query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + 14 * col1 + 3 AS col0 FROM tab1 AS cor0
----
143
185
367
query I rowsort
SELECT + cor0.col0 * - 85 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 59974cdb875dc2b02b24b24871e7ec14
query I rowsort
SELECT + ( col1 ) * col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT col2 * col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT ALL - col0 + - 76 * - col1 AS col2 FROM tab0
----
6512
6827
7337
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8735
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0
----
NULL
query I rowsort
SELECT ( + cor1.col2 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL + col0 + + col1 * - col2 AS col1 FROM tab0
----
-2814
-62
-7373
query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
54 values hashing to 69e208df4a305efdfcc036bb4b31e720
query I rowsort
SELECT ALL 76 FROM tab0
----
76
76
76
query I rowsort
SELECT cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL - tab0.col1 * 21 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to e0e9dce42dfd5a5a2ab02692c023ea10
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 cor1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9
query I rowsort
SELECT 27 * col2 * col2 + col2 * - 99 AS col2 FROM tab1
----
239328
73386
82080
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - 15 AS REAL ) AS col2 FROM tab0 cor0
----
-15
onlyif mysql # use DIV operator for integer division
query I rowsort label-8745
SELECT ALL 34 DIV col0 + + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2063
-3395
-8099
skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL 34 / col0 + + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2063
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL col0 * 72 + col1 FROM tab1 AS cor0
----
242
4618
5773
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col0 AS REAL ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8750
SELECT + 75 + + cor0.col1 DIV 44 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 265da945467ee19466e27d6b7283f9cb
skipif mysql # not compatible
query I rowsort label-8750
SELECT + 75 + + cor0.col1 / 44 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 265da945467ee19466e27d6b7283f9cb
query I rowsort
SELECT DISTINCT col0 * ( col0 ) AS col1 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT + col2 * 89 AS col1 FROM tab1 AS cor0
----
4806
5073
8544
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8753
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab0 AS cor2, tab1
----
13122 values hashing to 91914e1516bd74d1b537b3edd58ebcd3
query I rowsort
SELECT DISTINCT tab2.col2 FROM tab2, tab0 cor0
----
26
27
38
query I rowsort
SELECT - col1 + 56 FROM tab0 AS cor0
----
-30
-35
-41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8757
SELECT - + col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8757
SELECT - + col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + + cor0.col1 * - col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT + col0 + col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - 46 AS col1 FROM tab0 AS cor0
----
-46
-46
-46
query I rowsort
SELECT DISTINCT + cor1.col1 AS col0 FROM tab1, tab0 AS cor0, tab1 cor1
----
10
13
26
query I rowsort
SELECT 74 * 5 * col2 FROM tab1 AS cor0
----
19980
21090
35520
query I rowsort
SELECT + - col2 * col2 * - col0 FROM tab0 cor0
----
26136
35
598436
query I rowsort
SELECT cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query IIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab1 AS cor1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242
query I rowsort
SELECT ALL + cor0.col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + col2 + 97 * cor0.col1 FROM tab0 AS cor0
----
8375
8909
9410
query I rowsort
SELECT ALL + cor0.col2 * 74 FROM tab2 AS cor0
----
1924
1998
2812
query I rowsort
SELECT - 44 FROM tab1, tab0 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
query I rowsort
SELECT 60 FROM tab1 AS cor0
----
60
60
60
query I rowsort
SELECT + 80 * 18 + + cor0.col1 FROM tab0, tab1 cor0
----
9 values hashing to e09abbcc8a4eff1dfece010cac7fabb0
query I rowsort
SELECT ALL + col0 * + col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT DISTINCT tab1.col2 * col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ALL col2 * + col2 AS col1 FROM tab0
----
1
1089
6724
query I rowsort
SELECT ALL col0 * + col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT - col0 + - col2 AS col2 FROM tab2
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-8777
SELECT ( - col2 ) + ( col0 ) DIV + col0 FROM tab2 AS cor0
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-8777
SELECT ( - col2 ) + ( col0 ) / + col0 FROM tab2 AS cor0
----
-25
-26
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 col1 FROM tab1 cor0
----
54
57
96
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab1 AS cor1
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f
query I rowsort
SELECT DISTINCT 79 * col2 AS col0 FROM tab2
----
2054
2133
3002
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab0 cor0, tab2
----
972 values hashing to a9068b700464993db9fae6f630605fde
query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + col0 * col2 AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ( col1 ) * col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT + ( tab2.col2 ) FROM tab2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8786
SELECT - col1 DIV col0 AS col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-8786
SELECT - col1 / col0 AS col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT DISTINCT - col0 * 75 FROM tab0 AS cor0
----
-1800
-2625
-6675
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col2 col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL col1 * col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT - 62 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8791
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8791
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - col2 * - col1 FROM tab0
----
2838
7462
97
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 35998cdc87c8b13ea047f14c9f5dc8d6
query I rowsort
SELECT ALL cor0.col1 + + col1 * + 88 * + col2 AS col2 FROM tab2 AS cor0
----
135051
56865
73687
query I rowsort
SELECT DISTINCT + - cor0.col0 * col0 * col2 + - cor0.col0 * cor0.col1 + ( - col1 ) FROM tab2 AS cor0
----
-1571
-162845
-238518
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col1 * 72 col1 FROM tab1 cor0
----
1846
710
923
query I rowsort
SELECT ALL + col0 + col0 * - col2 FROM tab1 AS cor0
----
-159
-3584
-7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - col0 * col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT col0 * + col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + col0 + - col1 AS col1 FROM tab0
----
-2
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-8803
SELECT DISTINCT col0 + + col0 DIV + col0 AS col0 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-8803
SELECT DISTINCT col0 + + col0 / + col0 AS col0 FROM tab1
----
4
65
81
query I rowsort
SELECT DISTINCT - col2 * - col1 + tab2.col1 + tab2.col1 FROM tab2
----
1652
680
899
query I rowsort
SELECT col2 * + 90 - - col0 AS col2 FROM tab1
----
4863
5194
8720
query I rowsort
SELECT 32 FROM tab2, tab0 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab0
----
1
33
82
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab1 AS cor0, tab1
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab1 cor0
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f
query I rowsort
SELECT - col1 + + 67 FROM tab2
----
36
50
8
query I rowsort
SELECT - col0 + col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT col0 + + 6 * col0 AS col1 FROM tab1 AS cor0
----
21
448
560
query I rowsort
SELECT 0 FROM tab0, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT - col2 * ( - 46 ) FROM tab1
----
2484
2622
4416
query I rowsort
SELECT col0 + ( col2 ) FROM tab1
----
121
176
57
query I rowsort
SELECT ALL - tab1.col2 + - tab1.col2 AS col2 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT DISTINCT ( 61 ) AS col1 FROM tab1
----
61
query I rowsort
SELECT ALL - - col0 AS col2 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL + col1 * col1 AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - col2 + col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - 20 + col2 * + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-1424
-656
-709
query I rowsort
SELECT - cor0.col0 * col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL col0 + cor0.col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + ( - col2 ) * - ( 27 ) + - col2 FROM tab1 AS cor0
----
1404
1482
2496
query I rowsort
SELECT ALL 51 FROM tab1, tab1 cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT DISTINCT cor1.col0 - 1 FROM tab2, tab2 AS cor0, tab1 cor1
----
2
63
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8828
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8828
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 28 FROM tab1
----
28
28
28
query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0
----
-24
-35
-89
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab2, tab1 AS cor1
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
query I rowsort
SELECT + - col1 * + col0 * - ( col0 * col2 ) + - col1 AS col0 FROM tab1 AS cor0
----
12610
2334710
7987187
query I rowsort
SELECT - + ( + col2 ) + ( + cor0.col1 ) * - col1 FROM tab0 AS cor0
----
-7429
-8363
-9410
query I rowsort
SELECT DISTINCT col2 - + col2 FROM tab2
----
0
query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
54 values hashing to fe43263cad63144a098cccb9cd58c32a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8836
SELECT ALL col2 * + col1 + + CAST( + ( col2 ) AS SIGNED ) FROM tab1
----
1344
1458
627
skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL col2 * + col1 + + CAST ( + ( col2 ) AS INTEGER ) FROM tab1
----
1344
1458
627
query I rowsort
SELECT ALL - col2 + col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - col2 + + col1 * - cor0.col0 * ( - col0 ) - - cor0.col2 FROM tab2 AS cor0
----
106097
1519
358956
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8839
SELECT - ( + col2 ) - + 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-8839
SELECT - ( + col2 ) - + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - cor0.col1 - col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL + col2 * + col1 + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT cor0.col1 * col1 - col1 * col2 * col2 AS col2 FROM tab0 AS cor0
----
-603603
-86258
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-8843
SELECT + 80 DIV - col2 - 95 AS col2 FROM tab1 AS cor0
----
-95
-96
-96
skipif mysql # not compatible
query I rowsort label-8843
SELECT + 80 / - col2 - 95 AS col2 FROM tab1 AS cor0
----
-95
-96
-96
query I rowsort
SELECT + 31 FROM tab1 cor0
----
31
31
31
query I rowsort
SELECT - + cor0.col1 * + 76 * col2 AS col1 FROM tab2 AS cor0
----
-116584
-49096
-63612
query I rowsort
SELECT 54 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT ALL col1 * 12 + - col2 AS col2 FROM tab0 AS cor0
----
1010
1163
999
query I rowsort
SELECT DISTINCT 6 * 94 + + col1 * col0 AS col2 FROM tab2 AS cor0
----
1907
5166
781
query I rowsort
SELECT 37 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col1 AS REAL ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT cor0.col2 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT - 4 FROM tab0, tab1 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd
query I rowsort
SELECT ALL ( + tab0.col0 * + col2 ) AS col1 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-8854
SELECT DISTINCT 92 DIV tab0.col1 AS col0 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-8854
SELECT DISTINCT 92 / tab0.col1 AS col0 FROM tab0
----
0
1
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab0 cor0
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab0 cor1
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8
query I rowsort
SELECT + ( ( + col2 ) * + tab2.col2 + col2 ) AS col0 FROM tab2
----
1482
702
756
query I rowsort
SELECT DISTINCT - + col0 + - cor0.col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL + ( col1 ) + - col0 AS col0 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8860
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8860
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8861
SELECT DISTINCT col0 DIV col2 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-8861
SELECT DISTINCT col0 / col2 FROM tab0
----
0
1
35
query I rowsort
SELECT DISTINCT + - 93 FROM tab2 cor0
----
-93
query I rowsort
SELECT - - 96 AS col0 FROM tab0 AS cor0
----
96
96
96
query I rowsort
SELECT col0 * + tab0.col2 AS col1 FROM tab0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 * col2 * - 1 + col2 * + col2 col0 FROM tab2
----
-108
-130
266
query I rowsort
SELECT DISTINCT - col1 + col1 AS col2 FROM tab0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8867
SELECT ALL - col2 + - col0 * + CAST( NULL AS SIGNED ) * col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL - col2 + - col0 * + CAST ( NULL AS INTEGER ) * col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 42 + - col0 AS col0 FROM tab1
----
-22
-38
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-8869
SELECT DISTINCT + ( + col2 ) DIV 20 + col2 AS col1 FROM tab0
----
1
34
86
skipif mysql # not compatible
query I rowsort label-8869
SELECT DISTINCT + ( + col2 ) / 20 + col2 AS col1 FROM tab0
----
1
34
86
query I rowsort
SELECT - tab2.col1 * tab2.col1 + 44 FROM tab2
----
-245
-3437
-917
onlyif mysql # use DIV operator for integer division
query I rowsort label-8871
SELECT 44 DIV - col1 - - col0 AS col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8871
SELECT 44 / - col1 - - col0 AS col1 FROM tab0 AS cor0
----
24
35
89
query IIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab2 cor1
----
243 values hashing to ea21cea53be47edd19229592e3d26141
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 93 - col0 col0 FROM tab1 cor0
----
13
29
90
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 58b53d9f2c5d79e6fe94b4a97272440e
query I rowsort
SELECT DISTINCT - 97 * + col0 AS col1 FROM tab2 AS cor0
----
-679
-7566
-7663
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab
query I rowsort
SELECT + col1 * col0 + - col0 AS col2 FROM tab1
----
576
75
960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col1 FROM tab1
----
81
81
81
query I rowsort
SELECT DISTINCT col2 + col1 AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT - ( 46 ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-46
query I rowsort
SELECT col2 * col0 + col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT + cor0.col2 * - 94 FROM tab2 cor0
----
-2444
-2538
-3572
query I rowsort
SELECT DISTINCT + col1 + col2 * + col2 AS col1 FROM tab0 AS cor0
----
1175
6815
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * 99 col1 FROM tab1 AS cor0
----
-297
-6336
-7920
query I rowsort
SELECT - cor0.col0 * - col2 + - col0 AS col1 FROM tab1 cor0
----
159
3584
7600
query I rowsort
SELECT - + col2 * 63 AS col2 FROM tab1 AS cor0
----
-3402
-3591
-6048
query I rowsort
SELECT ALL - + col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8888
SELECT col0 * CAST( NULL AS SIGNED ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8888
SELECT col0 * CAST ( NULL AS INTEGER ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8889
SELECT DISTINCT cor0.col0 + col2 DIV + 95 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-8889
SELECT DISTINCT cor0.col0 + col2 / + 95 col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + 63 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0
query I rowsort
SELECT 68 FROM tab2, tab0 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT ALL + col0 + + col0 + - 89 AS col0 FROM tab2 AS cor0
----
-75
67
69
query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + + col0 * - col0 AS col2 FROM tab2 cor0
----
-49
-6084
-6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8896
SELECT - col0 * + CAST( NULL AS SIGNED ) + - col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8896
SELECT - col0 * + CAST ( NULL AS INTEGER ) + - col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT cor0.col1 + + ( col0 ) FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + - col1 * 1 * + 25 + col0 + 22 FROM tab0 AS cor0
----
-2104
-2164
-2368
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8900
SELECT + - col0 * CAST( col0 * - cor0.col0 AS SIGNED ) + col1 * - col0 AS col2 FROM tab2 AS cor0
----
126
469950
491696
skipif mysql # not compatible
query I rowsort label-8900
SELECT + - col0 * CAST ( col0 * - cor0.col0 AS INTEGER ) + col1 * - col0 AS col2 FROM tab2 AS cor0
----
126
469950
491696
onlyif mysql # use DIV operator for integer division
query I rowsort label-8901
SELECT ALL - col1 + col0 * col1 DIV + col1 FROM tab2 AS cor0
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL - col1 + col0 * col1 / + col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT - - col2 + - col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ( + 69 ) FROM tab0, tab0 cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT ALL + tab0.col1 * col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT - - col2 * - 69 FROM tab0 AS cor0
----
-2277
-5658
-69
query I rowsort
SELECT ALL + 93 FROM tab1, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT DISTINCT - tab0.col0 - 60 * 67 AS col0 FROM tab0, tab2, tab1 AS cor0
----
-4044
-4055
-4109
query I rowsort
SELECT + + ( col2 ) * col2 + cor0.col1 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT - - col1 * + cor0.col0 + + col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT + col0 + + col2 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + + col0 * col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT col1 * 25 AS col0 FROM tab1 AS cor0
----
250
325
650
query I rowsort
SELECT + col0 * + col0 * col2 AS col1 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT + col1 + ( col2 ) AS col2 FROM tab1
----
109
67
80
query I rowsort
SELECT ALL + col2 * + ( - col2 ) FROM tab0
----
-1
-1089
-6724
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab0 cor0
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8
query I rowsort
SELECT - col0 + - col0 AS col1 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT - col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT - cor0.col1 * 73 + col1 FROM tab1 AS cor0
----
-1872
-720
-936
query I rowsort
SELECT - + col0 * 51 FROM tab2 AS cor0
----
-357
-3978
-4029
query I rowsort
SELECT ALL - + col2 * + col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + - col2 - col1 FROM tab2 AS cor0
----
-55
-58
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col2 + + col2 + 81 * - col1 col2 FROM tab0 cor0
----
-14587
-7725
-7891
query I rowsort
SELECT DISTINCT - - 83 FROM tab0 AS cor0
----
83
query I rowsort
SELECT ALL + 21 AS col0 FROM tab0 AS cor0
----
21
21
21
query I rowsort
SELECT - 68 * + cor0.col2 FROM tab0 AS cor0
----
-2244
-5576
-68
query I rowsort
SELECT + col0 * col2 FROM tab2
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col1 ) - + 95 * + 27 col2 FROM tab0 AS cor0
----
-2651
-2656
-2662
query I rowsort
SELECT DISTINCT + col0 * - col2 * + col1 + + 73 FROM tab0 AS cor0
----
-3322
-664045
-68039
query I rowsort
SELECT col1 * + col2 + cor0.col2 * col1 * col2 AS col2 FROM tab1 AS cor0
----
121056
33060
77220
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col2 col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT + cor0.col1 * cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - cor0.col2 + col0 AS col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL - ( + ( - col1 ) ) AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT + ( - col2 ) * - col0 + col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT col2 - - col2 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8937
SELECT + 49 - - col2 * CAST( NULL AS SIGNED ) * - 19 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8937
SELECT + 49 - - col2 * CAST ( NULL AS INTEGER ) * - 19 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 91 * - col2 - col1 FROM tab0 AS cor0
----
-188
-3089
-7553
query I rowsort
SELECT - + col0 * col2 + col1 + 17 AS col0 FROM tab2 AS cor0
----
-141
-1952
-2968
query I rowsort
SELECT + col1 + cor0.col2 * 50 + - cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
-190
-389
-4403
query I rowsort
SELECT + + ( + 42 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
onlyif mysql # use DIV operator for integer division
query I rowsort label-8942
SELECT ALL ( - col2 ) * + ( col1 ) DIV col1 + + 29 FROM tab2
----
-9
2
3
skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL ( - col2 ) * + ( col1 ) / col1 + + 29 FROM tab2
----
-9
2
3
query I rowsort
SELECT ALL col2 * + col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT 36 + 71 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to b14844660fdb85e14844d842e8eccad2
query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 cor1
----
54 values hashing to b010e320d66ab5b2711fc14e8fb58b01
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab2 AS cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b
query I rowsort
SELECT DISTINCT - 50 AS col0 FROM tab0 cor0
----
-50
query I rowsort
SELECT - ( tab2.col2 ) * + col1 AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL col1 * + col1 AS col0 FROM tab2
----
289
3481
961
query I rowsort
SELECT 62 AS col2 FROM tab0
----
62
62
62
query I rowsort
SELECT DISTINCT 60 FROM tab1, tab1 AS cor0
----
60
query I rowsort
SELECT + col2 * - col0 + col1 AS col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT + + col2 + - col2 * col1 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT + - col2 - cor0.col2 * + col0 AS col0 FROM tab2 AS cor0
----
-2054
-216
-3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 col1 FROM tab1 AS cor0
----
97
97
97
query I rowsort
SELECT ALL + - col2 * - col0 - + 30 FROM tab1 AS cor0
----
132
3618
7650
query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - + col2 + col2 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT col2 * col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - col1 + col1 + + col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - 35 + + col2 AS col1 FROM tab2 AS cor0
----
-8
-9
3
query I rowsort
SELECT DISTINCT - 19 - - 56 FROM tab0
----
37
query I rowsort
SELECT col2 + 28 * col0 AS col0 FROM tab2
----
2210
223
2250
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8964
SELECT ALL CAST( col0 AS SIGNED ) AS col2 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL CAST ( col0 AS INTEGER ) AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL + 80 AS col2 FROM tab2
----
80
80
80
query I rowsort
SELECT ALL + 2 * col2 + + ( col0 + + col0 ) * - ( + col0 ) * col2 FROM tab2
----
-2592
-316316
-474240
query I rowsort
SELECT - cor0.col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT cor0.col1 * + col2 + + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ( + col0 ) * ( + col0 ) + - col1 AS col0 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT DISTINCT - col0 + cor0.col2 AS col1 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT ALL col1 + + col2 * - 33 * ( col1 + - ( - 73 ) ) FROM tab1 AS cor0
----
-156113
-176392
-272435
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + + col1 * cor0.col1 col0 FROM tab0 AS cor0
----
7310
8190
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-8973
SELECT - + 60 DIV + col0 FROM tab1 AS cor0
----
-20
0
0
skipif mysql # not compatible
query I rowsort label-8973
SELECT - + 60 / + col0 FROM tab1 AS cor0
----
-20
0
0
query I rowsort
SELECT - col0 * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT - col2 + col1 AS col0 FROM tab0 AS cor0
----
53
9
96
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2, tab2 AS cor1
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
query I rowsort
SELECT - col2 * col1 AS col0 FROM tab0
----
-2838
-7462
-97
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab0, tab2 AS cor1
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 cor1
----
54 values hashing to 3352c458f45211cf9aa3236c2cd6dd38
query I rowsort
SELECT ALL col2 * + col0 AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT 53 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT - - col0 + - 16 * - 15 FROM tab1 AS cor0
----
243
304
320
query I rowsort
SELECT + - col0 * + 22 AS col1 FROM tab0 AS cor0
----
-1958
-528
-770
query I rowsort
SELECT + + col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT + cor0.col1 * + 80 * - 6 AS col0 FROM tab1 AS cor0
----
-12480
-4800
-6240
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094
query I rowsort
SELECT DISTINCT col2 * + tab2.col1 * - col1 AS col2 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT ALL col1 * col1 * col1 + col1 * 68 * - col0 AS col1 FROM tab1
----
-42520
-68523
12272
query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE ( NULL ) IN ( cor0.col1 )
----
query I rowsort
SELECT 85 FROM tab1 AS cor0
----
85
85
85
query I rowsort
SELECT ALL + - ( + col2 ) FROM tab2 AS cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + cor0.col2 col1 FROM tab2 AS cor0
----
-33
-4
21
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
243 values hashing to b3323704f6873113d863f8e27386b356
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab1, tab1 cor1
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8996
SELECT - CAST( NULL AS SIGNED ) / - 9 - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8996
SELECT - CAST ( NULL AS INTEGER ) / - 9 - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 50 + + cor0.col2 * + col0 FROM tab1 AS cor0
----
112
3598
7630
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0
query I rowsort
SELECT ALL col1 + col1 FROM tab1 cor0
----
20
26
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9000
SELECT CAST( NULL AS SIGNED ) + - col2 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9000
SELECT CAST ( NULL AS INTEGER ) + - col2 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col0 + ( col2 ) * 12 FROM tab2 AS cor0
----
234
317
377
query I rowsort
SELECT 4 * col0 AS col2 FROM tab1 AS cor0
----
12
256
320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9003
SELECT ALL CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT 1 + 30 * - col1 FROM tab0 AS cor0
----
-2579
-2729
-2909
onlyif mysql # use DIV operator for integer division
query I rowsort label-9005
SELECT DISTINCT - ( col1 ) DIV - col0 AS col2 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-9005
SELECT DISTINCT - ( col1 ) / - col0 AS col2 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT DISTINCT - 7 FROM tab1 AS cor0
----
-7
query I rowsort
SELECT ALL 57 * - col2 AS col1 FROM tab1 AS cor0
----
-3078
-3249
-5472
query I rowsort
SELECT col0 + - cor0.col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL + + cor0.col1 * col2 * col0 AS col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL - 54 * + col1 FROM tab0 AS cor0
----
-4644
-4914
-5238
query I rowsort
SELECT col2 * + col2 + - col2 AS col1 FROM tab0 cor0
----
0
1056
6642
onlyif mysql # use DIV operator for integer division
query I rowsort label-9012
SELECT DISTINCT 25 + + ( col0 ) DIV + col2 FROM tab1 AS cor0
----
25
26
skipif mysql # not compatible
query I rowsort label-9012
SELECT DISTINCT 25 + + ( col0 ) / + col2 FROM tab1 AS cor0
----
25
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col2 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL - - 16 AS col2 FROM tab0 AS cor0
----
16
16
16
query I rowsort
SELECT DISTINCT - col0 * - col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL - - 37 * - col1 FROM tab2 AS cor0
----
-1147
-2183
-629
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 + - col2 col2 FROM tab1 AS cor0
----
-27
12
15
query I rowsort
SELECT ALL + 73 AS col0 FROM tab1 AS cor0
----
73
73
73
query I rowsort
SELECT - tab1.col2 * - col1 + col0 FROM tab1
----
1328
1407
634
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to d6a6e32c6adcc8525ed3eb7827781237
query I rowsort
SELECT - cor0.col2 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT ALL cor0.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT - col0 * col2 + - 26 AS col2 FROM tab2 AS cor0
----
-2054
-215
-3028
query I rowsort
SELECT col2 * 1 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT DISTINCT col1 * - col0 FROM tab2 cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 8 col2 FROM tab0 AS cor0
----
-192
-280
-712
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9029
SELECT ALL + col2 * + CAST( + col1 AS SIGNED ) * + col2 + + 61 FROM tab0 cor0
----
158
611945
93715
skipif mysql # not compatible
query I rowsort label-9029
SELECT ALL + col2 * + CAST ( + col1 AS INTEGER ) * + col2 + + 61 FROM tab0 cor0
----
158
611945
93715
query I rowsort
SELECT - + col1 * + col0 + col2 AS col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - + col0 AS col2 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - tab2.col2 AS col1 FROM tab2, tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + col2 * + tab0.col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL + - col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT col2 * 20 AS col0 FROM tab0 AS cor0
----
1640
20
660
skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 * CAST ( ( cor0.col1 ) AS REAL ) + + cor0.col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9038
SELECT col1 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9038
SELECT col1 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 - + col1 FROM tab1
----
-23
54
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9040
SELECT - col1 - CAST( - col0 AS SIGNED ) AS col2 FROM tab0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-9040
SELECT - col1 - CAST ( - col0 AS INTEGER ) AS col2 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT - col1 * - ( - col0 * + col2 ) AS col0 FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL - 71 + 52 * col1 * - ( + col2 * col0 ) AS col0 FROM tab0 AS cor0
----
-176611
-34534207
-3541895
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 18 col1 FROM tab1 AS cor0
----
1152
1440
54
query I rowsort
SELECT ALL + ( col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - + 80 + + col0 + col1 AS col0 FROM tab1 cor0
----
-51
-6
13
query I rowsort
SELECT cor0.col1 * - 2 FROM tab2, tab2 cor0
----
9 values hashing to 66e198acca624efd182aa551bb5de4c7
query I rowsort
SELECT DISTINCT + col1 * 9 AS col1 FROM tab2
----
153
279
531
query I rowsort
SELECT col0 - - col0 AS col0 FROM tab0
----
178
48
70
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab0 AS cor1
----
243 values hashing to 3e8bd9634a3f5947d8becd5f5799bb7f
query I rowsort
SELECT DISTINCT + 11 AS col1 FROM tab0 AS cor0
----
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-9051
SELECT + col0 DIV col0 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9051
SELECT + col0 / col0 AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT col0 * - cor0.col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + col0 * col0 * col2 AS col0 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT ALL - col2 * + col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-9055
SELECT DISTINCT + col0 DIV cor0.col0 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-9055
SELECT DISTINCT + col0 / cor0.col0 FROM tab1 AS cor0
----
1
query I rowsort
SELECT + cor0.col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - 18 AS col2 FROM tab0 AS cor0
----
-18
-18
-18
query I rowsort
SELECT + col1 + + col0 FROM tab2
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9059
SELECT - 64 + + 75 DIV + col0 AS col2 FROM tab2
----
-54
-64
-64
skipif mysql # not compatible
query I rowsort label-9059
SELECT - 64 + + 75 / + col0 AS col2 FROM tab2
----
-54
-64
-64
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
query I rowsort
SELECT + - 86 * col2 AS col2 FROM tab2 AS cor0
----
-2236
-2322
-3268
onlyif mysql # use DIV operator for integer division
query I rowsort label-9062
SELECT DISTINCT + + col0 DIV col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9062
SELECT DISTINCT + + col0 / col1 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9063
SELECT - 67 DIV - col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9063
SELECT - 67 / - col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + 99 AS col0 FROM tab2
----
99
99
99
query I rowsort
SELECT + col0 AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT - + col1 * - cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT + col2 * + ( 42 ) AS col2 FROM tab2 AS cor0
----
1092
1134
1596
onlyif mysql # use DIV operator for integer division
query I rowsort label-9068
SELECT + col0 DIV col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-9068
SELECT + col0 / col1 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT DISTINCT - ( col1 ) FROM tab1
----
-10
-13
-26
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab1 cor0
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
query I rowsort
SELECT ALL 29 * + col1 FROM tab2
----
1711
493
899
query I rowsort
SELECT - 98 FROM tab0
----
-98
-98
-98
query I rowsort
SELECT 34 * + col1 FROM tab2
----
1054
2006
578
query I rowsort
SELECT ALL - 96 AS col0 FROM tab2
----
-96
-96
-96
query I rowsort
SELECT ( col0 ) + - cor0.col0 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 + + col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT 41 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT DISTINCT - col0 - col2 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT ALL tab2.col2 * - 87 - - col2 * + tab2.col0 FROM tab2
----
-2160
-234
-304
query I rowsort
SELECT DISTINCT + 40 + + col2 FROM tab1 cor0
----
136
94
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9081
SELECT ALL + - CAST( NULL AS SIGNED ) + col1 * cor0.col1 - ( col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL + - CAST ( NULL AS INTEGER ) + col1 * cor0.col1 - ( col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 89 * col2 + col0 AS col1 FROM tab2 AS cor0
----
2392
2410
3461
query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - - col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - col1 * - ( - col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + - col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + 47 * col2 - + col2 * - col2 AS col1 FROM tab0 AS cor0
----
10578
2640
48
query I rowsort
SELECT + cor0.col0 + + 86 AS col2 FROM tab2 cor0
----
164
165
93
query I rowsort
SELECT DISTINCT + - col1 * - 59 AS col1 FROM tab1 AS cor0
----
1534
590
767
onlyif mysql # use DIV operator for integer division
query I rowsort label-9090
SELECT DISTINCT - - 84 + col1 DIV col2 FROM tab1 cor0
----
84
skipif mysql # not compatible
query I rowsort label-9090
SELECT DISTINCT - - 84 + col1 / col2 FROM tab1 cor0
----
84
query I rowsort
SELECT ALL col0 * tab2.col2 + 19 FROM tab2
----
2047
208
3021
query I rowsort
SELECT ALL - col2 - - ( - 36 ) AS col0 FROM tab0
----
-118
-37
-69
query I rowsort
SELECT + tab0.col1 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL col1 * + tab1.col1 + col0 FROM tab1
----
164
249
679
query I rowsort
SELECT ALL + 40 FROM tab2, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT ALL - + 92 FROM tab2 AS cor0
----
-92
-92
-92
query I rowsort
SELECT - col1 - 74 AS col1 FROM tab1 AS cor0
----
-100
-84
-87
query I rowsort
SELECT ALL - - col1 + col2 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - col1 + - col2 * cor0.col1 FROM tab1 cor0
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT + 32 + 63 AS col0 FROM tab1 AS cor0
----
95
query I rowsort
SELECT - col1 * - col1 + + col2 AS col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT DISTINCT + - 26 + 2 FROM tab2 AS cor0
----
-24
query I rowsort
SELECT col2 + col2 * col0 AS col1 FROM tab1 cor0
----
216
3705
7776
query I rowsort
SELECT ALL - + col1 * + cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT col2 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT + 36 + + col2 * + col2 FROM tab2 AS cor0
----
1480
712
765
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9107
SELECT ALL + CAST( NULL AS SIGNED ) + col2 * + col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9107
SELECT ALL + CAST ( NULL AS INTEGER ) + col2 * + col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + col2 * col2 * + col2 FROM tab1 AS cor0
----
157464
185193
884736
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9110
SELECT + CAST( - col2 AS SIGNED ) + - col2 AS col1 FROM tab2 AS cor0
----
-52
-54
-76
skipif mysql # not compatible
query I rowsort label-9110
SELECT + CAST ( - col2 AS INTEGER ) + - col2 AS col1 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT ALL - col1 + ( col1 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - ( 55 ) AS col2 FROM tab2 AS cor0
----
-55
-55
-55
query I rowsort
SELECT DISTINCT + col0 + col1 + col2 FROM tab2 cor0
----
134
163
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9114
SELECT + ( + col2 ) + + tab2.col2 + CAST( 16 + col1 AS SIGNED ) AS col2 FROM tab2
----
101
109
127
skipif mysql # not compatible
query I rowsort label-9114
SELECT + ( + col2 ) + + tab2.col2 + CAST ( 16 + col1 AS INTEGER ) AS col2 FROM tab2
----
101
109
127
query I rowsort
SELECT - 84 * col2 + + 34 AS col2 FROM tab1 AS cor0
----
-4502
-4754
-8030
query I rowsort
SELECT ALL col2 + tab2.col1 AS col0 FROM tab2
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 col1 FROM tab0
----
-78
-78
-78
query I rowsort
SELECT - cor1.col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT - col2 * - col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ( - col1 ) FROM tab2
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-9121
SELECT + - 88 DIV + tab1.col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to d1b3390bf3c224e527bf68f43fea665f
skipif mysql # not compatible
query I rowsort label-9121
SELECT + - 88 / + tab1.col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to d1b3390bf3c224e527bf68f43fea665f
query I rowsort
SELECT DISTINCT - 74 * 87 AS col0 FROM tab2
----
-6438
query I rowsort
SELECT ALL + col2 * col0 * col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + col0 col2 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT + col2 + col2 AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT - col0 * - col0 AS col2 FROM tab2
----
49
6084
6241
query I rowsort
SELECT + ( col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - col0 + col1 * 42 AS col2 FROM tab1 cor0
----
1089
356
466
query I rowsort
SELECT col1 + - col1 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col1 + - col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT 24 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT - cor0.col0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT 41 FROM tab1, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT ALL + col2 * col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT col0 * + cor0.col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9138
SELECT + col1 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9138
SELECT + col1 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col0 * col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT col2 * ( - col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL + col2 * col0 FROM tab0 cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab2 cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9143
SELECT ( cor0.col2 ) DIV cor0.col0 - 17 AS col0 FROM tab2 AS cor0
----
-14
-17
-17
skipif mysql # not compatible
query I rowsort label-9143
SELECT ( cor0.col2 ) / cor0.col0 - 17 AS col0 FROM tab2 AS cor0
----
-14
-17
-17
query I rowsort
SELECT DISTINCT + col2 * col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + + col0 * col1 * col0 + + ( col2 ) FROM tab2 AS cor0
----
106135
1546
358982
query I rowsort
SELECT - 40 * cor0.col2 + col2 AS col0 FROM tab2 cor0
----
-1014
-1053
-1482
query I rowsort
SELECT 4 FROM tab0, tab1 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT DISTINCT - + 16 AS col2 FROM tab1 cor0 CROSS JOIN tab1, tab0 cor1
----
-16
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL - col0 + col1 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT col2 + col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT - - col2 * col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL - col0 * cor0.col0 * - cor0.col0 FROM tab1 AS cor0
----
262144
27
512000
query I rowsort
SELECT - + col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + col2 - ( + col1 ) AS col2 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT - col2 * 54 * + col2 + + col1 * + col0 AS col1 FROM tab2 cor0
----
-31902
-39149
-76633
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9158
SELECT + cor0.col1 * + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-9158
SELECT + cor0.col1 * + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT cor0.col1 + - cor0.col0 - col2 FROM tab1 AS cor0
----
-111
-163
-31
query I rowsort
SELECT ALL - - col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT - 23 * - tab2.col2 AS col2 FROM tab2
----
598
621
874
query I rowsort
SELECT ALL 31 AS col0 FROM tab2
----
31
31
31
query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT - 23 + + cor0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 7e09a9bd51af6a96bf58a4ff360f3cb0
query I rowsort
SELECT col1 + ( + 32 ) + + col2 FROM tab2
----
117
87
90
query I rowsort
SELECT - + cor0.col0 + + col1 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9167
SELECT DISTINCT - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
query I rowsort
SELECT + ( + tab1.col1 ) AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT - ( col2 ) + - col1 * - 40 AS col1 FROM tab0 AS cor0
----
3407
3558
3879
query I rowsort
SELECT DISTINCT - col0 * + col1 - col2 AS col0 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT 40 FROM tab0, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0 CROSS JOIN tab0, tab1, tab0 AS cor1
----
3645 values hashing to 2e3240e8d3c0c7c6ff427f9572ba362d
query I rowsort
SELECT ALL 58 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT ALL - col1 * + col0 * 53 FROM tab1
----
-33920
-4134
-55120
query I rowsort
SELECT ALL 60 AS col0 FROM tab1
----
60
60
60
query I rowsort
SELECT + tab2.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT col1 AS col2 FROM tab2
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 col1 FROM tab1 AS cor0
----
68
68
68
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 149298fc0224e93f3bc2df24a3ebeeb8
query I rowsort
SELECT ALL 55 AS col1 FROM tab1
----
55
55
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - col0 * - col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + 85 AS col1 FROM tab1 cor0
----
85
85
85
query I rowsort
SELECT DISTINCT cor0.col1 + - col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - + 11 * - cor0.col0 FROM tab0 AS cor0
----
264
385
979
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 col2 FROM tab0 AS cor0
----
70
query I rowsort
SELECT ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + col1 * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + col1 * col2 + + 95 + - col2 AS col0 FROM tab0 cor0
----
191
2900
7475
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9193
SELECT ALL - col1 * CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 * col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9195
SELECT DISTINCT + tab0.col2 + 31 DIV 23 AS col1 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-9195
SELECT DISTINCT + tab0.col2 + 31 / 23 AS col1 FROM tab0
----
2
34
83
query I rowsort
SELECT DISTINCT col1 + col0 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL + - col1 + + ( + col2 ) * - col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT col2 + - col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT col1 + - 25 FROM tab2 AS cor0
----
-8
34
6
query I rowsort
SELECT ALL col2 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - 52 col2 FROM tab0 cor0
----
-19
-51
30
query I rowsort
SELECT ALL cor0.col1 - col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9203
SELECT ALL col0 + col0 * 36 + col1 DIV col0 col0 FROM tab1 AS cor0
----
119
2368
2960
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL col0 + col0 * 36 + col1 / col0 col0 FROM tab1 AS cor0
----
119
2368
2960
query I rowsort
SELECT cor0.col2 + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT cor0.col2 * + col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-9206
SELECT DISTINCT col0 * 38 - + col0 DIV col0 col1 FROM tab0 AS cor0
----
1329
3381
911
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT col0 * 38 - + col0 / col0 col1 FROM tab0 AS cor0
----
1329
3381
911
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab0 cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356
query I rowsort
SELECT + cor0.col0 * - col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - - 98 * - 31 FROM tab0 AS cor0
----
-3038
-3038
-3038
query I rowsort
SELECT + ( tab0.col1 ) FROM tab0
----
86
91
97
query I rowsort
SELECT + 47 - + col1 * - col1 FROM tab1
----
147
216
723
query I rowsort
SELECT col1 * 77 + col0 FROM tab0
----
6646
7096
7504
onlyif mysql # use DIV operator for integer division
query I rowsort label-9213
SELECT DISTINCT - 3 * tab2.col2 * - col2 + col1 DIV 16 + col1 FROM tab2
----
2090
2219
4350
skipif mysql # not compatible
query I rowsort label-9213
SELECT DISTINCT - 3 * tab2.col2 * - col2 + col1 / 16 + col1 FROM tab2
----
2090
2219
4350
query I rowsort
SELECT ALL + ( + 34 ) + + col1 FROM tab0
----
120
125
131
query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL cor0.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT + 60 + ( cor0.col0 ) FROM tab0 cor0
----
149
84
95
query I rowsort
SELECT - + 15 + 38 FROM tab2 AS cor0
----
23
23
23
query I rowsort
SELECT DISTINCT + ( + col2 ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT 96 * - col2 FROM tab1 cor0
----
-5184
-5472
-9216
query I rowsort
SELECT DISTINCT - ( 79 ) FROM tab1, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
-79
query I rowsort
SELECT + 19 * 63 AS col1 FROM tab1 AS cor0
----
1197
1197
1197
query I rowsort
SELECT + col2 + + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL - ( - col1 ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL 83 * - col1 + 71 AS col0 FROM tab1 AS cor0
----
-1008
-2087
-759
query I rowsort
SELECT col0 * col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 + - ( + col0 ) * col1 * + cor0.col1 + col0 * col1 col2 FROM tab0 AS cor0
----
-174864
-324695
-720989
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col0 FROM tab1 AS cor0
----
27
27
27
query I rowsort
SELECT DISTINCT + col2 * col0 * col1 FROM tab0 cor0
----
3395
664118
68112
query I rowsort
SELECT ALL cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col1 * col0 FROM tab2 AS cor0
----
1343
217
4602
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-9233
SELECT DISTINCT - ( col0 ) + + col1 DIV cor0.col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-9233
SELECT DISTINCT - ( col0 ) + + col1 / cor0.col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - col0 * - col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL col1 AS col1 FROM tab2 cor0
----
17
31
59
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 ALL - cor0.col0 * col2 + - col0 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT DISTINCT + - col0 + col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + tab2.col1 + col2 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL - 24 * 32 + col0 AS col2 FROM tab0
----
-679
-733
-744
onlyif mysql # use DIV operator for integer division
query I rowsort label-9241
SELECT DISTINCT - col0 + col2 DIV col1 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-9241
SELECT DISTINCT - col0 + col2 / col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT 67 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT ALL + 30 AS col0 FROM tab0
----
30
30
30
query I rowsort
SELECT ALL + 86 FROM tab1
----
86
86
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-9245
SELECT + col0 DIV col1 AS col0 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-9245
SELECT + col0 / col1 AS col0 FROM tab1
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 col2 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL + - 94 + - col2 FROM tab1 AS cor0
----
-148
-151
-190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9248
SELECT DISTINCT + CAST( col0 AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + col0 * col1 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9250
SELECT DISTINCT + CAST( - col2 AS SIGNED ) - - col1 FROM tab1 cor0
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-9250
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) - - col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - 80 AS col0 FROM tab1 AS cor0
----
-80
-80
-80
query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - - col2 - + col0 FROM tab2 cor0
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT 81 AS col0 FROM tab1 AS cor0
----
81
query I rowsort
SELECT - - col1 * col0 + col1 FROM tab2 AS cor0
----
1360
248
4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL + 59 + - 21 FROM tab1 AS cor0
----
38
38
38
query I rowsort
SELECT + + 11 AS col2 FROM tab0 cor0
----
11
11
11
query I rowsort
SELECT 85 AS col0 FROM tab1 AS cor0
----
85
85
85
query I rowsort
SELECT ALL - ( + 69 ) * - col0 - cor0.col1 FROM tab0 AS cor0
----
1570
2318
6050
query I rowsort
SELECT - col0 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT - + cor0.col2 + col1 * col2 + - col0 * col1 AS col1 FROM tab2 AS cor0
----
-3094
-735
593
query I rowsort
SELECT - cor0.col0 * col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - 2 - cor0.col0 FROM tab0 AS cor0
----
-26
-37
-91
query I rowsort
SELECT ALL - - col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT - + 7 * + col0 + col1 * + col1 AS col1 FROM tab2 AS cor0
----
-264
2935
912
query I rowsort
SELECT - 49 AS col2 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to adfccb10c9468825d9961e3613140f89
query I rowsort
SELECT ALL - 5 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-155
-295
-85
query I rowsort
SELECT DISTINCT 19 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
19
query I rowsort
SELECT 20 * - col2 AS col0 FROM tab0 cor0
----
-1640
-20
-660
query I rowsort
SELECT cor0.col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - + cor0.col0 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT + 44 * col2 * - 92 + col0 FROM tab2 AS cor0
----
-105170
-109289
-153745
query I rowsort
SELECT DISTINCT + col1 * col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - cor0.col1 + 1 FROM tab0 AS cor0
----
-85
-90
-96
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 cor1, tab0, tab2 AS cor2
----
3645 values hashing to fcae6e4467f798ac88c869b8e38c6b23
query I rowsort
SELECT - + cor0.col1 + 63 AS col1 FROM tab1 AS cor0
----
37
50
53
query I rowsort
SELECT DISTINCT - col2 + ( col1 ) FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - col0 + + 37 * + col0 FROM tab0
----
1260
3204
864
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab0 cor0
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
query I rowsort
SELECT col0 * - col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + + cor0.col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT + col1 * col0 * 35 FROM tab1 AS cor0
----
22400
2730
36400
onlyif mysql # use DIV operator for integer division
query I rowsort label-9286
SELECT - col1 DIV - ( col1 ) AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9286
SELECT - col1 / - ( col1 ) AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL col0 * col0 FROM tab1 cor0
----
4096
6400
9
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to fa0488bdae83f58c7ffa92505e928570
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 ALL col0 * 49 col2 FROM tab0 AS cor0
----
1176
1715
4361
onlyif mysql # use DIV operator for integer division
query I rowsort label-9291
SELECT ALL - col1 DIV + cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL - col1 / + cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-9292
SELECT + + 34 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9292
SELECT + + 34 / + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 + + col2 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-9294
SELECT col1 DIV - 85 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9294
SELECT col1 / - 85 FROM tab2
----
0
0
0
query I rowsort
SELECT + 4 - col2 FROM tab1 AS cor0
----
-50
-53
-92
query I rowsort
SELECT col0 + - col2 AS col2 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT + cor0.col2 * - 49 * col2 + + col2 FROM tab1 AS cor0
----
-142830
-159144
-451488
query I rowsort
SELECT - - 2 * col0 - col1 * col0 FROM tab1 AS cor0
----
-512
-72
-880
query I rowsort
SELECT ALL col0 * 75 FROM tab1
----
225
4800
6000
query I rowsort
SELECT DISTINCT col2 * + col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - - tab1.col1 + + 20 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 6d3244db990d8ad5222442ac6abe89c7
query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT 33 FROM tab1 cor0
----
33
33
33
query I rowsort
SELECT + + col0 * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT col1 * 22 AS col0 FROM tab2 AS cor0
----
1298
374
682
query I rowsort
SELECT ALL - cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT ALL - - col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT tab2.col2 * + col0 * + tab2.col0 AS col1 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT + ( - tab1.col1 ) FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9310
SELECT DISTINCT CAST( NULL AS DECIMAL ) / col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-9310
SELECT DISTINCT CAST ( NULL AS REAL ) / col0 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT + 44 FROM tab0, tab1 AS cor0
----
44
query I rowsort
SELECT DISTINCT col2 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * + col1 - col0 col0 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT 78 * tab0.col0 * tab0.col2 AS col1 FROM tab0
----
2730
569244
61776
query I rowsort
SELECT 83 AS col0 FROM tab1
----
83
83
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9316
SELECT ALL + 56 DIV col0 FROM tab1
----
0
0
18
skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL + 56 / col0 FROM tab1
----
0
0
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-9317
SELECT tab0.col1 DIV ( - col0 + ( + 0 ) ) FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-9317
SELECT tab0.col1 / ( - col0 + ( + 0 ) ) FROM tab0
----
-1
-2
-3
query I rowsort
SELECT - col0 * + col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT + col0 * col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT ALL + col0 * + tab1.col1 AS col0 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9321
SELECT col0 DIV col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9321
SELECT col0 / col0 FROM tab1
----
1
1
1
query I rowsort
SELECT + ( + col2 ) * - col1 * 4 AS col1 FROM tab0
----
-11352
-29848
-388
query I rowsort
SELECT DISTINCT + ( col0 ) FROM tab1
----
3
64
80
query I rowsort
SELECT ALL 81 FROM tab1
----
81
81
81
query I rowsort
SELECT + - col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT col2 + col2 FROM tab1 AS cor0
----
108
114
192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL + 80 AS col2 FROM tab1
----
80
80
80
query I rowsort
SELECT + 88 * - 72 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f5df4f00f54df1e55e2fcfefe7f9c053
query I rowsort
SELECT ALL ( col1 ) FROM tab2
----
17
31
59
query I rowsort
SELECT col1 * tab0.col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL tab2.col1 AS col2 FROM tab2
----
17
31
59
query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
54 values hashing to 3352c458f45211cf9aa3236c2cd6dd38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9334
SELECT ALL col2 * col1 DIV 61 col2 FROM tab1 cor0
----
20
23
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL col2 * col1 / 61 col2 FROM tab1 cor0
----
20
23
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9335
SELECT - col0 * + CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-9335
SELECT - col0 * + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + col2 + - col2 * 92 FROM tab1 AS cor0
----
-4914
-5187
-8736
query I rowsort
SELECT + col2 * + 90 AS col0 FROM tab1 AS cor0
----
4860
5130
8640
query I rowsort
SELECT tab0.col1 * 86 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 149415a063bb0f6819c6aede5bcaf735
query I rowsort
SELECT ALL col0 * + col2 AS col0 FROM tab1
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-9342
SELECT ALL + col2 DIV col1 AS col2 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL + col2 / col1 AS col2 FROM tab1
----
2
5
7
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab0 cor0, tab1 AS cor1
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 90 * col2 * + ( 87 ) col1 FROM tab0
----
258390
642060
7830
query I rowsort
SELECT ALL col0 * col0 * ( 34 ) FROM tab1
----
139264
217600
306
query I rowsort
SELECT - ( 1 ) FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9
query I rowsort
SELECT ALL + col1 * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + 53 * col1 FROM tab2 cor0
----
1643
3127
901
query I rowsort
SELECT DISTINCT + - col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - 42 FROM tab2 cor0
----
-42
-42
-42
query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * - col0 col2 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + col0 * + ( col2 ) AS col2 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT cor0.col0 + - col0 * cor0.col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT col1 * - col0 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT col1 + 96 * col2 AS col1 FROM tab2 AS cor0
----
2555
2623
3665
query I rowsort
SELECT ALL + col2 - - col1 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT cor0.col0 + + cor0.col0 * col0 FROM tab0 AS cor0
----
1260
600
8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 46 * col1 col0 FROM tab0 AS cor0
----
-130548
-343252
-4462
query I rowsort
SELECT + col2 * - col2 + col1 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT + 18 AS col2 FROM tab0
----
18
18
18
query I rowsort
SELECT 67 AS col1 FROM tab2
----
67
67
67
query I rowsort
SELECT DISTINCT col0 * - col0 AS col1 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT tab1.col0 AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT + col2 + col1 AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL col0 * ( 88 ) + col2 * + 54 FROM tab2 AS cor0
----
2074
8268
9004
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9369
SELECT ALL - - col2 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL - - col2 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + col0 * + 55 FROM tab1 AS cor0
----
168
3584
4480
query I rowsort
SELECT ALL + col2 * - col1 + col1 + + col1 * + col1 AS col2 FROM tab1 cor0
----
-1066
-460
-702
query I rowsort
SELECT DISTINCT + col2 * - col2 + - col0 * + col2 FROM tab0
----
-14022
-1881
-36
query I rowsort
SELECT - col2 * tab2.col0 + tab2.col2 * col0 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 + - col1 AS col1 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT + col0 * col0 AS col0 FROM tab2
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + tab0.col2 * col2 * + col0 col0 FROM tab0
----
26169
36
598518
query I rowsort
SELECT col2 + col0 - - col2 AS col2 FROM tab2
----
130
155
61
query I rowsort
SELECT tab1.col1 AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT col0 - col0 * + tab0.col1 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL + tab2.col1 AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT + tab1.col1 AS col2 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL tab1.col2 AS col0 FROM tab1 WHERE + col0 <> + col1 + col2 + - col2
----
54
57
96
query I rowsort
SELECT ALL col1 + + col2 * - col1 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT ALL + col2 FROM tab2
----
26
27
38
query I rowsort
SELECT col2 + + col0 AS col2 FROM tab1
----
121
176
57
query I rowsort
SELECT + tab0.col1 AS col0 FROM tab0
----
86
91
97
query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 * + col0 ) IN ( - col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 col2 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT + col2 + col2 AS col1 FROM tab1
----
108
114
192
query I rowsort
SELECT col0 + col1 FROM tab0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 + col0 col0 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT + tab2.col2 + - col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT ALL + col0 + col0 FROM tab1
----
128
160
6
query I rowsort
SELECT ALL + col1 AS col2 FROM tab2
----
17
31
59
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = col2 + col0
----
query I rowsort
SELECT ALL col2 - col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT col2 + + tab2.col2 FROM tab2
----
52
54
76
query I rowsort
SELECT + col0 + - col2 AS col1 FROM tab0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col1 col0 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT - + 37 * + col2 FROM tab0 AS cor0
----
-1221
-3034
-37
query I rowsort
SELECT ALL + ( col2 ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT col0 * col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL + ( + col2 ) + ( + 28 ) * col2 AS col2 FROM tab2 AS cor0
----
1102
754
783
query I rowsort
SELECT DISTINCT col1 + tab2.col1 AS col1 FROM tab2
----
118
34
62
query I rowsort
SELECT DISTINCT - col2 * col0 AS col0 FROM tab0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL col1 * - col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT ALL + tab0.col0 * col1 * - col1 FROM tab0
----
-177504
-329315
-737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-9409
SELECT col1 DIV tab0.col2 AS col2 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-9409
SELECT col1 / tab0.col2 AS col2 FROM tab0
----
1
2
97
query I rowsort
SELECT DISTINCT col0 + col1 FROM tab2
----
137
38
96
query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 = col0
----
query I rowsort
SELECT col0 + tab2.col1 FROM tab2 WHERE NOT NULL <> NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2
----
17
31
59
query I rowsort
SELECT tab1.col1 AS col2 FROM tab1
----
10
13
26
query I rowsort
SELECT + col2 * - col1 AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL ( col1 ) + col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT DISTINCT col0 * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + 35 + col1 + 29 FROM tab2 AS cor0
----
123
81
95
query I rowsort
SELECT 45 * + col1 FROM tab0 AS cor0
----
3870
4095
4365
query I rowsort
SELECT - + col1 * - col2 AS col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + col2 * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL col0 * col0 + - ( col1 ) FROM tab2 AS cor0
----
18
6025
6224
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - 33 * + col2 FROM tab0 AS cor0
----
-1089
-2706
-33
query I rowsort
SELECT DISTINCT cor0.col2 * col1 + 88 + - col1 * col1 FROM tab0 AS cor0
----
-4470
-731
-9224
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + col1 * - col0 + + col2 * 40 FROM tab2 AS cor0
----
-3562
177
863
query I rowsort
SELECT DISTINCT col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT tab0.col0 * tab0.col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT 70 + col1 AS col0 FROM tab0
----
156
161
167
query I rowsort
SELECT - tab2.col2 + col0 AS col0 FROM tab2
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-9432
SELECT 79 DIV - 58 - col0 AS col1 FROM tab0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-9432
SELECT 79 / - 58 - col0 AS col1 FROM tab0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort
SELECT 53 + ( col0 + - CAST ( col1 AS REAL ) ) AS col2 FROM tab2
----
115
29
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9434
SELECT ALL CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( - col2 ) + - col1 + + col0 FROM tab1
----
-29
-3
-77
query I rowsort
SELECT DISTINCT + col2 + col1 * col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT + - cor0.col2 * + col1 + 72 FROM tab1 AS cor0
----
-1176
-1332
-498
query I rowsort
SELECT ALL col1 * + col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - - cor0.col2 * + col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + col2 * + col2 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-9441
SELECT DISTINCT - col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-9441
SELECT DISTINCT - col0 / + col2 AS col2 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT - + col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 AS col1 FROM tab2 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9444
SELECT + - col2 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9444
SELECT + - col2 / col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 * - col2 + + col1 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT - 11 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
-11
query I rowsort
SELECT col2 * - ( - col1 ) + - col1 + - col2 * - col1 FROM tab2
----
1275
1643
3009
query I rowsort
SELECT - tab2.col1 * col0 + 40 * col1 - + tab2.col1 AS col0 FROM tab2
----
-2301
-680
992
query I rowsort
SELECT DISTINCT col2 + col0 FROM tab0 cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9450
SELECT ( + col2 ) * + col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9450
SELECT ( + col2 ) * + col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - 23 FROM tab1 AS cor0
----
23
23
23
query I rowsort
SELECT - col0 * col1 + + col1 + col1 FROM tab0
----
-1892
-3201
-7917
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9453
SELECT - cor0.col2 * + CAST( NULL AS SIGNED ) + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9453
SELECT - cor0.col2 * + CAST ( NULL AS INTEGER ) + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 - + 86 AS col2 FROM tab1 AS cor0
----
-60
-73
-76
query I rowsort
SELECT DISTINCT + col1 * - col1 + + col0 FROM tab0
----
-7372
-8192
-9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-9456
SELECT col1 DIV + CAST( ( col1 ) AS SIGNED ) col2 FROM tab2
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9456
SELECT col1 / + CAST ( ( col1 ) AS INTEGER ) col2 FROM tab2
----
1
1
1
query I rowsort
SELECT ALL cor0.col2 FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9458
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-9458
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
query I rowsort
SELECT - col0 * - col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT 58 AS col2 FROM tab0 AS cor0
----
58
58
58
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 25b043ae64f25e8f205735b09d2d3d6a
query I rowsort
SELECT DISTINCT + col0 * col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + + 25 FROM tab0 AS cor0
----
25
query I rowsort
SELECT + + col2 * col1 + + col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL col2 * - cor0.col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL 46 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
onlyif mysql # use DIV operator for integer division
query I rowsort label-9467
SELECT col0 * 80 + + col0 + + ( - tab0.col2 + col2 ) DIV - col2 FROM tab0
----
1944
2835
7209
skipif mysql # not compatible
query I rowsort label-9467
SELECT col0 * 80 + + col0 + + ( - tab0.col2 + col2 ) / - col2 FROM tab0
----
1944
2835
7209
query I rowsort
SELECT DISTINCT col0 * + ( + col0 ) + + 88 AS col0 FROM tab1
----
4184
6488
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9469
SELECT 92 * 2 + col1 / CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9469
SELECT 92 * 2 + col1 / CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - 33 AS col2 FROM tab0 AS cor0
----
-33
-33
-33
query I rowsort
SELECT + 78 FROM tab1 AS cor0
----
78
78
78
query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL - + cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL col1 * - ( - col1 + - col2 ) * - col0 AS col0 FROM tab2 AS cor0
----
-12586
-391170
-73865
onlyif mysql # use DIV operator for integer division
query I rowsort label-9475
SELECT + col0 + + col0 DIV - cor0.col1 FROM tab1 AS cor0
----
3
58
74
skipif mysql # not compatible
query I rowsort label-9475
SELECT + col0 + + col0 / - cor0.col1 FROM tab1 AS cor0
----
3
58
74
query I rowsort
SELECT ALL + + ( col1 ) + - col2 AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + + 42 AS col2 FROM tab0 AS cor0
----
42
42
42
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 1b06ddc48fd89ff2b1df6d82072316da
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9479
SELECT CAST( col1 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-9479
SELECT CAST ( col1 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + 90 * 5 AS col0 FROM tab0 cor0
----
450
query I rowsort
SELECT ALL + cor1.col1 + + 66 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to f0cfa5fe36736846f95821dc37e20e6f
query I rowsort
SELECT cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT + col2 * + col2 * col0 + ( - col2 + col2 * col2 ) FROM tab2
----
115482
53378
5805
query I rowsort
SELECT - + col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - 23 AS col0 FROM tab0
----
-23
query I rowsort
SELECT - col0 + - col1 * 23 AS col1 FROM tab0 AS cor0
----
-2002
-2182
-2266
query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 + cor0.col0 + 46 FROM tab2 AS cor0
----
1014
3605
414
query I rowsort
SELECT DISTINCT + 33 FROM tab2
----
33
query I rowsort
SELECT 87 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 * + tab2.col2 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 12ef396e43fe8422942d06abd90c3d43
query I rowsort
SELECT ALL + cor0.col0 + cor0.col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL + + col1 * col2 + cor0.col0 * - col2 + + ( 5 ) * - col1 FROM tab2 AS cor0
----
-2441
-789
493
query I rowsort
SELECT + col1 * 43 FROM tab2
----
1333
2537
731
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab1
----
3
64
80
query I rowsort
SELECT - 46 AS col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9
query I rowsort
SELECT + tab2.col1 * - ( ( + col2 ) * - col2 + col0 ) FROM tab2
----
22382
23205
35282
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col2 col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT col0 + + col0 + + col2 FROM tab2 cor0
----
182
196
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-9499
SELECT col2 DIV - 90 - - col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-9499
SELECT col2 / - 90 - - col2 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 col2 FROM tab2
----
17
31
59
query I rowsort
SELECT + col0 + - col2 * - col1 AS col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT ALL - 89 AS col0 FROM tab1
----
-89
-89
-89
query I rowsort
SELECT ALL - 45 FROM tab2
----
-45
-45
-45
query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT + 5 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 0da436460d6fcea5a1eb4b1d2219d7c9
query I rowsort
SELECT + ( col2 ) * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + col0 * col2 AS col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - - 72 * - col0 AS col1 FROM tab0 AS cor0
----
-1728
-2520
-6408
query I rowsort
SELECT - cor1.col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 93 ) col0 FROM tab0 AS cor0
----
-93
-93
-93
query I rowsort
SELECT col0 + - col1 AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL + col1 + + 59 FROM tab1 cor0
----
69
72
85
query I rowsort
SELECT DISTINCT - 63 FROM tab2 AS cor0
----
-63
onlyif mysql # use DIV operator for integer division
query I rowsort label-9514
SELECT ALL 86 DIV - col0 + + 88 * - ( + col2 ) AS col0 FROM tab2 cor0
----
-2289
-2388
-3345
skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL 86 / - col0 + + 88 * - ( + col2 ) AS col0 FROM tab2 cor0
----
-2289
-2388
-3345
query I rowsort
SELECT - - col0 AS col0 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - col0 + - col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT - 55 AS col1 FROM tab0 AS cor0
----
-55
query I rowsort
SELECT ALL + + col1 * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - col0 * col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT - col1 AS col1 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + + col1 AS col0 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9523
SELECT + col2 + col0 DIV col1 AS col0 FROM tab1
----
102
54
63
skipif mysql # not compatible
query I rowsort label-9523
SELECT + col2 + col0 / col1 AS col0 FROM tab1
----
102
54
63
query I rowsort
SELECT ALL tab0.col1 * + col1 AS col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT 62 AS col0 FROM tab1 AS cor0
----
62
62
62
query I rowsort
SELECT - cor0.col1 * - col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT + 73 AS col0 FROM tab1
----
73
73
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT ( + cor0.col2 ) * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + 16 AS col1 FROM tab1 AS cor0
----
16
16
16
onlyif mysql # use DIV operator for integer division
query I rowsort label-9532
SELECT + col0 + cor0.col2 DIV 99 AS col1 FROM tab0 cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9532
SELECT + col0 + cor0.col2 / 99 AS col1 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT + - cor0.col1 * + col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - cor0.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9535
SELECT ALL + + col1 - + cor0.col2 * 54 DIV cor0.col1 FROM tab2 AS cor0
----
-103
-16
36
skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL + + col1 - + cor0.col2 * 54 / cor0.col1 FROM tab2 AS cor0
----
-103
-16
36
query I rowsort
SELECT 89 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad
query I rowsort
SELECT - + col0 * + col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - - col0 * - 54 AS col0 FROM tab1 AS cor0
----
-162
-3456
-4320
query I rowsort
SELECT col1 * + col0 * col2 AS col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT 65 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c
query I rowsort
SELECT DISTINCT + 89 * col0 FROM tab2
----
623
6942
7031
query I rowsort
SELECT + 82 AS col1 FROM tab0 AS cor0
----
82
82
82
query I rowsort
SELECT + ( 25 ) FROM tab0 AS cor0
----
25
25
25
query I rowsort
SELECT col1 + - col2 AS col0 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9545
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9545
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * + cor0.col2 + col0 FROM tab2 AS cor0
----
1612
725
844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - ( col1 ) ) col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - ( + cor0.col0 ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT + - tab0.col0 + - tab0.col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 9da1b0d7968ba4732e03725f936ba158
query I rowsort
SELECT - col2 * - 88 AS col1 FROM tab0
----
2904
7216
88
query I rowsort
SELECT - cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT + tab0.col2 + - col0 FROM tab0
----
-34
-7
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9553
SELECT col1 + col2 + + 99 * col1 * CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9553
SELECT col1 + col2 + + 99 * col1 * CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + ( + cor0.col0 ) + + col2 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL + col2 * tab2.col0 + + tab2.col2 AS col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT - tab0.col1 * tab0.col0 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9557
SELECT ALL col2 DIV col0 AS col2 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL col2 / col0 AS col2 FROM tab0
----
0
0
1
query I rowsort
SELECT DISTINCT - col2 + col1 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL + ( cor0.col1 ) * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( - col2 + 0 ) col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT ALL col0 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-9562
SELECT ALL + + 24 DIV - col0 AS col0 FROM tab2 cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL + + 24 / - col0 AS col0 FROM tab2 cor0
----
-3
0
0
query I rowsort
SELECT + + 90 * col0 + col0 + + col0 FROM tab0 AS cor0
----
2208
3220
8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9564
SELECT DISTINCT + CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-9564
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - 69 * ( - col0 ) + col1 * cor0.col0 FROM tab1 AS cor0
----
285
5056
6560
query I rowsort
SELECT ( 23 ) * col2 + - col2 FROM tab0 AS cor0
----
1804
22
726
query I rowsort
SELECT ( col2 ) + - col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT - 27 * - col0 AS col1 FROM tab2
----
189
2106
2133
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0 cor1
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f
query I rowsort
SELECT DISTINCT + col1 + 19 FROM tab2
----
36
50
78
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab2 AS cor0, tab2 cor1
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2
query I rowsort
SELECT DISTINCT tab0.col1 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT 32 * 98 FROM tab0, tab1 cor0
----
9 values hashing to 4f2638ab56ea9f7301ecff7a542d00f8
query I rowsort
SELECT - 7 + 99 FROM tab0, tab1 cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9575
SELECT col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9575
SELECT col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * col1 + - ( + col2 ) AS col1 FROM tab2
----
-1381
-244
-4628
query I rowsort
SELECT DISTINCT 94 AS col1 FROM tab2, tab2 AS cor0, tab1 cor1
----
94
query I rowsort
SELECT DISTINCT - col0 + 21 * + col1 FROM tab0
----
1782
1822
2002
query I rowsort
SELECT DISTINCT 21 * tab2.col1 FROM tab2, tab0 AS cor0, tab2 cor1
----
1239
357
651
query I rowsort
SELECT - ( col2 ) + col1 * - 60 AS col2 FROM tab2 AS cor0
----
-1058
-1887
-3566
query I rowsort
SELECT + col1 AS col0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT + 11 FROM tab1 AS cor0
----
11
11
11
query I rowsort
SELECT + ( - 85 ) AS col1 FROM tab1 AS cor0
----
-85
-85
-85
query I rowsort
SELECT + col2 * col2 + + col2 AS col1 FROM tab2
----
1482
702
756
query I rowsort
SELECT ALL - col0 AS col0 FROM tab2
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-9586
SELECT ALL - 92 DIV - cor0.col0 AS col0 FROM tab2 AS cor0
----
1
1
13
skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL - 92 / - cor0.col0 AS col0 FROM tab2 AS cor0
----
1
1
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col2 * + col0 col2 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9588
SELECT CAST( - 82 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-82
-82
-82
skipif mysql # not compatible
query I rowsort label-9588
SELECT CAST ( - 82 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-82
-82
-82
query I rowsort
SELECT ALL + + col0 - 44 AS col2 FROM tab0 AS cor0
----
-20
-9
45
query I rowsort
SELECT ALL + ( col1 ) * col1 + + col2 - col0 * col0 FROM tab2 AS cor0
----
-2577
-5914
939
query I rowsort
SELECT DISTINCT - - 37 * - col1 AS col1 FROM tab0 AS cor0
----
-3182
-3367
-3589
query I rowsort
SELECT ALL ( + 32 ) * - col0 + col0 FROM tab1 AS cor0
----
-1984
-2480
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9593
SELECT DISTINCT + ( cor0.col1 ) * - col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9593
SELECT DISTINCT + ( cor0.col1 ) * - col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - + 29 * - 39 + col0 AS col0 FROM tab1 AS cor0
----
1134
1195
1211
onlyif mysql # use DIV operator for integer division
query I rowsort label-9595
SELECT DISTINCT + + col2 * ( + cor0.col0 ) + + cor0.col1 DIV + col1 + - col1 * + col1 FROM tab1 AS cor0
----
-513
3549
7512
skipif mysql # not compatible
query I rowsort label-9595
SELECT DISTINCT + + col2 * ( + cor0.col0 ) + + cor0.col1 / + col1 + - col1 * + col1 FROM tab1 AS cor0
----
-513
3549
7512
onlyif mysql # use DIV operator for integer division
query I rowsort label-9596
SELECT ALL + 82 DIV col2 AS col0 FROM tab0 AS cor0
----
1
2
82
skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL + 82 / col2 AS col0 FROM tab0 AS cor0
----
1
2
82
query I rowsort
SELECT + ( - 3 ) * cor0.col2 FROM tab0 AS cor0
----
-246
-3
-99
query I rowsort
SELECT DISTINCT - 86 + cor0.col2 * + col0 FROM tab2 AS cor0
----
103
1942
2916
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9599
SELECT ALL + - CAST( NULL AS SIGNED ) + - col1 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL + - CAST ( NULL AS INTEGER ) + - col1 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * 76 + col0 FROM tab0 AS cor0
----
1848
2695
6853
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9601
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9601
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT tab0.col2 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT + - ( - cor0.col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9604
SELECT - col0 + cor0.col0 * CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9604
SELECT - col0 + cor0.col0 * CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * - cor0.col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + 9 AS col0 FROM tab1 AS cor0
----
9
9
9
query I rowsort
SELECT DISTINCT - - 17 AS col1 FROM tab1 AS cor0
----
17
query I rowsort
SELECT cor0.col0 + col1 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - - col1 * col2 + col1 * col1 FROM tab1 AS cor0
----
1417
2080
670
query I rowsort
SELECT DISTINCT - col0 + - col0 * col1 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT col2 + ( col2 ) * col2 + + ( col2 ) * col2 AS col1 FROM tab2 AS cor0
----
1378
1485
2926
query I rowsort
SELECT ALL col1 + col0 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT 93 * col0 FROM tab1
----
279
5952
7440
query I rowsort
SELECT + col1 * col0 AS col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL col0 * - 97 AS col1 FROM tab1 AS cor0
----
-291
-6208
-7760
query I rowsort
SELECT DISTINCT - col2 + - 36 + 66 FROM tab1 AS cor0
----
-24
-27
-66
query I rowsort
SELECT + col2 + - col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT + col1 - - ( - ( + col0 ) * col1 ) FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT - + col1 * col2 + 41 FROM tab0 AS cor0
----
-2797
-56
-7421
query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT - col1 * 46 AS col1 FROM tab0 AS cor0
----
-3956
-4186
-4462
query I rowsort
SELECT ALL col1 * + 75 AS col2 FROM tab2 AS cor0
----
1275
2325
4425
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * - col2 col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + + col0 AS col0 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9626
SELECT DISTINCT col0 DIV + 42 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-9626
SELECT DISTINCT col0 / + 42 FROM tab1
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9627
SELECT - col0 DIV cor0.col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9627
SELECT - col0 / cor0.col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL cor0.col2 * cor0.col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - + col1 * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + col1 + col0 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - cor0.col1 * col2 + 13 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-1365
-208
262
query I rowsort
SELECT DISTINCT + col1 - + tab1.col0 AS col2 FROM tab1
----
-54
-67
23
query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT - - cor0.col0 * + col1 + col2 + cor0.col1 FROM tab0 AS cor0
----
2183
3493
8272
query I rowsort
SELECT - col1 + 79 * col0 - - cor0.col1 FROM tab2 AS cor0
----
553
6162
6241
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 * col1 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT - - col0 * + col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + - col0 + col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL - col2 * ( + col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT cor0.col1 + - 64 + - cor0.col2 AS col0 FROM tab0 cor0
----
-11
-55
32
query I rowsort
SELECT ALL - - col1 * + col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - col0 * - 46 + - col2 FROM tab2 cor0
----
295
3562
3596
query I rowsort
SELECT DISTINCT - 22 FROM tab2 AS cor0
----
-22
query I rowsort
SELECT col0 - - ( col0 * + tab1.col1 ) FROM tab1
----
1120
704
81
query I rowsort
SELECT ALL col2 * 91 + - col1 + col1 AS col2 FROM tab1
----
4914
5187
8736
query I rowsort
SELECT DISTINCT - - 76 - col2 FROM tab0 cor0
----
-6
43
75
query I rowsort
SELECT + + ( cor0.col0 ) FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT - 85 FROM tab2 AS cor0
----
-85
-85
-85
query I rowsort
SELECT ALL + ( + cor0.col1 ) + col0 * col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT col2 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col2 + - col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT col2 * col0 + - col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT DISTINCT - tab2.col1 FROM tab2, tab0 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
24
35
89
query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col2 FROM tab0, tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT 44 FROM tab1, tab0 cor0
----
44
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab2, tab2 cor1
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2
query I rowsort
SELECT ALL - ( col0 ) * - col0 + 10 FROM tab2
----
59
6094
6251
query I rowsort
SELECT ALL - ( tab1.col0 ) + col2 AS col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT ALL - - cor0.col0 + + 69 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to 4b2e7471c33fa39bef40eafa631fdfce
query I rowsort
SELECT DISTINCT col0 + col2 * col0 FROM tab1
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-9665
SELECT 86 + col2 + + col0 DIV + col1 FROM tab0
----
119
168
87
skipif mysql # not compatible
query I rowsort label-9665
SELECT 86 + col2 + + col0 / + col1 FROM tab0
----
119
168
87
query I rowsort
SELECT ALL + col1 + - tab2.col1 - + col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - col2 * - col0 * cor0.col2 FROM tab0 cor0
----
26136
35
598436
query I rowsort
SELECT ALL - col2 + col2 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - - cor0.col0 * col1 + col0 * + col1 + col2 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-403
2040
7670
query I rowsort
SELECT ALL col2 * col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + + cor0.col2 - col0 * + col0 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT ALL - col1 * - col2 + + 17 FROM tab0 AS cor0
----
114
2855
7479
query I rowsort
SELECT col1 * col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT 76 * - col2 * - 88 + col0 * - tab0.col0 FROM tab0
----
220128
540495
5463
query I rowsort
SELECT + cor0.col0 - col2 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9676
SELECT CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9676
SELECT CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 79 FROM tab0 AS cor0
----
-79
-79
-79
query I rowsort
SELECT DISTINCT col2 + + ( col1 ) * ( + cor0.col2 ) AS col0 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT - + 31 + 14 AS col2 FROM tab2 AS cor0
----
-17
query I rowsort
SELECT DISTINCT + ( - col1 ) AS col1 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + 19 AS col2 FROM tab0 AS cor0
----
19
19
19
query I rowsort
SELECT + 73 * + col1 FROM tab0 AS cor0
----
6278
6643
7081
query I rowsort
SELECT col1 * col1 + - col1 FROM tab1
----
156
650
90
query I rowsort
SELECT + + 52 * - col1 FROM tab1 AS cor0
----
-1352
-520
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 98 col0 FROM tab2 AS cor0
----
686
7644
7742
query I rowsort
SELECT col1 + - ( col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
972 values hashing to 591a9a93560839231c038a1e10bd240a
query I rowsort
SELECT - cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT + 83 FROM tab1, tab2 cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
query I rowsort
SELECT - + 98 * col1 AS col2 FROM tab2 AS cor0
----
-1666
-3038
-5782
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
243 values hashing to b3323704f6873113d863f8e27386b356
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9692
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab1
----
NULL
query I rowsort
SELECT ALL 54 * - cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to e00333640f8dc93697ac66859cd237a5
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
972 values hashing to 9af67d6f98010464af5d560bf949d487
query I rowsort
SELECT cor0.col0 * tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 12930ec3ed2e24e506ebb47d036ed597
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9696
SELECT col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9696
SELECT col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 AS col0 FROM tab2
----
7
78
79
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab1 cor0
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9
query I rowsort
SELECT ALL 72 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9700
SELECT ALL - col2 * CAST( col1 AS SIGNED ) * col1 AS col0 FROM tab1
----
-16224
-36504
-5700
skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL - col2 * CAST ( col1 AS INTEGER ) * col1 AS col0 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT ALL - 76 FROM tab1, tab1 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317
query I rowsort
SELECT 88 FROM tab1, tab0 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT ALL + col1 * - col2 + + col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT col0 + + ( 37 ) * col2 FROM tab0 AS cor0
----
1245
3123
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9705
SELECT DISTINCT - col2 * CAST( 48 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1584
-3936
-48
skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT - col2 * CAST ( 48 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1584
-3936
-48
query I rowsort
SELECT ALL - 36 FROM tab0, tab2 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837
query I rowsort
SELECT ALL col2 * col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - + cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521
query I rowsort
SELECT + col1 * col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + col1 * 30 * col1 FROM tab0 AS cor0
----
221880
248430
282270
query I rowsort
SELECT ALL col1 * col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + cor0.col2 + + col0 * - col1 * + cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
-3359
-663947
-68055
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab2, tab0 AS cor1
----
972 values hashing to 380241bbc503a31e70494611a87ffd99
query I rowsort
SELECT col0 + + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT - 19 AS col1 FROM tab0 AS cor0
----
-19
-19
-19
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab2 AS cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127
query I rowsort
SELECT + 54 FROM tab1 cor0
----
54
54
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-9719
SELECT DISTINCT col0 + + 7 DIV col1 AS col2 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9719
SELECT DISTINCT col0 + + 7 / col1 AS col2 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 + col2 col2 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT 67 FROM tab0
----
67
query I rowsort
SELECT 26 FROM tab0
----
26
26
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - 58 col0 FROM tab0
----
28
33
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9724
SELECT ( col1 ) * - col0 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9724
SELECT ( col1 ) * - col0 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 90 AS col1 FROM tab1, tab0 AS cor0
----
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9726
SELECT ALL - CAST( ( col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-9726
SELECT ALL - CAST ( ( col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + 12 * + col0 + + col0 AS col2 FROM tab2 AS cor0
----
1014
1027
91
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1, tab0 AS cor0, tab1 cor1
----
24
35
89
query I rowsort
SELECT - ( col1 ) + col1 AS col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT - col1 * + col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-9731
SELECT + col0 DIV 94 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9731
SELECT + col0 / 94 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT cor0.col2 * tab0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 1e358219bf03c93d7085a65107d13cf1
query I rowsort
SELECT col2 * col1 * - col1 AS col2 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT tab2.col1 * + col0 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + + 47 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab1 AS cor1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9
query I rowsort
SELECT 62 AS col1 FROM tab0
----
62
62
62
query I rowsort
SELECT DISTINCT 65 * - col2 FROM tab0
----
-2145
-5330
-65
query I rowsort
SELECT ALL - 11 FROM tab1
----
-11
-11
-11
query I rowsort
SELECT - + col2 - col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT cor0.col1 + cor0.col2 * cor0.col1 AS col2 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT + col2 + col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + col1 * - col0 * + col1 + + col1 FROM tab2 AS cor0
----
-22814
-271459
-6696
query I rowsort
SELECT + col1 + + 6 * col2 FROM tab2 AS cor0
----
193
215
245
query I rowsort
SELECT col1 * - col2 + - col0 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT + col2 * - col0 * col0 - col0 * - 46 FROM tab0 AS cor0
----
-17904
-645428
385
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 - col1 + col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT ALL col2 AS col0 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL 19 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9751
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-9751
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab0 AS cor1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - ( col0 ) col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - - col1 + col1 * + 3 AS col0 FROM tab1 AS cor0
----
104
40
52
query I rowsort
SELECT ALL cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT col0 * 83 + - col0 FROM tab0 cor0
----
1968
2870
7298
query I rowsort
SELECT ALL + col0 + + ( + 0 ) AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + + col1 + 84 * - col2 AS col2 FROM tab2 cor0
----
-2125
-2237
-3175
query I rowsort
SELECT col0 * - col2 + - col0 + + 7 FROM tab1
----
-158
-3705
-7753
query I rowsort
SELECT DISTINCT + col0 + - col2 AS col0 FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT + col2 * col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + - 1 + + col0 * - 2 AS col1 FROM tab2 AS cor0
----
-15
-157
-159
query I rowsort
SELECT ALL col2 * - cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-9764
SELECT - 67 + + col0 DIV col0 AS col0 FROM tab1 AS cor0
----
-66
-66
-66
skipif mysql # not compatible
query I rowsort label-9764
SELECT - 67 + + col0 / col0 AS col0 FROM tab1 AS cor0
----
-66
-66
-66
query I rowsort
SELECT DISTINCT - 80 FROM tab1 AS cor0
----
-80
query I rowsort
SELECT ALL - 95 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13
query I rowsort
SELECT DISTINCT - - 77 FROM tab1 AS cor0
----
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-9768
SELECT - col2 DIV - cor0.col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-9768
SELECT - col2 / - cor0.col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT ALL + col1 + - cor0.col2 FROM tab2 cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-9770
SELECT + + col0 DIV col1 AS col0 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-9770
SELECT + + col0 / col1 AS col0 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT 81 * col0 FROM tab0
----
1944
2835
7209
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 + + col1 - col1 col2 FROM tab2
----
53
query I rowsort
SELECT ALL 23 AS col1 FROM tab1 AS cor0
----
23
23
23
query I rowsort
SELECT + + 87 + - cor0.col1 AS col1 FROM tab0 cor0
----
-10
-4
1
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 CROSS JOIN tab2, tab0 AS cor1
----
972 values hashing to 380241bbc503a31e70494611a87ffd99
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2, tab1 cor1
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a
query I rowsort
SELECT DISTINCT + tab1.col1 AS col1 FROM tab1, tab2, tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + tab2.col2 - col1 * - 58 AS col0 FROM tab2
----
1024
1825
3448
query I rowsort
SELECT - + col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT 67 + col2 AS col2 FROM tab0
----
100
149
68
query I rowsort
SELECT tab1.col1 - - col0 AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT ( col2 ) * 46 AS col0 FROM tab2
----
1196
1242
1748
query I rowsort
SELECT DISTINCT col0 + - col2 AS col0 FROM tab2
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 + ( col0 + - col2 ) * - col1 col2 FROM tab2
----
-2392
1349
747
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab1 cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 30 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 * + col0 * + 71 col0 FROM tab0
----
146544
241045
575029
query I rowsort
SELECT + cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9790
SELECT ALL - + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL - + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + 92 + - cor0.col1 FROM tab1 AS cor0
----
66
79
82
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + 9 AS REAL ) FROM tab0 AS cor0
----
9
9
9
query I rowsort
SELECT ALL + col1 * 89 + col2 AS col2 FROM tab1 AS cor0
----
1253
2368
947
query I rowsort
SELECT - col1 * - ( ( + col2 ) ) AS col1 FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + tab0.col2 col1 FROM tab0
----
119
173
98
query I rowsort
SELECT col1 + 77 FROM tab0
----
163
168
174
query I rowsort
SELECT cor1.col2 FROM tab2, tab0 cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to 291cdf20f55dc7bbcb55f561dc0b74d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-9798
SELECT + tab1.col1 DIV col2 - col1 AS col0 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-9798
SELECT + tab1.col1 / col2 - col1 AS col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - col0 * - 13 FROM tab2
----
1014
1027
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab0
----
24
35
89
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
3645 values hashing to 1a92b418ae3c05ba566f88a890a407ae
query I rowsort
SELECT - col1 AS col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT + - 72 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-105
-154
-73
query I rowsort
SELECT + col1 - - col0 FROM tab2 AS cor0
----
137
38
96
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0, tab0 AS cor1
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0 CROSS JOIN tab1, tab0 AS cor1
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae
query I rowsort
SELECT DISTINCT tab2.col2 + + col2 FROM tab2
----
52
54
76
query I rowsort
SELECT ALL - cor0.col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + + col1 * col1 + col1 * col2 * + ( - col2 ) FROM tab0 AS cor0
----
-603603
-86258
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-9810
SELECT - 98 + + col2 DIV - col2 + col0 AS col2 FROM tab1 cor0
----
-19
-35
-96
skipif mysql # not compatible
query I rowsort label-9810
SELECT - 98 + + col2 / - col2 + col0 AS col2 FROM tab1 cor0
----
-19
-35
-96
query I rowsort
SELECT + col2 * - col2 + + col2 AS col1 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT DISTINCT - cor0.col2 * 81 AS col1 FROM tab2 AS cor0
----
-2106
-2187
-3078
query I rowsort
SELECT DISTINCT - - 73 + + 86 FROM tab1 AS cor0
----
159
query I rowsort
SELECT 43 + - col0 * + cor0.col0 FROM tab1 cor0
----
-4053
-6357
34
query I rowsort
SELECT + col2 * col1 - + col0 AS col0 FROM tab0 AS cor0
----
2814
62
7373
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-9817
SELECT 62 * + ( - col1 ) + + col2 * col0 - col2 DIV - cor0.col2 AS col0 FROM tab0 AS cor0
----
-4539
-5978
1657
skipif mysql # not compatible
query I rowsort label-9817
SELECT 62 * + ( - col1 ) + + col2 * col0 - col2 / - cor0.col2 AS col0 FROM tab0 AS cor0
----
-4539
-5978
1657
onlyif mysql # use DIV operator for integer division
query I rowsort label-9818
SELECT col2 DIV + col1 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-9818
SELECT col2 / + col1 FROM tab2
----
0
0
2
query I rowsort
SELECT 52 * 60 AS col2 FROM tab2
----
3120
3120
3120
query I rowsort
SELECT ALL 99 + col1 AS col0 FROM tab0
----
185
190
196
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab0 cor0
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d
query I rowsort
SELECT + tab1.col1 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT ALL col0 * col1 * - tab2.col0 + ( - 74 ) AS col2 FROM tab2
----
-106171
-1593
-359030
query I rowsort
SELECT ALL - col0 * - col2 + col1 * 78 * - col1 AS col1 FROM tab2
----
-19540
-269490
-74769
onlyif mysql # use DIV operator for integer division
query I rowsort label-9825
SELECT ALL col1 * + col0 + col0 DIV ( - col0 ) col1 FROM tab0
----
2063
3394
8098
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL col1 * + col0 + col0 / ( - col0 ) col1 FROM tab0
----
2063
3394
8098
query I rowsort
SELECT DISTINCT col1 + col0 + col2 FROM tab0 cor0
----
133
143
262
query I rowsort
SELECT DISTINCT - col2 * + 74 - - col2 AS col0 FROM tab2 AS cor0
----
-1898
-1971
-2774
query I rowsort
SELECT ALL 4 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 3347a3237b37ed63205e9440d8818a46
query I rowsort
SELECT ALL + ( - col1 ) + + col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + 23 AS col0 FROM tab2 cor0
----
23
23
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 6 ) + cor0.col1 col1 FROM tab0 AS cor0
----
103
92
97
query I rowsort
SELECT DISTINCT 90 - - col1 * - col0 AS col1 FROM tab0 AS cor0
----
-1974
-3305
-8009
query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9834
SELECT ( + col2 ) * col2 DIV col1 FROM tab1
----
112
324
708
skipif mysql # not compatible
query I rowsort label-9834
SELECT ( + col2 ) * col2 / col1 FROM tab1
----
112
324
708
query I rowsort
SELECT - 93 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b
query I rowsort
SELECT ALL col1 * cor0.col0 + col1 * col0 AS col1 FROM tab2 AS cor0
----
2686
434
9204
query I rowsort
SELECT ALL - 44 AS col1 FROM tab0, tab2, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to 9c887509d218271b9365009eba440976
query I rowsort
SELECT - ( - col0 ) FROM tab2
----
7
78
79
query I rowsort
SELECT ( col2 ) AS col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL - + 27 * + col0 + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-10354
-10684
-8044
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col1 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9842
SELECT DISTINCT 42 DIV - col0 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
21
26
38
skipif mysql # not compatible
query I rowsort label-9842
SELECT DISTINCT 42 / - col0 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
21
26
38
query I rowsort
SELECT DISTINCT - + col2 * + col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT cor0.col2 - - col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + + col2 - col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col2 + col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + cor0.col0 + col1 - col2 AS col2 FROM tab1 AS cor0
----
-25
-3
17
query I rowsort
SELECT ALL - + col0 + col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT + 16 * col1 * col2 - - ( col2 ) * - col0 * col0 FROM tab0 AS cor0
----
-530130
26400
327
query I rowsort
SELECT DISTINCT - ( col2 ) * + 99 + + col2 * col2 FROM tab2 AS cor0
----
-1898
-1944
-2318
query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
54 values hashing to 2a7467bc6f55dbb61fbd4aa2bd0646a9
query I rowsort
SELECT ALL + 50 * - col2 + col1 - col0 FROM tab0 AS cor0
----
-1588
-4098
12
onlyif mysql # use DIV operator for integer division
query I rowsort label-9853
SELECT DISTINCT - 57 DIV - cor0.col0 + - col1 FROM tab0 AS cor0
----
-84
-91
-96
skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT - 57 / - cor0.col0 + - col1 FROM tab0 AS cor0
----
-84
-91
-96
query I rowsort
SELECT ALL - col2 * col0 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT + + col2 - col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL col1 * col2 * - col1 - + 92 AS col1 FROM tab0
----
-244160
-679134
-9501
query I rowsort
SELECT ALL + col2 * + col0 + 62 AS col2 FROM tab2 AS cor0
----
2090
251
3064
query I rowsort
SELECT DISTINCT col1 - - cor0.col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT 35 FROM tab0 AS cor0
----
35
query I rowsort
SELECT DISTINCT col2 * - col2 + 41 FROM tab0 AS cor0
----
-1048
-6683
40
query I rowsort
SELECT + col2 + - col0 AS col0 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT col0 + - col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT col0 * col2 - ( - col0 ) FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + 5 FROM tab0 AS cor0
----
5
5
5
query I rowsort
SELECT ALL - - col1 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - + col0 FROM tab1 cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL + cor0.col0 + - col1 * - col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT col0 + + 87 AS col2 FROM tab2 AS cor0
----
165
166
94
query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - col0 * + 74 FROM tab2 AS cor0
----
-518
-5772
-5846
onlyif mysql # use DIV operator for integer division
query I rowsort label-9872
SELECT ALL - - col2 DIV ( 60 + col0 ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL - - col2 / ( 60 + col0 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 * + col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col1 * col0 + tab2.col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT - - col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + - col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( - col1 ) col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT - col0 * + col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - col2 + ( - col2 ) * - cor0.col2 FROM tab1 AS cor0
----
2862
3192
9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-9880
SELECT ALL col1 DIV cor0.col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-9880
SELECT ALL col1 / cor0.col0 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - - col2 AS col1 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 42 col1 FROM tab2 AS cor0
----
1302
2478
714
query I rowsort
SELECT ALL - col2 + - ( col1 ) + - col0 * - col1 AS col1 FROM tab2 AS cor0
----
1288
159
4517
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9885
SELECT col2 * + CAST( col1 AS SIGNED ) + + cor0.col0 FROM tab2 AS cor0
----
1612
725
844
skipif mysql # not compatible
query I rowsort label-9885
SELECT col2 * + CAST ( col1 AS INTEGER ) + + cor0.col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL + + col2 + - col1 FROM tab1 AS cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 col0 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9888
SELECT ALL - + col1 DIV col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-9888
SELECT ALL - + col1 / col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT - - cor0.col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + col2 * + 59 FROM tab2 AS cor0
----
1534
1593
2242
query I rowsort
SELECT DISTINCT + - 81 AS col0 FROM tab0 AS cor0
----
-81
query I rowsort
SELECT + col2 * + cor0.col2 FROM tab0 AS cor0
----
1
1089
6724
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to b2cff03af5bc7306c5e3322cc78563c1
query I rowsort
SELECT + col0 + + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-9895
SELECT DISTINCT + + cor0.col0 DIV col0 + + col2 DIV ( + col0 ) - - col1 FROM tab2 cor0
----
18
35
60
skipif mysql # not compatible
query I rowsort label-9895
SELECT DISTINCT + + cor0.col0 / col0 + + col2 / ( + col0 ) - - col1 FROM tab2 cor0
----
18
35
60
query I rowsort
SELECT ALL + + col0 + col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL ( col0 ) + col2 * col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT - col1 * + col2 + - col1 AS col1 FROM tab2
----
-1593
-663
-868
query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
54 values hashing to 69e208df4a305efdfcc036bb4b31e720
query I rowsort
SELECT ( cor0.col0 * + tab0.col0 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 12930ec3ed2e24e506ebb47d036ed597
query I rowsort
SELECT DISTINCT 80 + col2 FROM tab1 AS cor0
----
134
137
176
query I rowsort
SELECT + col1 + + col1 * + col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT DISTINCT col0 * col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - 72 * + col1 AS col1 FROM tab2 cor0
----
-1224
-2232
-4248
onlyif mysql # use DIV operator for integer division
query I rowsort label-9905
SELECT - col1 DIV + col0 + - col1 * col1 FROM tab1 cor0
----
-100
-169
-684
skipif mysql # not compatible
query I rowsort label-9905
SELECT - col1 / + col0 + - col1 * col1 FROM tab1 cor0
----
-100
-169
-684
query I rowsort
SELECT DISTINCT - 51 AS col1 FROM tab1 AS cor0
----
-51
query I rowsort
SELECT DISTINCT + - cor0.col1 + - col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT 20 AS col0 FROM tab2 AS cor0
----
20
20
20
query I rowsort
SELECT - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT col2 + cor0.col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT + 85 * + col0 + + col1 FROM tab2 AS cor0
----
626
6689
6732
query I rowsort
SELECT - 2 * + col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + + col2 col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + col1 - col2 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT - cor0.col2 * - col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - 21 + col0 FROM tab2 AS cor0
----
-14
57
58
query I rowsort
SELECT - + col2 * col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-9918
SELECT - col2 DIV + col0 + - col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-9918
SELECT - col2 / + col0 + - col1 / - col1 AS col2 FROM tab0 AS cor0
----
0
1
1
query I rowsort
SELECT + col0 * col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL + cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT + tab2.col0 AS col2 FROM tab2
----
7
78
79
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
onlyif mysql # use DIV operator for integer division
query I rowsort label-9924
SELECT ALL + 29 DIV + col1 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
163
3650
7682
skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL + 29 / + col1 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
163
3650
7682
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9925
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 23 AS col2 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 23 AS col2 FROM tab0 cor0
----
NULL
query I rowsort
SELECT - 92 * - col0 FROM tab1 AS cor0
----
276
5888
7360
query I rowsort
SELECT DISTINCT - + 77 FROM tab1 AS cor0
----
-77
query I rowsort
SELECT - 39 * - cor0.col0 - - cor0.col0 * + col2 FROM tab0 AS cor0
----
10769
1400
1728
query I rowsort
SELECT col0 * - ( - 76 ) * - col2 AS col1 FROM tab2
----
-14364
-154128
-228152
query I rowsort
SELECT DISTINCT col1 * + ( + 42 ) + col1 FROM tab1
----
1118
430
559
query I rowsort
SELECT - col2 * 87 FROM tab1
----
-4698
-4959
-8352
query I rowsort
SELECT - col2 - col2 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT + 89 * + col2 + - col2 FROM tab0
----
2904
7216
88
query I rowsort
SELECT DISTINCT - col1 + col1 + col1 FROM tab0
----
86
91
97
query I rowsort
SELECT - ( + col2 ) AS col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + col2 * col2 + col2 * - tab2.col0 + + col1 FROM tab2
----
-1293
-1541
571
query I rowsort
SELECT DISTINCT + col1 + col1 FROM tab2
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + ( + col1 ) col0 FROM tab1
----
0
0
0
query I rowsort
SELECT + tab2.col0 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT + + 95 + + col0 FROM tab1 cor0
----
159
175
98
query I rowsort
SELECT + col0 * + col2 + + col2 * tab1.col2 * - col2 FROM tab1
----
-157302
-181545
-877056
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col1 FROM tab0
----
77
77
77
query I rowsort
SELECT DISTINCT + 11 * + col2 AS col0 FROM tab2
----
286
297
418
query I rowsort
SELECT 79 AS col1 FROM tab0
----
79
79
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9945
SELECT ALL CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 col2 FROM tab0
----
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab1
----
54
57
96
query I rowsort
SELECT cor1.col2 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-9949
SELECT + col1 * col1 DIV + col2 AS col0 FROM tab0
----
100
224
9409
skipif mysql # not compatible
query I rowsort label-9949
SELECT + col1 * col1 / + col2 AS col0 FROM tab0
----
100
224
9409
query I rowsort
SELECT DISTINCT ( 81 ) * col1 * col1 FROM tab2
----
23409
281961
77841
query I rowsort
SELECT ALL 73 AS col0 FROM tab0
----
73
73
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 + + col1 col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT col2 * - tab1.col0 FROM tab1
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
query I rowsort
SELECT - tab2.col1 FROM tab0, tab2 cor0 CROSS JOIN tab2
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 * - col1 + col0 ) IN ( col2 )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * col0 <= ( NULL )
----
query I rowsort
SELECT ALL + col2 * - col2 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT - col1 * - col2 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT col1 + - col1 * col2 AS col2 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT - col2 * col2 + col1 AS col2 FROM tab1
----
-2890
-3239
-9203
query I rowsort
SELECT - tab2.col2 - col2 AS col0 FROM tab2
----
-52
-54
-76
query I rowsort
SELECT + col0 FROM tab0 WHERE NOT NULL IN ( + col2 * - col1 )
----
query I rowsort
SELECT ALL + col2 + + col1 + - col0 AS col1 FROM tab2
----
-24
51
7
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 + col2 * col0 + + col1 BETWEEN - col0 AND ( NULL )
----
query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NOT col1 / tab0.col0 >= ( NULL )
----
query I rowsort
SELECT DISTINCT + tab2.col2 FROM tab2
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 col2 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT col2 + col0 * col0 AS col1 FROM tab2
----
6110
6279
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL col1 + + col1 * + col1 FROM tab1
----
110
182
702
query I rowsort
SELECT - tab0.col1 * col2 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col0 + + col1
----
query I rowsort
SELECT ALL + col1 + col1 AS col2 FROM tab2
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + tab2.col0 col0 FROM tab2
----
104
117
34
query I rowsort
SELECT col0 * - cor0.col2 + + col2 + col1 AS col2 FROM tab0 AS cor0
----
-673
-7125
63
query I rowsort
SELECT ALL + col0 * col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT - col2 * + col2 FROM tab2
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-9979
SELECT - tab2.col0 DIV + col1 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-9979
SELECT - tab2.col0 / + col1 FROM tab2
----
-1
-4
0
query I rowsort
SELECT cor0.col2 * + col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-9981
SELECT col0 DIV col0 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9981
SELECT col0 / col0 AS col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT + col2 AS col2 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT - tab0.col0 AS col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL + tab2.col0 * - col1 AS col1 FROM tab2
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL + + cor0.col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9987
SELECT DISTINCT - col2 * col0 + col1 DIV + col2 col1 FROM tab0 AS cor0
----
-7297
-790
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT - col2 * col0 + col1 / + col2 col1 FROM tab0 AS cor0
----
-7297
-790
62
query I rowsort
SELECT col0 * + col0 FROM tab2 cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-9989
SELECT DISTINCT col0 * col2 * col2 + col0 DIV col0 + col0 AS col1 FROM tab2 AS cor0
----
114156
5111
52807
skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT col0 * col2 * col2 + col0 / col0 + col0 AS col1 FROM tab2 AS cor0
----
114156
5111
52807
query I rowsort
SELECT ALL - col2 * - cor0.col2 * - col1 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT - - col0 * - col1 - + col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT + + col2 * col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT - col1 * + col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + col2 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL col0 - + col0 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT col1 * col2 AS col2 FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-9997
SELECT col1 * col0 DIV tab2.col1 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-9997
SELECT col1 * col0 / tab2.col1 FROM tab2
----
7
78
79
query I rowsort
SELECT - col1 * + col1 + col2 FROM tab0
----
-7363
-8199
-9408
query I rowsort
SELECT + col2 FROM tab0 cor0
----
1
33
82